@everymatrix/player-account-self-exclusion 1.36.1 → 1.37.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.
@@ -1,8 +1,8 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function oe(){}function O(e){return e()}function M(){return Object.create(null)}function ue(e){e.forEach(O)}function N(e){return"function"==typeof e}function I(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function L(e,...t){if(null==e)return oe;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function se(e,t){e.appendChild(t)}function ce(e,t,r){e.insertBefore(t,r||null)}function de(e){e.parentNode&&e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function pe(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ae(e){return document.createTextNode(e)}function e(){return ae(" ")}function me(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function le(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function fe(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:le(e,t,r)}function he(e,t){e.data!==(t=""+t)&&(e.data=t)}let H;function R(e){H=e}const B=[],F=[];let Y=[];const z=[],U=Promise.resolve();let $=!1;function j(e){Y.push(e)}const V=new Set;let W=0;function G(){if(0===W){const i=H;do{try{for(;W<B.length;){const i=B[W];W++,R(i),e=t=void 0;var e,t=i.$$;null!==t.fragment&&(t.update(),ue(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(j))}}catch(i){throw B.length=0,W=0,i}for(R(null),B.length=0,W=0;F.length;)F.pop()();for(let e=0;e<Y.length;e+=1){var r=Y[e];V.has(r)||(V.add(r),r())}}while(Y.length=0,B.length);for(;z.length;)z.pop()();$=!1,V.clear(),R(i)}}const q=new Set;function K(i,e,t,r,n,o,s,a=[-1]){var l=H;R(i);const h=i.$$={fragment:null,ctx:[],props:o,update:oe,not_equal:n,bound:M(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:M(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(h.root);let u=!1;if(h.ctx=t?t(i,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return h.ctx&&n(h.ctx[e],h.ctx[e]=r)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](r),u)&&(r=e,-1===(e=i).$$.dirty[0]&&(B.push(e),$||($=!0,U.then(G)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31),t}):[],h.update(),u=!0,ue(h.before_update),h.fragment=!!r&&r(h.ctx),e.target){if(e.hydrate){o=e.target;const oe=Array.from(o.childNodes);h.fragment&&h.fragment.l(oe),oe.forEach(de)}else h.fragment&&h.fragment.c();e.intro&&(a=i.$$.fragment)&&a.i&&(q.delete(a),a.i(void 0));var c=i,s=e.target,t=e.anchor,r=e.customElement,{fragment:o,after_update:a}=c.$$;o&&o.m(s,t),r||j(()=>{var e=c.$$.on_mount.map(O).filter(N);c.$$.on_destroy?c.$$.on_destroy.push(...e):ue(e),c.$$.on_mount=[]}),a.forEach(j),G()}R(l)}let X;"function"==typeof HTMLElement&&(X=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(O).filter(N);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){ue(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var r=e.after_update;const i=[],n=[];Y.forEach(e=>(-1===r.indexOf(e)?i:n).push(e)),n.forEach(e=>e()),Y=i}ue(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=oe}$on(e,t){if(!N(t))return oe;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var Z,J,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},Q="URLSearchParams"in l,ee="Symbol"in l&&"iterator"in Symbol,te="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),re="FormData"in l,ie="ArrayBuffer"in l;function ne(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function _e(e){return e="string"!=typeof e?String(e):e}function ye(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ee&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ve(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function ge(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function be(e){var t=new FileReader,r=ge(t);return t.readAsArrayBuffer(e),r}function we(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function xe(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:te&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:re&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Q&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():ie&&te&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=we(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ie&&(ArrayBuffer.prototype.isPrototypeOf(e)||J(e))?this._bodyArrayBuffer=we(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Q&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},te&&(this.blob=function(){var e=ve(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return ve(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(te)return this.blob().then(be);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,i=ve(this);if(i)return i;if(this._bodyBlob)return i=this._bodyBlob,t=ge(e=new FileReader),r=(r=/charset=([A-Za-z0-9_-]+)/.exec(i.type))?r[1]:"utf-8",e.readAsText(i,r),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},re&&(this.formData=function(){return this.text().then(Se)}),this.json=function(){return this.text().then(JSON.parse)},this}ie&&(Z=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],J=ArrayBuffer.isView||function(e){return e&&-1<Z.indexOf(Object.prototype.toString.call(e))}),h.prototype.append=function(e,t){e=ne(e),t=_e(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},h.prototype.delete=function(e){delete this.map[ne(e)]},h.prototype.get=function(e){return e=ne(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(ne(e))},h.prototype.set=function(e,t){this.map[ne(e)]=_e(t)},h.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},h.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),ye(r)},h.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ye(t)},h.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),ye(r)},ee&&(h.prototype[Symbol.iterator]=h.prototype.entries);var Ee=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Ae(e,t){if(!(this instanceof Ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,i=(t=t||{}).body;if(e instanceof Ae){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),-1<Ee.indexOf(r)?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in l)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Se(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function u(e,t){if(!(this instanceof u))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}Ae.prototype.clone=function(){return new Ae(this,{body:this._bodyInit})},xe.call(Ae.prototype),xe.call(u.prototype),u.prototype.clone=function(){return new u(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},u.error=function(){var e=new u(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Ce=[301,302,303,307,308],Te=(u.redirect=function(e,t){if(-1===Ce.indexOf(t))throw new RangeError("Invalid status code");return new u(null,{status:t,headers:{location:e}})},l.DOMException);try{new Te}catch(oe){(Te=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Te.prototype.constructor=Te}function De(i,a){return new Promise(function(n,e){var o=new Ae(i,a);if(o.signal&&o.signal.aborted)return e(new Te("Aborted","AbortError"));var r,s=new XMLHttpRequest;function t(){s.abort()}s.onload=function(){var e,i,t={statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",i=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),r=t.shift().trim();if(r){t=t.join(":").trim();try{i.append(r,t)}catch(e){console.warn("Response "+e.message)}}}),i)},r=(o.url.startsWith("file://")&&(s.status<200||599<s.status)?t.status=200:t.status=s.status,t.url="responseURL"in s?s.responseURL:t.headers.get("X-Request-URL"),"response"in s?s.response:s.responseText);setTimeout(function(){n(new u(r,t))},0)},s.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request timed out"))},0)},s.onabort=function(){setTimeout(function(){e(new Te("Aborted","AbortError"))},0)},s.open(o.method,function(t){try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&(te?s.responseType="blob":ie&&(s.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof h||l.Headers&&a.headers instanceof l.Headers)?(r=[],Object.getOwnPropertyNames(a.headers).forEach(function(e){r.push(ne(e)),s.setRequestHeader(e,_e(a.headers[e]))}),o.headers.forEach(function(e,t){-1===r.indexOf(t)&&s.setRequestHeader(t,e)})):o.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",t),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",t)}),s.send(void 0===o._bodyInit?null:o._bodyInit)})}function kr(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}De.polyfill=!0,l.fetch||(l.fetch=De,l.Headers=h,l.Request=Ae,l.Response=u),self.fetch.bind(self);var Pe=function(e,t){return(Pe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};function ke(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Pe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Oe(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&i>=e.length?void 0:e)&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Me(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(i=o.next()).done;)s.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return s}function Ne(e,t,r){if(r||2===arguments.length)for(var i,n=0,o=t.length;n<o;n++)!i&&n in t||((i=i||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function Ie(e){return"function"==typeof e}function Le(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var He=Le(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function Re(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}r.prototype.unsubscribe=function(){var e,t,r,i,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Oe(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(Ie(o))try{o()}catch(e){n=e instanceof He?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=Oe(o),h=l.next();!h.done;h=l.next()){var u=h.value;try{ze(u)}catch(e){n=null!=n?n:[],e instanceof He?n=Ne(Ne([],Me(n)),Me(e.errors)):n.push(e)}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}if(n)throw new He(n)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ze(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Re(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Re(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=((n=new r).closed=!0,n);var Be=r,Fe=Be.EMPTY;function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ye(e){return e instanceof Be||e&&"closed"in e&&Ie(e.remove)&&Ie(e.add)&&Ie(e.unsubscribe)}function ze(e){Ie(e)?e():e.unsubscribe()}var Ue=void 0,$e=!1,je=!1,Ve={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var n=Ve.delegate;return null!=n&&n.setTimeout?n.setTimeout.apply(n,Ne([e,t],Me(r))):setTimeout.apply(void 0,Ne([e,t],Me(r)))},clearTimeout:function(e){var t=Ve.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function We(){}var Ge=null;function qe(e){if($e){var t=!Ge;if(t&&(Ge={errorThrown:!1,error:null}),e(),t){var t=Ge,r=t.errorThrown,t=t.error;if(Ge=null,r)throw t}}else e()}ke(i,Ke=Be),i.create=function(e,t,r){return new tt(e,t,r)},i.prototype.next=function(e){this.isStopped||this._next(e)},i.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},i.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ke.prototype.unsubscribe.call(this),this.destination=null)},i.prototype._next=function(e){this.destination.next(e)},i.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},i.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Ke,Xe=i,Ze=Function.prototype.bind;function i(e){var t=Ke.call(this)||this;return t.isStopped=!1,e?Ye(t.destination=e)&&e.add(t):t.destination=ot,t}function Je(e,t){return Ze.call(e,t)}it.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){nt(e)}},it.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){nt(e)}else nt(e)},it.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){nt(e)}};var Qe,et=it,tt=(ke(rt,Qe=Xe),rt);function rt(e,t,r){var i=Qe.call(this)||this,r=Ie(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:i&&je?((t=Object.create(e)).unsubscribe=function(){return i.unsubscribe()},{next:e.next&&Je(e.next,t),error:e.error&&Je(e.error,t),complete:e.complete&&Je(e.complete,t)}):e;return i.destination=new et(r),i}function it(e){this.partialObserver=e}function nt(e){var t=e;Ve.setTimeout(function(){throw t})}var ot={closed:!0,next:We,error:function(e){throw e},complete:We},n="function"==typeof Symbol&&Symbol.observable||"@@observable";o.prototype.lift=function(e){var t=new o;return t.source=this,t.operator=e,t},o.prototype.subscribe=function(e,t,r){var i,n=this,o=(i=e)&&i instanceof Xe||i&&Ie(i.next)&&Ie(i.error)&&Ie(i.complete)&&Ye(i)?e:new tt(e,t,r);return qe(function(){var e=n.operator,t=n.source;o.add(e?e.call(o,t):t?n._subscribe(o):n._trySubscribe(o))}),o},o.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},o.prototype.forEach=function(i,e){var n=this;return new(e=at(e))(function(e,t){var r=new tt({next:function(e){try{i(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});n.subscribe(r)})},o.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},o.prototype[n]=function(){return this},o.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},o.prototype.toPromise=function(e){var i=this;return new(e=at(e))(function(e,t){var r;i.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},o.create=function(e){return new o(e)};var st=o;function o(e){e&&(this._subscribe=e)}function at(e){return null!=(e=null!=e?e:Ue)?e:Promise}var lt,ht,ut,ct=Le(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),n=(ke(s,ut=st),s.prototype.lift=function(e){var t=new dt(this,this);return t.operator=e,t},s.prototype._throwIfClosed=function(){if(this.closed)throw new ct},s.prototype.next=function(n){var o=this;qe(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var r=Oe(o.currentObservers),i=r.next();!i.done;i=r.next())i.value.next(n)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},s.prototype.error=function(t){var r=this;qe(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},s.prototype.complete=function(){var t=this;qe(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},s.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(s.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),s.prototype._trySubscribe=function(e){return this._throwIfClosed(),ut.prototype._trySubscribe.call(this,e)},s.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},s.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,i=this.isStopped,n=this.observers;return r||i?Fe:(this.currentObservers=null,n.push(e),new Be(function(){t.currentObservers=null,Re(n,e)}))},s.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,i=this.isStopped;t?e.error(r):i&&e.complete()},s.prototype.asObservable=function(){var e=new st;return e.source=this,e},s.create=function(e,t){return new dt(e,t)},s),dt=(ke(_t,ht=n),_t.prototype.next=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.next)&&r.call(t,e)},_t.prototype.error=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.error)&&r.call(t,e)},_t.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},_t.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Fe},_t),pt={now:function(){return(pt.delegate||Date).now()},delegate:void 0},mt=(ke(ft,lt=n),ft.prototype.next=function(e){var t=this,r=t.isStopped,i=t._buffer,n=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(i.push(e),n)||i.push(o.now()+t),this._trimBuffer(),lt.prototype.next.call(this,e)},ft.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,i=this._buffer.slice(),n=0;n<i.length&&!e.closed;n+=r?1:2)e.next(i[n]);return this._checkFinalizedStatuses(e),t},ft.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,i=this._infiniteTimeWindow,n=(i?1:2)*e;if(e<1/0&&n<r.length&&r.splice(0,r.length-n),!i){for(var o=t.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},ft);function ft(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=pt);var i=lt.call(this)||this;return i._bufferSize=e,i._windowTime=t,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=t===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,t),i}function _t(e,t){var r=ht.call(this)||this;return r.destination=e,r.source=t,r}function s(){var e=ut.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let yt=[],vt={};const gt=[];function bt(i,n=oe){let o;const s=new Set;function a(e){if(I(i,e)&&(i=e,o)){const e=!gt.length;for(const e of s)e[1](),gt.push(e,i);if(e){for(let e=0;e<gt.length;e+=2)gt[e][0](gt[e+1]);gt.length=0}}}return{set:a,update:function(e){a(e(i))},subscribe:function(e,t=oe){const r=[e,t];return s.add(r),1===s.size&&(o=n(a)||oe),e(i),()=>{s.delete(r),0===s.size&&o&&(o(),o=null)}}}}function wt(e,a,t){const l=!Array.isArray(e),h=l?[e]:e,u=a.length<2;return{subscribe:bt(t,t=>{let r=!1;const i=[];let n=0,o=oe;const s=()=>{var e;n||(o(),e=a(l?i[0]:i,t),u?t(e):o=N(e)?e:oe)},e=h.map((e,t)=>L(e,e=>{i[t]=e,n&=~(1<<t),r&&s()},()=>{n|=1<<t}));return r=!0,s(),function(){ue(e),o(),r=!1}}).subscribe}}function xt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===Et);var t}var Et="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function At(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Pt(Array.isArray(e)?[]:{},e,t):e}function St(e,t,r){return e.concat(t).map(function(e){return At(e,r)})}function Ct(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function Tt(e,t){try{return t in e}catch(e){return!1}}function Dt(i,n,o){var s={};return o.isMergeableObject(i)&&Ct(i).forEach(function(e){s[e]=At(i[e],o)}),Ct(n).forEach(function(e){var t,r;(!Tt(t=i,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(Tt(i,e)&&o.isMergeableObject(n[e])?s[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:Pt)(i[e],n[e],o):s[e]=At(n[e],o))}),s}function Pt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||St,r.isMergeableObject=r.isMergeableObject||xt,r.cloneUnlessOtherwiseSpecified=At;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):Dt(e,t,r):At(t,r)}Pt.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return Pt(e,t,r)},{});throw new Error("first argument should be an array")};var kt=Pt,Ot=function(e,t){return(Ot=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};function Mt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ot(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var f,y,Nt,_=function(){return(_=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function It(e,t,r){if(r||2===arguments.length)for(var i,n=0,o=t.length;n<o;n++)!i&&n in t||((i=i||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function Lt(e){return e.type===y.literal}function Ht(e){return e.type===y.number}function Rt(e){return e.type===y.date}function Bt(e){return e.type===y.time}function Ft(e){return e.type===y.select}function Yt(e){return e.type===y.plural}function zt(e){return e.type===y.tag}function Ut(e){return e&&"object"==typeof e&&e.type===Nt.number}function $t(e){return e&&"object"==typeof e&&e.type===Nt.dateTime}(n=f=f||{})[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG",(n=y=y||{})[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag",(n=Nt=Nt||{})[n.number=0]="number",n[n.dateTime=1]="dateTime";var n=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,jt=/(?:[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;var Vt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Wt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Gt=/^(@+)?(\+|#+)?[rs]?$/g,qt=/(\*)(0+)|(#+)(0+)|(0+)/g,Kt=/^(0+)$/;function Xt(e){var i={};return"r"===e[e.length-1]?i.roundingPriority="morePrecision":"s"===e[e.length-1]&&(i.roundingPriority="lessPrecision"),e.replace(Gt,function(e,t,r){return"string"!=typeof r?(i.minimumSignificantDigits=t.length,i.maximumSignificantDigits=t.length):"+"===r?i.minimumSignificantDigits=t.length:"#"===t[0]?i.maximumSignificantDigits=t.length:(i.minimumSignificantDigits=t.length,i.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),i}function Zt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Jt(e){return Zt(e)||{}}function Qt(e){for(var s={},t=0,r=e;t<r.length;t++){var i,n=r[t];switch(n.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=n.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=_(_(_({},s),{notation:"scientific"}),n.options.reduce(function(e,t){return _(_({},e),Jt(t))},{}));continue;case"engineering":s=_(_(_({},s),{notation:"engineering"}),n.options.reduce(function(e,t){return _(_({},e),Jt(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(qt,function(e,t,r,i,n,o){if(t)s.minimumIntegerDigits=r.length;else{if(i&&n)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Kt.test(n.stem))s.minimumIntegerDigits=n.stem.length;else if(Wt.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Wt,function(e,t,r,i,n,o){return"*"===r?s.minimumFractionDigits=t.length:i&&"#"===i[0]?s.maximumFractionDigits=i.length:n&&o?(s.minimumFractionDigits=n.length,s.maximumFractionDigits=n.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var o=n.options[0];"w"===o?s=_(_({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=_(_({},s),Xt(o)))}else Gt.test(n.stem)?s=_(_({},s),Xt(n.stem)):((o=Zt(n.stem))&&(s=_(_({},s),o)),(i=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Kt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem))&&(s=_(_({},s),i)))}return s}var er={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var tr=new RegExp("^".concat(n.source,"*")),rr=new RegExp("".concat(n.source,"*$"));function v(e,t){return{start:e,end:t}}var n=!!String.prototype.startsWith,a=!!String.fromCodePoint,c=!!Object.fromEntries,d=!!String.prototype.codePointAt,p=!!String.prototype.trimStart,m=!!String.prototype.trimEnd,ir=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},g=!0;try{g="a"===(null==(Ar=dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Ar[0])}catch(dn){g=!1}var nr,or,sr=n?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},ar=a?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,i="",n=e.length,o=0;o<n;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");i+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return i},lr=c?Object.fromEntries:function(e){for(var t={},r=0,i=e;r<i.length;r++){var n=i[r],o=n[0],n=n[1];t[o]=n}return t},hr=d?function(e,t){return e.codePointAt(t)}:function(e,t){var r,i=e.length;if(!(t<0||i<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===i||(i=e.charCodeAt(t+1))<56320||57343<i?r:i-56320+(r-55296<<10)+65536},ur=p?function(e){return e.trimStart()}:function(e){return e.replace(tr,"")},cr=m?function(e){return e.trimEnd()}:function(e){return e.replace(rr,"")};function dr(e,t){return new RegExp(e,t)}or=g?(nr=dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return nr.lastIndex=t,null!=(t=nr.exec(e)[1])?t:""}):function(e,t){for(var r,i=[];;){var n=hr(e,t);if(void 0===n||fr(n)||33<=(r=n)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094)break;i.push(n),t+=65536<=n?2:1}return ar.apply(void 0,i)};b.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},b.prototype.parseMessage=function(e,t,r){for(var i=[];!this.isEOF();){var n,o=this.char();if(123===o){if((n=this.parseArgument(e,r)).err)return n;i.push(n.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(f.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&mr(this.peek()||0)){if((n=this.parseTag(e,t)).err)return n}else if((n=this.parseLiteral(e,t)).err)return n;i.push(n.val)}else{o=this.clonePosition();this.bump(),i.push({type:y.pound,location:v(o,this.clonePosition())})}}}return{val:i,err:null}},b.prototype.parseTag=function(e,t){var r,i=this.clonePosition(),n=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(n,"/>"),location:v(i,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!mr(this.char())?this.error(f.INVALID_TAG,v(e,this.clonePosition())):(r=this.clonePosition(),n!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,v(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:n,children:t,location:v(i,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,v(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,v(i,this.clonePosition()))):this.error(f.INVALID_TAG,v(i,this.clonePosition()))},b.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},b.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),i="";;){var n=this.tryParseQuote(t);if(n)i+=n;else{n=this.tryParseUnquoted(e,t);if(n)i+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;i+=n}}}r=v(r,this.clonePosition());return{val:{type:y.literal,value:i,location:r},err:null}},b.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(mr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},b.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return ar.apply(void 0,t)},b.prototype.tryParseUnquoted=function(e,t){var r;return this.isEOF()||60===(r=this.char())||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),ar(r))},b.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,v(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(f.MALFORMED_ARGUMENT,v(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:i,location:v(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition())):this.parseArgumentOptions(e,t,i,r);default:return this.error(f.MALFORMED_ARGUMENT,v(r,this.clonePosition()))}},b.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=or(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:v(e,this.clonePosition())}},b.prototype.parseArgumentOptions=function(e,t,r,i){var n,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,v(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((c=this.parseSimpleArgStyleIfPossible()).err)return c;if(0===(d=cr(c.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:v(h,this.clonePosition())}}return(h=this.tryParseArgumentClose(i)).err?h:(p=v(i,this.clonePosition()),l&&sr(null==l?void 0:l.style,"::",0)?(m=ur(l.style.slice(2)),"number"===s?(c=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?c:{val:{type:y.number,value:r,location:p,style:c.val},err:null}:0===m.length?this.error(f.EXPECT_DATE_TIME_SKELETON,p):(u=m,this.locale&&(u=function(e,t){for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if("j"===n){for(var o=0;i+1<e.length&&e.charAt(i+1)===n;)o++,i++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.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")}return"root"!==(r=e.language)&&(t=e.maximize().region),(er[t||""]||er[r||""]||er["".concat(r,"-001")]||er["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<s--;)r=l+r}else r+="J"===n?"H":n}return r}(m,this.locale)),d={type:Nt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},u.replace(jt,function(e){var t=e.length;switch(e[0]){case"G":n.era=4===t?"long":5===t?"narrow":"short";break;case"y":n.year=2===t?"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":n.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][t-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][t-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][t-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][t-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":n.minute=["numeric","2-digit"][t-1];break;case"s":n.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=t<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""}),n):{}},{val:{type:"date"===s?y.date:y.time,value:r,location:p,style:d},err:null})):{val:{type:"number"===s?y.number:"date"===s?y.date:y.time,value:r,location:p,style:null!=(m=null==l?void 0:l.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,v(u,_({},u)));this.bumpSpace();var c,d=this.parseIdentifierIfPossible(),p=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(c=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return c;this.bumpSpace(),d=this.parseIdentifierIfPossible(),p=c.val}var m,l=this.tryParsePluralOrSelectOptions(e,s,t,d);return l.err?l:(h=this.tryParseArgumentClose(i)).err?h:(m=v(i,this.clonePosition()),"select"===s?{val:{type:y.select,value:r,options:lr(l.val),location:m},err:null}:{val:{type:y.plural,value:r,options:lr(l.val),offset:p,pluralType:"plural"===s?"cardinal":"ordinal",location:m},err:null});default:return this.error(f.INVALID_ARGUMENT_TYPE,v(o,a))}},b.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},b.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},b.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,i=e.split(Vt).filter(function(e){return 0<e.length});r<i.length;r++){var n=i[r].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var o=n[0],n=n.slice(1),s=0,a=n;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:n})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:Nt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Qt(r):{}},err:null}},b.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var n=!1,o=[],s=new Set,a=i.value,l=i.location;;){if(0===a.length){var h=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=v(h,this.clonePosition()),a=this.message.slice(h.offset,this.offset())}if(s.has(a))return this.error("select"===t?f.DUPLICATE_SELECT_ARGUMENT_SELECTOR:f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(n=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));h=this.parseMessage(e+1,t,r);if(h.err)return h;var c=this.tryParseArgumentClose(u);if(c.err)return c;o.push([a,{value:h.val,location:v(u,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(c=this.parseIdentifierIfPossible()).value,l=c.location}return 0===o.length?this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR:f.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(f.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:o,err:null}},b.prototype.tryParseDecimalInteger=function(e,t){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;n=!0,o=10*o+(s-48),this.bump()}i=v(i,this.clonePosition());return n?ir(o*=r)?{val:o,err:null}:this.error(t,i):this.error(e,i)},b.prototype.offset=function(){return this.position.offset},b.prototype.isEOF=function(){return this.offset()===this.message.length},b.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},b.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=hr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},b.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},b.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},b.prototype.bumpIf=function(e){if(sr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},b.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},b.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},b.prototype.bumpSpace=function(){for(;!this.isEOF()&&fr(this.char());)this.bump()},b.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var pr=b;function b(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function mr(e){return 97<=e&&e<=122||65<=e&&e<=90}function fr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function _r(e,t){t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new pr(e,t).parse();if(e.err)throw(r=SyntaxError(f[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Ft(e)||Yt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Ht(e)&&Ut(e.style)||(Rt(e)||Bt(e))&&$t(e.style)?delete e.style.location:zt(e)&&r(e.children)})}(e.val),e.val}function yr(e,t){var r=t&&t.cache?t.cache:Sr,i=t&&t.serializer?t.serializer:wr;return(t&&t.strategy?t.strategy:function(e,t){return br(e,this,1===e.length?vr:gr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:i})}function vr(e,t,r,i){var r=null==i||"number"==typeof i||"boolean"==typeof i?i:r(i),n=t.get(r);return void 0===n&&(n=e.call(this,i),t.set(r,n)),n}function gr(e,t,r){var i=Array.prototype.slice.call(arguments,3),r=r(i),n=t.get(r);return void 0===n&&(n=e.apply(this,i),t.set(r,n)),n}function br(e,t,r,i,n){return r.bind(t,e,i,n)}var wr=function(){return JSON.stringify(arguments)};function xr(){this.cache=Object.create(null)}xr.prototype.get=function(e){return this.cache[e]},xr.prototype.set=function(e,t){this.cache[e]=t};var Er,Ar,Sr={create:function(){return new xr}},Cr={variadic:function(e,t){return br(e,this,gr,t.cache.create(),t.serializer)},monadic:function(e,t){return br(e,this,vr,t.cache.create(),t.serializer)}};(Ar=Er=Er||{}).MISSING_VALUE="MISSING_VALUE",Ar.INVALID_VALUE="INVALID_VALUE",Ar.MISSING_INTL_API="MISSING_INTL_API";Mt(Fr,Or=Error),Fr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var w,Tr,Dr,Pr,Or,Mr=Fr,Nr=(Mt(Br,Pr=Mr),Br),Ir=(Mt(Rr,Dr=Mr),Rr),Lr=(Mt(Hr,Tr=Mr),Hr);function Hr(e,t){return Tr.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Er.MISSING_VALUE,t)||this}function Rr(e,t,r){return Dr.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Er.INVALID_VALUE,r)||this}function Br(e,t,r,i){return Pr.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Er.INVALID_VALUE,i)||this}function Fr(e,t,r){e=Or.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Yr(e,t,r,i,n,o,s){if(1===e.length&&Lt(e[0]))return[{type:w.literal,value:e[0].value}];for(var a=[],l=0,h=e;l<h.length;l++){var u=h[l];if(Lt(u))a.push({type:w.literal,value:u.value});else if(u.type===y.pound)"number"==typeof o&&a.push({type:w.literal,value:r.getNumberFormat(t).format(o)});else{var c=u.value;if(!(n&&c in n))throw new Lr(c,s);c=n[c];if(u.type===y.argument)c&&"string"!=typeof c&&"number"!=typeof c||(c="string"==typeof c||"number"==typeof c?String(c):""),a.push({type:"string"==typeof c?w.literal:w.object,value:c});else if(Rt(u)){var d="string"==typeof u.style?i.date[u.style]:$t(u.style)?u.style.parsedOptions:void 0;a.push({type:w.literal,value:r.getDateTimeFormat(t,d).format(c)})}else if(Bt(u))d="string"==typeof u.style?i.time[u.style]:$t(u.style)?u.style.parsedOptions:i.time.medium,a.push({type:w.literal,value:r.getDateTimeFormat(t,d).format(c)});else if(Ht(u))(d="string"==typeof u.style?i.number[u.style]:Ut(u.style)?u.style.parsedOptions:void 0)&&d.scale&&(c*=d.scale||1),a.push({type:w.literal,value:r.getNumberFormat(t,d).format(c)});else{if(zt(u)){var p=u.children,m=u.value,f=n[m];if("function"!=typeof f)throw new Ir(m,"function",s);m=f(Yr(p,t,r,i,n,o).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?w.literal:w.object,value:e}}))}if(Ft(u)){if(!(_=u.options[c]||u.options.other))throw new Nr(u.value,c,Object.keys(u.options),s);a.push.apply(a,Yr(_.value,t,r,i,n))}else if(Yt(u)){if(!(_=u.options["=".concat(c)])){if(!Intl.PluralRules)throw new Mr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Er.MISSING_INTL_API,s);var f=r.getPluralRules(t,{type:u.pluralType}).select(c-(u.offset||0)),_=u.options[f]||u.options.other}if(!_)throw new Nr(u.value,c,Object.keys(u.options),s);a.push.apply(a,Yr(_.value,t,r,i,n,c-(u.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===w.literal&&t.type===w.literal?r.value+=t.value:e.push(t),e},[])}function zr(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(n=w=w||{})[n.literal=0]="literal",n[n.object=1]="object";Object.defineProperty(x,"defaultLocale",{get:function(){return x.memoizedDefaultLocale||(x.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),x.memoizedDefaultLocale},enumerable:!1,configurable:!0}),x.memoizedDefaultLocale=null,x.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},x.__parse=_r,x.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"}}};var Ur=x;function x(e,t,r,i){var n,o,s=this;if(void 0===t&&(t=x.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=s.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===w.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return Yr(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=x.resolveLocale(t),"string"==typeof e){if(this.message=e,!x.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=x.__parse(e,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(n=x.formats,(o=r)?Object.keys(n).reduce(function(e,t){var r,i;return e[t]=(r=n[t],(i=o[t])?_(_(_({},r||{}),i||{}),Object.keys(r).reduce(function(e,t){return e[t]=_(_({},r[t]),i[t]||{}),e},{})):r),e},_({},n)):n),this.formatters=i&&i.formatters||{getNumberFormat:yr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,It([void 0],t,!1)))},{cache:zr((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Cr.variadic}),getDateTimeFormat:yr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,It([void 0],t,!1)))},{cache:zr(t.dateTime),strategy:Cr.variadic}),getPluralRules:yr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,It([void 0],t,!1)))},{cache:zr(t.pluralRules),strategy:Cr.variadic})}}const $r={},jr=(e,t,r)=>r&&(t in $r||($r[t]={}),e in $r[t]||($r[t][e]=r),r),Vr=(t,r)=>{if(null!=r){if(r in $r&&t in $r[r])return $r[r][t];var i=pi(r);for(let e=0;e<i.length;e++){var n=function(e,t){if(!qr(e))return null;e=function(e){return Wr[e]||null}(e),e=function(e,r){if(null!=r){if(r in e)return e[r];var i=r.split(".");let t=e;for(let e=0;e<i.length;e++)if("object"==typeof t){if(0<e){const r=i.slice(e,i.length).join(".");if(r in t){t=t[r];break}}t=t[i[e]]}else t=void 0;return t}}(e,t);return e}(i[e],t);if(n)return jr(t,r,n)}}};let Wr;const Gr=bt({});function qr(e){return e in Wr}function Kr(t,...r){delete $r[t],Gr.update(e=>(e[t]=kt.all([e[t]||{},...r]),e))}wt([Gr],([e])=>Object.keys(e)),Gr.subscribe(e=>Wr=e);const Xr={};function Zr(e){return Xr[e]}function Jr(e){return null!=e&&pi(e).some(e=>{return null==(e=Zr(e))?void 0:e.size})}function Qr(i,e){return Promise.all(e.map(e=>{return t=i,r=e,Xr[t].delete(r),0===Xr[t].size&&delete Xr[t],e().then(e=>e.default||e);var t,r})).then(e=>Kr(i,...e))}const ei={};function ti(e){var t;return Jr(e)?(t=pi(e).map(e=>{var t=Zr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),ei[e]=Promise.all(t.map(([e,t])=>Qr(e,t))).then(()=>{if(Jr(e))return ti(e);delete ei[e]}),ei[e]):e in ei?ei[e]:Promise.resolve()}const ri={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function ii(){return ri}const ni=bt(!1);var oi=Object.defineProperty,a=Object.defineProperties,c=Object.getOwnPropertyDescriptors,si=Object.getOwnPropertySymbols,ai=Object.prototype.hasOwnProperty,li=Object.prototype.propertyIsEnumerable,hi=(e,t,r)=>t in e?oi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let ui;const ci=bt(null);function di(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function pi(e,t=ri.fallbackLocale){e=di(e);return t?[...new Set([...e,...di(t)])]:e}function mi(){return null!=ui?ui:void 0}ci.subscribe(e=>{ui=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});d=((e,t)=>{for(var r in t=t||{})ai.call(t,r)&&hi(e,r,t[r]);if(si)for(var r of si(t))li.call(t,r)&&hi(e,r,t[r]);return e})({},ci);const fi=a(d,c({set:t=>{if(t&&function(e){if(null==e)return;const t=pi(e);for(let e=0;e<t.length;e++){const r=t[e];if(qr(r))return r}}(t)&&Jr(t)){const{loadingDelay:r}=ii();let e;return"undefined"!=typeof window&&null!=mi()&&r?e=window.setTimeout(()=>ni.set(!0),r):ni.set(!0),ti(t).then(()=>{ci.set(t)}).finally(()=>{clearTimeout(e),ni.set(!1)})}return ci.set(t)}})),_i=r=>{const i=Object.create(null);return e=>{var t=JSON.stringify(e);return t in i?i[t]:i[t]=r(e)}};var yi=Object.defineProperty,vi=Object.getOwnPropertySymbols,gi=Object.prototype.hasOwnProperty,bi=Object.prototype.propertyIsEnumerable,wi=(e,t,r)=>t in e?yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xi=(e,t)=>{for(var r in t=t||{})gi.call(t,r)&&wi(e,r,t[r]);if(vi)for(var r of vi(t))bi.call(t,r)&&wi(e,r,t[r]);return e},Ei=(e,t)=>{var r={};for(i in e)gi.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&vi)for(var i of vi(e))t.indexOf(i)<0&&bi.call(e,i)&&(r[i]=e[i]);return r};const Ai=(e,t)=>{var r=ri["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Si=_i(e=>{var{locale:t,format:r}=e,e=Ei(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Ai("number",r)),new Intl.NumberFormat(t,e)}),Ci=_i(e=>{var{locale:t,format:r}=e,e=Ei(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Ai("date",r):0===Object.keys(e).length&&(e=Ai("date","short")),new Intl.DateTimeFormat(t,e)}),Ti=_i(e=>{var{locale:t,format:r}=e,e=Ei(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Ai("time",r):0===Object.keys(e).length&&(e=Ai("time","short")),new Intl.DateTimeFormat(t,e)}),Di=_i((e,t=mi())=>new Ur(e,t,ri.formats,{ignoreTag:ri.ignoreTag})),Pi=wt([fi,Gr],()=>(e,t={})=>{var r,i;let n=t;"object"==typeof e&&(e=(n=e).id);var{values:o,locale:s=mi(),default:a}=n;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Vr(e,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(i=null!=(r=null==(r=(i=ri).handleMissingMessage)?void 0:r.call(i,{locale:s,id:e,defaultValue:a}))?r:a)?i:e;if(!o)return l;let h=l;try{h=Di(l,s).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h});wt([fi],()=>(e,t)=>((e={})=>{var{locale:t=mi()}=e,e=Ei(e,["locale"]);return Ti(xi({locale:t},e))})(t).format(e)),wt([fi],()=>(e,t)=>((e={})=>{var{locale:t=mi()}=e,e=Ei(e,["locale"]);return Ci(xi({locale:t},e))})(t).format(e)),wt([fi],()=>(e,t)=>((e={})=>{var{locale:t=mi()}=e,e=Ei(e,["locale"]);return Si(xi({locale:t},e))})(t).format(e)),wt([fi,Gr],()=>(e,t=mi())=>Vr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==yt.indexOf(e)&&(t=new mt(t),vt[e]=t,yt.push(e)),vt[e]}};Oi=ki={path:void 0,exports:{},require:function(e,t){return kr(null==t&&ki.path)}},ki.exports,Oi.exports=function(){var H;function m(){return H.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function R(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function B(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(f(e,t))return;return 1}function a(e){return void 0===e}function F(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function Y(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function z(e,t){for(var r=[],i=e.length,n=0;n<i;++n)r.push(t(e[n],n));return r}function U(e,t){for(var r in t)f(t,r)&&(e[r]=t[r]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,r,i){return Ot(e,t,r,i,!0).utc()}function _(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function $(e){if(null==e._isValid){var t=_(e),r=V.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function j(e){var t=h(NaN);return null!=e?U(_(t),e):_(t).userInvalidated=!0,t}var V=Array.prototype.some||function(e){for(var t=Object(this),r=t.length>>>0,i=0;i<r;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1},W=m.momentProperties=[],G=!1;function q(e,t){var r,i,n,o=W.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=_(t)),a(t._locale)||(e._locale=t._locale),0<o)for(r=0;r<o;r++)a(n=t[i=W[r]])||(e[i]=n);return e}function K(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===G&&(G=!0,m.updateOffset(this),G=!1)}function l(e){return e instanceof K||null!=e&&null!=e._isAMomentObject}function X(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(o,s){var a=!0;return U(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,o),a){for(var e,t,r=[],i=arguments.length,n=0;n<i;n++){if(e="","object"==typeof arguments[n]){for(t in e+="\n["+n+"] ",arguments[0])f(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[n];r.push(e)}X(o+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var Z={};function J(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),Z[e]||(X(t),Z[e]=!0)}function u(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var r,i=U({},e);for(r in t)f(t,r)&&(R(e[r])&&R(t[r])?(i[r]={},U(i[r],e[r]),U(i[r],t[r])):null!=t[r]?i[r]=t[r]:delete i[r]);for(r in e)f(e,r)&&!f(t,r)&&R(e[r])&&(i[r]=U({},i[r]));return i}function ee(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var te=Object.keys||function(e){var t,r=[];for(t in e)f(e,t)&&r.push(t);return r};function o(e,t,r){var i=""+Math.abs(e);return(0<=e?r?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}var re=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ie=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ne={},oe={};function i(e,t,r,i){var n="string"==typeof i?function(){return this[i]()}:i;e&&(oe[e]=n),t&&(oe[t[0]]=function(){return o(n.apply(this,arguments),t[1],t[2])}),r&&(oe[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function se(e,t){return e.isValid()?(t=ae(t,e.localeData()),ne[t]=ne[t]||function(i){for(var e,n=i.match(re),t=0,o=n.length;t<o;t++)oe[n[t]]?n[t]=oe[n[t]]:n[t]=(e=n[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",r=0;r<o;r++)t+=u(n[r])?n[r].call(e,i):n[r];return t}}(t),ne[t](e)):e.localeData().invalidDate()}function ae(e,t){var r=5;function i(e){return t.longDateFormat(e)||e}for(ie.lastIndex=0;0<=r&&ie.test(e);)e=e.replace(ie,i),ie.lastIndex=0,--r;return e}var le={};function t(e,t){var r=e.toLowerCase();le[r]=le[r+"s"]=le[t]=e}function c(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function he(e){var t,r,i={};for(r in e)f(e,r)&&(t=c(r))&&(i[t]=e[r]);return i}var ue={};function r(e,t){ue[e]=t}function ce(e){return e%4==0&&e%100!=0||e%400==0}function d(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function p(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?d(e):t}function de(t,r){return function(e){return null!=e?(me(this,t,e),m.updateOffset(this,r),this):pe(this,t)}}function pe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&ce(e.year())&&1===e.month()&&29===e.date()?(r=p(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),Ie(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}var n=/\d/,y=/\d\d/,fe=/\d{3}/,_e=/\d{4}/,ye=/[+-]?\d{6}/,v=/\d\d?/,ve=/\d\d\d\d?/,ge=/\d\d\d\d\d\d?/,be=/\d{1,3}/,we=/\d{1,4}/,xe=/[+-]?\d{1,6}/,Ee=/\d+/,Ae=/[+-]?\d+/,Se=/Z|[+-]\d\d:?\d\d/gi,Ce=/Z|[+-]\d\d(?::?\d\d)?/gi,g=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function b(e,r,i){De[e]=u(r)?r:function(e,t){return e&&i?i:r}}function Te(e,t){return f(De,e)?De[e](t._strict,t._locale):new RegExp(w(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,i,n){return t||r||i||n})))}function w(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var De={},Pe={};function x(e,r){var t,i,n=r;for("string"==typeof e&&(e=[e]),F(r)&&(n=function(e,t){t[r]=p(e)}),i=e.length,t=0;t<i;t++)Pe[e[t]]=n}function ke(e,n){x(e,function(e,t,r,i){r._w=r._w||{},n(e,r._w,r,i)})}var E,A=0,S=1,C=2,T=3,D=4,P=5,Oe=6,Me=7,Ne=8;function Ie(e,t){var r;return isNaN(e)||isNaN(t)?NaN:(r=(t%(r=12)+r)%r,e+=(t-r)/12,1==r?ce(e)?29:28:31-r%7%2)}E=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},i("M",["MM",2],"Mo",function(){return this.month()+1}),i("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),i("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),r("month",8),b("M",v),b("MM",v,y),b("MMM",function(e,t){return t.monthsShortRegex(e)}),b("MMMM",function(e,t){return t.monthsRegex(e)}),x(["M","MM"],function(e,t){t[S]=p(e)-1}),x(["MMM","MMMM"],function(e,t,r,i){i=r._locale.monthsParse(e,i,r._strict);null!=i?t[S]=i:_(r).invalidMonth=e});var Le="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),He="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Be=g,Fe=g;function Ye(e,t){var r;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=p(t);else if(!F(t=e.localeData().monthsParse(t)))return;r=Math.min(e.date(),Ie(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r)}}function ze(e){return null!=e?(Ye(this,e),m.updateOffset(this,!0),this):pe(this,"Month")}function Ue(){function e(e,t){return t.length-e.length}for(var t,r=[],i=[],n=[],o=0;o<12;o++)t=h([2e3,o]),r.push(this.monthsShort(t,"")),i.push(this.months(t,"")),n.push(this.months(t,"")),n.push(this.monthsShort(t,""));for(r.sort(e),i.sort(e),n.sort(e),o=0;o<12;o++)r[o]=w(r[o]),i[o]=w(i[o]);for(o=0;o<24;o++)n[o]=w(n[o]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function $e(e){return ce(e)?366:365}i("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),i(0,["YY",2],0,function(){return this.year()%100}),i(0,["YYYY",4],0,"year"),i(0,["YYYYY",5],0,"year"),i(0,["YYYYYY",6,!0],0,"year"),t("year","y"),r("year",1),b("Y",Ae),b("YY",v,y),b("YYYY",we,_e),b("YYYYY",xe,ye),b("YYYYYY",xe,ye),x(["YYYYY","YYYYYY"],A),x("YYYY",function(e,t){t[A]=2===e.length?m.parseTwoDigitYear(e):p(e)}),x("YY",function(e,t){t[A]=m.parseTwoDigitYear(e)}),x("Y",function(e,t){t[A]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return p(e)+(68<p(e)?1900:2e3)};var je=de("FullYear",!0);function Ve(e,t,r,i,n,o,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,r,i,n,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,r,i,n,o,s),a}function We(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ge(e,t,r){r=7+t-r;return-(7+We(e,0,r).getUTCDay()-t)%7+r-1}function qe(e,t,r,i,n){var o,t=1+7*(t-1)+(7+r-i)%7+Ge(e,i,n),r=t<=0?$e(o=e-1)+t:t>$e(e)?(o=e+1,t-$e(e)):(o=e,t);return{year:o,dayOfYear:r}}function Ke(e,t,r){var i,n,o=Ge(e.year(),t,r),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?i=o+k(n=e.year()-1,t,r):o>k(e.year(),t,r)?(i=o-k(e.year(),t,r),n=e.year()+1):(n=e.year(),i=o),{week:i,year:n}}function k(e,t,r){var i=Ge(e,t,r),t=Ge(e+1,t,r);return($e(e)-i+t)/7}i("w",["ww",2],"wo","week"),i("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),r("week",5),r("isoWeek",5),b("w",v),b("ww",v,y),b("W",v),b("WW",v,y),ke(["w","ww","W","WW"],function(e,t,r,i){t[i.substr(0,1)]=p(e)});function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}i("d",0,"do","day"),i("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),i("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),i("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),i("e",0,0,"weekday"),i("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),r("day",11),r("weekday",11),r("isoWeekday",11),b("d",v),b("e",v),b("E",v),b("dd",function(e,t){return t.weekdaysMinRegex(e)}),b("ddd",function(e,t){return t.weekdaysShortRegex(e)}),b("dddd",function(e,t){return t.weekdaysRegex(e)}),ke(["dd","ddd","dddd"],function(e,t,r,i){i=r._locale.weekdaysParse(e,i,r._strict);null!=i?t.d=i:_(r).invalidWeekday=e}),ke(["d","e","E"],function(e,t,r,i){t[i]=p(e)});var Ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=g,tt=g,rt=g;function it(){function e(e,t){return t.length-e.length}for(var t,r,i,n=[],o=[],s=[],a=[],l=0;l<7;l++)i=h([2e3,1]).day(l),t=w(this.weekdaysMin(i,"")),r=w(this.weekdaysShort(i,"")),i=w(this.weekdays(i,"")),n.push(t),o.push(r),s.push(i),a.push(t),a.push(r),a.push(i);n.sort(e),o.sort(e),s.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function nt(){return this.hours()%12||12}function ot(e,t){i(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function st(e,t){return t._meridiemParse}i("H",["HH",2],0,"hour"),i("h",["hh",2],0,nt),i("k",["kk",2],0,function(){return this.hours()||24}),i("hmm",0,0,function(){return""+nt.apply(this)+o(this.minutes(),2)}),i("hmmss",0,0,function(){return""+nt.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),i("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),i("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),ot("a",!0),ot("A",!1),t("hour","h"),r("hour",13),b("a",st),b("A",st),b("H",v),b("h",v),b("k",v),b("HH",v,y),b("hh",v,y),b("kk",v,y),b("hmm",ve),b("hmmss",ge),b("Hmm",ve),b("Hmmss",ge),x(["H","HH"],T),x(["k","kk"],function(e,t,r){e=p(e);t[T]=24===e?0:e}),x(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),x(["h","hh"],function(e,t,r){t[T]=p(e),_(r).bigHour=!0}),x("hmm",function(e,t,r){var i=e.length-2;t[T]=p(e.substr(0,i)),t[D]=p(e.substr(i)),_(r).bigHour=!0}),x("hmmss",function(e,t,r){var i=e.length-4,n=e.length-2;t[T]=p(e.substr(0,i)),t[D]=p(e.substr(i,2)),t[P]=p(e.substr(n)),_(r).bigHour=!0}),x("Hmm",function(e,t,r){var i=e.length-2;t[T]=p(e.substr(0,i)),t[D]=p(e.substr(i))}),x("Hmmss",function(e,t,r){var i=e.length-4,n=e.length-2;t[T]=p(e.substr(0,i)),t[D]=p(e.substr(i,2)),t[P]=p(e.substr(n))});g=de("Hours",!0);var at,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Le,monthsShort:He,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},O={},ht={};function ut(e){return e&&e.toLowerCase().replace("_","-")}function ct(e){for(var t,r,i,n,o=0;o<e.length;){for(t=(n=ut(e[o]).split("-")).length,r=(r=ut(e[o+1]))?r.split("-"):null;0<t;){if(i=dt(n.slice(0,t).join("-")))return i;if(r&&r.length>=t&&function(e,t){for(var r=Math.min(e.length,t.length),i=0;i<r;i+=1)if(e[i]!==t[i])return i;return r}(n,r)>=t-1)break;t--}o++}return at}function dt(t){var e;if(void 0===O[t]&&Oi&&Oi.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,kr(),pt(e)}catch(e){O[t]=null}return O[t]}function pt(e,t){return e&&((t=a(t)?M(e):mt(e,t))?at=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function mt(e,t){if(null===t)return delete O[e],null;var r,i=lt;if(t.abbr=e,null!=O[e])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=O[e]._config;else if(null!=t.parentLocale)if(null!=O[t.parentLocale])i=O[t.parentLocale]._config;else{if(null==(r=dt(t.parentLocale)))return ht[t.parentLocale]||(ht[t.parentLocale]=[]),ht[t.parentLocale].push({name:e,config:t}),null;i=r._config}return O[e]=new ee(Q(i,t)),ht[e]&&ht[e].forEach(function(e){mt(e.name,e.config)}),pt(e),O[e]}function M(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return at;if(!s(e)){if(t=dt(e))return t;e=[e]}return ct(e)}function ft(e){var t=e._a;return t&&-2===_(e).overflow&&(t=t[S]<0||11<t[S]?S:t[C]<1||t[C]>Ie(t[A],t[S])?C:t[T]<0||24<t[T]||24===t[T]&&(0!==t[D]||0!==t[P]||0!==t[Oe])?T:t[D]<0||59<t[D]?D:t[P]<0||59<t[P]?P:t[Oe]<0||999<t[Oe]?Oe:-1,_(e)._overflowDayOfYear&&(t<A||C<t)&&(t=C),_(e)._overflowWeeks&&-1===t&&(t=Me),_(e)._overflowWeekday&&-1===t&&(t=Ne),_(e).overflow=t),e}var _t=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,gt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((-?\d+)/i,xt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Et={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function At(e){var t,r,i,n,o,s,a=e._i,l=_t.exec(a)||yt.exec(a),a=gt.length,h=bt.length;if(l){for(_(e).iso=!0,t=0,r=a;t<r;t++)if(gt[t][1].exec(l[1])){n=gt[t][0],i=!1!==gt[t][2];break}if(null==n)return e._isValid=!1;if(l[3]){for(t=0,r=h;t<r;t++)if(bt[t][1].exec(l[3])){o=(l[2]||" ")+bt[t][0];break}if(null==o)return e._isValid=!1}if(!i&&null!=o)return e._isValid=!1;if(l[4]){if(!vt.exec(l[4]))return e._isValid=!1;s="Z"}e._f=n+(o||"")+(s||""),Pt(e)}else e._isValid=!1}function St(e,t,r,i,n,o){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),He.indexOf(t),parseInt(r,10),parseInt(i,10),parseInt(n,10)];return o&&e.push(parseInt(o,10)),e}function Ct(e){var t,r,i,n,o=xt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=St(o[4],o[3],o[2],o[5],o[6],o[7]),r=o[1],i=t,n=e,r&&Je.indexOf(r)!==new Date(i[0],i[1],i[2]).getDay()?(_(n).weekdayMismatch=!0,n._isValid=!1):(e._a=t,e._tzm=(r=o[8],i=o[9],n=o[10],r?Et[r]:i?0:((r=parseInt(n,10))-(i=r%100))/100*60+i),e._d=We.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0)):e._isValid=!1}function Tt(e,t,r){return null!=e?e:null!=t?t:r}function Dt(e){var t,r,i,n,o,s,a,l,h,u,c,d=[];if(!e._d){for(u=e,c=new Date(m.now()),r=u._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()],e._w&&null==e._a[C]&&null==e._a[S]&&(null!=(c=(u=e)._w).GG||null!=c.W||null!=c.E?(s=1,a=4,i=Tt(c.GG,u._a[A],Ke(N(),1,4).year),n=Tt(c.W,1),((o=Tt(c.E,1))<1||7<o)&&(l=!0)):(s=u._locale._week.dow,a=u._locale._week.doy,h=Ke(N(),s,a),i=Tt(c.gg,u._a[A],h.year),n=Tt(c.w,h.week),null!=c.d?((o=c.d)<0||6<o)&&(l=!0):null!=c.e?(o=c.e+s,(c.e<0||6<c.e)&&(l=!0)):o=s),n<1||n>k(i,s,a)?_(u)._overflowWeeks=!0:null!=l?_(u)._overflowWeekday=!0:(h=qe(i,n,o,s,a),u._a[A]=h.year,u._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(c=Tt(e._a[A],r[A]),(e._dayOfYear>$e(c)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),l=We(c,0,e._dayOfYear),e._a[S]=l.getUTCMonth(),e._a[C]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=r[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[T]&&0===e._a[D]&&0===e._a[P]&&0===e._a[Oe]&&(e._nextDay=!0,e._a[T]=0),e._d=(e._useUTC?We:Ve).apply(null,d),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[T]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(_(e).weekdayMismatch=!0)}}function Pt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],_(e).empty=!0;for(var t,r,i,n=""+e._i,o=n.length,s=0,a=(r=ae(e._f,e._locale).match(re)||[]).length,l=0;l<a;l++)i=r[l],(t=(n.match(Te(i,e))||[])[0])&&(0<(c=n.substr(0,n.indexOf(t))).length&&_(e).unusedInput.push(c),n=n.slice(n.indexOf(t)+t.length),s+=t.length),oe[i]?(t?_(e).empty=!1:_(e).unusedTokens.push(i),c=i,p=e,null!=(d=t)&&f(Pe,c)&&Pe[c](d,p._a,p,c)):e._strict&&!t&&_(e).unusedTokens.push(i);_(e).charsLeftOver=o-s,0<n.length&&_(e).unusedInput.push(n),e._a[T]<=12&&!0===_(e).bigHour&&0<e._a[T]&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[T]=(o=e._locale,h=e._a[T],null==(u=e._meridiem)?h:null!=o.meridiemHour?o.meridiemHour(h,u):null!=o.isPM?((o=o.isPM(u))&&h<12&&(h+=12),h=o||12!==h?h:0):h),null!==(u=_(e).era)&&(e._a[A]=e._locale.erasConvertYear(u,e._a[A])),Dt(e),ft(e)}else Ct(e);else At(e);var h,u,c,d,p}function kt(e){var t,r=e._i,i=e._f;{var n,o;return(e._locale=e._locale||M(e._l),null===r||void 0===i&&""===r)?j({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),l(r)?new K(ft(r)):(Y(r)?e._d=r:s(i)?function(e){var t,r,i,n,o,s,a=!1,l=e._f.length;if(0===l)return _(e).invalidFormat=!0,e._d=new Date(NaN);for(n=0;n<l;n++)o=0,s=!1,t=q({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[n],Pt(t),$(t)&&(s=!0),o=(o+=_(t).charsLeftOver)+10*_(t).unusedTokens.length,_(t).score=o,a?o<i&&(i=o,r=t):(null==i||o<i||s)&&(i=o,r=t,s)&&(a=!0);U(e,r||t)}(e):i?Pt(e):a(i=(r=e)._i)?r._d=new Date(m.now()):Y(i)?r._d=new Date(i.valueOf()):"string"==typeof i?(n=r,null===(o=wt.exec(n._i))?(At(n),!1===n._isValid&&(delete n._isValid,Ct(n),!1===n._isValid)&&(delete n._isValid,n._strict?n._isValid=!1:m.createFromInputFallback(n))):n._d=new Date(+o[1])):s(i)?(r._a=z(i.slice(0),function(e){return parseInt(e,10)}),Dt(r)):R(i)?(n=r)._d||(t=void 0===(o=he(n._i)).day?o.date:o.day,n._a=z([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),Dt(n)):F(i)?r._d=new Date(i):m.createFromInputFallback(r),$(e)||(e._d=null),e))}}function Ot(e,t,r,i,n){var o={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==r&&!1!==r||(i=r,r=void 0),(R(e)&&B(e)||s(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=n,o._l=r,o._i=e,o._f=t,o._strict=i,(n=new K(ft(kt(n=o))))._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function N(e,t,r,i){return Ot(e,t,r,i,!1)}m.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};ve=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=N.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:j()}),ge=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=N.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:j()});function Mt(e,t){var r,i;if(!(t=1===t.length&&s(t[0])?t[0]:t).length)return N();for(r=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](r)||(r=t[i]);return r}var Nt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function It(e){var e=he(e),t=e.year||0,r=e.quarter||0,i=e.month||0,n=e.week||e.isoWeek||0,o=e.day||0,s=e.hour||0,a=e.minute||0,l=e.second||0,h=e.millisecond||0;this._isValid=function(e){var t,r,i=!1,n=Nt.length;for(t in e)if(f(e,t)&&(-1===E.call(Nt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<n;++r)if(e[Nt[r]]){if(i)return!1;parseFloat(e[Nt[r]])!==p(e[Nt[r]])&&(i=!0)}return!0}(e),this._milliseconds=+h+1e3*l+6e4*a+1e3*s*60*60,this._days=+o+7*n,this._months=+i+3*r+12*t,this._data={},this._locale=M(),this._bubble()}function Lt(e){return e instanceof It}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Rt(e,r){i(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+o(~~(e/60),2)+r+o(~~e%60,2)})}Rt("Z",":"),Rt("ZZ",""),b("Z",Ce),b("ZZ",Ce),x(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Ft(Ce,e)});var Bt=/([\+\-]|\d\d)/gi;function Ft(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Bt)||["-",0,0])[1]+p(e[2]))?0:"+"===e[0]?t:-t}function Yt(e,t){var r;return t._isUTC?(t=t.clone(),r=(l(e)||Y(e)?e:N(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+r),m.updateOffset(t,!1),t):N(e).local()}function zt(e){return-Math.round(e._d.getTimezoneOffset())}function Ut(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var $t=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function I(e,t){var r,i,n=e;return Lt(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:F(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(t=$t.exec(e))?(r="-"===t[1]?-1:1,n={y:0,d:p(t[C])*r,h:p(t[T])*r,m:p(t[D])*r,s:p(t[P])*r,ms:p(Ht(1e3*t[Oe]))*r}):(t=jt.exec(e))?(r="-"===t[1]?-1:1,n={y:Vt(t[2],r),M:Vt(t[3],r),w:Vt(t[4],r),d:Vt(t[5],r),h:Vt(t[6],r),m:Vt(t[7],r),s:Vt(t[8],r)}):null==n?n={}:"object"==typeof n&&("from"in n||"to"in n)&&(t=N(n.from),r=N(n.to),t=t.isValid()&&r.isValid()?(r=Yt(r,t),t.isBefore(r)?i=Wt(t,r):((i=Wt(r,t)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0},(n={}).ms=t.milliseconds,n.M=t.months),i=new It(n),Lt(e)&&f(e,"_locale")&&(i._locale=e._locale),Lt(e)&&f(e,"_isValid")&&(i._isValid=e._isValid),i}function Vt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Wt(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Gt(i,n){return function(e,t){var r;return null===t||isNaN(+t)||(J(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=e,e=t,t=r),qt(this,I(e,t),i),this}}function qt(e,t,r,i){var n=t._milliseconds,o=Ht(t._days),t=Ht(t._months);e.isValid()&&(i=null==i||i,t&&Ye(e,pe(e,"Month")+t*r),o&&me(e,"Date",pe(e,"Date")+o*r),n&&e._d.setTime(e._d.valueOf()+n*r),i)&&m.updateOffset(e,o||t)}I.fn=It.prototype,I.invalid=function(){return I(NaN)};Le=Gt(1,"add"),Ze=Gt(-1,"subtract");function Kt(e){return"string"==typeof e||e instanceof String}function Xt(e){return l(e)||Y(e)||Kt(e)||F(e)||(r=s(t=e),i=!1,r&&(i=0===t.filter(function(e){return!F(e)&&Kt(t)}).length),r&&i)||function(e){var t,r,i=R(e)&&!B(e),n=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=o.length;for(t=0;t<s;t+=1)r=o[t],n=n||f(e,r);return i&&n}(e)||null==e;var t,r,i}function Zt(e,t){var r,i;return e.date()<t.date()?-Zt(t,e):-((r=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(i=e.clone().add(r,"months"))<0?(t-i)/(i-e.clone().add(r-1,"months")):(t-i)/(e.clone().add(1+r,"months")-i)))||0}function Jt(e){return void 0===e?this._locale._abbr:(null!=(e=M(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var er=126227808e5;function tr(e,t){return(e%t+t)%t}function rr(e,t,r){return e<100&&0<=e?new Date(e+400,t,r)-er:new Date(e,t,r).valueOf()}function ir(e,t,r){return e<100&&0<=e?Date.UTC(e+400,t,r)-er:Date.UTC(e,t,r)}function nr(e,t){return t.erasAbbrRegex(e)}function or(){for(var e=[],t=[],r=[],i=[],n=this.eras(),o=0,s=n.length;o<s;++o)t.push(w(n[o].name)),e.push(w(n[o].abbr)),r.push(w(n[o].narrow)),i.push(w(n[o].name)),i.push(w(n[o].abbr)),i.push(w(n[o].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function sr(e,t){i(0,[e,e.length],0,t)}function ar(e,t,r,i,n){var o;return null==e?Ke(this,i,n).year:(t>(o=k(e,i,n))&&(t=o),function(e,t,r,i,n){e=qe(e,t,r,i,n),t=We(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,r,i,n))}i("N",0,0,"eraAbbr"),i("NN",0,0,"eraAbbr"),i("NNN",0,0,"eraAbbr"),i("NNNN",0,0,"eraName"),i("NNNNN",0,0,"eraNarrow"),i("y",["y",1],"yo","eraYear"),i("y",["yy",2],0,"eraYear"),i("y",["yyy",3],0,"eraYear"),i("y",["yyyy",4],0,"eraYear"),b("N",nr),b("NN",nr),b("NNN",nr),b("NNNN",function(e,t){return t.erasNameRegex(e)}),b("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),x(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,i){i=r._locale.erasParse(e,i,r._strict);i?_(r).era=i:_(r).invalidEra=e}),b("y",Ee),b("yy",Ee),b("yyy",Ee),b("yyyy",Ee),b("yo",function(e,t){return t._eraYearOrdinalRegex||Ee}),x(["y","yy","yyy","yyyy"],A),x(["yo"],function(e,t,r,i){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[A]=r._locale.eraYearOrdinalParse(e,n):t[A]=parseInt(e,10)}),i(0,["gg",2],0,function(){return this.weekYear()%100}),i(0,["GG",2],0,function(){return this.isoWeekYear()%100}),sr("gggg","weekYear"),sr("ggggg","weekYear"),sr("GGGG","isoWeekYear"),sr("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),r("weekYear",1),r("isoWeekYear",1),b("G",Ae),b("g",Ae),b("GG",v,y),b("gg",v,y),b("GGGG",we,_e),b("gggg",we,_e),b("GGGGG",xe,ye),b("ggggg",xe,ye),ke(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,i){t[i.substr(0,2)]=p(e)}),ke(["gg","GG"],function(e,t,r,i){t[i]=m.parseTwoDigitYear(e)}),i("Q",0,"Qo","quarter"),t("quarter","Q"),r("quarter",7),b("Q",n),x("Q",function(e,t){t[S]=3*(p(e)-1)}),i("D",["DD",2],"Do","date"),t("date","D"),r("date",9),b("D",v),b("DD",v,y),b("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),x(["D","DD"],C),x("Do",function(e,t){t[C]=p(e.match(v)[0])});we=de("Date",!0);i("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),r("dayOfYear",4),b("DDD",be),b("DDDD",fe),x(["DDD","DDDD"],function(e,t,r){r._dayOfYear=p(e)}),i("m",["mm",2],0,"minute"),t("minute","m"),r("minute",14),b("m",v),b("mm",v,y),x(["m","mm"],D);_e=de("Minutes",!1);i("s",["ss",2],0,"second"),t("second","s"),r("second",15),b("s",v),b("ss",v,y),x(["s","ss"],P);var lr,xe=de("Seconds",!1);for(i("S",0,0,function(){return~~(this.millisecond()/100)}),i(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),i(0,["SSS",3],0,"millisecond"),i(0,["SSSS",4],0,function(){return 10*this.millisecond()}),i(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),i(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),i(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),i(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),i(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),r("millisecond",16),b("S",be,n),b("SS",be,y),b("SSS",be,fe),lr="SSSS";lr.length<=9;lr+="S")b(lr,Ee);function hr(e,t){t[Oe]=p(1e3*("0."+e))}for(lr="S";lr.length<=9;lr+="S")x(lr,hr);ye=de("Milliseconds",!1),i("z",0,0,"zoneAbbr"),i("zz",0,0,"zoneName");n=K.prototype;function ur(e){return e}n.add=Le,n.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=R(e)&&!B(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n=0;n<i.length;n+=1)r=r||f(e,i[n]);return t&&r}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||N(),r=Yt(e,this).startOf("day"),r=m.calendarFormat(this,r)||"sameElse",t=t&&(u(t[r])?t[r].call(this,e):t[r]);return this.format(t||this.localeData().calendar(r,this,N(e)))},n.clone=function(){return new K(this)},n.diff=function(e,t,r){var i,n,o;if(!this.isValid())return NaN;if(!(i=Yt(e,this)).isValid())return NaN;switch(n=6e4*(i.utcOffset()-this.utcOffset()),t=c(t)){case"year":o=Zt(this,i)/12;break;case"month":o=Zt(this,i);break;case"quarter":o=Zt(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-n)/864e5;break;case"week":o=(this-i-n)/6048e5;break;default:o=this-i}return r?o:d(o)},n.endOf=function(e){var t,r;if(void 0!==(e=c(e))&&"millisecond"!==e&&this.isValid()){switch(r=this._isUTC?ir:rr,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tr(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tr(t,1e3)-1}this._d.setTime(t),m.updateOffset(this,!0)}return this},n.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=se(this,e),this.localeData().postformat(e)},n.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||N(e).isValid())?I({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},n.fromNow=function(e){return this.from(N(),e)},n.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||N(e).isValid())?I({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},n.toNow=function(e){return this.to(N(),e)},n.get=function(e){return u(this[e=c(e)])?this[e]():this},n.invalidAt=function(){return _(this).overflow},n.isAfter=function(e,t){return e=l(e)?e:N(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=c(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},n.isBefore=function(e,t){return e=l(e)?e:N(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=c(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},n.isBetween=function(e,t,r,i){return e=l(e)?e:N(e),t=l(t)?t:N(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(i=i||"()")[0]?this.isAfter(e,r):!this.isBefore(e,r))&&(")"===i[1]?this.isBefore(t,r):!this.isAfter(t,r))},n.isSame=function(e,t){var e=l(e)?e:N(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=c(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},n.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},n.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},n.isValid=function(){return $(this)},n.lang=Qe,n.locale=Jt,n.localeData=Qt,n.max=ge,n.min=ve,n.parsingFlags=function(){return U({},_(this))},n.set=function(e,t){if("object"==typeof e)for(var r=function(e){var t,r=[];for(t in e)f(e,t)&&r.push({unit:t,priority:ue[t]});return r.sort(function(e,t){return e.priority-t.priority}),r}(e=he(e)),i=r.length,n=0;n<i;n++)this[r[n].unit](e[r[n].unit]);else if(u(this[e=c(e)]))return this[e](t);return this},n.startOf=function(e){var t,r;if(void 0!==(e=c(e))&&"millisecond"!==e&&this.isValid()){switch(r=this._isUTC?ir:rr,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tr(t,6e4);break;case"second":t=this._d.valueOf(),t-=tr(t,1e3)}this._d.setTime(t),m.updateOffset(this,!0)}return this},n.subtract=Ze,n.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},n.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},n.toDate=function(){return new Date(this.valueOf())},n.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?se(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):u(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",se(t,"Z")):se(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},n.inspect=function(){var e,t,r;return this.isValid()?(t="moment",r="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(r+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},n.eraName=function(){for(var e,t=this.localeData().eras(),r=0,i=t.length;r<i;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].name;if(t[r].until<=e&&e<=t[r].since)return t[r].name}return""},n.eraNarrow=function(){for(var e,t=this.localeData().eras(),r=0,i=t.length;r<i;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].narrow;if(t[r].until<=e&&e<=t[r].since)return t[r].narrow}return""},n.eraAbbr=function(){for(var e,t=this.localeData().eras(),r=0,i=t.length;r<i;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].abbr;if(t[r].until<=e&&e<=t[r].since)return t[r].abbr}return""},n.eraYear=function(){for(var e,t,r=this.localeData().eras(),i=0,n=r.length;i<n;++i)if(e=r[i].since<=r[i].until?1:-1,t=this.clone().startOf("day").valueOf(),r[i].since<=t&&t<=r[i].until||r[i].until<=t&&t<=r[i].since)return(this.year()-m(r[i].since).year())*e+r[i].offset;return this.year()},n.year=je,n.isLeapYear=function(){return ce(this.year())},n.weekYear=function(e){return ar.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},n.isoWeekYear=function(e){return ar.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},n.quarter=n.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},n.month=ze,n.daysInMonth=function(){return Ie(this.year(),this.month())},n.week=n.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},n.isoWeek=n.isoWeeks=function(e){var t=Ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},n.weeksInYear=function(){var e=this.localeData()._week;return k(this.year(),e.dow,e.doy)},n.weeksInWeekYear=function(){var e=this.localeData()._week;return k(this.weekYear(),e.dow,e.doy)},n.isoWeeksInYear=function(){return k(this.year(),1,4)},n.isoWeeksInISOWeekYear=function(){return k(this.isoWeekYear(),1,4)},n.date=we,n.day=n.days=function(e){var t,r,i;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(r=e,i=this.localeData(),e="string"!=typeof r?r:isNaN(r)?"number"==typeof(r=i.weekdaysParse(r))?r:null:parseInt(r,10),this.add(e-t,"d")):t):null!=e?this:NaN},n.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},n.isoWeekday=function(e){var t,r;return this.isValid()?null!=e?(t=e,r=this.localeData(),r="string"==typeof t?r.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?r:r-7)):this.day()||7:null!=e?this:NaN},n.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},n.hour=n.hours=g,n.minute=n.minutes=_e,n.second=n.seconds=xe,n.millisecond=n.milliseconds=ye,n.utcOffset=function(e,t,r){var i,n=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?n:zt(this);if("string"==typeof e){if(null===(e=Ft(Ce,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(i=zt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),n!==e&&(!t||this._changeInProgress?qt(this,I(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},n.utc=function(e){return this.utcOffset(0,e)},n.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(zt(this),"m"),this},n.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Ft(Se,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},n.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?N(e).utcOffset():0,(this.utcOffset()-e)%60==0)},n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},n.isLocal=function(){return!!this.isValid()&&!this._isUTC},n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},n.isUtc=Ut,n.isUTC=Ut,n.zoneAbbr=function(){return this._isUTC?"UTC":""},n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},n.dates=e("dates accessor is deprecated. Use date instead.",we),n.months=e("months accessor is deprecated. Use month instead",ze),n.years=e("years accessor is deprecated. Use year instead",je),n.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),n.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return a(this._isDSTShifted)&&(q(t={},this),(t=kt(t))._a?(e=(t._isUTC?h:N)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,r){for(var i=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),o=0,s=0;s<i;s++)(r&&e[s]!==t[s]||!r&&p(e[s])!==p(t[s]))&&o++;return o+n}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function cr(e,t,r,i){var n=M(),i=h().set(i,t);return n[r](i,e)}function dr(e,t,r){if(F(e)&&(t=e,e=void 0),e=e||"",null!=t)return cr(e,t,r,"month");for(var i=[],n=0;n<12;n++)i[n]=cr(e,n,r,"month");return i}function pr(e,t,r,i){t=("boolean"==typeof e||(r=t=e,e=!1),F(t)&&(r=t,t=void 0),t||"");var n,o=M(),s=e?o._week.dow:0,a=[];if(null!=r)return cr(t,(r+s)%7,i,"day");for(n=0;n<7;n++)a[n]=cr(t,(n+s)%7,i,"day");return a}y.calendar=function(e,t,r){return u(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,r):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(re).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=ur,y.postformat=ur,y.relativeTime=function(e,t,r,i){var n=this._relativeTime[r];return u(n)?n(e,t,r,i):n.replace(/%d/i,e)},y.pastFuture=function(e,t){return u(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,r;for(r in e)f(e,r)&&(u(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var r,i=this._eras||M("en")._eras,n=0,o=i.length;n<o;++n)switch("string"==typeof i[n].since&&(r=m(i[n].since).startOf("day"),i[n].since=r.valueOf()),typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":r=m(i[n].until).startOf("day").valueOf(),i[n].until=r.valueOf()}return i},y.erasParse=function(e,t,r){var i,n,o,s,a,l=this.eras();for(e=e.toUpperCase(),i=0,n=l.length;i<n;++i)if(o=l[i].name.toUpperCase(),s=l[i].abbr.toUpperCase(),a=l[i].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[i];break;case"NNNN":if(o===e)return l[i];break;case"NNNNN":if(a===e)return l[i]}else if(0<=[o,s,a].indexOf(e))return l[i]},y.erasConvertYear=function(e,t){var r=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*r},y.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||or.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||or.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||or.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(s(this._months)?this._months:this._months[(this._months.isFormat||Re).test(t)?"format":"standalone"])[e.month()]:s(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(s(this._monthsShort)?this._monthsShort:this._monthsShort[Re.test(t)?"format":"standalone"])[e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,r){var i,n;if(this._monthsParseExact)return function(e,t,r){var i,n,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=h([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(n=E.call(this._shortMonthsParse,e))?n:null:-1!==(n=E.call(this._longMonthsParse,e))?n:null:"MMM"===t?-1!==(n=E.call(this._shortMonthsParse,e))||-1!==(n=E.call(this._longMonthsParse,e))?n:null:-1!==(n=E.call(this._longMonthsParse,e))||-1!==(n=E.call(this._shortMonthsParse,e))?n:null}.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(n=h([2e3,i]),r&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),r||this._monthsParse[i]||(n="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[i]=new RegExp(n.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(r&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!r&&this._monthsParse[i].test(e))return i}},y.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ue.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Fe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ue.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Be),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ke(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Xe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,r){var i,n;if(this._weekdaysParseExact)return function(e,t,r){var i,n,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(n=E.call(this._weekdaysParse,e))?n:null:"ddd"===t?-1!==(n=E.call(this._shortWeekdaysParse,e))?n:null:-1!==(n=E.call(this._minWeekdaysParse,e))?n:null:"dddd"===t?-1!==(n=E.call(this._weekdaysParse,e))||-1!==(n=E.call(this._shortWeekdaysParse,e))||-1!==(n=E.call(this._minWeekdaysParse,e))?n:null:"ddd"===t?-1!==(n=E.call(this._shortWeekdaysParse,e))||-1!==(n=E.call(this._weekdaysParse,e))||-1!==(n=E.call(this._minWeekdaysParse,e))?n:null:-1!==(n=E.call(this._minWeekdaysParse,e))||-1!==(n=E.call(this._weekdaysParse,e))||-1!==(n=E.call(this._shortWeekdaysParse,e))?n:null}.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(n=h([2e3,1]).day(i),r&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(n="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(n.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(r&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(r&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!r&&this._weekdaysParse[i].test(e))return i}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=rt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,r){return 11<e?r?"pm":"PM":r?"am":"AM"},pt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===p(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=e("moment.lang is deprecated. Use moment.locale instead.",pt),m.langData=e("moment.langData is deprecated. Use moment.localeData instead.",M);var mr=Math.abs;function fr(e,t,r,i){t=I(t,r);return e._milliseconds+=i*t._milliseconds,e._days+=i*t._days,e._months+=i*t._months,e._bubble()}function _r(e){return e<0?Math.floor(e):Math.ceil(e)}function yr(e){return 4800*e/146097}function vr(e){return 146097*e/4800}function gr(e){return function(){return this.as(e)}}be=gr("ms"),fe=gr("s"),Le=gr("m"),ge=gr("h"),ve=gr("d"),Ze=gr("w"),g=gr("M"),_e=gr("Q"),xe=gr("y");function br(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=br("milliseconds"),we=br("seconds"),je=br("minutes"),y=br("hours"),wr=br("days"),xr=br("months"),Er=br("years");var Ar=Math.round,Sr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Cr(e,t,r,i){var n=I(e).abs(),o=Ar(n.as("s")),s=Ar(n.as("m")),a=Ar(n.as("h")),l=Ar(n.as("d")),h=Ar(n.as("M")),u=Ar(n.as("w")),n=Ar(n.as("y")),o=(o<=r.ss?["s",o]:o<r.s&&["ss",o])||(s<=1?["m"]:s<r.m&&["mm",s])||(a<=1?["h"]:a<r.h&&["hh",a])||(l<=1?["d"]:l<r.d&&["dd",l]);return(o=(o=null!=r.w?o||(u<=1?["w"]:u<r.w&&["ww",u]):o)||(h<=1?["M"]:h<r.M&&["MM",h])||(n<=1?["y"]:["yy",n]))[2]=t,o[3]=0<+e,o[4]=i,function(e,t,r,i,n){return n.relativeTime(t||1,!!r,e,i)}.apply(null,o)}var Tr=Math.abs;function Dr(e){return(0<e)-(e<0)||+e}function Pr(){var e,t,r,i,n,o,s,a,l,h,u;return this.isValid()?(a=Tr(this._milliseconds)/1e3,l=Tr(this._days),h=Tr(this._months),(u=this.asSeconds())?(e=d(a/60),t=d(e/60),a%=60,e%=60,r=d(h/12),h%=12,i=a?a.toFixed(3).replace(/\.?0+$/,""):"",n=Dr(this._months)!==Dr(u)?"-":"",o=Dr(this._days)!==Dr(u)?"-":"",s=Dr(this._milliseconds)!==Dr(u)?"-":"",(u<0?"-":"")+"P"+(r?n+r+"Y":"")+(h?n+h+"M":"")+(l?o+l+"D":"")+(t||e||a?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(a?s+i+"S":"")):"P0D"):this.localeData().invalidDate()}var L=It.prototype;return L.isValid=function(){return this._isValid},L.abs=function(){var e=this._data;return this._milliseconds=mr(this._milliseconds),this._days=mr(this._days),this._months=mr(this._months),e.milliseconds=mr(e.milliseconds),e.seconds=mr(e.seconds),e.minutes=mr(e.minutes),e.hours=mr(e.hours),e.months=mr(e.months),e.years=mr(e.years),this},L.add=function(e,t){return fr(this,e,t,1)},L.subtract=function(e,t){return fr(this,e,t,-1)},L.as=function(e){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if("month"===(e=c(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,r=this._months+yr(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(vr(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},L.asMilliseconds=be,L.asSeconds=fe,L.asMinutes=Le,L.asHours=ge,L.asDays=ve,L.asWeeks=Ze,L.asMonths=g,L.asQuarters=_e,L.asYears=xe,L.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*p(this._months/12):NaN},L._bubble=function(){var e=this._milliseconds,t=this._days,r=this._months,i=this._data;return 0<=e&&0<=t&&0<=r||e<=0&&t<=0&&r<=0||(e+=864e5*_r(vr(r)+t),r=t=0),i.milliseconds=e%1e3,e=d(e/1e3),i.seconds=e%60,e=d(e/60),i.minutes=e%60,e=d(e/60),i.hours=e%24,t+=d(e/24),r+=e=d(yr(t)),t-=_r(vr(e)),e=d(r/12),r%=12,i.days=t,i.months=r,i.years=e,this},L.clone=function(){return I(this)},L.get=function(e){return e=c(e),this.isValid()?this[e+"s"]():NaN},L.milliseconds=ye,L.seconds=we,L.minutes=je,L.hours=y,L.days=wr,L.weeks=function(){return d(this.days()/7)},L.months=xr,L.years=Er,L.humanize=function(e,t){var r,i;return this.isValid()?(r=!1,i=Sr,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(i=Object.assign({},Sr,t),null!=t.s)&&null==t.ss&&(i.ss=t.s-1),t=Cr(this,!r,i,e=this.localeData()),r&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},L.toISOString=Pr,L.toString=Pr,L.toJSON=Pr,L.locale=Jt,L.localeData=Qt,L.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pr),L.lang=Qe,i("X",0,0,"unix"),i("x",0,0,"valueOf"),b("x",Ae),b("X",/[+-]?\d+(\.\d{1,3})?/),x("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e))}),x("x",function(e,t,r){r._d=new Date(p(e))}),m.version="2.29.4",H=N,m.fn=n,m.min=function(){return Mt("isBefore",[].slice.call(arguments,0))},m.max=function(){return Mt("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=h,m.unix=function(e){return N(1e3*e)},m.months=function(e,t){return dr(e,t,"months")},m.isDate=Y,m.locale=pt,m.invalid=j,m.duration=I,m.isMoment=l,m.weekdays=function(e,t,r){return pr(e,t,r,"weekdays")},m.parseZone=function(){return N.apply(null,arguments).parseZone()},m.localeData=M,m.isDuration=Lt,m.monthsShort=function(e,t){return dr(e,t,"monthsShort")},m.weekdaysMin=function(e,t,r){return pr(e,t,r,"weekdaysMin")},m.defineLocale=mt,m.updateLocale=function(e,t){var r,i;return null!=t?(i=lt,null!=O[e]&&null!=O[e].parentLocale?O[e].set(Q(O[e]._config,t)):(t=Q(i=null!=(r=dt(e))?r._config:i,t),null==r&&(t.abbr=e),(i=new ee(t)).parentLocale=O[e],O[e]=i),pt(e)):null!=O[e]&&(null!=O[e].parentLocale?(O[e]=O[e].parentLocale,e===pt()&&pt(e)):null!=O[e]&&delete O[e]),O[e]},m.locales=function(){return te(O)},m.weekdaysShort=function(e,t,r){return pr(e,t,r,"weekdaysShort")},m.normalizeUnits=c,m.relativeTimeRounding=function(e){return void 0===e?Ar:"function"==typeof e&&(Ar=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==Sr[e]&&(void 0===t?Sr[e]:(Sr[e]=t,"s"===e&&(Sr.ss=t-1),!0))},m.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},m.prototype=n,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m}();var ki,Oi,Mi=ki.exports;function Ni(e,t){Kr(e,t)}const Ii={en:{title:"Self-Exclusion",selfExclusionText1:"We recognize that gambling can be harmful so to prevent problems associated with gambling, we offer our users the ability to exclude from all forms of betting on our site for a certain indefinite period of time.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for your chosen period. Select a timeframe below then click "Save".',selfExclusionText3:"During self-exclusion, you will be able to access your account and withdraw funds but you will not be able to deposit or place any bets. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months after its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows:",selfExclusionText4:"E-mail:",duration:"Duration:",forever:"Forever",save:"Save",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent."},"zh-hk":{title:"自我排斥",selfExclusionText1:"我們認識到賭博會導致成癮,為了防止這些問題,我們為用戶提供了在一段時間內排除我們網站上所有形式的投注的能力。",selfExclusionText2:"自我排除從您選擇的時間段設置的時間開始生效。 在下方選擇一個時間範圍,然後單擊“確認”。",selfExclusionText3:"在自我排除期間,您將無法訪問您的 帳戶。 在永久自我排除的情況下,只有在書面請求後才能撤銷自我排除,並且只有在首次申請後 6 個月內。 請注意,請求自我排除的另一種方法是聯繫客戶服務,如下所示:",selfExclusionText4:"電子郵件:",duration:"期間:",forever:"永遠",save:"節省",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。"},fr:{title:"Auto exclusion",selfExclusionText1:"reconnait que le jeu peut conduire à l'addition et dans notre effort pour prévenir ces problèmes, nous offrons à nos utilisateurs la possibilité d'exclure toutes les formes de paris sur notre site pour une certaine période de temps indéfinie.",selfExclusionText2:'L\'auto exclusion prend effet à partir du moment où elle est fixée pour la période que vous choisissez. Sélectionnez une periode ci-dessous puis cliquez sur "Sauvez".',selfExclusionText3:"Pendant l'auto exclusion ,vous ne pourrez pas accéder à votre compte .dans le cas d'une auto exclusion permanente ,il est seulement possible de révoquer l'auto exclusion sur demande écrit et seulement 6 mois après sa demande initiale. veuillez noter qu'une manière alternative de demander l'auto exclusion est de contacter le service client comme suit:",selfExclusionText4:"E-mail:",duration:"Durée:",forever:"Tout le temps",save:"Sauvez",temporarySelfExclusion:"Votre période d'auto exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto exclusion sera permanente."},ro:{title:"Auto-Excludere",selfExclusionText1:"La {operatorname} știm că jocurile de noroc pot provoca dependență și, printre eforturile noastre de a preveni aceste probleme, oferim utilizatorilor posibilitatea de a se exclude de la orice formă de pariere pe o perioadă anume sau chiar nelimitată.",selfExclusionText2:'Auto-excluderea intră în vigoare de la momentul setării, pentru perioada setată. Selectează mai jos o perioadă și apoi apasă pe "Salvează".',selfExclusionText3:"Pe perioada auto-excluderii nu vei putea accesa contul tău {operatorname}. În cazul unei auto-excluderi permanente, aceasta poate fi revocată doar în urma unei solicitări scrise și doar după 6 luni de la aplicarea inițială a acesteia. De asemenea, o altă posibilitate de a solicita auto-excluderea este contactarea Serviciului Clienți după cum urmează:",selfExclusionText4:"E-mail:",duration:"Durată:",forever:"Permanent",save:"Salvează",temporarySelfExclusion:"Perioada de auto-excludere va dura pană la {date} 23:59.",permanentSelfExclusion:"Auto-excluderea este permanentă."},es:{title:"Autoexclusición",selfExclusionText1:"Reconocemos que el juego puedo conducir a la adicción y en nuestro esfuerzo por prevenir estos problemas",selfExclusionText2:'La autoexclusición surte efecto desde el momento en que se establece para el periodo que elijas. Seleccione un período de tiempo a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante la autoexclusión, no podrá acceder a su cuenta de {operator}. En el caso de autoexclusión permanente, solo es posible revocar la autoexclusión previa solicitud por escrito y solo 6 meses después de su solicitud inicial. Ten en cuenta que una forma alternativa de solicitar la autoexclusión es ponerse en contacto con el Servicio de Atención al Cliente de la siguiente manera: Correo electrónico:",selfExclusionText4:"Email",duration:"Duración:",forever:"Para siempre",save:"Guardar",temporarySelfExclusion:"Tu periodo de autoexclusión durará hasta el {date} 23:59. .",permanentSelfExclusion:"Tu periodo de autoexclusión será permanente."},pt:{title:"Auto-exclusão",selfExclusionText1:"reconhece que o jogo pode levar ao vício e em nosso esforço para evitar esses problemas, oferecemos aos nossos usuários a capacidade de excluir todas as formas de apostas em nosso site por um período de tempo indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é definida para o período que você escolher. Selecione um período de tempo abaixo e clique em "Guardar".',selfExclusionText3:"Durante a autoexclusão, você não poderá acessar sua conta . No caso de autoexclusão permanente, só é possível revogar a Autoexclusão mediante pedido escrito e apenas 6 meses após a sua aplicação inicial. Observe que uma forma alternativa de solicitar a autoexclusão é entrar em contato com o Atendimento ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",forever:"Para sempre",save:"Guardar",temporarySelfExclusion:"Seu período de autoexclusão durará até {data} 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente."},hr:{title:"Samoisključenje",selfExclusionText1:"Svjesni smo da kockanje može dovesti do ovisnosti i u našem nastojanju da spriječimo te probleme",selfExclusionText2:'Samoisključenje stupa na snagu od trenutka kada je postavljeno za razdoblje koje odaberete. Odaberite vremenski okvir ispod, a zatim kliknite "Spremi".',selfExclusionText3:"Tijekom samoisključivanja nećete moći pristupiti svom računu. U slučaju trajnog samoisključenja",selfExclusionText4:"E-mail:",duration:"Trajanje:",forever:"Trajno",save:"Spremi",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno."},"pt-br":{title:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial para evitar problemas associados ao jogo,Oferecemos aos nossos usuários a opção de excluir todas as formas de apostas em nosso site por um período indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é selecionada para o período escolhido. Escolha o período de tempo e selecione "Manter".',selfExclusionText3:'Durante a autoexclusão,"Você terá acesso à sua conta e poderá fazer saques, mas não poderá depositar ou fazer apostas. No caso de autoexclusão permanente",Só é possível revogar a autoexclusão mediante solicitação por escrito e apenas 6 meses após a sua inscrição inicial. Observe que uma forma alternativa de solicitar a autoexclusão é entrar em contato com nossa equipe de Atendimento ao Cliente da seguinte forma:',selfExclusionText4:"Correio eletrônico:",duration:"Período de tempo:",forever:"Para sempre",save:"Manter",temporarySelfExclusion:"Seu período de autoexclusão durará até {data} 23h59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente"},"es-mx":{title:"Auto-exclusión",selfExclusionText1:"Reconocemos que las apuestas pueden ser dañinas así que para prevenir problemas asociados con el juego,ofrecemos a nuestros usuarios la opción de excluir todas las formas de apuestas en nuestra página por un period indeterminado de tiempo.",selfExclusionText3:"Durante la auto-exclusión ,usted tendrá acceso a su cuenta y podrá hacer retiros pero no podrá depositar o hacer apuestas. En el caso de la auto-exclusión permanente,Sólo es posible revocar la auto-exclusión bajo una solicitud escrita y solamente 6 meses después de su aplicación inicial .Por favor tome en cuenta que una forma alternativa de solicitar la auto-exclusión es contactar a nuestro equipo de Servicio al Cliente de la siguiente forma:",selfExclusionText4:"Correo electrónico:",duration:"Periodo de Tiempo:",forever:"Para siempre",save:"Guardar",temporarySelfExclusion:"Su periodo de auto-exclusión durará hasta el {date} 23:59.",permanentSelfExclusion:"Su periodo de auto-exclusión será permanente"},tr:{title:"Kendini dışlama",selfExclusionText1:"Kumarın zararlı olabileceğini biliyoruz ve bu nedenle kumarla ilgili sorunları önlemek için kullanıcılarımıza, sitemizdeki tüm bahis türlerinden süresiz olarak hariç tutma olanağı sunuyoruz.",selfExclusionText2:"Kendini hariç tutma, seçtiğiniz dönem için ayarlandığı andan itibaren geçerli olur. Aşağıdan bir zaman aralığı seçin ve ardından Onayla'yı tıklayın.",selfExclusionText3:"Kendini ihraç etme sırasında, hesabınıza erişebilecek ve para çekebileceksiniz ancak herhangi bir para yatıramayacak veya bahis koyamayacaksınız. Kalıcı olarak kendini ihraç etme durumunda, Kendini ihraç etmeyi yalnızca yazılı talep üzerine ve ilk başvurudan yalnızca 6 ay sonra iptal etmek mümkündür. Kendini ihraç etme talebinde bulunmanın alternatif bir yolunun Müşteri Hizmetleriyle aşağıdaki şekilde iletişime geçmek olduğunu lütfen unutmayın:",selfExclusionText4:"E-posta:",duration:"Süre:",forever:"Sonsuza kadar",save:"Kaydetmek",temporarySelfExclusion:"Kendini ihraç etme süreniz {date} 23:59'a kadar sürecek.",permanentSelfExclusion:"Kendini ihraç etme süreniz kalıcı olacaktır."}};function Li(e){var t,r=customElements.get(e.is);r?(t=r.version)&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${r.version} is already in use. Something will probably break.`):customElements.define(e.is,e)}class Hi extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}}Li(Hi);const Ri=window,Bi=Ri.ShadowRoot&&(void 0===Ri.ShadyCSS||Ri.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Fi=Symbol(),Yi=new WeakMap;class zi{constructor(e,t,r){if(this._$cssResult$=!0,r!==Fi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;var t,r=this.t;return Bi&&void 0===e&&(t=void 0!==r&&1===r.length,void 0===(e=t?Yi.get(r):e))&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t)&&Yi.set(r,e),e}toString(){return this.cssText}}const E=(i,...e)=>{e=1===i.length?i[0]:e.reduce((e,t,r)=>e+(()=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})()+i[r+1],i[0]);return new zi(e,i,Fi)},Ui=Bi?e=>e:t=>{if(!(t instanceof CSSStyleSheet))return t;{let e="";for(const r of t.cssRules)e+=r.cssText;return t=e,new zi("string"==typeof t?t:t+"",void 0,Fi)}},$i=window,ji=$i.trustedTypes,Vi=ji?ji.emptyScript:"",Wi=$i.reactiveElementPolyfillSupport,Gi={toAttribute(e,t){switch(t){case Boolean:e=e?Vi:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},qi=(e,t)=>t!==e&&(t==t||e==e),Ki={attribute:!0,type:String,converter:Gi,reflect:!1,hasChanged:qi},Xi="finalized";class Zi extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!=(t=this.h)?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const r=[];return this.elementProperties.forEach((e,t)=>{e=this._$Ep(t,e);void 0!==e&&(this._$Ev.set(e,t),r.push(e))}),r}static createProperty(e,t=Ki){var r;t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e)||(r="symbol"==typeof e?Symbol():"__"+e,void 0!==(r=this.getPropertyDescriptor(e,r,t))&&Object.defineProperty(this.prototype,e,r))}static getPropertyDescriptor(r,i,n){return{get(){return this[i]},set(e){var t=this[r];this[i]=e,this.requestUpdate(r,t,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Ki}static finalize(){if(this.hasOwnProperty(Xi))return!1;this[Xi]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const r of t)this.createProperty(r,e[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){var t=[];if(Array.isArray(e)){var r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(Ui(e))}else void 0!==e&&t.push(Ui(e));return t}static _$Ep(e,t){t=t.attribute;return!1===t?void 0:"string"==typeof t?t:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null!=(e=this.constructor.h)&&e.forEach(e=>e(this))}addController(e){var t;(null!=(t=this._$ES)?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&null!=(t=e.hostConnected)&&t.call(e)}removeController(e){var t;null!=(t=this._$ES)&&t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var i,e,t=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return i=t,e=this.constructor.elementStyles,Bi?i.adoptedStyleSheets=e.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):e.forEach(e=>{var t=document.createElement("style"),r=Ri.litNonce;void 0!==r&&t.setAttribute("nonce",r),t.textContent=e.cssText,i.appendChild(t)}),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=Ki){var i,n=this.constructor._$Ep(e,r);void 0!==n&&!0===r.reflect&&(i=(void 0!==(null==(i=r.converter)?void 0:i.toAttribute)?r.converter:Gi).toAttribute(t,r.type),this._$El=e,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$El=null)}_$AK(e,t){var r=this.constructor,i=r._$Ev.get(e);if(void 0!==i&&this._$El!==i){const e=r.getPropertyOptions(i),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null==(r=e.converter)?void 0:r.fromAttribute)?e.converter:Gi;this._$El=i,this[i]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,r){let i=!0;void 0!==e&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||qi)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,r))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}var e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach((e,t)=>this[t]=e),this._$Ei=void 0);let e=!1;var r=this._$AL;try{(e=this.shouldUpdate(r))?(this.willUpdate(r),null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(r)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(r)}}willUpdate(e){}_$AE(e){var t;null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach((e,t)=>this._$EO(t,this[t],e)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}Zi[Xi]=!0,Zi.elementProperties=new Map,Zi.elementStyles=[],Zi.shadowRootOptions={mode:"open"},null!=Wi&&Wi({ReactiveElement:Zi}),(null!=(p=$i.reactiveElementVersions)?p:$i.reactiveElementVersions=[]).push("1.6.3");const Ji=window,Qi=Ji.trustedTypes,en=Qi?Qi.createPolicy("lit-html",{createHTML:e=>e}):void 0,tn="$lit$",rn=`lit$${(Math.random()+"").slice(9)}$`,nn="?"+rn,on=`<${nn}>`,sn=document,an=()=>sn.createComment(""),ln=e=>null===e||"object"!=typeof e&&"function"!=typeof e,hn=Array.isArray,un="[ \t\n\f\r]",cn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dn=/-->/g,pn=/>/g,mn=RegExp(`>|${un}(?:([^\\s"'>=/]+)(${un}*=${un}*(?:[^
2
- \r"'\`<>=]|("|')|))|$)`,"g"),fn=/'/g,_n=/"/g,yn=/^(?:script|style|textarea|title)$/i,vn=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),gn=new WeakMap,bn=sn.createTreeWalker(sn,129,null,!1);function wn(e,t){if(Array.isArray(e)&&e.hasOwnProperty("raw"))return void 0!==en?en.createHTML(t):t;throw Error("invalid template strings array")}class xn{constructor({strings:t,_$litType$:r},e){var i;this.parts=[];let n=0,o=0;var s=t.length-1,a=this.parts,[t,l]=((o,e)=>{const s=o.length-1,a=[];let l,h=2===e?"<svg>":"",u=cn;for(let n=0;n<s;n++){const s=o[n];let e,t,r=-1,i=0;for(;i<s.length&&(u.lastIndex=i,null!==(t=u.exec(s)));)i=u.lastIndex,u===cn?"!--"===t[1]?u=dn:void 0!==t[1]?u=pn:void 0!==t[2]?(yn.test(t[2])&&(l=RegExp("</"+t[2],"g")),u=mn):void 0!==t[3]&&(u=mn):u===mn?">"===t[0]?(u=null!=l?l:cn,r=-1):void 0===t[1]?r=-2:(r=u.lastIndex-t[2].length,e=t[1],u=void 0===t[3]?mn:'"'===t[3]?_n:fn):u===_n||u===fn?u=mn:u===dn||u===pn?u=cn:(u=mn,l=void 0);var c=u===mn&&o[n+1].startsWith("/>")?" ":"";h+=u===cn?s+on:0<=r?(a.push(e),s.slice(0,r)+tn+s.slice(r)+rn+c):s+rn+(-2===r?(a.push(void 0),n):c)}return[wn(o,h+(o[s]||"<?>")+(2===e?"</svg>":"")),a]})(t,r);if(this.el=xn.createElement(t,e),bn.currentNode=this.el.content,2===r){const t=this.el.content,r=t.firstChild;r.remove(),t.append(...r.childNodes)}for(;null!==(i=bn.nextNode())&&a.length<s;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const r of i.getAttributeNames())if(r.endsWith(tn)||r.startsWith(rn)){const e=l[o++];if(t.push(r),void 0!==e){const t=i.getAttribute(e.toLowerCase()+tn).split(rn),r=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:r[2],strings:t,ctor:"."===r[1]?Tn:"?"===r[1]?Pn:"@"===r[1]?kn:Cn})}else a.push({type:6,index:n})}for(const r of t)i.removeAttribute(r)}if(yn.test(i.tagName)){const t=i.textContent.split(rn),r=t.length-1;if(0<r){i.textContent=Qi?Qi.emptyScript:"";for(let e=0;e<r;e++)i.append(t[e],an()),bn.nextNode(),a.push({type:2,index:++n});i.append(t[r],an())}}}else if(8===i.nodeType)if(i.data===nn)a.push({type:2,index:n});else{let e=-1;for(;-1!==(e=i.data.indexOf(rn,e+1));)a.push({type:7,index:n}),e+=rn.length-1}n++}}static createElement(e,t){var r=sn.createElement("template");return r.innerHTML=e,r}}function En(t,r,i=t,n){var o;if(r!==vn){let e=void 0!==n?null==(s=i._$Co)?void 0:s[n]:i._$Cl;var s=ln(r)?void 0:r._$litDirective$;(null==e?void 0:e.constructor)!==s&&(null!=(o=null==e?void 0:e._$AO)&&o.call(e,!1),void 0===s?e=void 0:(e=new s(t))._$AT(t,i,n),void 0!==n?(null!=(o=i._$Co)?o:i._$Co=[])[n]=e:i._$Cl=e),void 0!==e&&(r=En(t,e._$AS(t,r.values),e,n))}return r}class An{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var{el:{content:e},parts:r}=this._$AD,i=(null!=(i=null==t?void 0:t.creationScope)?i:sn).importNode(e,!0);bn.currentNode=i;let n=bn.nextNode(),o=0,s=0,a=r[0];for(;void 0!==a;){if(o===a.index){let e;2===a.type?e=new Sn(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new On(n,this,t)),this._$AV.push(e),a=r[++s]}o!==(null==a?void 0:a.index)&&(n=bn.nextNode(),o++)}return bn.currentNode=sn,i}v(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class Sn{constructor(e,t,r,i){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=i,this._$Cp=null==(e=null==i?void 0:i.isConnected)||e}get _$AU(){var e;return null!=(e=null==(e=this._$AM)?void 0:e._$AU)?e:this._$Cp}get parentNode(){let e=this._$AA.parentNode;var t=this._$AM;return e=void 0!==t&&11===(null==e?void 0:e.nodeType)?t.parentNode:e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=En(this,e,t),ln(e)?e===A||null==e||""===e?(this._$AH!==A&&this._$AR(),this._$AH=A):e!==this._$AH&&e!==vn&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(t=e,hn(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator])?this.T(e):this._(e))}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==A&&ln(this._$AH)?this._$AA.nextSibling.data=e:this.$(sn.createTextNode(e)),this._$AH=e}g(e){var t,{values:r,_$litType$:i}=e,i="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=xn.createElement(wn(i.h,i.h[0]),this.options)),i);if((null==(t=this._$AH)?void 0:t._$AD)===i)this._$AH.v(r);else{const e=new An(i,this),t=e.u(this.options);e.v(r),this.$(t),this._$AH=e}}_$AC(e){let t=gn.get(e.strings);return void 0===t&&gn.set(e.strings,t=new xn(e)),t}T(e){hn(this._$AH)||(this._$AH=[],this._$AR());var t=this._$AH;let r,i=0;for(const n of e)i===t.length?t.push(r=new Sn(this.k(an()),this.k(an()),this,this.options)):r=t[i],r._$AI(n),i++;i<t.length&&(this._$AR(r&&r._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var r;for(null!=(r=this._$AP)&&r.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null!=(t=this._$AP))&&t.call(this,e)}}class Cn{constructor(e,t,r,i,n){this.type=1,this._$AH=A,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=n,2<r.length||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=A}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(r,i=this,n,o){var s=this.strings;let a=!1;if(void 0===s)r=En(this,r,i,0),(a=!ln(r)||r!==this._$AH&&r!==vn)&&(this._$AH=r);else{const o=r;let e,t;for(r=s[0],e=0;e<s.length-1;e++)(t=En(this,o[n+e],i,e))===vn&&(t=this._$AH[e]),a=a||!ln(t)||t!==this._$AH[e],t===A?r=A:r!==A&&(r+=(null!=t?t:"")+s[e+1]),this._$AH[e]=t}a&&!o&&this.j(r)}j(e){e===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class Tn extends Cn{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===A?void 0:e}}const Dn=Qi?Qi.emptyScript:"";class Pn extends Cn{constructor(){super(...arguments),this.type=4}j(e){e&&e!==A?this.element.setAttribute(this.name,Dn):this.element.removeAttribute(this.name)}}class kn extends Cn{constructor(e,t,r,i,n){super(e,t,r,i,n),this.type=5}_$AI(e,t=this){var r,i;(e=null!=(t=En(this,e,t,0))?t:A)!==vn&&(t=this._$AH,r=e===A&&t!==A||e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive,i=e!==A&&(t===A||r),r&&this.element.removeEventListener(this.name,this,t),i&&this.element.addEventListener(this.name,this,e),this._$AH=e)}handleEvent(e){var t;"function"==typeof this._$AH?this._$AH.call(null!=(t=null==(t=this.options)?void 0:t.host)?t:this.element,e):this._$AH.handleEvent(e)}}class On{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){En(this,e)}}m=Ji.litHtmlPolyfillSupport;null!=m&&m(xn,Sn),(null!=(g=Ji.litHtmlVersions)?g:Ji.litHtmlVersions=[]).push("2.8.0");class Mn extends Zi{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t=super.createRenderRoot();return null==(e=this.renderOptions).renderBefore&&(e.renderBefore=t.firstChild),t}update(e){var t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,r)=>{var i,n=null!=(n=null==r?void 0:r.renderBefore)?n:t;let o=n._$litPart$;if(void 0===o){const e=null!=(i=null==r?void 0:r.renderBefore)?i:null;n._$litPart$=o=new Sn(t.insertBefore(an(),e),e,void 0,null!=r?r:{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null!=(e=this._$Do)&&e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null!=(e=this._$Do)&&e.setConnected(!1)}render(){return vn}}Mn.finalized=!0,Mn._$litElement$=!0,null!=(n=globalThis.litElementHydrateSupport)&&n.call(globalThis,{LitElement:Mn});a=globalThis.litElementPolyfillSupport;null!=a&&a({LitElement:Mn}),(null!=(d=globalThis.litElementVersions)?d:globalThis.litElementVersions=[]).push("3.3.3");const Nn=[];function In(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function S(e,t,r={}){var i;e&&In(customElements.get(e))&&console.warn(`The custom element definition for "${e}"
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function ne(){}function O(e){return e()}function M(){return Object.create(null)}function ue(e){e.forEach(O)}function N(e){return"function"==typeof e}function I(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function L(e,...t){if(null==e)return ne;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function se(e,t){e.appendChild(t)}function ce(e,t,r){e.insertBefore(t,r||null)}function de(e){e.parentNode&&e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function pe(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ae(e){return document.createTextNode(e)}function e(){return ae(" ")}function me(e,t,r,o){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r,o)}function le(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function fe(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:le(e,t,r)}function he(e,t){e.data!==(t=""+t)&&(e.data=t)}let H;function R(e){H=e}const B=[],F=[];let z=[];const Y=[],U=Promise.resolve();let $=!1;function j(e){z.push(e)}const V=new Set;let W=0;function G(){if(0===W){const o=H;do{try{for(;W<B.length;){const o=B[W];W++,R(o),e=t=void 0;var e,t=o.$$;null!==t.fragment&&(t.update(),ue(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(j))}}catch(o){throw B.length=0,W=0,o}for(R(null),B.length=0,W=0;F.length;)F.pop()();for(let e=0;e<z.length;e+=1){var r=z[e];V.has(r)||(V.add(r),r())}}while(z.length=0,B.length);for(;Y.length;)Y.pop()();$=!1,V.clear(),R(o)}}const q=new Set;function K(o,e,t,r,i,n,s,a=[-1]){var l=H;R(o);const h=o.$$={fragment:null,ctx:[],props:n,update:ne,not_equal:i,bound:M(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:M(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(h.root);let u=!1;if(h.ctx=t?t(o,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return h.ctx&&i(h.ctx[e],h.ctx[e]=r)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](r),u)&&(r=e,-1===(e=o).$$.dirty[0]&&(B.push(e),$||($=!0,U.then(G)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31),t}):[],h.update(),u=!0,ue(h.before_update),h.fragment=!!r&&r(h.ctx),e.target){if(e.hydrate){n=e.target;const ne=Array.from(n.childNodes);h.fragment&&h.fragment.l(ne),ne.forEach(de)}else h.fragment&&h.fragment.c();e.intro&&(a=o.$$.fragment)&&a.i&&(q.delete(a),a.i(void 0));var c=o,s=e.target,t=e.anchor,r=e.customElement,{fragment:n,after_update:a}=c.$$;n&&n.m(s,t),r||j(()=>{var e=c.$$.on_mount.map(O).filter(N);c.$$.on_destroy?c.$$.on_destroy.push(...e):ue(e),c.$$.on_mount=[]}),a.forEach(j),G()}R(l)}let X;"function"==typeof HTMLElement&&(X=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(O).filter(N);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){ue(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var r=e.after_update;const o=[],i=[];z.forEach(e=>(-1===r.indexOf(e)?o:i).push(e)),i.forEach(e=>e()),z=o}ue(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=ne}$on(e,t){if(!N(t))return ne;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var Z,J,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},Q="URLSearchParams"in l,ee="Symbol"in l&&"iterator"in Symbol,te="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),re="FormData"in l,oe="ArrayBuffer"in l;function ie(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function _e(e){return e="string"!=typeof e?String(e):e}function ye(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ee&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ve(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function ge(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function be(e){var t=new FileReader,r=ge(t);return t.readAsArrayBuffer(e),r}function we(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function xe(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:te&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:re&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Q&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():oe&&te&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=we(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):oe&&(ArrayBuffer.prototype.isPrototypeOf(e)||J(e))?this._bodyArrayBuffer=we(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Q&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},te&&(this.blob=function(){var e=ve(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return ve(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(te)return this.blob().then(be);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,o=ve(this);if(o)return o;if(this._bodyBlob)return o=this._bodyBlob,t=ge(e=new FileReader),r=(r=/charset=([A-Za-z0-9_-]+)/.exec(o.type))?r[1]:"utf-8",e.readAsText(o,r),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),o=0;o<t.length;o++)r[o]=String.fromCharCode(t[o]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},re&&(this.formData=function(){return this.text().then(Se)}),this.json=function(){return this.text().then(JSON.parse)},this}oe&&(Z=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],J=ArrayBuffer.isView||function(e){return e&&-1<Z.indexOf(Object.prototype.toString.call(e))}),h.prototype.append=function(e,t){e=ie(e),t=_e(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},h.prototype.delete=function(e){delete this.map[ie(e)]},h.prototype.get=function(e){return e=ie(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(ie(e))},h.prototype.set=function(e,t){this.map[ie(e)]=_e(t)},h.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},h.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),ye(r)},h.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ye(t)},h.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),ye(r)},ee&&(h.prototype[Symbol.iterator]=h.prototype.entries);var Ee=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Ae(e,t){if(!(this instanceof Ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,o=(t=t||{}).body;if(e instanceof Ae){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),-1<Ee.indexOf(r)?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in l)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Se(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function u(e,t){if(!(this instanceof u))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}Ae.prototype.clone=function(){return new Ae(this,{body:this._bodyInit})},xe.call(Ae.prototype),xe.call(u.prototype),u.prototype.clone=function(){return new u(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},u.error=function(){var e=new u(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Te=[301,302,303,307,308],Ce=(u.redirect=function(e,t){if(-1===Te.indexOf(t))throw new RangeError("Invalid status code");return new u(null,{status:t,headers:{location:e}})},l.DOMException);try{new Ce}catch(ne){(Ce=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Ce.prototype.constructor=Ce}function De(o,a){return new Promise(function(i,e){var n=new Ae(o,a);if(n.signal&&n.signal.aborted)return e(new Ce("Aborted","AbortError"));var r,s=new XMLHttpRequest;function t(){s.abort()}s.onload=function(){var e,o,t={statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",o=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),r=t.shift().trim();if(r){t=t.join(":").trim();try{o.append(r,t)}catch(e){console.warn("Response "+e.message)}}}),o)},r=(n.url.startsWith("file://")&&(s.status<200||599<s.status)?t.status=200:t.status=s.status,t.url="responseURL"in s?s.responseURL:t.headers.get("X-Request-URL"),"response"in s?s.response:s.responseText);setTimeout(function(){i(new u(r,t))},0)},s.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request timed out"))},0)},s.onabort=function(){setTimeout(function(){e(new Ce("Aborted","AbortError"))},0)},s.open(n.method,function(t){try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}}(n.url),!0),"include"===n.credentials?s.withCredentials=!0:"omit"===n.credentials&&(s.withCredentials=!1),"responseType"in s&&(te?s.responseType="blob":oe&&(s.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof h||l.Headers&&a.headers instanceof l.Headers)?(r=[],Object.getOwnPropertyNames(a.headers).forEach(function(e){r.push(ie(e)),s.setRequestHeader(e,_e(a.headers[e]))}),n.headers.forEach(function(e,t){-1===r.indexOf(t)&&s.setRequestHeader(t,e)})):n.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),n.signal&&(n.signal.addEventListener("abort",t),s.onreadystatechange=function(){4===s.readyState&&n.signal.removeEventListener("abort",t)}),s.send(void 0===n._bodyInit?null:n._bodyInit)})}function Pr(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}De.polyfill=!0,l.fetch||(l.fetch=De,l.Headers=h,l.Request=Ae,l.Response=u),self.fetch.bind(self);var ke=function(e,t){return(ke=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};function Pe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ke(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Oe(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&o>=e.length?void 0:e)&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Me(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s}function Ne(e,t,r){if(r||2===arguments.length)for(var o,i=0,n=t.length;i<n;i++)!o&&i in t||((o=o||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}function Ie(e){return"function"==typeof e}function Le(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var He=Le(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function Re(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}r.prototype.unsubscribe=function(){var e,t,r,o,i;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var s=Oe(n),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else n.remove(this);n=this.initialTeardown;if(Ie(n))try{n()}catch(e){i=e instanceof He?e.errors:[e]}n=this._finalizers;if(n){this._finalizers=null;try{for(var l=Oe(n),h=l.next();!h.done;h=l.next()){var u=h.value;try{Ye(u)}catch(e){i=null!=i?i:[],e instanceof He?i=Ne(Ne([],Me(i)),Me(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}}if(i)throw new He(i)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ye(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Re(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Re(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=((i=new r).closed=!0,i);var Be=r,Fe=Be.EMPTY;function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function ze(e){return e instanceof Be||e&&"closed"in e&&Ie(e.remove)&&Ie(e.add)&&Ie(e.unsubscribe)}function Ye(e){Ie(e)?e():e.unsubscribe()}var Ue=void 0,$e=!1,je=!1,Ve={setTimeout:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var i=Ve.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Ne([e,t],Me(r))):setTimeout.apply(void 0,Ne([e,t],Me(r)))},clearTimeout:function(e){var t=Ve.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function We(){}var Ge=null;function qe(e){if($e){var t=!Ge;if(t&&(Ge={errorThrown:!1,error:null}),e(),t){var t=Ge,r=t.errorThrown,t=t.error;if(Ge=null,r)throw t}}else e()}Pe(o,Ke=Be),o.create=function(e,t,r){return new tt(e,t,r)},o.prototype.next=function(e){this.isStopped||this._next(e)},o.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},o.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},o.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ke.prototype.unsubscribe.call(this),this.destination=null)},o.prototype._next=function(e){this.destination.next(e)},o.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},o.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Ke,Xe=o,Ze=Function.prototype.bind;function o(e){var t=Ke.call(this)||this;return t.isStopped=!1,e?ze(t.destination=e)&&e.add(t):t.destination=nt,t}function Je(e,t){return Ze.call(e,t)}ot.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){it(e)}},ot.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){it(e)}else it(e)},ot.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){it(e)}};var Qe,et=ot,tt=(Pe(rt,Qe=Xe),rt);function rt(e,t,r){var o=Qe.call(this)||this,r=Ie(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:o&&je?((t=Object.create(e)).unsubscribe=function(){return o.unsubscribe()},{next:e.next&&Je(e.next,t),error:e.error&&Je(e.error,t),complete:e.complete&&Je(e.complete,t)}):e;return o.destination=new et(r),o}function ot(e){this.partialObserver=e}function it(e){var t=e;Ve.setTimeout(function(){throw t})}var nt={closed:!0,next:We,error:function(e){throw e},complete:We},i="function"==typeof Symbol&&Symbol.observable||"@@observable";n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,r){var o,i=this,n=(o=e)&&o instanceof Xe||o&&Ie(o.next)&&Ie(o.error)&&Ie(o.complete)&&ze(o)?e:new tt(e,t,r);return qe(function(){var e=i.operator,t=i.source;n.add(e?e.call(n,t):t?i._subscribe(n):i._trySubscribe(n))}),n},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},n.prototype.forEach=function(o,e){var i=this;return new(e=at(e))(function(e,t){var r=new tt({next:function(e){try{o(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});i.subscribe(r)})},n.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},n.prototype[i]=function(){return this},n.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},n.prototype.toPromise=function(e){var o=this;return new(e=at(e))(function(e,t){var r;o.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},n.create=function(e){return new n(e)};var st=n;function n(e){e&&(this._subscribe=e)}function at(e){return null!=(e=null!=e?e:Ue)?e:Promise}var lt,ht,ut,ct=Le(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),i=(Pe(s,ut=st),s.prototype.lift=function(e){var t=new dt(this,this);return t.operator=e,t},s.prototype._throwIfClosed=function(){if(this.closed)throw new ct},s.prototype.next=function(i){var n=this;qe(function(){var t,e;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var r=Oe(n.currentObservers),o=r.next();!o.done;o=r.next())o.value.next(i)}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},s.prototype.error=function(t){var r=this;qe(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},s.prototype.complete=function(){var t=this;qe(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},s.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(s.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),s.prototype._trySubscribe=function(e){return this._throwIfClosed(),ut.prototype._trySubscribe.call(this,e)},s.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},s.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,o=this.isStopped,i=this.observers;return r||o?Fe:(this.currentObservers=null,i.push(e),new Be(function(){t.currentObservers=null,Re(i,e)}))},s.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,o=this.isStopped;t?e.error(r):o&&e.complete()},s.prototype.asObservable=function(){var e=new st;return e.source=this,e},s.create=function(e,t){return new dt(e,t)},s),dt=(Pe(_t,ht=i),_t.prototype.next=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.next)&&r.call(t,e)},_t.prototype.error=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.error)&&r.call(t,e)},_t.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},_t.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Fe},_t),pt={now:function(){return(pt.delegate||Date).now()},delegate:void 0},mt=(Pe(ft,lt=i),ft.prototype.next=function(e){var t=this,r=t.isStopped,o=t._buffer,i=t._infiniteTimeWindow,n=t._timestampProvider,t=t._windowTime;r||(o.push(e),i)||o.push(n.now()+t),this._trimBuffer(),lt.prototype.next.call(this,e)},ft.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,o=this._buffer.slice(),i=0;i<o.length&&!e.closed;i+=r?1:2)e.next(o[i]);return this._checkFinalizedStatuses(e),t},ft.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,o=this._infiniteTimeWindow,i=(o?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!o){for(var n=t.now(),s=0,a=1;a<r.length&&r[a]<=n;a+=2)s=a;s&&r.splice(0,s+1)}},ft);function ft(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=pt);var o=lt.call(this)||this;return o._bufferSize=e,o._windowTime=t,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=t===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,t),o}function _t(e,t){var r=ht.call(this)||this;return r.destination=e,r.source=t,r}function s(){var e=ut.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let yt=[],vt={};const gt=[];function bt(o,i=ne){let n;const s=new Set;function a(e){if(I(o,e)&&(o=e,n)){const e=!gt.length;for(const e of s)e[1](),gt.push(e,o);if(e){for(let e=0;e<gt.length;e+=2)gt[e][0](gt[e+1]);gt.length=0}}}return{set:a,update:function(e){a(e(o))},subscribe:function(e,t=ne){const r=[e,t];return s.add(r),1===s.size&&(n=i(a)||ne),e(o),()=>{s.delete(r),0===s.size&&n&&(n(),n=null)}}}}function wt(e,a,t){const l=!Array.isArray(e),h=l?[e]:e,u=a.length<2;return{subscribe:bt(t,t=>{let r=!1;const o=[];let i=0,n=ne;const s=()=>{var e;i||(n(),e=a(l?o[0]:o,t),u?t(e):n=N(e)?e:ne)},e=h.map((e,t)=>L(e,e=>{o[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){ue(e),n(),r=!1}}).subscribe}}function xt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===Et);var t}var Et="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function At(e,t){return!1!==t.clone&&t.isMergeableObject(e)?kt(Array.isArray(e)?[]:{},e,t):e}function St(e,t,r){return e.concat(t).map(function(e){return At(e,r)})}function Tt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function Ct(e,t){try{return t in e}catch(e){return!1}}function Dt(o,i,n){var s={};return n.isMergeableObject(o)&&Tt(o).forEach(function(e){s[e]=At(o[e],n)}),Tt(i).forEach(function(e){var t,r;(!Ct(t=o,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(Ct(o,e)&&n.isMergeableObject(i[e])?s[e]=((t=n).customMerge&&"function"==typeof(t=t.customMerge(e))?t:kt)(o[e],i[e],n):s[e]=At(i[e],n))}),s}function kt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||St,r.isMergeableObject=r.isMergeableObject||xt,r.cloneUnlessOtherwiseSpecified=At;var o=Array.isArray(t);return o===Array.isArray(e)?o?r.arrayMerge(e,t,r):Dt(e,t,r):At(t,r)}kt.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return kt(e,t,r)},{});throw new Error("first argument should be an array")};var Pt=kt,Ot=function(e,t){return(Ot=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};function Mt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ot(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var f,y,Nt,_=function(){return(_=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function It(e,t,r){if(r||2===arguments.length)for(var o,i=0,n=t.length;i<n;i++)!o&&i in t||((o=o||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}function Lt(e){return e.type===y.literal}function Ht(e){return e.type===y.number}function Rt(e){return e.type===y.date}function Bt(e){return e.type===y.time}function Ft(e){return e.type===y.select}function zt(e){return e.type===y.plural}function Yt(e){return e.type===y.tag}function Ut(e){return e&&"object"==typeof e&&e.type===Nt.number}function $t(e){return e&&"object"==typeof e&&e.type===Nt.dateTime}(i=f=f||{})[i.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",i[i.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",i[i.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",i[i.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",i[i.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",i[i.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",i[i.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",i[i.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",i[i.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",i[i.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",i[i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",i[i.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",i[i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",i[i.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",i[i.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",i[i.INVALID_TAG=23]="INVALID_TAG",i[i.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",i[i.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",i[i.UNCLOSED_TAG=27]="UNCLOSED_TAG",(i=y=y||{})[i.literal=0]="literal",i[i.argument=1]="argument",i[i.number=2]="number",i[i.date=3]="date",i[i.time=4]="time",i[i.select=5]="select",i[i.plural=6]="plural",i[i.pound=7]="pound",i[i.tag=8]="tag",(i=Nt=Nt||{})[i.number=0]="number",i[i.dateTime=1]="dateTime";var i=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,jt=/(?:[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;var Vt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Wt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Gt=/^(@+)?(\+|#+)?[rs]?$/g,qt=/(\*)(0+)|(#+)(0+)|(0+)/g,Kt=/^(0+)$/;function Xt(e){var o={};return"r"===e[e.length-1]?o.roundingPriority="morePrecision":"s"===e[e.length-1]&&(o.roundingPriority="lessPrecision"),e.replace(Gt,function(e,t,r){return"string"!=typeof r?(o.minimumSignificantDigits=t.length,o.maximumSignificantDigits=t.length):"+"===r?o.minimumSignificantDigits=t.length:"#"===t[0]?o.maximumSignificantDigits=t.length:(o.minimumSignificantDigits=t.length,o.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),o}function Zt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Jt(e){return Zt(e)||{}}function Qt(e){for(var s={},t=0,r=e;t<r.length;t++){var o,i=r[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=_(_(_({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return _(_({},e),Jt(t))},{}));continue;case"engineering":s=_(_(_({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return _(_({},e),Jt(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(qt,function(e,t,r,o,i,n){if(t)s.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(n)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Kt.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(Wt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Wt,function(e,t,r,o,i,n){return"*"===r?s.minimumFractionDigits=t.length:o&&"#"===o[0]?s.maximumFractionDigits=o.length:i&&n?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+n.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var n=i.options[0];"w"===n?s=_(_({},s),{trailingZeroDisplay:"stripIfInteger"}):n&&(s=_(_({},s),Xt(n)))}else Gt.test(i.stem)?s=_(_({},s),Xt(i.stem)):((n=Zt(i.stem))&&(s=_(_({},s),n)),(o=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Kt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=_(_({},s),o)))}return s}var er={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var tr=new RegExp("^".concat(i.source,"*")),rr=new RegExp("".concat(i.source,"*$"));function v(e,t){return{start:e,end:t}}var i=!!String.prototype.startsWith,a=!!String.fromCodePoint,or=!!Object.fromEntries,c=!!String.prototype.codePointAt,d=!!String.prototype.trimStart,p=!!String.prototype.trimEnd,ir=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},m=!0;try{m="a"===(null==(Sr=pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Sr[0])}catch(di){m=!1}var nr,sr,ar=i?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},lr=a?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,o="",i=e.length,n=0;n<i;){if(1114111<(r=e[n++]))throw RangeError(r+" is not a valid code point");o+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return o},hr=or?Object.fromEntries:function(e){for(var t={},r=0,o=e;r<o.length;r++){var i=o[r],n=i[0],i=i[1];t[n]=i}return t},ur=c?function(e,t){return e.codePointAt(t)}:function(e,t){var r,o=e.length;if(!(t<0||o<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===o||(o=e.charCodeAt(t+1))<56320||57343<o?r:o-56320+(r-55296<<10)+65536},cr=d?function(e){return e.trimStart()}:function(e){return e.replace(tr,"")},dr=p?function(e){return e.trimEnd()}:function(e){return e.replace(rr,"")};function pr(e,t){return new RegExp(e,t)}sr=m?(nr=pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return nr.lastIndex=t,null!=(t=nr.exec(e)[1])?t:""}):function(e,t){for(var r,o=[];;){var i=ur(e,t);if(void 0===i||_r(i)||33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094)break;o.push(i),t+=65536<=i?2:1}return lr.apply(void 0,o)};g.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},g.prototype.parseMessage=function(e,t,r){for(var o=[];!this.isEOF();){var i,n=this.char();if(123===n){if((i=this.parseArgument(e,r)).err)return i;o.push(i.val)}else{if(125===n&&0<e)break;if(35!==n||"plural"!==t&&"selectordinal"!==t){if(60===n&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(f.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===n&&!this.ignoreTag&&fr(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i}else if((i=this.parseLiteral(e,t)).err)return i;o.push(i.val)}else{n=this.clonePosition();this.bump(),o.push({type:y.pound,location:v(n,this.clonePosition())})}}}return{val:o,err:null}},g.prototype.parseTag=function(e,t){var r,o=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(i,"/>"),location:v(o,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!fr(this.char())?this.error(f.INVALID_TAG,v(e,this.clonePosition())):(r=this.clonePosition(),i!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,v(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:i,children:t,location:v(o,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,v(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,v(o,this.clonePosition()))):this.error(f.INVALID_TAG,v(o,this.clonePosition()))},g.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},g.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),o="";;){var i=this.tryParseQuote(t);if(i)o+=i;else{i=this.tryParseUnquoted(e,t);if(i)o+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;o+=i}}}r=v(r,this.clonePosition());return{val:{type:y.literal,value:o,location:r},err:null}},g.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(fr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},g.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return lr.apply(void 0,t)},g.prototype.tryParseUnquoted=function(e,t){var r;return this.isEOF()||60===(r=this.char())||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),lr(r))},g.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,v(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(f.MALFORMED_ARGUMENT,v(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:o,location:v(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(r,this.clonePosition())):this.parseArgumentOptions(e,t,o,r);default:return this.error(f.MALFORMED_ARGUMENT,v(r,this.clonePosition()))}},g.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=sr(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:v(e,this.clonePosition())}},g.prototype.parseArgumentOptions=function(e,t,r,o){var i,n=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,v(n,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((c=this.parseSimpleArgStyleIfPossible()).err)return c;if(0===(d=dr(c.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:v(h,this.clonePosition())}}return(h=this.tryParseArgumentClose(o)).err?h:(p=v(o,this.clonePosition()),l&&ar(null==l?void 0:l.style,"::",0)?(m=cr(l.style.slice(2)),"number"===s?(c=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?c:{val:{type:y.number,value:r,location:p,style:c.val},err:null}:0===m.length?this.error(f.EXPECT_DATE_TIME_SKELETON,p):(u=m,this.locale&&(u=function(e,t){for(var r="",o=0;o<e.length;o++){var i=e.charAt(o);if("j"===i){for(var n=0;o+1<e.length&&e.charAt(o+1)===i;)n++,o++;var s=1+(1&n),a=n<2?1:3+(n>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.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")}return"root"!==(r=e.language)&&(t=e.maximize().region),(er[t||""]||er[r||""]||er["".concat(r,"-001")]||er["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<s--;)r=l+r}else r+="J"===i?"H":i}return r}(m,this.locale)),d={type:Nt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(jt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"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":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-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":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<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""}),i):{}},{val:{type:"date"===s?y.date:y.time,value:r,location:p,style:d},err:null})):{val:{type:"number"===s?y.number:"date"===s?y.date:y.time,value:r,location:p,style:null!=(m=null==l?void 0:l.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,v(u,_({},u)));this.bumpSpace();var c,d=this.parseIdentifierIfPossible(),p=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(c=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return c;this.bumpSpace(),d=this.parseIdentifierIfPossible(),p=c.val}var m,l=this.tryParsePluralOrSelectOptions(e,s,t,d);return l.err?l:(h=this.tryParseArgumentClose(o)).err?h:(m=v(o,this.clonePosition()),"select"===s?{val:{type:y.select,value:r,options:hr(l.val),location:m},err:null}:{val:{type:y.plural,value:r,options:hr(l.val),offset:p,pluralType:"plural"===s?"cardinal":"ordinal",location:m},err:null});default:return this.error(f.INVALID_ARGUMENT_TYPE,v(n,a))}},g.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},g.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},g.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,o=e.split(Vt).filter(function(e){return 0<e.length});r<o.length;r++){var i=o[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var n=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:n,options:i})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:Nt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Qt(r):{}},err:null}},g.prototype.tryParsePluralOrSelectOptions=function(e,t,r,o){for(var i=!1,n=[],s=new Set,a=o.value,l=o.location;;){if(0===a.length){var h=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=v(h,this.clonePosition()),a=this.message.slice(h.offset,this.offset())}if(s.has(a))return this.error("select"===t?f.DUPLICATE_SELECT_ARGUMENT_SELECTOR:f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));h=this.parseMessage(e+1,t,r);if(h.err)return h;var c=this.tryParseArgumentClose(u);if(c.err)return c;n.push([a,{value:h.val,location:v(u,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(c=this.parseIdentifierIfPossible()).value,l=c.location}return 0===n.length?this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR:f.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(f.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:n,err:null}},g.prototype.tryParseDecimalInteger=function(e,t){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,n=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,n=10*n+(s-48),this.bump()}o=v(o,this.clonePosition());return i?ir(n*=r)?{val:n,err:null}:this.error(t,o):this.error(e,o)},g.prototype.offset=function(){return this.position.offset},g.prototype.isEOF=function(){return this.offset()===this.message.length},g.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},g.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=ur(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},g.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},g.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},g.prototype.bumpIf=function(e){if(ar(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},g.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},g.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},g.prototype.bumpSpace=function(){for(;!this.isEOF()&&_r(this.char());)this.bump()},g.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var mr=g;function g(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function fr(e){return 97<=e&&e<=122||65<=e&&e<=90}function _r(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function yr(e,t){t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new mr(e,t).parse();if(e.err)throw(r=SyntaxError(f[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Ft(e)||zt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Ht(e)&&Ut(e.style)||(Rt(e)||Bt(e))&&$t(e.style)?delete e.style.location:Yt(e)&&r(e.children)})}(e.val),e.val}function vr(e,t){var r=t&&t.cache?t.cache:Tr,o=t&&t.serializer?t.serializer:xr;return(t&&t.strategy?t.strategy:function(e,t){return wr(e,this,1===e.length?gr:br,t.cache.create(),t.serializer)})(e,{cache:r,serializer:o})}function gr(e,t,r,o){var r=null==o||"number"==typeof o||"boolean"==typeof o?o:r(o),i=t.get(r);return void 0===i&&(i=e.call(this,o),t.set(r,i)),i}function br(e,t,r){var o=Array.prototype.slice.call(arguments,3),r=r(o),i=t.get(r);return void 0===i&&(i=e.apply(this,o),t.set(r,i)),i}function wr(e,t,r,o,i){return r.bind(t,e,o,i)}var xr=function(){return JSON.stringify(arguments)};function Er(){this.cache=Object.create(null)}Er.prototype.get=function(e){return this.cache[e]},Er.prototype.set=function(e,t){this.cache[e]=t};var Ar,Sr,Tr={create:function(){return new Er}},Cr={variadic:function(e,t){return wr(e,this,br,t.cache.create(),t.serializer)},monadic:function(e,t){return wr(e,this,gr,t.cache.create(),t.serializer)}};(Sr=Ar=Ar||{}).MISSING_VALUE="MISSING_VALUE",Sr.INVALID_VALUE="INVALID_VALUE",Sr.MISSING_INTL_API="MISSING_INTL_API";Mt(zr,Mr=Error),zr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var b,Dr,kr,Or,Mr,Nr=zr,Ir=(Mt(Fr,Or=Nr),Fr),Lr=(Mt(Br,kr=Nr),Br),Hr=(Mt(Rr,Dr=Nr),Rr);function Rr(e,t){return Dr.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Ar.MISSING_VALUE,t)||this}function Br(e,t,r){return kr.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Ar.INVALID_VALUE,r)||this}function Fr(e,t,r,o){return Or.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Ar.INVALID_VALUE,o)||this}function zr(e,t,r){e=Mr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Yr(e,t,r,o,i,n,s){if(1===e.length&&Lt(e[0]))return[{type:b.literal,value:e[0].value}];for(var a=[],l=0,h=e;l<h.length;l++){var u=h[l];if(Lt(u))a.push({type:b.literal,value:u.value});else if(u.type===y.pound)"number"==typeof n&&a.push({type:b.literal,value:r.getNumberFormat(t).format(n)});else{var c=u.value;if(!(i&&c in i))throw new Hr(c,s);c=i[c];if(u.type===y.argument)c&&"string"!=typeof c&&"number"!=typeof c||(c="string"==typeof c||"number"==typeof c?String(c):""),a.push({type:"string"==typeof c?b.literal:b.object,value:c});else if(Rt(u)){var d="string"==typeof u.style?o.date[u.style]:$t(u.style)?u.style.parsedOptions:void 0;a.push({type:b.literal,value:r.getDateTimeFormat(t,d).format(c)})}else if(Bt(u))d="string"==typeof u.style?o.time[u.style]:$t(u.style)?u.style.parsedOptions:o.time.medium,a.push({type:b.literal,value:r.getDateTimeFormat(t,d).format(c)});else if(Ht(u))(d="string"==typeof u.style?o.number[u.style]:Ut(u.style)?u.style.parsedOptions:void 0)&&d.scale&&(c*=d.scale||1),a.push({type:b.literal,value:r.getNumberFormat(t,d).format(c)});else{if(Yt(u)){var p=u.children,m=u.value,f=i[m];if("function"!=typeof f)throw new Lr(m,"function",s);m=f(Yr(p,t,r,o,i,n).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?b.literal:b.object,value:e}}))}if(Ft(u)){if(!(_=u.options[c]||u.options.other))throw new Ir(u.value,c,Object.keys(u.options),s);a.push.apply(a,Yr(_.value,t,r,o,i))}else if(zt(u)){if(!(_=u.options["=".concat(c)])){if(!Intl.PluralRules)throw new Nr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ar.MISSING_INTL_API,s);var f=r.getPluralRules(t,{type:u.pluralType}).select(c-(u.offset||0)),_=u.options[f]||u.options.other}if(!_)throw new Ir(u.value,c,Object.keys(u.options),s);a.push.apply(a,Yr(_.value,t,r,o,i,c-(u.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===b.literal&&t.type===b.literal?r.value+=t.value:e.push(t),e},[])}function Ur(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(i=b=b||{})[i.literal=0]="literal",i[i.object=1]="object";Object.defineProperty(w,"defaultLocale",{get:function(){return w.memoizedDefaultLocale||(w.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),w.memoizedDefaultLocale},enumerable:!1,configurable:!0}),w.memoizedDefaultLocale=null,w.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},w.__parse=yr,w.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"}}};var $r=w;function w(e,t,r,o){var i,n,s=this;if(void 0===t&&(t=w.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=s.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===b.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return Yr(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=w.resolveLocale(t),"string"==typeof e){if(this.message=e,!w.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=w.__parse(e,{ignoreTag:null==o?void 0:o.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=w.formats,(n=r)?Object.keys(i).reduce(function(e,t){var r,o;return e[t]=(r=i[t],(o=n[t])?_(_(_({},r||{}),o||{}),Object.keys(r).reduce(function(e,t){return e[t]=_(_({},r[t]),o[t]||{}),e},{})):r),e},_({},i)):i),this.formatters=o&&o.formatters||{getNumberFormat:vr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,It([void 0],t,!1)))},{cache:Ur((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Cr.variadic}),getDateTimeFormat:vr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,It([void 0],t,!1)))},{cache:Ur(t.dateTime),strategy:Cr.variadic}),getPluralRules:vr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,It([void 0],t,!1)))},{cache:Ur(t.pluralRules),strategy:Cr.variadic})}}const jr={},Vr=(e,t,r)=>r&&(t in jr||(jr[t]={}),e in jr[t]||(jr[t][e]=r),r),Wr=(t,r)=>{if(null!=r){if(r in jr&&t in jr[r])return jr[r][t];var o=fo(r);for(let e=0;e<o.length;e++){var i=function(e,t){if(!Kr(e))return null;e=function(e){return Gr[e]||null}(e),e=function(e,r){if(null!=r){if(r in e)return e[r];var o=r.split(".");let t=e;for(let e=0;e<o.length;e++)if("object"==typeof t){if(0<e){const r=o.slice(e,o.length).join(".");if(r in t){t=t[r];break}}t=t[o[e]]}else t=void 0;return t}}(e,t);return e}(o[e],t);if(i)return Vr(t,r,i)}}};let Gr;const qr=bt({});function Kr(e){return e in Gr}function Xr(t,...r){delete jr[t],qr.update(e=>(e[t]=Pt.all([e[t]||{},...r]),e))}wt([qr],([e])=>Object.keys(e)),qr.subscribe(e=>Gr=e);const Zr={};function Jr(e){return Zr[e]}function Qr(e){return null!=e&&fo(e).some(e=>{return null==(e=Jr(e))?void 0:e.size})}function eo(o,e){return Promise.all(e.map(e=>{return t=o,r=e,Zr[t].delete(r),0===Zr[t].size&&delete Zr[t],e().then(e=>e.default||e);var t,r})).then(e=>Xr(o,...e))}const to={};function ro(e){var t;return Qr(e)?(t=fo(e).map(e=>{var t=Jr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),to[e]=Promise.all(t.map(([e,t])=>eo(e,t))).then(()=>{if(Qr(e))return ro(e);delete to[e]}),to[e]):e in to?to[e]:Promise.resolve()}const oo={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function io(){return oo}const no=bt(!1);var so=Object.defineProperty,a=Object.defineProperties,or=Object.getOwnPropertyDescriptors,ao=Object.getOwnPropertySymbols,lo=Object.prototype.hasOwnProperty,ho=Object.prototype.propertyIsEnumerable,uo=(e,t,r)=>t in e?so(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let co;const po=bt(null);function mo(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function fo(e,t=oo.fallbackLocale){e=mo(e);return t?[...new Set([...e,...mo(t)])]:e}function _o(){return null!=co?co:void 0}po.subscribe(e=>{co=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});c=((e,t)=>{for(var r in t=t||{})lo.call(t,r)&&uo(e,r,t[r]);if(ao)for(var r of ao(t))ho.call(t,r)&&uo(e,r,t[r]);return e})({},po);const yo=a(c,or({set:t=>{if(t&&function(e){if(null==e)return;const t=fo(e);for(let e=0;e<t.length;e++){const r=t[e];if(Kr(r))return r}}(t)&&Qr(t)){const{loadingDelay:r}=io();let e;return"undefined"!=typeof window&&null!=_o()&&r?e=window.setTimeout(()=>no.set(!0),r):no.set(!0),ro(t).then(()=>{po.set(t)}).finally(()=>{clearTimeout(e),no.set(!1)})}return po.set(t)}})),vo=r=>{const o=Object.create(null);return e=>{var t=JSON.stringify(e);return t in o?o[t]:o[t]=r(e)}};var go=Object.defineProperty,bo=Object.getOwnPropertySymbols,wo=Object.prototype.hasOwnProperty,xo=Object.prototype.propertyIsEnumerable,Eo=(e,t,r)=>t in e?go(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ao=(e,t)=>{for(var r in t=t||{})wo.call(t,r)&&Eo(e,r,t[r]);if(bo)for(var r of bo(t))xo.call(t,r)&&Eo(e,r,t[r]);return e},So=(e,t)=>{var r={};for(o in e)wo.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&bo)for(var o of bo(e))t.indexOf(o)<0&&xo.call(e,o)&&(r[o]=e[o]);return r};const To=(e,t)=>{var r=oo["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Co=vo(e=>{var{locale:t,format:r}=e,e=So(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=To("number",r)),new Intl.NumberFormat(t,e)}),Do=vo(e=>{var{locale:t,format:r}=e,e=So(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=To("date",r):0===Object.keys(e).length&&(e=To("date","short")),new Intl.DateTimeFormat(t,e)}),ko=vo(e=>{var{locale:t,format:r}=e,e=So(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=To("time",r):0===Object.keys(e).length&&(e=To("time","short")),new Intl.DateTimeFormat(t,e)}),Po=vo((e,t=_o())=>new $r(e,t,oo.formats,{ignoreTag:oo.ignoreTag})),Oo=wt([yo,qr],()=>(e,t={})=>{var r,o;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:n,locale:s=_o(),default:a}=i;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Wr(e,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(o=null!=(r=null==(r=(o=oo).handleMissingMessage)?void 0:r.call(o,{locale:s,id:e,defaultValue:a}))?r:a)?o:e;if(!n)return l;let h=l;try{h=Po(l,s).format(n)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h});wt([yo],()=>(e,t)=>((e={})=>{var{locale:t=_o()}=e,e=So(e,["locale"]);return ko(Ao({locale:t},e))})(t).format(e)),wt([yo],()=>(e,t)=>((e={})=>{var{locale:t=_o()}=e,e=So(e,["locale"]);return Do(Ao({locale:t},e))})(t).format(e)),wt([yo],()=>(e,t)=>((e={})=>{var{locale:t=_o()}=e,e=So(e,["locale"]);return Co(Ao({locale:t},e))})(t).format(e)),wt([yo,qr],()=>(e,t=_o())=>Wr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==yt.indexOf(e)&&(t=new mt(t),vt[e]=t,yt.push(e)),vt[e]}};No=Mo={path:void 0,exports:{},require:function(e,t){return Pr(null==t&&Mo.path)}},Mo.exports,No.exports=function(){var H;function m(){return H.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function R(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function B(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(f(e,t))return;return 1}function a(e){return void 0===e}function F(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function z(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function Y(e,t){for(var r=[],o=e.length,i=0;i<o;++i)r.push(t(e[i],i));return r}function U(e,t){for(var r in t)f(t,r)&&(e[r]=t[r]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,r,o){return Ot(e,t,r,o,!0).utc()}function _(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function $(e){if(null==e._isValid){var t=_(e),r=V.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function j(e){var t=h(NaN);return null!=e?U(_(t),e):_(t).userInvalidated=!0,t}var V=Array.prototype.some||function(e){for(var t=Object(this),r=t.length>>>0,o=0;o<r;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1},W=m.momentProperties=[],G=!1;function q(e,t){var r,o,i,n=W.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=_(t)),a(t._locale)||(e._locale=t._locale),0<n)for(r=0;r<n;r++)a(i=t[o=W[r]])||(e[o]=i);return e}function K(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===G&&(G=!0,m.updateOffset(this),G=!1)}function l(e){return e instanceof K||null!=e&&null!=e._isAMomentObject}function X(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(n,s){var a=!0;return U(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,n),a){for(var e,t,r=[],o=arguments.length,i=0;i<o;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])f(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];r.push(e)}X(n+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var Z={};function J(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),Z[e]||(X(t),Z[e]=!0)}function u(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var r,o=U({},e);for(r in t)f(t,r)&&(R(e[r])&&R(t[r])?(o[r]={},U(o[r],e[r]),U(o[r],t[r])):null!=t[r]?o[r]=t[r]:delete o[r]);for(r in e)f(e,r)&&!f(t,r)&&R(e[r])&&(o[r]=U({},o[r]));return o}function ee(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var te=Object.keys||function(e){var t,r=[];for(t in e)f(e,t)&&r.push(t);return r};function n(e,t,r){var o=""+Math.abs(e);return(0<=e?r?"+":"":"-")+Math.pow(10,Math.max(0,t-o.length)).toString().substr(1)+o}var re=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,oe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},ne={};function o(e,t,r,o){var i="string"==typeof o?function(){return this[o]()}:o;e&&(ne[e]=i),t&&(ne[t[0]]=function(){return n(i.apply(this,arguments),t[1],t[2])}),r&&(ne[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function se(e,t){return e.isValid()?(t=ae(t,e.localeData()),ie[t]=ie[t]||function(o){for(var e,i=o.match(re),t=0,n=i.length;t<n;t++)ne[i[t]]?i[t]=ne[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",r=0;r<n;r++)t+=u(i[r])?i[r].call(e,o):i[r];return t}}(t),ie[t](e)):e.localeData().invalidDate()}function ae(e,t){var r=5;function o(e){return t.longDateFormat(e)||e}for(oe.lastIndex=0;0<=r&&oe.test(e);)e=e.replace(oe,o),oe.lastIndex=0,--r;return e}var le={};function t(e,t){var r=e.toLowerCase();le[r]=le[r+"s"]=le[t]=e}function c(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function he(e){var t,r,o={};for(r in e)f(e,r)&&(t=c(r))&&(o[t]=e[r]);return o}var ue={};function r(e,t){ue[e]=t}function ce(e){return e%4==0&&e%100!=0||e%400==0}function d(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function p(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?d(e):t}function de(t,r){return function(e){return null!=e?(me(this,t,e),m.updateOffset(this,r),this):pe(this,t)}}function pe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&ce(e.year())&&1===e.month()&&29===e.date()?(r=p(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),Ie(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}var i=/\d/,y=/\d\d/,fe=/\d{3}/,_e=/\d{4}/,ye=/[+-]?\d{6}/,v=/\d\d?/,ve=/\d\d\d\d?/,ge=/\d\d\d\d\d\d?/,be=/\d{1,3}/,we=/\d{1,4}/,xe=/[+-]?\d{1,6}/,Ee=/\d+/,Ae=/[+-]?\d+/,Se=/Z|[+-]\d\d:?\d\d/gi,Te=/Z|[+-]\d\d(?::?\d\d)?/gi,g=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function b(e,r,o){De[e]=u(r)?r:function(e,t){return e&&o?o:r}}function Ce(e,t){return f(De,e)?De[e](t._strict,t._locale):new RegExp(w(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,o,i){return t||r||o||i})))}function w(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var De={},ke={};function x(e,r){var t,o,i=r;for("string"==typeof e&&(e=[e]),F(r)&&(i=function(e,t){t[r]=p(e)}),o=e.length,t=0;t<o;t++)ke[e[t]]=i}function Pe(e,i){x(e,function(e,t,r,o){r._w=r._w||{},i(e,r._w,r,o)})}var E,A=0,S=1,T=2,C=3,D=4,k=5,Oe=6,Me=7,Ne=8;function Ie(e,t){var r;return isNaN(e)||isNaN(t)?NaN:(r=(t%(r=12)+r)%r,e+=(t-r)/12,1==r?ce(e)?29:28:31-r%7%2)}E=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},o("M",["MM",2],"Mo",function(){return this.month()+1}),o("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),o("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),r("month",8),b("M",v),b("MM",v,y),b("MMM",function(e,t){return t.monthsShortRegex(e)}),b("MMMM",function(e,t){return t.monthsRegex(e)}),x(["M","MM"],function(e,t){t[S]=p(e)-1}),x(["MMM","MMMM"],function(e,t,r,o){o=r._locale.monthsParse(e,o,r._strict);null!=o?t[S]=o:_(r).invalidMonth=e});var Le="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),He="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Be=g,Fe=g;function ze(e,t){var r;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=p(t);else if(!F(t=e.localeData().monthsParse(t)))return;r=Math.min(e.date(),Ie(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r)}}function Ye(e){return null!=e?(ze(this,e),m.updateOffset(this,!0),this):pe(this,"Month")}function Ue(){function e(e,t){return t.length-e.length}for(var t,r=[],o=[],i=[],n=0;n<12;n++)t=h([2e3,n]),r.push(this.monthsShort(t,"")),o.push(this.months(t,"")),i.push(this.months(t,"")),i.push(this.monthsShort(t,""));for(r.sort(e),o.sort(e),i.sort(e),n=0;n<12;n++)r[n]=w(r[n]),o[n]=w(o[n]);for(n=0;n<24;n++)i[n]=w(i[n]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function $e(e){return ce(e)?366:365}o("Y",0,0,function(){var e=this.year();return e<=9999?n(e,4):"+"+e}),o(0,["YY",2],0,function(){return this.year()%100}),o(0,["YYYY",4],0,"year"),o(0,["YYYYY",5],0,"year"),o(0,["YYYYYY",6,!0],0,"year"),t("year","y"),r("year",1),b("Y",Ae),b("YY",v,y),b("YYYY",we,_e),b("YYYYY",xe,ye),b("YYYYYY",xe,ye),x(["YYYYY","YYYYYY"],A),x("YYYY",function(e,t){t[A]=2===e.length?m.parseTwoDigitYear(e):p(e)}),x("YY",function(e,t){t[A]=m.parseTwoDigitYear(e)}),x("Y",function(e,t){t[A]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return p(e)+(68<p(e)?1900:2e3)};var je=de("FullYear",!0);function Ve(e,t,r,o,i,n,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,r,o,i,n,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,r,o,i,n,s),a}function We(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ge(e,t,r){r=7+t-r;return-(7+We(e,0,r).getUTCDay()-t)%7+r-1}function qe(e,t,r,o,i){var n,t=1+7*(t-1)+(7+r-o)%7+Ge(e,o,i),r=t<=0?$e(n=e-1)+t:t>$e(e)?(n=e+1,t-$e(e)):(n=e,t);return{year:n,dayOfYear:r}}function Ke(e,t,r){var o,i,n=Ge(e.year(),t,r),n=Math.floor((e.dayOfYear()-n-1)/7)+1;return n<1?o=n+P(i=e.year()-1,t,r):n>P(e.year(),t,r)?(o=n-P(e.year(),t,r),i=e.year()+1):(i=e.year(),o=n),{week:o,year:i}}function P(e,t,r){var o=Ge(e,t,r),t=Ge(e+1,t,r);return($e(e)-o+t)/7}o("w",["ww",2],"wo","week"),o("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),r("week",5),r("isoWeek",5),b("w",v),b("ww",v,y),b("W",v),b("WW",v,y),Pe(["w","ww","W","WW"],function(e,t,r,o){t[o.substr(0,1)]=p(e)});function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}o("d",0,"do","day"),o("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),o("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),o("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),o("e",0,0,"weekday"),o("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),r("day",11),r("weekday",11),r("isoWeekday",11),b("d",v),b("e",v),b("E",v),b("dd",function(e,t){return t.weekdaysMinRegex(e)}),b("ddd",function(e,t){return t.weekdaysShortRegex(e)}),b("dddd",function(e,t){return t.weekdaysRegex(e)}),Pe(["dd","ddd","dddd"],function(e,t,r,o){o=r._locale.weekdaysParse(e,o,r._strict);null!=o?t.d=o:_(r).invalidWeekday=e}),Pe(["d","e","E"],function(e,t,r,o){t[o]=p(e)});var Ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=g,tt=g,rt=g;function ot(){function e(e,t){return t.length-e.length}for(var t,r,o,i=[],n=[],s=[],a=[],l=0;l<7;l++)o=h([2e3,1]).day(l),t=w(this.weekdaysMin(o,"")),r=w(this.weekdaysShort(o,"")),o=w(this.weekdays(o,"")),i.push(t),n.push(r),s.push(o),a.push(t),a.push(r),a.push(o);i.sort(e),n.sort(e),s.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function it(){return this.hours()%12||12}function nt(e,t){o(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function st(e,t){return t._meridiemParse}o("H",["HH",2],0,"hour"),o("h",["hh",2],0,it),o("k",["kk",2],0,function(){return this.hours()||24}),o("hmm",0,0,function(){return""+it.apply(this)+n(this.minutes(),2)}),o("hmmss",0,0,function(){return""+it.apply(this)+n(this.minutes(),2)+n(this.seconds(),2)}),o("Hmm",0,0,function(){return""+this.hours()+n(this.minutes(),2)}),o("Hmmss",0,0,function(){return""+this.hours()+n(this.minutes(),2)+n(this.seconds(),2)}),nt("a",!0),nt("A",!1),t("hour","h"),r("hour",13),b("a",st),b("A",st),b("H",v),b("h",v),b("k",v),b("HH",v,y),b("hh",v,y),b("kk",v,y),b("hmm",ve),b("hmmss",ge),b("Hmm",ve),b("Hmmss",ge),x(["H","HH"],C),x(["k","kk"],function(e,t,r){e=p(e);t[C]=24===e?0:e}),x(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),x(["h","hh"],function(e,t,r){t[C]=p(e),_(r).bigHour=!0}),x("hmm",function(e,t,r){var o=e.length-2;t[C]=p(e.substr(0,o)),t[D]=p(e.substr(o)),_(r).bigHour=!0}),x("hmmss",function(e,t,r){var o=e.length-4,i=e.length-2;t[C]=p(e.substr(0,o)),t[D]=p(e.substr(o,2)),t[k]=p(e.substr(i)),_(r).bigHour=!0}),x("Hmm",function(e,t,r){var o=e.length-2;t[C]=p(e.substr(0,o)),t[D]=p(e.substr(o))}),x("Hmmss",function(e,t,r){var o=e.length-4,i=e.length-2;t[C]=p(e.substr(0,o)),t[D]=p(e.substr(o,2)),t[k]=p(e.substr(i))});g=de("Hours",!0);var at,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Le,monthsShort:He,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},O={},ht={};function ut(e){return e&&e.toLowerCase().replace("_","-")}function ct(e){for(var t,r,o,i,n=0;n<e.length;){for(t=(i=ut(e[n]).split("-")).length,r=(r=ut(e[n+1]))?r.split("-"):null;0<t;){if(o=dt(i.slice(0,t).join("-")))return o;if(r&&r.length>=t&&function(e,t){for(var r=Math.min(e.length,t.length),o=0;o<r;o+=1)if(e[o]!==t[o])return o;return r}(i,r)>=t-1)break;t--}n++}return at}function dt(t){var e;if(void 0===O[t]&&No&&No.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,Pr(),pt(e)}catch(e){O[t]=null}return O[t]}function pt(e,t){return e&&((t=a(t)?M(e):mt(e,t))?at=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function mt(e,t){if(null===t)return delete O[e],null;var r,o=lt;if(t.abbr=e,null!=O[e])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=O[e]._config;else if(null!=t.parentLocale)if(null!=O[t.parentLocale])o=O[t.parentLocale]._config;else{if(null==(r=dt(t.parentLocale)))return ht[t.parentLocale]||(ht[t.parentLocale]=[]),ht[t.parentLocale].push({name:e,config:t}),null;o=r._config}return O[e]=new ee(Q(o,t)),ht[e]&&ht[e].forEach(function(e){mt(e.name,e.config)}),pt(e),O[e]}function M(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return at;if(!s(e)){if(t=dt(e))return t;e=[e]}return ct(e)}function ft(e){var t=e._a;return t&&-2===_(e).overflow&&(t=t[S]<0||11<t[S]?S:t[T]<1||t[T]>Ie(t[A],t[S])?T:t[C]<0||24<t[C]||24===t[C]&&(0!==t[D]||0!==t[k]||0!==t[Oe])?C:t[D]<0||59<t[D]?D:t[k]<0||59<t[k]?k:t[Oe]<0||999<t[Oe]?Oe:-1,_(e)._overflowDayOfYear&&(t<A||T<t)&&(t=T),_(e)._overflowWeeks&&-1===t&&(t=Me),_(e)._overflowWeekday&&-1===t&&(t=Ne),_(e).overflow=t),e}var _t=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,gt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((-?\d+)/i,xt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Et={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function At(e){var t,r,o,i,n,s,a=e._i,l=_t.exec(a)||yt.exec(a),a=gt.length,h=bt.length;if(l){for(_(e).iso=!0,t=0,r=a;t<r;t++)if(gt[t][1].exec(l[1])){i=gt[t][0],o=!1!==gt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,r=h;t<r;t++)if(bt[t][1].exec(l[3])){n=(l[2]||" ")+bt[t][0];break}if(null==n)return e._isValid=!1}if(!o&&null!=n)return e._isValid=!1;if(l[4]){if(!vt.exec(l[4]))return e._isValid=!1;s="Z"}e._f=i+(n||"")+(s||""),kt(e)}else e._isValid=!1}function St(e,t,r,o,i,n){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),He.indexOf(t),parseInt(r,10),parseInt(o,10),parseInt(i,10)];return n&&e.push(parseInt(n,10)),e}function Tt(e){var t,r,o,i,n=xt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));n?(t=St(n[4],n[3],n[2],n[5],n[6],n[7]),r=n[1],o=t,i=e,r&&Je.indexOf(r)!==new Date(o[0],o[1],o[2]).getDay()?(_(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(r=n[8],o=n[9],i=n[10],r?Et[r]:o?0:((r=parseInt(i,10))-(o=r%100))/100*60+o),e._d=We.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0)):e._isValid=!1}function Ct(e,t,r){return null!=e?e:null!=t?t:r}function Dt(e){var t,r,o,i,n,s,a,l,h,u,c,d=[];if(!e._d){for(u=e,c=new Date(m.now()),r=u._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()],e._w&&null==e._a[T]&&null==e._a[S]&&(null!=(c=(u=e)._w).GG||null!=c.W||null!=c.E?(s=1,a=4,o=Ct(c.GG,u._a[A],Ke(N(),1,4).year),i=Ct(c.W,1),((n=Ct(c.E,1))<1||7<n)&&(l=!0)):(s=u._locale._week.dow,a=u._locale._week.doy,h=Ke(N(),s,a),o=Ct(c.gg,u._a[A],h.year),i=Ct(c.w,h.week),null!=c.d?((n=c.d)<0||6<n)&&(l=!0):null!=c.e?(n=c.e+s,(c.e<0||6<c.e)&&(l=!0)):n=s),i<1||i>P(o,s,a)?_(u)._overflowWeeks=!0:null!=l?_(u)._overflowWeekday=!0:(h=qe(o,i,n,s,a),u._a[A]=h.year,u._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(c=Ct(e._a[A],r[A]),(e._dayOfYear>$e(c)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),l=We(c,0,e._dayOfYear),e._a[S]=l.getUTCMonth(),e._a[T]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=r[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[C]&&0===e._a[D]&&0===e._a[k]&&0===e._a[Oe]&&(e._nextDay=!0,e._a[C]=0),e._d=(e._useUTC?We:Ve).apply(null,d),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[C]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(_(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],_(e).empty=!0;for(var t,r,o,i=""+e._i,n=i.length,s=0,a=(r=ae(e._f,e._locale).match(re)||[]).length,l=0;l<a;l++)o=r[l],(t=(i.match(Ce(o,e))||[])[0])&&(0<(c=i.substr(0,i.indexOf(t))).length&&_(e).unusedInput.push(c),i=i.slice(i.indexOf(t)+t.length),s+=t.length),ne[o]?(t?_(e).empty=!1:_(e).unusedTokens.push(o),c=o,p=e,null!=(d=t)&&f(ke,c)&&ke[c](d,p._a,p,c)):e._strict&&!t&&_(e).unusedTokens.push(o);_(e).charsLeftOver=n-s,0<i.length&&_(e).unusedInput.push(i),e._a[C]<=12&&!0===_(e).bigHour&&0<e._a[C]&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[C]=(n=e._locale,h=e._a[C],null==(u=e._meridiem)?h:null!=n.meridiemHour?n.meridiemHour(h,u):null!=n.isPM?((n=n.isPM(u))&&h<12&&(h+=12),h=n||12!==h?h:0):h),null!==(u=_(e).era)&&(e._a[A]=e._locale.erasConvertYear(u,e._a[A])),Dt(e),ft(e)}else Tt(e);else At(e);var h,u,c,d,p}function Pt(e){var t,r=e._i,o=e._f;{var i,n;return(e._locale=e._locale||M(e._l),null===r||void 0===o&&""===r)?j({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),l(r)?new K(ft(r)):(z(r)?e._d=r:s(o)?function(e){var t,r,o,i,n,s,a=!1,l=e._f.length;if(0===l)return _(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<l;i++)n=0,s=!1,t=q({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],kt(t),$(t)&&(s=!0),n=(n+=_(t).charsLeftOver)+10*_(t).unusedTokens.length,_(t).score=n,a?n<o&&(o=n,r=t):(null==o||n<o||s)&&(o=n,r=t,s)&&(a=!0);U(e,r||t)}(e):o?kt(e):a(o=(r=e)._i)?r._d=new Date(m.now()):z(o)?r._d=new Date(o.valueOf()):"string"==typeof o?(i=r,null===(n=wt.exec(i._i))?(At(i),!1===i._isValid&&(delete i._isValid,Tt(i),!1===i._isValid)&&(delete i._isValid,i._strict?i._isValid=!1:m.createFromInputFallback(i))):i._d=new Date(+n[1])):s(o)?(r._a=Y(o.slice(0),function(e){return parseInt(e,10)}),Dt(r)):R(o)?(i=r)._d||(t=void 0===(n=he(i._i)).day?n.date:n.day,i._a=Y([n.year,n.month,t,n.hour,n.minute,n.second,n.millisecond],function(e){return e&&parseInt(e,10)}),Dt(i)):F(o)?r._d=new Date(o):m.createFromInputFallback(r),$(e)||(e._d=null),e))}}function Ot(e,t,r,o,i){var n={};return!0!==t&&!1!==t||(o=t,t=void 0),!0!==r&&!1!==r||(o=r,r=void 0),(R(e)&&B(e)||s(e)&&0===e.length)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=i,n._l=r,n._i=e,n._f=t,n._strict=o,(i=new K(ft(Pt(i=n))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function N(e,t,r,o){return Ot(e,t,r,o,!1)}m.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};ve=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=N.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:j()}),ge=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=N.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:j()});function Mt(e,t){var r,o;if(!(t=1===t.length&&s(t[0])?t[0]:t).length)return N();for(r=t[0],o=1;o<t.length;++o)t[o].isValid()&&!t[o][e](r)||(r=t[o]);return r}var Nt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function It(e){var e=he(e),t=e.year||0,r=e.quarter||0,o=e.month||0,i=e.week||e.isoWeek||0,n=e.day||0,s=e.hour||0,a=e.minute||0,l=e.second||0,h=e.millisecond||0;this._isValid=function(e){var t,r,o=!1,i=Nt.length;for(t in e)if(f(e,t)&&(-1===E.call(Nt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<i;++r)if(e[Nt[r]]){if(o)return!1;parseFloat(e[Nt[r]])!==p(e[Nt[r]])&&(o=!0)}return!0}(e),this._milliseconds=+h+1e3*l+6e4*a+1e3*s*60*60,this._days=+n+7*i,this._months=+o+3*r+12*t,this._data={},this._locale=M(),this._bubble()}function Lt(e){return e instanceof It}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Rt(e,r){o(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+n(~~(e/60),2)+r+n(~~e%60,2)})}Rt("Z",":"),Rt("ZZ",""),b("Z",Te),b("ZZ",Te),x(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Ft(Te,e)});var Bt=/([\+\-]|\d\d)/gi;function Ft(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Bt)||["-",0,0])[1]+p(e[2]))?0:"+"===e[0]?t:-t}function zt(e,t){var r;return t._isUTC?(t=t.clone(),r=(l(e)||z(e)?e:N(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+r),m.updateOffset(t,!1),t):N(e).local()}function Yt(e){return-Math.round(e._d.getTimezoneOffset())}function Ut(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var $t=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function I(e,t){var r,o,i=e;return Lt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:F(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(t=$t.exec(e))?(r="-"===t[1]?-1:1,i={y:0,d:p(t[T])*r,h:p(t[C])*r,m:p(t[D])*r,s:p(t[k])*r,ms:p(Ht(1e3*t[Oe]))*r}):(t=jt.exec(e))?(r="-"===t[1]?-1:1,i={y:Vt(t[2],r),M:Vt(t[3],r),w:Vt(t[4],r),d:Vt(t[5],r),h:Vt(t[6],r),m:Vt(t[7],r),s:Vt(t[8],r)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=N(i.from),r=N(i.to),t=t.isValid()&&r.isValid()?(r=zt(r,t),t.isBefore(r)?o=Wt(t,r):((o=Wt(r,t)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(i={}).ms=t.milliseconds,i.M=t.months),o=new It(i),Lt(e)&&f(e,"_locale")&&(o._locale=e._locale),Lt(e)&&f(e,"_isValid")&&(o._isValid=e._isValid),o}function Vt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Wt(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Gt(o,i){return function(e,t){var r;return null===t||isNaN(+t)||(J(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=e,e=t,t=r),qt(this,I(e,t),o),this}}function qt(e,t,r,o){var i=t._milliseconds,n=Ht(t._days),t=Ht(t._months);e.isValid()&&(o=null==o||o,t&&ze(e,pe(e,"Month")+t*r),n&&me(e,"Date",pe(e,"Date")+n*r),i&&e._d.setTime(e._d.valueOf()+i*r),o)&&m.updateOffset(e,n||t)}I.fn=It.prototype,I.invalid=function(){return I(NaN)};Le=Gt(1,"add"),Ze=Gt(-1,"subtract");function Kt(e){return"string"==typeof e||e instanceof String}function Xt(e){return l(e)||z(e)||Kt(e)||F(e)||(r=s(t=e),o=!1,r&&(o=0===t.filter(function(e){return!F(e)&&Kt(t)}).length),r&&o)||function(e){var t,r,o=R(e)&&!B(e),i=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=n.length;for(t=0;t<s;t+=1)r=n[t],i=i||f(e,r);return o&&i}(e)||null==e;var t,r,o}function Zt(e,t){var r,o;return e.date()<t.date()?-Zt(t,e):-((r=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(o=e.clone().add(r,"months"))<0?(t-o)/(o-e.clone().add(r-1,"months")):(t-o)/(e.clone().add(1+r,"months")-o)))||0}function Jt(e){return void 0===e?this._locale._abbr:(null!=(e=M(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var er=126227808e5;function tr(e,t){return(e%t+t)%t}function rr(e,t,r){return e<100&&0<=e?new Date(e+400,t,r)-er:new Date(e,t,r).valueOf()}function or(e,t,r){return e<100&&0<=e?Date.UTC(e+400,t,r)-er:Date.UTC(e,t,r)}function ir(e,t){return t.erasAbbrRegex(e)}function nr(){for(var e=[],t=[],r=[],o=[],i=this.eras(),n=0,s=i.length;n<s;++n)t.push(w(i[n].name)),e.push(w(i[n].abbr)),r.push(w(i[n].narrow)),o.push(w(i[n].name)),o.push(w(i[n].abbr)),o.push(w(i[n].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function sr(e,t){o(0,[e,e.length],0,t)}function ar(e,t,r,o,i){var n;return null==e?Ke(this,o,i).year:(t>(n=P(e,o,i))&&(t=n),function(e,t,r,o,i){e=qe(e,t,r,o,i),t=We(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,r,o,i))}o("N",0,0,"eraAbbr"),o("NN",0,0,"eraAbbr"),o("NNN",0,0,"eraAbbr"),o("NNNN",0,0,"eraName"),o("NNNNN",0,0,"eraNarrow"),o("y",["y",1],"yo","eraYear"),o("y",["yy",2],0,"eraYear"),o("y",["yyy",3],0,"eraYear"),o("y",["yyyy",4],0,"eraYear"),b("N",ir),b("NN",ir),b("NNN",ir),b("NNNN",function(e,t){return t.erasNameRegex(e)}),b("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),x(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,o){o=r._locale.erasParse(e,o,r._strict);o?_(r).era=o:_(r).invalidEra=e}),b("y",Ee),b("yy",Ee),b("yyy",Ee),b("yyyy",Ee),b("yo",function(e,t){return t._eraYearOrdinalRegex||Ee}),x(["y","yy","yyy","yyyy"],A),x(["yo"],function(e,t,r,o){var i;r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[A]=r._locale.eraYearOrdinalParse(e,i):t[A]=parseInt(e,10)}),o(0,["gg",2],0,function(){return this.weekYear()%100}),o(0,["GG",2],0,function(){return this.isoWeekYear()%100}),sr("gggg","weekYear"),sr("ggggg","weekYear"),sr("GGGG","isoWeekYear"),sr("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),r("weekYear",1),r("isoWeekYear",1),b("G",Ae),b("g",Ae),b("GG",v,y),b("gg",v,y),b("GGGG",we,_e),b("gggg",we,_e),b("GGGGG",xe,ye),b("ggggg",xe,ye),Pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,o){t[o.substr(0,2)]=p(e)}),Pe(["gg","GG"],function(e,t,r,o){t[o]=m.parseTwoDigitYear(e)}),o("Q",0,"Qo","quarter"),t("quarter","Q"),r("quarter",7),b("Q",i),x("Q",function(e,t){t[S]=3*(p(e)-1)}),o("D",["DD",2],"Do","date"),t("date","D"),r("date",9),b("D",v),b("DD",v,y),b("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),x(["D","DD"],T),x("Do",function(e,t){t[T]=p(e.match(v)[0])});we=de("Date",!0);o("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),r("dayOfYear",4),b("DDD",be),b("DDDD",fe),x(["DDD","DDDD"],function(e,t,r){r._dayOfYear=p(e)}),o("m",["mm",2],0,"minute"),t("minute","m"),r("minute",14),b("m",v),b("mm",v,y),x(["m","mm"],D);_e=de("Minutes",!1);o("s",["ss",2],0,"second"),t("second","s"),r("second",15),b("s",v),b("ss",v,y),x(["s","ss"],k);var lr,xe=de("Seconds",!1);for(o("S",0,0,function(){return~~(this.millisecond()/100)}),o(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),o(0,["SSS",3],0,"millisecond"),o(0,["SSSS",4],0,function(){return 10*this.millisecond()}),o(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),o(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),o(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),o(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),o(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),r("millisecond",16),b("S",be,i),b("SS",be,y),b("SSS",be,fe),lr="SSSS";lr.length<=9;lr+="S")b(lr,Ee);function hr(e,t){t[Oe]=p(1e3*("0."+e))}for(lr="S";lr.length<=9;lr+="S")x(lr,hr);ye=de("Milliseconds",!1),o("z",0,0,"zoneAbbr"),o("zz",0,0,"zoneName");i=K.prototype;function ur(e){return e}i.add=Le,i.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=R(e)&&!B(e),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<o.length;i+=1)r=r||f(e,o[i]);return t&&r}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||N(),r=zt(e,this).startOf("day"),r=m.calendarFormat(this,r)||"sameElse",t=t&&(u(t[r])?t[r].call(this,e):t[r]);return this.format(t||this.localeData().calendar(r,this,N(e)))},i.clone=function(){return new K(this)},i.diff=function(e,t,r){var o,i,n;if(!this.isValid())return NaN;if(!(o=zt(e,this)).isValid())return NaN;switch(i=6e4*(o.utcOffset()-this.utcOffset()),t=c(t)){case"year":n=Zt(this,o)/12;break;case"month":n=Zt(this,o);break;case"quarter":n=Zt(this,o)/3;break;case"second":n=(this-o)/1e3;break;case"minute":n=(this-o)/6e4;break;case"hour":n=(this-o)/36e5;break;case"day":n=(this-o-i)/864e5;break;case"week":n=(this-o-i)/6048e5;break;default:n=this-o}return r?n:d(n)},i.endOf=function(e){var t,r;if(void 0!==(e=c(e))&&"millisecond"!==e&&this.isValid()){switch(r=this._isUTC?or:rr,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tr(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tr(t,1e3)-1}this._d.setTime(t),m.updateOffset(this,!0)}return this},i.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=se(this,e),this.localeData().postformat(e)},i.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||N(e).isValid())?I({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.fromNow=function(e){return this.from(N(),e)},i.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||N(e).isValid())?I({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.toNow=function(e){return this.to(N(),e)},i.get=function(e){return u(this[e=c(e)])?this[e]():this},i.invalidAt=function(){return _(this).overflow},i.isAfter=function(e,t){return e=l(e)?e:N(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=c(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},i.isBefore=function(e,t){return e=l(e)?e:N(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=c(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},i.isBetween=function(e,t,r,o){return e=l(e)?e:N(e),t=l(t)?t:N(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(o=o||"()")[0]?this.isAfter(e,r):!this.isBefore(e,r))&&(")"===o[1]?this.isBefore(t,r):!this.isAfter(t,r))},i.isSame=function(e,t){var e=l(e)?e:N(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=c(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},i.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},i.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},i.isValid=function(){return $(this)},i.lang=Qe,i.locale=Jt,i.localeData=Qt,i.max=ge,i.min=ve,i.parsingFlags=function(){return U({},_(this))},i.set=function(e,t){if("object"==typeof e)for(var r=function(e){var t,r=[];for(t in e)f(e,t)&&r.push({unit:t,priority:ue[t]});return r.sort(function(e,t){return e.priority-t.priority}),r}(e=he(e)),o=r.length,i=0;i<o;i++)this[r[i].unit](e[r[i].unit]);else if(u(this[e=c(e)]))return this[e](t);return this},i.startOf=function(e){var t,r;if(void 0!==(e=c(e))&&"millisecond"!==e&&this.isValid()){switch(r=this._isUTC?or:rr,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tr(t,6e4);break;case"second":t=this._d.valueOf(),t-=tr(t,1e3)}this._d.setTime(t),m.updateOffset(this,!0)}return this},i.subtract=Ze,i.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},i.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},i.toDate=function(){return new Date(this.valueOf())},i.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?se(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):u(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",se(t,"Z")):se(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},i.inspect=function(){var e,t,r;return this.isValid()?(t="moment",r="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(r+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(i[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),i.toJSON=function(){return this.isValid()?this.toISOString():null},i.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},i.unix=function(){return Math.floor(this.valueOf()/1e3)},i.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},i.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},i.eraName=function(){for(var e,t=this.localeData().eras(),r=0,o=t.length;r<o;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].name;if(t[r].until<=e&&e<=t[r].since)return t[r].name}return""},i.eraNarrow=function(){for(var e,t=this.localeData().eras(),r=0,o=t.length;r<o;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].narrow;if(t[r].until<=e&&e<=t[r].since)return t[r].narrow}return""},i.eraAbbr=function(){for(var e,t=this.localeData().eras(),r=0,o=t.length;r<o;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].abbr;if(t[r].until<=e&&e<=t[r].since)return t[r].abbr}return""},i.eraYear=function(){for(var e,t,r=this.localeData().eras(),o=0,i=r.length;o<i;++o)if(e=r[o].since<=r[o].until?1:-1,t=this.clone().startOf("day").valueOf(),r[o].since<=t&&t<=r[o].until||r[o].until<=t&&t<=r[o].since)return(this.year()-m(r[o].since).year())*e+r[o].offset;return this.year()},i.year=je,i.isLeapYear=function(){return ce(this.year())},i.weekYear=function(e){return ar.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},i.isoWeekYear=function(e){return ar.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},i.quarter=i.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},i.month=Ye,i.daysInMonth=function(){return Ie(this.year(),this.month())},i.week=i.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},i.isoWeek=i.isoWeeks=function(e){var t=Ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},i.weeksInYear=function(){var e=this.localeData()._week;return P(this.year(),e.dow,e.doy)},i.weeksInWeekYear=function(){var e=this.localeData()._week;return P(this.weekYear(),e.dow,e.doy)},i.isoWeeksInYear=function(){return P(this.year(),1,4)},i.isoWeeksInISOWeekYear=function(){return P(this.isoWeekYear(),1,4)},i.date=we,i.day=i.days=function(e){var t,r,o;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(r=e,o=this.localeData(),e="string"!=typeof r?r:isNaN(r)?"number"==typeof(r=o.weekdaysParse(r))?r:null:parseInt(r,10),this.add(e-t,"d")):t):null!=e?this:NaN},i.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},i.isoWeekday=function(e){var t,r;return this.isValid()?null!=e?(t=e,r=this.localeData(),r="string"==typeof t?r.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?r:r-7)):this.day()||7:null!=e?this:NaN},i.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},i.hour=i.hours=g,i.minute=i.minutes=_e,i.second=i.seconds=xe,i.millisecond=i.milliseconds=ye,i.utcOffset=function(e,t,r){var o,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Yt(this);if("string"==typeof e){if(null===(e=Ft(Te,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(o=Yt(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),i!==e&&(!t||this._changeInProgress?qt(this,I(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},i.utc=function(e){return this.utcOffset(0,e)},i.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Yt(this),"m"),this},i.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Ft(Se,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},i.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?N(e).utcOffset():0,(this.utcOffset()-e)%60==0)},i.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},i.isLocal=function(){return!!this.isValid()&&!this._isUTC},i.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},i.isUtc=Ut,i.isUTC=Ut,i.zoneAbbr=function(){return this._isUTC?"UTC":""},i.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},i.dates=e("dates accessor is deprecated. Use date instead.",we),i.months=e("months accessor is deprecated. Use month instead",Ye),i.years=e("years accessor is deprecated. Use year instead",je),i.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),i.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return a(this._isDSTShifted)&&(q(t={},this),(t=Pt(t))._a?(e=(t._isUTC?h:N)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,r){for(var o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),n=0,s=0;s<o;s++)(r&&e[s]!==t[s]||!r&&p(e[s])!==p(t[s]))&&n++;return n+i}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function cr(e,t,r,o){var i=M(),o=h().set(o,t);return i[r](o,e)}function dr(e,t,r){if(F(e)&&(t=e,e=void 0),e=e||"",null!=t)return cr(e,t,r,"month");for(var o=[],i=0;i<12;i++)o[i]=cr(e,i,r,"month");return o}function pr(e,t,r,o){t=("boolean"==typeof e||(r=t=e,e=!1),F(t)&&(r=t,t=void 0),t||"");var i,n=M(),s=e?n._week.dow:0,a=[];if(null!=r)return cr(t,(r+s)%7,o,"day");for(i=0;i<7;i++)a[i]=cr(t,(i+s)%7,o,"day");return a}y.calendar=function(e,t,r){return u(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,r):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(re).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=ur,y.postformat=ur,y.relativeTime=function(e,t,r,o){var i=this._relativeTime[r];return u(i)?i(e,t,r,o):i.replace(/%d/i,e)},y.pastFuture=function(e,t){return u(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,r;for(r in e)f(e,r)&&(u(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var r,o=this._eras||M("en")._eras,i=0,n=o.length;i<n;++i)switch("string"==typeof o[i].since&&(r=m(o[i].since).startOf("day"),o[i].since=r.valueOf()),typeof o[i].until){case"undefined":o[i].until=1/0;break;case"string":r=m(o[i].until).startOf("day").valueOf(),o[i].until=r.valueOf()}return o},y.erasParse=function(e,t,r){var o,i,n,s,a,l=this.eras();for(e=e.toUpperCase(),o=0,i=l.length;o<i;++o)if(n=l[o].name.toUpperCase(),s=l[o].abbr.toUpperCase(),a=l[o].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[o];break;case"NNNN":if(n===e)return l[o];break;case"NNNNN":if(a===e)return l[o]}else if(0<=[n,s,a].indexOf(e))return l[o]},y.erasConvertYear=function(e,t){var r=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*r},y.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||nr.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||nr.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||nr.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(s(this._months)?this._months:this._months[(this._months.isFormat||Re).test(t)?"format":"standalone"])[e.month()]:s(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(s(this._monthsShort)?this._monthsShort:this._monthsShort[Re.test(t)?"format":"standalone"])[e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,r){var o,i;if(this._monthsParseExact)return function(e,t,r){var o,i,n,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)n=h([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(n,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(i=E.call(this._shortMonthsParse,e))?i:null:-1!==(i=E.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=E.call(this._shortMonthsParse,e))||-1!==(i=E.call(this._longMonthsParse,e))?i:null:-1!==(i=E.call(this._longMonthsParse,e))||-1!==(i=E.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(i=h([2e3,o]),r&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[o]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(r&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!r&&this._monthsParse[o].test(e))return o}},y.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ue.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Fe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ue.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Be),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ke(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Xe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,r){var o,i;if(this._weekdaysParseExact)return function(e,t,r){var o,i,n,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)n=h([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(n,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(i=E.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=E.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=E.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=E.call(this._weekdaysParse,e))||-1!==(i=E.call(this._shortWeekdaysParse,e))||-1!==(i=E.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=E.call(this._shortWeekdaysParse,e))||-1!==(i=E.call(this._weekdaysParse,e))||-1!==(i=E.call(this._minWeekdaysParse,e))?i:null:-1!==(i=E.call(this._minWeekdaysParse,e))||-1!==(i=E.call(this._weekdaysParse,e))||-1!==(i=E.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(i=h([2e3,1]).day(o),r&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(r&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(r&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!r&&this._weekdaysParse[o].test(e))return o}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||ot.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||ot.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||ot.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=rt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,r){return 11<e?r?"pm":"PM":r?"am":"AM"},pt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===p(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=e("moment.lang is deprecated. Use moment.locale instead.",pt),m.langData=e("moment.langData is deprecated. Use moment.localeData instead.",M);var mr=Math.abs;function fr(e,t,r,o){t=I(t,r);return e._milliseconds+=o*t._milliseconds,e._days+=o*t._days,e._months+=o*t._months,e._bubble()}function _r(e){return e<0?Math.floor(e):Math.ceil(e)}function yr(e){return 4800*e/146097}function vr(e){return 146097*e/4800}function gr(e){return function(){return this.as(e)}}be=gr("ms"),fe=gr("s"),Le=gr("m"),ge=gr("h"),ve=gr("d"),Ze=gr("w"),g=gr("M"),_e=gr("Q"),xe=gr("y");function br(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=br("milliseconds"),we=br("seconds"),je=br("minutes"),y=br("hours"),wr=br("days"),xr=br("months"),Er=br("years");var Ar=Math.round,Sr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tr(e,t,r,o){var i=I(e).abs(),n=Ar(i.as("s")),s=Ar(i.as("m")),a=Ar(i.as("h")),l=Ar(i.as("d")),h=Ar(i.as("M")),u=Ar(i.as("w")),i=Ar(i.as("y")),n=(n<=r.ss?["s",n]:n<r.s&&["ss",n])||(s<=1?["m"]:s<r.m&&["mm",s])||(a<=1?["h"]:a<r.h&&["hh",a])||(l<=1?["d"]:l<r.d&&["dd",l]);return(n=(n=null!=r.w?n||(u<=1?["w"]:u<r.w&&["ww",u]):n)||(h<=1?["M"]:h<r.M&&["MM",h])||(i<=1?["y"]:["yy",i]))[2]=t,n[3]=0<+e,n[4]=o,function(e,t,r,o,i){return i.relativeTime(t||1,!!r,e,o)}.apply(null,n)}var Cr=Math.abs;function Dr(e){return(0<e)-(e<0)||+e}function kr(){var e,t,r,o,i,n,s,a,l,h,u;return this.isValid()?(a=Cr(this._milliseconds)/1e3,l=Cr(this._days),h=Cr(this._months),(u=this.asSeconds())?(e=d(a/60),t=d(e/60),a%=60,e%=60,r=d(h/12),h%=12,o=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=Dr(this._months)!==Dr(u)?"-":"",n=Dr(this._days)!==Dr(u)?"-":"",s=Dr(this._milliseconds)!==Dr(u)?"-":"",(u<0?"-":"")+"P"+(r?i+r+"Y":"")+(h?i+h+"M":"")+(l?n+l+"D":"")+(t||e||a?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(a?s+o+"S":"")):"P0D"):this.localeData().invalidDate()}var L=It.prototype;return L.isValid=function(){return this._isValid},L.abs=function(){var e=this._data;return this._milliseconds=mr(this._milliseconds),this._days=mr(this._days),this._months=mr(this._months),e.milliseconds=mr(e.milliseconds),e.seconds=mr(e.seconds),e.minutes=mr(e.minutes),e.hours=mr(e.hours),e.months=mr(e.months),e.years=mr(e.years),this},L.add=function(e,t){return fr(this,e,t,1)},L.subtract=function(e,t){return fr(this,e,t,-1)},L.as=function(e){if(!this.isValid())return NaN;var t,r,o=this._milliseconds;if("month"===(e=c(e))||"quarter"===e||"year"===e)switch(t=this._days+o/864e5,r=this._months+yr(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(vr(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e)}},L.asMilliseconds=be,L.asSeconds=fe,L.asMinutes=Le,L.asHours=ge,L.asDays=ve,L.asWeeks=Ze,L.asMonths=g,L.asQuarters=_e,L.asYears=xe,L.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*p(this._months/12):NaN},L._bubble=function(){var e=this._milliseconds,t=this._days,r=this._months,o=this._data;return 0<=e&&0<=t&&0<=r||e<=0&&t<=0&&r<=0||(e+=864e5*_r(vr(r)+t),r=t=0),o.milliseconds=e%1e3,e=d(e/1e3),o.seconds=e%60,e=d(e/60),o.minutes=e%60,e=d(e/60),o.hours=e%24,t+=d(e/24),r+=e=d(yr(t)),t-=_r(vr(e)),e=d(r/12),r%=12,o.days=t,o.months=r,o.years=e,this},L.clone=function(){return I(this)},L.get=function(e){return e=c(e),this.isValid()?this[e+"s"]():NaN},L.milliseconds=ye,L.seconds=we,L.minutes=je,L.hours=y,L.days=wr,L.weeks=function(){return d(this.days()/7)},L.months=xr,L.years=Er,L.humanize=function(e,t){var r,o;return this.isValid()?(r=!1,o=Sr,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(o=Object.assign({},Sr,t),null!=t.s)&&null==t.ss&&(o.ss=t.s-1),t=Tr(this,!r,o,e=this.localeData()),r&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},L.toISOString=kr,L.toString=kr,L.toJSON=kr,L.locale=Jt,L.localeData=Qt,L.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kr),L.lang=Qe,o("X",0,0,"unix"),o("x",0,0,"valueOf"),b("x",Ae),b("X",/[+-]?\d+(\.\d{1,3})?/),x("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e))}),x("x",function(e,t,r){r._d=new Date(p(e))}),m.version="2.29.4",H=N,m.fn=i,m.min=function(){return Mt("isBefore",[].slice.call(arguments,0))},m.max=function(){return Mt("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=h,m.unix=function(e){return N(1e3*e)},m.months=function(e,t){return dr(e,t,"months")},m.isDate=z,m.locale=pt,m.invalid=j,m.duration=I,m.isMoment=l,m.weekdays=function(e,t,r){return pr(e,t,r,"weekdays")},m.parseZone=function(){return N.apply(null,arguments).parseZone()},m.localeData=M,m.isDuration=Lt,m.monthsShort=function(e,t){return dr(e,t,"monthsShort")},m.weekdaysMin=function(e,t,r){return pr(e,t,r,"weekdaysMin")},m.defineLocale=mt,m.updateLocale=function(e,t){var r,o;return null!=t?(o=lt,null!=O[e]&&null!=O[e].parentLocale?O[e].set(Q(O[e]._config,t)):(t=Q(o=null!=(r=dt(e))?r._config:o,t),null==r&&(t.abbr=e),(o=new ee(t)).parentLocale=O[e],O[e]=o),pt(e)):null!=O[e]&&(null!=O[e].parentLocale?(O[e]=O[e].parentLocale,e===pt()&&pt(e)):null!=O[e]&&delete O[e]),O[e]},m.locales=function(){return te(O)},m.weekdaysShort=function(e,t,r){return pr(e,t,r,"weekdaysShort")},m.normalizeUnits=c,m.relativeTimeRounding=function(e){return void 0===e?Ar:"function"==typeof e&&(Ar=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==Sr[e]&&(void 0===t?Sr[e]:(Sr[e]=t,"s"===e&&(Sr.ss=t-1),!0))},m.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},m.prototype=i,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m}();var Mo,No,Io=Mo.exports;function Lo(e,t){Xr(e,t)}const Ho={en:{title:"Self-Exclusion",selfExclusionText1:"We recognize that gambling can be harmful so to prevent problems associated with gambling, we offer our users the ability to exclude from all forms of betting on our site for a certain indefinite period of time.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for your chosen period. Select a timeframe below then click "Save".',selfExclusionText3:"During self-exclusion, you will be able to access your account and withdraw funds but you will not be able to deposit or place any bets. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months after its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows:",selfExclusionText4:"E-mail:",duration:"Duration:",forever:"Forever",save:"Save",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent."},"zh-hk":{title:"自我排斥",selfExclusionText1:"我們認識到賭博會導致成癮,為了防止這些問題,我們為用戶提供了在一段時間內排除我們網站上所有形式的投注的能力。",selfExclusionText2:"自我排除從您選擇的時間段設置的時間開始生效。 在下方選擇一個時間範圍,然後單擊“確認”。",selfExclusionText3:"在自我排除期間,您將無法訪問您的 帳戶。 在永久自我排除的情況下,只有在書面請求後才能撤銷自我排除,並且只有在首次申請後 6 個月內。 請注意,請求自我排除的另一種方法是聯繫客戶服務,如下所示:",selfExclusionText4:"電子郵件:",duration:"期間:",forever:"永遠",save:"節省",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。"},fr:{title:"Auto exclusion",selfExclusionText1:"reconnait que le jeu peut conduire à l'addition et dans notre effort pour prévenir ces problèmes, nous offrons à nos utilisateurs la possibilité d'exclure toutes les formes de paris sur notre site pour une certaine période de temps indéfinie.",selfExclusionText2:'L\'auto exclusion prend effet à partir du moment où elle est fixée pour la période que vous choisissez. Sélectionnez une periode ci-dessous puis cliquez sur "Sauvez".',selfExclusionText3:"Pendant l'auto exclusion ,vous ne pourrez pas accéder à votre compte .dans le cas d'une auto exclusion permanente ,il est seulement possible de révoquer l'auto exclusion sur demande écrit et seulement 6 mois après sa demande initiale. veuillez noter qu'une manière alternative de demander l'auto exclusion est de contacter le service client comme suit:",selfExclusionText4:"E-mail:",duration:"Durée:",forever:"Tout le temps",save:"Sauvez",temporarySelfExclusion:"Votre période d'auto exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto exclusion sera permanente."},ro:{title:"Auto-Excludere",selfExclusionText1:"La {operatorname} știm că jocurile de noroc pot provoca dependență și, printre eforturile noastre de a preveni aceste probleme, oferim utilizatorilor posibilitatea de a se exclude de la orice formă de pariere pe o perioadă anume sau chiar nelimitată.",selfExclusionText2:'Auto-excluderea intră în vigoare de la momentul setării, pentru perioada setată. Selectează mai jos o perioadă și apoi apasă pe "Salvează".',selfExclusionText3:"Pe perioada auto-excluderii nu vei putea accesa contul tău {operatorname}. În cazul unei auto-excluderi permanente, aceasta poate fi revocată doar în urma unei solicitări scrise și doar după 6 luni de la aplicarea inițială a acesteia. De asemenea, o altă posibilitate de a solicita auto-excluderea este contactarea Serviciului Clienți după cum urmează:",selfExclusionText4:"E-mail:",duration:"Durată:",forever:"Permanent",save:"Salvează",temporarySelfExclusion:"Perioada de auto-excludere va dura pană la {date} 23:59.",permanentSelfExclusion:"Auto-excluderea este permanentă."},es:{title:"Autoexclusición",selfExclusionText1:"Reconocemos que el juego puedo conducir a la adicción y en nuestro esfuerzo por prevenir estos problemas",selfExclusionText2:'La autoexclusición surte efecto desde el momento en que se establece para el periodo que elijas. Seleccione un período de tiempo a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante la autoexclusión, no podrá acceder a su cuenta de {operator}. En el caso de autoexclusión permanente, solo es posible revocar la autoexclusión previa solicitud por escrito y solo 6 meses después de su solicitud inicial. Ten en cuenta que una forma alternativa de solicitar la autoexclusión es ponerse en contacto con el Servicio de Atención al Cliente de la siguiente manera: Correo electrónico:",selfExclusionText4:"Email",duration:"Duración:",forever:"Para siempre",save:"Guardar",temporarySelfExclusion:"Tu periodo de autoexclusión durará hasta el {date} 23:59. .",permanentSelfExclusion:"Tu periodo de autoexclusión será permanente."},pt:{title:"Auto-exclusão",selfExclusionText1:"reconhece que o jogo pode levar ao vício e em nosso esforço para evitar esses problemas, oferecemos aos nossos usuários a capacidade de excluir todas as formas de apostas em nosso site por um período de tempo indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é definida para o período que você escolher. Selecione um período de tempo abaixo e clique em "Guardar".',selfExclusionText3:"Durante a autoexclusão, você não poderá acessar sua conta . No caso de autoexclusão permanente, só é possível revogar a Autoexclusão mediante pedido escrito e apenas 6 meses após a sua aplicação inicial. Observe que uma forma alternativa de solicitar a autoexclusão é entrar em contato com o Atendimento ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",forever:"Para sempre",save:"Guardar",temporarySelfExclusion:"Seu período de autoexclusão durará até {data} 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente."},hr:{title:"Samoisključenje",selfExclusionText1:"Svjesni smo da kockanje može dovesti do ovisnosti i u našem nastojanju da spriječimo te probleme",selfExclusionText2:'Samoisključenje stupa na snagu od trenutka kada je postavljeno za razdoblje koje odaberete. Odaberite vremenski okvir ispod, a zatim kliknite "Spremi".',selfExclusionText3:"Tijekom samoisključivanja nećete moći pristupiti svom računu. U slučaju trajnog samoisključenja",selfExclusionText4:"E-mail:",duration:"Trajanje:",forever:"Trajno",save:"Spremi",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno."},"pt-br":{title:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial para evitar problemas associados ao jogo,Oferecemos aos nossos usuários a opção de excluir todas as formas de apostas em nosso site por um período indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é selecionada para o período escolhido. Escolha o período de tempo e selecione "Manter".',selfExclusionText3:'Durante a autoexclusão,"Você terá acesso à sua conta e poderá fazer saques, mas não poderá depositar ou fazer apostas. No caso de autoexclusão permanente",Só é possível revogar a autoexclusão mediante solicitação por escrito e apenas 6 meses após a sua inscrição inicial. Observe que uma forma alternativa de solicitar a autoexclusão é entrar em contato com nossa equipe de Atendimento ao Cliente da seguinte forma:',selfExclusionText4:"Correio eletrônico:",duration:"Período de tempo:",forever:"Para sempre",save:"Manter",temporarySelfExclusion:"Seu período de autoexclusão durará até {data} 23h59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente"},"es-mx":{title:"Auto-exclusión",selfExclusionText1:"Reconocemos que las apuestas pueden ser dañinas así que para prevenir problemas asociados con el juego,ofrecemos a nuestros usuarios la opción de excluir todas las formas de apuestas en nuestra página por un period indeterminado de tiempo.",selfExclusionText3:"Durante la auto-exclusión ,usted tendrá acceso a su cuenta y podrá hacer retiros pero no podrá depositar o hacer apuestas. En el caso de la auto-exclusión permanente,Sólo es posible revocar la auto-exclusión bajo una solicitud escrita y solamente 6 meses después de su aplicación inicial .Por favor tome en cuenta que una forma alternativa de solicitar la auto-exclusión es contactar a nuestro equipo de Servicio al Cliente de la siguiente forma:",selfExclusionText4:"Correo electrónico:",duration:"Periodo de Tiempo:",forever:"Para siempre",save:"Guardar",temporarySelfExclusion:"Su periodo de auto-exclusión durará hasta el {date} 23:59.",permanentSelfExclusion:"Su periodo de auto-exclusión será permanente"},tr:{title:"Kendini dışlama",selfExclusionText1:"Kumarın zararlı olabileceğini biliyoruz ve bu nedenle kumarla ilgili sorunları önlemek için kullanıcılarımıza, sitemizdeki tüm bahis türlerinden süresiz olarak hariç tutma olanağı sunuyoruz.",selfExclusionText2:"Kendini hariç tutma, seçtiğiniz dönem için ayarlandığı andan itibaren geçerli olur. Aşağıdan bir zaman aralığı seçin ve ardından Onayla'yı tıklayın.",selfExclusionText3:"Kendini ihraç etme sırasında, hesabınıza erişebilecek ve para çekebileceksiniz ancak herhangi bir para yatıramayacak veya bahis koyamayacaksınız. Kalıcı olarak kendini ihraç etme durumunda, Kendini ihraç etmeyi yalnızca yazılı talep üzerine ve ilk başvurudan yalnızca 6 ay sonra iptal etmek mümkündür. Kendini ihraç etme talebinde bulunmanın alternatif bir yolunun Müşteri Hizmetleriyle aşağıdaki şekilde iletişime geçmek olduğunu lütfen unutmayın:",selfExclusionText4:"E-posta:",duration:"Süre:",forever:"Sonsuza kadar",save:"Kaydetmek",temporarySelfExclusion:"Kendini ihraç etme süreniz {date} 23:59'a kadar sürecek.",permanentSelfExclusion:"Kendini ihraç etme süreniz kalıcı olacaktır."}};function x(e){var t,r=customElements.get(e.is);r?(t=r.version)&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${r.version} is already in use. Something will probably break.`):customElements.define(e.is,e)}class Ro extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.8"}}x(Ro);const Bo=window,Fo=Bo.ShadowRoot&&(void 0===Bo.ShadyCSS||Bo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,zo=Symbol(),Yo=new WeakMap;class Uo{constructor(e,t,r){if(this._$cssResult$=!0,r!==zo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;var t,r=this.t;return Fo&&void 0===e&&(t=void 0!==r&&1===r.length,void 0===(e=t?Yo.get(r):e))&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t)&&Yo.set(r,e),e}toString(){return this.cssText}}const E=(o,...e)=>{e=1===o.length?o[0]:e.reduce((e,t,r)=>e+(()=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})()+o[r+1],o[0]);return new Uo(e,o,zo)},$o=Fo?e=>e:t=>{if(!(t instanceof CSSStyleSheet))return t;{let e="";for(const r of t.cssRules)e+=r.cssText;return t=e,new Uo("string"==typeof t?t:t+"",void 0,zo)}},jo=window,Vo=jo.trustedTypes,Wo=Vo?Vo.emptyScript:"",Go=jo.reactiveElementPolyfillSupport,qo={toAttribute(e,t){switch(t){case Boolean:e=e?Wo:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},Ko=(e,t)=>t!==e&&(t==t||e==e),Xo={attribute:!0,type:String,converter:qo,reflect:!1,hasChanged:Ko},Zo="finalized";class Jo extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!=(t=this.h)?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const r=[];return this.elementProperties.forEach((e,t)=>{e=this._$Ep(t,e);void 0!==e&&(this._$Ev.set(e,t),r.push(e))}),r}static createProperty(e,t=Xo){var r;t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e)||(r="symbol"==typeof e?Symbol():"__"+e,void 0!==(r=this.getPropertyDescriptor(e,r,t))&&Object.defineProperty(this.prototype,e,r))}static getPropertyDescriptor(r,o,i){return{get(){return this[o]},set(e){var t=this[r];this[o]=e,this.requestUpdate(r,t,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Xo}static finalize(){if(this.hasOwnProperty(Zo))return!1;this[Zo]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const r of t)this.createProperty(r,e[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){var t=[];if(Array.isArray(e)){var r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift($o(e))}else void 0!==e&&t.push($o(e));return t}static _$Ep(e,t){t=t.attribute;return!1===t?void 0:"string"==typeof t?t:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null!=(e=this.constructor.h)&&e.forEach(e=>e(this))}addController(e){var t;(null!=(t=this._$ES)?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&null!=(t=e.hostConnected)&&t.call(e)}removeController(e){var t;null!=(t=this._$ES)&&t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var o,e,t=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return o=t,e=this.constructor.elementStyles,Fo?o.adoptedStyleSheets=e.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):e.forEach(e=>{var t=document.createElement("style"),r=Bo.litNonce;void 0!==r&&t.setAttribute("nonce",r),t.textContent=e.cssText,o.appendChild(t)}),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=Xo){var o,i=this.constructor._$Ep(e,r);void 0!==i&&!0===r.reflect&&(o=(void 0!==(null==(o=r.converter)?void 0:o.toAttribute)?r.converter:qo).toAttribute(t,r.type),this._$El=e,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null)}_$AK(e,t){var r=this.constructor,o=r._$Ev.get(e);if(void 0!==o&&this._$El!==o){const e=r.getPropertyOptions(o),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null==(r=e.converter)?void 0:r.fromAttribute)?e.converter:qo;this._$El=o,this[o]=i.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,r){let o=!0;void 0!==e&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||Ko)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,r))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}var e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach((e,t)=>this[t]=e),this._$Ei=void 0);let e=!1;var r=this._$AL;try{(e=this.shouldUpdate(r))?(this.willUpdate(r),null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(r)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(r)}}willUpdate(e){}_$AE(e){var t;null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach((e,t)=>this._$EO(t,this[t],e)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}Jo[Zo]=!0,Jo.elementProperties=new Map,Jo.elementStyles=[],Jo.shadowRootOptions={mode:"open"},null!=Go&&Go({ReactiveElement:Jo}),(null!=(d=jo.reactiveElementVersions)?d:jo.reactiveElementVersions=[]).push("1.6.3");const Qo=window,ei=Qo.trustedTypes,ti=ei?ei.createPolicy("lit-html",{createHTML:e=>e}):void 0,ri="$lit$",oi=`lit$${(Math.random()+"").slice(9)}$`,ii="?"+oi,ni=`<${ii}>`,si=document,ai=()=>si.createComment(""),li=e=>null===e||"object"!=typeof e&&"function"!=typeof e,hi=Array.isArray,ui="[ \t\n\f\r]",ci=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,di=/-->/g,pi=/>/g,mi=RegExp(`>|${ui}(?:([^\\s"'>=/]+)(${ui}*=${ui}*(?:[^
2
+ \r"'\`<>=]|("|')|))|$)`,"g"),fi=/'/g,_i=/"/g,yi=/^(?:script|style|textarea|title)$/i,vi=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),gi=new WeakMap,bi=si.createTreeWalker(si,129,null,!1);function wi(e,t){if(Array.isArray(e)&&e.hasOwnProperty("raw"))return void 0!==ti?ti.createHTML(t):t;throw Error("invalid template strings array")}class xi{constructor({strings:t,_$litType$:r},e){var o;this.parts=[];let i=0,n=0;var s=t.length-1,a=this.parts,[t,l]=((n,e)=>{const s=n.length-1,a=[];let l,h=2===e?"<svg>":"",u=ci;for(let i=0;i<s;i++){const s=n[i];let e,t,r=-1,o=0;for(;o<s.length&&(u.lastIndex=o,null!==(t=u.exec(s)));)o=u.lastIndex,u===ci?"!--"===t[1]?u=di:void 0!==t[1]?u=pi:void 0!==t[2]?(yi.test(t[2])&&(l=RegExp("</"+t[2],"g")),u=mi):void 0!==t[3]&&(u=mi):u===mi?">"===t[0]?(u=null!=l?l:ci,r=-1):void 0===t[1]?r=-2:(r=u.lastIndex-t[2].length,e=t[1],u=void 0===t[3]?mi:'"'===t[3]?_i:fi):u===_i||u===fi?u=mi:u===di||u===pi?u=ci:(u=mi,l=void 0);var c=u===mi&&n[i+1].startsWith("/>")?" ":"";h+=u===ci?s+ni:0<=r?(a.push(e),s.slice(0,r)+ri+s.slice(r)+oi+c):s+oi+(-2===r?(a.push(void 0),i):c)}return[wi(n,h+(n[s]||"<?>")+(2===e?"</svg>":"")),a]})(t,r);if(this.el=xi.createElement(t,e),bi.currentNode=this.el.content,2===r){const t=this.el.content,r=t.firstChild;r.remove(),t.append(...r.childNodes)}for(;null!==(o=bi.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const r of o.getAttributeNames())if(r.endsWith(ri)||r.startsWith(oi)){const e=l[n++];if(t.push(r),void 0!==e){const t=o.getAttribute(e.toLowerCase()+ri).split(oi),r=/([.?@])?(.*)/.exec(e);a.push({type:1,index:i,name:r[2],strings:t,ctor:"."===r[1]?Ci:"?"===r[1]?ki:"@"===r[1]?Pi:Ti})}else a.push({type:6,index:i})}for(const r of t)o.removeAttribute(r)}if(yi.test(o.tagName)){const t=o.textContent.split(oi),r=t.length-1;if(0<r){o.textContent=ei?ei.emptyScript:"";for(let e=0;e<r;e++)o.append(t[e],ai()),bi.nextNode(),a.push({type:2,index:++i});o.append(t[r],ai())}}}else if(8===o.nodeType)if(o.data===ii)a.push({type:2,index:i});else{let e=-1;for(;-1!==(e=o.data.indexOf(oi,e+1));)a.push({type:7,index:i}),e+=oi.length-1}i++}}static createElement(e,t){var r=si.createElement("template");return r.innerHTML=e,r}}function Ei(t,r,o=t,i){var n;if(r!==vi){let e=void 0!==i?null==(s=o._$Co)?void 0:s[i]:o._$Cl;var s=li(r)?void 0:r._$litDirective$;(null==e?void 0:e.constructor)!==s&&(null!=(n=null==e?void 0:e._$AO)&&n.call(e,!1),void 0===s?e=void 0:(e=new s(t))._$AT(t,o,i),void 0!==i?(null!=(n=o._$Co)?n:o._$Co=[])[i]=e:o._$Cl=e),void 0!==e&&(r=Ei(t,e._$AS(t,r.values),e,i))}return r}class Ai{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var{el:{content:e},parts:r}=this._$AD,o=(null!=(o=null==t?void 0:t.creationScope)?o:si).importNode(e,!0);bi.currentNode=o;let i=bi.nextNode(),n=0,s=0,a=r[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new Si(i,i.nextSibling,this,t):1===a.type?e=new a.ctor(i,a.name,a.strings,this,t):6===a.type&&(e=new Oi(i,this,t)),this._$AV.push(e),a=r[++s]}n!==(null==a?void 0:a.index)&&(i=bi.nextNode(),n++)}return bi.currentNode=si,o}v(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class Si{constructor(e,t,r,o){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cp=null==(e=null==o?void 0:o.isConnected)||e}get _$AU(){var e;return null!=(e=null==(e=this._$AM)?void 0:e._$AU)?e:this._$Cp}get parentNode(){let e=this._$AA.parentNode;var t=this._$AM;return e=void 0!==t&&11===(null==e?void 0:e.nodeType)?t.parentNode:e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ei(this,e,t),li(e)?e===A||null==e||""===e?(this._$AH!==A&&this._$AR(),this._$AH=A):e!==this._$AH&&e!==vi&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(t=e,hi(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator])?this.T(e):this._(e))}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==A&&li(this._$AH)?this._$AA.nextSibling.data=e:this.$(si.createTextNode(e)),this._$AH=e}g(e){var t,{values:r,_$litType$:o}=e,o="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=xi.createElement(wi(o.h,o.h[0]),this.options)),o);if((null==(t=this._$AH)?void 0:t._$AD)===o)this._$AH.v(r);else{const e=new Ai(o,this),t=e.u(this.options);e.v(r),this.$(t),this._$AH=e}}_$AC(e){let t=gi.get(e.strings);return void 0===t&&gi.set(e.strings,t=new xi(e)),t}T(e){hi(this._$AH)||(this._$AH=[],this._$AR());var t=this._$AH;let r,o=0;for(const i of e)o===t.length?t.push(r=new Si(this.k(ai()),this.k(ai()),this,this.options)):r=t[o],r._$AI(i),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var r;for(null!=(r=this._$AP)&&r.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null!=(t=this._$AP))&&t.call(this,e)}}class Ti{constructor(e,t,r,o,i){this.type=1,this._$AH=A,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=i,2<r.length||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=A}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(r,o=this,i,n){var s=this.strings;let a=!1;if(void 0===s)r=Ei(this,r,o,0),(a=!li(r)||r!==this._$AH&&r!==vi)&&(this._$AH=r);else{const n=r;let e,t;for(r=s[0],e=0;e<s.length-1;e++)(t=Ei(this,n[i+e],o,e))===vi&&(t=this._$AH[e]),a=a||!li(t)||t!==this._$AH[e],t===A?r=A:r!==A&&(r+=(null!=t?t:"")+s[e+1]),this._$AH[e]=t}a&&!n&&this.j(r)}j(e){e===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class Ci extends Ti{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===A?void 0:e}}const Di=ei?ei.emptyScript:"";class ki extends Ti{constructor(){super(...arguments),this.type=4}j(e){e&&e!==A?this.element.setAttribute(this.name,Di):this.element.removeAttribute(this.name)}}class Pi extends Ti{constructor(e,t,r,o,i){super(e,t,r,o,i),this.type=5}_$AI(e,t=this){var r,o;(e=null!=(t=Ei(this,e,t,0))?t:A)!==vi&&(t=this._$AH,r=e===A&&t!==A||e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive,o=e!==A&&(t===A||r),r&&this.element.removeEventListener(this.name,this,t),o&&this.element.addEventListener(this.name,this,e),this._$AH=e)}handleEvent(e){var t;"function"==typeof this._$AH?this._$AH.call(null!=(t=null==(t=this.options)?void 0:t.host)?t:this.element,e):this._$AH.handleEvent(e)}}class Oi{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Ei(this,e)}}p=Qo.litHtmlPolyfillSupport;null!=p&&p(xi,Si),(null!=(m=Qo.litHtmlVersions)?m:Qo.litHtmlVersions=[]).push("2.8.0");class Mi extends Jo{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t=super.createRenderRoot();return null==(e=this.renderOptions).renderBefore&&(e.renderBefore=t.firstChild),t}update(e){var t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,r)=>{var o,i=null!=(i=null==r?void 0:r.renderBefore)?i:t;let n=i._$litPart$;if(void 0===n){const e=null!=(o=null==r?void 0:r.renderBefore)?o:null;i._$litPart$=n=new Si(t.insertBefore(ai(),e),e,void 0,null!=r?r:{})}return n._$AI(e),n})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null!=(e=this._$Do)&&e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null!=(e=this._$Do)&&e.setConnected(!1)}render(){return vi}}Mi.finalized=!0,Mi._$litElement$=!0,null!=(i=globalThis.litElementHydrateSupport)&&i.call(globalThis,{LitElement:Mi});a=globalThis.litElementPolyfillSupport;null!=a&&a({LitElement:Mi}),(null!=(c=globalThis.litElementVersions)?c:globalThis.litElementVersions=[]).push("3.3.3");const Ni=[];function Ii(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function S(e,t,r={}){var o;e&&Ii(customElements.get(e))&&console.warn(`The custom element definition for "${e}"
3
3
  was finalized before a style module was registered.
4
4
  Make sure to add component specific style modules before
5
- importing the corresponding custom element.`),[i=[]]=[t],t=[i].flat(1/0).filter(e=>e instanceof zi||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,r):Nn.push({themeFor:e,styles:t,include:r.include,moduleId:r.moduleId})}function Ln(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Nn}function Hn(r){const i=r+"-default-theme",e=Ln().filter(e=>{return e.moduleId!==i&&(e=e.themeFor,t=r,(e||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t)));var t}).map(e=>({...e,styles:[...function r(e){const i=[];return e.include&&[].concat(e.include).forEach(t=>{var e=Ln().find(e=>e.moduleId===t);e?i.push(...r(e),...e.styles):console.warn(`Included moduleId ${t} not found in style registry`)},e.styles),i}(e),...e.styles],includePriority:function(e=""){let t=0;return e.startsWith("lumo-")||e.startsWith("material-")?t=1:e.startsWith("vaadin-")&&(t=2),t}(e.moduleId)})).sort((e,t)=>t.includePriority-e.includePriority);return 0<e.length?e:Ln().filter(e=>e.moduleId===i)}c=e=>{return class extends(e=e,class extends e{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),"theme"===e&&this._set_theme(r)}}){static finalize(){var e,t,r;super.finalize(),this.elementStyles||(t=this.prototype._template)&&!In(this)&&(e=this.getStylesForThis(),t=t,(r=document.createElement("style")).innerHTML=e.map(e=>e.cssText).join("\n"),t.content.appendChild(r))}static finalizeStyles(e){var t=this.getStylesForThis();return e?[...super.finalizeStyles(e),...t]:t}static getStylesForThis(){var e=Object.getPrototypeOf(this.prototype),e=(e?e.constructor.__themes:[])||[];this.__themes=[...e,...Hn(this.is)];const r=this.__themes.flatMap(e=>e.styles);return r.filter((e,t)=>t===r.lastIndexOf(e))}}},p=(e,...t)=>{var r;e="lumo-"+e,t=[t],(r=document.createElement("style")).id=e,r.textContent=t.map(e=>e.toString()).join("\n").replace(":host","html"),document.head.insertAdjacentElement("afterbegin",r)},p("color-props",E`
5
+ importing the corresponding custom element.`),[o=[]]=[t],t=[o].flat(1/0).filter(e=>e instanceof Uo||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,r):Ni.push({themeFor:e,styles:t,include:r.include,moduleId:r.moduleId})}function Li(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Ni}function Hi(r){const o=r+"-default-theme",e=Li().filter(e=>{return e.moduleId!==o&&(e=e.themeFor,t=r,(e||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t)));var t}).map(e=>({...e,styles:[...function r(e){const o=[];return e.include&&[].concat(e.include).forEach(t=>{var e=Li().find(e=>e.moduleId===t);e?o.push(...r(e),...e.styles):console.warn(`Included moduleId ${t} not found in style registry`)},e.styles),o}(e),...e.styles],includePriority:function(e=""){let t=0;return e.startsWith("lumo-")||e.startsWith("material-")?t=1:e.startsWith("vaadin-")&&(t=2),t}(e.moduleId)})).sort((e,t)=>t.includePriority-e.includePriority);return 0<e.length?e:Li().filter(e=>e.moduleId===o)}const Ri=e=>{return class extends(e=e,class extends e{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),"theme"===e&&this._set_theme(r)}}){static finalize(){var e,t,r;super.finalize(),this.elementStyles||(t=this.prototype._template)&&!Ii(this)&&(e=this.getStylesForThis(),t=t,(r=document.createElement("style")).innerHTML=e.map(e=>e.cssText).join("\n"),t.content.appendChild(r))}static finalizeStyles(e){var t=this.getStylesForThis();return e?[...super.finalizeStyles(e),...t]:t}static getStylesForThis(){var e=Object.getPrototypeOf(this.prototype),e=(e?e.constructor.__themes:[])||[];this.__themes=[...e,...Hi(this.is)];const r=this.__themes.flatMap(e=>e.styles);return r.filter((e,t)=>t===r.lastIndexOf(e))}}},Bi=(e,...t)=>{var r=document.createElement("style");r.id=e,r.textContent=t.map(e=>e.toString()).join("\n").replace(":host","html"),document.head.insertAdjacentElement("afterbegin",r)},Fi=(e,...t)=>{Bi("lumo-"+e,t)};Fi("color-props",E`
6
6
  :host {
7
7
  /* Base (background) */
8
8
  --lumo-base-color: #fff;
@@ -202,7 +202,7 @@
202
202
  background-color: var(--lumo-contrast-10pct);
203
203
  border-radius: var(--lumo-border-radius-m);
204
204
  }
205
- `,{moduleId:"lumo-color"}),p("sizing-props",E`
205
+ `,{moduleId:"lumo-color"}),Fi("sizing-props",E`
206
206
  :host {
207
207
  --lumo-size-xs: 1.625rem;
208
208
  --lumo-size-s: 1.875rem;
@@ -223,7 +223,7 @@
223
223
  --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
224
224
  --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
225
225
  }
226
- `,p("style-props",E`
226
+ `,Fi("style-props",E`
227
227
  :host {
228
228
  /* Border radius */
229
229
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -240,7 +240,7 @@
240
240
  /* Clickable element cursor */
241
241
  --lumo-clickable-cursor: default;
242
242
  }
243
- `),m=E`
243
+ `);or=E`
244
244
  :host {
245
245
  /* prettier-ignore */
246
246
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -352,7 +352,7 @@
352
352
  border-left: none;
353
353
  border-right: 2px solid var(--lumo-contrast-30pct);
354
354
  }
355
- `,{moduleId:"lumo-typography"}),p("typography-props",m),S("vaadin-input-container",E`
355
+ `,{moduleId:"lumo-typography"}),Fi("typography-props",or),S("vaadin-input-container",E`
356
356
  :host {
357
357
  background-color: var(--lumo-contrast-10pct);
358
358
  padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
@@ -519,7 +519,7 @@
519
519
  --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
520
520
  }
521
521
  }
522
- `,{moduleId:"lumo-input-container"}),window.JSCompiler_renameProperty=function(e,t){return e};let Rn,C,Bn=/(url\()([^)]*)(\))/g,Fn=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function Yn(e,t){if(e&&Fn.test(e))return e;if("//"===e)return e;if(void 0===Rn){Rn=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Rn="http://a/c%20d"===e.href}catch(e){}}if(t=t||document.baseURI||window.location.href,Rn)try{return new URL(e,t).href}catch(t){return e}return C||((C=document.implementation.createHTMLDocument("temp")).base=C.createElement("base"),C.head.appendChild(C.base),C.anchor=C.createElement("a"),C.body.appendChild(C.anchor)),C.base.href=t,C.anchor.href=e,C.anchor.href||e}function zn(e,n){return e.replace(Bn,function(e,t,r,i){return t+"'"+Yn(r.replace(/["']/g,""),n)+"'"+i})}function Un(e){return e.substring(0,e.lastIndexOf("/")+1)}const $n=!window.ShadyDOM||!window.ShadyDOM.inUse,jn=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),$n&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{var e=new CSSStyleSheet,t=(e.replaceSync(""),document.createElement("div"));return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})());let Vn=window.Polymer&&window.Polymer.rootPath||Un(document.baseURI||window.location.href),Wn=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Gn=(window.Polymer&&window.Polymer.setPassiveTouchGestures,window.Polymer&&window.Polymer.strictTemplatePolicy||!1),qn=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Kn=window.Polymer&&window.Polymer.legacyOptimizations||!1,Xn=window.Polymer&&window.Polymer.legacyWarnings||!1,Zn=window.Polymer&&window.Polymer.syncInitialRender||!1,Jn=window.Polymer&&window.Polymer.legacyUndefined||!1,Qn=window.Polymer&&window.Polymer.orderedComputed||!1,eo=window.Polymer&&window.Polymer.removeNestedTemplates||!1,to=window.Polymer&&window.Polymer.fastDomIf||!1,ro=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,io=(window.Polymer&&window.Polymer.legacyNoObservedAttributes,window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1),no=0;function T(n){let o=n.__mixinApplications,s=(o||(o=new WeakMap,n.__mixinApplications=o),no++);return function(e){var t=e.__mixinSet;if(t&&t[s])return e;let r=o,i=r.get(e);return i||(i=n(e),r.set(e,i),(e=Object.create(i.__mixinSet||t||null))[s]=!0,i.__mixinSet=e),i}}let oo={},so={};function ao(e,t){oo[e]=so[e.toLowerCase()]=t}function lo(e){return oo[e]||so[e.toLowerCase()]}class ho extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){return e?(e=lo(e))&&t?e.querySelector(t):e:null}attributeChangedCallback(e,t,r,i){t!==r&&this.register()}get assetpath(){var e;return this.__assetpath||(e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Yn(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=Un(e)),this.__assetpath}register(e){if(e=e||this.id){if(Gn&&void 0!==lo(e))throw ao(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);ao(this.id=e,this),this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}}ho.prototype.modules=oo,customElements.define("dom-module",ho);const uo="link[rel=import][type~=css]",co="include",po="shady-unscoped";function mo(e){return ho.import(e)}function fo(e){var e=zn((e.body||e).textContent,e.baseURI),t=document.createElement("style");return t.textContent=e,t}function _o(e){var t=e.trim().split(/\s+/),r=[];for(let e=0;e<t.length;e++)r.push(...function(e){var t=mo(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...vo(t));var r=t.querySelector("template");r&&e.push(...yo(r,t.assetpath)),t._styles=e}return t._styles}(t[e]));return r}function yo(e,t){if(!e._styles){var r=[],i=e.content.querySelectorAll("style");for(let e=0;e<i.length;e++){var n=i[e],o=n.getAttribute(co);o&&r.push(..._o(o).filter(function(e,t,r){return r.indexOf(e)===t})),t&&(n.textContent=zn(n.textContent,t)),r.push(n)}e._styles=r}return e._styles}function vo(t){const r=[],i=t.querySelectorAll(uo);for(let e=0;e<i.length;e++){var n=i[e];if(n.import){const t=n.import,i=n.hasAttribute(po);if(i&&!t._unscopedStyle){const r=fo(t);r.setAttribute(po,""),t._unscopedStyle=r}else t._style||(t._style=fo(t));r.push(i?t._unscopedStyle:t._style)}}return r}const D=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function go(e){return 0<=e.indexOf(".")}function bo(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function wo(e,t){return 0===e.indexOf(t+".")}function xo(e,t){return 0===t.indexOf(e+".")}function Eo(e,t,r){return t+r.slice(e.length)}function Ao(t){if(Array.isArray(t)){var r=[];for(let e=0;e<t.length;e++){var i=t[e].toString().split(".");for(let e=0;e<i.length;e++)r.push(i[e])}return r.join(".")}return t}function So(e){return(Array.isArray(e)?Ao(e):e.toString()).split(".")}function P(e,t,r){let i=e,n=So(t);for(let e=0;e<n.length;e++){if(!i)return;i=i[n[e]]}return r&&(r.path=n.join(".")),i}function Co(e,t,r){let i=e,n=So(t),o=n[n.length-1];if(1<n.length){for(let e=0;e<n.length-1;e++)if(!(i=i[n[e]]))return;i[o]=r}else i[t]=r;return n.join(".")}const To={},Do=/-[a-z]/g,Po=/([A-Z])/g;function ko(e){return To[e]||(To[e]=e.indexOf("-")<0?e:e.replace(Do,e=>e[1].toUpperCase()))}function Oo(e){return To[e]||(To[e]=e.replace(Po,"-$1").toLowerCase())}let Mo=0,No=0,Io=[],Lo=0,Ho=!1,Ro=document.createTextNode("");new window.MutationObserver(function(){Ho=!1;var t=Io.length;for(let e=0;e<t;e++){var r=Io[e];if(r)try{r()}catch(t){setTimeout(()=>{throw t})}}Io.splice(0,t),No+=t}).observe(Ro,{characterData:!0});const Bo={after:t=>({run:e=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},Fo={run:e=>(Ho||(Ho=!0,Ro.textContent=Lo++),Io.push(e),Mo++),cancel(e){var t=e-No;if(0<=t){if(!Io[t])throw new Error("invalid async handle: "+e);Io[t]=null}}},Yo=Fo,zo=T(e=>class extends e{static createProperties(e){var t,r=this.prototype;for(t in e)t in r||r._createPropertyAccessor(t)}static attributeNameForProperty(e){return e.toLowerCase()}static typeForProperty(e){}_createPropertyAccessor(e,t){this._addPropertyToAttributeMap(e),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,t))}_addPropertyToAttributeMap(e){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let t=this.__dataAttributes[e];return t||(t=this.constructor.attributeNameForProperty(e),this.__dataAttributes[t]=e),t}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!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(var e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])}_initializeInstanceProperties(e){Object.assign(this,e)}_setProperty(e,t){this._setPendingProperty(e,t)&&this._invalidateProperties()}_getProperty(e){return this.__data[e]}_setPendingProperty(e,t,r){var i=this.__data[e],n=this._shouldPropertyChange(e,t,i);return n&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||e in this.__dataOld||(this.__dataOld[e]=i),this.__data[e]=t,this.__dataPending[e]=t),n}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Yo.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++;var e=this.__data,t=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(e,t,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,r)),this.__dataCounter--}_shouldPropertiesChange(e,t,r){return Boolean(t)}_propertiesChanged(e,t,r){}_shouldPropertyChange(e,t,r){return r!==t&&(r==r||t==t)}attributeChangedCallback(e,t,r,i){t!==r&&this._attributeToProperty(e,r),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,r,i)}_attributeToProperty(e,t,r){var i;this.__serializing||(this[i=(i=this.__dataAttributes)&&i[e]||e]=this._deserializeValue(t,r||this.constructor.typeForProperty(i)))}_propertyToAttribute(e,t,r){this.__serializing=!0,r=arguments.length<3?this[e]:r,this._valueToNodeAttribute(this,r,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,r){t=this._serializeValue(t);"class"!==r&&"name"!==r&&"slot"!==r||(e=D(e)),void 0===t?e.removeAttribute(r):e.setAttribute(r,""===t&&window.trustedTypes?window.trustedTypes.emptyScript:t)}_serializeValue(e){return"boolean"==typeof e?e?"":void 0:null!=e?e.toString():void 0}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}}),Uo={};let $o=HTMLElement.prototype;for(;$o;){var jo=Object.getOwnPropertyNames($o);for(let e=0;e<jo.length;e++)Uo[jo[e]]=!0;$o=Object.getPrototypeOf($o)}const Vo=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1,Wo=T(e=>{return class extends zo(e){static createPropertiesForAttributes(){var t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(ko(t[e]))}static attributeNameForProperty(e){return Oo(e)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(e){for(var t in e)this._setProperty(t,e[t])}_ensureAttribute(e,t){this.hasAttribute(e)||this._valueToNodeAttribute(this,t,e)}_serializeValue(e){if("object"==typeof e){if(e instanceof Date)return e.toString();if(e){if(Vo(e))return e;try{return JSON.stringify(e)}catch(e){return""}}}return super._serializeValue(e)}_deserializeValue(e,t){let r;switch(t){case Object:try{r=JSON.parse(e)}catch(t){r=e}break;case Array:try{r=JSON.parse(e)}catch(t){r=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:r=(isNaN(e)?String:Number)(e),r=new Date(r);break;default:r=super._deserializeValue(e,t)}return r}_definePropertyAccessor(e,t){var r,i,n;r=this,i=e,Uo[i]||void 0!==(n=r[i])&&(r.__data?r._setPendingProperty(i,n):(r.__dataProto?r.hasOwnProperty(JSCompiler_renameProperty("__dataProto",r))||(r.__dataProto=Object.create(r.__dataProto)):r.__dataProto={},r.__dataProto[i]=n)),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}}),Go={"dom-if":!0,"dom-repeat":!0};let qo=!1,Ko=!1;const Xo=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{t=t.getAttribute(r);i&&r.startsWith("on-")?e.setAttribute(r,i.createScript(t,r)):e.setAttribute(r,t)}})();const Zo=T(e=>class extends e{static _parseTemplate(e,t){var r;return e._templateInfo||((r=e._templateInfo={nodeInfoList:[]}).nestedTemplate=Boolean(t),r.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,r,{parent:null})),e._templateInfo}static _parseTemplateContent(e,t,r){return this._parseTemplateNode(e.content,t,r)}static _parseTemplateNode(e,t,r){let i=!1,n=e;return"template"!=n.localName||n.hasAttribute("preserve-content")?"slot"===n.localName&&(t.hasInsertionPoint=!0):i=this._parseTemplateNestedTemplate(n,t,r)||i,e=n,qo||(qo=!0,(o=document.createElement("textarea")).placeholder="a",Ko=o.placeholder===o.textContent),Ko&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null),n.firstChild&&this._parseTemplateChildNodes(n,t,r),(i=n.hasAttributes&&n.hasAttributes()?this._parseTemplateNodeAttributes(n,t,r)||i:i)||r.noted;var o}static _parseTemplateChildNodes(i,n,o){if("script"!==i.localName&&"style"!==i.localName)for(let t,r=i.firstChild,e=0;r;r=t){if("template"==r.localName&&(r=function(e){let t=e.getAttribute("is");if(t&&Go[t]){var r=e;for(r.removeAttribute("is"),e=r.ownerDocument.createElement(t),r.parentNode.replaceChild(e,r),e.appendChild(r);r.attributes.length;){const t=r.attributes[0]["name"];Xo(e,r,t),r.removeAttribute(t)}}return e}(r)),t=r.nextSibling,r.nodeType===Node.TEXT_NODE){let e=t;for(;e&&e.nodeType===Node.TEXT_NODE;)r.textContent+=e.textContent,t=e.nextSibling,i.removeChild(e),e=t;if(n.stripWhiteSpace&&!r.textContent.trim()){i.removeChild(r);continue}}var s={parentIndex:e,parentInfo:o};this._parseTemplateNode(r,n,s)&&(s.infoIndex=n.nodeInfoList.push(s)-1),r.parentNode&&e++}}static _parseTemplateNestedTemplate(e,t,r){t=this._parseTemplate(e,t);return(t.content=e.content.ownerDocument.createDocumentFragment()).appendChild(e.content),r.templateInfo=t,!0}static _parseTemplateNodeAttributes(r,i,n){let o=!1,s=Array.from(r.attributes);for(let e,t=s.length-1;e=s[t];t--)o=this._parseTemplateNodeAttribute(r,i,n,e.name,e.value)||o;return o}static _parseTemplateNodeAttribute(e,t,r,i,n){return"on-"===i.slice(0,3)?(e.removeAttribute(i),r.events=r.events||[],r.events.push({name:i.slice(3),value:n}),!0):"id"===i&&(r.id=n,!0)}static _contentForTemplate(e){var t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,i){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);var n,o,s=(i=i||this.constructor._parseTemplate(e)).nodeInfoList,e=i.content||e.content,a=document.importNode(e,!0),l=(a.__noInsertionPoint=!i.hasInsertionPoint,a.nodeList=new Array(s.length));a.$={};for(let e,t=0,r=s.length;t<r&&(e=s[t]);t++){var h=l[t]=function e(t,r){var i=r.parentInfo&&e(t,r.parentInfo);if(!i)return t;for(let e=i.firstChild,t=0;e;e=e.nextSibling)if(r.parentIndex===t++)return e}(a,e),u=(n=a.$,o=h,(d=e).id&&(n[d.id]=o),n=h,d=e,o=i,d.templateInfo&&(n._templateInfo=d.templateInfo,n._parentTemplateInfo=o),d=c=u=void 0,this),c=h,d=e;if(d.events&&d.events.length)for(let e,t=0,r=d.events;t<r.length&&(e=r[t]);t++)u._addMethodEventListenerToNode(c,e.name,e.value,u)}return a}_addMethodEventListenerToNode(e,t,r,i){function n(e){o[s]?o[s](e,e.detail):console.warn("listener method `"+s+"` not defined")}var o,s;o=i=i||e,s=r,o=o._methodHost||o;return this._addEventListenerToNode(e,t,n),n}_addEventListenerToNode(e,t,r){e.addEventListener(t,r)}_removeEventListenerFromNode(e,t,r){e.removeEventListener(t,r)}});let Jo=0;const Qo=[],k={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},es="__computeInfo",ts=/[A-Z]/;function rs(e,t,r){let i=e[t];if(i){if(!e.hasOwnProperty(t)&&(i=e[t]=Object.create(e[t]),r))for(var n in i){var o=i[n],s=i[n]=Array(o.length);for(let e=0;e<o.length;e++)s[e]=o[e]}}else i=e[t]={};return i}function is(n,e,o,s,a,l){if(e){let i=!1;var h,u=Jo++;for(h in o){var c=e[a?bo(h):h];if(c)for(let e,t=0,r=c.length;t<r&&(e=c[t]);t++)e.info&&e.info.lastRun===u||a&&!ns(h,e.trigger)||(e.info&&(e.info.lastRun=u),e.fn(n,h,o,s,e.info,a,l),i=!0)}return i}}function ns(e,t){var r;return!t||(r=t.name)==e||t.structured&&wo(r,e)||t.wildcard&&xo(r,e)}function os(e,t,r,i,n){var o="string"==typeof n.method?e[n.method]:n.method,s=n.property;o?o.call(e,e.__data[s],i[s]):n.dynamicFn||console.warn("observer method `"+n.method+"` not defined")}function ss(e,t,r,i){r={value:r,queueProperty:!0};i&&(r.path=i),D(e).dispatchEvent(new CustomEvent(t,{detail:r}))}function as(e,t,r,i,n,o){let s=(o?bo(t):t)!=t?t:null,a=s?P(e,s):e.__data[t];s&&void 0===a&&(a=r[t]),ss(e,n.eventName,a,s)}function ls(e,t,r,i,n){let o=e.__data[t];Wn&&(o=Wn(o,n.attrName,"attribute",e)),e._propertyToAttribute(t,n.attrName,o)}const hs=(e,t,r)=>{let i=0,n=t.length-1,o=-1;for(;i<=n;){var s=i+n>>1,a=r.get(t[s].methodInfo)-r.get(e.methodInfo);if(a<0)i=1+s;else{if(!(0<a)){o=s;break}n=s-1}}o<0&&(o=n+1),t.splice(o,0,e)},us=(t,e,r,i,n)=>{var o=e[n?bo(t):t];if(o)for(let e=0;e<o.length;e++){var s=o[e];s.info.lastRun===Jo||n&&!ns(t,s.trigger)||(s.info.lastRun=Jo,hs(s.info,r,i))}};function cs(e,t,r,i,n){t=_s(e,t,r,0,n);return t!==Qo&&(r=n.methodInfo,e.__dataHasAccessor&&e.__dataHasAccessor[r]?e._setPendingProperty(r,t,!0):(e[r]=t,!1))}function ds(t,r,e,i,n,o,s){e.bindings=e.bindings||[];var a={kind:i,target:n,parts:o,literal:s,isCompound:1!==o.length},l=(e.bindings.push(a),i=a,Boolean(i.target)&&"attribute"!=i.kind&&"text"!=i.kind&&!i.isCompound&&"{"===i.parts[0].mode&&({event:s,negate:o}=a.parts[0],a.listenerEvent=s||Oo(n)+"-changed",a.listenerNegate=o),r.nodeInfoList.length);for(let e=0;e<a.parts.length;e++){var h=a.parts[e],u=(h.compoundIndex=e,_=f=m=p=d=c=u=void 0,t),c=r,d=a,p=h,m=l;if(!p.literal)if("attribute"===d.kind&&"-"===d.target[0])console.warn("Cannot set attribute "+d.target+' because "-" is not a valid attribute starting character');else{var f=p.dependencies,_={index:m,binding:d,part:p,evaluator:u};for(let t=0;t<f.length;t++){let e=f[t];"string"==typeof e&&((e=Es(e)).wildcard=!0),u._addTemplatePropertyEffect(c,e.rootProperty,{fn:ps,info:_,trigger:e})}}}}function ps(e,t,r,i,n,o,s){var a,s=s[n.index],l=n.binding,h=n.part;o&&h.source&&t.length>h.source.length&&"property"==l.kind&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]?(a=r[t],t=Eo(h.source,l.target,t),s._setPendingPropertyOrPath(t,a,!1,!0)&&e._enqueueClient(s)):(a=n.evaluator._evaluateBinding(e,h,t,r,i,o))!==Qo&&(n=e,t=h,i=r=s,e=o=a,(s=h=l).isCompound&&((l=i.__dataCompoundStorage[s.target])[t.compoundIndex]=e,e=l.join("")),o=e="attribute"!==s.kind&&("textContent"===s.target||"value"===s.target&&("input"===i.localName||"textarea"===i.localName))&&null==e?"":e,Wn&&(o=Wn(o,h.target,h.kind,r)),"attribute"==h.kind?n._valueToNodeAttribute(r,o,h.target):(t=h.target,r.__isPropertyEffectsClient&&r.__dataHasAccessor&&r.__dataHasAccessor[t]?r[k.READ_ONLY]&&r[k.READ_ONLY][t]||r._setPendingProperty(t,o)&&n._enqueueClient(r):n._setUnmanagedPropertyToNode(r,t,o)))}function ms(e,h,u){if(u.listenerEvent){let l=u.parts[0];e.addEventListener(u.listenerEvent,function(i){{var n=h,o=u.target,s=l.source,a=l.negate;let e,t=i.detail,r=t&&t.path;e=r?(s=Eo(o,s,r),t&&t.value):i.currentTarget[o],e=a?!e:e,n[k.READ_ONLY]&&n[k.READ_ONLY][s]||!n._setPendingPropertyOrPath(s,e,!0,Boolean(r))||t&&t.queueProperty||n._invalidateProperties()}})}}function fs(r,i,n,o,e,t){t=i.static||t&&("object"!=typeof t||t[i.methodName]);var s={methodName:i.methodName,args:i.args,methodInfo:e,dynamicFn:t};for(let e,t=0;t<i.args.length&&(e=i.args[t]);t++)e.literal||r._addPropertyEffect(e.rootProperty,n,{fn:o,info:s,trigger:e});return t&&r._addPropertyEffect(i.methodName,n,{fn:o,info:s}),s}function _s(e,t,r,i,n){var o=e._methodHost||e,s=o[n.methodName];if(s)return(e=e._marshalArgs(n.args,t,r))===Qo?Qo:s.apply(o,e);n.dynamicFn||console.warn("method `"+n.methodName+"` not defined")}const ys=[],vs="(?:[a-zA-Z_$][\\w.:$\\-*]*)",gs="(?:("+vs+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",bs=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+vs+"\\s*(?:\\(\\s*(?:(?:"+gs+"(?:,\\s*"+gs+")*)?)\\)\\s*)?)(?:]]|}})","g");function ws(t){let r="";for(let e=0;e<t.length;e++)r+=t[e].literal||"";return r}function xs(e){var t,e=e.match(/([^\s]+?)\(([\s\S]*)\)/);return e?(t={methodName:e[1],static:!0,args:ys},e[2].trim()?function(e,t){return t.args=e.map(function(e){e=Es(e);return e.literal||(t.static=!1),e},this),t}(e[2].replace(/\\,/g,"&comma;").split(","),t):t):null}function Es(e){let t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),r={name:t,value:"",literal:!1},i=t[0];switch(i="0"<=(i="-"===i?t[1]:i)&&i<="9"?"#":i){case"'":case'"':r.value=t.slice(1,-1),r.literal=!0;break;case"#":r.value=Number(t),r.literal=!0}return r.literal||(r.rootProperty=bo(t),r.structured=go(t),r.structured&&(r.wildcard=".*"==t.slice(-2),r.wildcard)&&(r.name=t.slice(0,-2))),r}function As(e,t,r){let i=P(e,r);return i=void 0===i?t[r]:i}function Ss(e,t,r,i){i={indexSplices:i};Jn&&!e._overrideLegacyUndefined&&(t.splices=i),e.notifyPath(r+".splices",i),e.notifyPath(r+".length",t.length),Jn&&!e._overrideLegacyUndefined&&(i.indexSplices=[])}function Cs(e,t,r,i,n,o){Ss(e,t,r,[{index:i,addedCount:n,removed:o,object:t,type:"splice"}])}const Ts=T(e=>{const h=Zo(Wo(e));return class extends h{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 k}_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(){var e;Ds.length&&((e=Ds[Ds.length-1])._enqueueClient(this),this.__dataHost=e)}_initializeProtoProperties(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}_initializeInstanceProperties(e){var t,r=this[k.READ_ONLY];for(t in e)r&&r[t]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[t]=this.__dataPending[t]=e[t])}_addPropertyEffect(e,t,r){this._createPropertyAccessor(e,t==k.READ_ONLY);let i=rs(this,t,!0)[e];(i=i||(this[t][e]=[])).push(r)}_removePropertyEffect(e,t,r){t=rs(this,t,!0)[e],e=t.indexOf(r);0<=e&&t.splice(e,1)}_hasPropertyEffect(e,t){t=this[t];return Boolean(t&&t[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,k.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,k.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,k.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,k.COMPUTE)}_setPendingPropertyOrPath(e,t,r,i){if(i||bo(Array.isArray(e)?e[0]:e)!==e){if(!i){i=P(this,e);if(!(e=Co(this,e,t))||!super._shouldPropertyChange(e,t,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,r)){{var n=this;var o=e;var s=t;var a=n.__dataLinkedPaths;if(a){let e;for(var l in a){var h=a[l];xo(l,o)?(e=Eo(l,h,o),n._setPendingPropertyOrPath(e,s,!0,!0)):xo(h,o)&&(e=Eo(h,l,o),n._setPendingPropertyOrPath(e,s,!0,!0))}}}return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,r);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,r){r===e[t]&&"object"!=typeof r||((e="className"===t?D(e):e)[t]=r)}_setPendingProperty(e,t,r){var i=this.__dataHasPaths&&go(e),n=i?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,n[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),i?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(i||this[k.NOTIFY]&&this[k.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=r),!0)}_setProperty(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){var t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){var r=t[e];r.__dataEnabled?r.__dataPending&&r._flushProperties():r._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(var r in e)!t&&this[k.READ_ONLY]&&this[k.READ_ONLY][r]||this._setPendingPropertyOrPath(r,e[r],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,n,o){var s,a,l,h,u=this.__dataHasPaths,t=(this.__dataHasPaths=!1,this),r=n,i=o,c=u,d=t[k.COMPUTE];if(d)if(Qn){Jo++;var p,m,f=function(n){let o=n.constructor.__orderedComputedDeps;if(!o){o=new Map;var s=n[k.COMPUTE];let e,{counts:t,ready:r,total:i}=function(e){const t=e[es],r={},i=e[k.COMPUTE],n=[];let o=0;for(var s in t){const i=t[s];o+=r[s]=i.args.filter(e=>!e.literal).length+(i.dynamicFn?1:0)}for(var a in i)t[a]||n.push(a);return{counts:r,ready:n,total:o}}(n);for(;e=r.shift();){o.set(e,o.size);const n=s[e];n&&n.forEach(e=>{e=e.info.methodInfo;--i,0==--t[e]&&r.push(e)})}if(0!==i){const o=n;console.warn(`Computed graph for ${o.localName} incomplete; circular?`)}n.constructor.__orderedComputedDeps=o}return o}(t),_=[];for(p in r)us(p,d,_,f,c);for(;m=_.shift();)cs(t,"",r,0,m)&&us(m.methodInfo,d,_,f,c);Object.assign(i,t.__dataOld),Object.assign(r,t.__dataPending),t.__dataPending=null}else{let e=r;for(;is(t,d,e,i,c);)Object.assign(i,t.__dataOld),Object.assign(r,t.__dataPending),e=t.__dataPending,t.__dataPending=null}if(s=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,o,u),this._flushClients(),is(this,this[k.REFLECT],n,o,u),is(this,this[k.OBSERVE],n,o,u),s){var y=this,v=s,g=n,b=o,w=u,x;let e,t,r=y[k.NOTIFY],i=Jo++;for(x in v)v[x]&&(r&&function(i,e,n,o,s,a,l,h){let u=!1,c=e[l?bo(o):o];if(c)for(let e,t=0,r=c.length;t<r&&(e=c[t]);t++)e.info&&e.info.lastRun===n||l&&!ns(o,e.trigger)||(e.info&&(e.info.lastRun=n),e.fn(i,o,s,a,e.info,l,h),u=!0);return u}(y,r,i,x,g,b,w)||w&&(a=y,x=x,l=g,h=void 0,h=bo(x),h!==x)&&(ss(a,Oo(h)+"-changed",l[x],x),1))&&(e=!0);e&&(t=y.__dataHost)&&t._invalidateProperties&&t._invalidateProperties()}1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,r){this[k.PROPAGATE]&&is(this,this[k.PROPAGATE],e,t,r),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,r)}_runEffectsForTemplate(i,e,n,t){var r=(t,r)=>{is(this,i.propertyEffects,t,n,r,i.nodeList);for(let e=i.firstChild;e;e=e.nextSibling)this._runEffectsForTemplate(e,t,n,r)};i.runEffects?i.runEffects(r,e,t):r(e,t)}linkPaths(e,t){e=Ao(e),t=Ao(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=Ao(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){var r={path:""};Ss(this,P(this,e,r),r.path,t)}get(e,t){return P(t||this,e)}set(e,t,r){r?Co(r,e,t):this[k.READ_ONLY]&&this[k.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){var r={path:""},e=P(this,e,r),i=e.length,n=e.push(...t);return t.length&&Cs(this,e,r.path,i,t.length,[]),n}pop(e){var t={path:""},e=P(this,e,t),r=Boolean(e.length),i=e.pop();return r&&Cs(this,e,t.path,e.length,0,[i]),i}splice(e,t,r,...i){var n={path:""},e=P(this,e,n);return t=t<0?e.length-Math.floor(-t):t&&Math.floor(t),r=2===arguments.length?e.splice(t):e.splice(t,r,...i),(i.length||r.length)&&Cs(this,e,n.path,t,i.length,r),r}shift(e){var t={path:""},e=P(this,e,t),r=Boolean(e.length),i=e.shift();return r&&Cs(this,e,t.path,0,0,[i]),i}unshift(e,...t){var r={path:""},e=P(this,e,r),i=e.unshift(...t);return t.length&&Cs(this,e,r.path,0,t.length,[]),i}notifyPath(e,t){let r;var i;r=1==arguments.length?(t=P(this,e,i={path:""}),i.path):Array.isArray(e)?Ao(e):e,this._setPendingPropertyOrPath(r,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,k.READ_ONLY),e&&(this["_set"+((e=t)[0].toUpperCase()+e.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(e,t,r){var i={property:e,method:t,dynamicFn:Boolean(r)};this._addPropertyEffect(e,k.OBSERVE,{fn:os,info:i,trigger:{name:e}}),r&&this._addPropertyEffect(t,k.OBSERVE,{fn:os,info:i,trigger:{name:t}})}_createMethodObserver(e,t){var r=xs(e);if(!r)throw new Error("Malformed observer expression '"+e+"'");fs(this,r,k.OBSERVE,_s,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,k.NOTIFY,{fn:as,info:{eventName:Oo(e)+"-changed",property:e}})}_createReflectedProperty(e){var t=this.constructor.attributeNameForProperty(e);"-"===t[0]?console.warn("Property "+e+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,k.REFLECT,{fn:ls,info:{attrName:t}})}_createComputedProperty(e,t,r){var i=xs(t);if(!i)throw new Error("Malformed computed expression '"+t+"'");t=fs(this,i,k.COMPUTE,cs,e,r);rs(this,es)[e]=t}_marshalArgs(s,a,l){const h=this.__data,u=[];for(let o=0,e=s.length;o<e;o++){let{name:e,structured:t,wildcard:r,value:i,literal:n}=s[o];if(!n)if(r){const s=xo(e,a),u=As(h,l,s?a:e);i={path:s?a:e,value:u,base:s?P(h,e):u}}else i=t?As(h,l,e):h[e];if(Jn&&!this._overrideLegacyUndefined&&void 0===i&&1<s.length)return Qo;u[o]=i}return u}static addPropertyEffect(e,t,r){this.prototype._addPropertyEffect(e,t,r)}static createPropertyObserver(e,t,r){this.prototype._createPropertyObserver(e,t,r)}static createMethodObserver(e,t){this.prototype._createMethodObserver(e,t)}static createNotifyingProperty(e){this.prototype._createNotifyingProperty(e)}static createReadOnlyProperty(e,t){this.prototype._createReadOnlyProperty(e,t)}static createReflectedProperty(e){this.prototype._createReflectedProperty(e)}static createComputedProperty(e,t,r){this.prototype._createComputedProperty(e,t,r)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let r=this.constructor._parseTemplate(e),i=this.__preBoundTemplateInfo==r;if(!i)for(var n in r.propertyEffects)this._createPropertyAccessor(n);if(t)if((r=Object.create(r)).wasPreBound=i,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,i=t.lastChild;(((r.parent=t).lastChild=r).previousSibling=i)?i.nextSibling=r:t.firstChild=r}else this.__templateInfo=r;else this.__preBoundTemplateInfo=r;return r}static _addTemplatePropertyEffect(e,t,r){(e.hostProps=e.hostProps||{})[t]=!0;e=e.propertyEffects=e.propertyEffects||{};(e[t]=e[t]||[]).push(r)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Ds.push(this);t=super._stampTemplate(t,e);if(Ds.pop(),e.nodeList=t.nodeList,!e.wasPreBound){var r=e.childNodes=[];for(let e=t.firstChild;e;e=e.nextSibling)r.push(e)}t.templateInfo=e;var i=this,{nodeList:n,nodeInfoList:o}=e;if(o.length)for(let e=0;e<o.length;e++){var s=o[e],a=n[e],l=s.bindings;if(l)for(let e=0;e<l.length;e++){var h=l[e],u=(f=m=p=d=c=u=void 0,a),c=h;if(c.isCompound){var d=u.__dataCompoundStorage||(u.__dataCompoundStorage={}),p=c.parts,m=new Array(p.length);for(let e=0;e<p.length;e++)m[e]=p[e].literal;var f=c.target;d[f]=m,c.literal&&"property"==c.kind&&((u="className"===f?D(u):u)[f]=c.literal)}ms(a,i,h)}a.__dataHost=i}return this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),t}_removeBoundDom(e){var e=e.templateInfo,{previousSibling:t,nextSibling:r,parent:i}=e,n=(t?t.nextSibling=r:i&&(i.firstChild=r),r?r.previousSibling=t:i&&(i.lastChild=t),e.nextSibling=e.previousSibling=null,e.childNodes);for(let e=0;e<n.length;e++){var o=n[e];D(D(o).parentNode).removeChild(o)}}static _parseTemplateNode(e,t,r){let i=h._parseTemplateNode.call(this,e,t,r);var n;return e.nodeType===Node.TEXT_NODE&&(n=this._parseBindings(e.textContent,t))&&(e.textContent=ws(n)||" ",ds(this,t,r,"text","textContent",n),i=!0),i}static _parseTemplateNodeAttribute(i,n,o,s,e){var a=this._parseBindings(e,n);if(a){let e=s,t="property",r=(ts.test(s)?t="attribute":"$"==s[s.length-1]&&(s=s.slice(0,-1),t="attribute"),ws(a));return r&&"attribute"==t&&("class"==s&&i.hasAttribute("class")&&(r+=" "+i.getAttribute(s)),i.setAttribute(s,r)),"attribute"==t&&"disable-upgrade$"==e&&i.setAttribute(s,""),"input"===i.localName&&"value"===e&&i.setAttribute(e,""),i.removeAttribute(e),"property"===t&&(s=ko(s)),ds(this,n,o,t,s,a,r),!0}return h._parseTemplateNodeAttribute.call(this,i,n,o,s,e)}static _parseTemplateNestedTemplate(e,t,r){let i=h._parseTemplateNestedTemplate.call(this,e,t,r);var n=e.parentNode,o=r.templateInfo,s="dom-if"===n.localName,a="dom-repeat"===n.localName,a=(eo&&(s||a)&&(n.removeChild(e),(r=r.parentInfo).templateInfo=o,r.noted=!0,i=!1),o.hostProps);if(to&&s)a&&(t.hostProps=Object.assign(t.hostProps||{},a),eo||(r.parentInfo.noted=!0));else for(var l in a)ds(this,t,r,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return i}static _parseBindings(s,a){let l,h=[],u=0;for(;null!==(l=bs.exec(s));){l.index>u&&h.push({literal:s.slice(u,l.index)});let e=l[1][0],t=Boolean(l[2]),r=l[3].trim(),i=!1,n="",o=-1;"{"==e&&0<(o=r.indexOf("::"))&&(n=r.substring(o+2),r=r.substring(0,o),i=!0);var c=xs(r),d=[];if(c){var{args:p,methodName:m}=c;for(let e=0;e<p.length;e++){var f=p[e];f.literal||d.push(f)}var _=a.dynamicFns;(_&&_[m]||c.static)&&(d.push(m),c.dynamicFn=!0)}else d.push(r);h.push({source:r,mode:e,negate:t,customEvent:i,signature:c,dependencies:d,event:n}),u=bs.lastIndex}var e;return u&&u<s.length&&(e=s.substring(u))&&h.push({literal:e}),h.length?h:null}static _evaluateBinding(e,t,r,i,n,o){let s;return s=t.signature?_s(e,r,i,0,t.signature):r!=t.source?P(e,t.source):o&&go(r)?P(e,r):e.__data[r],s=t.negate?!s:s}}}),Ds=[],Ps=T(e=>{function t(e){e=Object.getPrototypeOf(e);return e.prototype instanceof i?e:null}function r(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;var r;t.hasOwnProperty(JSCompiler_renameProperty("properties",t))&&(r=t.properties)&&(e=function(e){var t,r={};for(t in e){var i=e[t];r[t]="function"==typeof i?{type:i}:i}return r}(r)),t.__ownProperties=e}return t.__ownProperties}class i extends zo(e){static get observedAttributes(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.prototype,e=this._properties,this.__observedAttributes=e?Object.keys(e).map(e=>this.prototype._addPropertyToAttributeMap(e)):[]),this.__observedAttributes}static finalize(){var e;this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))||((e=t(this))&&e.finalize(),this.__finalized=!0,this._finalizeClass())}static _finalizeClass(){var e=r(this);e&&this.createProperties(e)}static get _properties(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))||(e=t(this),this.__properties=Object.assign({},e&&e._properties,r(this))),this.__properties}static typeForProperty(e){e=this._properties[e];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return i}),ks=window.ShadyCSS&&window.ShadyCSS.cssBuild,Os=T(e=>{const i=Ps(Ts(e));return class extends i{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){i._finalizeClass.call(this);this.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",this))||(this.__ownObservers=this.hasOwnProperty(JSCompiler_renameProperty("observers",this))?this.observers:null);var e=this.__ownObservers;e&&this.createObservers(e,this._properties),this._prepareTemplate()}static _prepareTemplate(){let e=this.template;e&&("string"==typeof e?(console.error("template getter must return HTMLTemplateElement"),e=null):Kn||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(var t in e)r=this.prototype,i=t,t=e[t],n=e,t.computed&&(t.readOnly=!0),t.computed&&(r._hasReadOnlyEffect(i)?console.warn(`Cannot redefine computed property '${i}'.`):r._createComputedProperty(i,t.computed,n)),t.readOnly&&!r._hasReadOnlyEffect(i)?r._createReadOnlyProperty(i,!t.computed):!1===t.readOnly&&r._hasReadOnlyEffect(i)&&console.warn(`Cannot make readOnly property '${i}' non-readOnly.`),t.reflectToAttribute&&!r._hasReflectEffect(i)?r._createReflectedProperty(i):!1===t.reflectToAttribute&&r._hasReflectEffect(i)&&console.warn(`Cannot make reflected property '${i}' non-reflected.`),t.notify&&!r._hasNotifyEffect(i)?r._createNotifyingProperty(i):!1===t.notify&&r._hasNotifyEffect(i)&&console.warn(`Cannot make notify property '${i}' non-notify.`),t.observer&&r._createPropertyObserver(i,t.observer,n[t.observer]),r._addPropertyToAttributeMap(i);var r,i,n}static createObservers(t,r){var i=this.prototype;for(let e=0;e<t.length;e++)i._createMethodObserver(t[e],r)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let e=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof e&&(e=e()),this._template=void 0!==e?e:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(e){let t=null;if(!e||Gn&&!qn||(t=ho.import(e,"template"),!Gn)||t)return t;throw new Error("strictTemplatePolicy: expecting dom-module or null template for "+e)}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(e){this._template=e}static get importPath(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))||((e=this.importMeta)?this._importPath=Un(e.url):(e=ho.import(this.is),this._importPath=e&&e.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath)),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=Vn,this.importPath=this.constructor.importPath;var e=function(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;var t,r=e._properties;for(t in r){var i=r[t];"value"in i&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[t]=i)}}return e.__propertyDefaults}(this.constructor);if(e)for(var t in e){var r=e[t];this._canApplyPropertyDefault(t)&&(r="function"==typeof r.value?r.value.call(this):r.value,this._hasAccessor(t)?this._setPendingProperty(t,r,!0):this[t]=r)}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return zn(e,t)}static _finalizeTemplate(e){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var r=this.importPath,n=this,o=t,s=e,a=r?Yn(r):"";if(!ks){var l=o.content.querySelectorAll("style"),h=yo(o),u=(e=mo(s))?vo(e):[],c=o.content.firstElementChild;for(let e=0;e<u.length;e++){var d=u[e];d.textContent=n._processStyleText(d.textContent,a),o.content.insertBefore(d,c)}let i=0;for(let r=0;r<h.length;r++){let e=h[r],t=l[i];t!==e?(e=e.cloneNode(!0),t.parentNode.insertBefore(e,t)):i++,e.textContent=n._processStyleText(e.textContent,a)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(o,s),io&&ks&&jn){const s=o.content.querySelectorAll("style");if(s){let t="";Array.from(s).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),n._styleSheet=new CSSStyleSheet,n._styleSheet.replaceSync(t)}}this.prototype._bindTemplate(t)}}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(e){var t=D(this);if(t.attachShadow)return e?(t.shadowRoot||(t.attachShadow({mode:"open",shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),this.constructor._styleSheet&&(t.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Zn&&window.ShadyDOM&&window.ShadyDOM.flushInitial(t.shadowRoot),t.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(e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,e)}resolveUrl(e,t){return!t&&this.importPath&&(t=Yn(this.importPath)),Yn(e,t)}static _parseTemplateContent(e,t,r){return t.dynamicFns=t.dynamicFns||this._properties,i._parseTemplateContent.call(this,e,t,r)}static _addTemplatePropertyEffect(e,t,r){return!Xn||t in this._properties||r.info.part.signature&&r.info.part.signature.static||r.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`),i._addTemplatePropertyEffect.call(this,e,t,r)}}}),Ms=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});function Ns(e){throw class{},new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function Is(i,...e){Ls(i,e);var t=document.createElement("template");let r=e.reduce((e,t,r)=>e+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(!1)return Ns(e);throw new Error("non-template value passed to Polymer's html function: "+e)}(t)+i[r+1],i[0]);return Ms&&(r=Ms.createHTML(r)),t.innerHTML=r,t}const Ls=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")},Hs=Os(HTMLElement),Rs=[];function Bs(e,t,r=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=r&&e.removeAttribute("dir")}function Fs(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){const t=Fs();Rs.forEach(e=>{Bs(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ys=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")&&!this.__restoreSubscription||(this.__subscribe(),Bs(this,Fs(),null))}attributeChangedCallback(e,t,r){var i,n;super.attributeChangedCallback(e,t,r),"dir"===e&&(i=r===(e=Fs())&&-1===Rs.indexOf(this),n=!r&&t&&-1===Rs.indexOf(this),t=r!==e&&t===e,i||n?(this.__subscribe(),Bs(this,e,r)):t&&this.__unsubscribe())}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Rs.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,r){"dir"===r&&""===t&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,r)}_attributeToProperty(e,t,r){"dir"!==e||t?super._attributeToProperty(e,t,r):this.dir=""}__subscribe(){Rs.includes(this)||Rs.push(this)}__unsubscribe(){Rs.includes(this)&&Rs.splice(Rs.indexOf(this),1)}};class zs extends c(Ys(Hs)){static get is(){return"vaadin-input-container"}static get template(){return Is`
522
+ `,{moduleId:"lumo-input-container"}),window.JSCompiler_renameProperty=function(e,t){return e};let zi,T,Yi=/(url\()([^)]*)(\))/g,Ui=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function $i(e,t){if(e&&Ui.test(e))return e;if("//"===e)return e;if(void 0===zi){zi=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",zi="http://a/c%20d"===e.href}catch(e){}}if(t=t||document.baseURI||window.location.href,zi)try{return new URL(e,t).href}catch(t){return e}return T||((T=document.implementation.createHTMLDocument("temp")).base=T.createElement("base"),T.head.appendChild(T.base),T.anchor=T.createElement("a"),T.body.appendChild(T.anchor)),T.base.href=t,T.anchor.href=e,T.anchor.href||e}function ji(e,i){return e.replace(Yi,function(e,t,r,o){return t+"'"+$i(r.replace(/["']/g,""),i)+"'"+o})}function Vi(e){return e.substring(0,e.lastIndexOf("/")+1)}const Wi=!window.ShadyDOM||!window.ShadyDOM.inUse,Gi=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),Wi&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{var e=new CSSStyleSheet,t=(e.replaceSync(""),document.createElement("div"));return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})());let qi=window.Polymer&&window.Polymer.rootPath||Vi(document.baseURI||window.location.href),Ki=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Xi=(window.Polymer&&window.Polymer.setPassiveTouchGestures,window.Polymer&&window.Polymer.strictTemplatePolicy||!1),Zi=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Ji=window.Polymer&&window.Polymer.legacyOptimizations||!1,Qi=window.Polymer&&window.Polymer.legacyWarnings||!1,en=window.Polymer&&window.Polymer.syncInitialRender||!1,tn=window.Polymer&&window.Polymer.legacyUndefined||!1,rn=window.Polymer&&window.Polymer.orderedComputed||!1,on=window.Polymer&&window.Polymer.removeNestedTemplates||!1,nn=window.Polymer&&window.Polymer.fastDomIf||!1,sn=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,an=(window.Polymer&&window.Polymer.legacyNoObservedAttributes,window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1),ln=0;function C(i){let n=i.__mixinApplications,s=(n||(n=new WeakMap,i.__mixinApplications=n),ln++);return function(e){var t=e.__mixinSet;if(t&&t[s])return e;let r=n,o=r.get(e);return o||(o=i(e),r.set(e,o),(e=Object.create(o.__mixinSet||t||null))[s]=!0,o.__mixinSet=e),o}}let hn={},un={};function cn(e,t){hn[e]=un[e.toLowerCase()]=t}function dn(e){return hn[e]||un[e.toLowerCase()]}class pn extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){return e?(e=dn(e))&&t?e.querySelector(t):e:null}attributeChangedCallback(e,t,r,o){t!==r&&this.register()}get assetpath(){var e;return this.__assetpath||(e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=$i(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=Vi(e)),this.__assetpath}register(e){if(e=e||this.id){if(Xi&&void 0!==dn(e))throw cn(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);cn(this.id=e,this),this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}}pn.prototype.modules=hn,customElements.define("dom-module",pn);const mn="link[rel=import][type~=css]",fn="include",_n="shady-unscoped";function yn(e){return pn.import(e)}function vn(e){var e=ji((e.body||e).textContent,e.baseURI),t=document.createElement("style");return t.textContent=e,t}function gn(e){var t=e.trim().split(/\s+/),r=[];for(let e=0;e<t.length;e++)r.push(...function(e){var t=yn(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...wn(t));var r=t.querySelector("template");r&&e.push(...bn(r,t.assetpath)),t._styles=e}return t._styles}(t[e]));return r}function bn(e,t){if(!e._styles){var r=[],o=e.content.querySelectorAll("style");for(let e=0;e<o.length;e++){var i=o[e],n=i.getAttribute(fn);n&&r.push(...gn(n).filter(function(e,t,r){return r.indexOf(e)===t})),t&&(i.textContent=ji(i.textContent,t)),r.push(i)}e._styles=r}return e._styles}function wn(t){const r=[],o=t.querySelectorAll(mn);for(let e=0;e<o.length;e++){var i=o[e];if(i.import){const t=i.import,o=i.hasAttribute(_n);if(o&&!t._unscopedStyle){const r=vn(t);r.setAttribute(_n,""),t._unscopedStyle=r}else t._style||(t._style=vn(t));r.push(o?t._unscopedStyle:t._style)}}return r}const D=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function xn(e){return 0<=e.indexOf(".")}function En(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function An(e,t){return 0===e.indexOf(t+".")}function Sn(e,t){return 0===t.indexOf(e+".")}function Tn(e,t,r){return t+r.slice(e.length)}function Cn(t){if(Array.isArray(t)){var r=[];for(let e=0;e<t.length;e++){var o=t[e].toString().split(".");for(let e=0;e<o.length;e++)r.push(o[e])}return r.join(".")}return t}function Dn(e){return(Array.isArray(e)?Cn(e):e.toString()).split(".")}function k(e,t,r){let o=e,i=Dn(t);for(let e=0;e<i.length;e++){if(!o)return;o=o[i[e]]}return r&&(r.path=i.join(".")),o}function kn(e,t,r){let o=e,i=Dn(t),n=i[i.length-1];if(1<i.length){for(let e=0;e<i.length-1;e++)if(!(o=o[i[e]]))return;o[n]=r}else o[t]=r;return i.join(".")}const Pn={},On=/-[a-z]/g,Mn=/([A-Z])/g;function Nn(e){return Pn[e]||(Pn[e]=e.indexOf("-")<0?e:e.replace(On,e=>e[1].toUpperCase()))}function In(e){return Pn[e]||(Pn[e]=e.replace(Mn,"-$1").toLowerCase())}let Ln=0,Hn=0,Rn=[],Bn=0,Fn=!1,zn=document.createTextNode("");new window.MutationObserver(function(){Fn=!1;var t=Rn.length;for(let e=0;e<t;e++){var r=Rn[e];if(r)try{r()}catch(t){setTimeout(()=>{throw t})}}Rn.splice(0,t),Hn+=t}).observe(zn,{characterData:!0});const Yn={after:t=>({run:e=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},Un={run:e=>(Fn||(Fn=!0,zn.textContent=Bn++),Rn.push(e),Ln++),cancel(e){var t=e-Hn;if(0<=t){if(!Rn[t])throw new Error("invalid async handle: "+e);Rn[t]=null}}},$n=Un,jn=C(e=>class extends e{static createProperties(e){var t,r=this.prototype;for(t in e)t in r||r._createPropertyAccessor(t)}static attributeNameForProperty(e){return e.toLowerCase()}static typeForProperty(e){}_createPropertyAccessor(e,t){this._addPropertyToAttributeMap(e),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,t))}_addPropertyToAttributeMap(e){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let t=this.__dataAttributes[e];return t||(t=this.constructor.attributeNameForProperty(e),this.__dataAttributes[t]=e),t}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!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(var e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])}_initializeInstanceProperties(e){Object.assign(this,e)}_setProperty(e,t){this._setPendingProperty(e,t)&&this._invalidateProperties()}_getProperty(e){return this.__data[e]}_setPendingProperty(e,t,r){var o=this.__data[e],i=this._shouldPropertyChange(e,t,o);return i&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||e in this.__dataOld||(this.__dataOld[e]=o),this.__data[e]=t,this.__dataPending[e]=t),i}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,$n.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++;var e=this.__data,t=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(e,t,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,r)),this.__dataCounter--}_shouldPropertiesChange(e,t,r){return Boolean(t)}_propertiesChanged(e,t,r){}_shouldPropertyChange(e,t,r){return r!==t&&(r==r||t==t)}attributeChangedCallback(e,t,r,o){t!==r&&this._attributeToProperty(e,r),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,r,o)}_attributeToProperty(e,t,r){var o;this.__serializing||(this[o=(o=this.__dataAttributes)&&o[e]||e]=this._deserializeValue(t,r||this.constructor.typeForProperty(o)))}_propertyToAttribute(e,t,r){this.__serializing=!0,r=arguments.length<3?this[e]:r,this._valueToNodeAttribute(this,r,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,r){t=this._serializeValue(t);"class"!==r&&"name"!==r&&"slot"!==r||(e=D(e)),void 0===t?e.removeAttribute(r):e.setAttribute(r,""===t&&window.trustedTypes?window.trustedTypes.emptyScript:t)}_serializeValue(e){return"boolean"==typeof e?e?"":void 0:null!=e?e.toString():void 0}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}}),Vn={};let Wn=HTMLElement.prototype;for(;Wn;){var Gn=Object.getOwnPropertyNames(Wn);for(let e=0;e<Gn.length;e++)Vn[Gn[e]]=!0;Wn=Object.getPrototypeOf(Wn)}const qn=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1,Kn=C(e=>{return class extends jn(e){static createPropertiesForAttributes(){var t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(Nn(t[e]))}static attributeNameForProperty(e){return In(e)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(e){for(var t in e)this._setProperty(t,e[t])}_ensureAttribute(e,t){this.hasAttribute(e)||this._valueToNodeAttribute(this,t,e)}_serializeValue(e){if("object"==typeof e){if(e instanceof Date)return e.toString();if(e){if(qn(e))return e;try{return JSON.stringify(e)}catch(e){return""}}}return super._serializeValue(e)}_deserializeValue(e,t){let r;switch(t){case Object:try{r=JSON.parse(e)}catch(t){r=e}break;case Array:try{r=JSON.parse(e)}catch(t){r=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:r=(isNaN(e)?String:Number)(e),r=new Date(r);break;default:r=super._deserializeValue(e,t)}return r}_definePropertyAccessor(e,t){var r,o,i;r=this,o=e,Vn[o]||void 0!==(i=r[o])&&(r.__data?r._setPendingProperty(o,i):(r.__dataProto?r.hasOwnProperty(JSCompiler_renameProperty("__dataProto",r))||(r.__dataProto=Object.create(r.__dataProto)):r.__dataProto={},r.__dataProto[o]=i)),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}}),Xn={"dom-if":!0,"dom-repeat":!0};let Zn=!1,Jn=!1;const Qn=(()=>{const o=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{t=t.getAttribute(r);o&&r.startsWith("on-")?e.setAttribute(r,o.createScript(t,r)):e.setAttribute(r,t)}})();const es=C(e=>class extends e{static _parseTemplate(e,t){var r;return e._templateInfo||((r=e._templateInfo={nodeInfoList:[]}).nestedTemplate=Boolean(t),r.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,r,{parent:null})),e._templateInfo}static _parseTemplateContent(e,t,r){return this._parseTemplateNode(e.content,t,r)}static _parseTemplateNode(e,t,r){let o=!1,i=e;return"template"!=i.localName||i.hasAttribute("preserve-content")?"slot"===i.localName&&(t.hasInsertionPoint=!0):o=this._parseTemplateNestedTemplate(i,t,r)||o,e=i,Zn||(Zn=!0,(n=document.createElement("textarea")).placeholder="a",Jn=n.placeholder===n.textContent),Jn&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null),i.firstChild&&this._parseTemplateChildNodes(i,t,r),(o=i.hasAttributes&&i.hasAttributes()?this._parseTemplateNodeAttributes(i,t,r)||o:o)||r.noted;var n}static _parseTemplateChildNodes(o,i,n){if("script"!==o.localName&&"style"!==o.localName)for(let t,r=o.firstChild,e=0;r;r=t){if("template"==r.localName&&(r=function(e){let t=e.getAttribute("is");if(t&&Xn[t]){var r=e;for(r.removeAttribute("is"),e=r.ownerDocument.createElement(t),r.parentNode.replaceChild(e,r),e.appendChild(r);r.attributes.length;){const t=r.attributes[0]["name"];Qn(e,r,t),r.removeAttribute(t)}}return e}(r)),t=r.nextSibling,r.nodeType===Node.TEXT_NODE){let e=t;for(;e&&e.nodeType===Node.TEXT_NODE;)r.textContent+=e.textContent,t=e.nextSibling,o.removeChild(e),e=t;if(i.stripWhiteSpace&&!r.textContent.trim()){o.removeChild(r);continue}}var s={parentIndex:e,parentInfo:n};this._parseTemplateNode(r,i,s)&&(s.infoIndex=i.nodeInfoList.push(s)-1),r.parentNode&&e++}}static _parseTemplateNestedTemplate(e,t,r){t=this._parseTemplate(e,t);return(t.content=e.content.ownerDocument.createDocumentFragment()).appendChild(e.content),r.templateInfo=t,!0}static _parseTemplateNodeAttributes(r,o,i){let n=!1,s=Array.from(r.attributes);for(let e,t=s.length-1;e=s[t];t--)n=this._parseTemplateNodeAttribute(r,o,i,e.name,e.value)||n;return n}static _parseTemplateNodeAttribute(e,t,r,o,i){return"on-"===o.slice(0,3)?(e.removeAttribute(o),r.events=r.events||[],r.events.push({name:o.slice(3),value:i}),!0):"id"===o&&(r.id=i,!0)}static _contentForTemplate(e){var t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,o){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);var i,n,s=(o=o||this.constructor._parseTemplate(e)).nodeInfoList,e=o.content||e.content,a=document.importNode(e,!0),l=(a.__noInsertionPoint=!o.hasInsertionPoint,a.nodeList=new Array(s.length));a.$={};for(let e,t=0,r=s.length;t<r&&(e=s[t]);t++){var h=l[t]=function e(t,r){var o=r.parentInfo&&e(t,r.parentInfo);if(!o)return t;for(let e=o.firstChild,t=0;e;e=e.nextSibling)if(r.parentIndex===t++)return e}(a,e),u=(i=a.$,n=h,(d=e).id&&(i[d.id]=n),i=h,d=e,n=o,d.templateInfo&&(i._templateInfo=d.templateInfo,i._parentTemplateInfo=n),d=c=u=void 0,this),c=h,d=e;if(d.events&&d.events.length)for(let e,t=0,r=d.events;t<r.length&&(e=r[t]);t++)u._addMethodEventListenerToNode(c,e.name,e.value,u)}return a}_addMethodEventListenerToNode(e,t,r,o){function i(e){n[s]?n[s](e,e.detail):console.warn("listener method `"+s+"` not defined")}var n,s;n=o=o||e,s=r,n=n._methodHost||n;return this._addEventListenerToNode(e,t,i),i}_addEventListenerToNode(e,t,r){e.addEventListener(t,r)}_removeEventListenerFromNode(e,t,r){e.removeEventListener(t,r)}});let ts=0;const rs=[],P={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},os="__computeInfo",is=/[A-Z]/;function ns(e,t,r){let o=e[t];if(o){if(!e.hasOwnProperty(t)&&(o=e[t]=Object.create(e[t]),r))for(var i in o){var n=o[i],s=o[i]=Array(n.length);for(let e=0;e<n.length;e++)s[e]=n[e]}}else o=e[t]={};return o}function ss(i,e,n,s,a,l){if(e){let o=!1;var h,u=ts++;for(h in n){var c=e[a?En(h):h];if(c)for(let e,t=0,r=c.length;t<r&&(e=c[t]);t++)e.info&&e.info.lastRun===u||a&&!as(h,e.trigger)||(e.info&&(e.info.lastRun=u),e.fn(i,h,n,s,e.info,a,l),o=!0)}return o}}function as(e,t){var r;return!t||(r=t.name)==e||t.structured&&An(r,e)||t.wildcard&&Sn(r,e)}function ls(e,t,r,o,i){var n="string"==typeof i.method?e[i.method]:i.method,s=i.property;n?n.call(e,e.__data[s],o[s]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function hs(e,t,r,o){r={value:r,queueProperty:!0};o&&(r.path=o),D(e).dispatchEvent(new CustomEvent(t,{detail:r}))}function us(e,t,r,o,i,n){let s=(n?En(t):t)!=t?t:null,a=s?k(e,s):e.__data[t];s&&void 0===a&&(a=r[t]),hs(e,i.eventName,a,s)}function cs(e,t,r,o,i){let n=e.__data[t];Ki&&(n=Ki(n,i.attrName,"attribute",e)),e._propertyToAttribute(t,i.attrName,n)}const ds=(e,t,r)=>{let o=0,i=t.length-1,n=-1;for(;o<=i;){var s=o+i>>1,a=r.get(t[s].methodInfo)-r.get(e.methodInfo);if(a<0)o=1+s;else{if(!(0<a)){n=s;break}i=s-1}}n<0&&(n=i+1),t.splice(n,0,e)},ps=(t,e,r,o,i)=>{var n=e[i?En(t):t];if(n)for(let e=0;e<n.length;e++){var s=n[e];s.info.lastRun===ts||i&&!as(t,s.trigger)||(s.info.lastRun=ts,ds(s.info,r,o))}};function ms(e,t,r,o,i){t=gs(e,t,r,0,i);return t!==rs&&(r=i.methodInfo,e.__dataHasAccessor&&e.__dataHasAccessor[r]?e._setPendingProperty(r,t,!0):(e[r]=t,!1))}function fs(t,r,e,o,i,n,s){e.bindings=e.bindings||[];var a={kind:o,target:i,parts:n,literal:s,isCompound:1!==n.length},l=(e.bindings.push(a),o=a,Boolean(o.target)&&"attribute"!=o.kind&&"text"!=o.kind&&!o.isCompound&&"{"===o.parts[0].mode&&({event:s,negate:n}=a.parts[0],a.listenerEvent=s||In(i)+"-changed",a.listenerNegate=n),r.nodeInfoList.length);for(let e=0;e<a.parts.length;e++){var h=a.parts[e],u=(h.compoundIndex=e,_=f=m=p=d=c=u=void 0,t),c=r,d=a,p=h,m=l;if(!p.literal)if("attribute"===d.kind&&"-"===d.target[0])console.warn("Cannot set attribute "+d.target+' because "-" is not a valid attribute starting character');else{var f=p.dependencies,_={index:m,binding:d,part:p,evaluator:u};for(let t=0;t<f.length;t++){let e=f[t];"string"==typeof e&&((e=Ts(e)).wildcard=!0),u._addTemplatePropertyEffect(c,e.rootProperty,{fn:_s,info:_,trigger:e})}}}}function _s(e,t,r,o,i,n,s){var a,s=s[i.index],l=i.binding,h=i.part;n&&h.source&&t.length>h.source.length&&"property"==l.kind&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]?(a=r[t],t=Tn(h.source,l.target,t),s._setPendingPropertyOrPath(t,a,!1,!0)&&e._enqueueClient(s)):(a=i.evaluator._evaluateBinding(e,h,t,r,o,n))!==rs&&(i=e,t=h,o=r=s,e=n=a,(s=h=l).isCompound&&((l=o.__dataCompoundStorage[s.target])[t.compoundIndex]=e,e=l.join("")),n=e="attribute"!==s.kind&&("textContent"===s.target||"value"===s.target&&("input"===o.localName||"textarea"===o.localName))&&null==e?"":e,Ki&&(n=Ki(n,h.target,h.kind,r)),"attribute"==h.kind?i._valueToNodeAttribute(r,n,h.target):(t=h.target,r.__isPropertyEffectsClient&&r.__dataHasAccessor&&r.__dataHasAccessor[t]?r[P.READ_ONLY]&&r[P.READ_ONLY][t]||r._setPendingProperty(t,n)&&i._enqueueClient(r):i._setUnmanagedPropertyToNode(r,t,n)))}function ys(e,h,u){if(u.listenerEvent){let l=u.parts[0];e.addEventListener(u.listenerEvent,function(o){{var i=h,n=u.target,s=l.source,a=l.negate;let e,t=o.detail,r=t&&t.path;e=r?(s=Tn(n,s,r),t&&t.value):o.currentTarget[n],e=a?!e:e,i[P.READ_ONLY]&&i[P.READ_ONLY][s]||!i._setPendingPropertyOrPath(s,e,!0,Boolean(r))||t&&t.queueProperty||i._invalidateProperties()}})}}function vs(r,o,i,n,e,t){t=o.static||t&&("object"!=typeof t||t[o.methodName]);var s={methodName:o.methodName,args:o.args,methodInfo:e,dynamicFn:t};for(let e,t=0;t<o.args.length&&(e=o.args[t]);t++)e.literal||r._addPropertyEffect(e.rootProperty,i,{fn:n,info:s,trigger:e});return t&&r._addPropertyEffect(o.methodName,i,{fn:n,info:s}),s}function gs(e,t,r,o,i){var n=e._methodHost||e,s=n[i.methodName];if(s)return(e=e._marshalArgs(i.args,t,r))===rs?rs:s.apply(n,e);i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const bs=[],ws="(?:[a-zA-Z_$][\\w.:$\\-*]*)",xs="(?:("+ws+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Es=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+ws+"\\s*(?:\\(\\s*(?:(?:"+xs+"(?:,\\s*"+xs+")*)?)\\)\\s*)?)(?:]]|}})","g");function As(t){let r="";for(let e=0;e<t.length;e++)r+=t[e].literal||"";return r}function Ss(e){var t,e=e.match(/([^\s]+?)\(([\s\S]*)\)/);return e?(t={methodName:e[1],static:!0,args:bs},e[2].trim()?function(e,t){return t.args=e.map(function(e){e=Ts(e);return e.literal||(t.static=!1),e},this),t}(e[2].replace(/\\,/g,"&comma;").split(","),t):t):null}function Ts(e){let t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),r={name:t,value:"",literal:!1},o=t[0];switch(o="0"<=(o="-"===o?t[1]:o)&&o<="9"?"#":o){case"'":case'"':r.value=t.slice(1,-1),r.literal=!0;break;case"#":r.value=Number(t),r.literal=!0}return r.literal||(r.rootProperty=En(t),r.structured=xn(t),r.structured&&(r.wildcard=".*"==t.slice(-2),r.wildcard)&&(r.name=t.slice(0,-2))),r}function Cs(e,t,r){let o=k(e,r);return o=void 0===o?t[r]:o}function Ds(e,t,r,o){o={indexSplices:o};tn&&!e._overrideLegacyUndefined&&(t.splices=o),e.notifyPath(r+".splices",o),e.notifyPath(r+".length",t.length),tn&&!e._overrideLegacyUndefined&&(o.indexSplices=[])}function ks(e,t,r,o,i,n){Ds(e,t,r,[{index:o,addedCount:i,removed:n,object:t,type:"splice"}])}const Ps=C(e=>{const h=es(Kn(e));return class extends h{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 P}_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(){var e;Os.length&&((e=Os[Os.length-1])._enqueueClient(this),this.__dataHost=e)}_initializeProtoProperties(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}_initializeInstanceProperties(e){var t,r=this[P.READ_ONLY];for(t in e)r&&r[t]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[t]=this.__dataPending[t]=e[t])}_addPropertyEffect(e,t,r){this._createPropertyAccessor(e,t==P.READ_ONLY);let o=ns(this,t,!0)[e];(o=o||(this[t][e]=[])).push(r)}_removePropertyEffect(e,t,r){t=ns(this,t,!0)[e],e=t.indexOf(r);0<=e&&t.splice(e,1)}_hasPropertyEffect(e,t){t=this[t];return Boolean(t&&t[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,P.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,P.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,P.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,P.COMPUTE)}_setPendingPropertyOrPath(e,t,r,o){if(o||En(Array.isArray(e)?e[0]:e)!==e){if(!o){o=k(this,e);if(!(e=kn(this,e,t))||!super._shouldPropertyChange(e,t,o))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,r)){{var i=this;var n=e;var s=t;var a=i.__dataLinkedPaths;if(a){let e;for(var l in a){var h=a[l];Sn(l,n)?(e=Tn(l,h,n),i._setPendingPropertyOrPath(e,s,!0,!0)):Sn(h,n)&&(e=Tn(h,l,n),i._setPendingPropertyOrPath(e,s,!0,!0))}}}return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,r);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,r){r===e[t]&&"object"!=typeof r||((e="className"===t?D(e):e)[t]=r)}_setPendingProperty(e,t,r){var o=this.__dataHasPaths&&xn(e),i=o?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,i[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),o?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(o||this[P.NOTIFY]&&this[P.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=r),!0)}_setProperty(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){var t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){var r=t[e];r.__dataEnabled?r.__dataPending&&r._flushProperties():r._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(var r in e)!t&&this[P.READ_ONLY]&&this[P.READ_ONLY][r]||this._setPendingPropertyOrPath(r,e[r],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,i,n){var s,a,l,h,u=this.__dataHasPaths,t=(this.__dataHasPaths=!1,this),r=i,o=n,c=u,d=t[P.COMPUTE];if(d)if(rn){ts++;var p,m,f=function(i){let n=i.constructor.__orderedComputedDeps;if(!n){n=new Map;var s=i[P.COMPUTE];let e,{counts:t,ready:r,total:o}=function(e){const t=e[os],r={},o=e[P.COMPUTE],i=[];let n=0;for(var s in t){const o=t[s];n+=r[s]=o.args.filter(e=>!e.literal).length+(o.dynamicFn?1:0)}for(var a in o)t[a]||i.push(a);return{counts:r,ready:i,total:n}}(i);for(;e=r.shift();){n.set(e,n.size);const i=s[e];i&&i.forEach(e=>{e=e.info.methodInfo;--o,0==--t[e]&&r.push(e)})}if(0!==o){const n=i;console.warn(`Computed graph for ${n.localName} incomplete; circular?`)}i.constructor.__orderedComputedDeps=n}return n}(t),_=[];for(p in r)ps(p,d,_,f,c);for(;m=_.shift();)ms(t,"",r,0,m)&&ps(m.methodInfo,d,_,f,c);Object.assign(o,t.__dataOld),Object.assign(r,t.__dataPending),t.__dataPending=null}else{let e=r;for(;ss(t,d,e,o,c);)Object.assign(o,t.__dataOld),Object.assign(r,t.__dataPending),e=t.__dataPending,t.__dataPending=null}if(s=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(i,n,u),this._flushClients(),ss(this,this[P.REFLECT],i,n,u),ss(this,this[P.OBSERVE],i,n,u),s){var y=this,v=s,g=i,b=n,w=u,x;let e,t,r=y[P.NOTIFY],o=ts++;for(x in v)v[x]&&(r&&function(o,e,i,n,s,a,l,h){let u=!1,c=e[l?En(n):n];if(c)for(let e,t=0,r=c.length;t<r&&(e=c[t]);t++)e.info&&e.info.lastRun===i||l&&!as(n,e.trigger)||(e.info&&(e.info.lastRun=i),e.fn(o,n,s,a,e.info,l,h),u=!0);return u}(y,r,o,x,g,b,w)||w&&(a=y,x=x,l=g,h=void 0,h=En(x),h!==x)&&(hs(a,In(h)+"-changed",l[x],x),1))&&(e=!0);e&&(t=y.__dataHost)&&t._invalidateProperties&&t._invalidateProperties()}1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,r){this[P.PROPAGATE]&&ss(this,this[P.PROPAGATE],e,t,r),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,r)}_runEffectsForTemplate(o,e,i,t){var r=(t,r)=>{ss(this,o.propertyEffects,t,i,r,o.nodeList);for(let e=o.firstChild;e;e=e.nextSibling)this._runEffectsForTemplate(e,t,i,r)};o.runEffects?o.runEffects(r,e,t):r(e,t)}linkPaths(e,t){e=Cn(e),t=Cn(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=Cn(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){var r={path:""};Ds(this,k(this,e,r),r.path,t)}get(e,t){return k(t||this,e)}set(e,t,r){r?kn(r,e,t):this[P.READ_ONLY]&&this[P.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){var r={path:""},e=k(this,e,r),o=e.length,i=e.push(...t);return t.length&&ks(this,e,r.path,o,t.length,[]),i}pop(e){var t={path:""},e=k(this,e,t),r=Boolean(e.length),o=e.pop();return r&&ks(this,e,t.path,e.length,0,[o]),o}splice(e,t,r,...o){var i={path:""},e=k(this,e,i);return t=t<0?e.length-Math.floor(-t):t&&Math.floor(t),r=2===arguments.length?e.splice(t):e.splice(t,r,...o),(o.length||r.length)&&ks(this,e,i.path,t,o.length,r),r}shift(e){var t={path:""},e=k(this,e,t),r=Boolean(e.length),o=e.shift();return r&&ks(this,e,t.path,0,0,[o]),o}unshift(e,...t){var r={path:""},e=k(this,e,r),o=e.unshift(...t);return t.length&&ks(this,e,r.path,0,t.length,[]),o}notifyPath(e,t){let r;var o;r=1==arguments.length?(t=k(this,e,o={path:""}),o.path):Array.isArray(e)?Cn(e):e,this._setPendingPropertyOrPath(r,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,P.READ_ONLY),e&&(this["_set"+((e=t)[0].toUpperCase()+e.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(e,t,r){var o={property:e,method:t,dynamicFn:Boolean(r)};this._addPropertyEffect(e,P.OBSERVE,{fn:ls,info:o,trigger:{name:e}}),r&&this._addPropertyEffect(t,P.OBSERVE,{fn:ls,info:o,trigger:{name:t}})}_createMethodObserver(e,t){var r=Ss(e);if(!r)throw new Error("Malformed observer expression '"+e+"'");vs(this,r,P.OBSERVE,gs,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,P.NOTIFY,{fn:us,info:{eventName:In(e)+"-changed",property:e}})}_createReflectedProperty(e){var t=this.constructor.attributeNameForProperty(e);"-"===t[0]?console.warn("Property "+e+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,P.REFLECT,{fn:cs,info:{attrName:t}})}_createComputedProperty(e,t,r){var o=Ss(t);if(!o)throw new Error("Malformed computed expression '"+t+"'");t=vs(this,o,P.COMPUTE,ms,e,r);ns(this,os)[e]=t}_marshalArgs(s,a,l){const h=this.__data,u=[];for(let n=0,e=s.length;n<e;n++){let{name:e,structured:t,wildcard:r,value:o,literal:i}=s[n];if(!i)if(r){const s=Sn(e,a),u=Cs(h,l,s?a:e);o={path:s?a:e,value:u,base:s?k(h,e):u}}else o=t?Cs(h,l,e):h[e];if(tn&&!this._overrideLegacyUndefined&&void 0===o&&1<s.length)return rs;u[n]=o}return u}static addPropertyEffect(e,t,r){this.prototype._addPropertyEffect(e,t,r)}static createPropertyObserver(e,t,r){this.prototype._createPropertyObserver(e,t,r)}static createMethodObserver(e,t){this.prototype._createMethodObserver(e,t)}static createNotifyingProperty(e){this.prototype._createNotifyingProperty(e)}static createReadOnlyProperty(e,t){this.prototype._createReadOnlyProperty(e,t)}static createReflectedProperty(e){this.prototype._createReflectedProperty(e)}static createComputedProperty(e,t,r){this.prototype._createComputedProperty(e,t,r)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let r=this.constructor._parseTemplate(e),o=this.__preBoundTemplateInfo==r;if(!o)for(var i in r.propertyEffects)this._createPropertyAccessor(i);if(t)if((r=Object.create(r)).wasPreBound=o,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,o=t.lastChild;(((r.parent=t).lastChild=r).previousSibling=o)?o.nextSibling=r:t.firstChild=r}else this.__templateInfo=r;else this.__preBoundTemplateInfo=r;return r}static _addTemplatePropertyEffect(e,t,r){(e.hostProps=e.hostProps||{})[t]=!0;e=e.propertyEffects=e.propertyEffects||{};(e[t]=e[t]||[]).push(r)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Os.push(this);t=super._stampTemplate(t,e);if(Os.pop(),e.nodeList=t.nodeList,!e.wasPreBound){var r=e.childNodes=[];for(let e=t.firstChild;e;e=e.nextSibling)r.push(e)}t.templateInfo=e;var o=this,{nodeList:i,nodeInfoList:n}=e;if(n.length)for(let e=0;e<n.length;e++){var s=n[e],a=i[e],l=s.bindings;if(l)for(let e=0;e<l.length;e++){var h=l[e],u=(f=m=p=d=c=u=void 0,a),c=h;if(c.isCompound){var d=u.__dataCompoundStorage||(u.__dataCompoundStorage={}),p=c.parts,m=new Array(p.length);for(let e=0;e<p.length;e++)m[e]=p[e].literal;var f=c.target;d[f]=m,c.literal&&"property"==c.kind&&((u="className"===f?D(u):u)[f]=c.literal)}ys(a,o,h)}a.__dataHost=o}return this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),t}_removeBoundDom(e){var e=e.templateInfo,{previousSibling:t,nextSibling:r,parent:o}=e,i=(t?t.nextSibling=r:o&&(o.firstChild=r),r?r.previousSibling=t:o&&(o.lastChild=t),e.nextSibling=e.previousSibling=null,e.childNodes);for(let e=0;e<i.length;e++){var n=i[e];D(D(n).parentNode).removeChild(n)}}static _parseTemplateNode(e,t,r){let o=h._parseTemplateNode.call(this,e,t,r);var i;return e.nodeType===Node.TEXT_NODE&&(i=this._parseBindings(e.textContent,t))&&(e.textContent=As(i)||" ",fs(this,t,r,"text","textContent",i),o=!0),o}static _parseTemplateNodeAttribute(o,i,n,s,e){var a=this._parseBindings(e,i);if(a){let e=s,t="property",r=(is.test(s)?t="attribute":"$"==s[s.length-1]&&(s=s.slice(0,-1),t="attribute"),As(a));return r&&"attribute"==t&&("class"==s&&o.hasAttribute("class")&&(r+=" "+o.getAttribute(s)),o.setAttribute(s,r)),"attribute"==t&&"disable-upgrade$"==e&&o.setAttribute(s,""),"input"===o.localName&&"value"===e&&o.setAttribute(e,""),o.removeAttribute(e),"property"===t&&(s=Nn(s)),fs(this,i,n,t,s,a,r),!0}return h._parseTemplateNodeAttribute.call(this,o,i,n,s,e)}static _parseTemplateNestedTemplate(e,t,r){let o=h._parseTemplateNestedTemplate.call(this,e,t,r);var i=e.parentNode,n=r.templateInfo,s="dom-if"===i.localName,a="dom-repeat"===i.localName,a=(on&&(s||a)&&(i.removeChild(e),(r=r.parentInfo).templateInfo=n,r.noted=!0,o=!1),n.hostProps);if(nn&&s)a&&(t.hostProps=Object.assign(t.hostProps||{},a),on||(r.parentInfo.noted=!0));else for(var l in a)fs(this,t,r,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return o}static _parseBindings(s,a){let l,h=[],u=0;for(;null!==(l=Es.exec(s));){l.index>u&&h.push({literal:s.slice(u,l.index)});let e=l[1][0],t=Boolean(l[2]),r=l[3].trim(),o=!1,i="",n=-1;"{"==e&&0<(n=r.indexOf("::"))&&(i=r.substring(n+2),r=r.substring(0,n),o=!0);var c=Ss(r),d=[];if(c){var{args:p,methodName:m}=c;for(let e=0;e<p.length;e++){var f=p[e];f.literal||d.push(f)}var _=a.dynamicFns;(_&&_[m]||c.static)&&(d.push(m),c.dynamicFn=!0)}else d.push(r);h.push({source:r,mode:e,negate:t,customEvent:o,signature:c,dependencies:d,event:i}),u=Es.lastIndex}var e;return u&&u<s.length&&(e=s.substring(u))&&h.push({literal:e}),h.length?h:null}static _evaluateBinding(e,t,r,o,i,n){let s;return s=t.signature?gs(e,r,o,0,t.signature):r!=t.source?k(e,t.source):n&&xn(r)?k(e,r):e.__data[r],s=t.negate?!s:s}}}),Os=[],Ms=C(e=>{function t(e){e=Object.getPrototypeOf(e);return e.prototype instanceof o?e:null}function r(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;var r;t.hasOwnProperty(JSCompiler_renameProperty("properties",t))&&(r=t.properties)&&(e=function(e){var t,r={};for(t in e){var o=e[t];r[t]="function"==typeof o?{type:o}:o}return r}(r)),t.__ownProperties=e}return t.__ownProperties}class o extends jn(e){static get observedAttributes(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.prototype,e=this._properties,this.__observedAttributes=e?Object.keys(e).map(e=>this.prototype._addPropertyToAttributeMap(e)):[]),this.__observedAttributes}static finalize(){var e;this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))||((e=t(this))&&e.finalize(),this.__finalized=!0,this._finalizeClass())}static _finalizeClass(){var e=r(this);e&&this.createProperties(e)}static get _properties(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))||(e=t(this),this.__properties=Object.assign({},e&&e._properties,r(this))),this.__properties}static typeForProperty(e){e=this._properties[e];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o}),Ns=window.ShadyCSS&&window.ShadyCSS.cssBuild,Is=C(e=>{const o=Ms(Ps(e));return class extends o{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){o._finalizeClass.call(this);this.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",this))||(this.__ownObservers=this.hasOwnProperty(JSCompiler_renameProperty("observers",this))?this.observers:null);var e=this.__ownObservers;e&&this.createObservers(e,this._properties),this._prepareTemplate()}static _prepareTemplate(){let e=this.template;e&&("string"==typeof e?(console.error("template getter must return HTMLTemplateElement"),e=null):Ji||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(var t in e)r=this.prototype,o=t,t=e[t],i=e,t.computed&&(t.readOnly=!0),t.computed&&(r._hasReadOnlyEffect(o)?console.warn(`Cannot redefine computed property '${o}'.`):r._createComputedProperty(o,t.computed,i)),t.readOnly&&!r._hasReadOnlyEffect(o)?r._createReadOnlyProperty(o,!t.computed):!1===t.readOnly&&r._hasReadOnlyEffect(o)&&console.warn(`Cannot make readOnly property '${o}' non-readOnly.`),t.reflectToAttribute&&!r._hasReflectEffect(o)?r._createReflectedProperty(o):!1===t.reflectToAttribute&&r._hasReflectEffect(o)&&console.warn(`Cannot make reflected property '${o}' non-reflected.`),t.notify&&!r._hasNotifyEffect(o)?r._createNotifyingProperty(o):!1===t.notify&&r._hasNotifyEffect(o)&&console.warn(`Cannot make notify property '${o}' non-notify.`),t.observer&&r._createPropertyObserver(o,t.observer,i[t.observer]),r._addPropertyToAttributeMap(o);var r,o,i}static createObservers(t,r){var o=this.prototype;for(let e=0;e<t.length;e++)o._createMethodObserver(t[e],r)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let e=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof e&&(e=e()),this._template=void 0!==e?e:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(e){let t=null;if(!e||Xi&&!Zi||(t=pn.import(e,"template"),!Xi)||t)return t;throw new Error("strictTemplatePolicy: expecting dom-module or null template for "+e)}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(e){this._template=e}static get importPath(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))||((e=this.importMeta)?this._importPath=Vi(e.url):(e=pn.import(this.is),this._importPath=e&&e.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath)),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=qi,this.importPath=this.constructor.importPath;var e=function(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;var t,r=e._properties;for(t in r){var o=r[t];"value"in o&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[t]=o)}}return e.__propertyDefaults}(this.constructor);if(e)for(var t in e){var r=e[t];this._canApplyPropertyDefault(t)&&(r="function"==typeof r.value?r.value.call(this):r.value,this._hasAccessor(t)?this._setPendingProperty(t,r,!0):this[t]=r)}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return ji(e,t)}static _finalizeTemplate(e){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var r=this.importPath,i=this,n=t,s=e,a=r?$i(r):"";if(!Ns){var l=n.content.querySelectorAll("style"),h=bn(n),u=(e=yn(s))?wn(e):[],c=n.content.firstElementChild;for(let e=0;e<u.length;e++){var d=u[e];d.textContent=i._processStyleText(d.textContent,a),n.content.insertBefore(d,c)}let o=0;for(let r=0;r<h.length;r++){let e=h[r],t=l[o];t!==e?(e=e.cloneNode(!0),t.parentNode.insertBefore(e,t)):o++,e.textContent=i._processStyleText(e.textContent,a)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(n,s),an&&Ns&&Gi){const s=n.content.querySelectorAll("style");if(s){let t="";Array.from(s).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),i._styleSheet=new CSSStyleSheet,i._styleSheet.replaceSync(t)}}this.prototype._bindTemplate(t)}}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(e){var t=D(this);if(t.attachShadow)return e?(t.shadowRoot||(t.attachShadow({mode:"open",shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),this.constructor._styleSheet&&(t.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),en&&window.ShadyDOM&&window.ShadyDOM.flushInitial(t.shadowRoot),t.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(e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,e)}resolveUrl(e,t){return!t&&this.importPath&&(t=$i(this.importPath)),$i(e,t)}static _parseTemplateContent(e,t,r){return t.dynamicFns=t.dynamicFns||this._properties,o._parseTemplateContent.call(this,e,t,r)}static _addTemplatePropertyEffect(e,t,r){return!Qi||t in this._properties||r.info.part.signature&&r.info.part.signature.static||r.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`),o._addTemplatePropertyEffect.call(this,e,t,r)}}}),Ls=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});function Hs(e){throw class{},new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function Rs(o,...e){Bs(o,e);var t=document.createElement("template");let r=e.reduce((e,t,r)=>e+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(!1)return Hs(e);throw new Error("non-template value passed to Polymer's html function: "+e)}(t)+o[r+1],o[0]);return Ls&&(r=Ls.createHTML(r)),t.innerHTML=r,t}const Bs=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")},Fs=Is(HTMLElement),zs=[];function Ys(e,t,r=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=r&&e.removeAttribute("dir")}function Us(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){const t=Us();zs.forEach(e=>{Ys(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const $s=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")&&!this.__restoreSubscription||(this.__subscribe(),Ys(this,Us(),null))}attributeChangedCallback(e,t,r){var o,i;super.attributeChangedCallback(e,t,r),"dir"===e&&(o=r===(e=Us())&&-1===zs.indexOf(this),i=!r&&t&&-1===zs.indexOf(this),t=r!==e&&t===e,o||i?(this.__subscribe(),Ys(this,e,r)):t&&this.__unsubscribe())}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=zs.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,r){"dir"===r&&""===t&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,r)}_attributeToProperty(e,t,r){"dir"!==e||t?super._attributeToProperty(e,t,r):this.dir=""}__subscribe(){zs.includes(this)||zs.push(this)}__unsubscribe(){zs.includes(this)&&zs.splice(zs.indexOf(this),1)}};class js extends Ri($s(Fs)){static get is(){return"vaadin-input-container"}static get template(){return Rs`
523
523
  <style>
524
524
  :host {
525
525
  display: flex;
@@ -589,7 +589,22 @@
589
589
  <slot name="prefix"></slot>
590
590
  <slot></slot>
591
591
  <slot name="suffix"></slot>
592
- `}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",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(e=>e.focus&&e.focus())})}}Li(zs),p("spacing-props",E`
592
+ `}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",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(e=>e.focus&&e.focus())})}}x(js);class Vs extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}}x(Vs);d=(e,...t)=>{Bi("lumo-"+e,t)},d("sizing-props",E`
593
+ :host {
594
+ --lumo-size-xs: 1.625rem;
595
+ --lumo-size-s: 1.875rem;
596
+ --lumo-size-m: 2.25rem;
597
+ --lumo-size-l: 2.75rem;
598
+ --lumo-size-xl: 3.5rem;
599
+
600
+ /* Icons */
601
+ --lumo-icon-size-s: 1.25em;
602
+ --lumo-icon-size-m: 1.5em;
603
+ --lumo-icon-size-l: 2.25em;
604
+ /* For backwards compatibility */
605
+ --lumo-icon-size: var(--lumo-icon-size-m);
606
+ }
607
+ `),d("spacing-props",E`
593
608
  :host {
594
609
  /* Square */
595
610
  --lumo-space-xs: 0.25rem;
@@ -612,7 +627,342 @@
612
627
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
613
628
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
614
629
  }
615
- `);g=E`
630
+ `),E`
631
+ html {
632
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
633
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
634
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
635
+ }
636
+ `,d("style-props",E`
637
+ :host {
638
+ /* Border radius */
639
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
640
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
641
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
642
+
643
+ /* Shadow */
644
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
645
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
646
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
647
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
648
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
649
+
650
+ /* Clickable element cursor */
651
+ --lumo-clickable-cursor: default;
652
+ }
653
+ `),d("color-props",E`
654
+ :host {
655
+ /* Base (background) */
656
+ --lumo-base-color: #fff;
657
+
658
+ /* Tint */
659
+ --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
660
+ --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
661
+ --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
662
+ --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
663
+ --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
664
+ --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
665
+ --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
666
+ --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
667
+ --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
668
+ --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
669
+ --lumo-tint: #fff;
670
+
671
+ /* Shade */
672
+ --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
673
+ --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
674
+ --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
675
+ --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
676
+ --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
677
+ --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
678
+ --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
679
+ --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
680
+ --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
681
+ --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
682
+ --lumo-shade: hsl(214, 35%, 15%);
683
+
684
+ /* Contrast */
685
+ --lumo-contrast-5pct: var(--lumo-shade-5pct);
686
+ --lumo-contrast-10pct: var(--lumo-shade-10pct);
687
+ --lumo-contrast-20pct: var(--lumo-shade-20pct);
688
+ --lumo-contrast-30pct: var(--lumo-shade-30pct);
689
+ --lumo-contrast-40pct: var(--lumo-shade-40pct);
690
+ --lumo-contrast-50pct: var(--lumo-shade-50pct);
691
+ --lumo-contrast-60pct: var(--lumo-shade-60pct);
692
+ --lumo-contrast-70pct: var(--lumo-shade-70pct);
693
+ --lumo-contrast-80pct: var(--lumo-shade-80pct);
694
+ --lumo-contrast-90pct: var(--lumo-shade-90pct);
695
+ --lumo-contrast: var(--lumo-shade);
696
+
697
+ /* Text */
698
+ --lumo-header-text-color: var(--lumo-contrast);
699
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
700
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
701
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
702
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
703
+
704
+ /* Primary */
705
+ --lumo-primary-color: hsl(214, 100%, 48%);
706
+ --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
707
+ --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
708
+ --lumo-primary-text-color: hsl(214, 100%, 43%);
709
+ --lumo-primary-contrast-color: #fff;
710
+
711
+ /* Error */
712
+ --lumo-error-color: hsl(3, 85%, 48%);
713
+ --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
714
+ --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
715
+ --lumo-error-text-color: hsl(3, 89%, 42%);
716
+ --lumo-error-contrast-color: #fff;
717
+
718
+ /* Success */
719
+ --lumo-success-color: hsl(145, 72%, 30%);
720
+ --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
721
+ --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
722
+ --lumo-success-text-color: hsl(145, 85%, 25%);
723
+ --lumo-success-contrast-color: #fff;
724
+
725
+ /* Warning */
726
+ --lumo-warning-color: hsl(48, 100%, 50%);
727
+ --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
728
+ --lumo-warning-text-color: hsl(32, 100%, 30%);
729
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
730
+ }
731
+
732
+ /* forced-colors mode adjustments */
733
+ @media (forced-colors: active) {
734
+ html {
735
+ --lumo-disabled-text-color: GrayText;
736
+ }
737
+ }
738
+ `),S("",E`
739
+ [theme~='dark'] {
740
+ /* Base (background) */
741
+ --lumo-base-color: hsl(214, 35%, 21%);
742
+
743
+ /* Tint */
744
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
745
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
746
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
747
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
748
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
749
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
750
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
751
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
752
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
753
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
754
+ --lumo-tint: hsl(214, 100%, 98%);
755
+
756
+ /* Shade */
757
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
758
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
759
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
760
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
761
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
762
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
763
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
764
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
765
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
766
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
767
+ --lumo-shade: hsl(214, 33%, 13%);
768
+
769
+ /* Contrast */
770
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
771
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
772
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
773
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
774
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
775
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
776
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
777
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
778
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
779
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
780
+ --lumo-contrast: var(--lumo-tint);
781
+
782
+ /* Text */
783
+ --lumo-header-text-color: var(--lumo-contrast);
784
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
785
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
786
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
787
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
788
+
789
+ /* Primary */
790
+ --lumo-primary-color: hsl(214, 90%, 48%);
791
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
792
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
793
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
794
+ --lumo-primary-contrast-color: #fff;
795
+
796
+ /* Error */
797
+ --lumo-error-color: hsl(3, 79%, 49%);
798
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
799
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
800
+ --lumo-error-text-color: hsl(3, 100%, 80%);
801
+
802
+ /* Success */
803
+ --lumo-success-color: hsl(145, 72%, 30%);
804
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
805
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
806
+ --lumo-success-text-color: hsl(145, 85%, 46%);
807
+
808
+ /* Warning */
809
+ --lumo-warning-color: hsl(43, 100%, 48%);
810
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
811
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
812
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
813
+ }
814
+
815
+ html {
816
+ color: var(--lumo-body-text-color);
817
+ background-color: var(--lumo-base-color);
818
+ color-scheme: light;
819
+ }
820
+
821
+ [theme~='dark'] {
822
+ color: var(--lumo-body-text-color);
823
+ background-color: var(--lumo-base-color);
824
+ color-scheme: dark;
825
+ }
826
+
827
+ h1,
828
+ h2,
829
+ h3,
830
+ h4,
831
+ h5,
832
+ h6 {
833
+ color: var(--lumo-header-text-color);
834
+ }
835
+
836
+ a:where(:any-link) {
837
+ color: var(--lumo-primary-text-color);
838
+ }
839
+
840
+ a:not(:any-link) {
841
+ color: var(--lumo-disabled-text-color);
842
+ }
843
+
844
+ blockquote {
845
+ color: var(--lumo-secondary-text-color);
846
+ }
847
+
848
+ code,
849
+ pre {
850
+ background-color: var(--lumo-contrast-10pct);
851
+ border-radius: var(--lumo-border-radius-m);
852
+ }
853
+ `,{moduleId:"lumo-color"}),p=E`
854
+ :host {
855
+ /* prettier-ignore */
856
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
857
+
858
+ /* Font sizes */
859
+ --lumo-font-size-xxs: 0.75rem;
860
+ --lumo-font-size-xs: 0.8125rem;
861
+ --lumo-font-size-s: 0.875rem;
862
+ --lumo-font-size-m: 1rem;
863
+ --lumo-font-size-l: 1.125rem;
864
+ --lumo-font-size-xl: 1.375rem;
865
+ --lumo-font-size-xxl: 1.75rem;
866
+ --lumo-font-size-xxxl: 2.5rem;
867
+
868
+ /* Line heights */
869
+ --lumo-line-height-xs: 1.25;
870
+ --lumo-line-height-s: 1.375;
871
+ --lumo-line-height-m: 1.625;
872
+ }
873
+ `,S("",E`
874
+ body,
875
+ :host {
876
+ font-family: var(--lumo-font-family);
877
+ font-size: var(--lumo-font-size-m);
878
+ line-height: var(--lumo-line-height-m);
879
+ -webkit-text-size-adjust: 100%;
880
+ -webkit-font-smoothing: antialiased;
881
+ -moz-osx-font-smoothing: grayscale;
882
+ }
883
+
884
+ small,
885
+ [theme~='font-size-s'] {
886
+ font-size: var(--lumo-font-size-s);
887
+ line-height: var(--lumo-line-height-s);
888
+ }
889
+
890
+ [theme~='font-size-xs'] {
891
+ font-size: var(--lumo-font-size-xs);
892
+ line-height: var(--lumo-line-height-xs);
893
+ }
894
+
895
+ :where(h1, h2, h3, h4, h5, h6) {
896
+ font-weight: 600;
897
+ line-height: var(--lumo-line-height-xs);
898
+ margin-block: 0;
899
+ }
900
+
901
+ :where(h1) {
902
+ font-size: var(--lumo-font-size-xxxl);
903
+ }
904
+
905
+ :where(h2) {
906
+ font-size: var(--lumo-font-size-xxl);
907
+ }
908
+
909
+ :where(h3) {
910
+ font-size: var(--lumo-font-size-xl);
911
+ }
912
+
913
+ :where(h4) {
914
+ font-size: var(--lumo-font-size-l);
915
+ }
916
+
917
+ :where(h5) {
918
+ font-size: var(--lumo-font-size-m);
919
+ }
920
+
921
+ :where(h6) {
922
+ font-size: var(--lumo-font-size-xs);
923
+ text-transform: uppercase;
924
+ letter-spacing: 0.03em;
925
+ }
926
+
927
+ p,
928
+ blockquote {
929
+ margin-top: 0.5em;
930
+ margin-bottom: 0.75em;
931
+ }
932
+
933
+ a {
934
+ text-decoration: none;
935
+ }
936
+
937
+ a:where(:any-link):hover {
938
+ text-decoration: underline;
939
+ }
940
+
941
+ hr {
942
+ display: block;
943
+ align-self: stretch;
944
+ height: 1px;
945
+ border: 0;
946
+ padding: 0;
947
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
948
+ background-color: var(--lumo-contrast-10pct);
949
+ }
950
+
951
+ blockquote {
952
+ border-left: 2px solid var(--lumo-contrast-30pct);
953
+ }
954
+
955
+ b,
956
+ strong {
957
+ font-weight: 600;
958
+ }
959
+
960
+ /* RTL specific styles */
961
+ blockquote[dir='rtl'] {
962
+ border-left: none;
963
+ border-right: 2px solid var(--lumo-contrast-30pct);
964
+ }
965
+ `,{moduleId:"lumo-typography"}),d("typography-props",p),m=E`
616
966
  :host {
617
967
  top: var(--lumo-space-m);
618
968
  right: var(--lumo-space-m);
@@ -675,7 +1025,7 @@
675
1025
  opacity: 1;
676
1026
  }
677
1027
  }
678
- `,S("",g,{moduleId:"lumo-overlay"}),n=E`
1028
+ `,S("",m,{moduleId:"lumo-overlay"}),i=E`
679
1029
  :host([opening]),
680
1030
  :host([closing]) {
681
1031
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -705,7 +1055,7 @@
705
1055
  opacity: 0;
706
1056
  }
707
1057
  }
708
- `,S("",n,{moduleId:"lumo-menu-overlay-core"}),a=[g,n,E`
1058
+ `,S("",i,{moduleId:"lumo-menu-overlay-core"}),a=[m,i,E`
709
1059
  /* Small viewport (bottom sheet) styles */
710
1060
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
711
1061
  @media (max-width: 420px), (max-height: 420px) {
@@ -815,7 +1165,30 @@
815
1165
  max-height: 70vh;
816
1166
  }
817
1167
  }
818
- `],{moduleId:"lumo-date-picker-overlay"}),S("vaadin-button",E`
1168
+ `],{moduleId:"lumo-date-picker-overlay"}),Fi("spacing-props",E`
1169
+ :host {
1170
+ /* Square */
1171
+ --lumo-space-xs: 0.25rem;
1172
+ --lumo-space-s: 0.5rem;
1173
+ --lumo-space-m: 1rem;
1174
+ --lumo-space-l: 1.5rem;
1175
+ --lumo-space-xl: 2.5rem;
1176
+
1177
+ /* Wide */
1178
+ --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
1179
+ --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
1180
+ --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
1181
+ --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
1182
+ --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
1183
+
1184
+ /* Tall */
1185
+ --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
1186
+ --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
1187
+ --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
1188
+ --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
1189
+ --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
1190
+ }
1191
+ `),S("vaadin-button",E`
819
1192
  :host {
820
1193
  /* Sizing */
821
1194
  --lumo-button-size: var(--lumo-size-m);
@@ -1064,7 +1437,7 @@
1064
1437
  margin-left: 0;
1065
1438
  margin-right: 0;
1066
1439
  }
1067
- `,{moduleId:"lumo-button"});const Us=T(e=>"function"==typeof e.prototype.addController?e:class extends e{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),void 0!==this.$&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}),$s=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,js=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Vs(e,t){if("function"==typeof e){var r=$s.exec(e.toString());if(r)try{e=new Function(r[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}}window.Vaadin=window.Vaadin||{};function Ws(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||0<=["localhost","127.0.0.1"].indexOf(window.location.hostname)&&(js?!(js&&0<Object.keys(js).map(e=>js[e]).filter(e=>e.productionMode).length):!Vs(function(){return!0}))}catch(e){return!1}}());let Gs=0,qs=0;const Ks=[];let Xs=!1;const Zs={after:t=>({run:e=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},Js={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},Qs={run(e){Xs||(Xs=!0,queueMicrotask(()=>{{Xs=!1;const t=Ks.length;for(let e=0;e<t;e++){const t=Ks[e];if(t)try{t()}catch(t){setTimeout(()=>{throw t})}}Ks.splice(0,t),qs+=t}})),Ks.push(e);e=Gs;return Gs+=1,e},cancel(e){var t=e-qs;if(0<=t){if(!Ks[t])throw new Error("invalid async handle: "+e);Ks[t]=null}}},ea=new Set;class ta{static debounce(e,t,r){return e instanceof ta?e._cancelAsync():e=new ta,e.setConfig(t,r),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,ea.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),ea.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let ra;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){var e=Ws,t=void 0;if(window.Vaadin.developmentMode)Vs(e,t)};const ia=new Set,na=e=>class extends Ys(e){static get version(){return"24.2.5"}static finalize(){super.finalize();var e=this["is"];e&&!ia.has(e)&&(window.Vaadin.registrations.push(this),ia.add(e),window.Vaadin.developmentModeCallback)&&(e=ra=ta.debounce(ra,Js,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),ea.add(e))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};function oa(e){return e?new Set(e.split(" ")):new Set}function sa(e){return e?[...e].join(" "):""}function aa(e,t,r){var i=oa(e.getAttribute(t));i.add(r),e.setAttribute(t,sa(i))}class la{constructor(e,t){this.slot=e,this.callback=t,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 i=this.slot.assignedNodes({flatten:!0});let e=[];const n=[],o=[];i.length&&(e=i.filter(e=>!this._storedNodes.includes(e))),this._storedNodes.length&&this._storedNodes.forEach((e,t)=>{var r=i.indexOf(e);-1===r?n.push(e):r!==t&&o.push(e)}),(e.length||n.length||o.length)&&this.callback({addedNodes:e,movedNodes:o,removedNodes:n}),this._storedNodes=i}}let ha=0;class ua extends EventTarget{static generateId(e,t){return`${t||"default"}-${e.localName}-`+ha++}constructor(e,t,r,i={}){super();var{initializer:i,multiple:n,observe:o,useUniqueId:s}=i;this.host=e,this.slotName=t,this.tagName=r,this.observe="boolean"!=typeof o||o,this.multiple="boolean"==typeof n&&n,this.slotInitializer=i,n&&(this.nodes=[]),s&&(this.defaultId=this.constructor.generateId(e,t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){var e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(0===e.length){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else(this.nodes=e).forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){var{host:e,slotName:t,tagName:r}=this;let i=this.defaultNode;return!i&&r&&(i=document.createElement(r))instanceof Element&&(""!==t&&i.setAttribute("slot",t),this.node=i,this.defaultNode=i),i&&e.appendChild(i),i}getSlotChildren(){const t=this["slotName"];return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t)}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){var t=this["slotInitializer"];t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){var e=this["slotName"],e=this.host.shadowRoot.querySelector(""===e?"slot:not([name])":`slot[name=${e}]`);this.__slotObserver=new la(e,({addedNodes:e,removedNodes:t})=>{const r=this.multiple?this.nodes:[this.node],i=e.filter(e=>{return!((t=e).nodeType===Node.TEXT_NODE&&""===t.textContent.trim()||r.includes(e));var t});t.length&&(this.nodes=r.filter(e=>!t.includes(e)),t.forEach(e=>{this.teardownNode(e)})),i&&0<i.length&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...r,...i].filter(e=>e!==this.defaultNode),i.forEach(e=>{this.initAddedNode(e)})):(this.node&&this.node.remove(),this.node=i[0],this.initAddedNode(this.node)))})}}class ca extends ua{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,void 0!==this.ariaTarget&&(e.ariaTarget=this.ariaTarget),void 0!==this.context&&(e.context=this.context),void 0!==this.manual&&(e.manual=this.manual),void 0!==this.opened&&(e.opened=this.opened),void 0!==this.position&&(e._position=this.position),void 0!==this.shouldShow&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;var t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;var t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;var t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;var t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;var t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;var t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;var t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}const da=E`
1440
+ `,{moduleId:"lumo-button"});const Ws=C(e=>"function"==typeof e.prototype.addController?e:class extends e{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),void 0!==this.$&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}),Gs=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,qs=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Ks(e,t){if("function"==typeof e){var r=Gs.exec(e.toString());if(r)try{e=new Function(r[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}}window.Vaadin=window.Vaadin||{};function Xs(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||0<=["localhost","127.0.0.1"].indexOf(window.location.hostname)&&(qs?!(qs&&0<Object.keys(qs).map(e=>qs[e]).filter(e=>e.productionMode).length):!Ks(function(){return!0}))}catch(e){return!1}}());let Zs=0,Js=0;const Qs=[];let ea=!1;const ta={after:t=>({run:e=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},ra={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},oa={run(e){ea||(ea=!0,queueMicrotask(()=>{{ea=!1;const t=Qs.length;for(let e=0;e<t;e++){const t=Qs[e];if(t)try{t()}catch(t){setTimeout(()=>{throw t})}}Qs.splice(0,t),Js+=t}})),Qs.push(e);e=Zs;return Zs+=1,e},cancel(e){var t=e-Js;if(0<=t){if(!Qs[t])throw new Error("invalid async handle: "+e);Qs[t]=null}}},ia=new Set;class na{static debounce(e,t,r){return e instanceof na?e._cancelAsync():e=new na,e.setConfig(t,r),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,ia.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),ia.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let sa;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){var e=Xs,t=void 0;if(window.Vaadin.developmentMode)Ks(e,t)};const aa=new Set,la=e=>class extends $s(e){static get version(){return"24.2.8"}static finalize(){super.finalize();var e=this["is"];e&&!aa.has(e)&&(window.Vaadin.registrations.push(this),aa.add(e),window.Vaadin.developmentModeCallback)&&(e=sa=na.debounce(sa,ra,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),ia.add(e))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};function ha(e){return e?new Set(e.split(" ")):new Set}function ua(e){return e?[...e].join(" "):""}function ca(e,t,r){var o=ha(e.getAttribute(t));o.add(r),e.setAttribute(t,ua(o))}class da{constructor(e,t){this.slot=e,this.callback=t,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 o=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],n=[];o.length&&(e=o.filter(e=>!this._storedNodes.includes(e))),this._storedNodes.length&&this._storedNodes.forEach((e,t)=>{var r=o.indexOf(e);-1===r?i.push(e):r!==t&&n.push(e)}),(e.length||i.length||n.length)&&this.callback({addedNodes:e,movedNodes:n,removedNodes:i}),this._storedNodes=o}}let pa=0;class ma extends EventTarget{static generateId(e,t){return`${t||"default"}-${e.localName}-`+pa++}constructor(e,t,r,o={}){super();var{initializer:o,multiple:i,observe:n,useUniqueId:s}=o;this.host=e,this.slotName=t,this.tagName=r,this.observe="boolean"!=typeof n||n,this.multiple="boolean"==typeof i&&i,this.slotInitializer=o,i&&(this.nodes=[]),s&&(this.defaultId=this.constructor.generateId(e,t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){var e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(0===e.length){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else(this.nodes=e).forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){var{host:e,slotName:t,tagName:r}=this;let o=this.defaultNode;return!o&&r&&(o=document.createElement(r))instanceof Element&&(""!==t&&o.setAttribute("slot",t),this.node=o,this.defaultNode=o),o&&e.appendChild(o),o}getSlotChildren(){const t=this["slotName"];return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t)}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){var t=this["slotInitializer"];t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){var e=this["slotName"],e=this.host.shadowRoot.querySelector(""===e?"slot:not([name])":`slot[name=${e}]`);this.__slotObserver=new da(e,({addedNodes:e,removedNodes:t})=>{const r=this.multiple?this.nodes:[this.node],o=e.filter(e=>{return!((t=e).nodeType===Node.TEXT_NODE&&""===t.textContent.trim()||r.includes(e));var t});t.length&&(this.nodes=r.filter(e=>!t.includes(e)),t.forEach(e=>{this.teardownNode(e)})),o&&0<o.length&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...r,...o].filter(e=>e!==this.defaultNode),o.forEach(e=>{this.initAddedNode(e)})):(this.node&&this.node.remove(),this.node=o[0],this.initAddedNode(this.node)))})}}class fa extends ma{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,void 0!==this.ariaTarget&&(e.ariaTarget=this.ariaTarget),void 0!==this.context&&(e.context=this.context),void 0!==this.manual&&(e.manual=this.manual),void 0!==this.opened&&(e.opened=this.opened),void 0!==this.position&&(e._position=this.position),void 0!==this.shouldShow&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;var t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;var t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;var t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;var t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;var t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;var t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;var t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}const _a=E`
1068
1441
  :host {
1069
1442
  display: inline-block;
1070
1443
  position: relative;
@@ -1124,7 +1497,7 @@
1124
1497
  outline-color: GrayText;
1125
1498
  }
1126
1499
  }
1127
- `,pa=!1,ma=e=>e,fa="string"==typeof document.head.style.touchAction,_a="__polymerGestures",ya="__polymerGesturesHandled",va="__polymerGesturesTouchAction",ga=["mousedown","mousemove","mouseup","click"],ba=[0,1,4,2],wa=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function xa(e){return-1<ga.indexOf(e)}let Ea=!1;try{var Aa=Object.defineProperty({},"passive",{get(){Ea=!0}});window.addEventListener("test",null,Aa),window.removeEventListener("test",null,Aa)}catch(e){}const Sa=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Ca={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ta(t){var e=t.type;if(xa(e)){if("mousemove"!==e)return 0===(void 0===t.button?0:t.button);{let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!wa&&(e=ba[t.which]||0),Boolean(1&e)}}}const Da={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Pa(e,t,r){e.movefn=t,e.upfn=r,document.addEventListener("mousemove",t),document.addEventListener("mouseup",r)}function ka(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}const Oa=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],Ma={},Na=[];function Ia(e){var t=Oa(e);return 0<t.length?t[0]:e.target}function La(r){const i=r.type,e=r.currentTarget[_a];if(e){var n=e[i];if(n){if(!r[ya]&&(r[ya]={},i.startsWith("touch"))){const e=r.changedTouches[0];if("touchstart"===i&&1===r.touches.length&&(Da.touch.id=e.identifier),Da.touch.id!==e.identifier)return;if(!(fa||"touchstart"!==i&&"touchmove"!==i)){var t=r;const l=t.changedTouches[0],h=t.type;if("touchstart"===h)Da.touch.x=l.clientX,Da.touch.y=l.clientY,Da.touch.scrollDecided=!1;else if("touchmove"===h&&!Da.touch.scrollDecided){Da.touch.scrollDecided=!0;const h=function(e){let r="auto";var i=Oa(e);for(let e,t=0;t<i.length;t++)if((e=i[t])[va]){r=e[va];break}return r}(t);let e=!1;var o=Math.abs(Da.touch.x-l.clientX),s=Math.abs(Da.touch.y-l.clientY);t.cancelable&&("none"===h?e=!0:"pan-x"===h?e=o<s:"pan-y"===h&&(e=s<o)),e?t.preventDefault():Ya("track")}}}var a=r[ya];if(!a.skip){for(let e,t=0;t<Na.length;t++)n[(e=Na[t]).name]&&!a[e.name]&&e.flow&&-1<e.flow.start.indexOf(r.type)&&e.reset&&e.reset();for(let e,t=0;t<Na.length;t++)n[(e=Na[t]).name]&&!a[e.name]&&(a[e.name]=!0,e[i](r))}}}}function Ha(e,t,r){if(Ma[t]){var n,o=e,e=t,t=r,r=Ma[e],s=r.deps,a=r.name;let i=o[_a];i||(o[_a]=i={});for(let e,t,r=0;r<s.length;r++)e=s[r],Sa&&xa(e)&&"click"!==e||((t=i[e])||(i[e]=t={_count:0}),0===t._count&&o.addEventListener(e,La,!xa(n=e)&&"touchend"!==n&&fa&&Ea&&pa?{passive:!0}:void 0),t[a]=(t[a]||0)+1,t._count=(t._count||0)+1);o.addEventListener(e,t),r.touchAction&&Ba(o,r.touchAction)}}function Ra(t){Na.push(t),t.emits.forEach(e=>{Ma[e]=t})}function Ba(e,t){fa&&e instanceof HTMLElement&&Qs.run(()=>{e.style.touchAction=t}),e[va]=t}function Fa(e,t,r){t=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(t.detail=r,ma(e).dispatchEvent(t),t.defaultPrevented){const e=r.preventer||r.sourceEvent;e&&e.preventDefault&&e.preventDefault()}}function Ya(e){e=function(r){for(let t,e=0;e<Na.length;e++){t=Na[e];for(let e=0;e<t.emits.length;e++)if(t.emits[e]===r)return t}return null}(e);e.info&&(e.info.prevent=!0)}function za(e,t,r,i){t&&Fa(t,e,{x:r.clientX,y:r.clientY,sourceEvent:r,preventer:i,prevent:e=>Ya(e)})}function Ua(e,t,r){return!e.prevent&&(e.started||(t=Math.abs(e.x-t),e=Math.abs(e.y-r),5<=t)||5<=e)}function $a(r,i,n){if(i){var o=r.moves[r.moves.length-2],s=r.moves[r.moves.length-1],a=s.x-r.x,l=s.y-r.y;let e,t=0;o&&(e=s.x-o.x,t=s.y-o.y),Fa(i,"track",{state:r.state,x:n.clientX,y:n.clientY,dx:a,dy:l,ddx:e,ddy:t,sourceEvent:n,hover:()=>{{var r=n.clientX,i=n.clientY;let e=document.elementFromPoint(r,i),t=e;for(;t&&t.shadowRoot&&!window.ShadyDOM;){if(t===(t=t.shadowRoot.elementFromPoint(r,i)))break;t&&(e=t)}return e}}})}}function ja(e,t,r){var i,n=Math.abs(t.clientX-e.x),o=Math.abs(t.clientY-e.y),s=Ia(r||t);!s||Ca[s.localName]&&s.hasAttribute("disabled")||!(isNaN(n)||isNaN(o)||n<=25&&o<=25)&&("click"!==(n=t).type||0!==n.detail&&(o=Ia(n)).nodeType&&o.nodeType===Node.ELEMENT_NODE&&(o=o.getBoundingClientRect(),i=n.pageX,n=n.pageY,i>=o.left)&&i<=o.right&&n>=o.top&&n<=o.bottom)||e.prevent||Fa(s,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r})}Ra({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){ka(this.info)},mousedown(e){if(Ta(e)){const t=Ia(e),r=this;Pa(this.info,e=>{Ta(e)||(za("up",t,e),ka(r.info))},e=>{Ta(e)&&za("up",t,e),ka(r.info)}),za("down",t,e)}},touchstart(e){za("down",Ia(e),e.changedTouches[0],e)},touchend(e){za("up",Ia(e),e.changedTouches[0],e)}}),Ra({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(e){2<this.moves.length&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,ka(this.info)},mousedown(e){if(Ta(e)){const i=Ia(e),n=this,t=e=>{var t=e.clientX,r=e.clientY;Ua(n.info,t,r)&&(n.info.state=n.info.started?"mouseup"===e.type?"end":"track":"start","start"===n.info.state&&Ya("tap"),n.info.addMove({x:t,y:r}),Ta(e)||(n.info.state="end",ka(n.info)),i&&$a(n.info,i,e),n.info.started=!0)};Pa(this.info,t,e=>{n.info.started&&t(e),ka(n.info)}),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(e){var t=Ia(e),e=e.changedTouches[0],r=e.clientX,i=e.clientY;Ua(this.info,r,i)&&("start"===this.info.state&&Ya("tap"),this.info.addMove({x:r,y:i}),$a(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(e){var t=Ia(e),e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),$a(this.info,t,e))}}),Ra({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(e){Ta(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){Ta(e)&&ja(this.info,e)},touchstart(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(e){ja(this.info,e.changedTouches[0],e)}});const Va=T(e=>class extends e{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()}}),Wa=T(e=>class extends e{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)}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});let Ga=!1;function qa(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Ka(e){var t=e.length;if(t<2)return e;for(var r,i,t=Math.ceil(t/2),n=Ka(e.slice(0,t)),o=Ka(e.slice(t)),s=[];0<n.length&&0<o.length;)r=n[0],i=o[0],r=Math.max(r.tabIndex,0),i=Math.max(i.tabIndex,0),s.push(((0===r||0===i?r<i:i<r)?o:n).shift());return s.concat(n,o)}function Xa(e){return e.getRootNode().activeElement===e}window.addEventListener("keydown",()=>{Ga=!0},{capture:!0}),window.addEventListener("mousedown",()=>{Ga=!1},{capture:!0});const Za=T(e=>class extends e{get _keyboardActive(){return Ga}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}}),Ja=e=>class extends Va(e){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&-1!==e&&(this._lastTabIndex=e,this.tabindex=-1)}},Qa=e=>{return class extends(e=Ja(Za(e)),class extends Va(Wa(e)){get _activeKeys(){return[" "]}ready(){super.ready(),Ha(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Ha(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",e=>{this._activeKeys.includes(e.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}}){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}}};S("vaadin-button",da,{moduleId:"vaadin-button-styles"});class el extends Qa(na(c(Us(Hs)))){static get is(){return"vaadin-button"}static get template(){return Is`
1500
+ `,ya=!1,va=e=>e,ga="string"==typeof document.head.style.touchAction,ba="__polymerGestures",wa="__polymerGesturesHandled",xa="__polymerGesturesTouchAction",Ea=["mousedown","mousemove","mouseup","click"],Aa=[0,1,4,2],Sa=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function Ta(e){return-1<Ea.indexOf(e)}let Ca=!1;try{var Da=Object.defineProperty({},"passive",{get(){Ca=!0}});window.addEventListener("test",null,Da),window.removeEventListener("test",null,Da)}catch(e){}const ka=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Pa={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Oa(t){var e=t.type;if(Ta(e)){if("mousemove"!==e)return 0===(void 0===t.button?0:t.button);{let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!Sa&&(e=Aa[t.which]||0),Boolean(1&e)}}}const Ma={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Na(e,t,r){e.movefn=t,e.upfn=r,document.addEventListener("mousemove",t),document.addEventListener("mouseup",r)}function Ia(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}const La=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],Ha={},Ra=[];function Ba(e){var t=La(e);return 0<t.length?t[0]:e.target}function Fa(r){const o=r.type,e=r.currentTarget[ba];if(e){var i=e[o];if(i){if(!r[wa]&&(r[wa]={},o.startsWith("touch"))){const e=r.changedTouches[0];if("touchstart"===o&&1===r.touches.length&&(Ma.touch.id=e.identifier),Ma.touch.id!==e.identifier)return;if(!(ga||"touchstart"!==o&&"touchmove"!==o)){var t=r;const l=t.changedTouches[0],h=t.type;if("touchstart"===h)Ma.touch.x=l.clientX,Ma.touch.y=l.clientY,Ma.touch.scrollDecided=!1;else if("touchmove"===h&&!Ma.touch.scrollDecided){Ma.touch.scrollDecided=!0;const h=function(e){let r="auto";var o=La(e);for(let e,t=0;t<o.length;t++)if((e=o[t])[xa]){r=e[xa];break}return r}(t);let e=!1;var n=Math.abs(Ma.touch.x-l.clientX),s=Math.abs(Ma.touch.y-l.clientY);t.cancelable&&("none"===h?e=!0:"pan-x"===h?e=n<s:"pan-y"===h&&(e=s<n)),e?t.preventDefault():ja("track")}}}var a=r[wa];if(!a.skip){for(let e,t=0;t<Ra.length;t++)i[(e=Ra[t]).name]&&!a[e.name]&&e.flow&&-1<e.flow.start.indexOf(r.type)&&e.reset&&e.reset();for(let e,t=0;t<Ra.length;t++)i[(e=Ra[t]).name]&&!a[e.name]&&(a[e.name]=!0,e[o](r))}}}}function za(e,t,r){if(Ha[t]){var i,n=e,e=t,t=r,r=Ha[e],s=r.deps,a=r.name;let o=n[ba];o||(n[ba]=o={});for(let e,t,r=0;r<s.length;r++)e=s[r],ka&&Ta(e)&&"click"!==e||((t=o[e])||(o[e]=t={_count:0}),0===t._count&&n.addEventListener(e,Fa,!Ta(i=e)&&"touchend"!==i&&ga&&Ca&&ya?{passive:!0}:void 0),t[a]=(t[a]||0)+1,t._count=(t._count||0)+1);n.addEventListener(e,t),r.touchAction&&Ua(n,r.touchAction)}}function Ya(t){Ra.push(t),t.emits.forEach(e=>{Ha[e]=t})}function Ua(e,t){ga&&e instanceof HTMLElement&&oa.run(()=>{e.style.touchAction=t}),e[xa]=t}function $a(e,t,r){t=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(t.detail=r,va(e).dispatchEvent(t),t.defaultPrevented){const e=r.preventer||r.sourceEvent;e&&e.preventDefault&&e.preventDefault()}}function ja(e){e=function(r){for(let t,e=0;e<Ra.length;e++){t=Ra[e];for(let e=0;e<t.emits.length;e++)if(t.emits[e]===r)return t}return null}(e);e.info&&(e.info.prevent=!0)}function Va(e,t,r,o){t&&$a(t,e,{x:r.clientX,y:r.clientY,sourceEvent:r,preventer:o,prevent:e=>ja(e)})}function Wa(e,t,r){return!e.prevent&&(e.started||(t=Math.abs(e.x-t),e=Math.abs(e.y-r),5<=t)||5<=e)}function Ga(r,o,i){if(o){var n=r.moves[r.moves.length-2],s=r.moves[r.moves.length-1],a=s.x-r.x,l=s.y-r.y;let e,t=0;n&&(e=s.x-n.x,t=s.y-n.y),$a(o,"track",{state:r.state,x:i.clientX,y:i.clientY,dx:a,dy:l,ddx:e,ddy:t,sourceEvent:i,hover:()=>{{var r=i.clientX,o=i.clientY;let e=document.elementFromPoint(r,o),t=e;for(;t&&t.shadowRoot&&!window.ShadyDOM;){if(t===(t=t.shadowRoot.elementFromPoint(r,o)))break;t&&(e=t)}return e}}})}}function qa(e,t,r){var o,i=Math.abs(t.clientX-e.x),n=Math.abs(t.clientY-e.y),s=Ba(r||t);!s||Pa[s.localName]&&s.hasAttribute("disabled")||!(isNaN(i)||isNaN(n)||i<=25&&n<=25)&&("click"!==(i=t).type||0!==i.detail&&(n=Ba(i)).nodeType&&n.nodeType===Node.ELEMENT_NODE&&(n=n.getBoundingClientRect(),o=i.pageX,i=i.pageY,o>=n.left)&&o<=n.right&&i>=n.top&&i<=n.bottom)||e.prevent||$a(s,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r})}Ya({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Ia(this.info)},mousedown(e){if(Oa(e)){const t=Ba(e),r=this;Na(this.info,e=>{Oa(e)||(Va("up",t,e),Ia(r.info))},e=>{Oa(e)&&Va("up",t,e),Ia(r.info)}),Va("down",t,e)}},touchstart(e){Va("down",Ba(e),e.changedTouches[0],e)},touchend(e){Va("up",Ba(e),e.changedTouches[0],e)}}),Ya({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(e){2<this.moves.length&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Ia(this.info)},mousedown(e){if(Oa(e)){const o=Ba(e),i=this,t=e=>{var t=e.clientX,r=e.clientY;Wa(i.info,t,r)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&ja("tap"),i.info.addMove({x:t,y:r}),Oa(e)||(i.info.state="end",Ia(i.info)),o&&Ga(i.info,o,e),i.info.started=!0)};Na(this.info,t,e=>{i.info.started&&t(e),Ia(i.info)}),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(e){var t=Ba(e),e=e.changedTouches[0],r=e.clientX,o=e.clientY;Wa(this.info,r,o)&&("start"===this.info.state&&ja("tap"),this.info.addMove({x:r,y:o}),Ga(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(e){var t=Ba(e),e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Ga(this.info,t,e))}}),Ya({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(e){Oa(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){Oa(e)&&qa(this.info,e)},touchstart(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(e){qa(this.info,e.changedTouches[0],e)}});const Ka=C(e=>class extends e{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()}}),Xa=C(e=>class extends e{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)}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});let Za=!1;function Ja(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Qa(e){var t=e.length;if(t<2)return e;for(var r,o,t=Math.ceil(t/2),i=Qa(e.slice(0,t)),n=Qa(e.slice(t)),s=[];0<i.length&&0<n.length;)r=i[0],o=n[0],r=Math.max(r.tabIndex,0),o=Math.max(o.tabIndex,0),s.push(((0===r||0===o?r<o:o<r)?n:i).shift());return s.concat(i,n)}function el(e){return e.getRootNode().activeElement===e}window.addEventListener("keydown",()=>{Za=!0},{capture:!0}),window.addEventListener("mousedown",()=>{Za=!1},{capture:!0});const tl=C(e=>class extends e{get _keyboardActive(){return Za}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}}),rl=e=>class extends Ka(e){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&-1!==e&&(this._lastTabIndex=e,this.tabindex=-1)}},ol=e=>{return class extends(e=rl(tl(e)),class extends Ka(Xa(e)){get _activeKeys(){return[" "]}ready(){super.ready(),za(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),za(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",e=>{this._activeKeys.includes(e.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}}){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}}};S("vaadin-button",_a,{moduleId:"vaadin-button-styles"});class il extends ol(la(Ri(Ws(Fs)))){static get is(){return"vaadin-button"}static get template(){return Rs`
1128
1501
  <div class="vaadin-button-container">
1129
1502
  <span part="prefix" aria-hidden="true">
1130
1503
  <slot name="prefix"></slot>
@@ -1137,7 +1510,7 @@
1137
1510
  </span>
1138
1511
  </div>
1139
1512
  <slot name="tooltip"></slot>
1140
- `}ready(){super.ready(),this._tooltipController=new ca(this),this.addController(this._tooltipController)}}Li(el),S("vaadin-date-picker-year",E`
1513
+ `}ready(){super.ready(),this._tooltipController=new fa(this),this.addController(this._tooltipController)}}x(il),S("vaadin-date-picker-year",E`
1141
1514
  :host([current]) [part='year-number'] {
1142
1515
  color: var(--lumo-primary-text-color);
1143
1516
  }
@@ -1451,7 +1824,7 @@
1451
1824
  :host([disabled]) * {
1452
1825
  color: var(--lumo-disabled-text-color) !important;
1453
1826
  }
1454
- `,{moduleId:"lumo-month-calendar"});d=document.createElement("template"),d.innerHTML="\n <style>\n @keyframes vaadin-date-picker-month-calendar-focus-date {\n 50% {\n box-shadow: 0 0 0 2px transparent;\n }\n }\n </style>\n",document.head.appendChild(d.content),p("font-icons",E`
1827
+ `,{moduleId:"lumo-month-calendar"});c=document.createElement("template"),c.innerHTML="\n <style>\n @keyframes vaadin-date-picker-month-calendar-focus-date {\n 50% {\n box-shadow: 0 0 0 2px transparent;\n }\n }\n </style>\n",document.head.appendChild(c.content),d("font-icons",E`
1455
1828
  @font-face {
1456
1829
  font-family: 'lumo-icons';
1457
1830
  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==)
@@ -1504,7 +1877,7 @@
1504
1877
  --lumo-icons-upload: '\\ea29';
1505
1878
  --lumo-icons-user: '\\ea2a';
1506
1879
  }
1507
- `),m=E`
1880
+ `),or=E`
1508
1881
  [part$='button'] {
1509
1882
  flex: none;
1510
1883
  width: 1em;
@@ -1531,7 +1904,7 @@
1531
1904
  font-family: 'lumo-icons';
1532
1905
  display: block;
1533
1906
  }
1534
- `,S("",m,{moduleId:"lumo-field-button"}),g=E`
1907
+ `,S("",or,{moduleId:"lumo-field-button"}),p=E`
1535
1908
  :host([has-helper]) [part='helper-text']::before {
1536
1909
  content: '';
1537
1910
  display: block;
@@ -1582,7 +1955,7 @@
1582
1955
  :host([has-helper][theme~='helper-above-field']) [part='error-message'] {
1583
1956
  order: 3;
1584
1957
  }
1585
- `,n=E`
1958
+ `,m=E`
1586
1959
  [part='label'] {
1587
1960
  align-self: flex-start;
1588
1961
  color: var(--lumo-secondary-text-color);
@@ -1678,7 +2051,7 @@
1678
2051
  margin-left: 0;
1679
2052
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1680
2053
  }
1681
- `,S("",n,{moduleId:"lumo-required-field"}),a=[n,m,g,E`
2054
+ `,S("",m,{moduleId:"lumo-required-field"}),i=[m,or,p,E`
1682
2055
  :host {
1683
2056
  --lumo-text-field-size: var(--lumo-size-m);
1684
2057
  color: var(--lumo-body-text-color);
@@ -1812,7 +2185,7 @@
1812
2185
  [part='clear-button']::before {
1813
2186
  content: var(--lumo-icons-cross);
1814
2187
  }
1815
- `];S("",a,{moduleId:"lumo-input-field-shared-styles"}),S("vaadin-date-picker",[a,E`
2188
+ `];S("",i,{moduleId:"lumo-input-field-shared-styles"}),S("vaadin-date-picker",[i,E`
1816
2189
  :host {
1817
2190
  outline: none;
1818
2191
  }
@@ -1838,7 +2211,7 @@
1838
2211
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
1839
2212
  --_lumo-text-field-overflow-mask-image: none;
1840
2213
  }
1841
- `],{moduleId:"lumo-date-picker"});let tl=!1,rl=[],il=[];function nl(){tl=!0,requestAnimationFrame(function(){tl=!1;for(var e=rl;e.length;)ol(e.shift());setTimeout(function(){var r=il;for(let e=0,t=r.length;e<t;e++)ol(r.shift())})})}function ol(e){var t=e[0],r=e[1],i=e[2];try{r.apply(t,i)}catch(e){setTimeout(()=>{throw e})}}function sl(e,t,r){tl||nl(),il.push([e,t,r])}Aa=e=>e.test(navigator.userAgent),d=e=>e.test(navigator.platform);Aa(/Android/u),Aa(/Chrome/u)&&/Google Inc/u.test(navigator.vendor);const al=Aa(/Firefox/u),ll=d(/^iPad/u)||d(/^Mac/u)&&1<navigator.maxTouchPoints,hl=d(/^iPhone/u)||ll,ul=(Aa(/^((?!chrome|android).)*safari/iu),(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})());let cl=new WeakMap,dl=new WeakMap,pl={},ml=0;const fl=e=>e&&e.nodeType===Node.ELEMENT_NODE,_l=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},yl=(e,t=document.body,r="data-aria-hidden")=>{e=Array.from(Array.isArray(e)?e:[e]);t&&e.push(...Array.from(t.querySelectorAll("[aria-live]")));{var n=r,o="aria-hidden";i=t,e=Array.isArray(e)?e:[e];var i,e=fl(i)?e.map(t=>{if(fl(t)){let e=t;for(;e&&e!==i;){if(i.contains(e))return t;e=e.getRootNode().host}_l(t,"is not contained inside",i)}else _l(t,"is not a valid element");return null}).filter(e=>Boolean(e)):(_l(i,"is not a valid element"),[]);pl[n]||(pl[n]=new WeakMap);const s=pl[n],a=[],l=new Set,h=new Set(e),u=e=>{var t;e&&!l.has(e)&&(l.add(e),(t=e.assignedSlot)&&u(t),u(e.parentNode||e.host))},c=(e.forEach(u),e=>{var t;e&&!h.has(e)&&((t=e.shadowRoot)?[...e.children,...t.children]:[...e.children]).forEach(e=>{if(!["template","script","style"].includes(e.localName))if(l.has(e))c(e);else{const t=e.getAttribute(o),r=null!==t&&"false"!==t,l=(cl.get(e)||0)+1,i=(s.get(e)||0)+1;cl.set(e,l),s.set(e,i),a.push(e),1===l&&r&&dl.set(e,!0),1===i&&e.setAttribute(n,"true"),r||e.setAttribute(o,"true")}})});return c(t),l.clear(),ml+=1,()=>{a.forEach(e=>{var t=cl.get(e)-1,r=s.get(e)-1;cl.set(e,t),s.set(e,r),t||(dl.has(e)?dl.delete(e):e.removeAttribute(o)),r||e.removeAttribute(n)}),--ml||(cl=new WeakMap,cl=new WeakMap,dl=new WeakMap,pl={})}}};class vl{constructor(e,t){this.host=e,this.callback="function"==typeof t?t:()=>e}showModal(){var e=this.callback();this.__showOthers=yl(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}class gl{saveFocus(e){this.focusNode=e||qa()}restoreFocus(){const e=this.focusNode;e&&(qa()===document.body?setTimeout(()=>e.focus()):e.focus(),this.focusNode=null)}}const bl=[];class wl{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function t(e,r){if(e.nodeType!==Node.ELEMENT_NODE||"hidden"===(n=e.style).visibility||"none"===n.display||"hidden"===(n=window.getComputedStyle(e)).visibility||"none"===n.display)return!1;var i,n=e,e=!(i=e=n).matches('[tabindex="-1"]')&&(i.matches("input, select, textarea, button, object")?i.matches(":not([disabled])"):i.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))?(i=e.getAttribute("tabindex")||0,Number(i)):-1;let o=0<e;0<=e&&r.push(n);return[..."slot"===n.localName?n.assignedNodes({flatten:!0}):(n.shadowRoot||n).children].forEach(e=>{o=t(e,r)||o}),o}(this.__trapNode,e=[])?Ka(e):e;var e}get __focusedElementIndex(){var e=this.__focusableElements;return e.indexOf(e.filter(Xa).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");bl.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,bl.pop()}__onKeyDown(e){this.__trapNode&&this===Array.from(bl).pop()&&"Tab"===e.key&&(e.preventDefault(),e=e.shiftKey,this.__focusNextElement(e))}__focusNextElement(e=!1){var t=this.__focusableElements,r=this.__focusedElementIndex,r=t[(t.length+r+(e?-1:1))%t.length];r.focus(),"input"===r.localName&&r.select()}}const xl=()=>Array.from(document.body.children).filter(e=>e instanceof HTMLElement&&e._hasOverlayStackMixin&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0),El=e=>{return class extends(e=e,e=class extends e{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return this===xl().pop()}bringToFront(){let e="";var t=xl().filter(e=>e!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),xl().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);for(var e,t=xl();(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}},class extends Us(e){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new vl(this),this.__focusTrapController=new wl(this),this.__focusRestorationController=new gl}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(){var e=qa();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;for(var r=e.ownerDocument;t&&t!==r&&t!==this;)t=t.parentNode||t.host;return t===this}}){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),hl&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{})}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){e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){var e,t,r;this.opened&&(e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight,t&&e<r?this.style.setProperty("--vaadin-overlay-viewport-bottom",r-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,t,r,i){var n=this._oldOwner!==t||this._oldModel!==r,r=(this._oldModel=r,this._oldOwner=t,this._oldRenderer!==e),t=(this._oldRenderer=e,this._oldOpened!==i);this._oldOpened=i,r&&(this.innerHTML="",delete this._$litPart$),i&&e&&(r||t||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),sl(this,()=>{this._trapFocus();var e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){var e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return!("none"===e.getPropertyValue("display"))&&t&&"none"!==t}_enqueueAnimation(e,t){const r=`__${e}Handler`,i=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",i),delete this[r])};this[r]=i,this.addEventListener("animationend",i)}_flushAnimation(e){e=`__${e}Handler`;"function"==typeof this[e]&&this[e]()}_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=0<=e.composedPath().indexOf(this.$.overlay)}_mouseUpListener(e){this._mouseUpInside=0<=e.composedPath().indexOf(this.$.overlay)}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){var t;e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside?(this._mouseDownInside=!1,this._mouseUpInside=!1):this._shouldCloseOnOutsideClick(e)&&(t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened)&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){var t;!this._last||this.modeless&&!e.composedPath().includes(this.$.overlay)||"Escape"!==e.key||(t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e))}}},Al={start:"top",end:"bottom"},Sl={start:"left",end:"right"},Cl=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})});S("vaadin-date-picker-overlay",[E`
2214
+ `],{moduleId:"lumo-date-picker"});let nl=!1,sl=[],al=[];function ll(){nl=!0,requestAnimationFrame(function(){nl=!1;for(var e=sl;e.length;)hl(e.shift());setTimeout(function(){var r=al;for(let e=0,t=r.length;e<t;e++)hl(r.shift())})})}function hl(e){var t=e[0],r=e[1],o=e[2];try{r.apply(t,o)}catch(e){setTimeout(()=>{throw e})}}function ul(e,t,r){nl||ll(),al.push([e,t,r])}a=e=>e.test(navigator.userAgent),Da=e=>e.test(navigator.platform);a(/Android/u),a(/Chrome/u)&&/Google Inc/u.test(navigator.vendor);const cl=a(/Firefox/u),dl=Da(/^iPad/u)||Da(/^Mac/u)&&1<navigator.maxTouchPoints,pl=Da(/^iPhone/u)||dl,ml=(a(/^((?!chrome|android).)*safari/iu),(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})());let fl=new WeakMap,_l=new WeakMap,yl={},vl=0;const gl=e=>e&&e.nodeType===Node.ELEMENT_NODE,bl=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},wl=(e,t=document.body,r="data-aria-hidden")=>{e=Array.from(Array.isArray(e)?e:[e]);t&&e.push(...Array.from(t.querySelectorAll("[aria-live]")));{var i=r,n="aria-hidden";o=t,e=Array.isArray(e)?e:[e];var o,e=gl(o)?e.map(t=>{if(gl(t)){let e=t;for(;e&&e!==o;){if(o.contains(e))return t;e=e.getRootNode().host}bl(t,"is not contained inside",o)}else bl(t,"is not a valid element");return null}).filter(e=>Boolean(e)):(bl(o,"is not a valid element"),[]);yl[i]||(yl[i]=new WeakMap);const s=yl[i],a=[],l=new Set,h=new Set(e),u=e=>{var t;e&&!l.has(e)&&(l.add(e),(t=e.assignedSlot)&&u(t),u(e.parentNode||e.host))},c=(e.forEach(u),e=>{var t;e&&!h.has(e)&&((t=e.shadowRoot)?[...e.children,...t.children]:[...e.children]).forEach(e=>{if(!["template","script","style"].includes(e.localName))if(l.has(e))c(e);else{const t=e.getAttribute(n),r=null!==t&&"false"!==t,l=(fl.get(e)||0)+1,o=(s.get(e)||0)+1;fl.set(e,l),s.set(e,o),a.push(e),1===l&&r&&_l.set(e,!0),1===o&&e.setAttribute(i,"true"),r||e.setAttribute(n,"true")}})});return c(t),l.clear(),vl+=1,()=>{a.forEach(e=>{var t=fl.get(e)-1,r=s.get(e)-1;fl.set(e,t),s.set(e,r),t||(_l.has(e)?_l.delete(e):e.removeAttribute(n)),r||e.removeAttribute(i)}),--vl||(fl=new WeakMap,fl=new WeakMap,_l=new WeakMap,yl={})}}};class xl{constructor(e,t){this.host=e,this.callback="function"==typeof t?t:()=>e}showModal(){var e=this.callback();this.__showOthers=wl(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}class El{saveFocus(e){this.focusNode=e||Ja()}restoreFocus(){const e=this.focusNode;e&&(Ja()===document.body?setTimeout(()=>e.focus()):e.focus(),this.focusNode=null)}}const Al=[];class Sl{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function t(e,r){if(e.nodeType!==Node.ELEMENT_NODE||"hidden"===(i=e.style).visibility||"none"===i.display||"hidden"===(i=window.getComputedStyle(e)).visibility||"none"===i.display)return!1;var o,i=e,e=!(o=e=i).matches('[tabindex="-1"]')&&(o.matches("input, select, textarea, button, object")?o.matches(":not([disabled])"):o.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))?(o=e.getAttribute("tabindex")||0,Number(o)):-1;let n=0<e;0<=e&&r.push(i);return[..."slot"===i.localName?i.assignedNodes({flatten:!0}):(i.shadowRoot||i).children].forEach(e=>{n=t(e,r)||n}),n}(this.__trapNode,e=[])?Qa(e):e;var e}get __focusedElementIndex(){var e=this.__focusableElements;return e.indexOf(e.filter(el).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Al.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Al.pop()}__onKeyDown(e){this.__trapNode&&this===Array.from(Al).pop()&&"Tab"===e.key&&(e.preventDefault(),e=e.shiftKey,this.__focusNextElement(e))}__focusNextElement(e=!1){var t=this.__focusableElements,r=this.__focusedElementIndex,r=t[(t.length+r+(e?-1:1))%t.length];r.focus(),"input"===r.localName&&r.select()}}const Tl=()=>Array.from(document.body.children).filter(e=>e instanceof HTMLElement&&e._hasOverlayStackMixin&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0),Cl=e=>{return class extends(e=e,e=class extends e{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return this===Tl().pop()}bringToFront(){let e="";var t=Tl().filter(e=>e!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Tl().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);for(var e,t=Tl();(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}},class extends Ws(e){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new xl(this),this.__focusTrapController=new Sl(this),this.__focusRestorationController=new El}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(){var e=Ja();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;for(var r=e.ownerDocument;t&&t!==r&&t!==this;)t=t.parentNode||t.host;return t===this}}){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),pl&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&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){e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){var e,t,r;this.opened&&(e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight,t&&e<r?this.style.setProperty("--vaadin-overlay-viewport-bottom",r-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,t,r,o){var i=this._oldOwner!==t||this._oldModel!==r,r=(this._oldModel=r,this._oldOwner=t,this._oldRenderer!==e),t=(this._oldRenderer=e,this._oldOpened!==o);this._oldOpened=o,r&&(this.innerHTML="",delete this._$litPart$),o&&e&&(r||t||i)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),ul(this,()=>{this._trapFocus();var e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){var e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return!("none"===e.getPropertyValue("display"))&&t&&"none"!==t}_enqueueAnimation(e,t){const r=`__${e}Handler`,o=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",o),delete this[r])};this[r]=o,this.addEventListener("animationend",o)}_flushAnimation(e){e=`__${e}Handler`;"function"==typeof this[e]&&this[e]()}_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=0<=e.composedPath().indexOf(this.$.overlay)}_mouseUpListener(e){this._mouseUpInside=0<=e.composedPath().indexOf(this.$.overlay)}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){var t;e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside?(this._mouseDownInside=!1,this._mouseUpInside=!1):this._shouldCloseOnOutsideClick(e)&&(t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened)&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){var t;!this._last||this.modeless&&!e.composedPath().includes(this.$.overlay)||"Escape"!==e.key||(t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e))}}},Dl={start:"top",end:"bottom"},kl={start:"left",end:"right"},Pl=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})});S("vaadin-date-picker-overlay",[E`
1842
2215
  :host {
1843
2216
  z-index: 200;
1844
2217
  position: fixed;
@@ -1911,14 +2284,14 @@
1911
2284
  outline: 3px solid;
1912
2285
  }
1913
2286
  }
1914
- `],{moduleId:"vaadin-date-picker-overlay-styles"});class Tl extends(p=El(Ys(c(Hs))),class extends p{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=function(e){for(var t=[];e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}e=e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?e.assignedSlot||e.parentNode:(t.push(e),e.host)}return t}(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(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,Cl.unobserve(e),t)&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,Cl.observe(e)),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(e=>{this.__margins[e]=parseInt(t[e],10)})),this.setAttribute("dir",t.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){this.contains(e.target)||this._updatePosition()}_updatePosition(){var e,t,r,i,n,o;this.positionTarget&&this.opened&&(o=this.positionTarget.getBoundingClientRect(),e=this.__shouldAlignStartVertically(o),this.style.justifyContent=e?"flex-start":"flex-end",r=this.__isRTL,t=this.__shouldAlignStartHorizontally(o,r),this.style.alignItems=(r=!r&&t||r&&!t)?"flex-start":"flex-end",i=this.getBoundingClientRect(),n=this.__calculatePositionInOneDimension(o,i,this.noVerticalOverlap,Al,this,e),o=this.__calculatePositionInOneDimension(o,i,this.noHorizontalOverlap,Sl,this,t),Object.assign(this.style,n,o),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!r),this.toggleAttribute("start-aligned",r))}__shouldAlignStartHorizontally(e,t){var r=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth),i=(this.__oldContentWidth=this.$.overlay.offsetWidth,Math.min(window.innerWidth,document.documentElement.clientWidth)),t=!t&&"start"===this.horizontalAlign||t&&"end"===this.horizontalAlign;return this.__shouldAlignStart(e,r,i,this.__margins,t,this.noHorizontalOverlap,Sl)}__shouldAlignStartVertically(e){var t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight),r=(this.__oldContentHeight=this.$.overlay.offsetHeight,Math.min(window.innerHeight,document.documentElement.clientHeight)),i="top"===this.verticalAlign;return this.__shouldAlignStart(e,t,r,this.__margins,i,this.noVerticalOverlap,Al)}__shouldAlignStart(e,t,r,i,n,o,s){r=r-e[o?s.end:s.start]-i[s.end],e=e[o?s.start:s.end]-i[s.start],o=n?r:e;return n===((n?e:r)<o||t<o)}__adjustBottomProperty(e,t,r){let i;if(e===t.end){if(t.end===Al.end){const e=Math.min(window.innerHeight,document.documentElement.clientHeight);r>e&&this.__oldViewportHeight&&(i=r-(this.__oldViewportHeight-e)),this.__oldViewportHeight=e}if(t.end===Sl.end){const e=Math.min(window.innerWidth,document.documentElement.clientWidth);r>e&&this.__oldViewportWidth&&(i=r-(this.__oldViewportWidth-e)),this.__oldViewportWidth=e}}return i}__calculatePositionInOneDimension(e,t,r,i,n,o){var s=o?i.start:i.end,a=o?i.end:i.start,n=parseFloat(n.style[s]||getComputedStyle(n)[s]),l=this.__adjustBottomProperty(s,i,n),t=t[o?i.start:i.end]-e[r===o?i.end:i.start];return{[s]:l?l+"px":n+t*(o?-1:1)+"px",[a]:""}}}){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Is`
2287
+ `],{moduleId:"vaadin-date-picker-overlay-styles"});class Ol extends(c=Cl($s(Ri(Fs))),class extends c{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=function(e){for(var t=[];e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}e=e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?e.assignedSlot||e.parentNode:(t.push(e),e.host)}return t}(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(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,Pl.unobserve(e),t)&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,Pl.observe(e)),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(e=>{this.__margins[e]=parseInt(t[e],10)})),this.setAttribute("dir",t.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){this.contains(e.target)||this._updatePosition()}_updatePosition(){var e,t,r,o,i,n;this.positionTarget&&this.opened&&(n=this.positionTarget.getBoundingClientRect(),e=this.__shouldAlignStartVertically(n),this.style.justifyContent=e?"flex-start":"flex-end",r=this.__isRTL,t=this.__shouldAlignStartHorizontally(n,r),this.style.alignItems=(r=!r&&t||r&&!t)?"flex-start":"flex-end",o=this.getBoundingClientRect(),i=this.__calculatePositionInOneDimension(n,o,this.noVerticalOverlap,Dl,this,e),n=this.__calculatePositionInOneDimension(n,o,this.noHorizontalOverlap,kl,this,t),Object.assign(this.style,i,n),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!r),this.toggleAttribute("start-aligned",r))}__shouldAlignStartHorizontally(e,t){var r=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth),o=(this.__oldContentWidth=this.$.overlay.offsetWidth,Math.min(window.innerWidth,document.documentElement.clientWidth)),t=!t&&"start"===this.horizontalAlign||t&&"end"===this.horizontalAlign;return this.__shouldAlignStart(e,r,o,this.__margins,t,this.noHorizontalOverlap,kl)}__shouldAlignStartVertically(e){var t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight),r=(this.__oldContentHeight=this.$.overlay.offsetHeight,Math.min(window.innerHeight,document.documentElement.clientHeight)),o="top"===this.verticalAlign;return this.__shouldAlignStart(e,t,r,this.__margins,o,this.noVerticalOverlap,Dl)}__shouldAlignStart(e,t,r,o,i,n,s){r=r-e[n?s.end:s.start]-o[s.end],e=e[n?s.start:s.end]-o[s.start],n=i?r:e;return i===((i?e:r)<n||t<n)}__adjustBottomProperty(e,t,r){let o;if(e===t.end){if(t.end===Dl.end){const e=Math.min(window.innerHeight,document.documentElement.clientHeight);r>e&&this.__oldViewportHeight&&(o=r-(this.__oldViewportHeight-e)),this.__oldViewportHeight=e}if(t.end===kl.end){const e=Math.min(window.innerWidth,document.documentElement.clientWidth);r>e&&this.__oldViewportWidth&&(o=r-(this.__oldViewportWidth-e)),this.__oldViewportWidth=e}}return o}__calculatePositionInOneDimension(e,t,r,o,i,n){var s=n?o.start:o.end,a=n?o.end:o.start,i=parseFloat(i.style[s]||getComputedStyle(i)[s]),l=this.__adjustBottomProperty(s,o,i),t=t[n?o.start:o.end]-e[r===n?o.end:o.start];return{[s]:l?l+"px":i+t*(n?-1:1)+"px",[a]:""}}}){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Rs`
1915
2288
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
1916
2289
  <div part="overlay" id="overlay">
1917
2290
  <div part="content" id="content">
1918
2291
  <slot></slot>
1919
2292
  </div>
1920
2293
  </div>
1921
- `}}function Dl(e,t){return e instanceof Date&&t instanceof Date&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Pl(e,t,r){return(!t||t<=e)&&(!r||e<=r)}function kl(r,e){return e.filter(e=>void 0!==e).reduce((e,t)=>t&&(!e||Math.abs(r.getTime()-t.getTime())<Math.abs(e.getTime()-r.getTime()))?t:e)}function Ol(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}function Ml(e){var t=new Date,r=new Date(t);return r.setDate(1),r.setMonth(parseInt(e)+t.getMonth()),r}function Nl(e){var t,e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(e);if(e)return(t=new Date(0,0)).setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}Li(Tl);const Il=document.createElement("template");Il.innerHTML='\n <style>\n :host {\n display: block;\n overflow: hidden;\n height: 500px;\n }\n\n #scroller {\n position: relative;\n height: 100%;\n overflow: auto;\n outline: none;\n margin-right: -40px;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n }\n\n #scroller.notouchscroll {\n -webkit-overflow-scrolling: auto;\n }\n\n #scroller::-webkit-scrollbar {\n display: none;\n }\n\n .buffer {\n position: absolute;\n width: var(--vaadin-infinite-scroller-buffer-width, 100%);\n box-sizing: border-box;\n padding-right: 40px;\n top: var(--vaadin-infinite-scroller-buffer-offset, 0);\n animation: fadein 0.2s;\n }\n\n @keyframes fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n </style>\n\n <div id="scroller">\n <div class="buffer"></div>\n <div class="buffer"></div>\n <div id="fullHeight"></div>\n </div>\n';class Ll extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Il.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){var e,t;return this._itemHeightVal||(t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),this.$.fullHeight.style.setProperty(e="background-position",t),t=getComputedStyle(this.$.fullHeight).getPropertyValue(e),this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(t)),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(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+2*this.bufferSize?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%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(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=2*this._initialScroll+"px",al&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){e=e?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(){var e,t,r;this._scrollDisabled||(((r=this.$.scroller.scrollTop)<this._bufferHeight||r>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset()),e=this.itemHeight+this.bufferOffset,t=r>this._buffers[1].translateY+e,r=r<this._buffers[0].translateY+e,(t||r)&&(this._translateBuffer(r),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=ta.debounce(this._debouncerScrollFinish,Zs.after(200),()=>{var e=this.$.scroller.getBoundingClientRect();this._isVisible(this._buffers[0],e)||this._isVisible(this._buffers[1],e)||(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(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=ta.debounce(this._debouncerUpdateClones,Zs.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const o=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let e=0;e<this.bufferSize;e++){var r=document.createElement("div"),i=(r.style.height=this.itemHeight+"px",r.instance={},"vaadin-infinite-scroller-item-content-"+ha++),n=document.createElement("slot");n.setAttribute("name",i),n._itemWrapper=r,t.appendChild(n),r.setAttribute("slot",i),this.appendChild(r),this._isVisible(r,o)&&this._ensureStampedInstance(r)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(t){if(!t.firstElementChild){const r=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(r).forEach(e=>{t.instance[e]=r[e]})}}_updateClones(i){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const n=i?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((e,t)=>{if(!e.updated){const r=this._firstIndex+this.bufferSize*t;[...e.children].forEach((e,t)=>{e=e._itemWrapper;i&&!this._isVisible(e,n)||this._updateElement(e.instance,r+t)}),e.updated=!0}})}_isVisible(e,t){e=e.getBoundingClientRect();return e.bottom>t.top&&e.top<t.bottom}}const Hl=document.createElement("template"),Rl=(Hl.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 270px;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n }\n </style>\n",Li(class extends Ll{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Hl.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Ml(t)}}),document.createElement("template"));Rl.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 80px;\n width: 50px;\n display: block;\n height: 100%;\n position: absolute;\n right: 0;\n transform: translateX(100%);\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n /* Center the year scroller position. */\n --vaadin-infinite-scroller-buffer-offset: 50%;\n }\n\n :host::before {\n content: '';\n display: block;\n background: transparent;\n width: 0;\n height: 0;\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n border-width: 6px;\n border-style: solid;\n border-color: transparent;\n border-left-color: #000;\n }\n </style>\n",Li(class extends Ll{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Rl.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){var t=new Date,r=new Date(t);return r.setFullYear(parseInt(e)+t.getFullYear()),r.getFullYear()}});class Bl extends c(Hs){static get is(){return"vaadin-date-picker-year"}static get template(){return Is`
2294
+ `}}function Ml(e,t){return e instanceof Date&&t instanceof Date&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Nl(e,t,r){return(!t||t<=e)&&(!r||e<=r)}function Il(r,e){return e.filter(e=>void 0!==e).reduce((e,t)=>t&&(!e||Math.abs(r.getTime()-t.getTime())<Math.abs(e.getTime()-r.getTime()))?t:e)}function Ll(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}function Hl(e){var t=new Date,r=new Date(t);return r.setDate(1),r.setMonth(parseInt(e)+t.getMonth()),r}function Rl(e){var t,e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(e);if(e)return(t=new Date(0,0)).setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}x(Ol);const Bl=document.createElement("template");Bl.innerHTML='\n <style>\n :host {\n display: block;\n overflow: hidden;\n height: 500px;\n }\n\n #scroller {\n position: relative;\n height: 100%;\n overflow: auto;\n outline: none;\n margin-right: -40px;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n }\n\n #scroller.notouchscroll {\n -webkit-overflow-scrolling: auto;\n }\n\n #scroller::-webkit-scrollbar {\n display: none;\n }\n\n .buffer {\n position: absolute;\n width: var(--vaadin-infinite-scroller-buffer-width, 100%);\n box-sizing: border-box;\n padding-right: 40px;\n top: var(--vaadin-infinite-scroller-buffer-offset, 0);\n animation: fadein 0.2s;\n }\n\n @keyframes fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n </style>\n\n <div id="scroller">\n <div class="buffer"></div>\n <div class="buffer"></div>\n <div id="fullHeight"></div>\n </div>\n';class Fl extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Bl.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){var e,t;return this._itemHeightVal||(t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),this.$.fullHeight.style.setProperty(e="background-position",t),t=getComputedStyle(this.$.fullHeight).getPropertyValue(e),this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(t)),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(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+2*this.bufferSize?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%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(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=2*this._initialScroll+"px",cl&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){e=e?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(){var e,t,r;this._scrollDisabled||(((r=this.$.scroller.scrollTop)<this._bufferHeight||r>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset()),e=this.itemHeight+this.bufferOffset,t=r>this._buffers[1].translateY+e,r=r<this._buffers[0].translateY+e,(t||r)&&(this._translateBuffer(r),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=na.debounce(this._debouncerScrollFinish,ta.after(200),()=>{var e=this.$.scroller.getBoundingClientRect();this._isVisible(this._buffers[0],e)||this._isVisible(this._buffers[1],e)||(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(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=na.debounce(this._debouncerUpdateClones,ta.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const n=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let e=0;e<this.bufferSize;e++){var r=document.createElement("div"),o=(r.style.height=this.itemHeight+"px",r.instance={},"vaadin-infinite-scroller-item-content-"+pa++),i=document.createElement("slot");i.setAttribute("name",o),i._itemWrapper=r,t.appendChild(i),r.setAttribute("slot",o),this.appendChild(r),this._isVisible(r,n)&&this._ensureStampedInstance(r)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(t){if(!t.firstElementChild){const r=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(r).forEach(e=>{t.instance[e]=r[e]})}}_updateClones(o){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const i=o?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((e,t)=>{if(!e.updated){const r=this._firstIndex+this.bufferSize*t;[...e.children].forEach((e,t)=>{e=e._itemWrapper;o&&!this._isVisible(e,i)||this._updateElement(e.instance,r+t)}),e.updated=!0}})}_isVisible(e,t){e=e.getBoundingClientRect();return e.bottom>t.top&&e.top<t.bottom}}const zl=document.createElement("template"),Yl=(zl.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 270px;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n }\n </style>\n",x(class extends Fl{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(zl.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Hl(t)}}),document.createElement("template"));Yl.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 80px;\n width: 50px;\n display: block;\n height: 100%;\n position: absolute;\n right: 0;\n transform: translateX(100%);\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n /* Center the year scroller position. */\n --vaadin-infinite-scroller-buffer-offset: 50%;\n }\n\n :host::before {\n content: '';\n display: block;\n background: transparent;\n width: 0;\n height: 0;\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n border-width: 6px;\n border-style: solid;\n border-color: transparent;\n border-left-color: #000;\n }\n </style>\n",x(class extends Fl{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Yl.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){var t=new Date,r=new Date(t);return r.setFullYear(parseInt(e)+t.getFullYear()),r.getFullYear()}});class Ul extends Ri(Fs){static get is(){return"vaadin-date-picker-year"}static get template(){return Rs`
1922
2295
  <style>
1923
2296
  :host {
1924
2297
  display: block;
@@ -1927,7 +2300,7 @@
1927
2300
  </style>
1928
2301
  <div part="year-number">[[year]]</div>
1929
2302
  <div part="year-separator" aria-hidden="true"></div>
1930
- `}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===(new Date).getFullYear())}}function Fl(e,t,r,i,n){let o;n=(i=n&&(o="object"==typeof r&&null!==r)?e.__dataTemp[t]:i)!==r&&(i==i||r==r);return o&&n&&(e.__dataTemp[t]=r),n}Li(Bl);n=T(e=>class extends e{_shouldPropertyChange(e,t,r){return Fl(this,e,t,r,!0)}}),m=T(e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,r){return Fl(this,e,t,r,this.mutableData)}});n._mutablePropertyChange=Fl;let Yl=null;function zl(){return Yl}zl.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:zl,writable:!0}});const Ul=Ts(zl),$l=n(Ul);class jl extends Ts(class{}){constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);var t=[];this.children=t;for(let e=this.root.firstChild;e;e=e.nextSibling)t.push(e),e.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);var r=this.__templatizeOptions;(e&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var r in e)this._setPendingProperty(r,e[r])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,r){var i;this._methodHost&&this.__templatizeOptions.parentModel?this._methodHost._addEventListenerToNode(e,t,e=>{e.model=this,r(e)}):(i=this.__dataHost.__dataHost)&&i._addEventListenerToNode(e,t,r)}_showHideChildren(e){var t=e,r=this.children;for(let e=0;e<r.length;e++){var i=r[e];if(Boolean(t)!=Boolean(i.__hideTemplateChildren__))if(i.nodeType===Node.TEXT_NODE)t?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if("slot"===i.localName)if(t)i.__polymerReplaced__=document.createComment("hidden-slot"),D(D(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const t=i.__polymerReplaced__;t&&D(D(t).parentNode).replaceChild(i,t)}else i.style&&(t?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=t,i._showHideChildren&&i._showHideChildren(t)}}_setUnmanagedPropertyToNode(e,t,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,t,r)}get parentModel(){let e=this.__parentModel;if(!e){var t;for(e=this;(t=(e=e.__dataHost.__dataHost).__templatizeOptions)&&!t.parentModel;);this.__parentModel=e}return e}dispatchEvent(e){return!0}}jl.prototype.__dataHost,jl.prototype.__templatizeOptions,jl.prototype._methodHost,jl.prototype.__templatizeOwner,jl.prototype.__hostProps;const Vl=n(jl);function Wl(e){e=e.__dataHost;return e&&e._methodHost||e}function Gl(e,t,r){let i=r.mutableData?Vl:jl;var n,o=class extends(i=Kl.mixin?Kl.mixin(i):i){},s=(o.prototype.__templatizeOptions=r,o.prototype._bindTemplate(e),o),a=t,l=r,h=a.hostProps||{};for(n in l.instanceProps){delete h[n];var u=l.notifyInstanceProp;u&&s.prototype._addPropertyEffect(n,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(i){return function(e,t,r){i.call(e.__templatizeOwner,e,t,r[t])}}((n,u))})}if(l.forwardHostProp&&e.__dataHost)for(var c in h)a.hasHostProps||(a.hasHostProps=!0),s.prototype._addPropertyEffect(c,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,r){e.__dataHost._setPendingPropertyOrPath("_host_"+t,r[t],!0,!0)}});return o}function ql(t,r,i,n){var o=i.forwardHostProp;if(o&&r.hasHostProps){var s,a="template"==t.localName;let e=r.templatizeTemplateClass;if(!e){if(a){class n extends(i.mutableData?$l:Ul){}e=r.templatizeTemplateClass=n}else{const i=t.constructor;class n extends i{}e=r.templatizeTemplateClass=n}for(s in r.hostProps)e.prototype._addPropertyEffect("_host_"+s,e.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:function(i){return function(e,t,r){i.call(e.__templatizeOwner,t.substring(6),r[t])}}((s,o))}),e.prototype._createNotifyingProperty("_host_"+s);if(Xn&&n){var l=i;const c=n.constructor._properties,d=r["propertyEffects"],p=l["instanceProps"];for(var h in d)if(!(c[h]||p&&p[h])){const l=d[h];for(let e=0;e<l.length;e++){const c=l[e].info["part"];if(!c.signature||!c.signature.static){console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),a)i=t,n=e,Yl=i,Object.setPrototypeOf(i,n.prototype),new n,Yl=null,t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,e.prototype);const i=r.hostProps;for(var u in i)if(u="_host_"+u,u in t){const i=t[u];delete t[u],t.__data[u]=i}}}}function Kl(e,t,r){if(Gn&&!Wl(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(r=r||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");let i=((e.__templatizeOwner=t)?t.constructor:jl)._parseTemplate(e),n=i.templatizeInstanceClass;n||(n=Gl(e,i,r),i.templatizeInstanceClass=n);var o=Wl(e),r=(ql(e,i,r,o),class extends n{});return r.prototype._methodHost=o,r.prototype.__dataHost=e,r.prototype.__templatizeOwner=t,r.prototype.__hostProps=i.hostProps,r}class Xl{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Zl.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Zl.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(e,t,r){return e instanceof Xl?e._cancelAsync():e=new Xl,e.setConfig(t,r),e}}let Zl=new Set;function Jl(){for(var e,t;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=void 0,t=Boolean(Zl.size),Zl.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e||t;);}let Ql=!1;class eh extends m(Hs){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:!ro,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 e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Kn&&!$n?Ql||(Ql=!0,(e=document.createElement("style")).textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)):this.style.display="none",this.__isDetached){this.__isDetached=!1;var t=D(D(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}var e}__ensureTemplatized(){if(!this.__ctor){var e=this.template=this._templateInfo?this:this.querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}var t={};t[this.as]=!0,t[this.indexAs]=!0,t[this.itemsIndexAs]=!0,this.__ctor=Kl(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:t,forwardHostProp:function(r,i){var n=this.__instances;for(let e,t=0;t<n.length&&(e=n[t]);t++)e.forwardHostProp(r,i)},notifyInstanceProp:function(e,t,r){var i,n;((i=this.as)===(n=t)||wo(i,n)||xo(i,n))&&(i=e[this.itemsIndexAs],t==this.as&&(this.items[i]=r),n=Eo(this.as,JSCompiler_renameProperty("items",this)+"."+i,t),this.notifyPath(n,r))}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(r){if("string"!=typeof r)return r;{let e=r,t=this.__getMethodHost();return function(){return t[e].apply(t,arguments)}}}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn)if(t){if(this.__observePaths){var r=this.__observePaths;for(let e=0;e<r.length;e++)0===t.indexOf(r[e])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=Xl.debounce(this.__renderDebouncer,0<t?Bo.after(t):Fo,e.bind(this)),t=this.__renderDebouncer,Zl.add(t)}render(){this.__debounceRender(this.__render),Jl()}__render(){var e,t,r;this.__ensureTemplatized()&&(e=this.items||[],t=this.__sortAndFilterItems(e),r=this.__calculateLimit(t.length),this.__updateInstances(e,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),ro&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})))}__sortAndFilterItems(i){let t=new Array(i.length);for(let e=0;e<i.length;e++)t[e]=e;return this.__filterFn&&(t=t.filter((e,t,r)=>this.__filterFn(i[e],t,r))),this.__sortFn&&t.sort((e,t)=>this.__sortFn(i[e],i[t])),t}__calculateLimit(t){let r=t;var i=this.__instances.length;if(this.initialCount){let e;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(r=Math.min(t,this.initialCount),e=Math.max(r-i,0),this.__chunkCount=e||1):(e=Math.min(Math.max(t-i,0),this.__chunkCount),r=Math.min(i+e,t)),this.__shouldMeasureChunk=e===this.__chunkCount,this.__shouldContinueChunking=r<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,r}__continueChunking(){var e;this.__shouldMeasureChunk&&(e=performance.now()-this.__renderStartTime,e=this._targetFrameTime/e,this.__chunkCount=Math.round(this.__chunkCount*e)||1),this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,r){var i=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){var o=this.__instances[n],s=r[n],a=e[s];i[s]=n,o?(o._setPendingProperty(this.as,a),o._setPendingProperty(this.indexAs,n),o._setPendingProperty(this.itemsIndexAs,s),o._flushProperties()):this.__insertInstance(a,n,s)}for(let e=this.__instances.length-1;e>=n;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){var t=this.__instances[e],r=D(t.root);for(let e=0;e<t.children.length;e++){var i=t.children[e];r.appendChild(i)}return t}__attachInstance(e,t){e=this.__instances[e];t.insertBefore(e.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,r){var i={};return i[this.as]=e,i[this.indexAs]=t,i[this.itemsIndexAs]=r,new this.__ctor(i)}__insertInstance(e,t,r){e=this.__stampInstance(e,t,r),r=this.__instances[t+1],r=r?r.children[0]:this;return D(D(this).parentNode).insertBefore(e.root,r),this.__instances[t]=e}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(e,t){var e=e.slice(6),r=e.indexOf("."),i=r<0?e:e.substring(0,r);if(i==parseInt(i,10))return e=r<0?"":e.substring(r+1),this.__handleObservedPaths(e),r=this.__itemsIdxToInstIdx[i],(i=this.__instances[r])&&(r=this.as+(e?"."+e:""),i._setPendingPropertyOrPath(r,t,!1,!0),i._flushProperties()),!0}itemForElement(e){e=this.modelForElement(e);return e&&e[this.as]}indexForElement(e){e=this.modelForElement(e);return e&&e[this.indexAs]}modelForElement(e){for(var t,r=this.template,i=e;i;)if(t=i.__dataHost?i:i.__templatizeInstance){if(t.__dataHost==r)return t;i=t.__dataHost}else i=D(i).parentNode;return null}}customElements.define(eh.is,eh);g=e=>class extends Za(e){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>Dl(e.date,this.focusedDate))}ready(){super.ready(),Ha(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,r){var i=new Date(0,0),n=(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1),new Date(0,0));return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),!(t&&r&&t.getMonth()===r.getMonth()&&t.getMonth()===e.getMonth()&&0<=r.getDate()-t.getDate()||Pl(i,t,r)||Pl(n,t,r))}_getTitle(e,t){if(void 0!==e&&void 0!==t)return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(void 0!==e&&void 0!==t)return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(void 0===e||void 0===t)return[];const{weekdays:r,weekdaysShort:i,firstDayOfWeek:n}=e,o=this._applyFirstDayOfWeek(i,n);return this._applyFirstDayOfWeek(r,n).map((e,t)=>({weekDay:e,weekDayShort:o[t]}))}__focusedDateChanged(t,e){Array.isArray(e)&&e.some(e=>Dl(e,t))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&1===t.firstDayOfWeek}_isToday(e){return Dl(new Date,e)}_getDays(e,t){if(void 0===e||void 0===t)return[];var r=new Date(0,0);for(r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);r.getDay()!==t.firstDayOfWeek;)this._dateAdd(r,-1);for(var i=[],n=r.getMonth(),o=e.getMonth();r.getMonth()===o||r.getMonth()===n;)i.push(r.getMonth()===o?new Date(r.getTime()):null),this._dateAdd(r,1);return i}_getWeeks(e){return e.reduce((e,t,r)=>(r%7==0&&e.push([]),e[e.length-1].push(t),e),[])}_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(t){t=t.reduce((e,t)=>!e&&t?t:e);{let e=t.getDay();var r=4-(e=0===e?7:e),t=new Date(t.getTime()+24*r*3600*1e3),r,t=((r=new Date(0,0)).setFullYear(t.getFullYear()),t.getTime()-r.getTime()),r=Math.round(t/864e5);return Math.floor(r/7+1)}}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, `+this.i18n.weekdays[e.getDay()];return this._isToday(e)&&(t+=", "+this.i18n.today),t}};S("vaadin-month-calendar",E`
2303
+ `}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===(new Date).getFullYear())}}function $l(e,t,r,o,i){let n;i=(o=i&&(n="object"==typeof r&&null!==r)?e.__dataTemp[t]:o)!==r&&(o==o||r==r);return n&&i&&(e.__dataTemp[t]=r),i}x(Ul);d=C(e=>class extends e{_shouldPropertyChange(e,t,r){return $l(this,e,t,r,!0)}}),m=C(e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,r){return $l(this,e,t,r,this.mutableData)}});d._mutablePropertyChange=$l;let jl=null;function Vl(){return jl}Vl.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Vl,writable:!0}});const Wl=Ps(Vl),Gl=d(Wl);class ql extends Ps(class{}){constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);var t=[];this.children=t;for(let e=this.root.firstChild;e;e=e.nextSibling)t.push(e),e.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);var r=this.__templatizeOptions;(e&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var r in e)this._setPendingProperty(r,e[r])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,r){var o;this._methodHost&&this.__templatizeOptions.parentModel?this._methodHost._addEventListenerToNode(e,t,e=>{e.model=this,r(e)}):(o=this.__dataHost.__dataHost)&&o._addEventListenerToNode(e,t,r)}_showHideChildren(e){var t=e,r=this.children;for(let e=0;e<r.length;e++){var o=r[e];if(Boolean(t)!=Boolean(o.__hideTemplateChildren__))if(o.nodeType===Node.TEXT_NODE)t?(o.__polymerTextContent__=o.textContent,o.textContent=""):o.textContent=o.__polymerTextContent__;else if("slot"===o.localName)if(t)o.__polymerReplaced__=document.createComment("hidden-slot"),D(D(o).parentNode).replaceChild(o.__polymerReplaced__,o);else{const t=o.__polymerReplaced__;t&&D(D(t).parentNode).replaceChild(o,t)}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)}}_setUnmanagedPropertyToNode(e,t,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,t,r)}get parentModel(){let e=this.__parentModel;if(!e){var t;for(e=this;(t=(e=e.__dataHost.__dataHost).__templatizeOptions)&&!t.parentModel;);this.__parentModel=e}return e}dispatchEvent(e){return!0}}ql.prototype.__dataHost,ql.prototype.__templatizeOptions,ql.prototype._methodHost,ql.prototype.__templatizeOwner,ql.prototype.__hostProps;const Kl=d(ql);function Xl(e){e=e.__dataHost;return e&&e._methodHost||e}function Zl(e,t,r){let o=r.mutableData?Kl:ql;var i,n=class extends(o=Ql.mixin?Ql.mixin(o):o){},s=(n.prototype.__templatizeOptions=r,n.prototype._bindTemplate(e),n),a=t,l=r,h=a.hostProps||{};for(i in l.instanceProps){delete h[i];var u=l.notifyInstanceProp;u&&s.prototype._addPropertyEffect(i,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(o){return function(e,t,r){o.call(e.__templatizeOwner,e,t,r[t])}}((i,u))})}if(l.forwardHostProp&&e.__dataHost)for(var c in h)a.hasHostProps||(a.hasHostProps=!0),s.prototype._addPropertyEffect(c,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,r){e.__dataHost._setPendingPropertyOrPath("_host_"+t,r[t],!0,!0)}});return n}function Jl(t,r,o,i){var n=o.forwardHostProp;if(n&&r.hasHostProps){var s,a="template"==t.localName;let e=r.templatizeTemplateClass;if(!e){if(a){class i extends(o.mutableData?Gl:Wl){}e=r.templatizeTemplateClass=i}else{const o=t.constructor;class i extends o{}e=r.templatizeTemplateClass=i}for(s in r.hostProps)e.prototype._addPropertyEffect("_host_"+s,e.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:function(o){return function(e,t,r){o.call(e.__templatizeOwner,t.substring(6),r[t])}}((s,n))}),e.prototype._createNotifyingProperty("_host_"+s);if(Qi&&i){var l=o;const c=i.constructor._properties,d=r["propertyEffects"],p=l["instanceProps"];for(var h in d)if(!(c[h]||p&&p[h])){const l=d[h];for(let e=0;e<l.length;e++){const c=l[e].info["part"];if(!c.signature||!c.signature.static){console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),a)o=t,i=e,jl=o,Object.setPrototypeOf(o,i.prototype),new i,jl=null,t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,e.prototype);const o=r.hostProps;for(var u in o)if(u="_host_"+u,u in t){const o=t[u];delete t[u],t.__data[u]=o}}}}function Ql(e,t,r){if(Xi&&!Xl(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(r=r||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");let o=((e.__templatizeOwner=t)?t.constructor:ql)._parseTemplate(e),i=o.templatizeInstanceClass;i||(i=Zl(e,o,r),o.templatizeInstanceClass=i);var n=Xl(e),r=(Jl(e,o,r,n),class extends i{});return r.prototype._methodHost=n,r.prototype.__dataHost=e,r.prototype.__templatizeOwner=t,r.prototype.__hostProps=o.hostProps,r}class eh{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,th.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),th.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(e,t,r){return e instanceof eh?e._cancelAsync():e=new eh,e.setConfig(t,r),e}}let th=new Set;function rh(){for(var e,t;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=void 0,t=Boolean(th.size),th.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e||t;);}let oh=!1;class ih extends m(Fs){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:!sn,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 e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Ji&&!Wi?oh||(oh=!0,(e=document.createElement("style")).textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)):this.style.display="none",this.__isDetached){this.__isDetached=!1;var t=D(D(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}var e}__ensureTemplatized(){if(!this.__ctor){var e=this.template=this._templateInfo?this:this.querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}var t={};t[this.as]=!0,t[this.indexAs]=!0,t[this.itemsIndexAs]=!0,this.__ctor=Ql(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:t,forwardHostProp:function(r,o){var i=this.__instances;for(let e,t=0;t<i.length&&(e=i[t]);t++)e.forwardHostProp(r,o)},notifyInstanceProp:function(e,t,r){var o,i;((o=this.as)===(i=t)||An(o,i)||Sn(o,i))&&(o=e[this.itemsIndexAs],t==this.as&&(this.items[o]=r),i=Tn(this.as,JSCompiler_renameProperty("items",this)+"."+o,t),this.notifyPath(i,r))}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(r){if("string"!=typeof r)return r;{let e=r,t=this.__getMethodHost();return function(){return t[e].apply(t,arguments)}}}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn)if(t){if(this.__observePaths){var r=this.__observePaths;for(let e=0;e<r.length;e++)0===t.indexOf(r[e])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=eh.debounce(this.__renderDebouncer,0<t?Yn.after(t):Un,e.bind(this)),t=this.__renderDebouncer,th.add(t)}render(){this.__debounceRender(this.__render),rh()}__render(){var e,t,r;this.__ensureTemplatized()&&(e=this.items||[],t=this.__sortAndFilterItems(e),r=this.__calculateLimit(t.length),this.__updateInstances(e,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),sn&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})))}__sortAndFilterItems(o){let t=new Array(o.length);for(let e=0;e<o.length;e++)t[e]=e;return this.__filterFn&&(t=t.filter((e,t,r)=>this.__filterFn(o[e],t,r))),this.__sortFn&&t.sort((e,t)=>this.__sortFn(o[e],o[t])),t}__calculateLimit(t){let r=t;var o=this.__instances.length;if(this.initialCount){let e;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(r=Math.min(t,this.initialCount),e=Math.max(r-o,0),this.__chunkCount=e||1):(e=Math.min(Math.max(t-o,0),this.__chunkCount),r=Math.min(o+e,t)),this.__shouldMeasureChunk=e===this.__chunkCount,this.__shouldContinueChunking=r<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,r}__continueChunking(){var e;this.__shouldMeasureChunk&&(e=performance.now()-this.__renderStartTime,e=this._targetFrameTime/e,this.__chunkCount=Math.round(this.__chunkCount*e)||1),this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,r){var o=this.__itemsIdxToInstIdx={};let i;for(i=0;i<t;i++){var n=this.__instances[i],s=r[i],a=e[s];o[s]=i,n?(n._setPendingProperty(this.as,a),n._setPendingProperty(this.indexAs,i),n._setPendingProperty(this.itemsIndexAs,s),n._flushProperties()):this.__insertInstance(a,i,s)}for(let e=this.__instances.length-1;e>=i;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){var t=this.__instances[e],r=D(t.root);for(let e=0;e<t.children.length;e++){var o=t.children[e];r.appendChild(o)}return t}__attachInstance(e,t){e=this.__instances[e];t.insertBefore(e.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,r){var o={};return o[this.as]=e,o[this.indexAs]=t,o[this.itemsIndexAs]=r,new this.__ctor(o)}__insertInstance(e,t,r){e=this.__stampInstance(e,t,r),r=this.__instances[t+1],r=r?r.children[0]:this;return D(D(this).parentNode).insertBefore(e.root,r),this.__instances[t]=e}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(e,t){var e=e.slice(6),r=e.indexOf("."),o=r<0?e:e.substring(0,r);if(o==parseInt(o,10))return e=r<0?"":e.substring(r+1),this.__handleObservedPaths(e),r=this.__itemsIdxToInstIdx[o],(o=this.__instances[r])&&(r=this.as+(e?"."+e:""),o._setPendingPropertyOrPath(r,t,!1,!0),o._flushProperties()),!0}itemForElement(e){e=this.modelForElement(e);return e&&e[this.as]}indexForElement(e){e=this.modelForElement(e);return e&&e[this.indexAs]}modelForElement(e){for(var t,r=this.template,o=e;o;)if(t=o.__dataHost?o:o.__templatizeInstance){if(t.__dataHost==r)return t;o=t.__dataHost}else o=D(o).parentNode;return null}}customElements.define(ih.is,ih);or=e=>class extends tl(e){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>Ml(e.date,this.focusedDate))}ready(){super.ready(),za(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,r){var o=new Date(0,0),i=(o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1),new Date(0,0));return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()+1),i.setDate(0),!(t&&r&&t.getMonth()===r.getMonth()&&t.getMonth()===e.getMonth()&&0<=r.getDate()-t.getDate()||Nl(o,t,r)||Nl(i,t,r))}_getTitle(e,t){if(void 0!==e&&void 0!==t)return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(void 0!==e&&void 0!==t)return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(void 0===e||void 0===t)return[];const{weekdays:r,weekdaysShort:o,firstDayOfWeek:i}=e,n=this._applyFirstDayOfWeek(o,i);return this._applyFirstDayOfWeek(r,i).map((e,t)=>({weekDay:e,weekDayShort:n[t]}))}__focusedDateChanged(t,e){Array.isArray(e)&&e.some(e=>Ml(e,t))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&1===t.firstDayOfWeek}_isToday(e){return Ml(new Date,e)}_getDays(e,t){if(void 0===e||void 0===t)return[];var r=new Date(0,0);for(r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);r.getDay()!==t.firstDayOfWeek;)this._dateAdd(r,-1);for(var o=[],i=r.getMonth(),n=e.getMonth();r.getMonth()===n||r.getMonth()===i;)o.push(r.getMonth()===n?new Date(r.getTime()):null),this._dateAdd(r,1);return o}_getWeeks(e){return e.reduce((e,t,r)=>(r%7==0&&e.push([]),e[e.length-1].push(t),e),[])}_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(t){t=t.reduce((e,t)=>!e&&t?t:e);{let e=t.getDay();var r=4-(e=0===e?7:e),t=new Date(t.getTime()+24*r*3600*1e3),r,t=((r=new Date(0,0)).setFullYear(t.getFullYear()),t.getTime()-r.getTime()),r=Math.round(t/864e5);return Math.floor(r/7+1)}}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, `+this.i18n.weekdays[e.getDay()];return this._isToday(e)&&(t+=", "+this.i18n.today),t}};S("vaadin-month-calendar",E`
1931
2304
  :host {
1932
2305
  display: block;
1933
2306
  }
@@ -1983,7 +2356,7 @@
1983
2356
  outline: 3px solid;
1984
2357
  }
1985
2358
  }
1986
- `,{moduleId:"vaadin-month-calendar-styles"});class th extends g(c(Hs)){static get template(){return Is`
2359
+ `,{moduleId:"vaadin-month-calendar-styles"});class nh extends or(Ri(Fs)){static get template(){return Rs`
1987
2360
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
1988
2361
  <table
1989
2362
  id="monthGrid"
@@ -2025,7 +2398,7 @@
2025
2398
  </template>
2026
2399
  </tbody>
2027
2400
  </table>
2028
- `}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(e,t){e&&t&&1===t.firstDayOfWeek?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,r,i,n){var o=["date"];return this.__isDayDisabled(e,i,n)&&o.push("disabled"),this.__isDayFocused(e,t)&&o.push("focused"),this.__isDaySelected(e,r)&&o.push("selected"),this._isToday(e)&&o.push("today"),o.join(" ")}__isDayFocused(e,t){return Dl(e,t)}__isDaySelected(e,t){return Dl(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,r){return!Pl(e,t,r)}__getDayAriaDisabled(e,t,r){return void 0!==e&&void 0!==t&&void 0!==r&&this.__isDayDisabled(e,t,r)?"true":void 0}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}Li(th);class rh{constructor(e,t){this.query=e,this.callback=t,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(e){"function"==typeof this.callback&&this.callback(e.matches)}}a=e=>class extends e{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Ba(this.$.scrollers,"pan-y"),Ha(this.$.scrollers,"track",this._track.bind(this)),Ha(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ha(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ha(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new rh(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new ua(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",e=>this.__onTodayButtonKeyDown(e)),Ha(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new ua(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",e=>this.__onCancelButtonKeyDown(e)),Ha(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,t){var r=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+r,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new ua(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",e=>{this.__onMonthCalendarKeyDown(e)}),e.addEventListener("init-done",()=>{var e=[...this.querySelectorAll("vaadin-month-calendar")];e.forEach(e=>{e.addEventListener("selected-date-changed",e=>{this.selectedDate=e.detail.value})}),this.calendars=e}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new ua(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Ha(e,"tap",e=>{this._onYearTap(e)}),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,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,r,i){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(r,i))}__updateCalendars(e,t,r,i,n,o,s,a,l){e&&e.length&&e.forEach(e=>{e.i18n=t,e.minDate=r,e.maxDate=i,e.focusedDate=o,e.selectedDate=n,e.showWeekNumbers=s,e.ignoreTaps=a,l?e.setAttribute("theme",l):e.removeAttribute("theme")})}__updateYears(e,t,r){e&&e.length&&e.forEach(e=>{e.selectedDate=t,r?e.setAttribute("theme",r):e.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,t=!0){if(e){var r=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const i=this._calculateWeekScrollOffset(e);void this._scrollToPosition(r+i,t)}else{const i=this._monthScroller.position>r,n=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-2*this._monthScroller.bufferOffset)/this._monthScroller.itemHeight,o=this._monthScroller.position+n-1<r;i?this._scrollToPosition(r,t):o&&this._scrollToPosition(r-n+1,t)}}}_calculateWeekScrollOffset(e){var t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let r=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(r+=1);return r/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){var e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=12*this._yearScroller.position-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=ta.debounce(this._debouncer,Zs.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,r){return e&&t&&"function"==typeof t.formatDate?t.formatDate(Ol(e)):r}_onTodayTap(){var 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){this._ignoreTaps||this._notTapping||(e=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight,this._scrollToPosition(this._monthScroller.position+12*e,!0))}_scrollToPosition(e,t){if(void 0!==this._targetPosition)this._targetPosition=e;else if(t){let o,s=(this._targetPosition=e,this._revealPromise=new Promise(e=>{o=e}),0);const a=this._monthScroller.position,l=e=>{var t,r,i,n=e-(s=s||e);if(n<this.scrollDuration){n=n,t=a,r=this._targetPosition-a,i=this.scrollDuration;const e=(n/=i/2)<1?r/2*n*n+t:-r/2*(--n*(n-2)-1)+t;this._monthScroller.position=e,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,o(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}else this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate()}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){Math.abs(e.detail.dx)<10||10<Math.abs(e.detail.ddy)||(Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),e=this._translateX+e.detail.ddx,this._translateX=this._limit(e,{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()}}_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 Ml(e).getFullYear()}_differenceInMonths(e,t){return 12*(e.getFullYear()-t.getFullYear())-t.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){Dl(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),t=!0;break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar")}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){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())}}__onTodayButtonKeyDown(e){"Tab"===e.key&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){"Tab"===e.key&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){var e;this.__pendingDateFocus&&(e=this.focusableDateElement)&&Dl(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}async focusDate(e,t){e=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=e,t||(this._focusedMonthDate=e.getDate()),await this.focusDateElement(!1)}async focusDateElement(e=!0){this.__pendingDateFocus=this.focusedDate,this.calendars.length||await new Promise(e=>{sl(this,()=>{Jl(),e()})}),e&&this.revealDate(this.focusedDate),this._revealPromise&&await this._revealPromise,this.__tryFocusDate()}_focusClosestDate(e){this.focusDate(kl(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,r){this._dateAllowed(e)?this.focusDate(e,r):this._dateAllowed(this.focusedDate)?0<t?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){var r=new Date(0,0);return r.setFullYear(this.focusedDate.getFullYear()),r.setMonth(this.focusedDate.getMonth()+e),t&&r.setDate(this.focusedDate.getDate()+t),r}_moveFocusByDays(e){var t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){var t=this._getDateDiff(e),r=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==r&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){var r=new Date(0,0);r.setFullYear(e.getFullYear()),"minDate"===t?(r.setMonth(e.getMonth()),r.setDate(1)):(r.setMonth(e.getMonth()+1),r.setDate(0)),this._dateAllowed(r)?this.focusDate(r):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,r=this.maxDate){return(!t||t<=e)&&(!r||e<=r)}_isTodayAllowed(e,t){var r=new Date,i=new Date(0,0);return i.setFullYear(r.getFullYear()),i.setMonth(r.getMonth()),i.setDate(r.getDate()),this._dateAllowed(i,e,t)}};S("vaadin-date-picker-overlay-content",E`
2401
+ `}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(e,t){e&&t&&1===t.firstDayOfWeek?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,r,o,i){var n=["date"];return this.__isDayDisabled(e,o,i)&&n.push("disabled"),this.__isDayFocused(e,t)&&n.push("focused"),this.__isDaySelected(e,r)&&n.push("selected"),this._isToday(e)&&n.push("today"),n.join(" ")}__isDayFocused(e,t){return Ml(e,t)}__isDaySelected(e,t){return Ml(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,r){return!Nl(e,t,r)}__getDayAriaDisabled(e,t,r){return void 0!==e&&void 0!==t&&void 0!==r&&this.__isDayDisabled(e,t,r)?"true":void 0}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}x(nh);class sh{constructor(e,t){this.query=e,this.callback=t,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(e){"function"==typeof this.callback&&this.callback(e.matches)}}p=e=>class extends e{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Ua(this.$.scrollers,"pan-y"),za(this.$.scrollers,"track",this._track.bind(this)),za(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),za(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),za(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new sh(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new ma(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",e=>this.__onTodayButtonKeyDown(e)),za(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new ma(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",e=>this.__onCancelButtonKeyDown(e)),za(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,t){var r=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+r,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new ma(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",e=>{this.__onMonthCalendarKeyDown(e)}),e.addEventListener("init-done",()=>{var e=[...this.querySelectorAll("vaadin-month-calendar")];e.forEach(e=>{e.addEventListener("selected-date-changed",e=>{this.selectedDate=e.detail.value})}),this.calendars=e}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new ma(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),za(e,"tap",e=>{this._onYearTap(e)}),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,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,r,o){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(r,o))}__updateCalendars(e,t,r,o,i,n,s,a,l){e&&e.length&&e.forEach(e=>{e.i18n=t,e.minDate=r,e.maxDate=o,e.focusedDate=n,e.selectedDate=i,e.showWeekNumbers=s,e.ignoreTaps=a,l?e.setAttribute("theme",l):e.removeAttribute("theme")})}__updateYears(e,t,r){e&&e.length&&e.forEach(e=>{e.selectedDate=t,r?e.setAttribute("theme",r):e.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,t=!0){if(e){var r=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const o=this._calculateWeekScrollOffset(e);void this._scrollToPosition(r+o,t)}else{const o=this._monthScroller.position>r,i=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-2*this._monthScroller.bufferOffset)/this._monthScroller.itemHeight,n=this._monthScroller.position+i-1<r;o?this._scrollToPosition(r,t):n&&this._scrollToPosition(r-i+1,t)}}}_calculateWeekScrollOffset(e){var t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let r=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(r+=1);return r/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){var e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=12*this._yearScroller.position-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=na.debounce(this._debouncer,ta.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,r){return e&&t&&"function"==typeof t.formatDate?t.formatDate(Ll(e)):r}_onTodayTap(){var 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){this._ignoreTaps||this._notTapping||(e=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight,this._scrollToPosition(this._monthScroller.position+12*e,!0))}_scrollToPosition(e,t){if(void 0!==this._targetPosition)this._targetPosition=e;else if(t){let n,s=(this._targetPosition=e,this._revealPromise=new Promise(e=>{n=e}),0);const a=this._monthScroller.position,l=e=>{var t,r,o,i=e-(s=s||e);if(i<this.scrollDuration){i=i,t=a,r=this._targetPosition-a,o=this.scrollDuration;const e=(i/=o/2)<1?r/2*i*i+t:-r/2*(--i*(i-2)-1)+t;this._monthScroller.position=e,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,n(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}else this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate()}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){Math.abs(e.detail.dx)<10||10<Math.abs(e.detail.ddy)||(Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),e=this._translateX+e.detail.ddx,this._translateX=this._limit(e,{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()}}_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 Hl(e).getFullYear()}_differenceInMonths(e,t){return 12*(e.getFullYear()-t.getFullYear())-t.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){Ml(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),t=!0;break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar")}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){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())}}__onTodayButtonKeyDown(e){"Tab"===e.key&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){"Tab"===e.key&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){var e;this.__pendingDateFocus&&(e=this.focusableDateElement)&&Ml(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}async focusDate(e,t){e=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=e,t||(this._focusedMonthDate=e.getDate()),await this.focusDateElement(!1)}async focusDateElement(e=!0){this.__pendingDateFocus=this.focusedDate,this.calendars.length||await new Promise(e=>{ul(this,()=>{rh(),e()})}),e&&this.revealDate(this.focusedDate),this._revealPromise&&await this._revealPromise,this.__tryFocusDate()}_focusClosestDate(e){this.focusDate(Il(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,r){this._dateAllowed(e)?this.focusDate(e,r):this._dateAllowed(this.focusedDate)?0<t?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){var r=new Date(0,0);return r.setFullYear(this.focusedDate.getFullYear()),r.setMonth(this.focusedDate.getMonth()+e),t&&r.setDate(this.focusedDate.getDate()+t),r}_moveFocusByDays(e){var t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){var t=this._getDateDiff(e),r=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==r&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){var r=new Date(0,0);r.setFullYear(e.getFullYear()),"minDate"===t?(r.setMonth(e.getMonth()),r.setDate(1)):(r.setMonth(e.getMonth()+1),r.setDate(0)),this._dateAllowed(r)?this.focusDate(r):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,r=this.maxDate){return(!t||t<=e)&&(!r||e<=r)}_isTodayAllowed(e,t){var r=new Date,o=new Date(0,0);return o.setFullYear(r.getFullYear()),o.setMonth(r.getMonth()),o.setDate(r.getDate()),this._dateAllowed(o,e,t)}};S("vaadin-date-picker-overlay-content",E`
2029
2402
  :host {
2030
2403
  display: flex;
2031
2404
  flex-direction: column;
@@ -2085,7 +2458,7 @@
2085
2458
  z-index: 2;
2086
2459
  flex-shrink: 0;
2087
2460
  }
2088
- `,{moduleId:"vaadin-date-picker-overlay-content-styles"});class ih extends a(Us(c(Ys(Hs)))){static get template(){return Is`
2461
+ `,{moduleId:"vaadin-date-picker-overlay-content-styles"});class ah extends p(Ws(Ri($s(Fs)))){static get template(){return Rs`
2089
2462
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
2090
2463
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
2091
2464
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -2105,7 +2478,7 @@
2105
2478
  <slot name="today-button"></slot>
2106
2479
  <slot name="cancel-button"></slot>
2107
2480
  </div>
2108
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}Li(ih);const nh=T(e=>class extends Za(Ja(e)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_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,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){void 0!==e&&this.focusElement&&-1!==(this.focusElement.tabIndex=e)&&(this.tabindex=void 0),this.disabled&&e&&(-1!==e&&(this._lastTabIndex=e),this.tabindex=void 0)}}),oh=new WeakMap,sh=T(e=>class extends e{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const n=this.getRootNode(),o=(e=n,oh.has(e)||oh.set(e,new Set),oh.get(e));var e;this.slotStyles.forEach(e=>{var t,r,i;o.has(e)||(t=e,r=n,(i=document.createElement("style")).textContent=t,r===document?document.head.appendChild(i):r.insertBefore(i,r.firstChild),o.add(e))})}}),ah=T(e=>class extends e{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==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=null!=e?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){var t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),""===e&&void 0===t||this.__userInput||this._forwardInputValue(e)}_setHasInputValue(e){e=e.composedPath()[0];this._hasInputValue=0<e.value.length}}),lh=new Map;function hh(e){return lh.has(e)||lh.set(e,new WeakMap),lh.get(e)}function uh(e,t){e&&e.removeAttribute(t)}function ch(e,t){var r;e&&t&&((r=hh(t)).has(e)||(t=oa(e.getAttribute(t)),r.set(e,new Set(t))))}function dh(e,t,r={newId:null,oldId:null,fromUser:!1}){if(e&&t){var i,{newId:r,oldId:n,fromUser:o}=r,s=hh(t),a=s.get(e);if(!o&&a)return n&&a.delete(n),r&&a.add(r);o&&(a?r||s.delete(e):ch(e,t),uh(e,t)),o=t,s=n,(i=oa((n=e).getAttribute(o))).delete(s),0!==i.size?n.setAttribute(o,sa(i)):n.removeAttribute(o);s=r||sa(a);s&&aa(e,t,s)}}class ph{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){var r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){var t,r,i;this.__target&&(e?(ch(r=this.__target,i="aria-labelledby"),uh(r,i),this.__target.setAttribute("aria-label",e)):this.__label&&(r=this.__target,i="aria-labelledby",r&&((t=(e=hh(i)).get(r))&&0!==t.size?aa(r,i,sa(t)):r.removeAttribute(i),e.delete(r)),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){dh(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){dh(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){dh(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){!this.__target||["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required"))}}class mh extends ua{constructor(e,t,r,i={}){super(e,t,r,{...i,useUniqueId:!0})}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){var t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){var e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(e=>{var t=e.target,r=t===this.node;"attributes"===e.type?r&&this.__updateNodeId(t):!r&&t.parentElement!==this.node||this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return!!e&&(e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||0<e.children.length)||e.textContent&&""!==e.textContent.trim())}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){var t=!this.nodes||e===this.nodes[0];e.nodeType!==Node.ELEMENT_NODE||this.multiple&&!t||e.id||(e.id=this.defaultId)}}class fh extends mh{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){var{errorMessage:t,invalid:r}=this,r=Boolean(r&&t&&""!==t.trim());e&&(e.textContent=r?t:"",e.hidden=!r,r?e.setAttribute("role","alert"):e.removeAttribute("role")),super.updateDefaultNode(e)}}class _h extends mh{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const e=this["helperText"];if(e&&""!==e.trim()){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}class yh extends mh{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const e=this["label"];if(e&&""!==e.trim()){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}const vh=T(e=>class extends Us(e){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new yh(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){var 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)}}),gh=T(e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){var 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}}),bh=T(e=>class extends e{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(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(...r){this.constructor.delegateAttrs.forEach((e,t)=>{this._delegateAttribute(e,r[t])})}_delegatePropsChanged(...r){this.constructor.delegateProps.forEach((e,t)=>{this._delegateProperty(e,r[t])})}_delegateAttribute(e,t){this.stateTarget&&("invalid"===e&&this._delegateAttribute("aria-invalid",!!t&&"true"),"boolean"==typeof t?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}}),wh=T(e=>class extends bh(gh(ah(e))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(e=>this.__isValidConstraint(e))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){e&&(e=this._hasValidConstraints(t),t=this.__previousHasConstraints&&!e,(this._hasValue||this.invalid)&&e?this.validate():t&&this._setInvalid(!1),this.__previousHasConstraints=e)}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return Boolean(e)||0===e}}),xh=e=>{return class extends sh(nh(wh((e=Wa(e),e=class extends ah(Wa(e)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),ul||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}))}},class extends gh(vh(Us(e))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new ph(this),this._helperController=new _h(this),this._errorController=new fh(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{var{hasContent:e,node:t}=e.detail;this.__labelChanged(e,t)}),this._helperController.addEventListener("slot-content-changed",e=>{var{hasContent:e,node:t}=e.detail;this.toggleAttribute("has-helper",e),this.__helperChanged(e,t)})}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,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.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 e=this._errorNode;this._fieldAriaController.setErrorId(e&&e.id)}else this._fieldAriaController.setErrorId(null)})}})))){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["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}_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=ta.debounce(this._preventInputDebouncer,Zs.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||1!==e.key.length||this.__allowedCharRegExp.test(e.key)}_onPaste(e){var t;this.allowedCharPattern&&(t=e.clipboardData.getData("text"),this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented()))}_onDrop(e){var t;this.allowedCharPattern&&(t=e.dataTransfer.getData("text"),this.__allowedTextRegExp.test(t)||(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(e){console.error(e)}}}};class Eh extends ua{constructor(e,r){super(e,"input","input",{initializer:(e,t)=>{t.value&&(e.value=t.value),t.type&&e.setAttribute("type",t.type),e.id=this.defaultId,"function"==typeof r&&r(e)},useUniqueId:!0})}}class Ah{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",e=>{this.__initLabel(e.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input)&&e.setAttribute("for",this.input.id)}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}const Sh=[E`
2481
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}x(ah);const lh=C(e=>class extends tl(rl(e)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_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,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){void 0!==e&&this.focusElement&&-1!==(this.focusElement.tabIndex=e)&&(this.tabindex=void 0),this.disabled&&e&&(-1!==e&&(this._lastTabIndex=e),this.tabindex=void 0)}}),hh=new WeakMap,uh=C(e=>class extends e{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const i=this.getRootNode(),n=(e=i,hh.has(e)||hh.set(e,new Set),hh.get(e));var e;this.slotStyles.forEach(e=>{var t,r,o;n.has(e)||(t=e,r=i,(o=document.createElement("style")).textContent=t,r===document?document.head.appendChild(o):r.insertBefore(o,r.firstChild),n.add(e))})}}),ch=C(e=>class extends e{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==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=null!=e?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){var t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),""===e&&void 0===t||this.__userInput||this._forwardInputValue(e)}_setHasInputValue(e){e=e.composedPath()[0];this._hasInputValue=0<e.value.length}}),dh=new Map;function ph(e){return dh.has(e)||dh.set(e,new WeakMap),dh.get(e)}function mh(e,t){e&&e.removeAttribute(t)}function fh(e,t){var r;e&&t&&((r=ph(t)).has(e)||(t=ha(e.getAttribute(t)),r.set(e,new Set(t))))}function _h(e,t,r={newId:null,oldId:null,fromUser:!1}){if(e&&t){var o,{newId:r,oldId:i,fromUser:n}=r,s=ph(t),a=s.get(e);if(!n&&a)return i&&a.delete(i),r&&a.add(r);n&&(a?r||s.delete(e):fh(e,t),mh(e,t)),n=t,s=i,(o=ha((i=e).getAttribute(n))).delete(s),0!==o.size?i.setAttribute(n,ua(o)):i.removeAttribute(n);s=r||ua(a);s&&ca(e,t,s)}}class yh{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){var r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){var t,r,o;this.__target&&(e?(fh(r=this.__target,o="aria-labelledby"),mh(r,o),this.__target.setAttribute("aria-label",e)):this.__label&&(r=this.__target,o="aria-labelledby",r&&((t=(e=ph(o)).get(r))&&0!==t.size?ca(r,o,ua(t)):r.removeAttribute(o),e.delete(r)),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){_h(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){_h(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){_h(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){!this.__target||["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required"))}}class vh extends ma{constructor(e,t,r,o={}){super(e,t,r,{...o,useUniqueId:!0})}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){var t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){var e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(e=>{var t=e.target,r=t===this.node;"attributes"===e.type?r&&this.__updateNodeId(t):!r&&t.parentElement!==this.node||this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return!!e&&(e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||0<e.children.length)||e.textContent&&""!==e.textContent.trim())}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){var t=!this.nodes||e===this.nodes[0];e.nodeType!==Node.ELEMENT_NODE||this.multiple&&!t||e.id||(e.id=this.defaultId)}}class gh extends vh{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){var{errorMessage:t,invalid:r}=this,r=Boolean(r&&t&&""!==t.trim());e&&(e.textContent=r?t:"",e.hidden=!r,r?e.setAttribute("role","alert"):e.removeAttribute("role")),super.updateDefaultNode(e)}}class bh extends vh{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const e=this["helperText"];if(e&&""!==e.trim()){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}class wh extends vh{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const e=this["label"];if(e&&""!==e.trim()){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}const xh=C(e=>class extends Ws(e){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new wh(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){var 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)}}),Eh=C(e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){var 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}}),Ah=C(e=>class extends e{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(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(...r){this.constructor.delegateAttrs.forEach((e,t)=>{this._delegateAttribute(e,r[t])})}_delegatePropsChanged(...r){this.constructor.delegateProps.forEach((e,t)=>{this._delegateProperty(e,r[t])})}_delegateAttribute(e,t){this.stateTarget&&("invalid"===e&&this._delegateAttribute("aria-invalid",!!t&&"true"),"boolean"==typeof t?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}}),Sh=C(e=>class extends Ah(Eh(ch(e))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(e=>this.__isValidConstraint(e))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){e&&(e=this._hasValidConstraints(t),t=this.__previousHasConstraints&&!e,(this._hasValue||this.invalid)&&e?this.validate():t&&this._setInvalid(!1),this.__previousHasConstraints=e)}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return Boolean(e)||0===e}}),Th=e=>{return class extends uh(lh(Sh((e=Xa(e),e=class extends ch(Xa(e)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),ml||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}))}},class extends Eh(xh(Ws(e))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new yh(this),this._helperController=new bh(this),this._errorController=new gh(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{var{hasContent:e,node:t}=e.detail;this.__labelChanged(e,t)}),this._helperController.addEventListener("slot-content-changed",e=>{var{hasContent:e,node:t}=e.detail;this.toggleAttribute("has-helper",e),this.__helperChanged(e,t)})}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,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.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 e=this._errorNode;this._fieldAriaController.setErrorId(e&&e.id)}else this._fieldAriaController.setErrorId(null)})}})))){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["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}_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=na.debounce(this._preventInputDebouncer,ta.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||1!==e.key.length||this.__allowedCharRegExp.test(e.key)}_onPaste(e){var t;this.allowedCharPattern&&(t=e.clipboardData.getData("text"),this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented()))}_onDrop(e){var t;this.allowedCharPattern&&(t=e.dataTransfer.getData("text"),this.__allowedTextRegExp.test(t)||(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(e){console.error(e)}}}};class Ch extends ma{constructor(e,r){super(e,"input","input",{initializer:(e,t)=>{t.value&&(e.value=t.value),t.type&&e.setAttribute("type",t.type),e.id=this.defaultId,"function"==typeof r&&r(e)},useUniqueId:!0})}}class Dh{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",e=>{this.__initLabel(e.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input)&&e.setAttribute("for",this.input.id)}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}const kh=[E`
2109
2482
  :host {
2110
2483
  display: inline-flex;
2111
2484
  outline: none;
@@ -2160,7 +2533,7 @@
2160
2533
  :host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
2161
2534
  display: block;
2162
2535
  }
2163
- `];class Ch{constructor(e){(this.host=e).addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}var Th,d=e=>{return class extends(e=Us(nh(wh(Wa(e)))),class extends e{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(t&&void 0!==e){t=t["classList"];if(this.__initialClasses||(this.__initialClasses=new Set(t)),Array.isArray(this.__previousClasses)){const e=this.__previousClasses.filter(e=>!this.__initialClasses.has(e));0<e.length&&t.remove(...e)}e="string"==typeof e?e.split(" "):[];0<e.length&&t.add(...e),this.__previousClasses=e}}}){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){var t=String(e.year).replace(/\d+/u,e=>"0000".substr(e.length)+e);return[e.month+1,e.day,t].join("/")},parseDate(e){var e=e.split("/"),t=new Date;let r,i=t.getMonth(),n=t.getFullYear();if(3===e.length?(i=parseInt(e[0])-1,r=parseInt(e[1]),n=parseInt(e[2]),e[2].length<3&&0<=n&&(n=function(e,t,r=0,i=1){if(99<t)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let n=t+100*Math.floor(e.getFullYear()/100);return e<new Date(n-50,r,i)?n-=100:e>new Date(n+50,r,i)&&(n+=100),n}(this.referenceDate?Nl(this.referenceDate):new Date,n,i,r))):2===e.length?(i=parseInt(e[0])-1,r=parseInt(e[1])):1===e.length&&(r=parseInt(e[0])),void 0!==r)return{day:r,month:i,year:n}},formatTitle:(e,t)=>e+" "+t})},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:hl},_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 rh(this._fullscreenMediaQuery,e=>{this._fullscreen=e})),this.addController(new Ch(this));var e=this.$.overlay;(this._overlayElement=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){var t;e.firstChild||(t=document.createElement("vaadin-date-picker-overlay-content"),e.appendChild(t),(this._overlayContent=t).addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",e=>{this.__userConfirmedDate=!0,this._selectDate(e.detail.date),this._close()}),t.addEventListener("date-selected",e=>{this.__userConfirmedDate=!!e.detail.date,this._selectDate(e.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focused-date-changed",e=>{this._focusedDate=e.detail.value}))}__parseDate(t){if(this.i18n.parseDate){let e=this.i18n.parseDate(t);return(e=e&&Nl(`${e.year}-${e.month+1}-`+e.day))&&!isNaN(e.getTime())?e:void 0}}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Ol(e))}checkValidity(){var e=this._inputElementValue,e=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),t=!this._selectedDate||Pl(this._selectedDate,this._minDate,this._maxDate);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),e&&t&&r}_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){var t=this.value;this._selectedDate=e,t!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,r,i,n,o){return!e||t&&(!o||n)||r&&n||!i.parseDate}_formatISO(e){if(!(e instanceof Date))return"";var t=(e,t="00")=>(t+e).substr((t+e).length-t.length);let r="",i="0000",n=e.getFullYear();return n<0?(n=-n,r="-",i="000000"):1e4<=e.getFullYear()&&(r="+",i="000000"),[r+t(n,i),t(e.getMonth()+1),t(e.getDate())].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,t){void 0!==e&&void 0!==t&&(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){void 0===e||void 0===t||this._ignoreFocusedDateChange||this._noInput||this._applyInputValue(e)}_valueChanged(e,t){var r=Nl(e);!e||r?(e?Dl(this._selectedDate,r)||(this._selectedDate=r,void 0!==t&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)):this.value=t}__updateOverlayContent(e,t,r,i,n,o,s,a){e&&(e.i18n=t,e.label=r,e.minDate=i,e.maxDate=n,e.focusedDate=o,e.selectedDate=s,e.showWeekNumbers=a)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){var e=this._overlayContent,t=(e.reset(),this._getInitialPosition()),t=(e.initialPosition=t,e.focusedDate||t),t=(e.scrollToDate(t),this._ignoreFocusedDateChange=!0,e.focusedDate=t,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus(),this._nativeInput),t=(this._noInput&&t&&(t.blur(),this._overlayContent.focusDateElement()),this._noInput?e:[t,e]);this.__showOthers=yl(t)}_getInitialPosition(){var e=Nl(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Pl(t,this._minDate,this._maxDate)?t:kl(t,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){var e;this._ignoreFocusedDateChange=!0,this.i18n.parseDate?(e=this._inputElementValue||"",(e=this.__parseDate(e))?this._selectDate(e):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)):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,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_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||-1===[9].indexOf(e.keyCode)&&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())}}_onEnter(e){var t=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),t===this.value&&this.validate()}_onEscape(e){if(!this.opened)return this.clearButtonVisible&&this.value?(e.stopPropagation(),void this._onClearButtonClick(e)):void(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(){var e;this.opened||!this._inputElementValue||this.autoOpenDisabled||this.open(),this._inputElementValue&&(e=this.__parseDate(this._inputElementValue))&&(this._ignoreFocusedDateChange=!0,Dl(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}__computeMinOrMaxDate(e){return Nl(e)}}};S("vaadin-date-picker",[Sh,E`
2536
+ `];class Ph{constructor(e){(this.host=e).addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}var Oh,i=e=>{return class extends(e=Ws(lh(Sh(Xa(e)))),class extends e{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(t&&void 0!==e){t=t["classList"];if(this.__initialClasses||(this.__initialClasses=new Set(t)),Array.isArray(this.__previousClasses)){const e=this.__previousClasses.filter(e=>!this.__initialClasses.has(e));0<e.length&&t.remove(...e)}e="string"==typeof e?e.split(" "):[];0<e.length&&t.add(...e),this.__previousClasses=e}}}){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){var t=String(e.year).replace(/\d+/u,e=>"0000".substr(e.length)+e);return[e.month+1,e.day,t].join("/")},parseDate(e){var e=e.split("/"),t=new Date;let r,o=t.getMonth(),i=t.getFullYear();if(3===e.length?(o=parseInt(e[0])-1,r=parseInt(e[1]),i=parseInt(e[2]),e[2].length<3&&0<=i&&(i=function(e,t,r=0,o=1){if(99<t)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let i=t+100*Math.floor(e.getFullYear()/100);return e<new Date(i-50,r,o)?i-=100:e>new Date(i+50,r,o)&&(i+=100),i}(this.referenceDate?Rl(this.referenceDate):new Date,i,o,r))):2===e.length?(o=parseInt(e[0])-1,r=parseInt(e[1])):1===e.length&&(r=parseInt(e[0])),void 0!==r)return{day:r,month:o,year:i}},formatTitle:(e,t)=>e+" "+t})},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:pl},_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 sh(this._fullscreenMediaQuery,e=>{this._fullscreen=e})),this.addController(new Ph(this));var e=this.$.overlay;(this._overlayElement=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){var t;e.firstChild||(t=document.createElement("vaadin-date-picker-overlay-content"),e.appendChild(t),(this._overlayContent=t).addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",e=>{this.__userConfirmedDate=!0,this._selectDate(e.detail.date),this._close()}),t.addEventListener("date-selected",e=>{this.__userConfirmedDate=!!e.detail.date,this._selectDate(e.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focused-date-changed",e=>{this._focusedDate=e.detail.value}))}__parseDate(t){if(this.i18n.parseDate){let e=this.i18n.parseDate(t);return(e=e&&Rl(`${e.year}-${e.month+1}-`+e.day))&&!isNaN(e.getTime())?e:void 0}}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Ll(e))}checkValidity(){var e=this._inputElementValue,e=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),t=!this._selectedDate||Nl(this._selectedDate,this._minDate,this._maxDate);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),e&&t&&r}_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){var t=this.value;this._selectedDate=e,t!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,r,o,i,n){return!e||t&&(!n||i)||r&&i||!o.parseDate}_formatISO(e){if(!(e instanceof Date))return"";var t=(e,t="00")=>(t+e).substr((t+e).length-t.length);let r="",o="0000",i=e.getFullYear();return i<0?(i=-i,r="-",o="000000"):1e4<=e.getFullYear()&&(r="+",o="000000"),[r+t(i,o),t(e.getMonth()+1),t(e.getDate())].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,t){void 0!==e&&void 0!==t&&(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){void 0===e||void 0===t||this._ignoreFocusedDateChange||this._noInput||this._applyInputValue(e)}_valueChanged(e,t){var r=Rl(e);!e||r?(e?Ml(this._selectedDate,r)||(this._selectedDate=r,void 0!==t&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)):this.value=t}__updateOverlayContent(e,t,r,o,i,n,s,a){e&&(e.i18n=t,e.label=r,e.minDate=o,e.maxDate=i,e.focusedDate=n,e.selectedDate=s,e.showWeekNumbers=a)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){var e=this._overlayContent,t=(e.reset(),this._getInitialPosition()),t=(e.initialPosition=t,e.focusedDate||t),t=(e.scrollToDate(t),this._ignoreFocusedDateChange=!0,e.focusedDate=t,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus(),this._nativeInput),t=(this._noInput&&t&&(t.blur(),this._overlayContent.focusDateElement()),this._noInput?e:[t,e]);this.__showOthers=wl(t)}_getInitialPosition(){var e=Rl(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Nl(t,this._minDate,this._maxDate)?t:Il(t,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){var e;this._ignoreFocusedDateChange=!0,this.i18n.parseDate?(e=this._inputElementValue||"",(e=this.__parseDate(e))?this._selectDate(e):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)):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,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_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||-1===[9].indexOf(e.keyCode)&&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())}}_onEnter(e){var t=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),t===this.value&&this.validate()}_onEscape(e){if(!this.opened)return this.clearButtonVisible&&this.value?(e.stopPropagation(),void this._onClearButtonClick(e)):void(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(){var e;this.opened||!this._inputElementValue||this.autoOpenDisabled||this.open(),this._inputElementValue&&(e=this.__parseDate(this._inputElementValue))&&(this._ignoreFocusedDateChange=!0,Ml(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}__computeMinOrMaxDate(e){return Rl(e)}}};S("vaadin-date-picker",[kh,E`
2164
2537
  :host([opened]) {
2165
2538
  pointer-events: auto;
2166
2539
  }
@@ -2173,7 +2546,7 @@
2173
2546
  direction: rtl;
2174
2547
  text-align: left;
2175
2548
  }
2176
- `],{moduleId:"vaadin-date-picker-styles"});class Dh extends d(xh(c(na(Hs)))){static get is(){return"vaadin-date-picker"}static get template(){return Is`
2549
+ `],{moduleId:"vaadin-date-picker-styles"});class Mh extends i(Th(Ri(la(Fs)))){static get is(){return"vaadin-date-picker"}static get template(){return Rs`
2177
2550
  <div class="vaadin-date-picker-container">
2178
2551
  <div part="label">
2179
2552
  <slot name="label"></slot>
@@ -2215,5 +2588,5 @@
2215
2588
  ></vaadin-date-picker-overlay>
2216
2589
 
2217
2590
  <slot name="tooltip"></slot>
2218
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Eh(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Ah(this.inputElement,this._labelController)),this._tooltipController=new ca(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(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}function Ph(e){let r,i,n,o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"";return{c(){r=t("p"),i=t("strong"),n=ae(o),le(r,"class","SelfExclusionDescriptionText")},m(e,t){ce(e,r,t),se(r,i),se(i,n)},p(e,t){288&t[0]&&o!==(o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"")&&he(n,o)},d(e){e&&de(r)}}}function kh(e){let r,i,n,o=e[8]("permanentSelfExclusion")+"";return{c(){r=t("p"),i=t("strong"),n=ae(o),le(r,"class","SelfExclusionDescriptionText")},m(e,t){ce(e,r,t),se(r,i),se(i,n)},p(e,t){256&t[0]&&o!==(o=e[8]("permanentSelfExclusion")+"")&&he(n,o)},d(e){e&&de(r)}}}function Oh(r){let i,n,B,o,s,F,a,l,h,Y,u,c,z,d,p,U,m,$,j,f,V,_,W,y,v,G,q,g,K,b,w,X,Z,x,J,E,Q,A,ee,S,C,te,re,ie,T=r[8]("title")+"",D=r[8]("selfExclusionText1",{values:{operatorname:r[0]}})+"",P=r[8]("selfExclusionText2")+"",k=r[8]("selfExclusionText3",{values:{operatorname:r[0]}})+"",O=r[8]("selfExclusionText4")+"",M=r[8]("duration")+"",N=r[8]("forever")+"",I=r[8]("save")+"",L=r[9]&&function(r){let i,n,o,s,a,l,h,u,c,d,p,m,f,_=r[8]("title")+"";return{c(){i=t("div"),n=pe("svg"),o=pe("defs"),s=pe("style"),a=ae(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pe("g"),h=pe("g"),u=pe("path"),c=e(),d=t("h2"),p=ae(_),le(u,"class","aaa"),le(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),le(u,"transform","translate(15 15) rotate(180)"),le(h,"transform","translate(20 158)"),le(l,"transform","translate(-20 -158)"),le(n,"xmlns","http://www.w3.org/2000/svg"),le(n,"width","15"),le(n,"height","15"),le(n,"viewBox","0 0 15 15"),le(d,"class","PlayerSelfExclusionTitleMobile"),le(i,"class","MenuReturnButton")},m(e,t){ce(e,i,t),se(i,n),se(n,o),se(o,s),se(s,a),se(n,l),se(l,h),se(h,u),se(i,c),se(i,d),se(d,p),m||(f=me(i,"click",r[17]),m=!0)},p(e,t){256&t[0]&&_!==(_=e[8]("title")+"")&&he(p,_)},d(e){e&&de(i),m=!1,f()}}}(r);function ne(e){return e[4]?kh:Ph}let H=ne(r),R=H(r);return{c(){i=t("div"),n=t("form"),L&&L.c(),B=e(),o=t("h2"),s=ae(T),F=e(),a=t("div"),l=t("p"),h=ae(D),Y=e(),u=t("p"),c=ae(P),z=e(),d=t("p"),p=ae(k),U=e(),m=t("p"),$=ae(O),j=e(),f=t("a"),V=ae(r[1]),W=e(),y=t("div"),v=t("label"),G=ae(M),q=e(),g=t("vaadin-date-picker"),K=e(),b=t("div"),w=t("label"),X=ae(N),Z=e(),x=t("input"),J=e(),E=t("span"),Q=e(),A=t("div"),R.c(),ee=e(),S=t("div"),C=t("button"),te=ae(I),this.c=oe,le(o,"class","PlayerSelfExclusionTitle "+(r[9]?"PlayerSelfExclusionTitleNone":"")),le(l,"class","SelfExclusionDescriptionText"),le(u,"class","SelfExclusionDescriptionText"),le(d,"class","SelfExclusionDescriptionText"),le(f,"href",_="mailto:"+r[1]),le(m,"class","SelfExclusionDescriptionText"),le(a,"class","SelfExclusionDescription "+(r[9]?"SelfExclusionDescriptionMobile":"")),le(v,"for","SelfExclusionDate"),fe(g,"min",r[6]),fe(g,"max",r[7]),fe(g,"value",r[6]),le(y,"class","SelfExclusionDateWrapper "+(r[9]?"SelfExclusionDateWrapperMobile":"")),le(x,"type","Checkbox"),le(E,"class","Checkmark"),le(E,"part","Checkmark"),le(w,"class","SelfExclusionRadio"),le(b,"class","SelfExclusionRadioWrapper "+(r[9]?"SelfExclusionRadioWrapperMobile":"")),le(A,"class","SelfExclusionDescription "+(r[9]?"SelfExclusionDescriptionMobile":"")),le(C,"class","SelfExclusionSave"),le(S,"class","SelfExclusionActionButtons "+(r[9]?"SelfExclusionActionButtonsMobile":"")),le(n,"class","SelfExclusionWrapper "+(r[9]?"SelfExclusionWrapperMobile":""))},m(e,t){ce(e,i,t),se(i,n),L&&L.m(n,null),se(n,B),se(n,o),se(o,s),se(n,F),se(n,a),se(a,l),se(l,h),se(a,Y),se(a,u),se(u,c),se(a,z),se(a,d),se(d,p),se(a,U),se(a,m),se(m,$),se(m,j),se(m,f),se(f,V),se(n,W),se(n,y),se(y,v),se(v,G),se(y,q),se(y,g),r[18](g),se(n,K),se(n,b),se(b,w),se(w,X),se(w,Z),se(w,x),se(w,J),se(w,E),se(n,Q),se(n,A),R.m(A,null),se(n,ee),se(n,S),se(S,C),se(C,te),r[21](i),re||(ie=[me(x,"click",r[19]),me(C,"click",r[20])],re=!0)},p(e,t){e[9]&&L.p(e,t),256&t[0]&&T!==(T=e[8]("title")+"")&&he(s,T),257&t[0]&&D!==(D=e[8]("selfExclusionText1",{values:{operatorname:e[0]}})+"")&&he(h,D),256&t[0]&&P!==(P=e[8]("selfExclusionText2")+"")&&he(c,P),257&t[0]&&k!==(k=e[8]("selfExclusionText3",{values:{operatorname:e[0]}})+"")&&he(p,k),256&t[0]&&O!==(O=e[8]("selfExclusionText4")+"")&&he($,O),2&t[0]&&he(V,e[1]),2&t[0]&&_!==(_="mailto:"+e[1])&&le(f,"href",_),256&t[0]&&M!==(M=e[8]("duration")+"")&&he(G,M),64&t[0]&&fe(g,"min",e[6]),128&t[0]&&fe(g,"max",e[7]),64&t[0]&&fe(g,"value",e[6]),256&t[0]&&N!==(N=e[8]("forever")+"")&&he(X,N),H===(H=ne(e))&&R?R.p(e,t):(R.d(1),(R=H(e))&&(R.c(),R.m(A,null))),256&t[0]&&I!==(I=e[8]("save")+"")&&he(te,I)},i:oe,o:oe,d(e){e&&de(i),L&&L.d(),r[18](null),R.d(),r[21](null),re=!1,ue(ie)}}}function Mh(t,e,r){let i;var n=Pi;t.$$.on_destroy.push(L(n,e=>r(8,i=e)));let o,s,a,l,{lang:h="en"}=e,{operator:u="Everymatrix"}=e,{supportemail:c=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:m=""}=e,f="PC"!=((n=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),_=!1,y="",v="",g=new Date;Object.keys(Ii).forEach(e=>{Ni(e,Ii[e])}),a=Mi(g.setDate(g.getDate())).add(6,"M").format("YYYY-MM-DD"),l=Mi(g.setDate(g.getDate())).add(5,"y").format("YYYY-MM-DD"),v=a;const b=()=>{r(4,_=0==_)},w=e=>{1==_?y="SelfExclusionPermanent":(y="SelfExclusionUntilSelectedDate",e&&0<e.length&&r(5,v=e))},x=e=>{e.preventDefault(),w(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:y,selfExclusionExpiryDate:v},window.location.href)},E=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},A=e=>{w(e.target.value)};e=()=>()=>{s.removeEventListener("change",A)},function(){if(H)return H;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e);return t.$$set=e=>{"lang"in e&&r(13,h=e.lang),"operator"in e&&r(0,u=e.operator),"supportemail"in e&&r(1,c=e.supportemail),"clientstyling"in e&&r(14,d=e.clientstyling),"clientstylingurl"in e&&r(15,p=e.clientstylingurl),"translationurl"in e&&r(16,m=e.translationurl)},t.$$.update=()=>{if(8&t.$$.dirty[0]&&s&&s.addEventListener("change",A,!1),8192&t.$$.dirty[0]&&h&&(e=h,fi.set(e)),32772&t.$$.dirty[0]&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}var e;16388&t.$$.dirty[0]&&d&&o&&((e=document.createElement("style")).innerHTML=d,o.appendChild(e)),65536&t.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ni(e,t[e])})}).catch(e=>{console.log(e)})},[u,c,o,s,_,v,a,l,i,f,b,x,E,h,d,p,m,()=>E(),function(e){F[e?"unshift":"push"](()=>{s=e,r(3,s)})},()=>b(),e=>x(e),function(e){F[e?"unshift":"push"](()=>{o=e,r(2,o)})}]}Li(Dh);class Nh extends X{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:12px;line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.SelfExclusionDateWrapper{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:14px;font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:16px;user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:16px;cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{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(--emfe-w-color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.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-size:12px}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:12px}',this.shadowRoot.appendChild(t),K(this,{target:this.shadowRoot,props:function(e){var t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},Mh,Oh,I,{lang:13,operator:0,supportemail:1,clientstyling:14,clientstylingurl:15,translationurl:16},null,[-1,-1]),e&&(e.target&&ce(e.target,this,e.anchor),e.props)&&(this.$set(e.props),G())}static get observedAttributes(){return["lang","operator","supportemail","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[13]}set lang(e){this.$$set({lang:e}),G()}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),G()}get supportemail(){return this.$$.ctx[1]}set supportemail(e){this.$$set({supportemail:e}),G()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(e){this.$$set({clientstyling:e}),G()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),G()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),G()}}return customElements.define=(Th=customElements.define,function(...e){try{return Th.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),customElements.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",Nh),Nh});
2591
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ch(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Dh(this.inputElement,this._labelController)),this._tooltipController=new fa(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(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}function Nh(e){let r,o,i,n=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"";return{c(){r=t("p"),o=t("strong"),i=ae(n),le(r,"class","SelfExclusionDescriptionText")},m(e,t){ce(e,r,t),se(r,o),se(o,i)},p(e,t){288&t[0]&&n!==(n=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"")&&he(i,n)},d(e){e&&de(r)}}}function Ih(e){let r,o,i,n=e[8]("permanentSelfExclusion")+"";return{c(){r=t("p"),o=t("strong"),i=ae(n),le(r,"class","SelfExclusionDescriptionText")},m(e,t){ce(e,r,t),se(r,o),se(o,i)},p(e,t){256&t[0]&&n!==(n=e[8]("permanentSelfExclusion")+"")&&he(i,n)},d(e){e&&de(r)}}}function Lh(r){let o,i,B,n,s,F,a,l,h,z,u,c,Y,d,p,U,m,$,j,f,V,_,W,y,v,G,q,g,K,b,w,X,Z,x,J,E,Q,A,ee,S,T,te,re,oe,C=r[8]("title")+"",D=r[8]("selfExclusionText1",{values:{operatorname:r[0]}})+"",k=r[8]("selfExclusionText2")+"",P=r[8]("selfExclusionText3",{values:{operatorname:r[0]}})+"",O=r[8]("selfExclusionText4")+"",M=r[8]("duration")+"",N=r[8]("forever")+"",I=r[8]("save")+"",L=r[9]&&function(r){let o,i,n,s,a,l,h,u,c,d,p,m,f,_=r[8]("title")+"";return{c(){o=t("div"),i=pe("svg"),n=pe("defs"),s=pe("style"),a=ae(".aaa{fill:var(--emw--color-primary, #22B04E);}"),l=pe("g"),h=pe("g"),u=pe("path"),c=e(),d=t("h2"),p=ae(_),le(u,"class","aaa"),le(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),le(u,"transform","translate(15 15) rotate(180)"),le(h,"transform","translate(20 158)"),le(l,"transform","translate(-20 -158)"),le(i,"xmlns","http://www.w3.org/2000/svg"),le(i,"width","15"),le(i,"height","15"),le(i,"viewBox","0 0 15 15"),le(d,"class","PlayerSelfExclusionTitleMobile"),le(o,"class","MenuReturnButton")},m(e,t){ce(e,o,t),se(o,i),se(i,n),se(n,s),se(s,a),se(i,l),se(l,h),se(h,u),se(o,c),se(o,d),se(d,p),m||(f=me(o,"click",r[17]),m=!0)},p(e,t){256&t[0]&&_!==(_=e[8]("title")+"")&&he(p,_)},d(e){e&&de(o),m=!1,f()}}}(r);function ie(e){return e[4]?Ih:Nh}let H=ie(r),R=H(r);return{c(){o=t("div"),i=t("form"),L&&L.c(),B=e(),n=t("h2"),s=ae(C),F=e(),a=t("div"),l=t("p"),h=ae(D),z=e(),u=t("p"),c=ae(k),Y=e(),d=t("p"),p=ae(P),U=e(),m=t("p"),$=ae(O),j=e(),f=t("a"),V=ae(r[1]),W=e(),y=t("div"),v=t("label"),G=ae(M),q=e(),g=t("vaadin-date-picker"),K=e(),b=t("div"),w=t("label"),X=ae(N),Z=e(),x=t("input"),J=e(),E=t("span"),Q=e(),A=t("div"),R.c(),ee=e(),S=t("div"),T=t("button"),te=ae(I),this.c=ne,le(n,"class","PlayerSelfExclusionTitle "+(r[9]?"PlayerSelfExclusionTitleNone":"")),le(l,"class","SelfExclusionDescriptionText"),le(u,"class","SelfExclusionDescriptionText"),le(d,"class","SelfExclusionDescriptionText"),le(f,"href",_="mailto:"+r[1]),le(m,"class","SelfExclusionDescriptionText"),le(a,"class","SelfExclusionDescription "+(r[9]?"SelfExclusionDescriptionMobile":"")),le(v,"for","SelfExclusionDate"),fe(g,"min",r[6]),fe(g,"max",r[7]),fe(g,"value",r[6]),le(y,"class","SelfExclusionDateWrapper "+(r[9]?"SelfExclusionDateWrapperMobile":"")),le(x,"type","Checkbox"),le(E,"class","Checkmark"),le(E,"part","Checkmark"),le(w,"class","SelfExclusionRadio"),le(b,"class","SelfExclusionRadioWrapper "+(r[9]?"SelfExclusionRadioWrapperMobile":"")),le(A,"class","SelfExclusionDescription "+(r[9]?"SelfExclusionDescriptionMobile":"")),le(T,"class","SelfExclusionSave"),le(S,"class","SelfExclusionActionButtons "+(r[9]?"SelfExclusionActionButtonsMobile":"")),le(i,"class","SelfExclusionWrapper "+(r[9]?"SelfExclusionWrapperMobile":""))},m(e,t){ce(e,o,t),se(o,i),L&&L.m(i,null),se(i,B),se(i,n),se(n,s),se(i,F),se(i,a),se(a,l),se(l,h),se(a,z),se(a,u),se(u,c),se(a,Y),se(a,d),se(d,p),se(a,U),se(a,m),se(m,$),se(m,j),se(m,f),se(f,V),se(i,W),se(i,y),se(y,v),se(v,G),se(y,q),se(y,g),r[18](g),se(i,K),se(i,b),se(b,w),se(w,X),se(w,Z),se(w,x),se(w,J),se(w,E),se(i,Q),se(i,A),R.m(A,null),se(i,ee),se(i,S),se(S,T),se(T,te),r[21](o),re||(oe=[me(x,"click",r[19]),me(T,"click",r[20])],re=!0)},p(e,t){e[9]&&L.p(e,t),256&t[0]&&C!==(C=e[8]("title")+"")&&he(s,C),257&t[0]&&D!==(D=e[8]("selfExclusionText1",{values:{operatorname:e[0]}})+"")&&he(h,D),256&t[0]&&k!==(k=e[8]("selfExclusionText2")+"")&&he(c,k),257&t[0]&&P!==(P=e[8]("selfExclusionText3",{values:{operatorname:e[0]}})+"")&&he(p,P),256&t[0]&&O!==(O=e[8]("selfExclusionText4")+"")&&he($,O),2&t[0]&&he(V,e[1]),2&t[0]&&_!==(_="mailto:"+e[1])&&le(f,"href",_),256&t[0]&&M!==(M=e[8]("duration")+"")&&he(G,M),64&t[0]&&fe(g,"min",e[6]),128&t[0]&&fe(g,"max",e[7]),64&t[0]&&fe(g,"value",e[6]),256&t[0]&&N!==(N=e[8]("forever")+"")&&he(X,N),H===(H=ie(e))&&R?R.p(e,t):(R.d(1),(R=H(e))&&(R.c(),R.m(A,null))),256&t[0]&&I!==(I=e[8]("save")+"")&&he(te,I)},i:ne,o:ne,d(e){e&&de(o),L&&L.d(),r[18](null),R.d(),r[21](null),re=!1,ue(oe)}}}function Hh(t,e,r){let o;var i=Oo;t.$$.on_destroy.push(L(i,e=>r(8,o=e)));let n,s,a,l,{lang:h="en"}=e,{operator:u="Everymatrix"}=e,{supportemail:c=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:m=""}=e,f="PC"!=((i=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),_=!1,y="",v="",g=new Date;Object.keys(Ho).forEach(e=>{Lo(e,Ho[e])}),a=Io(g.setDate(g.getDate())).add(6,"M").format("YYYY-MM-DD"),l=Io(g.setDate(g.getDate())).add(5,"y").format("YYYY-MM-DD"),v=a;const b=()=>{r(4,_=0==_)},w=e=>{1==_?y="SelfExclusionPermanent":(y="SelfExclusionUntilSelectedDate",e&&0<e.length&&r(5,v=e))},x=e=>{e.preventDefault(),w(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:y,selfExclusionExpiryDate:v},window.location.href)},E=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},A=e=>{w(e.target.value)};e=()=>()=>{s.removeEventListener("change",A)},function(){if(H)return H;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e);return t.$$set=e=>{"lang"in e&&r(13,h=e.lang),"operator"in e&&r(0,u=e.operator),"supportemail"in e&&r(1,c=e.supportemail),"clientstyling"in e&&r(14,d=e.clientstyling),"clientstylingurl"in e&&r(15,p=e.clientstylingurl),"translationurl"in e&&r(16,m=e.translationurl)},t.$$.update=()=>{if(8&t.$$.dirty[0]&&s&&s.addEventListener("change",A,!1),8192&t.$$.dirty[0]&&h&&(e=h,yo.set(e)),32772&t.$$.dirty[0]&&p&&n){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;16388&t.$$.dirty[0]&&d&&n&&((e=document.createElement("style")).innerHTML=d,n.appendChild(e)),65536&t.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Lo(e,t[e])})}).catch(e=>{console.log(e)})},[u,c,n,s,_,v,a,l,o,f,b,x,E,h,d,p,m,()=>E(),function(e){F[e?"unshift":"push"](()=>{s=e,r(3,s)})},()=>b(),e=>x(e),function(e){F[e?"unshift":"push"](()=>{n=e,r(2,n)})}]}x(Mh);class Rh extends X{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile{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}.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(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.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.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(--emfe-w-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{cursor:pointer;font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}',this.shadowRoot.appendChild(t),K(this,{target:this.shadowRoot,props:function(e){var t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},Hh,Lh,I,{lang:13,operator:0,supportemail:1,clientstyling:14,clientstylingurl:15,translationurl:16},null,[-1,-1]),e&&(e.target&&ce(e.target,this,e.anchor),e.props)&&(this.$set(e.props),G())}static get observedAttributes(){return["lang","operator","supportemail","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[13]}set lang(e){this.$$set({lang:e}),G()}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),G()}get supportemail(){return this.$$.ctx[1]}set supportemail(e){this.$$set({supportemail:e}),G()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(e){this.$$set({clientstyling:e}),G()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),G()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),G()}}return customElements.define=(Oh=customElements.define,function(...e){try{return Oh.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),customElements.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",Rh),Rh});
2219
2592
  //# sourceMappingURL=player-account-self-exclusion.js.map