@everymatrix/casino-bonuses-controller 1.56.3 → 1.58.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.
- package/components/CasinoBonusesController-BVFWrra8.cjs +3586 -0
- package/components/{CasinoBonusesController-C9jnng14.js → CasinoBonusesController-CzNw_jtN.js} +9898 -8663
- package/components/{CasinoBonusesController-DDE1rRkd.js → CasinoBonusesController-_KUIkZot.js} +11717 -10482
- package/es2015/casino-bonuses-controller.cjs +1 -1
- package/es2015/casino-bonuses-controller.js +1 -1
- package/esnext/casino-bonuses-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoBonusesController-n3pupIBb.cjs +0 -3586
|
@@ -0,0 +1,3586 @@
|
|
|
1
|
+
"use strict";var xf=Object.defineProperty,Ef=Object.defineProperties;var Sf=Object.getOwnPropertyDescriptors;var ti=Object.getOwnPropertySymbols;var qa=Object.prototype.hasOwnProperty,Za=Object.prototype.propertyIsEnumerable;var As=(e,t,r)=>t in e?xf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sr=(e,t)=>{for(var r in t||(t={}))qa.call(t,r)&&As(e,r,t[r]);if(ti)for(var r of ti(t))Za.call(t,r)&&As(e,r,t[r]);return e},sn=(e,t)=>Ef(e,Sf(t));var Ms=(e,t)=>{var r={};for(var n in e)qa.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ti)for(var n of ti(e))t.indexOf(n)<0&&Za.call(e,n)&&(r[n]=e[n]);return r};var dt=(e,t,r)=>(As(e,typeof t!="symbol"?t+"":t,r),r);var st=(e,t,r)=>new Promise((n,i)=>{var s=l=>{try{a(r.next(l))}catch(u){i(u)}},o=l=>{try{a(r.throw(l))}catch(u){i(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,o);a((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Pe(){}function D(e,t){for(const r in t)e[r]=t[r];return e}function pd(e){return e()}function Xa(){return Object.create(null)}function vt(e){e.forEach(pd)}function Hn(e){return typeof e=="function"}function Un(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let ri;function Ka(e,t){return e===t?!0:(ri||(ri=document.createElement("a")),ri.href=t,e===ri.href)}function kf(e){return Object.keys(e).length===0}function md(e,...t){if(e==null){for(const n of t)n(void 0);return Pe}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function _d(e,t,r){e.$$.on_destroy.push(md(t,r))}function Yn(e,t,r,n){if(e){const i=gd(e,t,r,n);return e[0](i)}}function gd(e,t,r,n){return e[1]&&n?D(r.ctx.slice(),e[1](n(t))):r.ctx}function Wn(e,t,r,n){if(e[2]&&n){const i=e[2](n(r));if(t.dirty===void 0)return i;if(typeof i=="object"){const s=[],o=Math.max(t.dirty.length,i.length);for(let a=0;a<o;a+=1)s[a]=t.dirty[a]|i[a];return s}return t.dirty|i}return t.dirty}function zn(e,t,r,n,i,s){if(i){const o=gd(t,r,n,s);e.p(o,i)}}function $n(e){if(e.ctx.length>32){const t=[],r=e.ctx.length/32;for(let n=0;n<r;n++)t[n]=-1;return t}return-1}function Tf(e){return e&&Hn(e.destroy)?e.destroy:Pe}const Pf=["",!0,1,"true","contenteditable"];function p(e,t){e.appendChild(t)}function $i(e,t,r){const n=Df(e);if(!n.getElementById(t)){const i=x("style");i.id=t,i.textContent=r,Af(n,i)}}function Df(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Af(e,t){return p(e.head||e,t),t.sheet}function B(e,t,r){e.insertBefore(t,r||null)}function M(e){e.parentNode&&e.parentNode.removeChild(e)}function tr(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function x(e){return document.createElement(e)}function ee(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function O(e){return document.createTextNode(e)}function $(){return O(" ")}function Wt(){return O("")}function Le(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function m(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}const Mf=["width","height"];function S(e,t){const r=Object.getOwnPropertyDescriptors(e.__proto__);for(const n in t)t[n]==null?e.removeAttribute(n):n==="style"?e.style.cssText=t[n]:n==="__value"?e.value=e[n]=t[n]:r[n]&&r[n].set&&Mf.indexOf(n)===-1?e[n]=t[n]:m(e,n,t[n])}function bd(e,t){for(const r in t)m(e,r,t[r])}function tt(e,t,r){const n=t.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:m(e,t,r)}function vd(e){return e===""?null:+e}function Of(e){return Array.from(e.childNodes)}function xe(e,t){t=""+t,e.data!==t&&(e.data=t)}function Bf(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function ne(e,t,r){~Pf.indexOf(r)?Bf(e,t):xe(e,t)}function Ci(e,t){e.value=t==null?"":t}function uo(e,t,r,n){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}function oe(e,t,r){e.classList.toggle(t,!!r)}function Nf(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let En;function bn(e){En=e}function If(){if(!En)throw new Error("Function called outside component initialization");return En}function Vi(e){If().$$.on_mount.push(e)}const Pr=[],It=[];let Or=[];const Ja=[],Lf=Promise.resolve();let co=!1;function Ff(){co||(co=!0,Lf.then(_e))}function ho(e){Or.push(e)}const Os=new Set;let xr=0;function _e(){if(xr!==0)return;const e=En;do{try{for(;xr<Pr.length;){const t=Pr[xr];xr++,bn(t),Rf(t.$$)}}catch(t){throw Pr.length=0,xr=0,t}for(bn(null),Pr.length=0,xr=0;It.length;)It.pop()();for(let t=0;t<Or.length;t+=1){const r=Or[t];Os.has(r)||(Os.add(r),r())}Or.length=0}while(Pr.length);for(;Ja.length;)Ja.pop()();co=!1,Os.clear(),bn(e)}function Rf(e){if(e.fragment!==null){e.update(),vt(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ho)}}function Hf(e){const t=[],r=[];Or.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),Or=t}const hi=new Set;let ur;function yd(){ur={r:0,c:[],p:ur}}function wd(){ur.r||vt(ur.c),ur=ur.p}function _t(e,t){e&&e.i&&(hi.delete(e),e.i(t))}function Ht(e,t,r,n){if(e&&e.o){if(hi.has(e))return;hi.add(e),ur.c.push(()=>{hi.delete(e),n&&(r&&e.d(1),n())}),e.o(t)}else n&&n()}function Ze(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function He(e,t){const r={},n={},i={$$scope:1};let s=e.length;for(;s--;){const o=e[s],a=t[s];if(a){for(const l in o)l in a||(n[l]=1);for(const l in a)i[l]||(r[l]=a[l],i[l]=1);e[s]=a}else for(const l in o)i[l]=1}for(const o in n)o in r||(r[o]=void 0);return r}function Uf(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),ho(()=>{const s=e.$$.on_mount.map(pd).filter(Hn);e.$$.on_destroy?e.$$.on_destroy.push(...s):vt(s),e.$$.on_mount=[]}),i.forEach(ho)}function Yf(e,t){const r=e.$$;r.fragment!==null&&(Hf(r.after_update),vt(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Wf(e,t){e.$$.dirty[0]===-1&&(Pr.push(e),Ff(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Gi(e,t,r,n,i,s,o=null,a=[-1]){const l=En;bn(e);const u=e.$$={fragment:null,ctx:[],props:s,update:Pe,not_equal:i,bound:Xa(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Xa(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};o&&o(u.root);let d=!1;if(u.ctx=r?r(e,t.props||{},(c,h,...f)=>{const g=f.length?f[0]:h;return u.ctx&&i(u.ctx[c],u.ctx[c]=g)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](g),d&&Wf(e,c)),h}):[],u.update(),d=!0,vt(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){const c=Of(t.target);u.fragment&&u.fragment.l(c),c.forEach(M)}else u.fragment&&u.fragment.c();t.intro&&_t(e.$$.fragment),Uf(e,t.target,t.anchor),_e()}bn(l)}let Cd;typeof HTMLElement=="function"&&(Cd=class extends HTMLElement{constructor(t,r,n){super();dt(this,"$$ctor");dt(this,"$$s");dt(this,"$$c");dt(this,"$$cn",!1);dt(this,"$$d",{});dt(this,"$$r",!1);dt(this,"$$p_d",{});dt(this,"$$l",{});dt(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return st(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let o;return{c:function(){o=x("slot"),s!=="default"&&m(o,"name",s)},m:function(u,d){B(u,o,d)},d:function(u){u&&M(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Nf(this);for(const s of this.$$s)s in n&&(r[s]=[t(s)]);for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=fi(o,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:sn(sr({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const o=fi(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const s in this.$$l)for(const o of this.$$l[s]){const a=this.$$c.$on(s,o);this.$$l_u.set(o,a)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=fi(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function fi(e,t,r,n){var s;const i=(s=r[e])==null?void 0:s.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ji(e,t,r,n,i,s){let o=class extends Cd{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=fi(a,l,t),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),n.forEach(a=>{Object.defineProperty(o.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=o,o}class qi{constructor(){dt(this,"$$");dt(this,"$$set")}$destroy(){Yf(this,1),this.$destroy=Pe}$on(t,r){if(!Hn(r))return Pe;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!kf(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const zf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(zf);const Er=[];function $f(e,t){return{subscribe:Zi(e,t).subscribe}}function Zi(e,t=Pe){let r;const n=new Set;function i(a){if(Un(e,a)&&(e=a,r)){const l=!Er.length;for(const u of n)u[1](),Er.push(u,e);if(l){for(let u=0;u<Er.length;u+=2)Er[u][0](Er[u+1]);Er.length=0}}}function s(a){i(a(e))}function o(a,l=Pe){const u=[a,l];return n.add(u),n.size===1&&(r=t(i,s)||Pe),a(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:o}}function Zr(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return $f(r,(o,a)=>{let l=!1;const u=[];let d=0,c=Pe;const h=()=>{if(d)return;c();const g=t(n?u[0]:u,o,a);s?o(g):c=Hn(g)?g:Pe},f=i.map((g,b)=>md(g,v=>{u[b]=v,d&=~(1<<b),l&&h()},()=>{d|=1<<b}));return l=!0,h(),function(){vt(f),c(),l=!1}})}function Vf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gf=function(t){return jf(t)&&!qf(t)};function jf(e){return!!e&&typeof e=="object"}function qf(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Kf(e)}var Zf=typeof Symbol=="function"&&Symbol.for,Xf=Zf?Symbol.for("react.element"):60103;function Kf(e){return e.$$typeof===Xf}function Jf(e){return Array.isArray(e)?[]:{}}function Sn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Yr(Jf(e),e,t):e}function Qf(e,t,r){return e.concat(t).map(function(n){return Sn(n,r)})}function ep(e,t){if(!t.customMerge)return Yr;var r=t.customMerge(e);return typeof r=="function"?r:Yr}function tp(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Qa(e){return Object.keys(e).concat(tp(e))}function xd(e,t){try{return t in e}catch(r){return!1}}function rp(e,t){return xd(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function np(e,t,r){var n={};return r.isMergeableObject(e)&&Qa(e).forEach(function(i){n[i]=Sn(e[i],r)}),Qa(t).forEach(function(i){rp(e,i)||(xd(e,i)&&r.isMergeableObject(t[i])?n[i]=ep(i,r)(e[i],t[i],r):n[i]=Sn(t[i],r))}),n}function Yr(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Qf,r.isMergeableObject=r.isMergeableObject||Gf,r.cloneUnlessOtherwiseSpecified=Sn;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):np(e,t,r):Sn(t,r)}Yr.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Yr(n,i,r)},{})};var ip=Yr,sp=ip;const op=Vf(sp);/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */var fo=function(e,t){return fo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},fo(e,t)};function zt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fo(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ve=function(){return ve=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},ve.apply(this,arguments)};function ap(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function po(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function mo(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s}function Br(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||t)}function Bs(e,t){var r=t&&t.cache?t.cache:pp,n=t&&t.serializer?t.serializer:hp,i=t&&t.strategy?t.strategy:dp;return i(e,{cache:r,serializer:n})}function lp(e){return e==null||typeof e=="number"||typeof e=="boolean"}function up(e,t,r,n){var i=lp(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function Ed(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.apply(this,n),t.set(i,s)),s}function Sd(e,t,r,n,i){return r.bind(t,e,n,i)}function dp(e,t){var r=e.length===1?up:Ed;return Sd(e,this,r,t.cache.create(),t.serializer)}function cp(e,t){return Sd(e,this,Ed,t.cache.create(),t.serializer)}var hp=function(){return JSON.stringify(arguments)},fp=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),pp={create:function(){return new fp}},Ns={variadic:cp},he;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(he||(he={}));var Oe;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Oe||(Oe={}));var Wr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Wr||(Wr={}));function el(e){return e.type===Oe.literal}function mp(e){return e.type===Oe.argument}function kd(e){return e.type===Oe.number}function Td(e){return e.type===Oe.date}function Pd(e){return e.type===Oe.time}function Dd(e){return e.type===Oe.select}function Ad(e){return e.type===Oe.plural}function _p(e){return e.type===Oe.pound}function Md(e){return e.type===Oe.tag}function Od(e){return!!(e&&typeof e=="object"&&e.type===Wr.number)}function _o(e){return!!(e&&typeof e=="object"&&e.type===Wr.dateTime)}var Bd=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,gp=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function bp(e){var t={};return e.replace(gp,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var vp=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function yp(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(vp).filter(function(h){return h.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var a=o[0],l=o.slice(1),u=0,d=l;u<d.length;u++){var c=d[u];if(c.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:l})}return r}function wp(e){return e.replace(/^(.*?)-/,"")}var tl=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Nd=/^(@+)?(\+|#+)?[rs]?$/g,Cp=/(\*)(0+)|(#+)(0+)|(0+)/g,Id=/^(0+)$/;function rl(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Nd,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function Ld(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 xp(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Id.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function nl(e){var t={},r=Ld(e);return r||t}function Ep(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=wp(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ve(ve(ve({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return ve(ve({},l),nl(u))},{}));continue;case"engineering":t=ve(ve(ve({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return ve(ve({},l),nl(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Cp,function(l,u,d,c,h,f){if(u)t.minimumIntegerDigits=d.length;else{if(c&&h)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Id.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(tl.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(tl,function(l,u,d,c,h,f){return d==="*"?t.minimumFractionDigits=u.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:h&&f?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+f.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var s=i.options[0];s==="w"?t=ve(ve({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=ve(ve({},t),rl(s)));continue}if(Nd.test(i.stem)){t=ve(ve({},t),rl(i.stem));continue}var o=Ld(i.stem);o&&(t=ve(ve({},t),o));var a=xp(i.stem);a&&(t=ve(ve({},t),a))}return t}var ni={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Sp(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var s=0;n+1<e.length&&e.charAt(n+1)===i;)s++,n++;var o=1+(s&1),a=s<2?1:3+(s>>1),l="a",u=kp(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)r+=l;for(;o-- >0;)r=u+r}else i==="J"?r+="H":r+=i}return r}function kp(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=ni[n||""]||ni[r||""]||ni["".concat(r,"-001")]||ni["001"];return i[0]}var Is,Tp=new RegExp("^".concat(Bd.source,"*")),Pp=new RegExp("".concat(Bd.source,"*$"));function fe(e,t){return{start:e,end:t}}var Dp=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ap=!!String.fromCodePoint,Mp=!!Object.fromEntries,Op=!!String.prototype.codePointAt,Bp=!!String.prototype.trimStart,Np=!!String.prototype.trimEnd,Ip=!!Number.isSafeInteger,Lp=Ip?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},go=!0;try{var Fp=Rd("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");go=((Is=Fp.exec("a"))===null||Is===void 0?void 0:Is[0])==="a"}catch(e){go=!1}var il=Dp?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},bo=Ap?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,o;i>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},sl=Mp?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],o=s[0],a=s[1];r[o]=a}return r},Fd=Op?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),s;return i<55296||i>56319||r+1===n||(s=t.charCodeAt(r+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},Rp=Bp?function(t){return t.trimStart()}:function(t){return t.replace(Tp,"")},Hp=Np?function(t){return t.trimEnd()}:function(t){return t.replace(Pp,"")};function Rd(e,t){return new RegExp(e,t)}var vo;if(go){var ol=Rd("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vo=function(t,r){var n;ol.lastIndex=r;var i=ol.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else vo=function(t,r){for(var n=[];;){var i=Fd(t,r);if(i===void 0||Hd(i)||zp(i))break;n.push(i),r+=i>=65536?2:1}return bo.apply(void 0,n)};var Up=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,n);if(o.err)return o;i.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:Oe.pound,location:fe(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(he.UNMATCHED_CLOSING_TAG,fe(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&yo(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Oe.literal,value:"<".concat(i,"/>"),location:fe(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!yo(this.char()))return this.error(he.INVALID_TAG,fe(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(he.UNMATCHED_CLOSING_TAG,fe(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Oe.tag,value:i,children:o,location:fe(n,this.clonePosition())},err:null}:this.error(he.INVALID_TAG,fe(a,this.clonePosition())))}else return this.error(he.UNCLOSED_TAG,fe(n,this.clonePosition()))}else return this.error(he.INVALID_TAG,fe(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Wp(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var s=this.tryParseQuote(r);if(s){i+=s;continue}var o=this.tryParseUnquoted(t,r);if(o){i+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=fe(n,this.clonePosition());return{val:{type:Oe.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Yp(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return bo.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),bo(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,fe(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(he.EMPTY_ARGUMENT,fe(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(he.MALFORMED_ARGUMENT,fe(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,fe(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Oe.argument,value:i,location:fe(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,fe(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(he.MALFORMED_ARGUMENT,fe(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=vo(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),o=fe(t,s);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(he.EXPECT_ARGUMENT_TYPE,fe(o,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var h=Hp(c.val);if(h.length===0)return this.error(he.EXPECT_ARGUMENT_STYLE,fe(this.clonePosition(),this.clonePosition()));var f=fe(d,this.clonePosition());u={style:h,styleLocation:f}}var g=this.tryParseArgumentClose(i);if(g.err)return g;var b=fe(i,this.clonePosition());if(u&&il(u==null?void 0:u.style,"::",0)){var v=Rp(u.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(v,u.styleLocation);return c.err?c:{val:{type:Oe.number,value:n,location:b,style:c.val},err:null}}else{if(v.length===0)return this.error(he.EXPECT_DATE_TIME_SKELETON,b);var y=v;this.locale&&(y=Sp(v,this.locale));var h={type:Wr.dateTime,pattern:y,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?bp(y):{}},_=a==="date"?Oe.date:Oe.time;return{val:{type:_,value:n,location:b,style:h},err:null}}}return{val:{type:a==="number"?Oe.number:a==="date"?Oe.date:Oe.time,value:n,location:b,style:(s=u==null?void 0:u.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(he.EXPECT_SELECT_ARGUMENT_OPTIONS,fe(E,ve({},E)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),A=0;if(a!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,fe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),w=this.parseIdentifierIfPossible(),A=c.val}var C=this.tryParsePluralOrSelectOptions(t,a,r,w);if(C.err)return C;var g=this.tryParseArgumentClose(i);if(g.err)return g;var L=fe(i,this.clonePosition());return a==="select"?{val:{type:Oe.select,value:n,options:sl(C.val),location:L},err:null}:{val:{type:Oe.plural,value:n,options:sl(C.val),offset:A,pluralType:a==="plural"?"cardinal":"ordinal",location:L},err:null}}default:return this.error(he.INVALID_ARGUMENT_TYPE,fe(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,fe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(he.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,fe(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=yp(t)}catch(i){return this.error(he.INVALID_NUMBER_SKELETON,r)}return{val:{type:Wr.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Ep(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,o=!1,a=[],l=new Set,u=i.value,d=i.location;;){if(u.length===0){var c=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(he.EXPECT_PLURAL_ARGUMENT_SELECTOR,he.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;d=fe(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?he.DUPLICATE_SELECT_ARGUMENT_SELECTOR:he.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?he.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:he.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,fe(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,r,n);if(g.err)return g;var b=this.tryParseArgumentClose(f);if(b.err)return b;a.push([u,{value:g.val,location:fe(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,d=s.location}return a.length===0?this.error(r==="select"?he.EXPECT_SELECT_ARGUMENT_SELECTOR:he.EXPECT_PLURAL_ARGUMENT_SELECTOR,fe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(he.MISSING_OTHER_CLAUSE,fe(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var l=fe(i,this.clonePosition());return s?(o*=n,Lp(o)?{val:o,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Fd(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(il(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Hd(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function yo(e){return e>=97&&e<=122||e>=65&&e<=90}function Yp(e){return yo(e)||e===47}function Wp(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Hd(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function zp(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function wo(e){e.forEach(function(t){if(delete t.location,Dd(t)||Ad(t))for(var r in t.options)delete t.options[r].location,wo(t.options[r].value);else kd(t)&&Od(t.style)||(Td(t)||Pd(t))&&_o(t.style)?delete t.style.location:Md(t)&&wo(t.children)})}function $p(e,t){t===void 0&&(t={}),t=ve({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Up(e,t).parse();if(r.err){var n=SyntaxError(he[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||wo(r.val),r.val}var zr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(zr||(zr={}));var Xi=function(e){zt(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.code=n,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),al=function(e){zt(t,e);function t(r,n,i,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),zr.INVALID_VALUE,s)||this}return t}(Xi),Vp=function(e){zt(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),zr.INVALID_VALUE,i)||this}return t}(Xi),Gp=function(e){zt(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),zr.MISSING_VALUE,n)||this}return t}(Xi),Qe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Qe||(Qe={}));function jp(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Qe.literal||r.type!==Qe.literal?t.push(r):n.value+=r.value,t},[])}function qp(e){return typeof e=="function"}function pi(e,t,r,n,i,s,o){if(e.length===1&&el(e[0]))return[{type:Qe.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var d=u[l];if(el(d)){a.push({type:Qe.literal,value:d.value});continue}if(_p(d)){typeof s=="number"&&a.push({type:Qe.literal,value:r.getNumberFormat(t).format(s)});continue}var c=d.value;if(!(i&&c in i))throw new Gp(c,o);var h=i[c];if(mp(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?Qe.literal:Qe.object,value:h});continue}if(Td(d)){var f=typeof d.style=="string"?n.date[d.style]:_o(d.style)?d.style.parsedOptions:void 0;a.push({type:Qe.literal,value:r.getDateTimeFormat(t,f).format(h)});continue}if(Pd(d)){var f=typeof d.style=="string"?n.time[d.style]:_o(d.style)?d.style.parsedOptions:n.time.medium;a.push({type:Qe.literal,value:r.getDateTimeFormat(t,f).format(h)});continue}if(kd(d)){var f=typeof d.style=="string"?n.number[d.style]:Od(d.style)?d.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:Qe.literal,value:r.getNumberFormat(t,f).format(h)});continue}if(Md(d)){var g=d.children,b=d.value,v=i[b];if(!qp(v))throw new Vp(b,"function",o);var y=pi(g,t,r,n,i,s),_=v(y.map(function(A){return A.value}));Array.isArray(_)||(_=[_]),a.push.apply(a,_.map(function(A){return{type:typeof A=="string"?Qe.literal:Qe.object,value:A}}))}if(Dd(d)){var E=d.options[h]||d.options.other;if(!E)throw new al(d.value,h,Object.keys(d.options),o);a.push.apply(a,pi(E.value,t,r,n,i));continue}if(Ad(d)){var E=d.options["=".concat(h)];if(!E){if(!Intl.PluralRules)throw new Xi(`Intl.PluralRules is not available in this environment.
|
|
15
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
16
|
+
`,zr.MISSING_INTL_API,o);var w=r.getPluralRules(t,{type:d.pluralType}).select(h-(d.offset||0));E=d.options[w]||d.options.other}if(!E)throw new al(d.value,h,Object.keys(d.options),o);a.push.apply(a,pi(E.value,t,r,n,i,h-(d.offset||0)));continue}}return jp(a)}function Zp(e,t){return t?ve(ve(ve({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=ve(ve({},e[n]),t[n]||{}),r},{})):e}function Xp(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Zp(e[n],t[n]),r},ve({},e)):e}function Ls(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Kp(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Bs(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Br([void 0],r,!1)))},{cache:Ls(e.number),strategy:Ns.variadic}),getDateTimeFormat:Bs(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Br([void 0],r,!1)))},{cache:Ls(e.dateTime),strategy:Ns.variadic}),getPluralRules:Bs(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Br([void 0],r,!1)))},{cache:Ls(e.pluralRules),strategy:Ns.variadic})}}var Jp=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var d=u.reduce(function(c,h){return!c.length||h.type!==Qe.literal||typeof c[c.length-1]!="string"?c.push(h.value):c[c.length-1]+=h.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return pi(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var a=ap(o,["formatters"]);this.ast=e.__parse(t,ve(ve({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Xp(e.formats,n),this.formatters=i&&i.formatters||Kp(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=$p,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Qp(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const Zt={},em=(e,t,r)=>r&&(t in Zt||(Zt[t]={}),e in Zt[t]||(Zt[t][e]=r),r),Ud=(e,t)=>{if(t==null)return;if(t in Zt&&e in Zt[t])return Zt[t][e];const r=Ki(t);for(let n=0;n<r.length;n++){const i=r[n],s=rm(i,e);if(s)return em(e,t,s)}};let ra;const Vn=Zi({});function tm(e){return ra[e]||null}function Yd(e){return e in ra}function rm(e,t){if(!Yd(e))return null;const r=tm(e);return Qp(r,t)}function nm(e){if(e==null)return;const t=Ki(e);for(let r=0;r<t.length;r++){const n=t[r];if(Yd(n))return n}}function Wd(e,...t){delete Zt[e],Vn.update(r=>(r[e]=op.all([r[e]||{},...t]),r))}Zr([Vn],([e])=>Object.keys(e));Vn.subscribe(e=>ra=e);const mi={};function im(e,t){mi[e].delete(t),mi[e].size===0&&delete mi[e]}function zd(e){return mi[e]}function sm(e){return Ki(e).map(t=>{const r=zd(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Co(e){return e==null?!1:Ki(e).some(t=>{var r;return(r=zd(t))==null?void 0:r.size})}function om(e,t){return Promise.all(t.map(n=>(im(e,n),n().then(i=>i.default||i)))).then(n=>Wd(e,...n))}const on={};function $d(e){if(!Co(e))return e in on?on[e]:Promise.resolve();const t=sm(e);return on[e]=Promise.all(t.map(([r,n])=>om(r,n))).then(()=>{if(Co(e))return $d(e);delete on[e]}),on[e]}const am={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"}}},lm={fallbackLocale:null,loadingDelay:200,formats:am,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},um=lm;function $r(){return um}const Fs=Zi(!1);var dm=Object.defineProperty,cm=Object.defineProperties,hm=Object.getOwnPropertyDescriptors,ll=Object.getOwnPropertySymbols,fm=Object.prototype.hasOwnProperty,pm=Object.prototype.propertyIsEnumerable,ul=(e,t,r)=>t in e?dm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mm=(e,t)=>{for(var r in t||(t={}))fm.call(t,r)&&ul(e,r,t[r]);if(ll)for(var r of ll(t))pm.call(t,r)&&ul(e,r,t[r]);return e},_m=(e,t)=>cm(e,hm(t));let xo;const xi=Zi(null);function dl(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Ki(e,t=$r().fallbackLocale){const r=dl(e);return t?[...new Set([...r,...dl(t)])]:r}function gr(){return xo!=null?xo:void 0}xi.subscribe(e=>{xo=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const gm=e=>{if(e&&nm(e)&&Co(e)){const{loadingDelay:t}=$r();let r;return typeof window!="undefined"&&gr()!=null&&t?r=window.setTimeout(()=>Fs.set(!0),t):Fs.set(!0),$d(e).then(()=>{xi.set(e)}).finally(()=>{clearTimeout(r),Fs.set(!1)})}return xi.set(e)},Xr=_m(mm({},xi),{set:gm}),Ji=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var bm=Object.defineProperty,Ei=Object.getOwnPropertySymbols,Vd=Object.prototype.hasOwnProperty,Gd=Object.prototype.propertyIsEnumerable,cl=(e,t,r)=>t in e?bm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,na=(e,t)=>{for(var r in t||(t={}))Vd.call(t,r)&&cl(e,r,t[r]);if(Ei)for(var r of Ei(t))Gd.call(t,r)&&cl(e,r,t[r]);return e},Kr=(e,t)=>{var r={};for(var n in e)Vd.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ei)for(var n of Ei(e))t.indexOf(n)<0&&Gd.call(e,n)&&(r[n]=e[n]);return r};const kn=(e,t)=>{const{formats:r}=$r();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},vm=Ji(e=>{var t=e,{locale:r,format:n}=t,i=Kr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=kn("number",n)),new Intl.NumberFormat(r,i)}),ym=Ji(e=>{var t=e,{locale:r,format:n}=t,i=Kr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=kn("date",n):Object.keys(i).length===0&&(i=kn("date","short")),new Intl.DateTimeFormat(r,i)}),wm=Ji(e=>{var t=e,{locale:r,format:n}=t,i=Kr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=kn("time",n):Object.keys(i).length===0&&(i=kn("time","short")),new Intl.DateTimeFormat(r,i)}),Cm=(e={})=>{var t=e,{locale:r=gr()}=t,n=Kr(t,["locale"]);return vm(na({locale:r},n))},xm=(e={})=>{var t=e,{locale:r=gr()}=t,n=Kr(t,["locale"]);return ym(na({locale:r},n))},Em=(e={})=>{var t=e,{locale:r=gr()}=t,n=Kr(t,["locale"]);return wm(na({locale:r},n))},Sm=Ji((e,t=gr())=>new Jp(e,t,$r().formats,{ignoreTag:$r().ignoreTag})),km=(e,t={})=>{var r,n,i,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:a,locale:l=gr(),default:u}=o;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=Ud(e,l);if(!d)d=(s=(i=(n=(r=$r()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?s:e;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!a)return d;let c=d;try{c=Sm(d,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return c},Tm=(e,t)=>Em(t).format(e),Pm=(e,t)=>xm(t).format(e),Dm=(e,t)=>Cm(t).format(e),Am=(e,t=gr())=>Ud(e,t),jd=Zr([Xr,Vn],()=>km);Zr([Xr],()=>Tm);Zr([Xr],()=>Pm);Zr([Xr],()=>Dm);Zr([Xr,Vn],()=>Am);function Si(e,t){Wd(e,t)}function qd(e){Xr.set(e)}function Lt(e){return typeof e=="function"}function Zd(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Rs=Zd(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
17
|
+
`+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
|
|
18
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function Eo(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Qi=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=po(o),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(b){t={error:b}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else o.remove(this);var d=this.initialTeardown;if(Lt(d))try{d()}catch(b){s=b instanceof Rs?b.errors:[b]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var h=po(c),f=h.next();!f.done;f=h.next()){var g=f.value;try{hl(g)}catch(b){s=s!=null?s:[],b instanceof Rs?s=Br(Br([],mo(s)),mo(b.errors)):s.push(b)}}}catch(b){n={error:b}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}}if(s)throw new Rs(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)hl(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Eo(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Eo(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Xd=Qi.EMPTY;function Kd(e){return e instanceof Qi||e&&"closed"in e&&Lt(e.remove)&&Lt(e.add)&&Lt(e.unsubscribe)}function hl(e){Lt(e)?e():e.unsubscribe()}var Mm={Promise:void 0},Om={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Br([e,t],mo(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Bm(e){Om.setTimeout(function(){throw e})}function fl(){}function _i(e){e()}var Jd=function(e){zt(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Kd(r)&&r.add(n)):n.destination=Lm,n}return t.create=function(r,n,i){return new So(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Qi),Nm=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){ii(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){ii(n)}else ii(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ii(r)}},e}(),So=function(e){zt(t,e);function t(r,n,i){var s=e.call(this)||this,o;return Lt(r)||!r?o={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:i!=null?i:void 0}:o=r,s.destination=new Nm(o),s}return t}(Jd);function ii(e){Bm(e)}function Im(e){throw e}var Lm={closed:!0,next:fl,error:Im,complete:fl},Fm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Rm(e){return e}function Hm(e){return e.length===0?Rm:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var pl=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,s=Ym(t)?t:new So(t,r,n);return _i(function(){var o=i,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?i._subscribe(s):i._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=ml(r),new r(function(i,s){var o=new So({next:function(a){try{t(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:i});n.subscribe(o)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Fm]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Hm(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=ml(t),new t(function(n,i){var s;r.subscribe(function(o){return s=o},function(o){return i(o)},function(){return n(s)})})},e.create=function(t){return new e(t)},e}();function ml(e){var t;return(t=e!=null?e:Mm.Promise)!==null&&t!==void 0?t:Promise}function Um(e){return e&&Lt(e.next)&&Lt(e.error)&&Lt(e.complete)}function Ym(e){return e&&e instanceof Jd||Um(e)&&Kd(e)}var Wm=Zd(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Qd=function(e){zt(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new _l(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Wm},t.prototype.next=function(r){var n=this;_i(function(){var i,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=po(n.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(r)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;_i(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;_i(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,s=i.hasError,o=i.isStopped,a=i.observers;return s||o?Xd:(this.currentObservers=null,a.push(r),new Qi(function(){n.currentObservers=null,Eo(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,s=n.thrownError,o=n.isStopped;i?r.error(s):o&&r.complete()},t.prototype.asObservable=function(){var r=new pl;return r.source=this,r},t.create=function(r,n){return new _l(r,n)},t}(pl),_l=function(e){zt(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:Xd},t}(Qd),ec={now:function(){return(ec.delegate||Date).now()},delegate:void 0},zm=function(e){zt(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=ec);var s=e.call(this)||this;return s._bufferSize=r,s._windowTime=n,s._timestampProvider=i,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=n===1/0,s._bufferSize=Math.max(1,r),s._windowTime=Math.max(1,n),s}return t.prototype.next=function(r){var n=this,i=n.isStopped,s=n._buffer,o=n._infiniteTimeWindow,a=n._timestampProvider,l=n._windowTime;i||(s.push(r),!o&&s.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,s=i._infiniteTimeWindow,o=i._buffer,a=o.slice(),l=0;l<a.length&&!r.closed;l+=s?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,s=r._buffer,o=r._infiniteTimeWindow,a=(o?1:2)*n;if(n<1/0&&a<s.length&&s.splice(0,s.length-a),!o){for(var l=i.now(),u=0,d=1;d<s.length&&s[d]<=l;d+=2)u=d;u&&s.splice(0,u+1)}},t}(Qd);const gl=[],bl={},$m=(e,t=0)=>{if(gl.indexOf(e)==-1){const r=new zm(t);bl[e]=r,gl.push(e)}return bl[e]};window.emWidgets={topic:$m};const tc=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),ki={en:{bonus:{bonusCode:"Do you have a bonus code",placeholder:"Enter your bonus code here",claim:"Claim Bonus",from:"From",to:"to",noBonus:"No bonuses found",filter:"Filter",error:"Error",forfeit:"Forfeit",invalidBonusCode:"The bonus code provided is invalid.",noActiveBonuses:"You have no active bonuses at the moment.",forfeitMessage:"Are you sure want to forfeit bonus?",forfeitConfirm:"Confirm",forfeitCancel:"Cancel",claimSuccessMessage:"Bonus claimed!",canlendarTitle:"Select the period",show:"Show"},bonusType:{standard:"Bonus Money",freeBet:"Free Bet",freeRound:"Free Spins",wagering:"Wagering Challenge",cashBack:"Cash Back",oddsBoost:"Odds Boost",stakeBack:"Stake Back",tournamentTicket:"Ticket"},bonusCard:{level:"Level",current:"Current",next:"Next",first:"First",last:"Last",previous:"Previous",startChallenge:"START CHALLENGE",rewards:"Rewards",join:"Join",forfeit:"Forfeit",terms:"Terms and Conditions",bonusType:"Bonus Type",levels:"Levels",validity:"Validity",bonusStatus:"Bonus Status",bonusAmount:"Bonus Amount",wagered:"Wagered",wageredAmount:"Wagered Amount",roundNumber:"Number of freespins",game:"Game",validUntil:"Valid Until",wageringType:"Wagering Type",remaining:"Remaining",money:"Money Wagering",betCount:"Bet Count",allRewards:"All Rewards",error:"Join failed, please try again.",playNow:"Play Now",active:"Active",expired:"Expired",forfeited:"Forfeited",released:"Released",closed:"Closed",completed:"Completed",claimable:"Claimable"}}};function es(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function ts(e,t){const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function rs(e,t,r){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(t,i=>{n.innerHTML=i,e&&e.appendChild(n)})}}function Ti(e){"@babel/helpers - typeof";return Ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ti(e)}function Ut(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Ge(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function yt(e){Ge(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Ti(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Vm(e,t){Ge(2,arguments);var r=yt(e),n=Ut(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var i=r.getDate(),s=new Date(r.getTime());s.setMonth(r.getMonth()+n+1,0);var o=s.getDate();return i>=o?s:(r.setFullYear(s.getFullYear(),s.getMonth(),i),r)}function Gm(e,t){Ge(2,arguments);var r=yt(e).getTime(),n=Ut(t);return new Date(r+n)}var jm={};function ns(){return jm}function qm(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Zm(e){return Ge(1,arguments),e instanceof Date||Ti(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Xm(e){if(Ge(1,arguments),!Zm(e)&&typeof e!="number")return!1;var t=yt(e);return!isNaN(Number(t))}function Km(e,t){Ge(2,arguments);var r=Ut(t);return Gm(e,-r)}var Jm=864e5;function Qm(e){Ge(1,arguments);var t=yt(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),i=r-n;return Math.floor(i/Jm)+1}function Pi(e){Ge(1,arguments);var t=1,r=yt(e),n=r.getUTCDay(),i=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function rc(e){Ge(1,arguments);var t=yt(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=Pi(n),s=new Date(0);s.setUTCFullYear(r,0,4),s.setUTCHours(0,0,0,0);var o=Pi(s);return t.getTime()>=i.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function e_(e){Ge(1,arguments);var t=rc(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=Pi(r);return n}var t_=6048e5;function r_(e){Ge(1,arguments);var t=yt(e),r=Pi(t).getTime()-e_(t).getTime();return Math.round(r/t_)+1}function Di(e,t){var r,n,i,s,o,a,l,u;Ge(1,arguments);var d=ns(),c=Ut((r=(n=(i=(s=t==null?void 0:t.weekStartsOn)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=yt(e),f=h.getUTCDay(),g=(f<c?7:0)+f-c;return h.setUTCDate(h.getUTCDate()-g),h.setUTCHours(0,0,0,0),h}function nc(e,t){var r,n,i,s,o,a,l,u;Ge(1,arguments);var d=yt(e),c=d.getUTCFullYear(),h=ns(),f=Ut((r=(n=(i=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&n!==void 0?n:(l=h.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(c+1,0,f),g.setUTCHours(0,0,0,0);var b=Di(g,t),v=new Date(0);v.setUTCFullYear(c,0,f),v.setUTCHours(0,0,0,0);var y=Di(v,t);return d.getTime()>=b.getTime()?c+1:d.getTime()>=y.getTime()?c:c-1}function n_(e,t){var r,n,i,s,o,a,l,u;Ge(1,arguments);var d=ns(),c=Ut((r=(n=(i=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1),h=nc(e,t),f=new Date(0);f.setUTCFullYear(h,0,c),f.setUTCHours(0,0,0,0);var g=Di(f,t);return g}var i_=6048e5;function s_(e,t){Ge(1,arguments);var r=yt(e),n=Di(r,t).getTime()-n_(r,t).getTime();return Math.round(n/i_)+1}function Ee(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var jt={y:function(t,r){var n=t.getUTCFullYear(),i=n>0?n:1-n;return Ee(r==="yy"?i%100:i,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):Ee(n+1,2)},d:function(t,r){return Ee(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return Ee(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Ee(t.getUTCHours(),r.length)},m:function(t,r){return Ee(t.getUTCMinutes(),r.length)},s:function(t,r){return Ee(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,i=t.getUTCMilliseconds(),s=Math.floor(i*Math.pow(10,n-3));return Ee(s,r.length)}},Sr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},o_={G:function(t,r,n){var i=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var i=t.getUTCFullYear(),s=i>0?i:1-i;return n.ordinalNumber(s,{unit:"year"})}return jt.y(t,r)},Y:function(t,r,n,i){var s=nc(t,i),o=s>0?s:1-s;if(r==="YY"){var a=o%100;return Ee(a,2)}return r==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ee(o,r.length)},R:function(t,r){var n=rc(t);return Ee(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return Ee(n,r.length)},Q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return Ee(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return Ee(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,r,n){var i=t.getUTCMonth();switch(r){case"M":case"MM":return jt.M(t,r);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,r,n){var i=t.getUTCMonth();switch(r){case"L":return String(i+1);case"LL":return Ee(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,r,n,i){var s=s_(t,i);return r==="wo"?n.ordinalNumber(s,{unit:"week"}):Ee(s,r.length)},I:function(t,r,n){var i=r_(t);return r==="Io"?n.ordinalNumber(i,{unit:"week"}):Ee(i,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):jt.d(t,r)},D:function(t,r,n){var i=Qm(t);return r==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):Ee(i,r.length)},E:function(t,r,n){var i=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,r,n,i){var s=t.getUTCDay(),o=(s-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return Ee(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(t,r,n,i){var s=t.getUTCDay(),o=(s-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return Ee(o,r.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(t,r,n){var i=t.getUTCDay(),s=i===0?7:i;switch(r){case"i":return String(s);case"ii":return Ee(s,r.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,r,n){var i=t.getUTCHours(),s=i/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,r,n){var i=t.getUTCHours(),s;switch(i===12?s=Sr.noon:i===0?s=Sr.midnight:s=i/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,r,n){var i=t.getUTCHours(),s;switch(i>=17?s=Sr.evening:i>=12?s=Sr.afternoon:i>=4?s=Sr.morning:s=Sr.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return jt.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):jt.H(t,r)},K:function(t,r,n){var i=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(i,{unit:"hour"}):Ee(i,r.length)},k:function(t,r,n){var i=t.getUTCHours();return i===0&&(i=24),r==="ko"?n.ordinalNumber(i,{unit:"hour"}):Ee(i,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):jt.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):jt.s(t,r)},S:function(t,r){return jt.S(t,r)},X:function(t,r,n,i){var s=i._originalDate||t,o=s.getTimezoneOffset();if(o===0)return"Z";switch(r){case"X":return yl(o);case"XXXX":case"XX":return lr(o);case"XXXXX":case"XXX":default:return lr(o,":")}},x:function(t,r,n,i){var s=i._originalDate||t,o=s.getTimezoneOffset();switch(r){case"x":return yl(o);case"xxxx":case"xx":return lr(o);case"xxxxx":case"xxx":default:return lr(o,":")}},O:function(t,r,n,i){var s=i._originalDate||t,o=s.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+vl(o,":");case"OOOO":default:return"GMT"+lr(o,":")}},z:function(t,r,n,i){var s=i._originalDate||t,o=s.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+vl(o,":");case"zzzz":default:return"GMT"+lr(o,":")}},t:function(t,r,n,i){var s=i._originalDate||t,o=Math.floor(s.getTime()/1e3);return Ee(o,r.length)},T:function(t,r,n,i){var s=i._originalDate||t,o=s.getTime();return Ee(o,r.length)}};function vl(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),s=n%60;if(s===0)return r+String(i);var o=t;return r+String(i)+o+Ee(s,2)}function yl(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Ee(Math.abs(e)/60,2)}return lr(e,t)}function lr(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),s=Ee(Math.floor(i/60),2),o=Ee(i%60,2);return n+s+r+o}var wl=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},ic=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},a_=function(t,r){var n=t.match(/(P+)(p+)?/)||[],i=n[1],s=n[2];if(!s)return wl(t,r);var o;switch(i){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",wl(i,r)).replace("{{time}}",ic(s,r))},l_={p:ic,P:a_},u_=["D","DD"],d_=["YY","YYYY"];function c_(e){return u_.indexOf(e)!==-1}function h_(e){return d_.indexOf(e)!==-1}function Cl(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var f_={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},p_=function(t,r,n){var i,s=f_[t];return typeof s=="string"?i=s:r===1?i=s.one:i=s.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function Hs(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var m_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},__={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},g_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},b_={date:Hs({formats:m_,defaultWidth:"full"}),time:Hs({formats:__,defaultWidth:"full"}),dateTime:Hs({formats:g_,defaultWidth:"full"})},v_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},y_=function(t,r,n,i){return v_[t]};function an(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var s=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):s;i=e.formattingValues[o]||e.formattingValues[s]}else{var a=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[l]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var w_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},C_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},x_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},E_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},S_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},k_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},T_=function(t,r){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},P_={ordinalNumber:T_,era:an({values:w_,defaultWidth:"wide"}),quarter:an({values:C_,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:an({values:x_,defaultWidth:"wide"}),day:an({values:E_,defaultWidth:"wide"}),dayPeriod:an({values:S_,defaultWidth:"wide",formattingValues:k_,defaultFormattingWidth:"wide"})};function ln(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],s=t.match(i);if(!s)return null;var o=s[0],a=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?A_(a,function(c){return c.test(o)}):D_(a,function(c){return c.test(o)}),u;u=e.valueCallback?e.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;var d=t.slice(o.length);return{value:u,rest:d}}}function D_(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function A_(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function M_(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],s=t.match(e.parsePattern);if(!s)return null;var o=e.valueCallback?e.valueCallback(s[0]):s[0];o=r.valueCallback?r.valueCallback(o):o;var a=t.slice(i.length);return{value:o,rest:a}}}var O_=/^(\d+)(th|st|nd|rd)?/i,B_=/\d+/i,N_={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},I_={any:[/^b/i,/^(a|c)/i]},L_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},F_={any:[/1/i,/2/i,/3/i,/4/i]},R_={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},H_={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},U_={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Y_={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},W_={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},z_={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},$_={ordinalNumber:M_({matchPattern:O_,parsePattern:B_,valueCallback:function(t){return parseInt(t,10)}}),era:ln({matchPatterns:N_,defaultMatchWidth:"wide",parsePatterns:I_,defaultParseWidth:"any"}),quarter:ln({matchPatterns:L_,defaultMatchWidth:"wide",parsePatterns:F_,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ln({matchPatterns:R_,defaultMatchWidth:"wide",parsePatterns:H_,defaultParseWidth:"any"}),day:ln({matchPatterns:U_,defaultMatchWidth:"wide",parsePatterns:Y_,defaultParseWidth:"any"}),dayPeriod:ln({matchPatterns:W_,defaultMatchWidth:"any",parsePatterns:z_,defaultParseWidth:"any"})},V_={code:"en-US",formatDistance:p_,formatLong:b_,formatRelative:y_,localize:P_,match:$_,options:{weekStartsOn:0,firstWeekContainsDate:1}},G_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,j_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,q_=/^'([^]*?)'?$/,Z_=/''/g,X_=/[a-zA-Z]/;function Us(e,t,r){var n,i,s,o,a,l,u,d,c,h,f,g,b,v;Ge(2,arguments);var y=String(t),_=ns(),E=(n=(i=void 0)!==null&&i!==void 0?i:_.locale)!==null&&n!==void 0?n:V_,w=Ut((s=(o=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:_.firstWeekContainsDate)!==null&&o!==void 0?o:(u=_.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=Ut((c=(h=(f=(g=void 0)!==null&&g!==void 0?g:void 0)!==null&&f!==void 0?f:_.weekStartsOn)!==null&&h!==void 0?h:(b=_.locale)===null||b===void 0||(v=b.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&c!==void 0?c:0);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var C=yt(e);if(!Xm(C))throw new RangeError("Invalid time value");var L=qm(C),q=Km(C,L),K={firstWeekContainsDate:w,weekStartsOn:A,locale:E,_originalDate:C},Y=y.match(j_).map(function(k){var N=k[0];if(N==="p"||N==="P"){var re=l_[N];return re(k,E.formatLong)}return k}).join("").match(G_).map(function(k){if(k==="''")return"'";var N=k[0];if(N==="'")return K_(k);var re=o_[N];if(re)return h_(k)&&Cl(k,t,String(e)),c_(k)&&Cl(k,t,String(e)),re(q,k,E.localize,K);if(N.match(X_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return k}).join("");return Y}function K_(e){var t=e.match(q_);return t?t[1].replace(Z_,"'"):e}function xl(e,t){Ge(2,arguments);var r=Ut(t);return Vm(e,-r)}/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
21
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
22
|
+
*/function St(e,t="24.5.11"){Object.defineProperty(e,"version",{get(){return t}});const r=customElements.get(e.is);if(!r)customElements.define(e.is,e);else{const n=r.version;n&&e.version&&n===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.`)}}/**
|
|
23
|
+
* @license
|
|
24
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
25
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
26
|
+
*/class J_ extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}St(J_);/**
|
|
27
|
+
* @license
|
|
28
|
+
* Copyright 2019 Google LLC
|
|
29
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
|
+
*/const gi=globalThis,ia=gi.ShadowRoot&&(gi.ShadyCSS===void 0||gi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,sa=Symbol(),El=new WeakMap;let oa=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==sa)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o;const r=this.t;if(ia&&t===void 0){const n=r!==void 0&&r.length===1;n&&(t=El.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&El.set(r,t))}return t}toString(){return this.cssText}};const Q_=e=>new oa(typeof e=="string"?e:e+"",void 0,sa),ge=(e,...t)=>{const r=e.length===1?e[0]:t.reduce((n,i,s)=>n+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[s+1],e[0]);return new oa(r,e,sa)},sc=(e,t)=>{if(ia)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of t){const n=document.createElement("style"),i=gi.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}},Sl=ia?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const n of t.cssRules)r+=n.cssText;return Q_(r)})(e):e;/**
|
|
31
|
+
* @license
|
|
32
|
+
* Copyright 2017 Google LLC
|
|
33
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
+
*/const{is:e0,defineProperty:t0,getOwnPropertyDescriptor:r0,getOwnPropertyNames:n0,getOwnPropertySymbols:i0,getPrototypeOf:s0}=Object,Jt=globalThis,kl=Jt.trustedTypes,o0=kl?kl.emptyScript:"",Ys=Jt.reactiveElementPolyfillSupport,vn=(e,t)=>e,ko={toAttribute(e,t){switch(t){case Boolean:e=e?o0:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(n){r=null}}return r}},oc=(e,t)=>!e0(e,t),Tl={attribute:!0,type:String,converter:ko,reflect:!1,hasChanged:oc};var ld,ud;(ld=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(ud=Jt.litPropertyMetadata)!=null||(Jt.litPropertyMetadata=new WeakMap);class Dr extends HTMLElement{static addInitializer(t){var r;this._$Ei(),((r=this.l)!=null?r:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Tl){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(t,n,r);i!==void 0&&t0(this.prototype,t,i)}}static getPropertyDescriptor(t,r,n){var o;const{get:i,set:s}=(o=r0(this.prototype,t))!=null?o:{get(){return this[r]},set(a){this[r]=a}};return{get(){return i==null?void 0:i.call(this)},set(a){const l=i==null?void 0:i.call(this);s.call(this,a),this.requestUpdate(t,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var r;return(r=this.elementProperties.get(t))!=null?r:Tl}static _$Ei(){if(this.hasOwnProperty(vn("elementProperties")))return;const t=s0(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(vn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(vn("properties"))){const r=this.properties,n=[...n0(r),...i0(r)];for(const i of n)this.createProperty(i,r[i])}const t=this[Symbol.metadata];if(t!==null){const r=litPropertyMetadata.get(t);if(r!==void 0)for(const[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[r,n]of this.elementProperties){const i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const r=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const i of n)r.unshift(Sl(i))}else t!==void 0&&r.push(Sl(t));return r}static _$Eu(t,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(r=>r(this))}addController(t){var r,n;((r=this._$EO)!=null?r:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)==null||n.call(t))}removeController(t){var r;(r=this._$EO)==null||r.delete(t)}_$E_(){const t=new Map,r=this.constructor.elementProperties;for(const n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var r;const t=(r=this.shadowRoot)!=null?r:this.attachShadow(this.constructor.shadowRootOptions);return sc(t,this.constructor.elementStyles),t}connectedCallback(){var t,r;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$EO)==null||r.forEach(n=>{var i;return(i=n.hostConnected)==null?void 0:i.call(n)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(r=>{var n;return(n=r.hostDisconnected)==null?void 0:n.call(r)})}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EC(t,r){var s;const n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){const o=(((s=n.converter)==null?void 0:s.toAttribute)!==void 0?n.converter:ko).toAttribute(r,n.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,r){var s;const n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const o=n.getPropertyOptions(i),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)==null?void 0:s.fromAttribute)!==void 0?o.converter:ko;this._$Em=i,this[i]=a.fromAttribute(r,o.type),this._$Em=null}}requestUpdate(t,r,n){var i;if(t!==void 0){if(n!=null||(n=this.constructor.getPropertyOptions(t)),!((i=n.hasChanged)!=null?i:oc)(this[t],r))return;this.P(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,r,n){var i;this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$Em!==t&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(t)}_$ET(){return st(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(r){Promise.reject(r)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((n=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,a]of this._$Ep)this[o]=a;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[o,a]of s)a.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],a)}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(i=this._$EO)==null||i.forEach(s=>{var o;return(o=s.hostUpdate)==null?void 0:o.call(s)}),this.update(r)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(r)}willUpdate(t){}_$AE(t){var r;(r=this._$EO)==null||r.forEach(n=>{var i;return(i=n.hostUpdated)==null?void 0:i.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(r=>this._$EC(r,this[r]))),this._$EU()}updated(t){}firstUpdated(t){}}var dd;Dr.elementStyles=[],Dr.shadowRootOptions={mode:"open"},Dr[vn("elementProperties")]=new Map,Dr[vn("finalized")]=new Map,Ys==null||Ys({ReactiveElement:Dr}),((dd=Jt.reactiveElementVersions)!=null?dd:Jt.reactiveElementVersions=[]).push("2.0.4");/**
|
|
35
|
+
* @license
|
|
36
|
+
* Copyright 2017 Google LLC
|
|
37
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
|
+
*/const yn=globalThis,Ai=yn.trustedTypes,Pl=Ai?Ai.createPolicy("lit-html",{createHTML:e=>e}):void 0,ac="$lit$",qt=`lit$${Math.random().toFixed(9).slice(2)}$`,lc="?"+qt,a0=`<${lc}>`,_r=document,Tn=()=>_r.createComment(""),Pn=e=>e===null||typeof e!="object"&&typeof e!="function",aa=Array.isArray,l0=e=>aa(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Ws=`[
|
|
39
|
+
\f\r]`,un=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Dl=/-->/g,Al=/>/g,or=RegExp(`>|${Ws}(?:([^\\s"'>=/]+)(${Ws}*=${Ws}*(?:[^
|
|
40
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ml=/'/g,Ol=/"/g,uc=/^(?:script|style|textarea|title)$/i,Vr=Symbol.for("lit-noChange"),$e=Symbol.for("lit-nothing"),Bl=new WeakMap,dr=_r.createTreeWalker(_r,129);function dc(e,t){if(!aa(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pl!==void 0?Pl.createHTML(t):t}const u0=(e,t)=>{const r=e.length-1,n=[];let i,s=t===2?"<svg>":t===3?"<math>":"",o=un;for(let a=0;a<r;a++){const l=e[a];let u,d,c=-1,h=0;for(;h<l.length&&(o.lastIndex=h,d=o.exec(l),d!==null);)h=o.lastIndex,o===un?d[1]==="!--"?o=Dl:d[1]!==void 0?o=Al:d[2]!==void 0?(uc.test(d[2])&&(i=RegExp("</"+d[2],"g")),o=or):d[3]!==void 0&&(o=or):o===or?d[0]===">"?(o=i!=null?i:un,c=-1):d[1]===void 0?c=-2:(c=o.lastIndex-d[2].length,u=d[1],o=d[3]===void 0?or:d[3]==='"'?Ol:Ml):o===Ol||o===Ml?o=or:o===Dl||o===Al?o=un:(o=or,i=void 0);const f=o===or&&e[a+1].startsWith("/>")?" ":"";s+=o===un?l+a0:c>=0?(n.push(u),l.slice(0,c)+ac+l.slice(c)+qt+f):l+qt+(c===-2?a:f)}return[dc(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class Dn{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let s=0,o=0;const a=t.length-1,l=this.parts,[u,d]=u0(t,r);if(this.el=Dn.createElement(u,n),dr.currentNode=this.el.content,r===2||r===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=dr.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const c of i.getAttributeNames())if(c.endsWith(ac)){const h=d[o++],f=i.getAttribute(c).split(qt),g=/([.?@])?(.*)/.exec(h);l.push({type:1,index:s,name:g[2],strings:f,ctor:g[1]==="."?c0:g[1]==="?"?h0:g[1]==="@"?f0:is}),i.removeAttribute(c)}else c.startsWith(qt)&&(l.push({type:6,index:s}),i.removeAttribute(c));if(uc.test(i.tagName)){const c=i.textContent.split(qt),h=c.length-1;if(h>0){i.textContent=Ai?Ai.emptyScript:"";for(let f=0;f<h;f++)i.append(c[f],Tn()),dr.nextNode(),l.push({type:2,index:++s});i.append(c[h],Tn())}}}else if(i.nodeType===8)if(i.data===lc)l.push({type:2,index:s});else{let c=-1;for(;(c=i.data.indexOf(qt,c+1))!==-1;)l.push({type:7,index:s}),c+=qt.length-1}s++}}static createElement(t,r){const n=_r.createElement("template");return n.innerHTML=t,n}}function Gr(e,t,r=e,n){var o,a,l;if(t===Vr)return t;let i=n!==void 0?(o=r._$Co)==null?void 0:o[n]:r._$Cl;const s=Pn(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==s&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),s===void 0?i=void 0:(i=new s(e),i._$AT(e,r,n)),n!==void 0?((l=r._$Co)!=null?l:r._$Co=[])[n]=i:r._$Cl=i),i!==void 0&&(t=Gr(e,i._$AS(e,t.values),i,n)),t}class d0{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var u;const{el:{content:r},parts:n}=this._$AD,i=((u=t==null?void 0:t.creationScope)!=null?u:_r).importNode(r,!0);dr.currentNode=i;let s=dr.nextNode(),o=0,a=0,l=n[0];for(;l!==void 0;){if(o===l.index){let d;l.type===2?d=new Gn(s,s.nextSibling,this,t):l.type===1?d=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(d=new p0(s,this,t)),this._$AV.push(d),l=n[++a]}o!==(l==null?void 0:l.index)&&(s=dr.nextNode(),o++)}return dr.currentNode=_r,i}p(t){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}}class Gn{get _$AU(){var t,r;return(r=(t=this._$AM)==null?void 0:t._$AU)!=null?r:this._$Cv}constructor(t,r,n,i){var s;this.type=2,this._$AH=$e,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=(s=i==null?void 0:i.isConnected)!=null?s:!0}get parentNode(){let t=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Gr(this,t,r),Pn(t)?t===$e||t==null||t===""?(this._$AH!==$e&&this._$AR(),this._$AH=$e):t!==this._$AH&&t!==Vr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):l0(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==$e&&Pn(this._$AH)?this._$AA.nextSibling.data=t:this.T(_r.createTextNode(t)),this._$AH=t}$(t){var s;const{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Dn.createElement(dc(n.h,n.h[0]),this.options)),n);if(((s=this._$AH)==null?void 0:s._$AD)===i)this._$AH.p(r);else{const o=new d0(i,this),a=o.u(this.options);o.p(r),this.T(a),this._$AH=o}}_$AC(t){let r=Bl.get(t.strings);return r===void 0&&Bl.set(t.strings,r=new Dn(t)),r}k(t){aa(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,i=0;for(const s of t)i===r.length?r.push(n=new Gn(this.O(Tn()),this.O(Tn()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,r);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var r;this._$AM===void 0&&(this._$Cv=t,(r=this._$AP)==null||r.call(this,t))}}class is{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,s){this.type=1,this._$AH=$e,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=$e}_$AI(t,r=this,n,i){const s=this.strings;let o=!1;if(s===void 0)t=Gr(this,t,r,0),o=!Pn(t)||t!==this._$AH&&t!==Vr,o&&(this._$AH=t);else{const a=t;let l,u;for(t=s[0],l=0;l<s.length-1;l++)u=Gr(this,a[n+l],r,l),u===Vr&&(u=this._$AH[l]),o||(o=!Pn(u)||u!==this._$AH[l]),u===$e?t=$e:t!==$e&&(t+=(u!=null?u:"")+s[l+1]),this._$AH[l]=u}o&&!i&&this.j(t)}j(t){t===$e?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class c0 extends is{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$e?void 0:t}}class h0 extends is{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==$e)}}class f0 extends is{constructor(t,r,n,i,s){super(t,r,n,i,s),this.type=5}_$AI(t,r=this){var o;if((t=(o=Gr(this,t,r,0))!=null?o:$e)===Vr)return;const n=this._$AH,i=t===$e&&n!==$e||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==$e&&(n===$e||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var r,n;typeof this._$AH=="function"?this._$AH.call((n=(r=this.options)==null?void 0:r.host)!=null?n:this.element,t):this._$AH.handleEvent(t)}}class p0{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Gr(this,t)}}const zs=yn.litHtmlPolyfillSupport;var cd;zs==null||zs(Dn,Gn),((cd=yn.litHtmlVersions)!=null?cd:yn.litHtmlVersions=[]).push("3.2.1");const m0=(e,t,r)=>{var s,o;const n=(s=r==null?void 0:r.renderBefore)!=null?s:t;let i=n._$litPart$;if(i===void 0){const a=(o=r==null?void 0:r.renderBefore)!=null?o:null;n._$litPart$=i=new Gn(t.insertBefore(Tn(),a),a,void 0,r!=null?r:{})}return i._$AI(e),i};/**
|
|
41
|
+
* @license
|
|
42
|
+
* Copyright 2017 Google LLC
|
|
43
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
|
+
*/let Nr=class extends Dr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r,n;const t=super.createRenderRoot();return(n=(r=this.renderOptions).renderBefore)!=null||(r.renderBefore=t.firstChild),t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=m0(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Vr}};var hd;Nr._$litElement$=!0,Nr.finalized=!0,(hd=globalThis.litElementHydrateSupport)==null||hd.call(globalThis,{LitElement:Nr});const $s=globalThis.litElementPolyfillSupport;$s==null||$s({LitElement:Nr});var fd;((fd=globalThis.litElementVersions)!=null?fd:globalThis.litElementVersions=[]).push("4.1.1");/**
|
|
45
|
+
* @license
|
|
46
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
47
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
48
|
+
*/const _0=e=>class extends e{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(r,n,i){super.attributeChangedCallback(r,n,i),r==="theme"&&this._set_theme(i)}};/**
|
|
49
|
+
* @license
|
|
50
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
51
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
52
|
+
*/const cc=[],To=new Set,la=new Set;function hc(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function g0(e){return hc(customElements.get(e))}function b0(e=[]){return[e].flat(1/0).filter(t=>t instanceof oa?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function fc(e,t){return(e||"").split(" ").some(r=>new RegExp(`^${r.split("*").join(".*")}$`,"u").test(t))}function pc(e){return e.map(t=>t.cssText).join(`
|
|
53
|
+
`)}const Mi="vaadin-themable-mixin-style";function v0(e,t){const r=document.createElement("style");r.id=Mi,r.textContent=pc(e),t.content.appendChild(r)}function y0(e){if(!e.shadowRoot)return;const t=e.constructor;if(e instanceof Nr)[...e.shadowRoot.querySelectorAll("style")].forEach(r=>r.remove()),sc(e.shadowRoot,t.elementStyles);else{const r=e.shadowRoot.getElementById(Mi),n=t.prototype._template;r.textContent=n.content.getElementById(Mi).textContent}}function w0(e){To.forEach(t=>{const r=t.deref();r instanceof e?y0(r):r||To.delete(t)})}function mc(e){if(e.prototype instanceof Nr)e.elementStyles=e.finalizeStyles(e.styles);else{const t=e.prototype._template;t.content.getElementById(Mi).textContent=pc(e.getStylesForThis())}la.forEach(t=>{const r=customElements.get(t);r!==e&&r.prototype instanceof e&&mc(r)})}function C0(e,t){const r=e.__themes;return!r||!t?!1:r.some(n=>n.styles.some(i=>t.some(s=>s.cssText===i.cssText)))}function Fe(e,t,r={}){t=b0(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,r):cc.push({themeFor:e,styles:t,include:r.include,moduleId:r.moduleId}),e&&la.forEach(n=>{if(fc(e,n)&&g0(n)){const i=customElements.get(n);C0(i,t)?console.warn(`Registering styles that already exist for ${n}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${n}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),mc(i),w0(i)}})}function Po(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():cc}function x0(e=""){let t=0;return e.startsWith("lumo-")||e.startsWith("material-")?t=1:e.startsWith("vaadin-")&&(t=2),t}function _c(e){const t=[];return e.include&&[].concat(e.include).forEach(r=>{const n=Po().find(i=>i.moduleId===r);n?t.push(..._c(n),...n.styles):console.warn(`Included moduleId ${r} not found in style registry`)},e.styles),t}function E0(e){const t=`${e}-default-theme`,r=Po().filter(n=>n.moduleId!==t&&fc(n.themeFor,e)).map(n=>sn(sr({},n),{styles:[..._c(n),...n.styles],includePriority:x0(n.moduleId)})).sort((n,i)=>i.includePriority-n.includePriority);return r.length>0?r:Po().filter(n=>n.moduleId===t)}const br=e=>class extends _0(e){constructor(){super(),To.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&la.add(this.is),this.elementStyles)return;const r=this.prototype._template;!r||hc(this)||v0(this.getStylesForThis(),r)}static finalizeStyles(r){const n=this.getStylesForThis();return r?[...[r].flat(1/0),...n]:n}static getStylesForThis(){const r=e.__themes||[],n=Object.getPrototypeOf(this.prototype),i=(n?n.constructor.__themes:[])||[];this.__themes=[...r,...i,...E0(this.is)];const s=this.__themes.flatMap(o=>o.styles);return s.filter((o,a)=>a===s.lastIndexOf(o))}};/**
|
|
54
|
+
* @license
|
|
55
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
56
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
57
|
+
*/const S0=(e,...t)=>{const r=document.createElement("style");r.id=e,r.textContent=t.map(n=>n.toString()).join(`
|
|
58
|
+
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",r)},Jr=(e,...t)=>{S0(`lumo-${e}`,t)};/**
|
|
59
|
+
* @license
|
|
60
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
61
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
62
|
+
*/const k0=ge`
|
|
63
|
+
:host {
|
|
64
|
+
--lumo-size-xs: 1.625rem;
|
|
65
|
+
--lumo-size-s: 1.875rem;
|
|
66
|
+
--lumo-size-m: 2.25rem;
|
|
67
|
+
--lumo-size-l: 2.75rem;
|
|
68
|
+
--lumo-size-xl: 3.5rem;
|
|
69
|
+
|
|
70
|
+
/* Icons */
|
|
71
|
+
--lumo-icon-size-s: 1.25em;
|
|
72
|
+
--lumo-icon-size-m: 1.5em;
|
|
73
|
+
--lumo-icon-size-l: 2.25em;
|
|
74
|
+
/* For backwards compatibility */
|
|
75
|
+
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
76
|
+
}
|
|
77
|
+
`;Jr("sizing-props",k0);/**
|
|
78
|
+
* @license
|
|
79
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
80
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
81
|
+
*/const T0=ge`
|
|
82
|
+
:host {
|
|
83
|
+
/* Square */
|
|
84
|
+
--lumo-space-xs: 0.25rem;
|
|
85
|
+
--lumo-space-s: 0.5rem;
|
|
86
|
+
--lumo-space-m: 1rem;
|
|
87
|
+
--lumo-space-l: 1.5rem;
|
|
88
|
+
--lumo-space-xl: 2.5rem;
|
|
89
|
+
|
|
90
|
+
/* Wide */
|
|
91
|
+
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
92
|
+
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
93
|
+
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
94
|
+
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
95
|
+
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
96
|
+
|
|
97
|
+
/* Tall */
|
|
98
|
+
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
99
|
+
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
100
|
+
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
101
|
+
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
102
|
+
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
103
|
+
}
|
|
104
|
+
`;Jr("spacing-props",T0);/**
|
|
105
|
+
* @license
|
|
106
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
107
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
108
|
+
*/const P0=ge`
|
|
109
|
+
:host {
|
|
110
|
+
/* Border radius */
|
|
111
|
+
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
112
|
+
--lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
|
|
113
|
+
--lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
|
|
114
|
+
|
|
115
|
+
/* Shadow */
|
|
116
|
+
--lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
|
|
117
|
+
--lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
|
|
118
|
+
--lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
|
|
119
|
+
--lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
|
|
120
|
+
--lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
|
|
121
|
+
|
|
122
|
+
/* Clickable element cursor */
|
|
123
|
+
--lumo-clickable-cursor: default;
|
|
124
|
+
}
|
|
125
|
+
`;ge`
|
|
126
|
+
html {
|
|
127
|
+
/* Button */
|
|
128
|
+
--vaadin-button-background: var(--lumo-contrast-5pct);
|
|
129
|
+
--vaadin-button-border: none;
|
|
130
|
+
--vaadin-button-border-radius: var(--lumo-border-radius-m);
|
|
131
|
+
--vaadin-button-font-size: var(--lumo-font-size-m);
|
|
132
|
+
--vaadin-button-font-weight: 500;
|
|
133
|
+
--vaadin-button-height: var(--lumo-size-m);
|
|
134
|
+
--vaadin-button-margin: var(--lumo-space-xs) 0;
|
|
135
|
+
--vaadin-button-min-width: calc(var(--vaadin-button-height) * 2);
|
|
136
|
+
--vaadin-button-padding: 0 calc(var(--vaadin-button-height) / 3 + var(--lumo-border-radius-m) / 2);
|
|
137
|
+
--vaadin-button-text-color: var(--lumo-primary-text-color);
|
|
138
|
+
--vaadin-button-primary-background: var(--lumo-primary-color);
|
|
139
|
+
--vaadin-button-primary-border: none;
|
|
140
|
+
--vaadin-button-primary-font-weight: 600;
|
|
141
|
+
--vaadin-button-primary-text-color: var(--lumo-primary-contrast-color);
|
|
142
|
+
--vaadin-button-tertiary-background: transparent !important;
|
|
143
|
+
--vaadin-button-tertiary-text-color: var(--lumo-primary-text-color);
|
|
144
|
+
--vaadin-button-tertiary-font-weight: 500;
|
|
145
|
+
--vaadin-button-tertiary-padding: 0 calc(var(--vaadin-button-height) / 6);
|
|
146
|
+
/* Checkbox */
|
|
147
|
+
--vaadin-checkbox-background: var(--lumo-contrast-20pct);
|
|
148
|
+
--vaadin-checkbox-background-hover: var(--lumo-contrast-30pct);
|
|
149
|
+
--vaadin-checkbox-border-radius: var(--lumo-border-radius-s);
|
|
150
|
+
--vaadin-checkbox-checkmark-char: var(--lumo-icons-checkmark);
|
|
151
|
+
--vaadin-checkbox-checkmark-char-indeterminate: '';
|
|
152
|
+
--vaadin-checkbox-checkmark-color: var(--lumo-primary-contrast-color);
|
|
153
|
+
--vaadin-checkbox-checkmark-size: calc(var(--vaadin-checkbox-size) + 2px);
|
|
154
|
+
--vaadin-checkbox-label-color: var(--lumo-body-text-color);
|
|
155
|
+
--vaadin-checkbox-label-font-size: var(--lumo-font-size-m);
|
|
156
|
+
--vaadin-checkbox-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs) var(--lumo-space-xs);
|
|
157
|
+
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
158
|
+
--vaadin-checkbox-disabled-checkmark-color: var(--lumo-contrast-30pct);
|
|
159
|
+
--vaadin-checkbox-disabled-background: var(--lumo-contrast-10pct);
|
|
160
|
+
/* Radio button */
|
|
161
|
+
--vaadin-radio-button-background: var(--lumo-contrast-20pct);
|
|
162
|
+
--vaadin-radio-button-background-hover: var(--lumo-contrast-30pct);
|
|
163
|
+
--vaadin-radio-button-dot-color: var(--lumo-primary-contrast-color);
|
|
164
|
+
--vaadin-radio-button-dot-size: 3px;
|
|
165
|
+
--vaadin-radio-button-label-color: var(--lumo-body-text-color);
|
|
166
|
+
--vaadin-radio-button-label-font-size: var(--lumo-font-size-m);
|
|
167
|
+
--vaadin-radio-button-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs)
|
|
168
|
+
var(--lumo-space-xs);
|
|
169
|
+
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
170
|
+
--vaadin-radio-button-disabled-background: var(--lumo-contrast-10pct);
|
|
171
|
+
--vaadin-radio-button-disabled-dot-color: var(--lumo-contrast-30pct);
|
|
172
|
+
--vaadin-selection-color: var(--lumo-primary-color);
|
|
173
|
+
--vaadin-selection-color-text: var(--lumo-primary-text-color);
|
|
174
|
+
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
175
|
+
--vaadin-focus-ring-color: var(--lumo-primary-color-50pct);
|
|
176
|
+
--vaadin-focus-ring-width: 2px;
|
|
177
|
+
/* Label */
|
|
178
|
+
--vaadin-input-field-label-color: var(--lumo-secondary-text-color);
|
|
179
|
+
--vaadin-input-field-focused-label-color: var(--lumo-primary-text-color);
|
|
180
|
+
--vaadin-input-field-hovered-label-color: var(--lumo-body-text-color);
|
|
181
|
+
--vaadin-input-field-label-font-size: var(--lumo-font-size-s);
|
|
182
|
+
--vaadin-input-field-label-font-weight: 500;
|
|
183
|
+
/* Helper */
|
|
184
|
+
--vaadin-input-field-helper-color: var(--lumo-secondary-text-color);
|
|
185
|
+
--vaadin-input-field-helper-font-size: var(--lumo-font-size-xs);
|
|
186
|
+
--vaadin-input-field-helper-font-weight: 400;
|
|
187
|
+
--vaadin-input-field-helper-spacing: 0.4em;
|
|
188
|
+
/* Error message */
|
|
189
|
+
--vaadin-input-field-error-color: var(--lumo-error-text-color);
|
|
190
|
+
--vaadin-input-field-error-font-size: var(--lumo-font-size-xs);
|
|
191
|
+
--vaadin-input-field-error-font-weight: 400;
|
|
192
|
+
/* Input field */
|
|
193
|
+
--vaadin-input-field-background: var(--lumo-contrast-10pct);
|
|
194
|
+
--vaadin-input-field-icon-color: var(--lumo-contrast-60pct);
|
|
195
|
+
--vaadin-input-field-icon-size: var(--lumo-icon-size-m);
|
|
196
|
+
--vaadin-input-field-invalid-background: var(--lumo-error-color-10pct);
|
|
197
|
+
--vaadin-input-field-invalid-hover-highlight: var(--lumo-error-color-50pct);
|
|
198
|
+
--vaadin-input-field-disabled-background: var(--lumo-contrast-5pct);
|
|
199
|
+
--vaadin-input-field-disabled-value-color: var(--lumo-disabled-text-color);
|
|
200
|
+
--vaadin-input-field-height: var(--lumo-size-m);
|
|
201
|
+
--vaadin-input-field-hover-highlight: var(--lumo-contrast-50pct);
|
|
202
|
+
--vaadin-input-field-placeholder-color: var(--lumo-secondary-text-color);
|
|
203
|
+
--vaadin-input-field-readonly-border: 1px dashed var(--lumo-contrast-30pct);
|
|
204
|
+
--vaadin-input-field-value-color: var(--lumo-body-text-color);
|
|
205
|
+
--vaadin-input-field-value-font-size: var(--lumo-font-size-m);
|
|
206
|
+
--vaadin-input-field-value-font-weight: 500;
|
|
207
|
+
}
|
|
208
|
+
`;Jr("style-props",P0);/**
|
|
209
|
+
* @license
|
|
210
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
211
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
212
|
+
*/const D0=ge`
|
|
213
|
+
:host {
|
|
214
|
+
/* Base (background) */
|
|
215
|
+
--lumo-base-color: #fff;
|
|
216
|
+
|
|
217
|
+
/* Tint */
|
|
218
|
+
--lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
|
|
219
|
+
--lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
|
|
220
|
+
--lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
|
|
221
|
+
--lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
|
|
222
|
+
--lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
|
|
223
|
+
--lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
|
|
224
|
+
--lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
|
|
225
|
+
--lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
|
|
226
|
+
--lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
|
|
227
|
+
--lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
|
|
228
|
+
--lumo-tint: #fff;
|
|
229
|
+
|
|
230
|
+
/* Shade */
|
|
231
|
+
--lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
|
|
232
|
+
--lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
|
|
233
|
+
--lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
|
|
234
|
+
--lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
|
|
235
|
+
--lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
|
|
236
|
+
--lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
|
|
237
|
+
--lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
|
|
238
|
+
--lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
|
|
239
|
+
--lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
|
|
240
|
+
--lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
|
|
241
|
+
--lumo-shade: hsl(214, 35%, 15%);
|
|
242
|
+
|
|
243
|
+
/* Contrast */
|
|
244
|
+
--lumo-contrast-5pct: var(--lumo-shade-5pct);
|
|
245
|
+
--lumo-contrast-10pct: var(--lumo-shade-10pct);
|
|
246
|
+
--lumo-contrast-20pct: var(--lumo-shade-20pct);
|
|
247
|
+
--lumo-contrast-30pct: var(--lumo-shade-30pct);
|
|
248
|
+
--lumo-contrast-40pct: var(--lumo-shade-40pct);
|
|
249
|
+
--lumo-contrast-50pct: var(--lumo-shade-50pct);
|
|
250
|
+
--lumo-contrast-60pct: var(--lumo-shade-60pct);
|
|
251
|
+
--lumo-contrast-70pct: var(--lumo-shade-70pct);
|
|
252
|
+
--lumo-contrast-80pct: var(--lumo-shade-80pct);
|
|
253
|
+
--lumo-contrast-90pct: var(--lumo-shade-90pct);
|
|
254
|
+
--lumo-contrast: var(--lumo-shade);
|
|
255
|
+
|
|
256
|
+
/* Text */
|
|
257
|
+
--lumo-header-text-color: var(--lumo-contrast);
|
|
258
|
+
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
259
|
+
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
260
|
+
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
261
|
+
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
262
|
+
|
|
263
|
+
/* Primary */
|
|
264
|
+
--lumo-primary-color: hsl(214, 100%, 48%);
|
|
265
|
+
--lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
|
|
266
|
+
--lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
|
|
267
|
+
--lumo-primary-text-color: hsl(214, 100%, 43%);
|
|
268
|
+
--lumo-primary-contrast-color: #fff;
|
|
269
|
+
|
|
270
|
+
/* Error */
|
|
271
|
+
--lumo-error-color: hsl(3, 85%, 48%);
|
|
272
|
+
--lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
|
|
273
|
+
--lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
|
|
274
|
+
--lumo-error-text-color: hsl(3, 89%, 42%);
|
|
275
|
+
--lumo-error-contrast-color: #fff;
|
|
276
|
+
|
|
277
|
+
/* Success */
|
|
278
|
+
--lumo-success-color: hsl(145, 72%, 30%);
|
|
279
|
+
--lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
|
|
280
|
+
--lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
|
|
281
|
+
--lumo-success-text-color: hsl(145, 85%, 25%);
|
|
282
|
+
--lumo-success-contrast-color: #fff;
|
|
283
|
+
|
|
284
|
+
/* Warning */
|
|
285
|
+
--lumo-warning-color: hsl(48, 100%, 50%);
|
|
286
|
+
--lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
|
|
287
|
+
--lumo-warning-text-color: hsl(32, 100%, 30%);
|
|
288
|
+
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/* forced-colors mode adjustments */
|
|
292
|
+
@media (forced-colors: active) {
|
|
293
|
+
html {
|
|
294
|
+
--lumo-disabled-text-color: GrayText;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
`;Jr("color-props",D0);const A0=ge`
|
|
298
|
+
[theme~='dark'] {
|
|
299
|
+
/* Base (background) */
|
|
300
|
+
--lumo-base-color: hsl(214, 35%, 21%);
|
|
301
|
+
|
|
302
|
+
/* Tint */
|
|
303
|
+
--lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
|
|
304
|
+
--lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
|
|
305
|
+
--lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
|
|
306
|
+
--lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
|
|
307
|
+
--lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
|
|
308
|
+
--lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
|
|
309
|
+
--lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
|
|
310
|
+
--lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
|
|
311
|
+
--lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
|
|
312
|
+
--lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
|
|
313
|
+
--lumo-tint: hsl(214, 100%, 98%);
|
|
314
|
+
|
|
315
|
+
/* Shade */
|
|
316
|
+
--lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
|
|
317
|
+
--lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
|
|
318
|
+
--lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
|
|
319
|
+
--lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
|
|
320
|
+
--lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
|
|
321
|
+
--lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
|
|
322
|
+
--lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
|
|
323
|
+
--lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
|
|
324
|
+
--lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
|
|
325
|
+
--lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
|
|
326
|
+
--lumo-shade: hsl(214, 33%, 13%);
|
|
327
|
+
|
|
328
|
+
/* Contrast */
|
|
329
|
+
--lumo-contrast-5pct: var(--lumo-tint-5pct);
|
|
330
|
+
--lumo-contrast-10pct: var(--lumo-tint-10pct);
|
|
331
|
+
--lumo-contrast-20pct: var(--lumo-tint-20pct);
|
|
332
|
+
--lumo-contrast-30pct: var(--lumo-tint-30pct);
|
|
333
|
+
--lumo-contrast-40pct: var(--lumo-tint-40pct);
|
|
334
|
+
--lumo-contrast-50pct: var(--lumo-tint-50pct);
|
|
335
|
+
--lumo-contrast-60pct: var(--lumo-tint-60pct);
|
|
336
|
+
--lumo-contrast-70pct: var(--lumo-tint-70pct);
|
|
337
|
+
--lumo-contrast-80pct: var(--lumo-tint-80pct);
|
|
338
|
+
--lumo-contrast-90pct: var(--lumo-tint-90pct);
|
|
339
|
+
--lumo-contrast: var(--lumo-tint);
|
|
340
|
+
|
|
341
|
+
/* Text */
|
|
342
|
+
--lumo-header-text-color: var(--lumo-contrast);
|
|
343
|
+
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
344
|
+
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
345
|
+
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
346
|
+
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
347
|
+
|
|
348
|
+
/* Primary */
|
|
349
|
+
--lumo-primary-color: hsl(214, 90%, 48%);
|
|
350
|
+
--lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
|
|
351
|
+
--lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
|
|
352
|
+
--lumo-primary-text-color: hsl(214, 90%, 77%);
|
|
353
|
+
--lumo-primary-contrast-color: #fff;
|
|
354
|
+
|
|
355
|
+
/* Error */
|
|
356
|
+
--lumo-error-color: hsl(3, 79%, 49%);
|
|
357
|
+
--lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
|
|
358
|
+
--lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
|
|
359
|
+
--lumo-error-text-color: hsl(3, 100%, 80%);
|
|
360
|
+
|
|
361
|
+
/* Success */
|
|
362
|
+
--lumo-success-color: hsl(145, 72%, 30%);
|
|
363
|
+
--lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
|
|
364
|
+
--lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
|
|
365
|
+
--lumo-success-text-color: hsl(145, 85%, 46%);
|
|
366
|
+
|
|
367
|
+
/* Warning */
|
|
368
|
+
--lumo-warning-color: hsl(43, 100%, 48%);
|
|
369
|
+
--lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
|
|
370
|
+
--lumo-warning-text-color: hsl(45, 100%, 60%);
|
|
371
|
+
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
html {
|
|
375
|
+
color: var(--lumo-body-text-color);
|
|
376
|
+
background-color: var(--lumo-base-color);
|
|
377
|
+
color-scheme: light;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
[theme~='dark'] {
|
|
381
|
+
color: var(--lumo-body-text-color);
|
|
382
|
+
background-color: var(--lumo-base-color);
|
|
383
|
+
color-scheme: dark;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
h1,
|
|
387
|
+
h2,
|
|
388
|
+
h3,
|
|
389
|
+
h4,
|
|
390
|
+
h5,
|
|
391
|
+
h6 {
|
|
392
|
+
color: var(--lumo-header-text-color);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
a:where(:any-link) {
|
|
396
|
+
color: var(--lumo-primary-text-color);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
a:not(:any-link) {
|
|
400
|
+
color: var(--lumo-disabled-text-color);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
blockquote {
|
|
404
|
+
color: var(--lumo-secondary-text-color);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
code,
|
|
408
|
+
pre {
|
|
409
|
+
background-color: var(--lumo-contrast-10pct);
|
|
410
|
+
border-radius: var(--lumo-border-radius-m);
|
|
411
|
+
}
|
|
412
|
+
pre code {
|
|
413
|
+
background: transparent;
|
|
414
|
+
}
|
|
415
|
+
`;Fe("",A0,{moduleId:"lumo-color"});/**
|
|
416
|
+
* @license
|
|
417
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
418
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
419
|
+
*/const M0=ge`
|
|
420
|
+
:host {
|
|
421
|
+
/* prettier-ignore */
|
|
422
|
+
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
423
|
+
|
|
424
|
+
/* Font sizes */
|
|
425
|
+
--lumo-font-size-xxs: 0.75rem;
|
|
426
|
+
--lumo-font-size-xs: 0.8125rem;
|
|
427
|
+
--lumo-font-size-s: 0.875rem;
|
|
428
|
+
--lumo-font-size-m: 1rem;
|
|
429
|
+
--lumo-font-size-l: 1.125rem;
|
|
430
|
+
--lumo-font-size-xl: 1.375rem;
|
|
431
|
+
--lumo-font-size-xxl: 1.75rem;
|
|
432
|
+
--lumo-font-size-xxxl: 2.5rem;
|
|
433
|
+
|
|
434
|
+
/* Line heights */
|
|
435
|
+
--lumo-line-height-xs: 1.25;
|
|
436
|
+
--lumo-line-height-s: 1.375;
|
|
437
|
+
--lumo-line-height-m: 1.625;
|
|
438
|
+
}
|
|
439
|
+
`,O0=ge`
|
|
440
|
+
body,
|
|
441
|
+
:host {
|
|
442
|
+
font-family: var(--lumo-font-family);
|
|
443
|
+
font-size: var(--lumo-font-size-m);
|
|
444
|
+
line-height: var(--lumo-line-height-m);
|
|
445
|
+
-webkit-text-size-adjust: 100%;
|
|
446
|
+
-webkit-font-smoothing: antialiased;
|
|
447
|
+
-moz-osx-font-smoothing: grayscale;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
small,
|
|
451
|
+
[theme~='font-size-s'] {
|
|
452
|
+
font-size: var(--lumo-font-size-s);
|
|
453
|
+
line-height: var(--lumo-line-height-s);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
[theme~='font-size-xs'] {
|
|
457
|
+
font-size: var(--lumo-font-size-xs);
|
|
458
|
+
line-height: var(--lumo-line-height-xs);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
:where(h1, h2, h3, h4, h5, h6) {
|
|
462
|
+
font-weight: 600;
|
|
463
|
+
line-height: var(--lumo-line-height-xs);
|
|
464
|
+
margin-block: 0;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
:where(h1) {
|
|
468
|
+
font-size: var(--lumo-font-size-xxxl);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
:where(h2) {
|
|
472
|
+
font-size: var(--lumo-font-size-xxl);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
:where(h3) {
|
|
476
|
+
font-size: var(--lumo-font-size-xl);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
:where(h4) {
|
|
480
|
+
font-size: var(--lumo-font-size-l);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
:where(h5) {
|
|
484
|
+
font-size: var(--lumo-font-size-m);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
:where(h6) {
|
|
488
|
+
font-size: var(--lumo-font-size-xs);
|
|
489
|
+
text-transform: uppercase;
|
|
490
|
+
letter-spacing: 0.03em;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
p,
|
|
494
|
+
blockquote {
|
|
495
|
+
margin-top: 0.5em;
|
|
496
|
+
margin-bottom: 0.75em;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
a {
|
|
500
|
+
text-decoration: none;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
a:where(:any-link):hover {
|
|
504
|
+
text-decoration: underline;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
hr {
|
|
508
|
+
display: block;
|
|
509
|
+
align-self: stretch;
|
|
510
|
+
height: 1px;
|
|
511
|
+
border: 0;
|
|
512
|
+
padding: 0;
|
|
513
|
+
margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
|
|
514
|
+
background-color: var(--lumo-contrast-10pct);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
blockquote {
|
|
518
|
+
border-left: 2px solid var(--lumo-contrast-30pct);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
b,
|
|
522
|
+
strong {
|
|
523
|
+
font-weight: 600;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/* RTL specific styles */
|
|
527
|
+
blockquote[dir='rtl'] {
|
|
528
|
+
border-left: none;
|
|
529
|
+
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
530
|
+
}
|
|
531
|
+
`;Fe("",O0,{moduleId:"lumo-typography"});Jr("typography-props",M0);/**
|
|
532
|
+
* @license
|
|
533
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
534
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
535
|
+
*/const gc=ge`
|
|
536
|
+
:host {
|
|
537
|
+
top: var(--lumo-space-m);
|
|
538
|
+
right: var(--lumo-space-m);
|
|
539
|
+
bottom: var(--lumo-space-m);
|
|
540
|
+
left: var(--lumo-space-m);
|
|
541
|
+
/* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
|
|
542
|
+
/* stylelint-disable-next-line */
|
|
543
|
+
outline: 0px solid transparent;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
[part='overlay'] {
|
|
547
|
+
background-color: var(--lumo-base-color);
|
|
548
|
+
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
549
|
+
border-radius: var(--lumo-border-radius-m);
|
|
550
|
+
box-shadow:
|
|
551
|
+
0 0 0 1px var(--lumo-shade-5pct),
|
|
552
|
+
var(--lumo-box-shadow-m);
|
|
553
|
+
color: var(--lumo-body-text-color);
|
|
554
|
+
font-family: var(--lumo-font-family);
|
|
555
|
+
font-size: var(--lumo-font-size-m);
|
|
556
|
+
font-weight: 400;
|
|
557
|
+
line-height: var(--lumo-line-height-m);
|
|
558
|
+
letter-spacing: 0;
|
|
559
|
+
text-transform: none;
|
|
560
|
+
-webkit-text-size-adjust: 100%;
|
|
561
|
+
-webkit-font-smoothing: antialiased;
|
|
562
|
+
-moz-osx-font-smoothing: grayscale;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
[part='content'] {
|
|
566
|
+
padding: var(--lumo-space-xs);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
[part='backdrop'] {
|
|
570
|
+
background-color: var(--lumo-shade-20pct);
|
|
571
|
+
animation: 0.2s lumo-overlay-backdrop-enter both;
|
|
572
|
+
will-change: opacity;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
@keyframes lumo-overlay-backdrop-enter {
|
|
576
|
+
0% {
|
|
577
|
+
opacity: 0;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
:host([closing]) [part='backdrop'] {
|
|
582
|
+
animation: 0.2s lumo-overlay-backdrop-exit both;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
@keyframes lumo-overlay-backdrop-exit {
|
|
586
|
+
100% {
|
|
587
|
+
opacity: 0;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
@keyframes lumo-overlay-dummy-animation {
|
|
592
|
+
0% {
|
|
593
|
+
opacity: 1;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
100% {
|
|
597
|
+
opacity: 1;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
`;Fe("",gc,{moduleId:"lumo-overlay"});/**
|
|
601
|
+
* @license
|
|
602
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
603
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
604
|
+
*/const bc=ge`
|
|
605
|
+
:host([opening]),
|
|
606
|
+
:host([closing]) {
|
|
607
|
+
animation: 0.14s lumo-overlay-dummy-animation;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
[part='overlay'] {
|
|
611
|
+
will-change: opacity, transform;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
:host([opening]) [part='overlay'] {
|
|
615
|
+
animation: 0.1s lumo-menu-overlay-enter ease-out both;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
@keyframes lumo-menu-overlay-enter {
|
|
619
|
+
0% {
|
|
620
|
+
opacity: 0;
|
|
621
|
+
transform: translateY(-4px);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
:host([closing]) [part='overlay'] {
|
|
626
|
+
animation: 0.1s lumo-menu-overlay-exit both;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
@keyframes lumo-menu-overlay-exit {
|
|
630
|
+
100% {
|
|
631
|
+
opacity: 0;
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
`;Fe("",bc,{moduleId:"lumo-menu-overlay-core"});const B0=ge`
|
|
635
|
+
/* Small viewport (bottom sheet) styles */
|
|
636
|
+
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
637
|
+
@media (max-width: 450px), (max-height: 450px) {
|
|
638
|
+
:host {
|
|
639
|
+
top: 0 !important;
|
|
640
|
+
right: 0 !important;
|
|
641
|
+
bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
|
|
642
|
+
left: 0 !important;
|
|
643
|
+
align-items: stretch !important;
|
|
644
|
+
justify-content: flex-end !important;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
[part='overlay'] {
|
|
648
|
+
max-height: 50vh;
|
|
649
|
+
width: 100vw;
|
|
650
|
+
border-radius: 0;
|
|
651
|
+
box-shadow: var(--lumo-box-shadow-xl);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/* The content part scrolls instead of the overlay part, because of the gradient fade-out */
|
|
655
|
+
[part='content'] {
|
|
656
|
+
padding: 30px var(--lumo-space-m);
|
|
657
|
+
max-height: inherit;
|
|
658
|
+
box-sizing: border-box;
|
|
659
|
+
-webkit-overflow-scrolling: touch;
|
|
660
|
+
overflow: auto;
|
|
661
|
+
-webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
662
|
+
mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
[part='backdrop'] {
|
|
666
|
+
display: block;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
/* Animations */
|
|
670
|
+
|
|
671
|
+
:host([opening]) [part='overlay'] {
|
|
672
|
+
animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
:host([closing]),
|
|
676
|
+
:host([closing]) [part='backdrop'] {
|
|
677
|
+
animation-delay: 0.14s;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
:host([closing]) [part='overlay'] {
|
|
681
|
+
animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
@keyframes lumo-mobile-menu-overlay-enter {
|
|
686
|
+
0% {
|
|
687
|
+
transform: translateY(150%);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
@keyframes lumo-mobile-menu-overlay-exit {
|
|
692
|
+
100% {
|
|
693
|
+
transform: translateY(150%);
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
`,vc=[gc,bc,B0];Fe("",vc,{moduleId:"lumo-menu-overlay"});const N0=ge`
|
|
697
|
+
[part='overlay'] {
|
|
698
|
+
/*
|
|
699
|
+
Width:
|
|
700
|
+
date cell widths
|
|
701
|
+
+ month calendar side padding
|
|
702
|
+
+ year scroller width
|
|
703
|
+
*/
|
|
704
|
+
/* prettier-ignore */
|
|
705
|
+
width:
|
|
706
|
+
calc(
|
|
707
|
+
var(--lumo-size-m) * 7
|
|
708
|
+
+ var(--lumo-space-xs) * 2
|
|
709
|
+
+ 57px
|
|
710
|
+
);
|
|
711
|
+
height: 100%;
|
|
712
|
+
max-height: calc(var(--lumo-size-m) * 14);
|
|
713
|
+
overflow: hidden;
|
|
714
|
+
-webkit-tap-highlight-color: transparent;
|
|
715
|
+
flex-direction: column;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
[part='content'] {
|
|
719
|
+
padding: 0;
|
|
720
|
+
height: 100%;
|
|
721
|
+
overflow: hidden;
|
|
722
|
+
-webkit-mask-image: none;
|
|
723
|
+
mask-image: none;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
:host([top-aligned]) [part~='overlay'] {
|
|
727
|
+
margin-top: var(--lumo-space-xs);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
:host([bottom-aligned]) [part~='overlay'] {
|
|
731
|
+
margin-bottom: var(--lumo-space-xs);
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
@media (max-width: 450px), (max-height: 450px) {
|
|
735
|
+
[part='overlay'] {
|
|
736
|
+
width: 100vw;
|
|
737
|
+
height: 70vh;
|
|
738
|
+
max-height: 70vh;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
`;Fe("vaadin-date-picker-overlay",[vc,N0],{moduleId:"lumo-date-picker-overlay"});const I0=ge`
|
|
742
|
+
:host {
|
|
743
|
+
/* Sizing */
|
|
744
|
+
--lumo-button-size: var(--lumo-size-m);
|
|
745
|
+
min-width: var(--vaadin-button-min-width, calc(var(--_button-size) * 2));
|
|
746
|
+
height: var(--_button-size);
|
|
747
|
+
padding: var(--vaadin-button-padding, 0 calc(var(--_button-size) / 3 + var(--lumo-border-radius-m) / 2));
|
|
748
|
+
margin: var(--vaadin-button-margin, var(--lumo-space-xs) 0);
|
|
749
|
+
box-sizing: border-box;
|
|
750
|
+
/* Style */
|
|
751
|
+
font-family: var(--lumo-font-family);
|
|
752
|
+
font-size: var(--vaadin-button-font-size, var(--lumo-font-size-m));
|
|
753
|
+
font-weight: var(--vaadin-button-font-weight, 500);
|
|
754
|
+
color: var(--_lumo-button-text-color);
|
|
755
|
+
background: var(--_lumo-button-background);
|
|
756
|
+
border: var(--vaadin-button-border, none);
|
|
757
|
+
border-radius: var(--vaadin-button-border-radius, var(--lumo-border-radius-m));
|
|
758
|
+
cursor: var(--lumo-clickable-cursor);
|
|
759
|
+
-webkit-tap-highlight-color: transparent;
|
|
760
|
+
-webkit-font-smoothing: antialiased;
|
|
761
|
+
-moz-osx-font-smoothing: grayscale;
|
|
762
|
+
flex-shrink: 0;
|
|
763
|
+
--_button-size: var(--vaadin-button-height, var(--lumo-button-size));
|
|
764
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
765
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
766
|
+
/* Used by notification */
|
|
767
|
+
--_lumo-button-background: var(--vaadin-button-background, var(--lumo-contrast-5pct));
|
|
768
|
+
--_lumo-button-text-color: var(--vaadin-button-text-color, var(--lumo-primary-text-color));
|
|
769
|
+
--_lumo-button-primary-background: var(--vaadin-button-primary-background, var(--lumo-primary-color));
|
|
770
|
+
--_lumo-button-primary-text-color: var(--vaadin-button-primary-text-color, var(--lumo-primary-contrast-color));
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
/* Set only for the internal parts so we don't affect the host vertical alignment */
|
|
774
|
+
[part='label'],
|
|
775
|
+
[part='prefix'],
|
|
776
|
+
[part='suffix'] {
|
|
777
|
+
line-height: var(--lumo-line-height-xs);
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
[part='label'] {
|
|
781
|
+
padding: calc(var(--lumo-button-size) / 6) 0;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
:host([theme~='small']) {
|
|
785
|
+
font-size: var(--lumo-font-size-s);
|
|
786
|
+
--lumo-button-size: var(--lumo-size-s);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
:host([theme~='large']) {
|
|
790
|
+
font-size: var(--lumo-font-size-l);
|
|
791
|
+
--lumo-button-size: var(--lumo-size-l);
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
/* For interaction states */
|
|
795
|
+
:host::before,
|
|
796
|
+
:host::after {
|
|
797
|
+
content: '';
|
|
798
|
+
/* We rely on the host always being relative */
|
|
799
|
+
position: absolute;
|
|
800
|
+
z-index: 1;
|
|
801
|
+
inset: 0;
|
|
802
|
+
background-color: currentColor;
|
|
803
|
+
border-radius: inherit;
|
|
804
|
+
opacity: 0;
|
|
805
|
+
pointer-events: none;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
/* Hover */
|
|
809
|
+
|
|
810
|
+
@media (any-hover: hover) {
|
|
811
|
+
:host(:hover)::before {
|
|
812
|
+
opacity: 0.02;
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
/* Active */
|
|
817
|
+
|
|
818
|
+
:host::after {
|
|
819
|
+
transition:
|
|
820
|
+
opacity 1.4s,
|
|
821
|
+
transform 0.1s;
|
|
822
|
+
filter: blur(8px);
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
:host([active])::before {
|
|
826
|
+
opacity: 0.05;
|
|
827
|
+
transition-duration: 0s;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
:host([active])::after {
|
|
831
|
+
opacity: 0.1;
|
|
832
|
+
transition-duration: 0s, 0s;
|
|
833
|
+
transform: scale(0);
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/* Keyboard focus */
|
|
837
|
+
|
|
838
|
+
:host([focus-ring]) {
|
|
839
|
+
box-shadow:
|
|
840
|
+
0 0 0 calc(1px * var(--_focus-ring-gap-on, 0)) var(--_focus-ring-gap-color, var(--lumo-base-color)),
|
|
841
|
+
0 0 0 calc(var(--_focus-ring-width) + 1px * var(--_focus-ring-gap-on, 0)) var(--_focus-ring-color);
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
:host([theme~='primary'][focus-ring]) {
|
|
845
|
+
--_focus-ring-gap-on: 1;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
/* Types (primary, tertiary, tertiary-inline */
|
|
849
|
+
|
|
850
|
+
:host([theme~='tertiary']),
|
|
851
|
+
:host([theme~='tertiary-inline']) {
|
|
852
|
+
--_background: transparent !important;
|
|
853
|
+
background: var(--vaadin-button-tertiary-background, var(--_background));
|
|
854
|
+
min-width: 0;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
:host([theme~='tertiary']) {
|
|
858
|
+
border: var(--vaadin-button-tertiary-border, none);
|
|
859
|
+
color: var(--vaadin-button-tertiary-text-color, var(--lumo-primary-text-color));
|
|
860
|
+
font-weight: var(--vaadin-button-tertiary-font-weight, 500);
|
|
861
|
+
padding: var(--vaadin-button-tertiary-padding, 0 calc(var(--_button-size) / 6));
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
:host([theme~='tertiary-inline'])::before {
|
|
865
|
+
display: none;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
:host([theme~='tertiary-inline']) {
|
|
869
|
+
margin: 0;
|
|
870
|
+
height: auto;
|
|
871
|
+
padding: 0;
|
|
872
|
+
line-height: inherit;
|
|
873
|
+
font-size: inherit;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
:host([theme~='tertiary-inline']) [part='label'] {
|
|
877
|
+
padding: 0;
|
|
878
|
+
overflow: visible;
|
|
879
|
+
line-height: inherit;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
:host([theme~='primary']) {
|
|
883
|
+
background: var(--_lumo-button-primary-background);
|
|
884
|
+
border: var(--vaadin-button-primary-border, none);
|
|
885
|
+
color: var(--_lumo-button-primary-text-color);
|
|
886
|
+
font-weight: var(--vaadin-button-primary-font-weight, 600);
|
|
887
|
+
min-width: calc(var(--lumo-button-size) * 2.5);
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
:host([theme~='primary'])::before {
|
|
891
|
+
background-color: black;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
@media (any-hover: hover) {
|
|
895
|
+
:host([theme~='primary']:hover)::before {
|
|
896
|
+
opacity: 0.05;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
:host([theme~='primary'][active])::before {
|
|
901
|
+
opacity: 0.1;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
:host([theme~='primary'][active])::after {
|
|
905
|
+
opacity: 0.2;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
/* Colors (success, warning, error, contrast) */
|
|
909
|
+
|
|
910
|
+
:host([theme~='success']) {
|
|
911
|
+
color: var(--lumo-success-text-color);
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
:host([theme~='success'][theme~='primary']) {
|
|
915
|
+
background-color: var(--lumo-success-color);
|
|
916
|
+
color: var(--lumo-success-contrast-color);
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
:host([theme~='warning']) {
|
|
920
|
+
color: var(--lumo-warning-text-color);
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
:host([theme~='warning'][theme~='primary']) {
|
|
924
|
+
background-color: var(--lumo-warning-color);
|
|
925
|
+
color: var(--lumo-warning-contrast-color);
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
:host([theme~='error']) {
|
|
929
|
+
color: var(--lumo-error-text-color);
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
:host([theme~='error'][theme~='primary']) {
|
|
933
|
+
background-color: var(--lumo-error-color);
|
|
934
|
+
color: var(--lumo-error-contrast-color);
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
:host([theme~='contrast']) {
|
|
938
|
+
color: var(--lumo-contrast);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
:host([theme~='contrast'][theme~='primary']) {
|
|
942
|
+
background-color: var(--lumo-contrast);
|
|
943
|
+
color: var(--lumo-base-color);
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
/* Disabled state. Keep selectors after other color variants. */
|
|
947
|
+
|
|
948
|
+
:host([disabled]) {
|
|
949
|
+
pointer-events: none;
|
|
950
|
+
color: var(--lumo-disabled-text-color);
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
:host([theme~='primary'][disabled]) {
|
|
954
|
+
background-color: var(--lumo-contrast-30pct);
|
|
955
|
+
color: var(--lumo-base-color);
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
:host([theme~='primary'][disabled]) [part] {
|
|
959
|
+
opacity: 0.7;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
/* Icons */
|
|
963
|
+
|
|
964
|
+
[part] ::slotted(vaadin-icon) {
|
|
965
|
+
display: inline-block;
|
|
966
|
+
width: var(--lumo-icon-size-m);
|
|
967
|
+
height: var(--lumo-icon-size-m);
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
971
|
+
[part] ::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
972
|
+
padding: 0.25em;
|
|
973
|
+
box-sizing: border-box !important;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
[part='prefix'] {
|
|
977
|
+
margin-left: -0.25em;
|
|
978
|
+
margin-right: 0.25em;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
[part='suffix'] {
|
|
982
|
+
margin-left: 0.25em;
|
|
983
|
+
margin-right: -0.25em;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
/* Icon-only */
|
|
987
|
+
|
|
988
|
+
:host([theme~='icon']:not([theme~='tertiary-inline'])) {
|
|
989
|
+
min-width: var(--lumo-button-size);
|
|
990
|
+
padding-left: calc(var(--lumo-button-size) / 4);
|
|
991
|
+
padding-right: calc(var(--lumo-button-size) / 4);
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
:host([theme~='icon']) [part='prefix'],
|
|
995
|
+
:host([theme~='icon']) [part='suffix'] {
|
|
996
|
+
margin-left: 0;
|
|
997
|
+
margin-right: 0;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/* RTL specific styles */
|
|
1001
|
+
|
|
1002
|
+
:host([dir='rtl']) [part='prefix'] {
|
|
1003
|
+
margin-left: 0.25em;
|
|
1004
|
+
margin-right: -0.25em;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
:host([dir='rtl']) [part='suffix'] {
|
|
1008
|
+
margin-left: -0.25em;
|
|
1009
|
+
margin-right: 0.25em;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
:host([dir='rtl'][theme~='icon']) [part='prefix'],
|
|
1013
|
+
:host([dir='rtl'][theme~='icon']) [part='suffix'] {
|
|
1014
|
+
margin-left: 0;
|
|
1015
|
+
margin-right: 0;
|
|
1016
|
+
}
|
|
1017
|
+
`;Fe("vaadin-button",I0,{moduleId:"lumo-button"});Fe("vaadin-date-picker-year",ge`
|
|
1018
|
+
:host([current]) [part='year-number'] {
|
|
1019
|
+
color: var(--lumo-primary-text-color);
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
:host(:not([current])) [part='year-number'],
|
|
1023
|
+
[part='year-separator'] {
|
|
1024
|
+
opacity: var(--_lumo-date-picker-year-opacity, 0.7);
|
|
1025
|
+
transition: 0.2s opacity;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
[part='year-number'],
|
|
1029
|
+
[part='year-separator'] {
|
|
1030
|
+
display: flex;
|
|
1031
|
+
align-items: center;
|
|
1032
|
+
justify-content: center;
|
|
1033
|
+
height: 50%;
|
|
1034
|
+
transform: translateY(-50%);
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
[part='year-separator']::after {
|
|
1038
|
+
color: var(--lumo-disabled-text-color);
|
|
1039
|
+
content: '\\2022';
|
|
1040
|
+
}
|
|
1041
|
+
`,{moduleId:"lumo-date-picker-year"});Fe("vaadin-date-picker-overlay-content",ge`
|
|
1042
|
+
:host {
|
|
1043
|
+
position: relative;
|
|
1044
|
+
/* Background for the year scroller, placed here as we are using a mask image on the actual years part */
|
|
1045
|
+
background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
|
|
1046
|
+
background-size: 57px 100%;
|
|
1047
|
+
background-position: top right;
|
|
1048
|
+
background-repeat: no-repeat;
|
|
1049
|
+
cursor: default;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
::slotted([slot='months']) {
|
|
1053
|
+
/* Month calendar height:
|
|
1054
|
+
header height + margin-bottom
|
|
1055
|
+
+ weekdays height + margin-bottom
|
|
1056
|
+
+ date cell heights
|
|
1057
|
+
+ small margin between month calendars
|
|
1058
|
+
*/
|
|
1059
|
+
/* prettier-ignore */
|
|
1060
|
+
--vaadin-infinite-scroller-item-height:
|
|
1061
|
+
calc(
|
|
1062
|
+
var(--lumo-font-size-l) + var(--lumo-space-m)
|
|
1063
|
+
+ var(--lumo-font-size-xs) + var(--lumo-space-s)
|
|
1064
|
+
+ var(--lumo-size-m) * 6
|
|
1065
|
+
+ var(--lumo-space-s)
|
|
1066
|
+
);
|
|
1067
|
+
--vaadin-infinite-scroller-buffer-offset: 10%;
|
|
1068
|
+
-webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
|
|
1069
|
+
mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
|
|
1070
|
+
position: relative;
|
|
1071
|
+
margin-right: 57px;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
::slotted([slot='years']) {
|
|
1075
|
+
/* TODO get rid of fixed magic number */
|
|
1076
|
+
--vaadin-infinite-scroller-buffer-width: 97px;
|
|
1077
|
+
width: 57px;
|
|
1078
|
+
height: auto;
|
|
1079
|
+
top: 0;
|
|
1080
|
+
bottom: 0;
|
|
1081
|
+
font-size: var(--lumo-font-size-s);
|
|
1082
|
+
box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
|
|
1083
|
+
-webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
|
|
1084
|
+
mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
|
|
1085
|
+
cursor: var(--lumo-clickable-cursor);
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
::slotted([slot='years']:hover) {
|
|
1089
|
+
--_lumo-date-picker-year-opacity: 1;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
/* TODO unsupported selector */
|
|
1093
|
+
#scrollers {
|
|
1094
|
+
position: static;
|
|
1095
|
+
display: block;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
/* TODO fix this in vaadin-date-picker that it adapts to the width of the year scroller */
|
|
1099
|
+
:host([desktop]) ::slotted([slot='months']) {
|
|
1100
|
+
right: auto;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
/* Year scroller position indicator */
|
|
1104
|
+
::slotted([slot='years'])::before {
|
|
1105
|
+
border: none;
|
|
1106
|
+
width: 1em;
|
|
1107
|
+
height: 1em;
|
|
1108
|
+
background-color: var(--lumo-base-color);
|
|
1109
|
+
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
1110
|
+
transform: translate(-75%, -50%) rotate(45deg);
|
|
1111
|
+
border-top-right-radius: var(--lumo-border-radius-s);
|
|
1112
|
+
box-shadow: 2px -2px 6px 0 var(--lumo-shade-5pct);
|
|
1113
|
+
z-index: 1;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
[part='toolbar'] {
|
|
1117
|
+
padding: var(--lumo-space-s);
|
|
1118
|
+
border-bottom-left-radius: var(--lumo-border-radius-l);
|
|
1119
|
+
margin-right: 57px;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
[part='toolbar'] ::slotted(vaadin-button) {
|
|
1123
|
+
margin: 0;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
/* Narrow viewport mode (fullscreen) */
|
|
1127
|
+
|
|
1128
|
+
:host([fullscreen]) [part='toolbar'] {
|
|
1129
|
+
order: -1;
|
|
1130
|
+
background-color: var(--lumo-base-color);
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
:host([fullscreen]) [part='overlay-header'] {
|
|
1134
|
+
order: -2;
|
|
1135
|
+
height: var(--lumo-size-m);
|
|
1136
|
+
padding: var(--lumo-space-s);
|
|
1137
|
+
position: absolute;
|
|
1138
|
+
left: 0;
|
|
1139
|
+
right: 0;
|
|
1140
|
+
justify-content: center;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
:host([fullscreen]) [part='toggle-button'],
|
|
1144
|
+
:host([fullscreen]) [part='clear-button'],
|
|
1145
|
+
[part='overlay-header'] [part='label'] {
|
|
1146
|
+
display: none;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/* Very narrow screen (year scroller initially hidden) */
|
|
1150
|
+
|
|
1151
|
+
[part='years-toggle-button'] {
|
|
1152
|
+
display: flex;
|
|
1153
|
+
align-items: center;
|
|
1154
|
+
height: var(--lumo-size-s);
|
|
1155
|
+
padding: 0 0.5em;
|
|
1156
|
+
border-radius: var(--lumo-border-radius-m);
|
|
1157
|
+
z-index: 3;
|
|
1158
|
+
color: var(--lumo-primary-text-color);
|
|
1159
|
+
font-weight: 500;
|
|
1160
|
+
-webkit-font-smoothing: antialiased;
|
|
1161
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
:host([years-visible]) [part='years-toggle-button'] {
|
|
1165
|
+
background-color: var(--lumo-primary-color);
|
|
1166
|
+
color: var(--lumo-primary-contrast-color);
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
/* TODO magic number (same as used for media-query in vaadin-date-picker-overlay-content) */
|
|
1170
|
+
@media screen and (max-width: 374px) {
|
|
1171
|
+
:host {
|
|
1172
|
+
background-image: none;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
[part='toolbar'],
|
|
1176
|
+
::slotted([slot='months']) {
|
|
1177
|
+
margin-right: 0;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
/* TODO make date-picker adapt to the width of the years part */
|
|
1181
|
+
::slotted([slot='years']) {
|
|
1182
|
+
--vaadin-infinite-scroller-buffer-width: 90px;
|
|
1183
|
+
width: 50px;
|
|
1184
|
+
background-color: var(--lumo-shade-5pct);
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
:host([years-visible]) ::slotted([slot='months']) {
|
|
1188
|
+
padding-left: 50px;
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
`,{moduleId:"lumo-date-picker-overlay-content"});Fe("vaadin-month-calendar",ge`
|
|
1192
|
+
:host {
|
|
1193
|
+
-moz-user-select: none;
|
|
1194
|
+
-webkit-user-select: none;
|
|
1195
|
+
-webkit-tap-highlight-color: transparent;
|
|
1196
|
+
user-select: none;
|
|
1197
|
+
font-size: var(--lumo-font-size-m);
|
|
1198
|
+
color: var(--lumo-body-text-color);
|
|
1199
|
+
text-align: center;
|
|
1200
|
+
padding: 0 var(--lumo-space-xs);
|
|
1201
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
1202
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
1203
|
+
--_selection-color: var(--vaadin-selection-color, var(--lumo-primary-color));
|
|
1204
|
+
--_selection-color-text: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
/* Month header */
|
|
1208
|
+
|
|
1209
|
+
[part='month-header'] {
|
|
1210
|
+
color: var(--lumo-header-text-color);
|
|
1211
|
+
font-size: var(--lumo-font-size-l);
|
|
1212
|
+
line-height: 1;
|
|
1213
|
+
font-weight: 500;
|
|
1214
|
+
margin-bottom: var(--lumo-space-m);
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
/* Week days and numbers */
|
|
1218
|
+
|
|
1219
|
+
[part='weekdays'],
|
|
1220
|
+
[part='weekday'],
|
|
1221
|
+
[part='week-number'] {
|
|
1222
|
+
font-size: var(--lumo-font-size-xxs);
|
|
1223
|
+
line-height: 1;
|
|
1224
|
+
color: var(--lumo-secondary-text-color);
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
[part='weekdays'] {
|
|
1228
|
+
margin-bottom: var(--lumo-space-s);
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
[part='weekday']:empty,
|
|
1232
|
+
[part='week-number'] {
|
|
1233
|
+
width: var(--lumo-size-xs);
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
/* Date and week number cells */
|
|
1237
|
+
|
|
1238
|
+
[part~='date'],
|
|
1239
|
+
[part='week-number'] {
|
|
1240
|
+
box-sizing: border-box;
|
|
1241
|
+
display: inline-flex;
|
|
1242
|
+
align-items: center;
|
|
1243
|
+
justify-content: center;
|
|
1244
|
+
height: var(--lumo-size-m);
|
|
1245
|
+
position: relative;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
[part~='date'] {
|
|
1249
|
+
transition: color 0.1s;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
[part~='date']:not(:empty) {
|
|
1253
|
+
cursor: var(--lumo-clickable-cursor);
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
:host([week-numbers]) [part='weekday']:not(:empty),
|
|
1257
|
+
:host([week-numbers]) [part~='date'] {
|
|
1258
|
+
width: calc((100% - var(--lumo-size-xs)) / 7);
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
/* Today date */
|
|
1262
|
+
|
|
1263
|
+
[part~='date'][part~='today'] {
|
|
1264
|
+
color: var(--_selection-color-text);
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
/* Focused date */
|
|
1268
|
+
|
|
1269
|
+
[part~='date']::before {
|
|
1270
|
+
content: '';
|
|
1271
|
+
position: absolute;
|
|
1272
|
+
z-index: -1;
|
|
1273
|
+
top: 50%;
|
|
1274
|
+
left: 50%;
|
|
1275
|
+
transform: translate(-50%, -50%);
|
|
1276
|
+
min-width: 2em;
|
|
1277
|
+
min-height: 2em;
|
|
1278
|
+
width: 80%;
|
|
1279
|
+
height: 80%;
|
|
1280
|
+
max-height: 100%;
|
|
1281
|
+
max-width: 100%;
|
|
1282
|
+
border-radius: var(--lumo-border-radius-m);
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
[part~='date'][part~='focused']::before {
|
|
1286
|
+
box-shadow:
|
|
1287
|
+
0 0 0 1px var(--lumo-base-color),
|
|
1288
|
+
0 0 0 calc(var(--_focus-ring-width) + 1px) var(--_focus-ring-color);
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
:host(:not([focused])) [part~='date'][part~='focused']::before {
|
|
1292
|
+
animation: vaadin-date-picker-month-calendar-focus-date 1.4s infinite;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
@keyframes vaadin-date-picker-month-calendar-focus-date {
|
|
1296
|
+
50% {
|
|
1297
|
+
box-shadow:
|
|
1298
|
+
0 0 0 1px var(--lumo-base-color),
|
|
1299
|
+
0 0 0 calc(var(--_focus-ring-width) + 1px) transparent;
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
[part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::before {
|
|
1304
|
+
background-color: var(--lumo-primary-color-10pct);
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
[part~='date'][part~='selected'] {
|
|
1308
|
+
color: var(--lumo-primary-contrast-color);
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
[part~='date'][part~='selected']::before {
|
|
1312
|
+
background-color: var(--_selection-color);
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
[part~='date'][part~='disabled'] {
|
|
1316
|
+
color: var(--lumo-disabled-text-color);
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
@media (pointer: coarse) {
|
|
1320
|
+
[part~='date']:hover:not([part~='selected'])::before,
|
|
1321
|
+
:host(:not([focus-ring])) [part~='focused']:not([part~='selected'])::before {
|
|
1322
|
+
display: none;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
[part~='date']:not(:empty):not([part~='disabled']):active::before {
|
|
1326
|
+
display: block;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
:host(:not([focus-ring])) [part~='date'][part~='selected']::before {
|
|
1330
|
+
box-shadow: none;
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
/* Disabled */
|
|
1334
|
+
|
|
1335
|
+
:host([disabled]) * {
|
|
1336
|
+
color: var(--lumo-disabled-text-color) !important;
|
|
1337
|
+
}
|
|
1338
|
+
`,{moduleId:"lumo-month-calendar"});Fe("vaadin-input-container",ge`
|
|
1339
|
+
:host {
|
|
1340
|
+
background: var(--_background);
|
|
1341
|
+
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
1342
|
+
font-weight: var(--vaadin-input-field-value-font-weight, 500);
|
|
1343
|
+
line-height: 1;
|
|
1344
|
+
position: relative;
|
|
1345
|
+
cursor: text;
|
|
1346
|
+
box-sizing: border-box;
|
|
1347
|
+
border-radius:
|
|
1348
|
+
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
|
|
1349
|
+
var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
|
|
1350
|
+
var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
|
|
1351
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
|
|
1352
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
|
|
1353
|
+
/* Fallback */
|
|
1354
|
+
--_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
|
|
1355
|
+
--_input-height: var(--lumo-text-field-size, var(--lumo-size-m));
|
|
1356
|
+
/* Default values */
|
|
1357
|
+
--_background: var(--vaadin-input-field-background, var(--lumo-contrast-10pct));
|
|
1358
|
+
--_hover-highlight: var(--vaadin-input-field-hover-highlight, var(--lumo-contrast-50pct));
|
|
1359
|
+
--_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
|
|
1360
|
+
--_icon-color: var(--vaadin-input-field-icon-color, var(--lumo-contrast-60pct));
|
|
1361
|
+
--_icon-size: var(--vaadin-input-field-icon-size, var(--lumo-icon-size-m));
|
|
1362
|
+
--_invalid-background: var(--vaadin-input-field-invalid-background, var(--lumo-error-color-10pct));
|
|
1363
|
+
--_invalid-hover-highlight: var(--vaadin-input-field-invalid-hover-highlight, var(--lumo-error-color-50pct));
|
|
1364
|
+
--_disabled-background: var(--vaadin-input-field-disabled-background, var(--lumo-contrast-5pct));
|
|
1365
|
+
--_disabled-value-color: var(--vaadin-input-field-disabled-value-color, var(--lumo-disabled-text-color));
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
:host([dir='rtl']) {
|
|
1369
|
+
border-radius:
|
|
1370
|
+
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
1371
|
+
var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
|
|
1372
|
+
var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
|
|
1373
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
|
|
1374
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
/* Used for hover and activation effects */
|
|
1378
|
+
:host::after {
|
|
1379
|
+
content: '';
|
|
1380
|
+
position: absolute;
|
|
1381
|
+
inset: 0;
|
|
1382
|
+
border-radius: inherit;
|
|
1383
|
+
pointer-events: none;
|
|
1384
|
+
background: var(--_hover-highlight);
|
|
1385
|
+
opacity: 0;
|
|
1386
|
+
transition:
|
|
1387
|
+
transform 0.15s,
|
|
1388
|
+
opacity 0.2s;
|
|
1389
|
+
transform-origin: 100% 0;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
::slotted(:not([slot$='fix'])) {
|
|
1393
|
+
cursor: inherit;
|
|
1394
|
+
min-height: var(--vaadin-input-field-height, var(--_input-height));
|
|
1395
|
+
padding: 0 0.25em;
|
|
1396
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
|
|
1397
|
+
-webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
1398
|
+
mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
/* Read-only */
|
|
1402
|
+
:host([readonly]) {
|
|
1403
|
+
color: var(--lumo-secondary-text-color);
|
|
1404
|
+
background-color: transparent;
|
|
1405
|
+
cursor: default;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
:host([readonly])::after {
|
|
1409
|
+
background-color: transparent;
|
|
1410
|
+
opacity: 1;
|
|
1411
|
+
border: var(--vaadin-input-field-readonly-border, 1px dashed var(--lumo-contrast-30pct));
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
/* Disabled */
|
|
1415
|
+
:host([disabled]) {
|
|
1416
|
+
background: var(--_disabled-background);
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
:host([disabled]) ::slotted(:not([slot$='fix'])) {
|
|
1420
|
+
-webkit-text-fill-color: var(--_disabled-value-color);
|
|
1421
|
+
color: var(--_disabled-value-color);
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
/* Invalid */
|
|
1425
|
+
:host([invalid]) {
|
|
1426
|
+
background: var(--_invalid-background);
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
:host([invalid]:not([readonly]))::after {
|
|
1430
|
+
background: var(--_invalid-hover-highlight);
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
/* Slotted icons */
|
|
1434
|
+
::slotted(vaadin-icon) {
|
|
1435
|
+
color: var(--_icon-color);
|
|
1436
|
+
width: var(--_icon-size);
|
|
1437
|
+
height: var(--_icon-size);
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
1441
|
+
::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
1442
|
+
padding: 0.25em;
|
|
1443
|
+
box-sizing: border-box !important;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
/* Text align */
|
|
1447
|
+
:host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1448
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
@-moz-document url-prefix() {
|
|
1452
|
+
:host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1453
|
+
mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
:host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
|
|
1458
|
+
text-align: start;
|
|
1459
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
:host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
|
|
1463
|
+
text-align: center;
|
|
1464
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
:host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
|
|
1468
|
+
text-align: end;
|
|
1469
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
@-moz-document url-prefix() {
|
|
1473
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
1474
|
+
:host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
|
|
1475
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
@-moz-document url-prefix() {
|
|
1480
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
1481
|
+
:host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
|
|
1482
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
/* RTL specific styles */
|
|
1487
|
+
:host([dir='rtl'])::after {
|
|
1488
|
+
transform-origin: 0% 0;
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
:host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1492
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
:host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1496
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
:host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1500
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
@-moz-document url-prefix() {
|
|
1504
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
1505
|
+
:host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1506
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
@-moz-document url-prefix() {
|
|
1511
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
1512
|
+
:host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1513
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
`,{moduleId:"lumo-input-container"});/**
|
|
1517
|
+
* @license
|
|
1518
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1519
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1520
|
+
*/const L0=ge`
|
|
1521
|
+
@font-face {
|
|
1522
|
+
font-family: 'lumo-icons';
|
|
1523
|
+
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==)
|
|
1524
|
+
format('woff');
|
|
1525
|
+
font-weight: normal;
|
|
1526
|
+
font-style: normal;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
html {
|
|
1530
|
+
--lumo-icons-align-center: '\\ea01';
|
|
1531
|
+
--lumo-icons-align-left: '\\ea02';
|
|
1532
|
+
--lumo-icons-align-right: '\\ea03';
|
|
1533
|
+
--lumo-icons-angle-down: '\\ea04';
|
|
1534
|
+
--lumo-icons-angle-left: '\\ea05';
|
|
1535
|
+
--lumo-icons-angle-right: '\\ea06';
|
|
1536
|
+
--lumo-icons-angle-up: '\\ea07';
|
|
1537
|
+
--lumo-icons-arrow-down: '\\ea08';
|
|
1538
|
+
--lumo-icons-arrow-left: '\\ea09';
|
|
1539
|
+
--lumo-icons-arrow-right: '\\ea0a';
|
|
1540
|
+
--lumo-icons-arrow-up: '\\ea0b';
|
|
1541
|
+
--lumo-icons-bar-chart: '\\ea0c';
|
|
1542
|
+
--lumo-icons-bell: '\\ea0d';
|
|
1543
|
+
--lumo-icons-calendar: '\\ea0e';
|
|
1544
|
+
--lumo-icons-checkmark: '\\ea0f';
|
|
1545
|
+
--lumo-icons-chevron-down: '\\ea10';
|
|
1546
|
+
--lumo-icons-chevron-left: '\\ea11';
|
|
1547
|
+
--lumo-icons-chevron-right: '\\ea12';
|
|
1548
|
+
--lumo-icons-chevron-up: '\\ea13';
|
|
1549
|
+
--lumo-icons-clock: '\\ea14';
|
|
1550
|
+
--lumo-icons-cog: '\\ea15';
|
|
1551
|
+
--lumo-icons-cross: '\\ea16';
|
|
1552
|
+
--lumo-icons-download: '\\ea17';
|
|
1553
|
+
--lumo-icons-dropdown: '\\ea18';
|
|
1554
|
+
--lumo-icons-edit: '\\ea19';
|
|
1555
|
+
--lumo-icons-error: '\\ea1a';
|
|
1556
|
+
--lumo-icons-eye: '\\ea1b';
|
|
1557
|
+
--lumo-icons-eye-disabled: '\\ea1c';
|
|
1558
|
+
--lumo-icons-menu: '\\ea1d';
|
|
1559
|
+
--lumo-icons-minus: '\\ea1e';
|
|
1560
|
+
--lumo-icons-ordered-list: '\\ea1f';
|
|
1561
|
+
--lumo-icons-phone: '\\ea20';
|
|
1562
|
+
--lumo-icons-photo: '\\ea21';
|
|
1563
|
+
--lumo-icons-play: '\\ea22';
|
|
1564
|
+
--lumo-icons-plus: '\\ea23';
|
|
1565
|
+
--lumo-icons-redo: '\\ea24';
|
|
1566
|
+
--lumo-icons-reload: '\\ea25';
|
|
1567
|
+
--lumo-icons-search: '\\ea26';
|
|
1568
|
+
--lumo-icons-undo: '\\ea27';
|
|
1569
|
+
--lumo-icons-unordered-list: '\\ea28';
|
|
1570
|
+
--lumo-icons-upload: '\\ea29';
|
|
1571
|
+
--lumo-icons-user: '\\ea2a';
|
|
1572
|
+
}
|
|
1573
|
+
`;Jr("font-icons",L0);/**
|
|
1574
|
+
* @license
|
|
1575
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1576
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1577
|
+
*/const yc=ge`
|
|
1578
|
+
[part$='button'] {
|
|
1579
|
+
flex: none;
|
|
1580
|
+
width: 1em;
|
|
1581
|
+
height: 1em;
|
|
1582
|
+
line-height: 1;
|
|
1583
|
+
font-size: var(--lumo-icon-size-m);
|
|
1584
|
+
text-align: center;
|
|
1585
|
+
color: var(--lumo-contrast-60pct);
|
|
1586
|
+
transition: 0.2s color;
|
|
1587
|
+
cursor: var(--lumo-clickable-cursor);
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
[part$='button']:hover {
|
|
1591
|
+
color: var(--lumo-contrast-90pct);
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
:host([disabled]) [part$='button'],
|
|
1595
|
+
:host([readonly]) [part$='button'] {
|
|
1596
|
+
color: var(--lumo-contrast-20pct);
|
|
1597
|
+
cursor: default;
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
[part$='button']::before {
|
|
1601
|
+
font-family: 'lumo-icons';
|
|
1602
|
+
display: block;
|
|
1603
|
+
}
|
|
1604
|
+
`;Fe("",yc,{moduleId:"lumo-field-button"});/**
|
|
1605
|
+
* @license
|
|
1606
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1607
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1608
|
+
*/const F0=ge`
|
|
1609
|
+
:host {
|
|
1610
|
+
--_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
:host([has-helper]) [part='helper-text']::before {
|
|
1614
|
+
content: '';
|
|
1615
|
+
display: block;
|
|
1616
|
+
height: var(--_helper-spacing);
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
[part='helper-text'] {
|
|
1620
|
+
display: block;
|
|
1621
|
+
color: var(--vaadin-input-field-helper-color, var(--lumo-secondary-text-color));
|
|
1622
|
+
font-size: var(--vaadin-input-field-helper-font-size, var(--lumo-font-size-xs));
|
|
1623
|
+
line-height: var(--lumo-line-height-xs);
|
|
1624
|
+
font-weight: var(--vaadin-input-field-helper-font-weight, 400);
|
|
1625
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
1626
|
+
transition: color 0.2s;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
:host(:hover:not([readonly])) [part='helper-text'] {
|
|
1630
|
+
color: var(--lumo-body-text-color);
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
:host([disabled]) [part='helper-text'] {
|
|
1634
|
+
color: var(--lumo-disabled-text-color);
|
|
1635
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
|
|
1639
|
+
display: none;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
|
|
1643
|
+
content: '';
|
|
1644
|
+
display: block;
|
|
1645
|
+
height: var(--_helper-spacing);
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
:host([has-helper][theme~='helper-above-field']) [part='label'] {
|
|
1649
|
+
order: 0;
|
|
1650
|
+
padding-bottom: var(--_helper-spacing);
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
|
|
1654
|
+
order: 1;
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
:host([has-helper][theme~='helper-above-field']) [part='label'] + * {
|
|
1658
|
+
order: 2;
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
:host([has-helper][theme~='helper-above-field']) [part='error-message'] {
|
|
1662
|
+
order: 3;
|
|
1663
|
+
}
|
|
1664
|
+
`;/**
|
|
1665
|
+
* @license
|
|
1666
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1667
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1668
|
+
*/const wc=ge`
|
|
1669
|
+
[part='label'] {
|
|
1670
|
+
align-self: flex-start;
|
|
1671
|
+
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
1672
|
+
font-weight: var(--vaadin-input-field-label-font-weight, 500);
|
|
1673
|
+
font-size: var(--vaadin-input-field-label-font-size, var(--lumo-font-size-s));
|
|
1674
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
1675
|
+
transition: color 0.2s;
|
|
1676
|
+
line-height: 1;
|
|
1677
|
+
padding-right: 1em;
|
|
1678
|
+
padding-bottom: 0.5em;
|
|
1679
|
+
/* As a workaround for diacritics being cut off, add a top padding and a
|
|
1680
|
+
negative margin to compensate */
|
|
1681
|
+
padding-top: 0.25em;
|
|
1682
|
+
margin-top: -0.25em;
|
|
1683
|
+
overflow: hidden;
|
|
1684
|
+
white-space: nowrap;
|
|
1685
|
+
text-overflow: ellipsis;
|
|
1686
|
+
position: relative;
|
|
1687
|
+
max-width: 100%;
|
|
1688
|
+
box-sizing: border-box;
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
:host([focused]:not([readonly])) [part='label'] {
|
|
1692
|
+
color: var(--vaadin-input-field-focused-label-color, var(--lumo-primary-text-color));
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
1696
|
+
color: var(--vaadin-input-field-hovered-label-color, var(--lumo-body-text-color));
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
/* Touch device adjustment */
|
|
1700
|
+
@media (pointer: coarse) {
|
|
1701
|
+
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
1702
|
+
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
:host([has-label])::before {
|
|
1707
|
+
margin-top: calc(var(--lumo-font-size-s) * 1.5);
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
:host([has-label][theme~='small'])::before {
|
|
1711
|
+
margin-top: calc(var(--lumo-font-size-xs) * 1.5);
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
:host([has-label]) {
|
|
1715
|
+
padding-top: var(--lumo-space-m);
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
:host([has-label]) ::slotted([slot='tooltip']) {
|
|
1719
|
+
--vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
:host([required]) [part='required-indicator']::after {
|
|
1723
|
+
content: var(--lumo-required-field-indicator, '\\2022');
|
|
1724
|
+
transition: opacity 0.2s;
|
|
1725
|
+
color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
|
|
1726
|
+
position: absolute;
|
|
1727
|
+
right: 0;
|
|
1728
|
+
width: 1em;
|
|
1729
|
+
text-align: center;
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
:host([invalid]) [part='required-indicator']::after {
|
|
1733
|
+
color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
[part='error-message'] {
|
|
1737
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
1738
|
+
font-size: var(--vaadin-input-field-error-font-size, var(--lumo-font-size-xs));
|
|
1739
|
+
line-height: var(--lumo-line-height-xs);
|
|
1740
|
+
font-weight: var(--vaadin-input-field-error-font-weight, 400);
|
|
1741
|
+
color: var(--vaadin-input-field-error-color, var(--lumo-error-text-color));
|
|
1742
|
+
will-change: max-height;
|
|
1743
|
+
transition: 0.4s max-height;
|
|
1744
|
+
max-height: 5em;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
:host([has-error-message]) [part='error-message']::before,
|
|
1748
|
+
:host([has-error-message]) [part='error-message']::after {
|
|
1749
|
+
content: '';
|
|
1750
|
+
display: block;
|
|
1751
|
+
height: 0.4em;
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
:host(:not([invalid])) [part='error-message'] {
|
|
1755
|
+
max-height: 0;
|
|
1756
|
+
overflow: hidden;
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
/* RTL specific styles */
|
|
1760
|
+
|
|
1761
|
+
:host([dir='rtl']) [part='label'] {
|
|
1762
|
+
margin-left: 0;
|
|
1763
|
+
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
:host([dir='rtl']) [part='label'] {
|
|
1767
|
+
padding-left: 1em;
|
|
1768
|
+
padding-right: 0;
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
:host([dir='rtl']) [part='required-indicator']::after {
|
|
1772
|
+
right: auto;
|
|
1773
|
+
left: 0;
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
:host([dir='rtl']) [part='error-message'] {
|
|
1777
|
+
margin-left: 0;
|
|
1778
|
+
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
1779
|
+
}
|
|
1780
|
+
`;Fe("",wc,{moduleId:"lumo-required-field"});/**
|
|
1781
|
+
* @license
|
|
1782
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1783
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1784
|
+
*/const R0=ge`
|
|
1785
|
+
:host {
|
|
1786
|
+
--lumo-text-field-size: var(--lumo-size-m);
|
|
1787
|
+
color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
|
|
1788
|
+
font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
|
|
1789
|
+
font-family: var(--lumo-font-family);
|
|
1790
|
+
-webkit-font-smoothing: antialiased;
|
|
1791
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1792
|
+
-webkit-tap-highlight-color: transparent;
|
|
1793
|
+
padding: var(--lumo-space-xs) 0;
|
|
1794
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
1795
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
1796
|
+
--_input-height: var(--vaadin-input-field-height, var(--lumo-text-field-size));
|
|
1797
|
+
--_disabled-value-color: var(--vaadin-input-field-disabled-value-color, var(--lumo-disabled-text-color));
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
:host::before {
|
|
1801
|
+
height: var(--_input-height);
|
|
1802
|
+
box-sizing: border-box;
|
|
1803
|
+
display: inline-flex;
|
|
1804
|
+
align-items: center;
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
:host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
|
|
1808
|
+
-webkit-mask-image: none;
|
|
1809
|
+
mask-image: none;
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
::slotted(:is(input, textarea):placeholder-shown) {
|
|
1813
|
+
color: var(--vaadin-input-field-placeholder-color, var(--lumo-secondary-text-color));
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
/* Hover */
|
|
1817
|
+
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
1818
|
+
opacity: var(--vaadin-input-field-hover-highlight-opacity, 0.1);
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
/* Touch device adjustment */
|
|
1822
|
+
@media (pointer: coarse) {
|
|
1823
|
+
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
1824
|
+
opacity: 0;
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
:host(:active:not([readonly]):not([focused])) [part='input-field']::after {
|
|
1828
|
+
opacity: 0.2;
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
/* Trigger when not focusing using the keyboard */
|
|
1833
|
+
:host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
|
|
1834
|
+
transform: scaleX(0);
|
|
1835
|
+
transition-duration: 0.15s, 1s;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
/* Focus-ring */
|
|
1839
|
+
:host([focus-ring]) [part='input-field'] {
|
|
1840
|
+
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1843
|
+
/* Read-only and disabled */
|
|
1844
|
+
:host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
|
|
1845
|
+
opacity: 0;
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
/* Read-only style */
|
|
1849
|
+
:host([readonly]) {
|
|
1850
|
+
--vaadin-input-field-border-color: transparent;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
/* Disabled style */
|
|
1854
|
+
:host([disabled]) {
|
|
1855
|
+
pointer-events: none;
|
|
1856
|
+
--vaadin-input-field-border-color: var(--lumo-contrast-20pct);
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
:host([disabled]) [part='label'],
|
|
1860
|
+
:host([disabled]) [part='input-field'] ::slotted([slot$='fix']) {
|
|
1861
|
+
color: var(--lumo-disabled-text-color);
|
|
1862
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
:host([disabled]) [part='input-field'] ::slotted(:not([slot$='fix'])) {
|
|
1866
|
+
color: var(--_disabled-value-color);
|
|
1867
|
+
-webkit-text-fill-color: var(--_disabled-value-color);
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
/* Invalid style */
|
|
1871
|
+
:host([invalid]) {
|
|
1872
|
+
--vaadin-input-field-border-color: var(--lumo-error-color);
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
:host([invalid][focus-ring]) [part='input-field'] {
|
|
1876
|
+
box-shadow: 0 0 0 var(--_focus-ring-width) var(--lumo-error-color-50pct);
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
:host([input-prevented]) [part='input-field'] {
|
|
1880
|
+
animation: shake 0.15s infinite;
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
@keyframes shake {
|
|
1884
|
+
25% {
|
|
1885
|
+
transform: translateX(4px);
|
|
1886
|
+
}
|
|
1887
|
+
75% {
|
|
1888
|
+
transform: translateX(-4px);
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
/* Small theme */
|
|
1893
|
+
:host([theme~='small']) {
|
|
1894
|
+
font-size: var(--lumo-font-size-s);
|
|
1895
|
+
--lumo-text-field-size: var(--lumo-size-s);
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
:host([theme~='small']) [part='label'] {
|
|
1899
|
+
font-size: var(--lumo-font-size-xs);
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
:host([theme~='small']) [part='error-message'] {
|
|
1903
|
+
font-size: var(--lumo-font-size-xxs);
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
/* Slotted content */
|
|
1907
|
+
[part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
|
|
1908
|
+
color: var(--lumo-secondary-text-color);
|
|
1909
|
+
font-weight: 400;
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
[part='clear-button']::before {
|
|
1913
|
+
content: var(--lumo-icons-cross);
|
|
1914
|
+
}
|
|
1915
|
+
`,Cc=[wc,yc,F0,R0];Fe("",Cc,{moduleId:"lumo-input-field-shared-styles"});const H0=ge`
|
|
1916
|
+
[part='toggle-button']::before {
|
|
1917
|
+
content: var(--lumo-icons-calendar);
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
[part='clear-button']::before {
|
|
1921
|
+
content: var(--lumo-icons-cross);
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
@media (max-width: 450px), (max-height: 450px) {
|
|
1925
|
+
[part='overlay-content'] {
|
|
1926
|
+
height: 70vh;
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input) {
|
|
1931
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
|
|
1935
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1936
|
+
}
|
|
1937
|
+
`;Fe("vaadin-date-picker",[Cc,H0],{moduleId:"lumo-date-picker"});/**
|
|
1938
|
+
@license
|
|
1939
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1940
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1941
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1942
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1943
|
+
Code distributed by Google as part of the polymer project is also
|
|
1944
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1945
|
+
*/window.JSCompiler_renameProperty=function(e,t){return e};/**
|
|
1946
|
+
@license
|
|
1947
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1948
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1949
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1950
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1951
|
+
Code distributed by Google as part of the polymer project is also
|
|
1952
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1953
|
+
*/let U0=/(url\()([^)]*)(\))/g,Y0=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,si,ot;function wn(e,t){if(e&&Y0.test(e)||e==="//")return e;if(si===void 0){si=!1;try{const r=new URL("b","http://a");r.pathname="c%20d",si=r.href==="http://a/c%20d"}catch(r){}}if(t||(t=document.baseURI||window.location.href),si)try{return new URL(e,t).href}catch(r){return e}return ot||(ot=document.implementation.createHTMLDocument("temp"),ot.base=ot.createElement("base"),ot.head.appendChild(ot.base),ot.anchor=ot.createElement("a"),ot.body.appendChild(ot.anchor)),ot.base.href=t,ot.anchor.href=e,ot.anchor.href||e}function ua(e,t){return e.replace(U0,function(r,n,i,s){return n+"'"+wn(i.replace(/["']/g,""),t)+"'"+s})}function da(e){return e.substring(0,e.lastIndexOf("/")+1)}/**
|
|
1954
|
+
@license
|
|
1955
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1956
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1957
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1958
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1959
|
+
Code distributed by Google as part of the polymer project is also
|
|
1960
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1961
|
+
*/const xc=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const W0=xc&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})();let z0=window.Polymer&&window.Polymer.rootPath||da(document.baseURI||window.location.href),Oi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Bi=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,$0=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Ec=window.Polymer&&window.Polymer.legacyOptimizations||!1,Sc=window.Polymer&&window.Polymer.legacyWarnings||!1,V0=window.Polymer&&window.Polymer.syncInitialRender||!1,Do=window.Polymer&&window.Polymer.legacyUndefined||!1,G0=window.Polymer&&window.Polymer.orderedComputed||!1,Nl=window.Polymer&&window.Polymer.removeNestedTemplates||!1,j0=window.Polymer&&window.Polymer.fastDomIf||!1,Il=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let q0=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
1962
|
+
@license
|
|
1963
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1964
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1965
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1966
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1967
|
+
Code distributed by Google as part of the polymer project is also
|
|
1968
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1969
|
+
*/let Z0=0;const Ye=function(e){let t=e.__mixinApplications;t||(t=new WeakMap,e.__mixinApplications=t);let r=Z0++;function n(i){let s=i.__mixinSet;if(s&&s[r])return i;let o=t,a=o.get(i);if(!a){a=e(i),o.set(i,a);let l=Object.create(a.__mixinSet||s||null);l[r]=!0,a.__mixinSet=l}return a}return n};/**
|
|
1970
|
+
@license
|
|
1971
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1972
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1973
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1974
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1975
|
+
Code distributed by Google as part of the polymer project is also
|
|
1976
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1977
|
+
*/let ca={},kc={};function Ll(e,t){ca[e]=kc[e.toLowerCase()]=t}function Fl(e){return ca[e]||kc[e.toLowerCase()]}function X0(e){e.querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}class An extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,r){if(t){let n=Fl(t);return n&&r?n.querySelector(r):n}return null}attributeChangedCallback(t,r,n,i){r!==n&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,r=wn(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=da(r)}return this.__assetpath}register(t){if(t=t||this.id,t){if(Bi&&Fl(t)!==void 0)throw Ll(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Ll(t,this),X0(this)}}}An.prototype.modules=ca;customElements.define("dom-module",An);/**
|
|
1978
|
+
@license
|
|
1979
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1980
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1981
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1982
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1983
|
+
Code distributed by Google as part of the polymer project is also
|
|
1984
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1985
|
+
*/const K0="link[rel=import][type~=css]",J0="include",Rl="shady-unscoped";function Tc(e){return An.import(e)}function Hl(e){let t=e.body?e.body:e;const r=ua(t.textContent,e.baseURI),n=document.createElement("style");return n.textContent=r,n}function Q0(e){const t=e.trim().split(/\s+/),r=[];for(let n=0;n<t.length;n++)r.push(...eg(t[n]));return r}function eg(e){const t=Tc(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(t._styles===void 0){const r=[];r.push(...Dc(t));const n=t.querySelector("template");n&&r.push(...Pc(n,t.assetpath)),t._styles=r}return t._styles}function Pc(e,t){if(!e._styles){const r=[],n=e.content.querySelectorAll("style");for(let i=0;i<n.length;i++){let s=n[i],o=s.getAttribute(J0);o&&r.push(...Q0(o).filter(function(a,l,u){return u.indexOf(a)===l})),t&&(s.textContent=ua(s.textContent,t)),r.push(s)}e._styles=r}return e._styles}function tg(e){let t=Tc(e);return t?Dc(t):[]}function Dc(e){const t=[],r=e.querySelectorAll(K0);for(let n=0;n<r.length;n++){let i=r[n];if(i.import){const s=i.import,o=i.hasAttribute(Rl);if(o&&!s._unscopedStyle){const a=Hl(s);a.setAttribute(Rl,""),s._unscopedStyle=a}else s._style||(s._style=Hl(s));t.push(o?s._unscopedStyle:s._style)}}return t}/**
|
|
1986
|
+
@license
|
|
1987
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1988
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1989
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1990
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1991
|
+
Code distributed by Google as part of the polymer project is also
|
|
1992
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1993
|
+
*/const Ve=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;/**
|
|
1994
|
+
@license
|
|
1995
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1996
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1997
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1998
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1999
|
+
Code distributed by Google as part of the polymer project is also
|
|
2000
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2001
|
+
*/function Ao(e){return e.indexOf(".")>=0}function vr(e){let t=e.indexOf(".");return t===-1?e:e.slice(0,t)}function Ac(e,t){return e.indexOf(t+".")===0}function Mn(e,t){return t.indexOf(e+".")===0}function On(e,t,r){return t+r.slice(e.length)}function rg(e,t){return e===t||Ac(e,t)||Mn(e,t)}function _n(e){if(Array.isArray(e)){let t=[];for(let r=0;r<e.length;r++){let n=e[r].toString().split(".");for(let i=0;i<n.length;i++)t.push(n[i])}return t.join(".")}else return e}function Mc(e){return Array.isArray(e)?_n(e).split("."):e.toString().split(".")}function rt(e,t,r){let n=e,i=Mc(t);for(let s=0;s<i.length;s++){if(!n)return;let o=i[s];n=n[o]}return r&&(r.path=i.join(".")),n}function Ul(e,t,r){let n=e,i=Mc(t),s=i[i.length-1];if(i.length>1){for(let o=0;o<i.length-1;o++){let a=i[o];if(n=n[a],!n)return}n[s]=r}else n[t]=r;return i.join(".")}/**
|
|
2002
|
+
@license
|
|
2003
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2004
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2005
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2006
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2007
|
+
Code distributed by Google as part of the polymer project is also
|
|
2008
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2009
|
+
*/const Ni={},ng=/-[a-z]/g,ig=/([A-Z])/g;function Oc(e){return Ni[e]||(Ni[e]=e.indexOf("-")<0?e:e.replace(ng,t=>t[1].toUpperCase()))}function ss(e){return Ni[e]||(Ni[e]=e.replace(ig,"-$1").toLowerCase())}/**
|
|
2010
|
+
@license
|
|
2011
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2012
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2013
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2014
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2015
|
+
Code distributed by Google as part of the polymer project is also
|
|
2016
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2017
|
+
*/let sg=0,Bc=0,Ir=[],og=0,Mo=!1,Nc=document.createTextNode("");new window.MutationObserver(ag).observe(Nc,{characterData:!0});function ag(){Mo=!1;const e=Ir.length;for(let t=0;t<e;t++){let r=Ir[t];if(r)try{r()}catch(n){setTimeout(()=>{throw n})}}Ir.splice(0,e),Bc+=e}const lg={after(e){return{run(t){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}}},run(e,t){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}},Ic={run(e){return Mo||(Mo=!0,Nc.textContent=og++),Ir.push(e),sg++},cancel(e){const t=e-Bc;if(t>=0){if(!Ir[t])throw new Error("invalid async handle: "+e);Ir[t]=null}}};/**
|
|
2018
|
+
@license
|
|
2019
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2020
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2021
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2022
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2023
|
+
Code distributed by Google as part of the polymer project is also
|
|
2024
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2025
|
+
*/const ug=Ic,Lc=Ye(e=>{class t extends e{static createProperties(n){const i=this.prototype;for(let s in n)s in i||i._createPropertyAccessor(s)}static attributeNameForProperty(n){return n.toLowerCase()}static typeForProperty(n){}_createPropertyAccessor(n,i){this._addPropertyToAttributeMap(n),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[n]||(this.__dataHasAccessor[n]=!0,this._definePropertyAccessor(n,i))}_addPropertyToAttributeMap(n){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let i=this.__dataAttributes[n];return i||(i=this.constructor.attributeNameForProperty(n),this.__dataAttributes[i]=n),i}_definePropertyAccessor(n,i){Object.defineProperty(this,n,{get(){return this.__data[n]},set:i?function(){}:function(s){this._setPendingProperty(n,s,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let n in this.__dataHasAccessor)this.hasOwnProperty(n)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[n]=this[n],delete this[n])}_initializeInstanceProperties(n){Object.assign(this,n)}_setProperty(n,i){this._setPendingProperty(n,i)&&this._invalidateProperties()}_getProperty(n){return this.__data[n]}_setPendingProperty(n,i,s){let o=this.__data[n],a=this._shouldPropertyChange(n,i,o);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(n in this.__dataOld)&&(this.__dataOld[n]=o),this.__data[n]=i,this.__dataPending[n]=i),a}_isPropertyPending(n){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(n))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ug.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const n=this.__data,i=this.__dataPending,s=this.__dataOld;this._shouldPropertiesChange(n,i,s)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(n,i,s)),this.__dataCounter--}_shouldPropertiesChange(n,i,s){return!!i}_propertiesChanged(n,i,s){}_shouldPropertyChange(n,i,s){return s!==i&&(s===s||i===i)}attributeChangedCallback(n,i,s,o){i!==s&&this._attributeToProperty(n,s),super.attributeChangedCallback&&super.attributeChangedCallback(n,i,s,o)}_attributeToProperty(n,i,s){if(!this.__serializing){const o=this.__dataAttributes,a=o&&o[n]||n;this[a]=this._deserializeValue(i,s||this.constructor.typeForProperty(a))}}_propertyToAttribute(n,i,s){this.__serializing=!0,s=arguments.length<3?this[n]:s,this._valueToNodeAttribute(this,s,i||this.constructor.attributeNameForProperty(n)),this.__serializing=!1}_valueToNodeAttribute(n,i,s){const o=this._serializeValue(i);(s==="class"||s==="name"||s==="slot")&&(n=Ve(n)),o===void 0?n.removeAttribute(s):n.setAttribute(s,o===""&&window.trustedTypes?window.trustedTypes.emptyScript:o)}_serializeValue(n){switch(typeof n){case"boolean":return n?"":void 0;default:return n!=null?n.toString():void 0}}_deserializeValue(n,i){switch(i){case Boolean:return n!==null;case Number:return Number(n);default:return n}}}return t});/**
|
|
2026
|
+
@license
|
|
2027
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2028
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2029
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2030
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2031
|
+
Code distributed by Google as part of the polymer project is also
|
|
2032
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2033
|
+
*/const Fc={};let oi=HTMLElement.prototype;for(;oi;){let e=Object.getOwnPropertyNames(oi);for(let t=0;t<e.length;t++)Fc[e[t]]=!0;oi=Object.getPrototypeOf(oi)}const dg=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1;function cg(e,t){if(!Fc[t]){let r=e[t];r!==void 0&&(e.__data?e._setPendingProperty(t,r):(e.__dataProto?e.hasOwnProperty(JSCompiler_renameProperty("__dataProto",e))||(e.__dataProto=Object.create(e.__dataProto)):e.__dataProto={},e.__dataProto[t]=r))}}const hg=Ye(e=>{const t=Lc(e);class r extends t{static createPropertiesForAttributes(){let i=this.observedAttributes;for(let s=0;s<i.length;s++)this.prototype._createPropertyAccessor(Oc(i[s]))}static attributeNameForProperty(i){return ss(i)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(i){for(let s in i)this._setProperty(s,i[s])}_ensureAttribute(i,s){const o=this;o.hasAttribute(i)||this._valueToNodeAttribute(o,s,i)}_serializeValue(i){switch(typeof i){case"object":if(i instanceof Date)return i.toString();if(i){if(dg(i))return i;try{return JSON.stringify(i)}catch(s){return""}}default:return super._serializeValue(i)}}_deserializeValue(i,s){let o;switch(s){case Object:try{o=JSON.parse(i)}catch(a){o=i}break;case Array:try{o=JSON.parse(i)}catch(a){o=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${i}`)}break;case Date:o=isNaN(i)?String(i):Number(i),o=new Date(o);break;default:o=super._deserializeValue(i,s);break}return o}_definePropertyAccessor(i,s){cg(this,i),super._definePropertyAccessor(i,s)}_hasAccessor(i){return this.__dataHasAccessor&&this.__dataHasAccessor[i]}_isPropertyPending(i){return!!(this.__dataPending&&i in this.__dataPending)}}return r});/**
|
|
2034
|
+
@license
|
|
2035
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2036
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2037
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2038
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2039
|
+
Code distributed by Google as part of the polymer project is also
|
|
2040
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2041
|
+
*/const fg={"dom-if":!0,"dom-repeat":!0};let Yl=!1,Wl=!1;function pg(){if(!Yl){Yl=!0;const e=document.createElement("textarea");e.placeholder="a",Wl=e.placeholder===e.textContent}return Wl}function mg(e){pg()&&e.localName==="textarea"&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null)}const _g=(()=>{const e=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,r,n)=>{const i=r.getAttribute(n);if(e&&n.startsWith("on-")){t.setAttribute(n,e.createScript(i,n));return}t.setAttribute(n,i)}})();function gg(e){let t=e.getAttribute("is");if(t&&fg[t]){let r=e;for(r.removeAttribute("is"),e=r.ownerDocument.createElement(t),r.parentNode.replaceChild(e,r),e.appendChild(r);r.attributes.length;){const{name:n}=r.attributes[0];_g(e,r,n),r.removeAttribute(n)}}return e}function Rc(e,t){let r=t.parentInfo&&Rc(e,t.parentInfo);if(r){for(let n=r.firstChild,i=0;n;n=n.nextSibling)if(t.parentIndex===i++)return n}else return e}function bg(e,t,r,n){n.id&&(t[n.id]=r)}function vg(e,t,r){if(r.events&&r.events.length)for(let n=0,i=r.events,s;n<i.length&&(s=i[n]);n++)e._addMethodEventListenerToNode(t,s.name,s.value,e)}function yg(e,t,r,n){r.templateInfo&&(t._templateInfo=r.templateInfo,t._parentTemplateInfo=n)}function wg(e,t,r){return e=e._methodHost||e,function(i){e[r]?e[r](i,i.detail):console.warn("listener method `"+r+"` not defined")}}const Cg=Ye(e=>{class t extends e{static _parseTemplate(n,i){if(!n._templateInfo){let s=n._templateInfo={};s.nodeInfoList=[],s.nestedTemplate=!!i,s.stripWhiteSpace=i&&i.stripWhiteSpace||n.hasAttribute&&n.hasAttribute("strip-whitespace"),this._parseTemplateContent(n,s,{parent:null})}return n._templateInfo}static _parseTemplateContent(n,i,s){return this._parseTemplateNode(n.content,i,s)}static _parseTemplateNode(n,i,s){let o=!1,a=n;return a.localName=="template"&&!a.hasAttribute("preserve-content")?o=this._parseTemplateNestedTemplate(a,i,s)||o:a.localName==="slot"&&(i.hasInsertionPoint=!0),mg(a),a.firstChild&&this._parseTemplateChildNodes(a,i,s),a.hasAttributes&&a.hasAttributes()&&(o=this._parseTemplateNodeAttributes(a,i,s)||o),o||s.noted}static _parseTemplateChildNodes(n,i,s){if(!(n.localName==="script"||n.localName==="style"))for(let o=n.firstChild,a=0,l;o;o=l){if(o.localName=="template"&&(o=gg(o)),l=o.nextSibling,o.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)o.textContent+=d.textContent,l=d.nextSibling,n.removeChild(d),d=l;if(i.stripWhiteSpace&&!o.textContent.trim()){n.removeChild(o);continue}}let u={parentIndex:a,parentInfo:s};this._parseTemplateNode(o,i,u)&&(u.infoIndex=i.nodeInfoList.push(u)-1),o.parentNode&&a++}}static _parseTemplateNestedTemplate(n,i,s){let o=n,a=this._parseTemplate(o,i);return(a.content=o.content.ownerDocument.createDocumentFragment()).appendChild(o.content),s.templateInfo=a,!0}static _parseTemplateNodeAttributes(n,i,s){let o=!1,a=Array.from(n.attributes);for(let l=a.length-1,u;u=a[l];l--)o=this._parseTemplateNodeAttribute(n,i,s,u.name,u.value)||o;return o}static _parseTemplateNodeAttribute(n,i,s,o,a){return o.slice(0,3)==="on-"?(n.removeAttribute(o),s.events=s.events||[],s.events.push({name:o.slice(3),value:a}),!0):o==="id"?(s.id=a,!0):!1}static _contentForTemplate(n){let i=n._templateInfo;return i&&i.content||n.content}_stampTemplate(n,i){n&&!n.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(n),i=i||this.constructor._parseTemplate(n);let s=i.nodeInfoList,o=i.content||n.content,a=document.importNode(o,!0);a.__noInsertionPoint=!i.hasInsertionPoint;let l=a.nodeList=new Array(s.length);a.$={};for(let u=0,d=s.length,c;u<d&&(c=s[u]);u++){let h=l[u]=Rc(a,c);bg(this,a.$,h,c),yg(this,h,c,i),vg(this,h,c)}return a=a,a}_addMethodEventListenerToNode(n,i,s,o){o=o||n;let a=wg(o,i,s);return this._addEventListenerToNode(n,i,a),a}_addEventListenerToNode(n,i,s){n.addEventListener(i,s)}_removeEventListenerFromNode(n,i,s){n.removeEventListener(i,s)}}return t});/**
|
|
2042
|
+
* @fileoverview
|
|
2043
|
+
* @suppress {checkPrototypalTypes}
|
|
2044
|
+
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2045
|
+
* This code may only be used under the BSD style license found at
|
|
2046
|
+
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
2047
|
+
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
2048
|
+
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
2049
|
+
* Google as part of the polymer project is also subject to an additional IP
|
|
2050
|
+
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2051
|
+
*/let Bn=0;const Nn=[],be={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Hc="__computeInfo",xg=/[A-Z]/;function Vs(e,t,r){let n=e[t];if(!n)n=e[t]={};else if(!e.hasOwnProperty(t)&&(n=e[t]=Object.create(e[t]),r))for(let i in n){let s=n[i],o=n[i]=Array(s.length);for(let a=0;a<s.length;a++)o[a]=s[a]}return n}function gn(e,t,r,n,i,s){if(t){let o=!1;const a=Bn++;for(let l in r){let u=i?vr(l):l,d=t[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==a)&&(!i||ha(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(e,l,r,n,f.info,i,s),o=!0)}return o}return!1}function Eg(e,t,r,n,i,s,o,a){let l=!1,u=o?vr(n):n,d=t[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==r)&&(!o||ha(n,f.trigger))&&(f.info&&(f.info.lastRun=r),f.fn(e,n,i,s,f.info,o,a),l=!0);return l}function ha(e,t){if(t){let r=t.name;return r==e||!!(t.structured&&Ac(r,e))||!!(t.wildcard&&Mn(r,e))}else return!0}function zl(e,t,r,n,i){let s=typeof i.method=="string"?e[i.method]:i.method,o=i.property;s?s.call(e,e.__data[o],n[o]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Sg(e,t,r,n,i){let s=e[be.NOTIFY],o,a=Bn++;for(let u in t)t[u]&&(s&&Eg(e,s,a,u,r,n,i)||i&&kg(e,u,r))&&(o=!0);let l;o&&(l=e.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function kg(e,t,r){let n=vr(t);if(n!==t){let i=ss(n)+"-changed";return Uc(e,i,r[t],t),!0}return!1}function Uc(e,t,r,n){let i={value:r,queueProperty:!0};n&&(i.path=n),Ve(e).dispatchEvent(new CustomEvent(t,{detail:i}))}function Tg(e,t,r,n,i,s){let a=(s?vr(t):t)!=t?t:null,l=a?rt(e,a):e.__data[t];a&&l===void 0&&(l=r[t]),Uc(e,i.eventName,l,a)}function Pg(e,t,r,n,i){let s,o=e.detail,a=o&&o.path;a?(n=On(r,n,a),s=o&&o.value):s=e.currentTarget[r],s=i?!s:s,(!t[be.READ_ONLY]||!t[be.READ_ONLY][n])&&t._setPendingPropertyOrPath(n,s,!0,!!a)&&(!o||!o.queueProperty)&&t._invalidateProperties()}function Dg(e,t,r,n,i){let s=e.__data[t];Oi&&(s=Oi(s,i.attrName,"attribute",e)),e._propertyToAttribute(t,i.attrName,s)}function Ag(e,t,r,n){let i=e[be.COMPUTE];if(i)if(G0){Bn++;const s=Og(e),o=[];for(let l in t)$l(l,i,o,s,n);let a;for(;a=o.shift();)Yc(e,"",t,r,a)&&$l(a.methodInfo,i,o,s,n);Object.assign(r,e.__dataOld),Object.assign(t,e.__dataPending),e.__dataPending=null}else{let s=t;for(;gn(e,i,s,r,n);)Object.assign(r,e.__dataOld),Object.assign(t,e.__dataPending),s=e.__dataPending,e.__dataPending=null}}const Mg=(e,t,r)=>{let n=0,i=t.length-1,s=-1;for(;n<=i;){const o=n+i>>1,a=r.get(t[o].methodInfo)-r.get(e.methodInfo);if(a<0)n=o+1;else if(a>0)i=o-1;else{s=o;break}}s<0&&(s=i+1),t.splice(s,0,e)},$l=(e,t,r,n,i)=>{const s=i?vr(e):e,o=t[s];if(o)for(let a=0;a<o.length;a++){const l=o[a];l.info.lastRun!==Bn&&(!i||ha(e,l.trigger))&&(l.info.lastRun=Bn,Mg(l.info,r,n))}};function Og(e){let t=e.constructor.__orderedComputedDeps;if(!t){t=new Map;const r=e[be.COMPUTE];let{counts:n,ready:i,total:s}=Bg(e),o;for(;o=i.shift();){t.set(o,t.size);const a=r[o];a&&a.forEach(l=>{const u=l.info.methodInfo;--s,--n[u]===0&&i.push(u)})}s!==0&&console.warn(`Computed graph for ${e.localName} incomplete; circular?`),e.constructor.__orderedComputedDeps=t}return t}function Bg(e){const t=e[Hc],r={},n=e[be.COMPUTE],i=[];let s=0;for(let o in t){const a=t[o];s+=r[o]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let o in n)t[o]||i.push(o);return{counts:r,ready:i,total:s}}function Yc(e,t,r,n,i){let s=Oo(e,t,r,n,i);if(s===Nn)return!1;let o=i.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[o]?e._setPendingProperty(o,s,!0):(e[o]=s,!1)}function Ng(e,t,r){let n=e.__dataLinkedPaths;if(n){let i;for(let s in n){let o=n[s];Mn(s,t)?(i=On(s,o,t),e._setPendingPropertyOrPath(i,r,!0,!0)):Mn(o,t)&&(i=On(o,s,t),e._setPendingPropertyOrPath(i,r,!0,!0))}}}function Gs(e,t,r,n,i,s,o){r.bindings=r.bindings||[];let a={kind:n,target:i,parts:s,literal:o,isCompound:s.length!==1};if(r.bindings.push(a),Hg(a)){let{event:u,negate:d}=a.parts[0];a.listenerEvent=u||ss(i)+"-changed",a.listenerNegate=d}let l=t.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let d=a.parts[u];d.compoundIndex=u,Ig(e,t,a,d,l)}}function Ig(e,t,r,n,i){if(!n.literal)if(r.kind==="attribute"&&r.target[0]==="-")console.warn("Cannot set attribute "+r.target+' because "-" is not a valid attribute starting character');else{let s=n.dependencies,o={index:i,binding:r,part:n,evaluator:e};for(let a=0;a<s.length;a++){let l=s[a];typeof l=="string"&&(l=zc(l),l.wildcard=!0),e._addTemplatePropertyEffect(t,l.rootProperty,{fn:Lg,info:o,trigger:l})}}}function Lg(e,t,r,n,i,s,o){let a=o[i.index],l=i.binding,u=i.part;if(s&&u.source&&t.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=r[t];t=On(u.source,l.target,t),a._setPendingPropertyOrPath(t,d,!1,!0)&&e._enqueueClient(a)}else{let d=i.evaluator._evaluateBinding(e,u,t,r,n,s);d!==Nn&&Fg(e,a,l,u,d)}}function Fg(e,t,r,n,i){if(i=Rg(t,i,r,n),Oi&&(i=Oi(i,r.target,r.kind,t)),r.kind=="attribute")e._valueToNodeAttribute(t,i,r.target);else{let s=r.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[s]?(!t[be.READ_ONLY]||!t[be.READ_ONLY][s])&&t._setPendingProperty(s,i)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,s,i)}}function Rg(e,t,r,n){if(r.isCompound){let i=e.__dataCompoundStorage[r.target];i[n.compoundIndex]=t,t=i.join("")}return r.kind!=="attribute"&&(r.target==="textContent"||r.target==="value"&&(e.localName==="input"||e.localName==="textarea"))&&(t=t==null?"":t),t}function Hg(e){return!!e.target&&e.kind!="attribute"&&e.kind!="text"&&!e.isCompound&&e.parts[0].mode==="{"}function Ug(e,t){let{nodeList:r,nodeInfoList:n}=t;if(n.length)for(let i=0;i<n.length;i++){let s=n[i],o=r[i],a=s.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];Yg(o,u),Wg(o,e,u)}o.__dataHost=e}}function Yg(e,t){if(t.isCompound){let r=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),n=t.parts,i=new Array(n.length);for(let o=0;o<n.length;o++)i[o]=n[o].literal;let s=t.target;r[s]=i,t.literal&&t.kind=="property"&&(s==="className"&&(e=Ve(e)),e[s]=t.literal)}}function Wg(e,t,r){if(r.listenerEvent){let n=r.parts[0];e.addEventListener(r.listenerEvent,function(i){Pg(i,t,r.target,n.source,n.negate)})}}function Vl(e,t,r,n,i,s){s=t.static||s&&(typeof s!="object"||s[t.methodName]);let o={methodName:t.methodName,args:t.args,methodInfo:i,dynamicFn:s};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||e._addPropertyEffect(l.rootProperty,r,{fn:n,info:o,trigger:l});return s&&e._addPropertyEffect(t.methodName,r,{fn:n,info:o}),o}function Oo(e,t,r,n,i){let s=e._methodHost||e,o=s[i.methodName];if(o){let a=e._marshalArgs(i.args,t,r);return a===Nn?Nn:o.apply(s,a)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const zg=[],Wc="(?:[a-zA-Z_$][\\w.:$\\-*]*)",$g="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Vg="(?:'(?:[^'\\\\]|\\\\.)*')",Gg='(?:"(?:[^"\\\\]|\\\\.)*")',jg="(?:"+Vg+"|"+Gg+")",Gl="(?:("+Wc+"|"+$g+"|"+jg+")\\s*)",qg="(?:"+Gl+"(?:,\\s*"+Gl+")*)",Zg="(?:\\(\\s*(?:"+qg+"?)\\)\\s*)",Xg="("+Wc+"\\s*"+Zg+"?)",Kg="(\\[\\[|{{)\\s*",Jg="(?:]]|}})",Qg="(?:(!)\\s*)?",eb=Kg+Qg+Xg+Jg,jl=new RegExp(eb,"g");function ql(e){let t="";for(let r=0;r<e.length;r++){let n=e[r].literal;t+=n||""}return t}function js(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let n={methodName:t[1],static:!0,args:zg};if(t[2].trim()){let i=t[2].replace(/\\,/g,",").split(",");return tb(i,n)}else return n}return null}function tb(e,t){return t.args=e.map(function(r){let n=zc(r);return n.literal||(t.static=!1),n},this),t}function zc(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),r={name:t,value:"",literal:!1},n=t[0];switch(n==="-"&&(n=t[1]),n>="0"&&n<="9"&&(n="#"),n){case"'":case'"':r.value=t.slice(1,-1),r.literal=!0;break;case"#":r.value=Number(t),r.literal=!0;break}return r.literal||(r.rootProperty=vr(t),r.structured=Ao(t),r.structured&&(r.wildcard=t.slice(-2)==".*",r.wildcard&&(r.name=t.slice(0,-2)))),r}function Zl(e,t,r){let n=rt(e,r);return n===void 0&&(n=t[r]),n}function $c(e,t,r,n){const i={indexSplices:n};Do&&!e._overrideLegacyUndefined&&(t.splices=i),e.notifyPath(r+".splices",i),e.notifyPath(r+".length",t.length),Do&&!e._overrideLegacyUndefined&&(i.indexSplices=[])}function dn(e,t,r,n,i,s){$c(e,t,r,[{index:n,addedCount:i,removed:s,object:t,type:"splice"}])}function rb(e){return e[0].toUpperCase()+e.substring(1)}const fa=Ye(e=>{const t=Cg(hg(e));class r extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return be}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(cn.length){let i=cn[cn.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let s=this[be.READ_ONLY];for(let o in i)(!s||!s[o])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[o]=this.__dataPending[o]=i[o])}_addPropertyEffect(i,s,o){this._createPropertyAccessor(i,s==be.READ_ONLY);let a=Vs(this,s,!0)[i];a||(a=this[s][i]=[]),a.push(o)}_removePropertyEffect(i,s,o){let a=Vs(this,s,!0)[i],l=a.indexOf(o);l>=0&&a.splice(l,1)}_hasPropertyEffect(i,s){let o=this[s];return!!(o&&o[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,be.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,be.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,be.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,be.COMPUTE)}_setPendingPropertyOrPath(i,s,o,a){if(a||vr(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=rt(this,i);if(i=Ul(this,i,s),!i||!super._shouldPropertyChange(i,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,s,o))return Ng(this,i,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,s,o);this[i]=s}return!1}_setUnmanagedPropertyToNode(i,s,o){(o!==i[s]||typeof o=="object")&&(s==="className"&&(i=Ve(i)),i[s]=o)}_setPendingProperty(i,s,o){let a=this.__dataHasPaths&&Ao(i),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,s,l[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),a?this.__dataTemp[i]=s:this.__data[i]=s,this.__dataPending[i]=s,(a||this[be.NOTIFY]&&this[be.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=o),!0):!1}_setProperty(i,s){this._setPendingProperty(i,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let s=0;s<i.length;s++){let o=i[s];o.__dataEnabled?o.__dataPending&&o._flushProperties():o._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,s){for(let o in i)(s||!this[be.READ_ONLY]||!this[be.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,i[o],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,s,o){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Ag(this,s,o,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,o,a),this._flushClients(),gn(this,this[be.REFLECT],s,o,a),gn(this,this[be.OBSERVE],s,o,a),l&&Sg(this,l,s,o,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,s,o){this[be.PROPAGATE]&&gn(this,this[be.PROPAGATE],i,s,o),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,s,o)}_runEffectsForTemplate(i,s,o,a){const l=(u,d)=>{gn(this,i.propertyEffects,u,o,d,i.nodeList);for(let c=i.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,u,o,d)};i.runEffects?i.runEffects(l,s,a):l(s,a)}linkPaths(i,s){i=_n(i),s=_n(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=s}unlinkPaths(i){i=_n(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,s){let o={path:""},a=rt(this,i,o);$c(this,a,o.path,s)}get(i,s){return rt(s||this,i)}set(i,s,o){o?Ul(o,i,s):(!this[be.READ_ONLY]||!this[be.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,s,!0)&&this._invalidateProperties()}push(i,...s){let o={path:""},a=rt(this,i,o),l=a.length,u=a.push(...s);return s.length&&dn(this,a,o.path,l,s.length,[]),u}pop(i){let s={path:""},o=rt(this,i,s),a=!!o.length,l=o.pop();return a&&dn(this,o,s.path,o.length,0,[l]),l}splice(i,s,o,...a){let l={path:""},u=rt(this,i,l);s<0?s=u.length-Math.floor(-s):s&&(s=Math.floor(s));let d;return arguments.length===2?d=u.splice(s):d=u.splice(s,o,...a),(a.length||d.length)&&dn(this,u,l.path,s,a.length,d),d}shift(i){let s={path:""},o=rt(this,i,s),a=!!o.length,l=o.shift();return a&&dn(this,o,s.path,0,0,[l]),l}unshift(i,...s){let o={path:""},a=rt(this,i,o),l=a.unshift(...s);return s.length&&dn(this,a,o.path,0,s.length,[]),l}notifyPath(i,s){let o;if(arguments.length==1){let a={path:""};s=rt(this,i,a),o=a.path}else Array.isArray(i)?o=_n(i):o=i;this._setPendingPropertyOrPath(o,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,s){this._addPropertyEffect(i,be.READ_ONLY),s&&(this["_set"+rb(i)]=function(o){this._setProperty(i,o)})}_createPropertyObserver(i,s,o){let a={property:i,method:s,dynamicFn:!!o};this._addPropertyEffect(i,be.OBSERVE,{fn:zl,info:a,trigger:{name:i}}),o&&this._addPropertyEffect(s,be.OBSERVE,{fn:zl,info:a,trigger:{name:s}})}_createMethodObserver(i,s){let o=js(i);if(!o)throw new Error("Malformed observer expression '"+i+"'");Vl(this,o,be.OBSERVE,Oo,null,s)}_createNotifyingProperty(i){this._addPropertyEffect(i,be.NOTIFY,{fn:Tg,info:{eventName:ss(i)+"-changed",property:i}})}_createReflectedProperty(i){let s=this.constructor.attributeNameForProperty(i);s[0]==="-"?console.warn("Property "+i+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(i,be.REFLECT,{fn:Dg,info:{attrName:s}})}_createComputedProperty(i,s,o){let a=js(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const l=Vl(this,a,be.COMPUTE,Yc,i,o);Vs(this,Hc)[i]=l}_marshalArgs(i,s,o){const a=this.__data,l=[];for(let u=0,d=i.length;u<d;u++){let{name:c,structured:h,wildcard:f,value:g,literal:b}=i[u];if(!b)if(f){const v=Mn(c,s),y=Zl(a,o,v?s:c);g={path:v?s:c,value:y,base:v?rt(a,c):y}}else g=h?Zl(a,o,c):a[c];if(Do&&!this._overrideLegacyUndefined&&g===void 0&&i.length>1)return Nn;l[u]=g}return l}static addPropertyEffect(i,s,o){this.prototype._addPropertyEffect(i,s,o)}static createPropertyObserver(i,s,o){this.prototype._createPropertyObserver(i,s,o)}static createMethodObserver(i,s){this.prototype._createMethodObserver(i,s)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,s){this.prototype._createReadOnlyProperty(i,s)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,s,o){this.prototype._createComputedProperty(i,s,o)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,s){let o=this.constructor._parseTemplate(i),a=this.__preBoundTemplateInfo==o;if(!a)for(let l in o.propertyEffects)this._createPropertyAccessor(l);if(s)if(o=Object.create(o),o.wasPreBound=a,!this.__templateInfo)this.__templateInfo=o;else{const l=i._parentTemplateInfo||this.__templateInfo,u=l.lastChild;o.parent=l,l.lastChild=o,o.previousSibling=u,u?u.nextSibling=o:l.firstChild=o}else this.__preBoundTemplateInfo=o;return o}static _addTemplatePropertyEffect(i,s,o){let a=i.hostProps=i.hostProps||{};a[s]=!0;let l=i.propertyEffects=i.propertyEffects||{};(l[s]=l[s]||[]).push(o)}_stampTemplate(i,s){s=s||this._bindTemplate(i,!0),cn.push(this);let o=super._stampTemplate(i,s);if(cn.pop(),s.nodeList=o.nodeList,!s.wasPreBound){let a=s.childNodes=[];for(let l=o.firstChild;l;l=l.nextSibling)a.push(l)}return o.templateInfo=s,Ug(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),o}_removeBoundDom(i){const s=i.templateInfo,{previousSibling:o,nextSibling:a,parent:l}=s;o?o.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=o:l&&(l.lastChild=o),s.nextSibling=s.previousSibling=null;let u=s.childNodes;for(let d=0;d<u.length;d++){let c=u[d];Ve(Ve(c).parentNode).removeChild(c)}}static _parseTemplateNode(i,s,o){let a=t._parseTemplateNode.call(this,i,s,o);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,s);l&&(i.textContent=ql(l)||" ",Gs(this,s,o,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(i,s,o,a,l){let u=this._parseBindings(l,s);if(u){let d=a,c="property";xg.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let h=ql(u);return h&&c=="attribute"&&(a=="class"&&i.hasAttribute("class")&&(h+=" "+i.getAttribute(a)),i.setAttribute(a,h)),c=="attribute"&&d=="disable-upgrade$"&&i.setAttribute(a,""),i.localName==="input"&&d==="value"&&i.setAttribute(d,""),i.removeAttribute(d),c==="property"&&(a=Oc(a)),Gs(this,s,o,c,a,u,h),!0}else return t._parseTemplateNodeAttribute.call(this,i,s,o,a,l)}static _parseTemplateNestedTemplate(i,s,o){let a=t._parseTemplateNestedTemplate.call(this,i,s,o);const l=i.parentNode,u=o.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";Nl&&(d||c)&&(l.removeChild(i),o=o.parentInfo,o.templateInfo=u,o.noted=!0,a=!1);let h=u.hostProps;if(j0&&d)h&&(s.hostProps=Object.assign(s.hostProps||{},h),Nl||(o.parentInfo.noted=!0));else{let f="{";for(let g in h){let b=[{mode:f,source:g,dependencies:[g],hostProp:!0}];Gs(this,s,o,"property","_host_"+g,b)}}return a}static _parseBindings(i,s){let o=[],a=0,l;for(;(l=jl.exec(i))!==null;){l.index>a&&o.push({literal:i.slice(a,l.index)});let u=l[1][0],d=!!l[2],c=l[3].trim(),h=!1,f="",g=-1;u=="{"&&(g=c.indexOf("::"))>0&&(f=c.substring(g+2),c=c.substring(0,g),h=!0);let b=js(c),v=[];if(b){let{args:y,methodName:_}=b;for(let w=0;w<y.length;w++){let A=y[w];A.literal||v.push(A)}let E=s.dynamicFns;(E&&E[_]||b.static)&&(v.push(_),b.dynamicFn=!0)}else v.push(c);o.push({source:c,mode:u,negate:d,customEvent:h,signature:b,dependencies:v,event:f}),a=jl.lastIndex}if(a&&a<i.length){let u=i.substring(a);u&&o.push({literal:u})}return o.length?o:null}static _evaluateBinding(i,s,o,a,l,u){let d;return s.signature?d=Oo(i,o,a,l,s.signature):o!=s.source?d=rt(i,s.source):u&&Ao(o)?d=rt(i,o):d=i.__data[o],s.negate&&(d=!d),d}}return r}),cn=[];/**
|
|
2052
|
+
@license
|
|
2053
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2054
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2055
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2056
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2057
|
+
Code distributed by Google as part of the polymer project is also
|
|
2058
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2059
|
+
*//**
|
|
2060
|
+
@license
|
|
2061
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2062
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2063
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2064
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2065
|
+
Code distributed by Google as part of the polymer project is also
|
|
2066
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2067
|
+
*/function nb(e){const t={};for(let r in e){const n=e[r];t[r]=typeof n=="function"?{type:n}:n}return t}const ib=Ye(e=>{const t=Lc(e);function r(s){const o=Object.getPrototypeOf(s);return o.prototype instanceof i?o:null}function n(s){if(!s.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",s))){let o=null;if(s.hasOwnProperty(JSCompiler_renameProperty("properties",s))){const a=s.properties;a&&(o=nb(a))}s.__ownProperties=o}return s.__ownProperties}class i extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const o=this._properties;this.__observedAttributes=o?Object.keys(o).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const o=r(this);o&&o.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const o=n(this);o&&this.createProperties(o)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const o=r(this);this.__properties=Object.assign({},o&&o._properties,n(this))}return this.__properties}static typeForProperty(o){const a=this._properties[o];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return i});/**
|
|
2068
|
+
* @fileoverview
|
|
2069
|
+
* @suppress {checkPrototypalTypes}
|
|
2070
|
+
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2071
|
+
* This code may only be used under the BSD style license found at
|
|
2072
|
+
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
2073
|
+
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
2074
|
+
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
2075
|
+
* Google as part of the polymer project is also subject to an additional IP
|
|
2076
|
+
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2077
|
+
*/const sb="3.5.2",Xl=window.ShadyCSS&&window.ShadyCSS.cssBuild,ob=Ye(e=>{const t=ib(fa(e));function r(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let d in u){let c=u[d];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=c)}}return l.__propertyDefaults}function n(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function i(l,u,d,c){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,d.computed,c)),d.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):d.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),d.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):d.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),d.observer&&l._createPropertyObserver(u,d.observer,c[d.observer]),l._addPropertyToAttributeMap(u)}function s(l,u,d,c){if(!Xl){const h=u.content.querySelectorAll("style"),f=Pc(u),g=tg(d),b=u.content.firstElementChild;for(let y=0;y<g.length;y++){let _=g[y];_.textContent=l._processStyleText(_.textContent,c),u.content.insertBefore(_,b)}let v=0;for(let y=0;y<f.length;y++){let _=f[y],E=h[v];E!==_?(_=_.cloneNode(!0),E.parentNode.insertBefore(_,E)):v++,_.textContent=l._processStyleText(_.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,d),q0&&Xl&&W0){const h=u.content.querySelectorAll("style");if(h){let f="";Array.from(h).forEach(g=>{f+=g.textContent,g.parentNode.removeChild(g)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function o(l){let u=null;if(l&&(!Bi||$0)&&(u=An.import(l,"template"),Bi&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends t{static get polymerElementVersion(){return sb}static _finalizeClass(){t._finalizeClass.call(this);const u=n(this);u&&this.createObservers(u,this._properties),this._prepareTemplate()}static _prepareTemplate(){let u=this.template;u&&(typeof u=="string"?(console.error("template getter must return HTMLTemplateElement"),u=null):Ec||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let d in u)i(this.prototype,d,u[d],u)}static createObservers(u,d){const c=this.prototype;for(let h=0;h<u.length;h++)c._createMethodObserver(u[h],d)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let u=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof u=="function"&&(u=u()),this._template=u!==void 0?u:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&o(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(u){this._template=u}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const u=this.importMeta;if(u)this._importPath=da(u.url);else{const d=An.import(this.is);this._importPath=d&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=z0,this.importPath=this.constructor.importPath;let u=r(this.constructor);if(u)for(let d in u){let c=u[d];if(this._canApplyPropertyDefault(d)){let h=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,h,!0):this[d]=h}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,d){return ua(u,d)}static _finalizeTemplate(u){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,h=c?wn(c):"";s(this,d,u,h),this.prototype._bindTemplate(d)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(u){const d=Ve(this);if(d.attachShadow)return u?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:u}),d.shadowRoot.appendChild(u),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),V0&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)}resolveUrl(u,d){return!d&&this.importPath&&(d=wn(this.importPath)),wn(u,d)}static _parseTemplateContent(u,d,c){return d.dynamicFns=d.dynamicFns||this._properties,t._parseTemplateContent.call(this,u,d,c)}static _addTemplatePropertyEffect(u,d,c){return Sc&&!(d in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,u,d,c)}}return a});/**
|
|
2078
|
+
@license
|
|
2079
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2080
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2081
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2082
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2083
|
+
Code distributed by Google as part of the polymer project is also
|
|
2084
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2085
|
+
*/const Kl=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});class Vc{constructor(t,r){jc(t,r);const n=r.reduce((i,s,o)=>i+Gc(s)+t[o+1],t[0]);this.value=n.toString()}toString(){return this.value}}function Gc(e){if(e instanceof Vc)return e.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${e}`)}function ab(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof Vc)return Gc(e);throw new Error(`non-template value passed to Polymer's html function: ${e}`)}const yr=function(t,...r){jc(t,r);const n=document.createElement("template");let i=r.reduce((s,o,a)=>s+ab(o)+t[a+1],t[0]);return Kl&&(i=Kl.createHTML(i)),n.innerHTML=i,n},jc=(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")};/**
|
|
2086
|
+
@license
|
|
2087
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2088
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2089
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2090
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2091
|
+
Code distributed by Google as part of the polymer project is also
|
|
2092
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2093
|
+
*/const rr=ob(HTMLElement);/**
|
|
2094
|
+
* @license
|
|
2095
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2096
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2097
|
+
*/const At=[];function Bo(e,t,r=e.getAttribute("dir")){t?e.setAttribute("dir",t):r!=null&&e.removeAttribute("dir")}function No(){return document.documentElement.getAttribute("dir")}function lb(){const e=No();At.forEach(t=>{Bo(t,e)})}const ub=new MutationObserver(lb);ub.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const os=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:r=>r||"",toAttribute:r=>r===""?null:r}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Bo(this,No(),null))}attributeChangedCallback(r,n,i){if(super.attributeChangedCallback(r,n,i),r!=="dir")return;const s=No(),o=i===s&&At.indexOf(this)===-1,a=!i&&n&&At.indexOf(this)===-1;o||a?(this.__subscribe(),Bo(this,s,i)):i!==s&&n===s&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=At.includes(this),this.__unsubscribe()}_valueToNodeAttribute(r,n,i){i==="dir"&&n===""&&!r.hasAttribute("dir")||super._valueToNodeAttribute(r,n,i)}_attributeToProperty(r,n,i){r==="dir"&&!n?this.dir="":super._attributeToProperty(r,n,i)}__subscribe(){At.includes(this)||At.push(this)}__unsubscribe(){At.includes(this)&&At.splice(At.indexOf(this),1)}};/**
|
|
2098
|
+
* @license
|
|
2099
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2100
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2101
|
+
*/const db=e=>class extends e{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",r=>{r.target===this&&r.preventDefault()}),this.addEventListener("click",r=>{r.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(n=>n.focus&&n.focus())})}};/**
|
|
2102
|
+
* @license
|
|
2103
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2104
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2105
|
+
*/const cb=ge`
|
|
2106
|
+
:host {
|
|
2107
|
+
display: flex;
|
|
2108
|
+
align-items: center;
|
|
2109
|
+
flex: 0 1 auto;
|
|
2110
|
+
border-radius:
|
|
2111
|
+
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
|
|
2112
|
+
var(--vaadin-input-field-top-start-radius, var(--__border-radius))
|
|
2113
|
+
var(--vaadin-input-field-top-end-radius, var(--__border-radius))
|
|
2114
|
+
var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
|
|
2115
|
+
var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
|
|
2116
|
+
--_border-radius: var(--vaadin-input-field-border-radius, 0);
|
|
2117
|
+
--_input-border-width: var(--vaadin-input-field-border-width, 0);
|
|
2118
|
+
--_input-border-color: var(--vaadin-input-field-border-color, transparent);
|
|
2119
|
+
box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
:host([dir='rtl']) {
|
|
2123
|
+
border-radius:
|
|
2124
|
+
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
2125
|
+
var(--vaadin-input-field-top-end-radius, var(--_border-radius))
|
|
2126
|
+
var(--vaadin-input-field-top-start-radius, var(--_border-radius))
|
|
2127
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
|
|
2128
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
:host([hidden]) {
|
|
2132
|
+
display: none !important;
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
/* Reset the native input styles */
|
|
2136
|
+
::slotted(input) {
|
|
2137
|
+
-webkit-appearance: none;
|
|
2138
|
+
-moz-appearance: none;
|
|
2139
|
+
flex: auto;
|
|
2140
|
+
white-space: nowrap;
|
|
2141
|
+
overflow: hidden;
|
|
2142
|
+
width: 100%;
|
|
2143
|
+
height: 100%;
|
|
2144
|
+
outline: none;
|
|
2145
|
+
margin: 0;
|
|
2146
|
+
padding: 0;
|
|
2147
|
+
border: 0;
|
|
2148
|
+
border-radius: 0;
|
|
2149
|
+
min-width: 0;
|
|
2150
|
+
font: inherit;
|
|
2151
|
+
line-height: normal;
|
|
2152
|
+
color: inherit;
|
|
2153
|
+
background-color: transparent;
|
|
2154
|
+
/* Disable default invalid style in Firefox */
|
|
2155
|
+
box-shadow: none;
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
::slotted(*) {
|
|
2159
|
+
flex: none;
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
::slotted(:is(input, textarea))::placeholder {
|
|
2163
|
+
/* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
|
|
2164
|
+
/* because ::slotted(...)::placeholder does not work in Safari. */
|
|
2165
|
+
font: inherit;
|
|
2166
|
+
color: inherit;
|
|
2167
|
+
/* Override default opacity in Firefox */
|
|
2168
|
+
opacity: 1;
|
|
2169
|
+
}
|
|
2170
|
+
`;/**
|
|
2171
|
+
* @license
|
|
2172
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2173
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2174
|
+
*/Fe("vaadin-input-container",cb,{moduleId:"vaadin-input-container-styles"});class hb extends db(br(os(rr))){static get is(){return"vaadin-input-container"}static get template(){return yr`
|
|
2175
|
+
<slot name="prefix"></slot>
|
|
2176
|
+
<slot></slot>
|
|
2177
|
+
<slot name="suffix"></slot>
|
|
2178
|
+
`}}St(hb);/**
|
|
2179
|
+
* @license
|
|
2180
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2181
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2182
|
+
*/const fb=ge`
|
|
2183
|
+
:host {
|
|
2184
|
+
z-index: 200;
|
|
2185
|
+
position: fixed;
|
|
2186
|
+
|
|
2187
|
+
/* Despite of what the names say, <vaadin-overlay> is just a container
|
|
2188
|
+
for position/sizing/alignment. The actual overlay is the overlay part. */
|
|
2189
|
+
|
|
2190
|
+
/* Default position constraints: the entire viewport. Note: themes can
|
|
2191
|
+
override this to introduce gaps between the overlay and the viewport. */
|
|
2192
|
+
inset: 0;
|
|
2193
|
+
bottom: var(--vaadin-overlay-viewport-bottom);
|
|
2194
|
+
|
|
2195
|
+
/* Use flexbox alignment for the overlay part. */
|
|
2196
|
+
display: flex;
|
|
2197
|
+
flex-direction: column; /* makes dropdowns sizing easier */
|
|
2198
|
+
/* Align to center by default. */
|
|
2199
|
+
align-items: center;
|
|
2200
|
+
justify-content: center;
|
|
2201
|
+
|
|
2202
|
+
/* Allow centering when max-width/max-height applies. */
|
|
2203
|
+
margin: auto;
|
|
2204
|
+
|
|
2205
|
+
/* The host is not clickable, only the overlay part is. */
|
|
2206
|
+
pointer-events: none;
|
|
2207
|
+
|
|
2208
|
+
/* Remove tap highlight on touch devices. */
|
|
2209
|
+
-webkit-tap-highlight-color: transparent;
|
|
2210
|
+
|
|
2211
|
+
/* CSS API for host */
|
|
2212
|
+
--vaadin-overlay-viewport-bottom: 0;
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
:host([hidden]),
|
|
2216
|
+
:host(:not([opened]):not([closing])),
|
|
2217
|
+
:host(:not([opened]):not([closing])) [part='overlay'] {
|
|
2218
|
+
display: none !important;
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
[part='overlay'] {
|
|
2222
|
+
-webkit-overflow-scrolling: touch;
|
|
2223
|
+
overflow: auto;
|
|
2224
|
+
pointer-events: auto;
|
|
2225
|
+
|
|
2226
|
+
/* Prevent overflowing the host */
|
|
2227
|
+
max-width: 100%;
|
|
2228
|
+
box-sizing: border-box;
|
|
2229
|
+
|
|
2230
|
+
-webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
[part='backdrop'] {
|
|
2234
|
+
z-index: -1;
|
|
2235
|
+
content: '';
|
|
2236
|
+
background: rgba(0, 0, 0, 0.5);
|
|
2237
|
+
position: fixed;
|
|
2238
|
+
inset: 0;
|
|
2239
|
+
pointer-events: auto;
|
|
2240
|
+
}
|
|
2241
|
+
`;/**
|
|
2242
|
+
* @license
|
|
2243
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2244
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2245
|
+
*/let pa=!1;window.addEventListener("keydown",()=>{pa=!0},{capture:!0});window.addEventListener("mousedown",()=>{pa=!1},{capture:!0});function Io(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function ma(){return pa}function pb(e){const t=e.style;if(t.visibility==="hidden"||t.display==="none")return!0;const r=window.getComputedStyle(e);return r.visibility==="hidden"||r.display==="none"}function mb(e,t){const r=Math.max(e.tabIndex,0),n=Math.max(t.tabIndex,0);return r===0||n===0?n>r:r>n}function _b(e,t){const r=[];for(;e.length>0&&t.length>0;)mb(e[0],t[0])?r.push(t.shift()):r.push(e.shift());return r.concat(e,t)}function Lo(e){const t=e.length;if(t<2)return e;const r=Math.ceil(t/2),n=Lo(e.slice(0,r)),i=Lo(e.slice(r));return _b(n,i)}function qc(e){return e.matches('[tabindex="-1"]')?!1:e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function gb(e){return e.getRootNode().activeElement===e}function bb(e){if(!qc(e))return-1;const t=e.getAttribute("tabindex")||0;return Number(t)}function Zc(e,t){if(e.nodeType!==Node.ELEMENT_NODE||pb(e))return!1;const r=e,n=bb(r);let i=n>0;n>=0&&t.push(r);let s=[];return r.localName==="slot"?s=r.assignedNodes({flatten:!0}):s=(r.shadowRoot||r).children,[...s].forEach(o=>{i=Zc(o,t)||i}),i}function vb(e){const t=[];return Zc(e,t)?Lo(t):t}/**
|
|
2246
|
+
@license
|
|
2247
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2248
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2249
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2250
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2251
|
+
Code distributed by Google as part of the polymer project is also
|
|
2252
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2253
|
+
*/let Fo=!1,yb=[],Xc=[];function wb(){Fo=!0,requestAnimationFrame(function(){Fo=!1,Cb(yb),setTimeout(function(){xb(Xc)})})}function Cb(e){for(;e.length;)Kc(e.shift())}function xb(e){for(let t=0,r=e.length;t<r;t++)Kc(e.shift())}function Kc(e){const t=e[0],r=e[1],n=e[2];try{r.apply(t,n)}catch(i){setTimeout(()=>{throw i})}}function Jc(e,t,r){Fo||wb(),Xc.push([e,t,r])}/**
|
|
2254
|
+
* @license
|
|
2255
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2256
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2257
|
+
*/const as=e=>e.test(navigator.userAgent),Ro=e=>e.test(navigator.platform),Eb=e=>e.test(navigator.vendor);as(/Android/u);as(/Chrome/u)&&Eb(/Google Inc/u);as(/Firefox/u);const Sb=Ro(/^iPad/u)||Ro(/^Mac/u)&&navigator.maxTouchPoints>1,kb=Ro(/^iPhone/u),Qc=kb||Sb;as(/^((?!chrome|android).)*safari/iu);const Tb=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})();/**
|
|
2258
|
+
* @license
|
|
2259
|
+
* Copyright (c) 2017 Anton Korzunov
|
|
2260
|
+
* SPDX-License-Identifier: MIT
|
|
2261
|
+
*/let kr=new WeakMap,ai=new WeakMap,li={},qs=0;const Jl=e=>e&&e.nodeType===Node.ELEMENT_NODE,Zs=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},Pb=(e,t)=>Jl(e)?t.map(r=>{if(!Jl(r))return Zs(r,"is not a valid element"),null;let n=r;for(;n&&n!==e;){if(e.contains(n))return r;n=n.getRootNode().host}return Zs(r,"is not contained inside",e),null}).filter(r=>!!r):(Zs(e,"is not a valid element"),[]),Db=(e,t,r,n)=>{const i=Pb(t,Array.isArray(e)?e:[e]);li[r]||(li[r]=new WeakMap);const s=li[r],o=[],a=new Set,l=new Set(i),u=c=>{if(!c||a.has(c))return;a.add(c);const h=c.assignedSlot;h&&u(h),u(c.parentNode||c.host)};i.forEach(u);const d=c=>{if(!c||l.has(c))return;const h=c.shadowRoot;(h?[...c.children,...h.children]:[...c.children]).forEach(g=>{if(!["template","script","style"].includes(g.localName))if(a.has(g))d(g);else{const b=g.getAttribute(n),v=b!==null&&b!=="false",y=(kr.get(g)||0)+1,_=(s.get(g)||0)+1;kr.set(g,y),s.set(g,_),o.push(g),y===1&&v&&ai.set(g,!0),_===1&&g.setAttribute(r,"true"),v||g.setAttribute(n,"true")}})};return d(t),a.clear(),qs+=1,()=>{o.forEach(c=>{const h=kr.get(c)-1,f=s.get(c)-1;kr.set(c,h),s.set(c,f),h||(ai.has(c)?ai.delete(c):c.removeAttribute(n)),f||c.removeAttribute(r)}),qs-=1,qs||(kr=new WeakMap,kr=new WeakMap,ai=new WeakMap,li={})}},eh=(e,t=document.body,r="data-aria-hidden")=>{const n=Array.from(Array.isArray(e)?e:[e]);return t&&n.push(...Array.from(t.querySelectorAll("[aria-live]"))),Db(n,t,r,"aria-hidden")};/**
|
|
2262
|
+
* @license
|
|
2263
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2264
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2265
|
+
*/class Ab{constructor(t,r){this.host=t,this.callback=typeof r=="function"?r:()=>t}showModal(){const t=this.callback();this.__showOthers=eh(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
|
|
2266
|
+
* @license
|
|
2267
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2268
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2269
|
+
*/class Mb{saveFocus(t){this.focusNode=t||Io()}restoreFocus(t){const r=this.focusNode;if(!r)return;const n=t?t.preventScroll:!1;Io()===document.body?setTimeout(()=>r.focus({preventScroll:n})):r.focus({preventScroll:n}),this.focusNode=null}}/**
|
|
2270
|
+
* @license
|
|
2271
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2272
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2273
|
+
*/const Xs=[];class Ob{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return vb(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(gb).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Xs.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Xs.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Xs).pop()&&t.key==="Tab"){t.preventDefault();const r=t.shiftKey;this.__focusNextElement(r)}}__focusNextElement(t=!1){const r=this.__focusableElements,n=t?-1:1,i=this.__focusedElementIndex,s=(r.length+i+n)%r.length,o=r[s];o.focus(),o.localName==="input"&&o.select()}}/**
|
|
2274
|
+
* @license
|
|
2275
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2276
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2277
|
+
*/const Qr=Ye(e=>typeof e.prototype.addController=="function"?e:class extends e{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(r=>{r.hostConnected&&r.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(r=>{r.hostDisconnected&&r.hostDisconnected()})}addController(r){this.__controllers.add(r),this.$!==void 0&&this.isConnected&&r.hostConnected&&r.hostConnected()}removeController(r){this.__controllers.delete(r)}});/**
|
|
2278
|
+
* @license
|
|
2279
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2280
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2281
|
+
*/const Bb=e=>class extends Qr(e){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Ab(this),this.__focusTrapController=new Ob(this),this.__focusRestorationController=new Mb}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const r=!ma();this.__focusRestorationController.restoreFocus({preventScroll:r})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const r=Io();return r===document.body||this._deepContains(r)}_deepContains(r){if(this.contains(r))return!0;let n=r;const i=r.ownerDocument;for(;n&&n!==i&&n!==this;)n=n.parentNode||n.host;return n===this}};/**
|
|
2282
|
+
* @license
|
|
2283
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2284
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2285
|
+
*/const th=()=>Array.from(document.body.children).filter(e=>e instanceof HTMLElement&&e._hasOverlayStackMixin&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0),Ho=()=>th().filter(e=>e.$.overlay),Nb=e=>e===Ho().pop(),Ib=e=>class extends e{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Nb(this)}bringToFront(){let r="";const n=th().filter(i=>i!==this).pop();n&&(r=n.__zIndex+1),this.style.zIndex=r,this.__zIndex=r||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Ho().forEach(r=>{r!==this&&(r.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const r=Ho();let n;for(;(n=r.pop())&&!(n!==this&&(n.$.overlay.style.removeProperty("pointer-events"),!n.modeless)););}};/**
|
|
2286
|
+
* @license
|
|
2287
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2288
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2289
|
+
*/const Lb=e=>class extends Bb(Ib(e)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Qc&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(r){const n=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:r}});this.dispatchEvent(n),n.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const r=window.innerHeight,i=window.innerWidth>r,s=document.documentElement.clientHeight;i&&s>r?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${s-r}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(r,n,i,s){const o=this._oldOwner!==n||this._oldModel!==i;this._oldModel=i,this._oldOwner=n;const a=this._oldRenderer!==r,l=this._oldRenderer!==void 0;this._oldRenderer=r;const u=this._oldOpened!==s;this._oldOpened=s,a&&l&&(this.innerHTML="",delete this._$litPart$),s&&r&&(a||u||o)&&this.requestContentUpdate()}_modelessChanged(r){r?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(r,n){r?(this._saveFocus(),this._animatedOpening(),Jc(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):n&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(r){r&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const r=getComputedStyle(this),n=r.getPropertyValue("animation-name");return!(r.getPropertyValue("display")==="none")&&n&&n!=="none"}_enqueueAnimation(r,n){const i=`__${r}Handler`,s=o=>{o&&o.target!==this||(n(),this.removeEventListener("animationend",s),delete this[i])};this[i]=s,this.addEventListener("animationend",s)}_flushAnimation(r){const n=`__${r}Handler`;typeof this[n]=="function"&&this[n]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(r){this._mouseDownInside=r.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(r){this._mouseUpInside=r.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(r){return this._last}_outsideClickListener(r){if(r.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(r))return;const n=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:r}});this.dispatchEvent(n),this.opened&&!n.defaultPrevented&&this.close(r)}_keydownListener(r){if(this._last&&!(this.modeless&&!r.composedPath().includes(this.$.overlay))&&r.key==="Escape"){const n=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:r}});this.dispatchEvent(n),this.opened&&!n.defaultPrevented&&this.close(r)}}};/**
|
|
2290
|
+
* @license
|
|
2291
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2292
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2293
|
+
*/function Fb(e){const t=[];for(;e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(e),e=e.host;continue}if(e.assignedSlot){e=e.assignedSlot;continue}e=e.parentNode}return t}function _a(e){return e?new Set(e.split(" ")):new Set}function ls(e){return e?[...e].join(" "):""}function rh(e,t,r){const n=_a(e.getAttribute(t));n.add(r),e.setAttribute(t,ls(n))}function Rb(e,t,r){const n=_a(e.getAttribute(t));if(n.delete(r),n.size===0){e.removeAttribute(t);return}e.setAttribute(t,ls(n))}function Hb(e){return e.nodeType===Node.TEXT_NODE&&e.textContent.trim()===""}/**
|
|
2294
|
+
* @license
|
|
2295
|
+
* Copyright (c) 2024 Vaadin Ltd.
|
|
2296
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2297
|
+
*/function Ub(e,t){let r=null;const n=document.documentElement;function i(){r&&r.disconnect(),r=null}function s(o=!1,a=1){i();const{left:l,top:u,width:d,height:c}=e.getBoundingClientRect();if(o||t(),!d||!c)return;const h=Math.floor(u),f=Math.floor(n.clientWidth-(l+d)),g=Math.floor(n.clientHeight-(u+c)),b=Math.floor(l),y={rootMargin:`${-h}px ${-f}px ${-g}px ${-b}px`,threshold:Math.max(0,Math.min(1,a))||1};let _=!0;function E(w){let A=w[0].intersectionRatio;if(A!==a){if(!_)return s();A===0&&(A=1e-7),s(!1,A)}_=!1}r=new IntersectionObserver(E,y),r.observe(e)}return s(!0),i}/**
|
|
2298
|
+
* @license
|
|
2299
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2300
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2301
|
+
*/const Ks={start:"top",end:"bottom"},Js={start:"left",end:"right"},Ql=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),Yb=e=>class extends e{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!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.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=Fb(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(r=>{r.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Ub(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(r=>{r.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(r,n){if(this.__removeUpdatePositionEventListeners(),n&&(n.__overlay=null,Ql.unobserve(n),r&&(this.__addUpdatePositionEventListeners(),n.__overlay=this,Ql.observe(n))),r){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(s=>{this.__margins[s]=parseInt(i[s],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(r){r.target instanceof Node&&this.contains(r.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const r=this.positionTarget.getBoundingClientRect();if(r.width===0&&r.height===0&&this.opened){this.opened=!1;return}const n=this.__shouldAlignStartVertically(r);this.style.justifyContent=n?"flex-start":"flex-end";const i=this.__isRTL,s=this.__shouldAlignStartHorizontally(r,i),o=!i&&s||i&&!s;this.style.alignItems=o?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(r,a,this.noVerticalOverlap,Ks,this,n),u=this.__calculatePositionInOneDimension(r,a,this.noHorizontalOverlap,Js,this,s);Object.assign(this.style,l,u),this.toggleAttribute("bottom-aligned",!n),this.toggleAttribute("top-aligned",n),this.toggleAttribute("end-aligned",!o),this.toggleAttribute("start-aligned",o)}__shouldAlignStartHorizontally(r,n){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const s=Math.min(window.innerWidth,document.documentElement.clientWidth),o=!n&&this.horizontalAlign==="start"||n&&this.horizontalAlign==="end";return this.__shouldAlignStart(r,i,s,this.__margins,o,this.noHorizontalOverlap,Js)}__shouldAlignStartVertically(r){const n=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),s=this.verticalAlign==="top";return this.__shouldAlignStart(r,n,i,this.__margins,s,this.noVerticalOverlap,Ks)}__shouldAlignStart(r,n,i,s,o,a,l){const u=i-r[a?l.end:l.start]-s[l.end],d=r[a?l.start:l.end]-s[l.start],c=o?u:d,f=c>(o?d:u)||c>n;return o===f}__adjustBottomProperty(r,n,i){let s;if(r===n.end){if(n.end===Ks.end){const o=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>o&&this.__oldViewportHeight){const a=this.__oldViewportHeight-o;s=i-a}this.__oldViewportHeight=o}if(n.end===Js.end){const o=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>o&&this.__oldViewportWidth){const a=this.__oldViewportWidth-o;s=i-a}this.__oldViewportWidth=o}}return s}__calculatePositionInOneDimension(r,n,i,s,o,a){const l=a?s.start:s.end,u=a?s.end:s.start,d=parseFloat(o.style[l]||getComputedStyle(o)[l]),c=this.__adjustBottomProperty(l,s,d),h=n[a?s.start:s.end]-r[i===a?s.end:s.start],f=c?`${c}px`:`${d+h*(a?-1:1)}px`;return{[l]:f,[u]:""}}};/**
|
|
2302
|
+
* @license
|
|
2303
|
+
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
2304
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2305
|
+
*/const Wb=e=>class extends Yb(Lb(e)){_shouldCloseOnOutsideClick(r){return!r.composedPath().includes(this.positionTarget)}_mouseDownListener(r){super._mouseDownListener(r),this._shouldCloseOnOutsideClick(r)&&!qc(r.composedPath()[0])&&r.preventDefault()}};/**
|
|
2306
|
+
* @license
|
|
2307
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2308
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2309
|
+
*/const zb=ge`
|
|
2310
|
+
[part='overlay'] {
|
|
2311
|
+
display: flex;
|
|
2312
|
+
flex: auto;
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
[part~='content'] {
|
|
2316
|
+
flex: auto;
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
@media (forced-colors: active) {
|
|
2320
|
+
[part='overlay'] {
|
|
2321
|
+
outline: 3px solid;
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
`;/**
|
|
2325
|
+
* @license
|
|
2326
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2327
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2328
|
+
*/Fe("vaadin-date-picker-overlay",[fb,zb],{moduleId:"vaadin-date-picker-overlay-styles"});class $b extends Wb(os(br(rr))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return yr`
|
|
2329
|
+
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
2330
|
+
<div part="overlay" id="overlay">
|
|
2331
|
+
<div part="content" id="content">
|
|
2332
|
+
<slot></slot>
|
|
2333
|
+
</div>
|
|
2334
|
+
</div>
|
|
2335
|
+
`}}St($b);const Vb=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,bi=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Gb(){function e(){return!0}return nh(e)}function jb(){try{return qb()?!0:Zb()?bi?!Xb():!Gb():!1}catch(e){return!1}}function qb(){return localStorage.getItem("vaadin.developmentmode.force")}function Zb(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Xb(){return!!(bi&&Object.keys(bi).map(t=>bi[t]).filter(t=>t.productionMode).length>0)}function nh(e,t){if(typeof e!="function")return;const r=Vb.exec(e.toString());if(r)try{e=new Function(r[1])}catch(n){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",n)}return e(t)}window.Vaadin=window.Vaadin||{};const eu=function(e,t){if(window.Vaadin.developmentMode)return nh(e,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=jb());function Kb(){/*! vaadin-dev-mode:start
|
|
2336
|
+
(function () {
|
|
2337
|
+
'use strict';
|
|
2338
|
+
|
|
2339
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
2340
|
+
return typeof obj;
|
|
2341
|
+
} : function (obj) {
|
|
2342
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
2343
|
+
};
|
|
2344
|
+
|
|
2345
|
+
var classCallCheck = function (instance, Constructor) {
|
|
2346
|
+
if (!(instance instanceof Constructor)) {
|
|
2347
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2348
|
+
}
|
|
2349
|
+
};
|
|
2350
|
+
|
|
2351
|
+
var createClass = function () {
|
|
2352
|
+
function defineProperties(target, props) {
|
|
2353
|
+
for (var i = 0; i < props.length; i++) {
|
|
2354
|
+
var descriptor = props[i];
|
|
2355
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
2356
|
+
descriptor.configurable = true;
|
|
2357
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
2358
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2362
|
+
return function (Constructor, protoProps, staticProps) {
|
|
2363
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
2364
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
|
2365
|
+
return Constructor;
|
|
2366
|
+
};
|
|
2367
|
+
}();
|
|
2368
|
+
|
|
2369
|
+
var getPolymerVersion = function getPolymerVersion() {
|
|
2370
|
+
return window.Polymer && window.Polymer.version;
|
|
2371
|
+
};
|
|
2372
|
+
|
|
2373
|
+
var StatisticsGatherer = function () {
|
|
2374
|
+
function StatisticsGatherer(logger) {
|
|
2375
|
+
classCallCheck(this, StatisticsGatherer);
|
|
2376
|
+
|
|
2377
|
+
this.now = new Date().getTime();
|
|
2378
|
+
this.logger = logger;
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
createClass(StatisticsGatherer, [{
|
|
2382
|
+
key: 'frameworkVersionDetectors',
|
|
2383
|
+
value: function frameworkVersionDetectors() {
|
|
2384
|
+
return {
|
|
2385
|
+
'Flow': function Flow() {
|
|
2386
|
+
if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
|
|
2387
|
+
var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
|
|
2388
|
+
return window.Vaadin.Flow.clients[key];
|
|
2389
|
+
}).filter(function (client) {
|
|
2390
|
+
return client.getVersionInfo;
|
|
2391
|
+
}).map(function (client) {
|
|
2392
|
+
return client.getVersionInfo().flow;
|
|
2393
|
+
});
|
|
2394
|
+
if (flowVersions.length > 0) {
|
|
2395
|
+
return flowVersions[0];
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
},
|
|
2399
|
+
'Vaadin Framework': function VaadinFramework() {
|
|
2400
|
+
if (window.vaadin && window.vaadin.clients) {
|
|
2401
|
+
var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
|
|
2402
|
+
return client.getVersionInfo;
|
|
2403
|
+
}).map(function (client) {
|
|
2404
|
+
return client.getVersionInfo().vaadinVersion;
|
|
2405
|
+
});
|
|
2406
|
+
if (frameworkVersions.length > 0) {
|
|
2407
|
+
return frameworkVersions[0];
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
},
|
|
2411
|
+
'AngularJs': function AngularJs() {
|
|
2412
|
+
if (window.angular && window.angular.version && window.angular.version) {
|
|
2413
|
+
return window.angular.version.full;
|
|
2414
|
+
}
|
|
2415
|
+
},
|
|
2416
|
+
'Angular': function Angular() {
|
|
2417
|
+
if (window.ng) {
|
|
2418
|
+
var tags = document.querySelectorAll("[ng-version]");
|
|
2419
|
+
if (tags.length > 0) {
|
|
2420
|
+
return tags[0].getAttribute("ng-version");
|
|
2421
|
+
}
|
|
2422
|
+
return "Unknown";
|
|
2423
|
+
}
|
|
2424
|
+
},
|
|
2425
|
+
'Backbone.js': function BackboneJs() {
|
|
2426
|
+
if (window.Backbone) {
|
|
2427
|
+
return window.Backbone.VERSION;
|
|
2428
|
+
}
|
|
2429
|
+
},
|
|
2430
|
+
'React': function React() {
|
|
2431
|
+
var reactSelector = '[data-reactroot], [data-reactid]';
|
|
2432
|
+
if (!!document.querySelector(reactSelector)) {
|
|
2433
|
+
// React does not publish the version by default
|
|
2434
|
+
return "unknown";
|
|
2435
|
+
}
|
|
2436
|
+
},
|
|
2437
|
+
'Ember': function Ember() {
|
|
2438
|
+
if (window.Em && window.Em.VERSION) {
|
|
2439
|
+
return window.Em.VERSION;
|
|
2440
|
+
} else if (window.Ember && window.Ember.VERSION) {
|
|
2441
|
+
return window.Ember.VERSION;
|
|
2442
|
+
}
|
|
2443
|
+
},
|
|
2444
|
+
'jQuery': function (_jQuery) {
|
|
2445
|
+
function jQuery() {
|
|
2446
|
+
return _jQuery.apply(this, arguments);
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
jQuery.toString = function () {
|
|
2450
|
+
return _jQuery.toString();
|
|
2451
|
+
};
|
|
2452
|
+
|
|
2453
|
+
return jQuery;
|
|
2454
|
+
}(function () {
|
|
2455
|
+
if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
|
|
2456
|
+
return jQuery.prototype.jquery;
|
|
2457
|
+
}
|
|
2458
|
+
}),
|
|
2459
|
+
'Polymer': function Polymer() {
|
|
2460
|
+
var version = getPolymerVersion();
|
|
2461
|
+
if (version) {
|
|
2462
|
+
return version;
|
|
2463
|
+
}
|
|
2464
|
+
},
|
|
2465
|
+
'LitElement': function LitElement() {
|
|
2466
|
+
var version = window.litElementVersions && window.litElementVersions[0];
|
|
2467
|
+
if (version) {
|
|
2468
|
+
return version;
|
|
2469
|
+
}
|
|
2470
|
+
},
|
|
2471
|
+
'LitHtml': function LitHtml() {
|
|
2472
|
+
var version = window.litHtmlVersions && window.litHtmlVersions[0];
|
|
2473
|
+
if (version) {
|
|
2474
|
+
return version;
|
|
2475
|
+
}
|
|
2476
|
+
},
|
|
2477
|
+
'Vue.js': function VueJs() {
|
|
2478
|
+
if (window.Vue) {
|
|
2479
|
+
return window.Vue.version;
|
|
2480
|
+
}
|
|
2481
|
+
}
|
|
2482
|
+
};
|
|
2483
|
+
}
|
|
2484
|
+
}, {
|
|
2485
|
+
key: 'getUsedVaadinElements',
|
|
2486
|
+
value: function getUsedVaadinElements(elements) {
|
|
2487
|
+
var version = getPolymerVersion();
|
|
2488
|
+
var elementClasses = void 0;
|
|
2489
|
+
// NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
|
|
2490
|
+
// Check all locations calling the method getEntries() in
|
|
2491
|
+
// https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
|
|
2492
|
+
// Currently it is only used by BootstrapHandler.
|
|
2493
|
+
if (version && version.indexOf('2') === 0) {
|
|
2494
|
+
// Polymer 2: components classes are stored in window.Vaadin
|
|
2495
|
+
elementClasses = Object.keys(window.Vaadin).map(function (c) {
|
|
2496
|
+
return window.Vaadin[c];
|
|
2497
|
+
}).filter(function (c) {
|
|
2498
|
+
return c.is;
|
|
2499
|
+
});
|
|
2500
|
+
} else {
|
|
2501
|
+
// Polymer 3: components classes are stored in window.Vaadin.registrations
|
|
2502
|
+
elementClasses = window.Vaadin.registrations || [];
|
|
2503
|
+
}
|
|
2504
|
+
elementClasses.forEach(function (klass) {
|
|
2505
|
+
var version = klass.version ? klass.version : "0.0.0";
|
|
2506
|
+
elements[klass.is] = { version: version };
|
|
2507
|
+
});
|
|
2508
|
+
}
|
|
2509
|
+
}, {
|
|
2510
|
+
key: 'getUsedVaadinThemes',
|
|
2511
|
+
value: function getUsedVaadinThemes(themes) {
|
|
2512
|
+
['Lumo', 'Material'].forEach(function (themeName) {
|
|
2513
|
+
var theme;
|
|
2514
|
+
var version = getPolymerVersion();
|
|
2515
|
+
if (version && version.indexOf('2') === 0) {
|
|
2516
|
+
// Polymer 2: themes are stored in window.Vaadin
|
|
2517
|
+
theme = window.Vaadin[themeName];
|
|
2518
|
+
} else {
|
|
2519
|
+
// Polymer 3: themes are stored in custom element registry
|
|
2520
|
+
theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
|
|
2521
|
+
}
|
|
2522
|
+
if (theme && theme.version) {
|
|
2523
|
+
themes[themeName] = { version: theme.version };
|
|
2524
|
+
}
|
|
2525
|
+
});
|
|
2526
|
+
}
|
|
2527
|
+
}, {
|
|
2528
|
+
key: 'getFrameworks',
|
|
2529
|
+
value: function getFrameworks(frameworks) {
|
|
2530
|
+
var detectors = this.frameworkVersionDetectors();
|
|
2531
|
+
Object.keys(detectors).forEach(function (framework) {
|
|
2532
|
+
var detector = detectors[framework];
|
|
2533
|
+
try {
|
|
2534
|
+
var version = detector();
|
|
2535
|
+
if (version) {
|
|
2536
|
+
frameworks[framework] = { version: version };
|
|
2537
|
+
}
|
|
2538
|
+
} catch (e) {}
|
|
2539
|
+
});
|
|
2540
|
+
}
|
|
2541
|
+
}, {
|
|
2542
|
+
key: 'gather',
|
|
2543
|
+
value: function gather(storage) {
|
|
2544
|
+
var storedStats = storage.read();
|
|
2545
|
+
var gatheredStats = {};
|
|
2546
|
+
var types = ["elements", "frameworks", "themes"];
|
|
2547
|
+
|
|
2548
|
+
types.forEach(function (type) {
|
|
2549
|
+
gatheredStats[type] = {};
|
|
2550
|
+
if (!storedStats[type]) {
|
|
2551
|
+
storedStats[type] = {};
|
|
2552
|
+
}
|
|
2553
|
+
});
|
|
2554
|
+
|
|
2555
|
+
var previousStats = JSON.stringify(storedStats);
|
|
2556
|
+
|
|
2557
|
+
this.getUsedVaadinElements(gatheredStats.elements);
|
|
2558
|
+
this.getFrameworks(gatheredStats.frameworks);
|
|
2559
|
+
this.getUsedVaadinThemes(gatheredStats.themes);
|
|
2560
|
+
|
|
2561
|
+
var now = this.now;
|
|
2562
|
+
types.forEach(function (type) {
|
|
2563
|
+
var keys = Object.keys(gatheredStats[type]);
|
|
2564
|
+
keys.forEach(function (key) {
|
|
2565
|
+
if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
|
|
2566
|
+
storedStats[type][key] = { firstUsed: now };
|
|
2567
|
+
}
|
|
2568
|
+
// Discards any previously logged version number
|
|
2569
|
+
storedStats[type][key].version = gatheredStats[type][key].version;
|
|
2570
|
+
storedStats[type][key].lastUsed = now;
|
|
2571
|
+
});
|
|
2572
|
+
});
|
|
2573
|
+
|
|
2574
|
+
var newStats = JSON.stringify(storedStats);
|
|
2575
|
+
storage.write(newStats);
|
|
2576
|
+
if (newStats != previousStats && Object.keys(storedStats).length > 0) {
|
|
2577
|
+
this.logger.debug("New stats: " + newStats);
|
|
2578
|
+
}
|
|
2579
|
+
}
|
|
2580
|
+
}]);
|
|
2581
|
+
return StatisticsGatherer;
|
|
2582
|
+
}();
|
|
2583
|
+
|
|
2584
|
+
var StatisticsStorage = function () {
|
|
2585
|
+
function StatisticsStorage(key) {
|
|
2586
|
+
classCallCheck(this, StatisticsStorage);
|
|
2587
|
+
|
|
2588
|
+
this.key = key;
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
createClass(StatisticsStorage, [{
|
|
2592
|
+
key: 'read',
|
|
2593
|
+
value: function read() {
|
|
2594
|
+
var localStorageStatsString = localStorage.getItem(this.key);
|
|
2595
|
+
try {
|
|
2596
|
+
return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
|
|
2597
|
+
} catch (e) {
|
|
2598
|
+
return {};
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2601
|
+
}, {
|
|
2602
|
+
key: 'write',
|
|
2603
|
+
value: function write(data) {
|
|
2604
|
+
localStorage.setItem(this.key, data);
|
|
2605
|
+
}
|
|
2606
|
+
}, {
|
|
2607
|
+
key: 'clear',
|
|
2608
|
+
value: function clear() {
|
|
2609
|
+
localStorage.removeItem(this.key);
|
|
2610
|
+
}
|
|
2611
|
+
}, {
|
|
2612
|
+
key: 'isEmpty',
|
|
2613
|
+
value: function isEmpty() {
|
|
2614
|
+
var storedStats = this.read();
|
|
2615
|
+
var empty = true;
|
|
2616
|
+
Object.keys(storedStats).forEach(function (key) {
|
|
2617
|
+
if (Object.keys(storedStats[key]).length > 0) {
|
|
2618
|
+
empty = false;
|
|
2619
|
+
}
|
|
2620
|
+
});
|
|
2621
|
+
|
|
2622
|
+
return empty;
|
|
2623
|
+
}
|
|
2624
|
+
}]);
|
|
2625
|
+
return StatisticsStorage;
|
|
2626
|
+
}();
|
|
2627
|
+
|
|
2628
|
+
var StatisticsSender = function () {
|
|
2629
|
+
function StatisticsSender(url, logger) {
|
|
2630
|
+
classCallCheck(this, StatisticsSender);
|
|
2631
|
+
|
|
2632
|
+
this.url = url;
|
|
2633
|
+
this.logger = logger;
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
createClass(StatisticsSender, [{
|
|
2637
|
+
key: 'send',
|
|
2638
|
+
value: function send(data, errorHandler) {
|
|
2639
|
+
var logger = this.logger;
|
|
2640
|
+
|
|
2641
|
+
if (navigator.onLine === false) {
|
|
2642
|
+
logger.debug("Offline, can't send");
|
|
2643
|
+
errorHandler();
|
|
2644
|
+
return;
|
|
2645
|
+
}
|
|
2646
|
+
logger.debug("Sending data to " + this.url);
|
|
2647
|
+
|
|
2648
|
+
var req = new XMLHttpRequest();
|
|
2649
|
+
req.withCredentials = true;
|
|
2650
|
+
req.addEventListener("load", function () {
|
|
2651
|
+
// Stats sent, nothing more to do
|
|
2652
|
+
logger.debug("Response: " + req.responseText);
|
|
2653
|
+
});
|
|
2654
|
+
req.addEventListener("error", function () {
|
|
2655
|
+
logger.debug("Send failed");
|
|
2656
|
+
errorHandler();
|
|
2657
|
+
});
|
|
2658
|
+
req.addEventListener("abort", function () {
|
|
2659
|
+
logger.debug("Send aborted");
|
|
2660
|
+
errorHandler();
|
|
2661
|
+
});
|
|
2662
|
+
req.open("POST", this.url);
|
|
2663
|
+
req.setRequestHeader("Content-Type", "application/json");
|
|
2664
|
+
req.send(data);
|
|
2665
|
+
}
|
|
2666
|
+
}]);
|
|
2667
|
+
return StatisticsSender;
|
|
2668
|
+
}();
|
|
2669
|
+
|
|
2670
|
+
var StatisticsLogger = function () {
|
|
2671
|
+
function StatisticsLogger(id) {
|
|
2672
|
+
classCallCheck(this, StatisticsLogger);
|
|
2673
|
+
|
|
2674
|
+
this.id = id;
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
createClass(StatisticsLogger, [{
|
|
2678
|
+
key: '_isDebug',
|
|
2679
|
+
value: function _isDebug() {
|
|
2680
|
+
return localStorage.getItem("vaadin." + this.id + ".debug");
|
|
2681
|
+
}
|
|
2682
|
+
}, {
|
|
2683
|
+
key: 'debug',
|
|
2684
|
+
value: function debug(msg) {
|
|
2685
|
+
if (this._isDebug()) {
|
|
2686
|
+
console.info(this.id + ": " + msg);
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
}]);
|
|
2690
|
+
return StatisticsLogger;
|
|
2691
|
+
}();
|
|
2692
|
+
|
|
2693
|
+
var UsageStatistics = function () {
|
|
2694
|
+
function UsageStatistics() {
|
|
2695
|
+
classCallCheck(this, UsageStatistics);
|
|
2696
|
+
|
|
2697
|
+
this.now = new Date();
|
|
2698
|
+
this.timeNow = this.now.getTime();
|
|
2699
|
+
this.gatherDelay = 10; // Delay between loading this file and gathering stats
|
|
2700
|
+
this.initialDelay = 24 * 60 * 60;
|
|
2701
|
+
|
|
2702
|
+
this.logger = new StatisticsLogger("statistics");
|
|
2703
|
+
this.storage = new StatisticsStorage("vaadin.statistics.basket");
|
|
2704
|
+
this.gatherer = new StatisticsGatherer(this.logger);
|
|
2705
|
+
this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
createClass(UsageStatistics, [{
|
|
2709
|
+
key: 'maybeGatherAndSend',
|
|
2710
|
+
value: function maybeGatherAndSend() {
|
|
2711
|
+
var _this = this;
|
|
2712
|
+
|
|
2713
|
+
if (localStorage.getItem(UsageStatistics.optOutKey)) {
|
|
2714
|
+
return;
|
|
2715
|
+
}
|
|
2716
|
+
this.gatherer.gather(this.storage);
|
|
2717
|
+
setTimeout(function () {
|
|
2718
|
+
_this.maybeSend();
|
|
2719
|
+
}, this.gatherDelay * 1000);
|
|
2720
|
+
}
|
|
2721
|
+
}, {
|
|
2722
|
+
key: 'lottery',
|
|
2723
|
+
value: function lottery() {
|
|
2724
|
+
return true;
|
|
2725
|
+
}
|
|
2726
|
+
}, {
|
|
2727
|
+
key: 'currentMonth',
|
|
2728
|
+
value: function currentMonth() {
|
|
2729
|
+
return this.now.getYear() * 12 + this.now.getMonth();
|
|
2730
|
+
}
|
|
2731
|
+
}, {
|
|
2732
|
+
key: 'maybeSend',
|
|
2733
|
+
value: function maybeSend() {
|
|
2734
|
+
var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
2735
|
+
var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
|
|
2736
|
+
|
|
2737
|
+
if (!firstUse) {
|
|
2738
|
+
// Use a grace period to avoid interfering with tests, incognito mode etc
|
|
2739
|
+
firstUse = this.timeNow;
|
|
2740
|
+
localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
|
|
2741
|
+
}
|
|
2742
|
+
|
|
2743
|
+
if (this.timeNow < firstUse + this.initialDelay * 1000) {
|
|
2744
|
+
this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
|
|
2745
|
+
return;
|
|
2746
|
+
}
|
|
2747
|
+
if (this.currentMonth() <= monthProcessed) {
|
|
2748
|
+
this.logger.debug("This month has already been processed");
|
|
2749
|
+
return;
|
|
2750
|
+
}
|
|
2751
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
|
|
2752
|
+
// Use random sampling
|
|
2753
|
+
if (this.lottery()) {
|
|
2754
|
+
this.logger.debug("Congratulations, we have a winner!");
|
|
2755
|
+
} else {
|
|
2756
|
+
this.logger.debug("Sorry, no stats from you this time");
|
|
2757
|
+
return;
|
|
2758
|
+
}
|
|
2759
|
+
|
|
2760
|
+
this.send();
|
|
2761
|
+
}
|
|
2762
|
+
}, {
|
|
2763
|
+
key: 'send',
|
|
2764
|
+
value: function send() {
|
|
2765
|
+
// Ensure we have the latest data
|
|
2766
|
+
this.gatherer.gather(this.storage);
|
|
2767
|
+
|
|
2768
|
+
// Read, send and clean up
|
|
2769
|
+
var data = this.storage.read();
|
|
2770
|
+
data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
2771
|
+
data["usageStatisticsVersion"] = UsageStatistics.version;
|
|
2772
|
+
var info = 'This request contains usage statistics gathered from the application running in development mode. \n\nStatistics gathering is automatically disabled and excluded from production builds.\n\nFor details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.\n\n\n\n';
|
|
2773
|
+
var self = this;
|
|
2774
|
+
this.sender.send(info + JSON.stringify(data), function () {
|
|
2775
|
+
// Revert the 'month processed' flag
|
|
2776
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
|
|
2777
|
+
});
|
|
2778
|
+
}
|
|
2779
|
+
}], [{
|
|
2780
|
+
key: 'version',
|
|
2781
|
+
get: function get$1() {
|
|
2782
|
+
return '2.1.2';
|
|
2783
|
+
}
|
|
2784
|
+
}, {
|
|
2785
|
+
key: 'firstUseKey',
|
|
2786
|
+
get: function get$1() {
|
|
2787
|
+
return 'vaadin.statistics.firstuse';
|
|
2788
|
+
}
|
|
2789
|
+
}, {
|
|
2790
|
+
key: 'monthProcessedKey',
|
|
2791
|
+
get: function get$1() {
|
|
2792
|
+
return 'vaadin.statistics.monthProcessed';
|
|
2793
|
+
}
|
|
2794
|
+
}, {
|
|
2795
|
+
key: 'optOutKey',
|
|
2796
|
+
get: function get$1() {
|
|
2797
|
+
return 'vaadin.statistics.optout';
|
|
2798
|
+
}
|
|
2799
|
+
}]);
|
|
2800
|
+
return UsageStatistics;
|
|
2801
|
+
}();
|
|
2802
|
+
|
|
2803
|
+
try {
|
|
2804
|
+
window.Vaadin = window.Vaadin || {};
|
|
2805
|
+
window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
|
|
2806
|
+
window.Vaadin.usageStatsChecker.maybeGatherAndSend();
|
|
2807
|
+
} catch (e) {
|
|
2808
|
+
// Intentionally ignored as this is not a problem in the app being developed
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
}());
|
|
2812
|
+
|
|
2813
|
+
vaadin-dev-mode:end **/}const Jb=function(){if(typeof eu=="function")return eu(Kb)};/**
|
|
2814
|
+
* @license
|
|
2815
|
+
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2816
|
+
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2817
|
+
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2818
|
+
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2819
|
+
* Code distributed by Google as part of the polymer project is also
|
|
2820
|
+
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2821
|
+
*/let tu=0,ih=0;const Lr=[];let Uo=!1;function Qb(){Uo=!1;const e=Lr.length;for(let t=0;t<e;t++){const r=Lr[t];if(r)try{r()}catch(n){setTimeout(()=>{throw n})}}Lr.splice(0,e),ih+=e}const Ii={after(e){return{run(t){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}}},run(e,t){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}},ev={run(e){return window.requestAnimationFrame(e)},cancel(e){window.cancelAnimationFrame(e)}},tv={run(e){return window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16)},cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},rv={run(e){Uo||(Uo=!0,queueMicrotask(()=>Qb())),Lr.push(e);const t=tu;return tu+=1,t},cancel(e){const t=e-ih;if(t>=0){if(!Lr[t])throw new Error(`invalid async handle: ${e}`);Lr[t]=null}}};/**
|
|
2822
|
+
@license
|
|
2823
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2824
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2825
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2826
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2827
|
+
Code distributed by Google as part of the polymer project is also
|
|
2828
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2829
|
+
*/const Yo=new Set;let jr=class Wo{static debounce(t,r,n){return t instanceof Wo?t._cancelAsync():t=new Wo,t.setConfig(r,n),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,r){this._asyncModule=t,this._callback=r,this._timer=this._asyncModule.run(()=>{this._timer=null,Yo.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Yo.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function nv(e){Yo.add(e)}/**
|
|
2830
|
+
* @license
|
|
2831
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2832
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2833
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Jb()};let Qs;const ru=new Set,sh=e=>class extends os(e){static finalize(){super.finalize();const{is:r}=this;r&&!ru.has(r)&&(window.Vaadin.registrations.push(this),ru.add(r),window.Vaadin.developmentModeCallback&&(Qs=jr.debounce(Qs,tv,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),nv(Qs)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
2834
|
+
* @license
|
|
2835
|
+
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
2836
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2837
|
+
*/class iv{constructor(t,r){this.slot=t,this.callback=r,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let r=[];const n=[],i=[];t.length&&(r=t.filter(s=>!this._storedNodes.includes(s))),this._storedNodes.length&&this._storedNodes.forEach((s,o)=>{const a=t.indexOf(s);a===-1?n.push(s):a!==o&&i.push(s)}),(r.length||n.length||i.length)&&this.callback({addedNodes:r,currentNodes:t,movedNodes:i,removedNodes:n}),this._storedNodes=t}}/**
|
|
2838
|
+
* @license
|
|
2839
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2840
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2841
|
+
*/let sv=0;function oh(){return sv++}/**
|
|
2842
|
+
* @license
|
|
2843
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2844
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2845
|
+
*/class cr extends EventTarget{static generateId(t,r="default"){return`${r}-${t.localName}-${oh()}`}constructor(t,r,n,i={}){super();const{initializer:s,multiple:o,observe:a,useUniqueId:l,uniqueIdPrefix:u}=i;this.host=t,this.slotName=r,this.tagName=n,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof o=="boolean"?o:!1,this.slotInitializer=s,o&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,u||r))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const r=this.attachDefaultNode();r&&(this.nodes=[r],this.initNode(r))}else this.nodes=t,t.forEach(r=>{this.initAddedNode(r)})}attachDefaultNode(){const{host:t,slotName:r,tagName:n}=this;let i=this.defaultNode;return!i&&n&&(i=document.createElement(n),i instanceof Element&&(r!==""&&i.setAttribute("slot",r),this.defaultNode=i)),i&&(this.node=i,t.appendChild(i)),i}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(r=>r.nodeType===Node.ELEMENT_NODE&&r.slot===t||r.nodeType===Node.TEXT_NODE&&r.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:r}=this;r&&r(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,r=t===""?"slot:not([name])":`slot[name=${t}]`,n=this.host.shadowRoot.querySelector(r);this.__slotObserver=new iv(n,({addedNodes:i,removedNodes:s})=>{const o=this.multiple?this.nodes:[this.node],a=i.filter(l=>!Hb(l)&&!o.includes(l));s.length&&(this.nodes=o.filter(l=>!s.includes(l)),s.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...o,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
|
|
2846
|
+
* @license
|
|
2847
|
+
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
2848
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2849
|
+
*/class ah extends cr{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const r=this.node;r&&(r.ariaTarget=t)}setContext(t){this.context=t;const r=this.node;r&&(r.context=t)}setManual(t){this.manual=t;const r=this.node;r&&(r.manual=t)}setOpened(t){this.opened=t;const r=this.node;r&&(r.opened=t)}setPosition(t){this.position=t;const r=this.node;r&&(r._position=t)}setShouldShow(t){this.shouldShow=t;const r=this.node;r&&(r.shouldShow=t)}setTarget(t){this.target=t;const r=this.node;r&&(r.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
|
|
2850
|
+
* @license
|
|
2851
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2852
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2853
|
+
*/const ov=ge`
|
|
2854
|
+
:host {
|
|
2855
|
+
display: inline-block;
|
|
2856
|
+
position: relative;
|
|
2857
|
+
outline: none;
|
|
2858
|
+
white-space: nowrap;
|
|
2859
|
+
-webkit-user-select: none;
|
|
2860
|
+
-moz-user-select: none;
|
|
2861
|
+
user-select: none;
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2864
|
+
:host([hidden]) {
|
|
2865
|
+
display: none !important;
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2868
|
+
/* Aligns the button with form fields when placed on the same line.
|
|
2869
|
+
Note, to make it work, the form fields should have the same "::before" pseudo-element. */
|
|
2870
|
+
.vaadin-button-container::before {
|
|
2871
|
+
content: '\\2003';
|
|
2872
|
+
display: inline-block;
|
|
2873
|
+
width: 0;
|
|
2874
|
+
max-height: 100%;
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
.vaadin-button-container {
|
|
2878
|
+
display: inline-flex;
|
|
2879
|
+
align-items: center;
|
|
2880
|
+
justify-content: center;
|
|
2881
|
+
text-align: center;
|
|
2882
|
+
width: 100%;
|
|
2883
|
+
height: 100%;
|
|
2884
|
+
min-height: inherit;
|
|
2885
|
+
text-shadow: inherit;
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2888
|
+
[part='prefix'],
|
|
2889
|
+
[part='suffix'] {
|
|
2890
|
+
flex: none;
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
[part='label'] {
|
|
2894
|
+
white-space: nowrap;
|
|
2895
|
+
overflow: hidden;
|
|
2896
|
+
text-overflow: ellipsis;
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2899
|
+
@media (forced-colors: active) {
|
|
2900
|
+
:host {
|
|
2901
|
+
outline: 1px solid;
|
|
2902
|
+
outline-offset: -1px;
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
:host([focused]) {
|
|
2906
|
+
outline-width: 2px;
|
|
2907
|
+
}
|
|
2908
|
+
|
|
2909
|
+
:host([disabled]) {
|
|
2910
|
+
outline-color: GrayText;
|
|
2911
|
+
}
|
|
2912
|
+
}
|
|
2913
|
+
`,av=e=>e`
|
|
2914
|
+
<div class="vaadin-button-container">
|
|
2915
|
+
<span part="prefix" aria-hidden="true">
|
|
2916
|
+
<slot name="prefix"></slot>
|
|
2917
|
+
</span>
|
|
2918
|
+
<span part="label">
|
|
2919
|
+
<slot></slot>
|
|
2920
|
+
</span>
|
|
2921
|
+
<span part="suffix" aria-hidden="true">
|
|
2922
|
+
<slot name="suffix"></slot>
|
|
2923
|
+
</span>
|
|
2924
|
+
</div>
|
|
2925
|
+
<slot name="tooltip"></slot>
|
|
2926
|
+
`;/**
|
|
2927
|
+
@license
|
|
2928
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2929
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2930
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2931
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2932
|
+
Code distributed by Google as part of the polymer project is also
|
|
2933
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2934
|
+
*/const lv=e=>e,lh=typeof document.head.style.touchAction=="string",zo="__polymerGestures",eo="__polymerGesturesHandled",$o="__polymerGesturesTouchAction",nu=25,iu=5,uv=2,dv=["mousedown","mousemove","mouseup","click"],cv=[0,1,4,2],hv=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(e){return!1}}();function ga(e){return dv.indexOf(e)>-1}let fv=!1;(function(){try{const e=Object.defineProperty({},"passive",{get(){fv=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}})();function pv(e){ga(e)}const mv=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),_v={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function pr(e){const t=e.type;if(!ga(t))return!1;if(t==="mousemove"){let n=e.buttons===void 0?1:e.buttons;return e instanceof window.MouseEvent&&!hv&&(n=cv[e.which]||0),!!(n&1)}return(e.button===void 0?0:e.button)===0}function gv(e){if(e.type==="click"){if(e.detail===0)return!0;const t=Qt(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const r=t.getBoundingClientRect(),n=e.pageX,i=e.pageY;return!(n>=r.left&&n<=r.right&&i>=r.top&&i<=r.bottom)}return!1}const Mt={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function bv(e){let t="auto";const r=dh(e);for(let n=0,i;n<r.length;n++)if(i=r[n],i[$o]){t=i[$o];break}return t}function uh(e,t,r){e.movefn=t,e.upfn=r,document.addEventListener("mousemove",t),document.addEventListener("mouseup",r)}function Fr(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}const dh=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],ba={},hr=[];function vv(e,t){let r=document.elementFromPoint(e,t),n=r;for(;n&&n.shadowRoot&&!window.ShadyDOM;){const i=n;if(n=n.shadowRoot.elementFromPoint(e,t),i===n)break;n&&(r=n)}return r}function Qt(e){const t=dh(e);return t.length>0?t[0]:e.target}function yv(e){const t=e.type,n=e.currentTarget[zo];if(!n)return;const i=n[t];if(!i)return;if(!e[eo]&&(e[eo]={},t.startsWith("touch"))){const o=e.changedTouches[0];if(t==="touchstart"&&e.touches.length===1&&(Mt.touch.id=o.identifier),Mt.touch.id!==o.identifier)return;lh||(t==="touchstart"||t==="touchmove")&&wv(e)}const s=e[eo];if(!s.skip){for(let o=0,a;o<hr.length;o++)a=hr[o],i[a.name]&&!s[a.name]&&a.flow&&a.flow.start.indexOf(e.type)>-1&&a.reset&&a.reset();for(let o=0,a;o<hr.length;o++)a=hr[o],i[a.name]&&!s[a.name]&&(s[a.name]=!0,a[t](e))}}function wv(e){const t=e.changedTouches[0],r=e.type;if(r==="touchstart")Mt.touch.x=t.clientX,Mt.touch.y=t.clientY,Mt.touch.scrollDecided=!1;else if(r==="touchmove"){if(Mt.touch.scrollDecided)return;Mt.touch.scrollDecided=!0;const n=bv(e);let i=!1;const s=Math.abs(Mt.touch.x-t.clientX),o=Math.abs(Mt.touch.y-t.clientY);e.cancelable&&(n==="none"?i=!0:n==="pan-x"?i=o>s:n==="pan-y"&&(i=s>o)),i?e.preventDefault():Li("track")}}function Ct(e,t,r){return ba[t]?(Cv(e,t,r),!0):!1}function Cv(e,t,r){const n=ba[t],i=n.deps,s=n.name;let o=e[zo];o||(e[zo]=o={});for(let a=0,l,u;a<i.length;a++)l=i[a],!(mv&&ga(l)&&l!=="click")&&(u=o[l],u||(o[l]=u={_count:0}),u._count===0&&e.addEventListener(l,yv,pv(l)),u[s]=(u[s]||0)+1,u._count=(u._count||0)+1);e.addEventListener(t,r),n.touchAction&&ch(e,n.touchAction)}function va(e){hr.push(e),e.emits.forEach(t=>{ba[t]=e})}function xv(e){for(let t=0,r;t<hr.length;t++){r=hr[t];for(let n=0,i;n<r.emits.length;n++)if(i=r.emits[n],i===e)return r}return null}function ch(e,t){lh&&e instanceof HTMLElement&&rv.run(()=>{e.style.touchAction=t}),e[$o]=t}function ya(e,t,r){const n=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(n.detail=r,lv(e).dispatchEvent(n),n.defaultPrevented){const i=r.preventer||r.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function Li(e){const t=xv(e);t.info&&(t.info.prevent=!0)}va({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Fr(this.info)},mousedown(e){if(!pr(e))return;const t=Qt(e),r=this,n=s=>{pr(s)||(hn("up",t,s),Fr(r.info))},i=s=>{pr(s)&&hn("up",t,s),Fr(r.info)};uh(this.info,n,i),hn("down",t,e)},touchstart(e){hn("down",Qt(e),e.changedTouches[0],e)},touchend(e){hn("up",Qt(e),e.changedTouches[0],e)}});function hn(e,t,r,n){t&&ya(t,e,{x:r.clientX,y:r.clientY,sourceEvent:r,preventer:n,prevent(i){return Li(i)}})}va({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(e){this.moves.length>uv&&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,Fr(this.info)},mousedown(e){if(!pr(e))return;const t=Qt(e),r=this,n=s=>{const o=s.clientX,a=s.clientY;su(r.info,o,a)&&(r.info.state=r.info.started?s.type==="mouseup"?"end":"track":"start",r.info.state==="start"&&Li("tap"),r.info.addMove({x:o,y:a}),pr(s)||(r.info.state="end",Fr(r.info)),t&&to(r.info,t,s),r.info.started=!0)},i=s=>{r.info.started&&n(s),Fr(r.info)};uh(this.info,n,i),this.info.x=e.clientX,this.info.y=e.clientY},touchstart(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(e){const t=Qt(e),r=e.changedTouches[0],n=r.clientX,i=r.clientY;su(this.info,n,i)&&(this.info.state==="start"&&Li("tap"),this.info.addMove({x:n,y:i}),to(this.info,t,r),this.info.state="track",this.info.started=!0)},touchend(e){const t=Qt(e),r=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:r.clientX,y:r.clientY}),to(this.info,t,r))}});function su(e,t,r){if(e.prevent)return!1;if(e.started)return!0;const n=Math.abs(e.x-t),i=Math.abs(e.y-r);return n>=iu||i>=iu}function to(e,t,r){if(!t)return;const n=e.moves[e.moves.length-2],i=e.moves[e.moves.length-1],s=i.x-e.x,o=i.y-e.y;let a,l=0;n&&(a=i.x-n.x,l=i.y-n.y),ya(t,"track",{state:e.state,x:r.clientX,y:r.clientY,dx:s,dy:o,ddx:a,ddy:l,sourceEvent:r,hover(){return vv(r.clientX,r.clientY)}})}va({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){pr(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){pr(e)&&ou(this.info,e)},touchstart(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(e){ou(this.info,e.changedTouches[0],e)}});function ou(e,t,r){const n=Math.abs(t.clientX-e.x),i=Math.abs(t.clientY-e.y),s=Qt(r||t);!s||_v[s.localName]&&s.hasAttribute("disabled")||(isNaN(n)||isNaN(i)||n<=nu&&i<=nu||gv(t))&&(e.prevent||ya(s,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r}))}/**
|
|
2935
|
+
* @license
|
|
2936
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2937
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2938
|
+
*/const hh=Ye(e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(r){this._setAriaDisabled(r)}_setAriaDisabled(r){r?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
|
|
2939
|
+
* @license
|
|
2940
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2941
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2942
|
+
*/const us=Ye(e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",r=>{this._onKeyDown(r)}),this.addEventListener("keyup",r=>{this._onKeyUp(r)})}_onKeyDown(r){switch(r.key){case"Enter":this._onEnter(r);break;case"Escape":this._onEscape(r);break}}_onKeyUp(r){}_onEnter(r){}_onEscape(r){}});/**
|
|
2943
|
+
* @license
|
|
2944
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2945
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2946
|
+
*/const Ev=e=>class extends hh(us(e)){get _activeKeys(){return[" "]}ready(){super.ready(),Ct(this,"down",r=>{this._shouldSetActive(r)&&this._setActive(!0)}),Ct(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(r){return!this.disabled}_onKeyDown(r){super._onKeyDown(r),this._shouldSetActive(r)&&this._activeKeys.includes(r.key)&&(this._setActive(!0),document.addEventListener("keyup",n=>{this._activeKeys.includes(n.key)&&this._setActive(!1)},{once:!0}))}_setActive(r){this.toggleAttribute("active",r)}};/**
|
|
2947
|
+
* @license
|
|
2948
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2949
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2950
|
+
*/const wa=Ye(e=>class extends e{get _keyboardActive(){return ma()}ready(){this.addEventListener("focusin",r=>{this._shouldSetFocus(r)&&this._setFocused(!0)}),this.addEventListener("focusout",r=>{this._shouldRemoveFocus(r)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(r){this.toggleAttribute("focused",r),this.toggleAttribute("focus-ring",r&&this._keyboardActive)}_shouldSetFocus(r){return!0}_shouldRemoveFocus(r){return!0}});/**
|
|
2951
|
+
* @license
|
|
2952
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2953
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2954
|
+
*/const fh=e=>class extends hh(e){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(r,n){super._disabledChanged(r,n),r?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):n&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(r){this.disabled&&r!==-1&&(this._lastTabIndex=r,this.tabindex=-1)}};/**
|
|
2955
|
+
* @license
|
|
2956
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2957
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2958
|
+
*/const Sv=e=>class extends Ev(fh(wa(e))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(r){super._onKeyDown(r),!(r.altKey||r.shiftKey||r.ctrlKey||r.metaKey)&&this._activeKeys.includes(r.key)&&(r.preventDefault(),this.click())}};/**
|
|
2959
|
+
* @license
|
|
2960
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2961
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2962
|
+
*/Fe("vaadin-button",ov,{moduleId:"vaadin-button-styles"});class kv extends Sv(sh(br(Qr(rr)))){static get is(){return"vaadin-button"}static get template(){return av(yr)}ready(){super.ready(),this._tooltipController=new ah(this),this.addController(this._tooltipController)}}St(kv);/**
|
|
2963
|
+
* @license
|
|
2964
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2965
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2966
|
+
*/function Tv(e){let t=e.getDay();t===0&&(t=7);const r=4-t,n=new Date(e.getTime()+r*24*3600*1e3),i=new Date(0,0);i.setFullYear(n.getFullYear());const s=n.getTime()-i.getTime(),o=Math.round(s/(24*3600*1e3));return Math.floor(o/7+1)}function Vo(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function Ft(e,t,r=Vo){return e instanceof Date&&t instanceof Date&&r(e).getTime()===r(t).getTime()}function Ca(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}function qr(e,t,r,n){let i=!1;if(typeof n=="function"&&e){const s=Ca(e);i=n(s)}return(!t||e>=t)&&(!r||e<=r)&&!i}function ph(e,t){return t.filter(r=>r!==void 0).reduce((r,n)=>{if(!n)return r;if(!r)return n;const i=Math.abs(e.getTime()-n.getTime()),s=Math.abs(r.getTime()-e.getTime());return i<s?n:r})}function mh(e){const t=new Date,r=new Date(t);return r.setDate(1),r.setMonth(parseInt(e)+t.getMonth()),r}function Pv(e,t,r=0,n=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let i=t+Math.floor(e.getFullYear()/100)*100;return e<new Date(i-50,r,n)?i-=100:e>new Date(i+50,r,n)&&(i+=100),i}function fn(e){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(e);if(!t)return;const r=new Date(0,0);return r.setFullYear(parseInt(t[1],10)),r.setMonth(parseInt(t[2],10)-1),r.setDate(parseInt(t[3],10)),r}function Dv(e){const t=(l,u="00")=>(u+l).substr((u+l).length-u.length);let r="",n="0000",i=e.year;i<0?(i=-i,r="-",n="000000"):e.year>=1e4&&(r="+",n="000000");const s=r+t(i,n),o=t(e.month+1),a=t(e.day);return[s,o,a].join("-")}function Av(e){return e instanceof Date?Dv({year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}):""}/**
|
|
2967
|
+
@license
|
|
2968
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2969
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2970
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2971
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2972
|
+
Code distributed by Google as part of the polymer project is also
|
|
2973
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2974
|
+
*/class Fi{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,r){this._asyncModule=t,this._callback=r,this._timer=this._asyncModule.run(()=>{this._timer=null,In.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),In.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(t,r,n){return t instanceof Fi?t._cancelAsync():t=new Fi,t.setConfig(r,n),t}}let In=new Set;const Mv=function(e){In.add(e)},Ov=function(){const e=!!In.size;return In.forEach(t=>{try{t.flush()}catch(r){setTimeout(()=>{throw r})}}),e};/**
|
|
2975
|
+
@license
|
|
2976
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2977
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2978
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2979
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2980
|
+
Code distributed by Google as part of the polymer project is also
|
|
2981
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2982
|
+
*/const xa=function(){let e,t;do e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=Ov();while(e||t)};/**
|
|
2983
|
+
* @license
|
|
2984
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2985
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2986
|
+
*/const _h=document.createElement("template");_h.innerHTML=`
|
|
2987
|
+
<style>
|
|
2988
|
+
:host {
|
|
2989
|
+
display: block;
|
|
2990
|
+
overflow: hidden;
|
|
2991
|
+
height: 500px;
|
|
2992
|
+
}
|
|
2993
|
+
|
|
2994
|
+
#scroller {
|
|
2995
|
+
position: relative;
|
|
2996
|
+
height: 100%;
|
|
2997
|
+
overflow: auto;
|
|
2998
|
+
outline: none;
|
|
2999
|
+
margin-right: -40px;
|
|
3000
|
+
-webkit-overflow-scrolling: touch;
|
|
3001
|
+
overflow-x: hidden;
|
|
3002
|
+
}
|
|
3003
|
+
|
|
3004
|
+
#scroller.notouchscroll {
|
|
3005
|
+
-webkit-overflow-scrolling: auto;
|
|
3006
|
+
}
|
|
3007
|
+
|
|
3008
|
+
#scroller::-webkit-scrollbar {
|
|
3009
|
+
display: none;
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
.buffer {
|
|
3013
|
+
position: absolute;
|
|
3014
|
+
width: var(--vaadin-infinite-scroller-buffer-width, 100%);
|
|
3015
|
+
box-sizing: border-box;
|
|
3016
|
+
padding-right: 40px;
|
|
3017
|
+
top: var(--vaadin-infinite-scroller-buffer-offset, 0);
|
|
3018
|
+
animation: fadein 0.2s;
|
|
3019
|
+
}
|
|
3020
|
+
|
|
3021
|
+
@keyframes fadein {
|
|
3022
|
+
from {
|
|
3023
|
+
opacity: 0;
|
|
3024
|
+
}
|
|
3025
|
+
to {
|
|
3026
|
+
opacity: 1;
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
</style>
|
|
3030
|
+
|
|
3031
|
+
<div id="scroller" tabindex="-1">
|
|
3032
|
+
<div class="buffer"></div>
|
|
3033
|
+
<div class="buffer"></div>
|
|
3034
|
+
<div id="fullHeight"></div>
|
|
3035
|
+
</div>
|
|
3036
|
+
`;class gh extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(_h.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),r="background-position";this.$.fullHeight.style.setProperty(r,t);const n=getComputedStyle(this.$.fullHeight).getPropertyValue(r);this.$.fullHeight.style.removeProperty(r),this._itemHeightVal=parseFloat(n)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),xa()}_createElement(){}_updateElement(t,r){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(r=>{this._ensureStampedInstance(r._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const r=t?1:0;this._buffers[r].translateY=this._buffers[r?0:1].translateY+this._bufferHeight*(r?-1:1),this._buffers[r].style.transform=`translate3d(0, ${this._buffers[r].translateY}px, 0)`,this._buffers[r].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const r=this.itemHeight+this.bufferOffset,n=t>this._buffers[1].translateY+r,i=t<this._buffers[0].translateY+r;(n||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=jr.debounce(this._debouncerScrollFinish,Ii.after(200),()=>{const s=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],s)&&!this._isVisible(this._buffers[1],s)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=jr.debounce(this._debouncerUpdateClones,Ii.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(r=>{for(let n=0;n<this.bufferSize;n++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const s=`vaadin-infinite-scroller-item-content-${oh()}`,o=document.createElement("slot");o.setAttribute("name",s),o._itemWrapper=i,r.appendChild(o),i.setAttribute("slot",s),this.appendChild(i),this._isVisible(i,t)&&this._ensureStampedInstance(i)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(t){if(t.firstElementChild)return;const r=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(r).forEach(n=>{t.instance[n]=r[n]})}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const r=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((n,i)=>{if(!n.updated){const s=this._firstIndex+this.bufferSize*i;[...n.children].forEach((o,a)=>{const l=o._itemWrapper;(!t||this._isVisible(l,r))&&this._updateElement(l.instance,s+a)}),n.updated=!0}})}_isVisible(t,r){const n=t.getBoundingClientRect();return n.bottom>r.top&&n.top<r.bottom}}/**
|
|
3037
|
+
* @license
|
|
3038
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3039
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3040
|
+
*/const bh=document.createElement("template");bh.innerHTML=`
|
|
3041
|
+
<style>
|
|
3042
|
+
:host {
|
|
3043
|
+
--vaadin-infinite-scroller-item-height: 270px;
|
|
3044
|
+
position: absolute;
|
|
3045
|
+
top: 0;
|
|
3046
|
+
left: 0;
|
|
3047
|
+
right: 0;
|
|
3048
|
+
bottom: 0;
|
|
3049
|
+
height: 100%;
|
|
3050
|
+
}
|
|
3051
|
+
</style>
|
|
3052
|
+
`;class Bv extends gh{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(bh.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,r){t.month=mh(r)}}St(Bv);/**
|
|
3053
|
+
* @license
|
|
3054
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3055
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3056
|
+
*/const vh=document.createElement("template");vh.innerHTML=`
|
|
3057
|
+
<style>
|
|
3058
|
+
:host {
|
|
3059
|
+
--vaadin-infinite-scroller-item-height: 80px;
|
|
3060
|
+
width: 50px;
|
|
3061
|
+
display: block;
|
|
3062
|
+
height: 100%;
|
|
3063
|
+
position: absolute;
|
|
3064
|
+
right: 0;
|
|
3065
|
+
transform: translateX(100%);
|
|
3066
|
+
-webkit-tap-highlight-color: transparent;
|
|
3067
|
+
-webkit-user-select: none;
|
|
3068
|
+
-moz-user-select: none;
|
|
3069
|
+
user-select: none;
|
|
3070
|
+
/* Center the year scroller position. */
|
|
3071
|
+
--vaadin-infinite-scroller-buffer-offset: 50%;
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
:host::before {
|
|
3075
|
+
content: '';
|
|
3076
|
+
display: block;
|
|
3077
|
+
background: transparent;
|
|
3078
|
+
width: 0;
|
|
3079
|
+
height: 0;
|
|
3080
|
+
position: absolute;
|
|
3081
|
+
left: 0;
|
|
3082
|
+
top: 50%;
|
|
3083
|
+
transform: translateY(-50%);
|
|
3084
|
+
border-width: 6px;
|
|
3085
|
+
border-style: solid;
|
|
3086
|
+
border-color: transparent;
|
|
3087
|
+
border-left-color: #000;
|
|
3088
|
+
}
|
|
3089
|
+
</style>
|
|
3090
|
+
`;class Nv extends gh{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(vh.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,r){t.year=this._yearAfterXYears(r)}_yearAfterXYears(t){const r=new Date,n=new Date(r);return n.setFullYear(parseInt(t)+r.getFullYear()),n.getFullYear()}}St(Nv);/**
|
|
3091
|
+
* @license
|
|
3092
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3093
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3094
|
+
*/const Iv=e=>class extends e{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(r,n){this.toggleAttribute("selected",n&&n.getFullYear()===r),this.toggleAttribute("current",r===new Date().getFullYear())}};/**
|
|
3095
|
+
* @license
|
|
3096
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3097
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3098
|
+
*/class Lv extends br(Iv(rr)){static get is(){return"vaadin-date-picker-year"}static get template(){return yr`
|
|
3099
|
+
<style>
|
|
3100
|
+
:host {
|
|
3101
|
+
display: block;
|
|
3102
|
+
height: 100%;
|
|
3103
|
+
}
|
|
3104
|
+
</style>
|
|
3105
|
+
<div part="year-number">[[year]]</div>
|
|
3106
|
+
<div part="year-separator" aria-hidden="true"></div>
|
|
3107
|
+
`}}St(Lv);/**
|
|
3108
|
+
@license
|
|
3109
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3110
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3111
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3112
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3113
|
+
Code distributed by Google as part of the polymer project is also
|
|
3114
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3115
|
+
*/function Ea(e,t,r,n,i){let s;i&&(s=typeof r=="object"&&r!==null,s&&(n=e.__dataTemp[t]));let o=n!==r&&(n===n||r===r);return s&&o&&(e.__dataTemp[t]=r),o}const Sa=Ye(e=>{class t extends e{_shouldPropertyChange(n,i,s){return Ea(this,n,i,s,!0)}}return t}),Fv=Ye(e=>{class t extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(n,i,s){return Ea(this,n,i,s,this.mutableData)}}return t});Sa._mutablePropertyChange=Ea;/**
|
|
3116
|
+
@license
|
|
3117
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3118
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3119
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3120
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3121
|
+
Code distributed by Google as part of the polymer project is also
|
|
3122
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3123
|
+
*/let Go=null;function jo(){return Go}jo.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:jo,writable:!0}});const yh=fa(jo),Rv=Sa(yh);function Hv(e,t){Go=e,Object.setPrototypeOf(e,t.prototype),new t,Go=null}const Uv=fa(class{});function Yv(e,t){for(let r=0;r<t.length;r++){let n=t[r];if(!!e!=!!n.__hideTemplateChildren__)if(n.nodeType===Node.TEXT_NODE)e?(n.__polymerTextContent__=n.textContent,n.textContent=""):n.textContent=n.__polymerTextContent__;else if(n.localName==="slot")if(e)n.__polymerReplaced__=document.createComment("hidden-slot"),Ve(Ve(n).parentNode).replaceChild(n.__polymerReplaced__,n);else{const i=n.__polymerReplaced__;i&&Ve(Ve(i).parentNode).replaceChild(n,i)}else n.style&&(e?(n.__polymerDisplay__=n.style.display,n.style.display="none"):n.style.display=n.__polymerDisplay__);n.__hideTemplateChildren__=e,n._showHideChildren&&n._showHideChildren(e)}}class nr extends Uv{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let r=[];this.children=r;for(let i=this.root.firstChild;i;i=i.nextSibling)r.push(i),i.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let n=this.__templatizeOptions;(t&&n.instanceProps||!n.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let n in this.__hostProps)this._setPendingProperty(n,this.__dataHost["_host_"+n]);for(let n in t)this._setPendingProperty(n,t[n])}forwardHostProp(t,r){this._setPendingPropertyOrPath(t,r,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,r,n){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,r,i=>{i.model=this,n(i)});else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(t,r,n)}}_showHideChildren(t){Yv(t,this.children)}_setUnmanagedPropertyToNode(t,r,n){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&r=="textContent"?t.__polymerTextContent__=n:super._setUnmanagedPropertyToNode(t,r,n)}get parentModel(){let t=this.__parentModel;if(!t){let r;t=this;do t=t.__dataHost.__dataHost;while((r=t.__templatizeOptions)&&!r.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}nr.prototype.__dataHost;nr.prototype.__templatizeOptions;nr.prototype._methodHost;nr.prototype.__templatizeOwner;nr.prototype.__hostProps;const Wv=Sa(nr);function au(e){let t=e.__dataHost;return t&&t._methodHost||t}function zv(e,t,r){let n=r.mutableData?Wv:nr;qo.mixin&&(n=qo.mixin(n));let i=class extends n{};return i.prototype.__templatizeOptions=r,i.prototype._bindTemplate(e),Gv(i,e,t,r),i}function $v(e,t,r,n){let i=r.forwardHostProp;if(i&&t.hasHostProps){const s=e.localName=="template";let o=t.templatizeTemplateClass;if(!o){if(s){let l=r.mutableData?Rv:yh;class u extends l{}o=t.templatizeTemplateClass=u}else{const l=e.constructor;class u extends l{}o=t.templatizeTemplateClass=u}let a=t.hostProps;for(let l in a)o.prototype._addPropertyEffect("_host_"+l,o.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Vv(l,i)}),o.prototype._createNotifyingProperty("_host_"+l);Sc&&n&&Zv(t,r,n)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),s)Hv(e,o),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,o.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in e){const u=e[l];delete e[l],e.__data[l]=u}}}}function Vv(e,t){return function(n,i,s){t.call(n.__templatizeOwner,i.substring(6),s[i])}}function Gv(e,t,r,n){let i=r.hostProps||{};for(let s in n.instanceProps){delete i[s];let o=n.notifyInstanceProp;o&&e.prototype._addPropertyEffect(s,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:jv(s,o)})}if(n.forwardHostProp&&t.__dataHost)for(let s in i)r.hasHostProps||(r.hasHostProps=!0),e.prototype._addPropertyEffect(s,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:qv()})}function jv(e,t){return function(n,i,s){t.call(n.__templatizeOwner,n,i,s[i])}}function qv(){return function(t,r,n){t.__dataHost._setPendingPropertyOrPath("_host_"+r,n[r],!0,!0)}}function qo(e,t,r){if(Bi&&!au(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(r=r||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=t;let i=(t?t.constructor:nr)._parseTemplate(e),s=i.templatizeInstanceClass;s||(s=zv(e,i,r),i.templatizeInstanceClass=s);const o=au(e);$v(e,i,r,o);let a=class extends s{};return a.prototype._methodHost=o,a.prototype.__dataHost=e,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=i.hostProps,a=a,a}function Zv(e,t,r){const n=r.constructor._properties,{propertyEffects:i}=e,{instanceProps:s}=t;for(let o in i)if(!n[o]&&!(s&&s[o])){const a=i[o];for(let l=0;l<a.length;l++){const{part:u}=a[l].info;if(!(u.signature&&u.signature.static)){console.warn(`Property '${o}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Xv(e,t){let r;for(;t;)if(r=t.__dataHost?t:t.__templatizeInstance)if(r.__dataHost!=e)t=r.__dataHost;else return r;else t=Ve(t).parentNode;return null}/**
|
|
3124
|
+
@license
|
|
3125
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3126
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3127
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3128
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3129
|
+
Code distributed by Google as part of the polymer project is also
|
|
3130
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3131
|
+
*/let lu=!1;function Kv(){if(Ec&&!xc){if(!lu){lu=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}/**
|
|
3132
|
+
@license
|
|
3133
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3134
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3135
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3136
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3137
|
+
Code distributed by Google as part of the polymer project is also
|
|
3138
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3139
|
+
*/const Jv=Fv(rr);class uu extends Jv{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:!Il,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Kv()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=Ve(Ve(this).parentNode);for(let r=0;r<this.__instances.length;r++)this.__attachInstance(r,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let r=this.template=t._templateInfo?t:this.querySelector("template");if(!r){let i=new MutationObserver(()=>{if(this.querySelector("template"))i.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return i.observe(this,{childList:!0}),!1}let n={};n[this.as]=!0,n[this.indexAs]=!0,n[this.itemsIndexAs]=!0,this.__ctor=qo(r,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:n,forwardHostProp:function(i,s){let o=this.__instances;for(let a=0,l;a<o.length&&(l=o[a]);a++)l.forwardHostProp(i,s)},notifyInstanceProp:function(i,s,o){if(rg(this.as,s)){let a=i[this.itemsIndexAs];s==this.as&&(this.items[a]=o);let l=On(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,s);this.notifyPath(l,o)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let r=t,n=this.__getMethodHost();return function(){return n[r].apply(n,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let r=this.__observePaths;for(let n=0;n<r.length;n++)t.indexOf(r[n])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,r=0){this.__renderDebouncer=Fi.debounce(this.__renderDebouncer,r>0?lg.after(r):Ic,t.bind(this)),Mv(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),xa()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const r=this.__sortAndFilterItems(t),n=this.__calculateLimit(r.length);this.__updateInstances(t,n,r),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Il||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=n;return this.__filterFn&&(r=r.filter((n,i,s)=>this.__filterFn(t[n],i,s))),this.__sortFn&&r.sort((n,i)=>this.__sortFn(t[n],t[i])),r}__calculateLimit(t){let r=t;const n=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(r=Math.min(t,this.initialCount),i=Math.max(r-n,0),this.__chunkCount=i||1):(i=Math.min(Math.max(t-n,0),this.__chunkCount),r=Math.min(n+i,t)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=r<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,r}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,r=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*r)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,r,n){const i=this.__itemsIdxToInstIdx={};let s;for(s=0;s<r;s++){let o=this.__instances[s],a=n[s],l=t[a];i[a]=s,o?(o._setPendingProperty(this.as,l),o._setPendingProperty(this.indexAs,s),o._setPendingProperty(this.itemsIndexAs,a),o._flushProperties()):this.__insertInstance(l,s,a)}for(let o=this.__instances.length-1;o>=s;o--)this.__detachAndRemoveInstance(o)}__detachInstance(t){let r=this.__instances[t];const n=Ve(r.root);for(let i=0;i<r.children.length;i++){let s=r.children[i];n.appendChild(s)}return r}__attachInstance(t,r){let n=this.__instances[t];r.insertBefore(n.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,r,n){let i={};return i[this.as]=t,i[this.indexAs]=r,i[this.itemsIndexAs]=n,new this.__ctor(i)}__insertInstance(t,r,n){const i=this.__stampInstance(t,r,n);let s=this.__instances[r+1],o=s?s.children[0]:this;return Ve(Ve(this).parentNode).insertBefore(i.root,o),this.__instances[r]=i,i}_showHideChildren(t){for(let r=0;r<this.__instances.length;r++)this.__instances[r]._showHideChildren(t)}__handleItemPath(t,r){let n=t.slice(6),i=n.indexOf("."),s=i<0?n:n.substring(0,i);if(s==parseInt(s,10)){let o=i<0?"":n.substring(i+1);this.__handleObservedPaths(o);let a=this.__itemsIdxToInstIdx[s],l=this.__instances[a];if(l){let u=this.as+(o?"."+o:"");l._setPendingPropertyOrPath(u,r,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let r=this.modelForElement(t);return r&&r[this.as]}indexForElement(t){let r=this.modelForElement(t);return r&&r[this.indexAs]}modelForElement(t){return Xv(this.template,t)}}customElements.define(uu.is,uu);/**
|
|
3140
|
+
* @license
|
|
3141
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3142
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3143
|
+
*/const Qv=e=>class extends wa(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},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(r=>Ft(r.date,this.focusedDate))}ready(){super.ready(),Ct(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(r,n,i){const s=new Date(0,0);s.setFullYear(r.getFullYear()),s.setMonth(r.getMonth()),s.setDate(1);const o=new Date(0,0);return o.setFullYear(r.getFullYear()),o.setMonth(r.getMonth()+1),o.setDate(0),n&&i&&n.getMonth()===i.getMonth()&&n.getMonth()===r.getMonth()&&i.getDate()-n.getDate()>=0?!1:!qr(s,n,i)&&!qr(o,n,i)}_getTitle(r,n){if(!(r===void 0||n===void 0))return n.formatTitle(n.monthNames[r.getMonth()],r.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(r,n){r.setDate(r.getDate()+n)}_applyFirstDayOfWeek(r,n){if(!(r===void 0||n===void 0))return r.slice(n).concat(r.slice(0,n))}_getWeekDayNames(r,n){if(r===void 0||n===void 0)return[];const{weekdays:i,weekdaysShort:s,firstDayOfWeek:o}=r,a=this._applyFirstDayOfWeek(s,o);return this._applyFirstDayOfWeek(i,o).map((u,d)=>({weekDay:u,weekDayShort:a[d]})).slice(0,7)}__focusedDateChanged(r,n){Array.isArray(n)&&n.some(i=>Ft(i,r))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(r){return r?r.getDate():""}_showWeekSeparator(r,n){return r&&n&&n.firstDayOfWeek===1}_isToday(r){return Ft(new Date,r)}_getDays(r,n){if(r===void 0||n===void 0)return[];const i=new Date(0,0);for(i.setFullYear(r.getFullYear()),i.setMonth(r.getMonth()),i.setDate(1);i.getDay()!==n.firstDayOfWeek;)this._dateAdd(i,-1);const s=[],o=i.getMonth(),a=r.getMonth();for(;i.getMonth()===a||i.getMonth()===o;)s.push(i.getMonth()===a?new Date(i.getTime()):null),this._dateAdd(i,1);return s}_getWeeks(r){return r.reduce((n,i,s)=>(s%7===0&&n.push([]),n[n.length-1].push(i),n),[])}_handleTap(r){!this.ignoreTaps&&!this._notTapping&&r.target.date&&!r.target.hasAttribute("disabled")&&(this.selectedDate=r.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:r.target.date},bubbles:!0,composed:!0})))}_preventDefault(r){r.preventDefault()}__getWeekNumber(r){const n=r.reduce((i,s)=>!i&&s?s:i);return Tv(n)}__getDayAriaLabel(r){if(!r)return"";let n=`${this._getDate(r)} ${this.i18n.monthNames[r.getMonth()]} ${r.getFullYear()}, ${this.i18n.weekdays[r.getDay()]}`;return this._isToday(r)&&(n+=`, ${this.i18n.today}`),n}};/**
|
|
3144
|
+
* @license
|
|
3145
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3146
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3147
|
+
*/const ey=ge`
|
|
3148
|
+
:host {
|
|
3149
|
+
display: block;
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3152
|
+
#monthGrid {
|
|
3153
|
+
width: 100%;
|
|
3154
|
+
border-collapse: collapse;
|
|
3155
|
+
}
|
|
3156
|
+
|
|
3157
|
+
#days-container tr,
|
|
3158
|
+
#weekdays-container tr {
|
|
3159
|
+
display: flex;
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
[part~='date'] {
|
|
3163
|
+
outline: none;
|
|
3164
|
+
}
|
|
3165
|
+
|
|
3166
|
+
[part~='disabled'] {
|
|
3167
|
+
pointer-events: none;
|
|
3168
|
+
}
|
|
3169
|
+
|
|
3170
|
+
[part='week-number'][hidden],
|
|
3171
|
+
[part='weekday'][hidden] {
|
|
3172
|
+
display: none;
|
|
3173
|
+
}
|
|
3174
|
+
|
|
3175
|
+
[part='weekday'],
|
|
3176
|
+
[part~='date'] {
|
|
3177
|
+
width: calc(100% / 7);
|
|
3178
|
+
padding: 0;
|
|
3179
|
+
font-weight: normal;
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3182
|
+
[part='weekday']:empty,
|
|
3183
|
+
[part='week-number'] {
|
|
3184
|
+
width: 12.5%;
|
|
3185
|
+
flex-shrink: 0;
|
|
3186
|
+
padding: 0;
|
|
3187
|
+
}
|
|
3188
|
+
|
|
3189
|
+
:host([week-numbers]) [part='weekday']:not(:empty),
|
|
3190
|
+
:host([week-numbers]) [part~='date'] {
|
|
3191
|
+
width: 12.5%;
|
|
3192
|
+
}
|
|
3193
|
+
|
|
3194
|
+
@media (forced-colors: active) {
|
|
3195
|
+
[part~='date'][part~='focused'] {
|
|
3196
|
+
outline: 1px solid;
|
|
3197
|
+
}
|
|
3198
|
+
|
|
3199
|
+
[part~='date'][part~='selected'] {
|
|
3200
|
+
outline: 3px solid;
|
|
3201
|
+
}
|
|
3202
|
+
}
|
|
3203
|
+
`;/**
|
|
3204
|
+
* @license
|
|
3205
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3206
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3207
|
+
*/Fe("vaadin-month-calendar",ey,{moduleId:"vaadin-month-calendar-styles"});class ty extends Qv(br(rr)){static get template(){return yr`
|
|
3208
|
+
<div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
|
|
3209
|
+
<table
|
|
3210
|
+
id="monthGrid"
|
|
3211
|
+
role="grid"
|
|
3212
|
+
aria-labelledby="month-header"
|
|
3213
|
+
on-touchend="_preventDefault"
|
|
3214
|
+
on-touchstart="_onMonthGridTouchStart"
|
|
3215
|
+
>
|
|
3216
|
+
<thead id="weekdays-container">
|
|
3217
|
+
<tr role="row" part="weekdays">
|
|
3218
|
+
<th part="weekday" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]"></th>
|
|
3219
|
+
<template is="dom-repeat" items="[[_getWeekDayNames(i18n, showWeekNumbers)]]">
|
|
3220
|
+
<th role="columnheader" part="weekday" scope="col" abbr$="[[item.weekDay]]" aria-hidden="true">
|
|
3221
|
+
[[item.weekDayShort]]
|
|
3222
|
+
</th>
|
|
3223
|
+
</template>
|
|
3224
|
+
</tr>
|
|
3225
|
+
</thead>
|
|
3226
|
+
<tbody id="days-container">
|
|
3227
|
+
<template is="dom-repeat" items="[[_weeks]]" as="week">
|
|
3228
|
+
<tr role="row">
|
|
3229
|
+
<td part="week-number" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]">
|
|
3230
|
+
[[__getWeekNumber(week)]]
|
|
3231
|
+
</td>
|
|
3232
|
+
<template is="dom-repeat" items="[[week]]">
|
|
3233
|
+
<td
|
|
3234
|
+
role="gridcell"
|
|
3235
|
+
part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate, isDateDisabled)]]"
|
|
3236
|
+
date="[[item]]"
|
|
3237
|
+
tabindex$="[[__getDayTabindex(item, focusedDate)]]"
|
|
3238
|
+
disabled$="[[__isDayDisabled(item, minDate, maxDate, isDateDisabled)]]"
|
|
3239
|
+
aria-selected$="[[__getDayAriaSelected(item, selectedDate)]]"
|
|
3240
|
+
aria-disabled$="[[__getDayAriaDisabled(item, minDate, maxDate, isDateDisabled)]]"
|
|
3241
|
+
aria-label$="[[__getDayAriaLabel(item)]]"
|
|
3242
|
+
>[[_getDate(item)]]</td
|
|
3243
|
+
>
|
|
3244
|
+
</template>
|
|
3245
|
+
</tr>
|
|
3246
|
+
</template>
|
|
3247
|
+
</tbody>
|
|
3248
|
+
</table>
|
|
3249
|
+
`}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,r){t&&r&&r.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,r,n,i,s,o){const a=["date"],l=t>Vo(new Date),u=t<Vo(new Date);return this.__isDayDisabled(t,i,s,o)&&a.push("disabled"),this.__isDayFocused(t,r)&&a.push("focused"),this.__isDaySelected(t,n)&&a.push("selected"),this._isToday(t)&&a.push("today"),u&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(t,r){return Ft(t,r)}__isDaySelected(t,r){return Ft(t,r)}__getDayAriaSelected(t,r){if(this.__isDaySelected(t,r))return"true"}__isDayDisabled(t,r,n,i){return!qr(t,r,n,i)}__getDayAriaDisabled(t,r,n,i){if(!(t===void 0||r===void 0&&n===void 0&&i===void 0)&&this.__isDayDisabled(t,r,n,i))return"true"}__getDayTabindex(t,r){return this.__isDayFocused(t,r)?"0":"-1"}}St(ty);/**
|
|
3250
|
+
* @license
|
|
3251
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3252
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3253
|
+
*/class wh{constructor(t,r){this.query=t,this.callback=r,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(t){typeof this.callback=="function"&&this.callback(t.matches)}}/**
|
|
3254
|
+
* @license
|
|
3255
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3256
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3257
|
+
*/const ry=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},isDateDisabled:{type:Function},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, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(r=>r.focusableDateElement).find(Boolean)}_addListeners(){ch(this.$.scrollers,"pan-y"),Ct(this.$.scrollers,"track",this._track.bind(this)),Ct(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ct(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ct(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new wh(this._desktopMediaQuery,r=>{this._desktopMode=r})),this.addController(new cr(this,"today-button","vaadin-button",{observe:!1,initializer:r=>{r.setAttribute("theme","tertiary"),r.addEventListener("keydown",n=>this.__onTodayButtonKeyDown(n)),Ct(r,"tap",this._onTodayTap.bind(this)),this._todayButton=r}})),this.addController(new cr(this,"cancel-button","vaadin-button",{observe:!1,initializer:r=>{r.setAttribute("theme","tertiary"),r.addEventListener("keydown",n=>this.__onCancelButtonKeyDown(n)),Ct(r,"tap",this._cancel.bind(this)),this._cancelButton=r}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(r,n){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(r):0;this._scrollToPosition(this._differenceInMonths(r,this._originDate)+i,n),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new cr(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:r=>{r.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),r.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),r.addEventListener("keydown",n=>{this.__onMonthCalendarKeyDown(n)}),r.addEventListener("init-done",()=>{const n=[...this.querySelectorAll("vaadin-month-calendar")];n.forEach(i=>{i.addEventListener("selected-date-changed",s=>{this.selectedDate=s.detail.value})}),this.calendars=n}),this._monthScroller=r}}))}__initYearScroller(){this.addController(new cr(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:r=>{r.setAttribute("aria-hidden","true"),Ct(r,"tap",n=>{this._onYearTap(n)}),r.addEventListener("custom-scroll",()=>{this._onYearScroll()}),r.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),r.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=r}}))}__updateCancelButton(r,n){r&&(r.textContent=n&&n.cancel)}__updateTodayButton(r,n,i,s,o){r&&(r.textContent=n&&n.today,r.disabled=!this._isTodayAllowed(i,s,o))}__updateCalendars(r,n,i,s,o,a,l,u,d,c){r&&r.length&&r.forEach(h=>{h.i18n=n,h.minDate=i,h.maxDate=s,h.isDateDisabled=c,h.focusedDate=a,h.selectedDate=o,h.showWeekNumbers=l,h.ignoreTaps=u,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(r,n,i){r&&r.length&&r.forEach(s=>{s.selectedDate=n,i?s.setAttribute("theme",i):s.removeAttribute("theme")})}_selectDate(r){return this._dateAllowed(r)?(this.selectedDate=r,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:r},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(r){this.toggleAttribute("desktop",r)}_focusedDateChanged(r){this.revealDate(r)}revealDate(r,n=!0){if(!r)return;const i=this._differenceInMonths(r,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(r);this._scrollToPosition(i+u,n);return}const s=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<i;s?this._scrollToPosition(i,n):l&&this._scrollToPosition(i-a+1,n)}_calculateWeekScrollOffset(r){const n=new Date(0,0);n.setFullYear(r.getFullYear()),n.setMonth(r.getMonth()),n.setDate(1);let i=0;for(;n.getDate()<r.getDate();)n.setDate(n.getDate()+1),n.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(r){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(r)}_repositionYearScroller(){const r=this._monthScroller.position;this._visibleMonthIndex=Math.floor(r),this._yearScroller.position=(r+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=jr.debounce(this._debouncer,Ii.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(r,n,i){return r&&n&&typeof n.formatDate=="function"?n.formatDate(Ca(r)):i}_onTodayTap(){const r=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(r,this._originDate))<.001?(this._selectDate(r),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(r){if(!this._ignoreTaps&&!this._notTapping){const i=(r.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,!0)}}_scrollToPosition(r,n){if(this._targetPosition!==void 0){this._targetPosition=r;return}if(!n){this._monthScroller.position=r,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=r;let i;this._revealPromise=new Promise(u=>{i=u});const s=(u,d,c,h)=>(u/=h/2,u<1?c/2*u*u+d:(u-=1,-c/2*(u*(u-2)-1)+d));let o=0;const a=this._monthScroller.position,l=u=>{o||(o=u);const d=u-o;if(d<this.scrollDuration){const c=s(d,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=c,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._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(r,n){return Math.min(n.max,Math.max(n.min,r))}_handleTrack(r){if(Math.abs(r.detail.dx)<10||Math.abs(r.detail.ddy)>10)return;Math.abs(r.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const n=this._translateX+r.detail.ddx;this._translateX=this._limit(n,{min:0,max:this._yearScrollerWidth})}_track(r){if(!this._desktopMode)switch(r.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(r);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(r){r?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(r){this._desktopMode||(this._monthScroller.style.transform=`translateX(${r-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${r}px)`)}_yearAfterXMonths(r){return mh(r).getFullYear()}_differenceInMonths(r,n){return(r.getFullYear()-n.getFullYear())*12-n.getMonth()+r.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(r){r.preventDefault()}__toggleDate(r){Ft(r,this.selectedDate)?(this._clear(),this.focusedDate=r):this._selectDate(r)}__onMonthCalendarKeyDown(r){let n=!1;switch(r.key){case"ArrowDown":this._moveFocusByDays(7),n=!0;break;case"ArrowUp":this._moveFocusByDays(-7),n=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),n=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),n=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),n=!0);break;case" ":this.__toggleDate(this.focusedDate),n=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),n=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),n=!0;break;case"PageDown":this._moveFocusByMonths(r.shiftKey?12:1),n=!0;break;case"PageUp":this._moveFocusByMonths(r.shiftKey?-12:-1),n=!0;break;case"Tab":this._onTabKeyDown(r,"calendar");break}n&&(r.preventDefault(),r.stopPropagation())}_onTabKeyDown(r,n){switch(r.stopPropagation(),n){case"calendar":r.shiftKey&&(r.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":r.shiftKey&&(r.preventDefault(),this.focusDateElement());break;case"cancel":r.shiftKey||(r.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(r){r.key==="Tab"&&this._onTabKeyDown(r,"today")}__onCancelButtonKeyDown(r){r.key==="Tab"&&this._onTabKeyDown(r,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const n=this.focusableDateElement;n&&Ft(n.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,n.focus())}}focusDate(r,n){return st(this,null,function*(){const i=r||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,n||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(r=!0){return st(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(n=>{Jc(this,()=>{xa(),n()})})),r&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(r){this.focusDate(ph(r,[this.minDate,this.maxDate]))}_focusAllowedDate(r,n,i){this._dateAllowed(r,void 0,void 0,()=>!1)?this.focusDate(r,i):this._dateAllowed(this.focusedDate)?n>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(r,n){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+r),n&&i.setDate(this.focusedDate.getDate()+n),i}_moveFocusByDays(r){const n=this._getDateDiff(0,r);this._focusAllowedDate(n,r,!1)}_moveFocusByMonths(r){const n=this._getDateDiff(r),i=n.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),n.setDate(this._focusedMonthDate),n.getMonth()!==i&&n.setDate(0),this._focusAllowedDate(n,r,!0)}_moveFocusInsideMonth(r,n){const i=new Date(0,0);i.setFullYear(r.getFullYear()),n==="minDate"?(i.setMonth(r.getMonth()),i.setDate(1)):(i.setMonth(r.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(r)?this.focusDate(this[n]):this._focusClosestDate(r)}_dateAllowed(r,n=this.minDate,i=this.maxDate,s=this.isDateDisabled){return qr(r,n,i,s)}_isTodayAllowed(r,n,i){return this._dateAllowed(this._getTodayMidnight(),r,n,i)}_getTodayMidnight(){const r=new Date,n=new Date(0,0);return n.setFullYear(r.getFullYear()),n.setMonth(r.getMonth()),n.setDate(r.getDate()),n}};/**
|
|
3258
|
+
* @license
|
|
3259
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3260
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3261
|
+
*/const ny=ge`
|
|
3262
|
+
:host {
|
|
3263
|
+
display: flex;
|
|
3264
|
+
flex-direction: column;
|
|
3265
|
+
height: 100%;
|
|
3266
|
+
width: 100%;
|
|
3267
|
+
outline: none;
|
|
3268
|
+
}
|
|
3269
|
+
|
|
3270
|
+
[part='overlay-header'] {
|
|
3271
|
+
display: flex;
|
|
3272
|
+
flex-shrink: 0;
|
|
3273
|
+
flex-wrap: nowrap;
|
|
3274
|
+
align-items: center;
|
|
3275
|
+
}
|
|
3276
|
+
|
|
3277
|
+
:host(:not([fullscreen])) [part='overlay-header'] {
|
|
3278
|
+
display: none;
|
|
3279
|
+
}
|
|
3280
|
+
|
|
3281
|
+
[part='label'] {
|
|
3282
|
+
flex-grow: 1;
|
|
3283
|
+
}
|
|
3284
|
+
|
|
3285
|
+
[hidden] {
|
|
3286
|
+
display: none !important;
|
|
3287
|
+
}
|
|
3288
|
+
|
|
3289
|
+
[part='years-toggle-button'] {
|
|
3290
|
+
display: flex;
|
|
3291
|
+
}
|
|
3292
|
+
|
|
3293
|
+
#scrollers {
|
|
3294
|
+
display: flex;
|
|
3295
|
+
height: 100%;
|
|
3296
|
+
width: 100%;
|
|
3297
|
+
position: relative;
|
|
3298
|
+
overflow: hidden;
|
|
3299
|
+
}
|
|
3300
|
+
|
|
3301
|
+
:host([desktop]) ::slotted([slot='months']) {
|
|
3302
|
+
right: 50px;
|
|
3303
|
+
transform: none !important;
|
|
3304
|
+
}
|
|
3305
|
+
|
|
3306
|
+
:host([desktop]) ::slotted([slot='years']) {
|
|
3307
|
+
transform: none !important;
|
|
3308
|
+
}
|
|
3309
|
+
|
|
3310
|
+
:host(.animate) ::slotted([slot='months']),
|
|
3311
|
+
:host(.animate) ::slotted([slot='years']) {
|
|
3312
|
+
transition: all 200ms;
|
|
3313
|
+
}
|
|
3314
|
+
|
|
3315
|
+
[part='toolbar'] {
|
|
3316
|
+
display: flex;
|
|
3317
|
+
justify-content: space-between;
|
|
3318
|
+
z-index: 2;
|
|
3319
|
+
flex-shrink: 0;
|
|
3320
|
+
}
|
|
3321
|
+
`;/**
|
|
3322
|
+
* @license
|
|
3323
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3324
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3325
|
+
*/Fe("vaadin-date-picker-overlay-content",ny,{moduleId:"vaadin-date-picker-overlay-content-styles"});class iy extends ry(Qr(br(os(rr)))){static get template(){return yr`
|
|
3326
|
+
<div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
|
|
3327
|
+
<div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
|
|
3328
|
+
<div part="clear-button" hidden$="[[!selectedDate]]"></div>
|
|
3329
|
+
<div part="toggle-button"></div>
|
|
3330
|
+
|
|
3331
|
+
<div part="years-toggle-button" hidden$="[[_desktopMode]]" aria-hidden="true">
|
|
3332
|
+
[[_yearAfterXMonths(_visibleMonthIndex)]]
|
|
3333
|
+
</div>
|
|
3334
|
+
</div>
|
|
3335
|
+
|
|
3336
|
+
<div id="scrollers">
|
|
3337
|
+
<slot name="months"></slot>
|
|
3338
|
+
<slot name="years"></slot>
|
|
3339
|
+
</div>
|
|
3340
|
+
|
|
3341
|
+
<div on-touchend="_preventDefault" role="toolbar" part="toolbar">
|
|
3342
|
+
<slot name="today-button"></slot>
|
|
3343
|
+
<slot name="cancel-button"></slot>
|
|
3344
|
+
</div>
|
|
3345
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}St(iy);/**
|
|
3346
|
+
* @license
|
|
3347
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3348
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3349
|
+
*/const Ch=Ye(e=>class extends wa(fh(e)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(r,n){r?(r.disabled=this.disabled,this._addFocusListeners(r),this.__forwardTabIndex(this.tabindex)):n&&this._removeFocusListeners(n)}_addFocusListeners(r){r.addEventListener("blur",this._boundOnBlur),r.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(r){r.removeEventListener("blur",this._boundOnBlur),r.removeEventListener("focus",this._boundOnFocus)}_onFocus(r){r.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(r){r.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(r){return r.target===this.focusElement}_shouldRemoveFocus(r){return r.target===this.focusElement}_disabledChanged(r,n){super._disabledChanged(r,n),this.focusElement&&(this.focusElement.disabled=r),r&&this.blur()}_tabindexChanged(r){this.__forwardTabIndex(r)}__forwardTabIndex(r){r!==void 0&&this.focusElement&&(this.focusElement.tabIndex=r,r!==-1&&(this.tabindex=void 0)),this.disabled&&r&&(r!==-1&&(this._lastTabIndex=r),this.tabindex=void 0)}});/**
|
|
3350
|
+
* @license
|
|
3351
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3352
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3353
|
+
*/const ro=new WeakMap;function sy(e){return ro.has(e)||ro.set(e,new Set),ro.get(e)}function oy(e,t){const r=document.createElement("style");r.textContent=e,t===document?document.head.appendChild(r):t.insertBefore(r,t.firstChild)}const ay=Ye(e=>class extends e{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const r=this.getRootNode(),n=sy(r);this.slotStyles.forEach(i=>{n.has(i)||(oy(i,r),n.add(i))})}});/**
|
|
3354
|
+
* @license
|
|
3355
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3356
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3357
|
+
*/const xh=Ye(e=>class extends e{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(r){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=r)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(r){r.addEventListener("input",this._boundOnInput),r.addEventListener("change",this._boundOnChange)}_removeInputListeners(r){r.removeEventListener("input",this._boundOnInput),r.removeEventListener("change",this._boundOnChange)}_forwardInputValue(r){this.inputElement&&(this._inputElementValue=r!=null?r:"")}_inputElementChanged(r,n){r?this._addInputListeners(r):n&&this._removeInputListeners(n)}_hasInputValueChanged(r,n){(r||n)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(r){this._setHasInputValue(r),this._onInput(r)}_onInput(r){const n=r.composedPath()[0];this.__userInput=r.isTrusted,this.value=n.value,this.__userInput=!1}_onChange(r){}_toggleHasValue(r){this.toggleAttribute("has-value",r)}_valueChanged(r,n){this._toggleHasValue(this._hasValue),!(r===""&&n===void 0)&&(this.__userInput||this._forwardInputValue(r))}_setHasInputValue(r){const n=r.composedPath()[0];this._hasInputValue=n.value.length>0}});/**
|
|
3358
|
+
* @license
|
|
3359
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3360
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3361
|
+
*/const ly=e=>class extends xh(us(e)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",r=>this._onClearButtonMouseDown(r)),this.clearElement.addEventListener("click",r=>this._onClearButtonClick(r)))}_onClearButtonClick(r){r.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(r){r.preventDefault(),Tb||this.inputElement.focus()}_onEscape(r){super._onEscape(r),this.clearButtonVisible&&this.value&&!this.readonly&&(r.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
|
|
3362
|
+
* @license
|
|
3363
|
+
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
3364
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3365
|
+
*/const no=new Map;function ka(e){return no.has(e)||no.set(e,new WeakMap),no.get(e)}function Eh(e,t){e&&e.removeAttribute(t)}function Sh(e,t){if(!e||!t)return;const r=ka(t);if(r.has(e))return;const n=_a(e.getAttribute(t));r.set(e,new Set(n))}function uy(e,t){if(!e)return;const r=ka(t),n=r.get(e);!n||n.size===0?e.removeAttribute(t):rh(e,t,ls(n)),r.delete(e)}function io(e,t,r={newId:null,oldId:null,fromUser:!1}){if(!e||!t)return;const{newId:n,oldId:i,fromUser:s}=r,o=ka(t),a=o.get(e);if(!s&&a){i&&a.delete(i),n&&a.add(n);return}s&&(a?n||o.delete(e):Sh(e,t),Eh(e,t)),Rb(e,t,i);const l=n||ls(a);l&&rh(e,t,l)}function dy(e,t){Sh(e,t),Eh(e,t)}/**
|
|
3366
|
+
* @license
|
|
3367
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3368
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3369
|
+
*/class cy{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,r=!1){const n=r?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,n,r),r?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(dy(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(uy(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,r,n){io(this.__target,"aria-labelledby",{newId:t,oldId:r,fromUser:n})}__setErrorIdToAriaAttribute(t,r){io(this.__target,"aria-describedby",{newId:t,oldId:r,fromUser:!1})}__setHelperIdToAriaAttribute(t,r){io(this.__target,"aria-describedby",{newId:t,oldId:r,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
|
|
3370
|
+
* @license
|
|
3371
|
+
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
3372
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3373
|
+
*/const pt=document.createElement("div");pt.style.position="fixed";pt.style.clip="rect(0px, 0px, 0px, 0px)";pt.setAttribute("aria-live","polite");document.body.appendChild(pt);let ui;function hy(e,t={}){const r=t.mode||"polite",n=t.timeout===void 0?150:t.timeout;r==="alert"?(pt.removeAttribute("aria-live"),pt.removeAttribute("role"),ui=jr.debounce(ui,ev,()=>{pt.setAttribute("role","alert")})):(ui&&ui.cancel(),pt.removeAttribute("role"),pt.setAttribute("aria-live",r)),pt.textContent="",setTimeout(()=>{pt.textContent=e},n)}/**
|
|
3374
|
+
* @license
|
|
3375
|
+
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
3376
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3377
|
+
*/class Ta extends cr{constructor(t,r,n,i={}){super(t,r,n,sn(sr({},i),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const r=this.getSlotChild();r&&r!==this.defaultNode?this.__notifyChange(r):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(r=>{r.forEach(n=>{const i=n.target,s=i===this.node;n.type==="attributes"?s&&this.__updateNodeId(i):(s||i.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const r=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||r)&&!t.id&&(t.id=this.defaultId)}}/**
|
|
3378
|
+
* @license
|
|
3379
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3380
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3381
|
+
*/class fy extends Ta{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:r,invalid:n}=this,i=!!(n&&r&&r.trim()!=="");t&&(t.textContent=i?r:"",t.hidden=!i,i&&hy(r,{mode:"assertive"})),super.updateDefaultNode(t)}}/**
|
|
3382
|
+
* @license
|
|
3383
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3384
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3385
|
+
*/class py extends Ta{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const r=this.attachDefaultNode();this.observeNode(r)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
|
|
3386
|
+
* @license
|
|
3387
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3388
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3389
|
+
*/class my extends Ta{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const r=this.attachDefaultNode();this.observeNode(r)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
|
|
3390
|
+
* @license
|
|
3391
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3392
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3393
|
+
*/const _y=Ye(e=>class extends Qr(e){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new my(this),this._labelController.addEventListener("slot-content-changed",r=>{this.toggleAttribute("has-label",r.detail.hasContent)})}get _labelId(){const r=this._labelNode;return r&&r.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(r){this._labelController.setLabel(r)}});/**
|
|
3394
|
+
* @license
|
|
3395
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3396
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3397
|
+
*/const kh=Ye(e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const r=this.checkValidity();return this._setInvalid(!r),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:r}})),r}checkValidity(){return!this.required||!!this.value}_setInvalid(r){this._shouldSetInvalid(r)&&(this.invalid=r)}_shouldSetInvalid(r){return!0}});/**
|
|
3398
|
+
* @license
|
|
3399
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3400
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3401
|
+
*/const gy=e=>class extends kh(_y(Qr(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 cy(this),this._helperController=new py(this),this._errorController=new fy(this),this._errorController.addEventListener("slot-content-changed",r=>{this.toggleAttribute("has-error-message",r.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",r=>{const{hasContent:n,node:i}=r.detail;this.__labelChanged(n,i)}),this._helperController.addEventListener("slot-content-changed",r=>{const{hasContent:n,node:i}=r.detail;this.toggleAttribute("has-helper",n),this.__helperChanged(n,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(r,n){r?this._fieldAriaController.setHelperId(n.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(r){this._fieldAriaController.setAriaLabel(r)}_accessibleNameRefChanged(r){this._fieldAriaController.setLabelId(r,!0)}__labelChanged(r,n){r?this._fieldAriaController.setLabelId(n.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(r){this._errorController.setErrorMessage(r)}_helperTextChanged(r){this._helperController.setHelperText(r)}_ariaTargetChanged(r){r&&this._fieldAriaController.setTarget(r)}_requiredChanged(r){this._fieldAriaController.setRequired(r)}_invalidChanged(r){this._errorController.setInvalid(r),setTimeout(()=>{if(r){const n=this._errorNode;this._fieldAriaController.setErrorId(n&&n.id)}else this._fieldAriaController.setErrorId(null)})}};/**
|
|
3402
|
+
* @license
|
|
3403
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3404
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3405
|
+
*/const by=Ye(e=>class extends e{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(r){r&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(r=>{this._delegateAttribute(r,this[r])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(r=>{this._delegateProperty(r,this[r])})}_delegateAttrsChanged(...r){this.constructor.delegateAttrs.forEach((n,i)=>{this._delegateAttribute(n,r[i])})}_delegatePropsChanged(...r){this.constructor.delegateProps.forEach((n,i)=>{this._delegateProperty(n,r[i])})}_delegateAttribute(r,n){this.stateTarget&&(r==="invalid"&&this._delegateAttribute("aria-invalid",n?"true":!1),typeof n=="boolean"?this.stateTarget.toggleAttribute(r,n):n?this.stateTarget.setAttribute(r,n):this.stateTarget.removeAttribute(r))}_delegateProperty(r,n){this.stateTarget&&(this.stateTarget[r]=n)}});/**
|
|
3406
|
+
* @license
|
|
3407
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3408
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3409
|
+
*/const Th=Ye(e=>class extends by(kh(xh(e))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(r=>this[r]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(r){return r.some(n=>this.__isValidConstraint(n))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(r,...n){if(!r)return;const i=this._hasValidConstraints(n),s=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():s&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(r){r.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:r},bubbles:r.bubbles,cancelable:r.cancelable}))}__isValidConstraint(r){return!!r||r===0}});/**
|
|
3410
|
+
* @license
|
|
3411
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3412
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3413
|
+
*/const vy=e=>class extends ay(Ch(Th(gy(ly(us(e)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
|
|
3414
|
+
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
3415
|
+
font: inherit;
|
|
3416
|
+
color: inherit;
|
|
3417
|
+
}
|
|
3418
|
+
`]}_onFocus(r){super._onFocus(r),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(r){r.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:r},bubbles:r.bubbles,cancelable:r.cancelable}))}_addInputListeners(r){super._addInputListeners(r),r.addEventListener("paste",this._boundOnPaste),r.addEventListener("drop",this._boundOnDrop),r.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(r){super._removeInputListeners(r),r.removeEventListener("paste",this._boundOnPaste),r.removeEventListener("drop",this._boundOnDrop),r.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(r){super._onKeyDown(r),this.allowedCharPattern&&!this.__shouldAcceptKey(r)&&r.target===this.inputElement&&(r.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=jr.debounce(this._preventInputDebouncer,Ii.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(r){return r.metaKey||r.ctrlKey||!r.key||r.key.length!==1||this.__allowedCharRegExp.test(r.key)}_onPaste(r){if(this.allowedCharPattern){const n=r.clipboardData.getData("text");this.__allowedTextRegExp.test(n)||(r.preventDefault(),this._markInputPrevented())}}_onDrop(r){if(this.allowedCharPattern){const n=r.dataTransfer.getData("text");this.__allowedTextRegExp.test(n)||(r.preventDefault(),this._markInputPrevented())}}_onBeforeInput(r){this.allowedCharPattern&&r.data&&!this.__allowedTextRegExp.test(r.data)&&(r.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(r){if(r)try{this.__allowedCharRegExp=new RegExp(`^${r}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${r}*$`,"u")}catch(n){console.error(n)}}};/**
|
|
3419
|
+
* @license
|
|
3420
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3421
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3422
|
+
*/class yy extends cr{constructor(t,r,n={}){const{uniqueIdPrefix:i}=n;super(t,"input","input",{initializer:(s,o)=>{o.value&&(s.value=o.value),o.type&&s.setAttribute("type",o.type),s.id=this.defaultId,typeof r=="function"&&r(s)},useUniqueId:!0,uniqueIdPrefix:i})}}/**
|
|
3423
|
+
* @license
|
|
3424
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3425
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3426
|
+
*/class wy{constructor(t,r){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),r.addEventListener("slot-content-changed",n=>{this.__initLabel(n.detail.node)}),this.__initLabel(r.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=r=>{r.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}/**
|
|
3427
|
+
* @license
|
|
3428
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3429
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3430
|
+
*/const Cy=ge`
|
|
3431
|
+
[part='clear-button'] {
|
|
3432
|
+
display: none;
|
|
3433
|
+
cursor: default;
|
|
3434
|
+
}
|
|
3435
|
+
|
|
3436
|
+
[part='clear-button']::before {
|
|
3437
|
+
content: '\\2715';
|
|
3438
|
+
}
|
|
3439
|
+
|
|
3440
|
+
:host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
|
|
3441
|
+
display: block;
|
|
3442
|
+
}
|
|
3443
|
+
`;/**
|
|
3444
|
+
* @license
|
|
3445
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3446
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3447
|
+
*/const xy=ge`
|
|
3448
|
+
:host {
|
|
3449
|
+
display: inline-flex;
|
|
3450
|
+
outline: none;
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3453
|
+
:host::before {
|
|
3454
|
+
content: '\\2003';
|
|
3455
|
+
width: 0;
|
|
3456
|
+
display: inline-block;
|
|
3457
|
+
/* Size and position this element on the same vertical position as the input-field element
|
|
3458
|
+
to make vertical align for the host element work as expected */
|
|
3459
|
+
}
|
|
3460
|
+
|
|
3461
|
+
:host([hidden]) {
|
|
3462
|
+
display: none !important;
|
|
3463
|
+
}
|
|
3464
|
+
|
|
3465
|
+
:host(:not([has-label])) [part='label'] {
|
|
3466
|
+
display: none;
|
|
3467
|
+
}
|
|
3468
|
+
|
|
3469
|
+
@media (forced-colors: active) {
|
|
3470
|
+
:host(:not([readonly])) [part='input-field'] {
|
|
3471
|
+
outline: 1px solid;
|
|
3472
|
+
outline-offset: -1px;
|
|
3473
|
+
}
|
|
3474
|
+
:host([focused]) [part='input-field'] {
|
|
3475
|
+
outline-width: 2px;
|
|
3476
|
+
}
|
|
3477
|
+
:host([disabled]) [part='input-field'] {
|
|
3478
|
+
outline-color: GrayText;
|
|
3479
|
+
}
|
|
3480
|
+
}
|
|
3481
|
+
`;/**
|
|
3482
|
+
* @license
|
|
3483
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3484
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3485
|
+
*/const Ey=ge`
|
|
3486
|
+
[class$='container'] {
|
|
3487
|
+
display: flex;
|
|
3488
|
+
flex-direction: column;
|
|
3489
|
+
min-width: 100%;
|
|
3490
|
+
max-width: 100%;
|
|
3491
|
+
width: var(--vaadin-field-default-width, 12em);
|
|
3492
|
+
}
|
|
3493
|
+
`;/**
|
|
3494
|
+
* @license
|
|
3495
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3496
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3497
|
+
*/const Sy=[xy,Ey,Cy];/**
|
|
3498
|
+
* @license
|
|
3499
|
+
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
3500
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3501
|
+
*/const ky=e=>class extends e{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(r,n){if(!n||r===void 0)return;const{classList:i}=n;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const o=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));o.length>0&&i.remove(...o)}const s=typeof r=="string"?r.split(" ").filter(Boolean):[];s.length>0&&i.add(...s),this.__previousClasses=s}};/**
|
|
3502
|
+
* @license
|
|
3503
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3504
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3505
|
+
*/class Ty{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}/**
|
|
3506
|
+
* @license
|
|
3507
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3508
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3509
|
+
*/const Py=e=>class extends ky(Qr(Ch(Th(us(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: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(r){const n=String(r.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[r.month+1,r.day,n].join("/")},parseDate(r){const n=r.split("/"),i=new Date;let s,o=i.getMonth(),a=i.getFullYear();if(n.length===3){if(o=parseInt(n[0])-1,s=parseInt(n[1]),a=parseInt(n[2]),n[2].length<3&&a>=0){const l=this.referenceDate?fn(this.referenceDate):new Date;a=Pv(l,a,o,s)}}else n.length===2?(o=parseInt(n[0])-1,s=parseInt(n[1])):n.length===1&&(s=parseInt(n[0]));if(s!==void 0)return{day:s,month:o,year:a}},formatTitle:(r,n)=>`${r} ${n}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_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:Qc},_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, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(r){super._inputElementValue=r,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(r){super._onFocus(r),this._noInput&&!ma()&&r.target.blur()}_onBlur(r){super._onBlur(r),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new wh(this._fullscreenMediaQuery,n=>{this._fullscreen=n})),this.addController(new Ty(this));const r=this.$.overlay;this._overlayElement=r,r.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(r){if(r.firstChild)return;const n=document.createElement("vaadin-date-picker-overlay-content");r.appendChild(n),this._overlayContent=n,n.addEventListener("close",()=>{this._close()}),n.addEventListener("focus-input",this._focusAndSelect.bind(this)),n.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),n.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),n.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),n.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),n.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),n.addEventListener("click",i=>i.stopPropagation())}__parseDate(r){if(!this.i18n.parseDate)return;let n=this.i18n.parseDate(r);if(n&&(n=fn(`${n.year}-${n.month+1}-${n.day}`)),n&&!isNaN(n.getTime()))return n}__formatDate(r){if(this.i18n.formatDate)return this.i18n.formatDate(Ca(r))}checkValidity(){const r=this._inputElementValue,n=!r||!!this._selectedDate&&r===this.__formatDate(this._selectedDate),i=!this._selectedDate||qr(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let s=!0;return this.inputElement&&(this.inputElement.checkValidity?s=this.inputElement.checkValidity():this.inputElement.validate&&(s=this.inputElement.validate())),n&&i&&s}_shouldSetFocus(r){return!this._shouldKeepFocusRing}_shouldRemoveFocus(r){const{relatedTarget:n}=r;return this.opened&&n!==null&&n!==document.body&&!this.contains(n)&&!this._overlayContent.contains(n)?!0:!this.opened}_setFocused(r){super._setFocused(r),this._shouldKeepFocusRing=r&&this._keyboardActive}__commitValueChange(){const r=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==r&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=r}__commitDate(r){this.__keepCommittedValue=!0,this._selectedDate=r,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(r,n,i,s,o,a){return!r||n&&(!a||o)||i&&o||!s.parseDate}_formatISO(r){return Av(r)}_inputElementChanged(r){super._inputElementChanged(r),r&&(r.autocomplete="off",r.setAttribute("role","combobox"),r.setAttribute("aria-haspopup","dialog"),r.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(r){this.inputElement&&this.inputElement.setAttribute("aria-expanded",r)}_selectedDateChanged(r,n){r===void 0||n===void 0||(this.__keepInputValue||this._applyInputValue(r),this.value=this._formatISO(r),this._ignoreFocusedDateChange=!0,this._focusedDate=r,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(r,n){r===void 0||n===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(r)}_valueChanged(r,n){const i=fn(r);if(r&&!i){this.value=n;return}r?Ft(this._selectedDate,i)||(this._selectedDate=i,n!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(r,n,i,s,o,a,l,u,d){r&&(r.i18n=n,r.label=i,r.minDate=s,r.maxDate=o,r.focusedDate=a,r.selectedDate=l,r.showWeekNumbers=u,r.isDateDisabled=d)}__updateOverlayContentTheme(r,n){r&&(n?r.setAttribute("theme",n):r.removeAttribute("theme"))}__updateOverlayContentFullScreen(r,n){r&&r.toggleAttribute("fullscreen",n)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const r=this._overlayContent;r.reset();const n=this._getInitialPosition();r.initialPosition=n;const i=r.focusedDate||n;r.scrollToDate(i),this._ignoreFocusedDateChange=!0,r.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(r.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const s=this._nativeInput;this._noInput&&s&&(s.blur(),this._overlayContent.focusDateElement());const o=this._noInput?r:[s,r];this.__showOthers=eh(o)}_getInitialPosition(){const r=fn(this.initialPosition),n=this._selectedDate||this._overlayContent.initialPosition||r||new Date;return r||qr(n,this._minDate,this._maxDate,this.isDateDisabled)?n:this._minDate||this._maxDate?ph(n,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const r=this._inputElementValue||"",n=this.__parseDate(r);n?this.__commitDate(n):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(r){(r.target===window||!this._overlayContent.contains(r.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(r){this._inputElementValue=r?this.__formatDate(r):""}_setSelectionRange(r,n){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(r,n)}_onChange(r){r.stopPropagation()}_onClick(r){this._isClearButton(r)||this._onHostClick(r)}_onHostClick(r){(!this.autoOpenDisabled||this._noInput)&&(r.preventDefault(),this.open())}_onClearButtonClick(r){r.preventDefault(),this.__commitDate(null)}_onKeyDown(r){switch(super._onKeyDown(r),this._noInput&&[9].indexOf(r.keyCode)===-1&&r.preventDefault(),r.key){case"ArrowDown":case"ArrowUp":r.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(r.preventDefault(),r.stopPropagation(),this._setSelectionRange(0,0),r.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(r){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(r){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){r.stopPropagation(),this._onClearButtonClick(r);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(r){return r.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const r=this.__parseDate(this._inputElementValue);r&&(this._ignoreFocusedDateChange=!0,Ft(r,this._focusedDate)||(this._focusedDate=r),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(r){return fn(r)}};/**
|
|
3510
|
+
* @license
|
|
3511
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3512
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3513
|
+
*/const Dy=ge`
|
|
3514
|
+
:host([opened]) {
|
|
3515
|
+
pointer-events: auto;
|
|
3516
|
+
}
|
|
3517
|
+
|
|
3518
|
+
:host([dir='rtl']) [part='input-field'] {
|
|
3519
|
+
direction: ltr;
|
|
3520
|
+
}
|
|
3521
|
+
|
|
3522
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
|
|
3523
|
+
direction: rtl;
|
|
3524
|
+
text-align: left;
|
|
3525
|
+
}
|
|
3526
|
+
`;/**
|
|
3527
|
+
* @license
|
|
3528
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3529
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3530
|
+
*/Fe("vaadin-date-picker",[Sy,Dy],{moduleId:"vaadin-date-picker-styles"});class Ay extends Py(vy(br(sh(rr)))){static get is(){return"vaadin-date-picker"}static get template(){return yr`
|
|
3531
|
+
<div class="vaadin-date-picker-container">
|
|
3532
|
+
<div part="label">
|
|
3533
|
+
<slot name="label"></slot>
|
|
3534
|
+
<span part="required-indicator" aria-hidden="true" on-click="focus"></span>
|
|
3535
|
+
</div>
|
|
3536
|
+
|
|
3537
|
+
<vaadin-input-container
|
|
3538
|
+
part="input-field"
|
|
3539
|
+
readonly="[[readonly]]"
|
|
3540
|
+
disabled="[[disabled]]"
|
|
3541
|
+
invalid="[[invalid]]"
|
|
3542
|
+
theme$="[[_theme]]"
|
|
3543
|
+
>
|
|
3544
|
+
<slot name="prefix" slot="prefix"></slot>
|
|
3545
|
+
<slot name="input"></slot>
|
|
3546
|
+
<div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
|
|
3547
|
+
<div part="toggle-button" slot="suffix" aria-hidden="true" on-click="_toggle"></div>
|
|
3548
|
+
</vaadin-input-container>
|
|
3549
|
+
|
|
3550
|
+
<div part="helper-text">
|
|
3551
|
+
<slot name="helper"></slot>
|
|
3552
|
+
</div>
|
|
3553
|
+
|
|
3554
|
+
<div part="error-message">
|
|
3555
|
+
<slot name="error-message"></slot>
|
|
3556
|
+
</div>
|
|
3557
|
+
</div>
|
|
3558
|
+
|
|
3559
|
+
<vaadin-date-picker-overlay
|
|
3560
|
+
id="overlay"
|
|
3561
|
+
fullscreen$="[[_fullscreen]]"
|
|
3562
|
+
theme$="[[_theme]]"
|
|
3563
|
+
opened="{{opened}}"
|
|
3564
|
+
on-vaadin-overlay-escape-press="_onOverlayEscapePress"
|
|
3565
|
+
on-vaadin-overlay-open="_onOverlayOpened"
|
|
3566
|
+
on-vaadin-overlay-closing="_onOverlayClosed"
|
|
3567
|
+
restore-focus-on-close
|
|
3568
|
+
restore-focus-node="[[inputElement]]"
|
|
3569
|
+
></vaadin-date-picker-overlay>
|
|
3570
|
+
|
|
3571
|
+
<slot name="tooltip"></slot>
|
|
3572
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new yy(this,r=>{this._setInputElement(r),this._setFocusElement(r),this.stateTarget=r,this.ariaTarget=r},{uniqueIdPrefix:"search-input"})),this.addController(new wy(this.inputElement,this._labelController)),this._tooltipController=new ah(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(r=>!r.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",r=>r.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}St(Ay);function My(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}//! moment.js
|
|
3573
|
+
//! version : 2.29.4
|
|
3574
|
+
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
3575
|
+
//! license : MIT
|
|
3576
|
+
//! momentjs.com
|
|
3577
|
+
var Ph;function G(){return Ph.apply(null,arguments)}function Oy(e){Ph=e}function gt(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function mr(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function ye(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Pa(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(ye(e,t))return!1;return!0}function nt(e){return e===void 0}function Yt(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function jn(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Dh(e,t){var r=[],n,i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function Xt(e,t){for(var r in t)ye(t,r)&&(e[r]=t[r]);return ye(t,"toString")&&(e.toString=t.toString),ye(t,"valueOf")&&(e.valueOf=t.valueOf),e}function kt(e,t,r,n){return Qh(e,t,r,n,!0).utc()}function By(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function se(e){return e._pf==null&&(e._pf=By()),e._pf}var Zo;Array.prototype.some?Zo=Array.prototype.some:Zo=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function Da(e){if(e._isValid==null){var t=se(e),r=Zo.call(t.parsedDateParts,function(i){return i!=null}),n=!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&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n}return e._isValid}function ds(e){var t=kt(NaN);return e!=null?Xt(se(t),e):se(t).userInvalidated=!0,t}var du=G.momentProperties=[],so=!1;function Aa(e,t){var r,n,i,s=du.length;if(nt(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),nt(t._i)||(e._i=t._i),nt(t._f)||(e._f=t._f),nt(t._l)||(e._l=t._l),nt(t._strict)||(e._strict=t._strict),nt(t._tzm)||(e._tzm=t._tzm),nt(t._isUTC)||(e._isUTC=t._isUTC),nt(t._offset)||(e._offset=t._offset),nt(t._pf)||(e._pf=se(t)),nt(t._locale)||(e._locale=t._locale),s>0)for(r=0;r<s;r++)n=du[r],i=t[n],nt(i)||(e[n]=i);return e}function qn(e){Aa(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),so===!1&&(so=!0,G.updateOffset(this),so=!1)}function bt(e){return e instanceof qn||e!=null&&e._isAMomentObject!=null}function Ah(e){G.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+e)}function ht(e,t){var r=!0;return Xt(function(){if(G.deprecationHandler!=null&&G.deprecationHandler(null,e),r){var n=[],i,s,o,a=arguments.length;for(s=0;s<a;s++){if(i="",typeof arguments[s]=="object"){i+=`
|
|
3578
|
+
[`+s+"] ";for(o in arguments[0])ye(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[s];n.push(i)}Ah(e+`
|
|
3579
|
+
Arguments: `+Array.prototype.slice.call(n).join("")+`
|
|
3580
|
+
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var cu={};function Mh(e,t){G.deprecationHandler!=null&&G.deprecationHandler(e,t),cu[e]||(Ah(t),cu[e]=!0)}G.suppressDeprecationWarnings=!1;G.deprecationHandler=null;function Tt(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Ny(e){var t,r;for(r in e)ye(e,r)&&(t=e[r],Tt(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Xo(e,t){var r=Xt({},e),n;for(n in t)ye(t,n)&&(mr(e[n])&&mr(t[n])?(r[n]={},Xt(r[n],e[n]),Xt(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)ye(e,n)&&!ye(t,n)&&mr(e[n])&&(r[n]=Xt({},r[n]));return r}function Ma(e){e!=null&&this.set(e)}var Ko;Object.keys?Ko=Object.keys:Ko=function(e){var t,r=[];for(t in e)ye(e,t)&&r.push(t);return r};var Iy={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ly(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return Tt(n)?n.call(t,r):n}function Et(e,t,r){var n=""+Math.abs(e),i=t-n.length,s=e>=0;return(s?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+n}var Oa=/(\[[^\[]*\])|(\\)?([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,di=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oo={},Rr={};function te(e,t,r,n){var i=n;typeof n=="string"&&(i=function(){return this[n]()}),e&&(Rr[e]=i),t&&(Rr[t[0]]=function(){return Et(i.apply(this,arguments),t[1],t[2])}),r&&(Rr[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Fy(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Ry(e){var t=e.match(Oa),r,n;for(r=0,n=t.length;r<n;r++)Rr[t[r]]?t[r]=Rr[t[r]]:t[r]=Fy(t[r]);return function(i){var s="",o;for(o=0;o<n;o++)s+=Tt(t[o])?t[o].call(i,e):t[o];return s}}function vi(e,t){return e.isValid()?(t=Oh(t,e.localeData()),oo[t]=oo[t]||Ry(t),oo[t](e)):e.localeData().invalidDate()}function Oh(e,t){var r=5;function n(i){return t.longDateFormat(i)||i}for(di.lastIndex=0;r>=0&&di.test(e);)e=e.replace(di,n),di.lastIndex=0,r-=1;return e}var Hy={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Uy(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Oa).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var Yy="Invalid date";function Wy(){return this._invalidDate}var zy="%d",$y=/\d{1,2}/;function Vy(e){return this._ordinal.replace("%d",e)}var Gy={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function jy(e,t,r,n){var i=this._relativeTime[r];return Tt(i)?i(e,t,r,n):i.replace(/%d/i,e)}function qy(e,t){var r=this._relativeTime[e>0?"future":"past"];return Tt(r)?r(t):r.replace(/%s/i,t)}var Cn={};function Xe(e,t){var r=e.toLowerCase();Cn[r]=Cn[r+"s"]=Cn[t]=e}function ft(e){return typeof e=="string"?Cn[e]||Cn[e.toLowerCase()]:void 0}function Ba(e){var t={},r,n;for(n in e)ye(e,n)&&(r=ft(n),r&&(t[r]=e[n]));return t}var Bh={};function Ke(e,t){Bh[e]=t}function Zy(e){var t=[],r;for(r in e)ye(e,r)&&t.push({unit:r,priority:Bh[r]});return t.sort(function(n,i){return n.priority-i.priority}),t}function cs(e){return e%4===0&&e%100!==0||e%400===0}function ct(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ue(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=ct(t)),r}function en(e,t){return function(r){return r!=null?(Nh(this,e,r),G.updateOffset(this,t),this):Ri(this,e)}}function Ri(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Nh(e,t,r){e.isValid()&&!isNaN(r)&&(t==="FullYear"&&cs(e.year())&&e.month()===1&&e.date()===29?(r=ue(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),gs(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}function Xy(e){return e=ft(e),Tt(this[e])?this[e]():this}function Ky(e,t){if(typeof e=="object"){e=Ba(e);var r=Zy(e),n,i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(e=ft(e),Tt(this[e]))return this[e](t);return this}var Ih=/\d/,lt=/\d\d/,Lh=/\d{3}/,Na=/\d{4}/,hs=/[+-]?\d{6}/,Me=/\d\d?/,Fh=/\d\d\d\d?/,Rh=/\d\d\d\d\d\d?/,fs=/\d{1,3}/,Ia=/\d{1,4}/,ps=/[+-]?\d{1,6}/,tn=/\d+/,ms=/[+-]?\d+/,Jy=/Z|[+-]\d\d:?\d\d/gi,_s=/Z|[+-]\d\d(?::?\d\d)?/gi,Qy=/[+-]?\d+(\.\d{1,3})?/,Zn=/[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,Hi;Hi={};function X(e,t,r){Hi[e]=Tt(t)?t:function(n,i){return n&&r?r:t}}function e1(e,t){return ye(Hi,e)?Hi[e](t._strict,t._locale):new RegExp(t1(e))}function t1(e){return at(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,i,s){return r||n||i||s}))}function at(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Jo={};function Se(e,t){var r,n=t,i;for(typeof e=="string"&&(e=[e]),Yt(t)&&(n=function(s,o){o[t]=ue(s)}),i=e.length,r=0;r<i;r++)Jo[e[r]]=n}function Xn(e,t){Se(e,function(r,n,i,s){i._w=i._w||{},t(r,i._w,i,s)})}function r1(e,t,r){t!=null&&ye(Jo,e)&&Jo[e](t,r._a,r,e)}var qe=0,Bt=1,xt=2,Ue=3,mt=4,Nt=5,fr=6,n1=7,i1=8;function s1(e,t){return(e%t+t)%t}var Ie;Array.prototype.indexOf?Ie=Array.prototype.indexOf:Ie=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function gs(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=s1(t,12);return e+=(t-r)/12,r===1?cs(e)?29:28:31-r%7%2}te("M",["MM",2],"Mo",function(){return this.month()+1});te("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});te("MMMM",0,0,function(e){return this.localeData().months(this,e)});Xe("month","M");Ke("month",8);X("M",Me);X("MM",Me,lt);X("MMM",function(e,t){return t.monthsShortRegex(e)});X("MMMM",function(e,t){return t.monthsRegex(e)});Se(["M","MM"],function(e,t){t[Bt]=ue(e)-1});Se(["MMM","MMMM"],function(e,t,r,n){var i=r._locale.monthsParse(e,n,r._strict);i!=null?t[Bt]=i:se(r).invalidMonth=e});var o1="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Hh="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Uh=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,a1=Zn,l1=Zn;function u1(e,t){return e?gt(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Uh).test(t)?"format":"standalone"][e.month()]:gt(this._months)?this._months:this._months.standalone}function d1(e,t){return e?gt(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Uh.test(t)?"format":"standalone"][e.month()]:gt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function c1(e,t,r){var n,i,s,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=kt([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return r?t==="MMM"?(i=Ie.call(this._shortMonthsParse,o),i!==-1?i:null):(i=Ie.call(this._longMonthsParse,o),i!==-1?i:null):t==="MMM"?(i=Ie.call(this._shortMonthsParse,o),i!==-1?i:(i=Ie.call(this._longMonthsParse,o),i!==-1?i:null)):(i=Ie.call(this._longMonthsParse,o),i!==-1?i:(i=Ie.call(this._shortMonthsParse,o),i!==-1?i:null))}function h1(e,t,r){var n,i,s;if(this._monthsParseExact)return c1.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=kt([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(s="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(s.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function Yh(e,t){var r;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=ue(t);else if(t=e.localeData().monthsParse(t),!Yt(t))return e}return r=Math.min(e.date(),gs(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r),e}function Wh(e){return e!=null?(Yh(this,e),G.updateOffset(this,!0),this):Ri(this,"Month")}function f1(){return gs(this.year(),this.month())}function p1(e){return this._monthsParseExact?(ye(this,"_monthsRegex")||zh.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ye(this,"_monthsShortRegex")||(this._monthsShortRegex=a1),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function m1(e){return this._monthsParseExact?(ye(this,"_monthsRegex")||zh.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ye(this,"_monthsRegex")||(this._monthsRegex=l1),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function zh(){function e(o,a){return a.length-o.length}var t=[],r=[],n=[],i,s;for(i=0;i<12;i++)s=kt([2e3,i]),t.push(this.monthsShort(s,"")),r.push(this.months(s,"")),n.push(this.months(s,"")),n.push(this.monthsShort(s,""));for(t.sort(e),r.sort(e),n.sort(e),i=0;i<12;i++)t[i]=at(t[i]),r[i]=at(r[i]);for(i=0;i<24;i++)n[i]=at(n[i]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}te("Y",0,0,function(){var e=this.year();return e<=9999?Et(e,4):"+"+e});te(0,["YY",2],0,function(){return this.year()%100});te(0,["YYYY",4],0,"year");te(0,["YYYYY",5],0,"year");te(0,["YYYYYY",6,!0],0,"year");Xe("year","y");Ke("year",1);X("Y",ms);X("YY",Me,lt);X("YYYY",Ia,Na);X("YYYYY",ps,hs);X("YYYYYY",ps,hs);Se(["YYYYY","YYYYYY"],qe);Se("YYYY",function(e,t){t[qe]=e.length===2?G.parseTwoDigitYear(e):ue(e)});Se("YY",function(e,t){t[qe]=G.parseTwoDigitYear(e)});Se("Y",function(e,t){t[qe]=parseInt(e,10)});function xn(e){return cs(e)?366:365}G.parseTwoDigitYear=function(e){return ue(e)+(ue(e)>68?1900:2e3)};var $h=en("FullYear",!0);function _1(){return cs(this.year())}function g1(e,t,r,n,i,s,o){var a;return e<100&&e>=0?(a=new Date(e+400,t,r,n,i,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,r,n,i,s,o),a}function Ln(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ui(e,t,r){var n=7+t-r,i=(7+Ln(e,0,n).getUTCDay()-t)%7;return-i+n-1}function Vh(e,t,r,n,i){var s=(7+r-n)%7,o=Ui(e,n,i),a=1+7*(t-1)+s+o,l,u;return a<=0?(l=e-1,u=xn(l)+a):a>xn(e)?(l=e+1,u=a-xn(e)):(l=e,u=a),{year:l,dayOfYear:u}}function Fn(e,t,r){var n=Ui(e.year(),t,r),i=Math.floor((e.dayOfYear()-n-1)/7)+1,s,o;return i<1?(o=e.year()-1,s=i+Rt(o,t,r)):i>Rt(e.year(),t,r)?(s=i-Rt(e.year(),t,r),o=e.year()+1):(o=e.year(),s=i),{week:s,year:o}}function Rt(e,t,r){var n=Ui(e,t,r),i=Ui(e+1,t,r);return(xn(e)-n+i)/7}te("w",["ww",2],"wo","week");te("W",["WW",2],"Wo","isoWeek");Xe("week","w");Xe("isoWeek","W");Ke("week",5);Ke("isoWeek",5);X("w",Me);X("ww",Me,lt);X("W",Me);X("WW",Me,lt);Xn(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=ue(e)});function b1(e){return Fn(e,this._week.dow,this._week.doy).week}var v1={dow:0,doy:6};function y1(){return this._week.dow}function w1(){return this._week.doy}function C1(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function x1(e){var t=Fn(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}te("d",0,"do","day");te("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});te("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});te("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});te("e",0,0,"weekday");te("E",0,0,"isoWeekday");Xe("day","d");Xe("weekday","e");Xe("isoWeekday","E");Ke("day",11);Ke("weekday",11);Ke("isoWeekday",11);X("d",Me);X("e",Me);X("E",Me);X("dd",function(e,t){return t.weekdaysMinRegex(e)});X("ddd",function(e,t){return t.weekdaysShortRegex(e)});X("dddd",function(e,t){return t.weekdaysRegex(e)});Xn(["dd","ddd","dddd"],function(e,t,r,n){var i=r._locale.weekdaysParse(e,n,r._strict);i!=null?t.d=i:se(r).invalidWeekday=e});Xn(["d","e","E"],function(e,t,r,n){t[n]=ue(e)});function E1(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function S1(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function La(e,t){return e.slice(t,7).concat(e.slice(0,t))}var k1="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Gh="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),T1="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),P1=Zn,D1=Zn,A1=Zn;function M1(e,t){var r=gt(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?La(r,this._week.dow):e?r[e.day()]:r}function O1(e){return e===!0?La(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function B1(e){return e===!0?La(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function N1(e,t,r){var n,i,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=kt([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return r?t==="dddd"?(i=Ie.call(this._weekdaysParse,o),i!==-1?i:null):t==="ddd"?(i=Ie.call(this._shortWeekdaysParse,o),i!==-1?i:null):(i=Ie.call(this._minWeekdaysParse,o),i!==-1?i:null):t==="dddd"?(i=Ie.call(this._weekdaysParse,o),i!==-1||(i=Ie.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=Ie.call(this._minWeekdaysParse,o),i!==-1?i:null)):t==="ddd"?(i=Ie.call(this._shortWeekdaysParse,o),i!==-1||(i=Ie.call(this._weekdaysParse,o),i!==-1)?i:(i=Ie.call(this._minWeekdaysParse,o),i!==-1?i:null)):(i=Ie.call(this._minWeekdaysParse,o),i!==-1||(i=Ie.call(this._weekdaysParse,o),i!==-1)?i:(i=Ie.call(this._shortWeekdaysParse,o),i!==-1?i:null))}function I1(e,t,r){var n,i,s;if(this._weekdaysParseExact)return N1.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=kt([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(s="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(s.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function L1(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=E1(e,this.localeData()),this.add(e-t,"d")):t}function F1(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function R1(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=S1(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function H1(e){return this._weekdaysParseExact?(ye(this,"_weekdaysRegex")||Fa.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ye(this,"_weekdaysRegex")||(this._weekdaysRegex=P1),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function U1(e){return this._weekdaysParseExact?(ye(this,"_weekdaysRegex")||Fa.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ye(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=D1),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Y1(e){return this._weekdaysParseExact?(ye(this,"_weekdaysRegex")||Fa.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ye(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=A1),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Fa(){function e(d,c){return c.length-d.length}var t=[],r=[],n=[],i=[],s,o,a,l,u;for(s=0;s<7;s++)o=kt([2e3,1]).day(s),a=at(this.weekdaysMin(o,"")),l=at(this.weekdaysShort(o,"")),u=at(this.weekdays(o,"")),t.push(a),r.push(l),n.push(u),i.push(a),i.push(l),i.push(u);t.sort(e),r.sort(e),n.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Ra(){return this.hours()%12||12}function W1(){return this.hours()||24}te("H",["HH",2],0,"hour");te("h",["hh",2],0,Ra);te("k",["kk",2],0,W1);te("hmm",0,0,function(){return""+Ra.apply(this)+Et(this.minutes(),2)});te("hmmss",0,0,function(){return""+Ra.apply(this)+Et(this.minutes(),2)+Et(this.seconds(),2)});te("Hmm",0,0,function(){return""+this.hours()+Et(this.minutes(),2)});te("Hmmss",0,0,function(){return""+this.hours()+Et(this.minutes(),2)+Et(this.seconds(),2)});function jh(e,t){te(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}jh("a",!0);jh("A",!1);Xe("hour","h");Ke("hour",13);function qh(e,t){return t._meridiemParse}X("a",qh);X("A",qh);X("H",Me);X("h",Me);X("k",Me);X("HH",Me,lt);X("hh",Me,lt);X("kk",Me,lt);X("hmm",Fh);X("hmmss",Rh);X("Hmm",Fh);X("Hmmss",Rh);Se(["H","HH"],Ue);Se(["k","kk"],function(e,t,r){var n=ue(e);t[Ue]=n===24?0:n});Se(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Se(["h","hh"],function(e,t,r){t[Ue]=ue(e),se(r).bigHour=!0});Se("hmm",function(e,t,r){var n=e.length-2;t[Ue]=ue(e.substr(0,n)),t[mt]=ue(e.substr(n)),se(r).bigHour=!0});Se("hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[Ue]=ue(e.substr(0,n)),t[mt]=ue(e.substr(n,2)),t[Nt]=ue(e.substr(i)),se(r).bigHour=!0});Se("Hmm",function(e,t,r){var n=e.length-2;t[Ue]=ue(e.substr(0,n)),t[mt]=ue(e.substr(n))});Se("Hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[Ue]=ue(e.substr(0,n)),t[mt]=ue(e.substr(n,2)),t[Nt]=ue(e.substr(i))});function z1(e){return(e+"").toLowerCase().charAt(0)==="p"}var $1=/[ap]\.?m?\.?/i,V1=en("Hours",!0);function G1(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var Zh={calendar:Iy,longDateFormat:Hy,invalidDate:Yy,ordinal:zy,dayOfMonthOrdinalParse:$y,relativeTime:Gy,months:o1,monthsShort:Hh,week:v1,weekdays:k1,weekdaysMin:T1,weekdaysShort:Gh,meridiemParse:$1},Be={},pn={},Rn;function j1(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function hu(e){return e&&e.toLowerCase().replace("_","-")}function q1(e){for(var t=0,r,n,i,s;t<e.length;){for(s=hu(e[t]).split("-"),r=s.length,n=hu(e[t+1]),n=n?n.split("-"):null;r>0;){if(i=bs(s.slice(0,r).join("-")),i)return i;if(n&&n.length>=r&&j1(s,n)>=r-1)break;r--}t++}return Rn}function Z1(e){return e.match("^[^/\\\\]*$")!=null}function bs(e){var t=null,r;if(Be[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&Z1(e))try{t=Rn._abbr,r=My,r("./locale/"+e),er(t)}catch(n){Be[e]=null}return Be[e]}function er(e,t){var r;return e&&(nt(t)?r=$t(e):r=Ha(e,t),r?Rn=r:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Rn._abbr}function Ha(e,t){if(t!==null){var r,n=Zh;if(t.abbr=e,Be[e]!=null)Mh("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."),n=Be[e]._config;else if(t.parentLocale!=null)if(Be[t.parentLocale]!=null)n=Be[t.parentLocale]._config;else if(r=bs(t.parentLocale),r!=null)n=r._config;else return pn[t.parentLocale]||(pn[t.parentLocale]=[]),pn[t.parentLocale].push({name:e,config:t}),null;return Be[e]=new Ma(Xo(n,t)),pn[e]&&pn[e].forEach(function(i){Ha(i.name,i.config)}),er(e),Be[e]}else return delete Be[e],null}function X1(e,t){if(t!=null){var r,n,i=Zh;Be[e]!=null&&Be[e].parentLocale!=null?Be[e].set(Xo(Be[e]._config,t)):(n=bs(e),n!=null&&(i=n._config),t=Xo(i,t),n==null&&(t.abbr=e),r=new Ma(t),r.parentLocale=Be[e],Be[e]=r),er(e)}else Be[e]!=null&&(Be[e].parentLocale!=null?(Be[e]=Be[e].parentLocale,e===er()&&er(e)):Be[e]!=null&&delete Be[e]);return Be[e]}function $t(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Rn;if(!gt(e)){if(t=bs(e),t)return t;e=[e]}return q1(e)}function K1(){return Ko(Be)}function Ua(e){var t,r=e._a;return r&&se(e).overflow===-2&&(t=r[Bt]<0||r[Bt]>11?Bt:r[xt]<1||r[xt]>gs(r[qe],r[Bt])?xt:r[Ue]<0||r[Ue]>24||r[Ue]===24&&(r[mt]!==0||r[Nt]!==0||r[fr]!==0)?Ue:r[mt]<0||r[mt]>59?mt:r[Nt]<0||r[Nt]>59?Nt:r[fr]<0||r[fr]>999?fr:-1,se(e)._overflowDayOfYear&&(t<qe||t>xt)&&(t=xt),se(e)._overflowWeeks&&t===-1&&(t=n1),se(e)._overflowWeekday&&t===-1&&(t=i1),se(e).overflow=t),e}var J1=/^\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)?)?$/,Q1=/^\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)?)?$/,ew=/Z|[+-]\d\d(?::?\d\d)?/,ci=[["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]],ao=[["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/]],tw=/^\/?Date\((-?\d+)/i,rw=/^(?:(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}))$/,nw={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Xh(e){var t,r,n=e._i,i=J1.exec(n)||Q1.exec(n),s,o,a,l,u=ci.length,d=ao.length;if(i){for(se(e).iso=!0,t=0,r=u;t<r;t++)if(ci[t][1].exec(i[1])){o=ci[t][0],s=ci[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(i[3]){for(t=0,r=d;t<r;t++)if(ao[t][1].exec(i[3])){a=(i[2]||" ")+ao[t][0];break}if(a==null){e._isValid=!1;return}}if(!s&&a!=null){e._isValid=!1;return}if(i[4])if(ew.exec(i[4]))l="Z";else{e._isValid=!1;return}e._f=o+(a||"")+(l||""),Wa(e)}else e._isValid=!1}function iw(e,t,r,n,i,s){var o=[sw(e),Hh.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(i,10)];return s&&o.push(parseInt(s,10)),o}function sw(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ow(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function aw(e,t,r){if(e){var n=Gh.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(n!==i)return se(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function lw(e,t,r){if(e)return nw[e];if(t)return 0;var n=parseInt(r,10),i=n%100,s=(n-i)/100;return s*60+i}function Kh(e){var t=rw.exec(ow(e._i)),r;if(t){if(r=iw(t[4],t[3],t[2],t[5],t[6],t[7]),!aw(t[1],r,e))return;e._a=r,e._tzm=lw(t[8],t[9],t[10]),e._d=Ln.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),se(e).rfc2822=!0}else e._isValid=!1}function uw(e){var t=tw.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Xh(e),e._isValid===!1)delete e._isValid;else return;if(Kh(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:G.createFromInputFallback(e)}G.createFromInputFallback=ht("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Ar(e,t,r){return e!=null?e:t!=null?t:r}function dw(e){var t=new Date(G.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Ya(e){var t,r,n=[],i,s,o;if(!e._d){for(i=dw(e),e._w&&e._a[xt]==null&&e._a[Bt]==null&&cw(e),e._dayOfYear!=null&&(o=Ar(e._a[qe],i[qe]),(e._dayOfYear>xn(o)||e._dayOfYear===0)&&(se(e)._overflowDayOfYear=!0),r=Ln(o,0,e._dayOfYear),e._a[Bt]=r.getUTCMonth(),e._a[xt]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=i[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Ue]===24&&e._a[mt]===0&&e._a[Nt]===0&&e._a[fr]===0&&(e._nextDay=!0,e._a[Ue]=0),e._d=(e._useUTC?Ln:g1).apply(null,n),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ue]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==s&&(se(e).weekdayMismatch=!0)}}function cw(e){var t,r,n,i,s,o,a,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,o=4,r=Ar(t.GG,e._a[qe],Fn(Ae(),1,4).year),n=Ar(t.W,1),i=Ar(t.E,1),(i<1||i>7)&&(l=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,u=Fn(Ae(),s,o),r=Ar(t.gg,e._a[qe],u.year),n=Ar(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+s,(t.e<0||t.e>6)&&(l=!0)):i=s),n<1||n>Rt(r,s,o)?se(e)._overflowWeeks=!0:l!=null?se(e)._overflowWeekday=!0:(a=Vh(r,n,i,s,o),e._a[qe]=a.year,e._dayOfYear=a.dayOfYear)}G.ISO_8601=function(){};G.RFC_2822=function(){};function Wa(e){if(e._f===G.ISO_8601){Xh(e);return}if(e._f===G.RFC_2822){Kh(e);return}e._a=[],se(e).empty=!0;var t=""+e._i,r,n,i,s,o,a=t.length,l=0,u,d;for(i=Oh(e._f,e._locale).match(Oa)||[],d=i.length,r=0;r<d;r++)s=i[r],n=(t.match(e1(s,e))||[])[0],n&&(o=t.substr(0,t.indexOf(n)),o.length>0&&se(e).unusedInput.push(o),t=t.slice(t.indexOf(n)+n.length),l+=n.length),Rr[s]?(n?se(e).empty=!1:se(e).unusedTokens.push(s),r1(s,n,e)):e._strict&&!n&&se(e).unusedTokens.push(s);se(e).charsLeftOver=a-l,t.length>0&&se(e).unusedInput.push(t),e._a[Ue]<=12&&se(e).bigHour===!0&&e._a[Ue]>0&&(se(e).bigHour=void 0),se(e).parsedDateParts=e._a.slice(0),se(e).meridiem=e._meridiem,e._a[Ue]=hw(e._locale,e._a[Ue],e._meridiem),u=se(e).era,u!==null&&(e._a[qe]=e._locale.erasConvertYear(u,e._a[qe])),Ya(e),Ua(e)}function hw(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function fw(e){var t,r,n,i,s,o,a=!1,l=e._f.length;if(l===0){se(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<l;i++)s=0,o=!1,t=Aa({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],Wa(t),Da(t)&&(o=!0),s+=se(t).charsLeftOver,s+=se(t).unusedTokens.length*10,se(t).score=s,a?s<n&&(n=s,r=t):(n==null||s<n||o)&&(n=s,r=t,o&&(a=!0));Xt(e,r||t)}function pw(e){if(!e._d){var t=Ba(e._i),r=t.day===void 0?t.date:t.day;e._a=Dh([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),Ya(e)}}function mw(e){var t=new qn(Ua(Jh(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Jh(e){var t=e._i,r=e._f;return e._locale=e._locale||$t(e._l),t===null||r===void 0&&t===""?ds({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),bt(t)?new qn(Ua(t)):(jn(t)?e._d=t:gt(r)?fw(e):r?Wa(e):_w(e),Da(e)||(e._d=null),e))}function _w(e){var t=e._i;nt(t)?e._d=new Date(G.now()):jn(t)?e._d=new Date(t.valueOf()):typeof t=="string"?uw(e):gt(t)?(e._a=Dh(t.slice(0),function(r){return parseInt(r,10)}),Ya(e)):mr(t)?pw(e):Yt(t)?e._d=new Date(t):G.createFromInputFallback(e)}function Qh(e,t,r,n,i){var s={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(mr(e)&&Pa(e)||gt(e)&&e.length===0)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=r,s._i=e,s._f=t,s._strict=n,mw(s)}function Ae(e,t,r,n){return Qh(e,t,r,n,!1)}var gw=ht("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ae.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:ds()}),bw=ht("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ae.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:ds()});function ef(e,t){var r,n;if(t.length===1&>(t[0])&&(t=t[0]),!t.length)return Ae();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function vw(){var e=[].slice.call(arguments,0);return ef("isBefore",e)}function yw(){var e=[].slice.call(arguments,0);return ef("isAfter",e)}var ww=function(){return Date.now?Date.now():+new Date},mn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Cw(e){var t,r=!1,n,i=mn.length;for(t in e)if(ye(e,t)&&!(Ie.call(mn,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<i;++n)if(e[mn[n]]){if(r)return!1;parseFloat(e[mn[n]])!==ue(e[mn[n]])&&(r=!0)}return!0}function xw(){return this._isValid}function Ew(){return wt(NaN)}function vs(e){var t=Ba(e),r=t.year||0,n=t.quarter||0,i=t.month||0,s=t.week||t.isoWeek||0,o=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=Cw(t),this._milliseconds=+d+u*1e3+l*6e4+a*1e3*60*60,this._days=+o+s*7,this._months=+i+n*3+r*12,this._data={},this._locale=$t(),this._bubble()}function yi(e){return e instanceof vs}function Qo(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Sw(e,t,r){var n=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),s=0,o;for(o=0;o<n;o++)ue(e[o])!==ue(t[o])&&s++;return s+i}function tf(e,t){te(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+Et(~~(r/60),2)+t+Et(~~r%60,2)})}tf("Z",":");tf("ZZ","");X("Z",_s);X("ZZ",_s);Se(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=za(_s,e)});var kw=/([\+\-]|\d\d)/gi;function za(e,t){var r=(t||"").match(e),n,i,s;return r===null?null:(n=r[r.length-1]||[],i=(n+"").match(kw)||["-",0,0],s=+(i[1]*60)+ue(i[2]),s===0?0:i[0]==="+"?s:-s)}function $a(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(bt(e)||jn(e)?e.valueOf():Ae(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),G.updateOffset(r,!1),r):Ae(e).local()}function ea(e){return-Math.round(e._d.getTimezoneOffset())}G.updateOffset=function(){};function Tw(e,t,r){var n=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=za(_s,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(i=ea(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),n!==e&&(!t||this._changeInProgress?sf(this,wt(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,G.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:ea(this)}function Pw(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Dw(e){return this.utcOffset(0,e)}function Aw(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ea(this),"m")),this}function Mw(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=za(Jy,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ow(e){return this.isValid()?(e=e?Ae(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Bw(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Nw(){if(!nt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Aa(e,this),e=Jh(e),e._a?(t=e._isUTC?kt(e._a):Ae(e._a),this._isDSTShifted=this.isValid()&&Sw(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Iw(){return this.isValid()?!this._isUTC:!1}function Lw(){return this.isValid()?this._isUTC:!1}function rf(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Fw=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Rw=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function wt(e,t){var r=e,n=null,i,s,o;return yi(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Yt(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=Fw.exec(e))?(i=n[1]==="-"?-1:1,r={y:0,d:ue(n[xt])*i,h:ue(n[Ue])*i,m:ue(n[mt])*i,s:ue(n[Nt])*i,ms:ue(Qo(n[fr]*1e3))*i}):(n=Rw.exec(e))?(i=n[1]==="-"?-1:1,r={y:ar(n[2],i),M:ar(n[3],i),w:ar(n[4],i),d:ar(n[5],i),h:ar(n[6],i),m:ar(n[7],i),s:ar(n[8],i)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=Hw(Ae(r.from),Ae(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),s=new vs(r),yi(e)&&ye(e,"_locale")&&(s._locale=e._locale),yi(e)&&ye(e,"_isValid")&&(s._isValid=e._isValid),s}wt.fn=vs.prototype;wt.invalid=Ew;function ar(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function fu(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Hw(e,t){var r;return e.isValid()&&t.isValid()?(t=$a(t,e),e.isBefore(t)?r=fu(e,t):(r=fu(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function nf(e,t){return function(r,n){var i,s;return n!==null&&!isNaN(+n)&&(Mh(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=r,r=n,n=s),i=wt(r,n),sf(this,i,e),this}}function sf(e,t,r,n){var i=t._milliseconds,s=Qo(t._days),o=Qo(t._months);e.isValid()&&(n=n==null?!0:n,o&&Yh(e,Ri(e,"Month")+o*r),s&&Nh(e,"Date",Ri(e,"Date")+s*r),i&&e._d.setTime(e._d.valueOf()+i*r),n&&G.updateOffset(e,s||o))}var Uw=nf(1,"add"),Yw=nf(-1,"subtract");function of(e){return typeof e=="string"||e instanceof String}function Ww(e){return bt(e)||jn(e)||of(e)||Yt(e)||$w(e)||zw(e)||e===null||e===void 0}function zw(e){var t=mr(e)&&!Pa(e),r=!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"],i,s,o=n.length;for(i=0;i<o;i+=1)s=n[i],r=r||ye(e,s);return t&&r}function $w(e){var t=gt(e),r=!1;return t&&(r=e.filter(function(n){return!Yt(n)&&of(e)}).length===0),t&&r}function Vw(e){var t=mr(e)&&!Pa(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,s;for(i=0;i<n.length;i+=1)s=n[i],r=r||ye(e,s);return t&&r}function Gw(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function jw(e,t){arguments.length===1&&(arguments[0]?Ww(arguments[0])?(e=arguments[0],t=void 0):Vw(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Ae(),n=$a(r,this).startOf("day"),i=G.calendarFormat(this,n)||"sameElse",s=t&&(Tt(t[i])?t[i].call(this,r):t[i]);return this.format(s||this.localeData().calendar(i,this,Ae(r)))}function qw(){return new qn(this)}function Zw(e,t){var r=bt(e)?e:Ae(e);return this.isValid()&&r.isValid()?(t=ft(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function Xw(e,t){var r=bt(e)?e:Ae(e);return this.isValid()&&r.isValid()?(t=ft(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function Kw(e,t,r,n){var i=bt(e)?e:Ae(e),s=bt(t)?t:Ae(t);return this.isValid()&&i.isValid()&&s.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(i,r):!this.isBefore(i,r))&&(n[1]===")"?this.isBefore(s,r):!this.isAfter(s,r))):!1}function Jw(e,t){var r=bt(e)?e:Ae(e),n;return this.isValid()&&r.isValid()?(t=ft(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function Qw(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function e2(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function t2(e,t,r){var n,i,s;if(!this.isValid())return NaN;if(n=$a(e,this),!n.isValid())return NaN;switch(i=(n.utcOffset()-this.utcOffset())*6e4,t=ft(t),t){case"year":s=wi(this,n)/12;break;case"month":s=wi(this,n);break;case"quarter":s=wi(this,n)/3;break;case"second":s=(this-n)/1e3;break;case"minute":s=(this-n)/6e4;break;case"hour":s=(this-n)/36e5;break;case"day":s=(this-n-i)/864e5;break;case"week":s=(this-n-i)/6048e5;break;default:s=this-n}return r?s:ct(s)}function wi(e,t){if(e.date()<t.date())return-wi(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),i,s;return t-n<0?(i=e.clone().add(r-1,"months"),s=(t-n)/(n-i)):(i=e.clone().add(r+1,"months"),s=(t-n)/(i-n)),-(r+s)||0}G.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";G.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function r2(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function n2(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?vi(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Tt(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",vi(r,"Z")):vi(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function i2(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,i,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(r+n+i+s)}function s2(e){e||(e=this.isUtc()?G.defaultFormatUtc:G.defaultFormat);var t=vi(this,e);return this.localeData().postformat(t)}function o2(e,t){return this.isValid()&&(bt(e)&&e.isValid()||Ae(e).isValid())?wt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function a2(e){return this.from(Ae(),e)}function l2(e,t){return this.isValid()&&(bt(e)&&e.isValid()||Ae(e).isValid())?wt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function u2(e){return this.to(Ae(),e)}function af(e){var t;return e===void 0?this._locale._abbr:(t=$t(e),t!=null&&(this._locale=t),this)}var lf=ht("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function uf(){return this._locale}var Yi=1e3,Hr=60*Yi,Wi=60*Hr,df=(365*400+97)*24*Wi;function Ur(e,t){return(e%t+t)%t}function cf(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-df:new Date(e,t,r).valueOf()}function hf(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-df:Date.UTC(e,t,r)}function d2(e){var t,r;if(e=ft(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?hf:cf,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-=Ur(t+(this._isUTC?0:this.utcOffset()*Hr),Wi);break;case"minute":t=this._d.valueOf(),t-=Ur(t,Hr);break;case"second":t=this._d.valueOf(),t-=Ur(t,Yi);break}return this._d.setTime(t),G.updateOffset(this,!0),this}function c2(e){var t,r;if(e=ft(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?hf:cf,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+=Wi-Ur(t+(this._isUTC?0:this.utcOffset()*Hr),Wi)-1;break;case"minute":t=this._d.valueOf(),t+=Hr-Ur(t,Hr)-1;break;case"second":t=this._d.valueOf(),t+=Yi-Ur(t,Yi)-1;break}return this._d.setTime(t),G.updateOffset(this,!0),this}function h2(){return this._d.valueOf()-(this._offset||0)*6e4}function f2(){return Math.floor(this.valueOf()/1e3)}function p2(){return new Date(this.valueOf())}function m2(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _2(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function g2(){return this.isValid()?this.toISOString():null}function b2(){return Da(this)}function v2(){return Xt({},se(this))}function y2(){return se(this).overflow}function w2(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}te("N",0,0,"eraAbbr");te("NN",0,0,"eraAbbr");te("NNN",0,0,"eraAbbr");te("NNNN",0,0,"eraName");te("NNNNN",0,0,"eraNarrow");te("y",["y",1],"yo","eraYear");te("y",["yy",2],0,"eraYear");te("y",["yyy",3],0,"eraYear");te("y",["yyyy",4],0,"eraYear");X("N",Va);X("NN",Va);X("NNN",Va);X("NNNN",O2);X("NNNNN",B2);Se(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var i=r._locale.erasParse(e,n,r._strict);i?se(r).era=i:se(r).invalidEra=e});X("y",tn);X("yy",tn);X("yyy",tn);X("yyyy",tn);X("yo",N2);Se(["y","yy","yyy","yyyy"],qe);Se(["yo"],function(e,t,r,n){var i;r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[qe]=r._locale.eraYearOrdinalParse(e,i):t[qe]=parseInt(e,10)});function C2(e,t){var r,n,i,s=this._eras||$t("en")._eras;for(r=0,n=s.length;r<n;++r){switch(typeof s[r].since){case"string":i=G(s[r].since).startOf("day"),s[r].since=i.valueOf();break}switch(typeof s[r].until){case"undefined":s[r].until=1/0;break;case"string":i=G(s[r].until).startOf("day").valueOf(),s[r].until=i.valueOf();break}}return s}function x2(e,t,r){var n,i,s=this.eras(),o,a,l;for(e=e.toUpperCase(),n=0,i=s.length;n<i;++n)if(o=s[n].name.toUpperCase(),a=s[n].abbr.toUpperCase(),l=s[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(a===e)return s[n];break;case"NNNN":if(o===e)return s[n];break;case"NNNNN":if(l===e)return s[n];break}else if([o,a,l].indexOf(e)>=0)return s[n]}function E2(e,t){var r=e.since<=e.until?1:-1;return t===void 0?G(e.since).year():G(e.since).year()+(t-e.offset)*r}function S2(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function k2(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function T2(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function P2(){var e,t,r,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=i[e].since<=i[e].until?1:-1,n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return(this.year()-G(i[e].since).year())*r+i[e].offset;return this.year()}function D2(e){return ye(this,"_erasNameRegex")||Ga.call(this),e?this._erasNameRegex:this._erasRegex}function A2(e){return ye(this,"_erasAbbrRegex")||Ga.call(this),e?this._erasAbbrRegex:this._erasRegex}function M2(e){return ye(this,"_erasNarrowRegex")||Ga.call(this),e?this._erasNarrowRegex:this._erasRegex}function Va(e,t){return t.erasAbbrRegex(e)}function O2(e,t){return t.erasNameRegex(e)}function B2(e,t){return t.erasNarrowRegex(e)}function N2(e,t){return t._eraYearOrdinalRegex||tn}function Ga(){var e=[],t=[],r=[],n=[],i,s,o=this.eras();for(i=0,s=o.length;i<s;++i)t.push(at(o[i].name)),e.push(at(o[i].abbr)),r.push(at(o[i].narrow)),n.push(at(o[i].name)),n.push(at(o[i].abbr)),n.push(at(o[i].narrow));this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}te(0,["gg",2],0,function(){return this.weekYear()%100});te(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ys(e,t){te(0,[e,e.length],0,t)}ys("gggg","weekYear");ys("ggggg","weekYear");ys("GGGG","isoWeekYear");ys("GGGGG","isoWeekYear");Xe("weekYear","gg");Xe("isoWeekYear","GG");Ke("weekYear",1);Ke("isoWeekYear",1);X("G",ms);X("g",ms);X("GG",Me,lt);X("gg",Me,lt);X("GGGG",Ia,Na);X("gggg",Ia,Na);X("GGGGG",ps,hs);X("ggggg",ps,hs);Xn(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=ue(e)});Xn(["gg","GG"],function(e,t,r,n){t[n]=G.parseTwoDigitYear(e)});function I2(e){return ff.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function L2(e){return ff.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function F2(){return Rt(this.year(),1,4)}function R2(){return Rt(this.isoWeekYear(),1,4)}function H2(){var e=this.localeData()._week;return Rt(this.year(),e.dow,e.doy)}function U2(){var e=this.localeData()._week;return Rt(this.weekYear(),e.dow,e.doy)}function ff(e,t,r,n,i){var s;return e==null?Fn(this,n,i).year:(s=Rt(e,n,i),t>s&&(t=s),Y2.call(this,e,t,r,n,i))}function Y2(e,t,r,n,i){var s=Vh(e,t,r,n,i),o=Ln(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}te("Q",0,"Qo","quarter");Xe("quarter","Q");Ke("quarter",7);X("Q",Ih);Se("Q",function(e,t){t[Bt]=(ue(e)-1)*3});function W2(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}te("D",["DD",2],"Do","date");Xe("date","D");Ke("date",9);X("D",Me);X("DD",Me,lt);X("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Se(["D","DD"],xt);Se("Do",function(e,t){t[xt]=ue(e.match(Me)[0])});var pf=en("Date",!0);te("DDD",["DDDD",3],"DDDo","dayOfYear");Xe("dayOfYear","DDD");Ke("dayOfYear",4);X("DDD",fs);X("DDDD",Lh);Se(["DDD","DDDD"],function(e,t,r){r._dayOfYear=ue(e)});function z2(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}te("m",["mm",2],0,"minute");Xe("minute","m");Ke("minute",14);X("m",Me);X("mm",Me,lt);Se(["m","mm"],mt);var $2=en("Minutes",!1);te("s",["ss",2],0,"second");Xe("second","s");Ke("second",15);X("s",Me);X("ss",Me,lt);Se(["s","ss"],Nt);var V2=en("Seconds",!1);te("S",0,0,function(){return~~(this.millisecond()/100)});te(0,["SS",2],0,function(){return~~(this.millisecond()/10)});te(0,["SSS",3],0,"millisecond");te(0,["SSSS",4],0,function(){return this.millisecond()*10});te(0,["SSSSS",5],0,function(){return this.millisecond()*100});te(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});te(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});te(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});te(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Xe("millisecond","ms");Ke("millisecond",16);X("S",fs,Ih);X("SS",fs,lt);X("SSS",fs,Lh);var Kt,mf;for(Kt="SSSS";Kt.length<=9;Kt+="S")X(Kt,tn);function G2(e,t){t[fr]=ue(("0."+e)*1e3)}for(Kt="S";Kt.length<=9;Kt+="S")Se(Kt,G2);mf=en("Milliseconds",!1);te("z",0,0,"zoneAbbr");te("zz",0,0,"zoneName");function j2(){return this._isUTC?"UTC":""}function q2(){return this._isUTC?"Coordinated Universal Time":""}var R=qn.prototype;R.add=Uw;R.calendar=jw;R.clone=qw;R.diff=t2;R.endOf=c2;R.format=s2;R.from=o2;R.fromNow=a2;R.to=l2;R.toNow=u2;R.get=Xy;R.invalidAt=y2;R.isAfter=Zw;R.isBefore=Xw;R.isBetween=Kw;R.isSame=Jw;R.isSameOrAfter=Qw;R.isSameOrBefore=e2;R.isValid=b2;R.lang=lf;R.locale=af;R.localeData=uf;R.max=bw;R.min=gw;R.parsingFlags=v2;R.set=Ky;R.startOf=d2;R.subtract=Yw;R.toArray=m2;R.toObject=_2;R.toDate=p2;R.toISOString=n2;R.inspect=i2;typeof Symbol!="undefined"&&Symbol.for!=null&&(R[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});R.toJSON=g2;R.toString=r2;R.unix=f2;R.valueOf=h2;R.creationData=w2;R.eraName=S2;R.eraNarrow=k2;R.eraAbbr=T2;R.eraYear=P2;R.year=$h;R.isLeapYear=_1;R.weekYear=I2;R.isoWeekYear=L2;R.quarter=R.quarters=W2;R.month=Wh;R.daysInMonth=f1;R.week=R.weeks=C1;R.isoWeek=R.isoWeeks=x1;R.weeksInYear=H2;R.weeksInWeekYear=U2;R.isoWeeksInYear=F2;R.isoWeeksInISOWeekYear=R2;R.date=pf;R.day=R.days=L1;R.weekday=F1;R.isoWeekday=R1;R.dayOfYear=z2;R.hour=R.hours=V1;R.minute=R.minutes=$2;R.second=R.seconds=V2;R.millisecond=R.milliseconds=mf;R.utcOffset=Tw;R.utc=Dw;R.local=Aw;R.parseZone=Mw;R.hasAlignedHourOffset=Ow;R.isDST=Bw;R.isLocal=Iw;R.isUtcOffset=Lw;R.isUtc=rf;R.isUTC=rf;R.zoneAbbr=j2;R.zoneName=q2;R.dates=ht("dates accessor is deprecated. Use date instead.",pf);R.months=ht("months accessor is deprecated. Use month instead",Wh);R.years=ht("years accessor is deprecated. Use year instead",$h);R.zone=ht("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Pw);R.isDSTShifted=ht("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Nw);function Z2(e){return Ae(e*1e3)}function X2(){return Ae.apply(null,arguments).parseZone()}function _f(e){return e}var we=Ma.prototype;we.calendar=Ly;we.longDateFormat=Uy;we.invalidDate=Wy;we.ordinal=Vy;we.preparse=_f;we.postformat=_f;we.relativeTime=jy;we.pastFuture=qy;we.set=Ny;we.eras=C2;we.erasParse=x2;we.erasConvertYear=E2;we.erasAbbrRegex=A2;we.erasNameRegex=D2;we.erasNarrowRegex=M2;we.months=u1;we.monthsShort=d1;we.monthsParse=h1;we.monthsRegex=m1;we.monthsShortRegex=p1;we.week=b1;we.firstDayOfYear=w1;we.firstDayOfWeek=y1;we.weekdays=M1;we.weekdaysMin=B1;we.weekdaysShort=O1;we.weekdaysParse=I1;we.weekdaysRegex=H1;we.weekdaysShortRegex=U1;we.weekdaysMinRegex=Y1;we.isPM=z1;we.meridiem=G1;function zi(e,t,r,n){var i=$t(),s=kt().set(n,t);return i[r](s,e)}function gf(e,t,r){if(Yt(e)&&(t=e,e=void 0),e=e||"",t!=null)return zi(e,t,r,"month");var n,i=[];for(n=0;n<12;n++)i[n]=zi(e,n,r,"month");return i}function ja(e,t,r,n){typeof e=="boolean"?(Yt(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Yt(t)&&(r=t,t=void 0),t=t||"");var i=$t(),s=e?i._week.dow:0,o,a=[];if(r!=null)return zi(t,(r+s)%7,n,"day");for(o=0;o<7;o++)a[o]=zi(t,(o+s)%7,n,"day");return a}function K2(e,t){return gf(e,t,"months")}function J2(e,t){return gf(e,t,"monthsShort")}function Q2(e,t,r){return ja(e,t,r,"weekdays")}function eC(e,t,r){return ja(e,t,r,"weekdaysShort")}function tC(e,t,r){return ja(e,t,r,"weekdaysMin")}er("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=ue(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});G.lang=ht("moment.lang is deprecated. Use moment.locale instead.",er);G.langData=ht("moment.langData is deprecated. Use moment.localeData instead.",$t);var Dt=Math.abs;function rC(){var e=this._data;return this._milliseconds=Dt(this._milliseconds),this._days=Dt(this._days),this._months=Dt(this._months),e.milliseconds=Dt(e.milliseconds),e.seconds=Dt(e.seconds),e.minutes=Dt(e.minutes),e.hours=Dt(e.hours),e.months=Dt(e.months),e.years=Dt(e.years),this}function bf(e,t,r,n){var i=wt(t,r);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function nC(e,t){return bf(this,e,t,1)}function iC(e,t){return bf(this,e,t,-1)}function pu(e){return e<0?Math.floor(e):Math.ceil(e)}function sC(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,i,s,o,a,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=pu(ta(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,i=ct(e/1e3),n.seconds=i%60,s=ct(i/60),n.minutes=s%60,o=ct(s/60),n.hours=o%24,t+=ct(o/24),l=ct(vf(t)),r+=l,t-=pu(ta(l)),a=ct(r/12),r%=12,n.days=t,n.months=r,n.years=a,this}function vf(e){return e*4800/146097}function ta(e){return e*146097/4800}function oC(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=ft(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+vf(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(ta(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function aC(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ue(this._months/12)*31536e6:NaN}function Vt(e){return function(){return this.as(e)}}var lC=Vt("ms"),uC=Vt("s"),dC=Vt("m"),cC=Vt("h"),hC=Vt("d"),fC=Vt("w"),pC=Vt("M"),mC=Vt("Q"),_C=Vt("y");function gC(){return wt(this)}function bC(e){return e=ft(e),this.isValid()?this[e+"s"]():NaN}function wr(e){return function(){return this.isValid()?this._data[e]:NaN}}var vC=wr("milliseconds"),yC=wr("seconds"),wC=wr("minutes"),CC=wr("hours"),xC=wr("days"),EC=wr("months"),SC=wr("years");function kC(){return ct(this.days()/7)}var Ot=Math.round,Mr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function TC(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}function PC(e,t,r,n){var i=wt(e).abs(),s=Ot(i.as("s")),o=Ot(i.as("m")),a=Ot(i.as("h")),l=Ot(i.as("d")),u=Ot(i.as("M")),d=Ot(i.as("w")),c=Ot(i.as("y")),h=s<=r.ss&&["s",s]||s<r.s&&["ss",s]||o<=1&&["m"]||o<r.m&&["mm",o]||a<=1&&["h"]||a<r.h&&["hh",a]||l<=1&&["d"]||l<r.d&&["dd",l];return r.w!=null&&(h=h||d<=1&&["w"]||d<r.w&&["ww",d]),h=h||u<=1&&["M"]||u<r.M&&["MM",u]||c<=1&&["y"]||["yy",c],h[2]=t,h[3]=+e>0,h[4]=n,TC.apply(null,h)}function DC(e){return e===void 0?Ot:typeof e=="function"?(Ot=e,!0):!1}function AC(e,t){return Mr[e]===void 0?!1:t===void 0?Mr[e]:(Mr[e]=t,e==="s"&&(Mr.ss=t-1),!0)}function MC(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Mr,i,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},Mr,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),i=this.localeData(),s=PC(this,!r,n,i),r&&(s=i.pastFuture(+this,s)),i.postformat(s)}var lo=Math.abs;function Tr(e){return(e>0)-(e<0)||+e}function ws(){if(!this.isValid())return this.localeData().invalidDate();var e=lo(this._milliseconds)/1e3,t=lo(this._days),r=lo(this._months),n,i,s,o,a=this.asSeconds(),l,u,d,c;return a?(n=ct(e/60),i=ct(n/60),e%=60,n%=60,s=ct(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",u=Tr(this._months)!==Tr(a)?"-":"",d=Tr(this._days)!==Tr(a)?"-":"",c=Tr(this._milliseconds)!==Tr(a)?"-":"",l+"P"+(s?u+s+"Y":"")+(r?u+r+"M":"")+(t?d+t+"D":"")+(i||n||e?"T":"")+(i?c+i+"H":"")+(n?c+n+"M":"")+(e?c+o+"S":"")):"P0D"}var pe=vs.prototype;pe.isValid=xw;pe.abs=rC;pe.add=nC;pe.subtract=iC;pe.as=oC;pe.asMilliseconds=lC;pe.asSeconds=uC;pe.asMinutes=dC;pe.asHours=cC;pe.asDays=hC;pe.asWeeks=fC;pe.asMonths=pC;pe.asQuarters=mC;pe.asYears=_C;pe.valueOf=aC;pe._bubble=sC;pe.clone=gC;pe.get=bC;pe.milliseconds=vC;pe.seconds=yC;pe.minutes=wC;pe.hours=CC;pe.days=xC;pe.weeks=kC;pe.months=EC;pe.years=SC;pe.humanize=MC;pe.toISOString=ws;pe.toString=ws;pe.toJSON=ws;pe.locale=af;pe.localeData=uf;pe.toIsoString=ht("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ws);pe.lang=lf;te("X",0,0,"unix");te("x",0,0,"valueOf");X("x",ms);X("X",Qy);Se("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});Se("x",function(e,t,r){r._d=new Date(ue(e))});//! moment.js
|
|
3581
|
+
G.version="2.29.4";Oy(Ae);G.fn=R;G.min=vw;G.max=yw;G.now=ww;G.utc=kt;G.unix=Z2;G.months=K2;G.isDate=jn;G.locale=er;G.invalid=ds;G.duration=wt;G.isMoment=bt;G.weekdays=Q2;G.parseZone=X2;G.localeData=$t;G.isDuration=yi;G.monthsShort=J2;G.weekdaysMin=tC;G.defineLocale=Ha;G.updateLocale=X1;G.locales=K1;G.weekdaysShort=eC;G.normalizeUnits=ft;G.relativeTimeRounding=DC;G.relativeTimeThreshold=AC;G.calendarFormat=Gw;G.prototype=R;G.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function OC(e){$i(e,"svelte-dy0ryb",":host{font-family:inherit}.CircularProgress{height:100%;position:relative;width:100%}.CircularProgressLineBg{stroke:var(--emw--bonus-progress-primary, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressLine{stroke:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF));transition:0.35s stroke-dashoffset;transform:rotate(-90deg);transform-origin:50% 50%;fill:transparent}.CircularProgressLine.Completed{stroke:var(--emw--bonus-progress-bg, var(--emw--color-gray-300, #A9A9A9))}.CircularProgressCenter{fill:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF))}.CircularProgressCenter.Completed{fill:var(--emw--bonus-progress-bg, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressText{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);color:var(--emw--bonus-progress-text, var(--emw--color-white, #FFFFFF))}")}function BC(e){let t,r,n;return{c(){t=x("span"),r=O(e[0]),n=O(" %"),m(t,"class","CircularProgressText"),m(t,"part","CircularProgressText")},m(i,s){B(i,t,s),p(t,r),p(t,n)},p(i,s){s&1&&xe(r,i[0])},d(i){i&&M(t)}}}function NC(e){let t,r,n,i,s,o,a,l,u;const d=e[10].default,c=Yn(d,e,e[9],null),h=c||BC(e);return{c(){t=x("div"),r=ee("svg"),n=ee("circle"),i=ee("circle"),o=ee("circle"),a=$(),l=x("div"),h&&h.c(),m(n,"class","CircularProgressLineBg"),m(n,"cx","73.5"),m(n,"cy","73.5"),m(n,"r","64.5"),m(n,"fill","transparent"),m(n,"stroke-width","18"),m(i,"class","CircularProgressLine"),m(i,"cx","73.5"),m(i,"cy","73.5"),m(i,"r","64.5"),m(i,"stroke-width","18"),m(i,"stroke-dasharray",e[5]),m(i,"stroke-dashoffset",s=e[4]()),oe(i,"Completed",e[1]==="completed"),m(o,"class","CircularProgressCenter"),m(o,"cx","73"),m(o,"cy","73.5"),m(o,"r","50.5"),oe(o,"Completed",e[1]==="completed"),m(r,"viewBox","0 0 147 147"),m(t,"class","CircularProgress"),m(t,"part","CircularProgress")},m(f,g){B(f,t,g),p(t,r),p(r,n),p(r,i),e[11](i),p(r,o),p(t,a),p(t,l),h&&h.m(l,null),e[12](t),u=!0},p(f,[g]){(!u||g&16&&s!==(s=f[4]()))&&m(i,"stroke-dashoffset",s),(!u||g&2)&&oe(i,"Completed",f[1]==="completed"),(!u||g&2)&&oe(o,"Completed",f[1]==="completed"),c?c.p&&(!u||g&512)&&zn(c,d,f,f[9],u?Wn(d,f[9],g,null):$n(f[9]),null):h&&h.p&&(!u||g&1)&&h.p(f,u?g:-1)},i(f){u||(_t(h,f),u=!0)},o(f){Ht(h,f),u=!1},d(f){f&&M(t),e[11](null),h&&h.d(f),e[12](null)}}}let mu=64.5;function IC(e,t,r){let n,{$$slots:i={},$$scope:s}=t,{value:o=0}=t,{status:a=""}=t,{mbsource:l}=t,{clientstyling:u=""}=t,{clientstylingurl:d=""}=t,c,h=Math.PI*(mu*2),f;Vi(()=>()=>{});function g(v){It[v?"unshift":"push"](()=>{c=v,r(3,c)})}function b(v){It[v?"unshift":"push"](()=>{f=v,r(2,f)})}return e.$$set=v=>{"value"in v&&r(0,o=v.value),"status"in v&&r(1,a=v.status),"mbsource"in v&&r(6,l=v.mbsource),"clientstyling"in v&&r(7,u=v.clientstyling),"clientstylingurl"in v&&r(8,d=v.clientstylingurl),"$$scope"in v&&r(9,s=v.$$scope)},e.$$.update=()=>{e.$$.dirty&132&&u&&f&&es(f,u),e.$$.dirty&260&&d&&f&&ts(f,d),e.$$.dirty&68&&l&&f&&rs(f,`${l}.Style`),e.$$.dirty&1&&r(4,n=()=>{var v=Math.PI*(mu*2);return o<0&&r(0,o=0),o>100&&r(0,o=100),(100-o)/100*v})},[o,a,f,c,n,h,l,u,d,s,i,g,b]}class LC extends qi{constructor(t){super(),Gi(this,t,IC,NC,Un,{value:0,status:1,mbsource:6,clientstyling:7,clientstylingurl:8},OC)}get value(){return this.$$.ctx[0]}set value(t){this.$$set({value:t}),_e()}get status(){return this.$$.ctx[1]}set status(t){this.$$set({status:t}),_e()}get mbsource(){return this.$$.ctx[6]}set mbsource(t){this.$$set({mbsource:t}),_e()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),_e()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),_e()}}customElements.define("casino-bonus-progress",ji(LC,{value:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0));const _u=e=>FC[e],FC={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"};function RC(e){$i(e,"svelte-eovzfn",":host{font-family:inherit}.BonusCard{background-color:#F4F4F4;padding:10px 20px 20px;border-radius:5px;font-size:18px;font-weight:500;color:var(--emw--bonus-card-text, var(--emw--color-gray-300, #6D6D6D))}.BonusCardHeader{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #D1D1D1}.BonusCardHeader:nth-child(even){background-color:var(--emw--bonus-card-bg, var(--emw--color-gray-50, #F9F8F8))}.BonusCardRow{display:flex;padding:11px 0;margin:0;align-items:center}.BonusCardLabel{flex:3}.BonusCardRowTitle{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));font-weight:700;font-size:18px;display:flex;align-items:center;text-indent:10px}.BonusCardRowTitle span{font-weight:400;color:var(--emw--bonus-card-span, var(--emw--color-primary, #00AEEF))}.BonusCardTitleSub{display:flex;font-size:16px;text-indent:10px;align-items:center;font-weight:400}.BonusCardRowText{flex:2;color:#9C9C9C;text-transform:capitalize}.BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emw--bonus-card-title, var(--emw--color-black, #000000))}.BonusCardRowText.StatusActive{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardRowText.Type{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText.StatusExpired{color:var(--emw--bonus-card-red, var(--emw--color-red, #FD2839))}.BonusCardRowText.StatusCompleted{color:var(--emw--bonus-card-yellow, var(--emw--color-yellow, #F39C12))}.BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRowText .BonusAmount{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText .Amount{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardAction{margin:20px 0 0;padding:10px 5px 0 0;display:flex;justify-content:end}.BonusCardAdditional,.BonusCardTerms{border:1px solid var(--emw--bonus-card-border, var(--emw--color-gray-100, #E6E6E6));background:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));padding:12px;border-radius:4px;position:relative;margin-top:10px;font-size:16px;transition:height 0.3s ease;will-change:height}.BonusCardAdditional.active,.BonusCardTerms.active{transition:height 0.3s ease}.BonusCardAdditionalTitle,.BonusCardTermsTitle{display:flex;align-items:center;text-indent:10px}.BonusCardAdditionalButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsLink{display:flex;align-items:center;color:#000;text-indent:10px;cursor:pointer}.BonusCardJoinError{color:var(--emw--bonus-card-red, var(--emw--color-red, #FF0000));align-self:center}.BonusCardJoinCountdown{display:flex;align-items:center;text-indent:10px;font-size:16px;font-weight:400}.BonusCardJoinWrapper{display:flex;gap:30px}.BonusJoinButton{background:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A));outline:5px solid var(--emw--bonus-card-green, var(--emw--color-green, rgba(83, 182, 90, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF))}.BonusJoinButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusJoinButton.ClaimBonusButtonMobile{width:100%}.BonusJoinButton:hover{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline:0}.BonusJoinButton:active{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline-color:rgba(83, 182, 90, 0.6)}.BonusForfeitButton{background:var(--emw--bonus-card-red, var(--emw--color-red, #F32013));outline:5px solid var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--color-white, #FFFFFF)}.BonusForfeitButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusForfeitButton.ClaimBonusButtonMobile{width:100%}.BonusForfeitButton:hover{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline:0}.BonusForfeitButton:active{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline-color:var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.6)))}.BonusCardActionCountdown{margin-bottom:5px}.BonusCardData{display:flex}.BonusCardDataContent{flex:3;height:260px}.BonusCardFooter{height:100px}.BonusCardFooter.Active{height:auto}.BonusCardProgress{flex:1;max-width:147px;--progress-track-color:var(--emw--bonus-card-blue,var(--emw--color-blue, #00AEEF))}.BonusCardProgress .CircularProgress{display:flex;margin:15px;position:relative}.BonusCardProgress .CircularProgressText{text-align:center}.BonusActionWagering{display:flex;height:100px}.BonusWageringInfo{flex:60%}.BonusWageringButton{flex:40%}.TitleIcon{display:flex;max-width:83px;min-width:43px;height:41px}.CasinoIcon,.SportsIcon{fill:none}.BonusGamesSlider{display:flex}.SliderNavButton{border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.SliderNavButton.Hide{display:none}.Main{max-width:300px;overflow:hidden}.Games{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.Game{min-width:100px;height:75px;margin:0;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--bonus-card-green, var(--emw--color-green, #48952a));display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ItemHover{opacity:1}@media only screen and (max-width: 728px){.BonusCard{font-size:12px}.BonusCardRowTitle{font-size:14px}.BonusCardTitleSub{font-size:12px}.BonusCardAction,.BonusCardActionContent,.BonusForfeitButton,.BonusJoinButton{width:100%}.BonusCardAction{margin-top:10px}.TitleIcon{max-width:60px;min-width:30px;height:30px}.BonusCardAdditional,.BonusCardTerms{font-size:14px}.BonusCardProgress .CircularProgress{margin:10px 0}.BonusCardFooter{height:auto}.BonusCardDataContent{height:auto}.BonusCardJoinWrapper{flex-direction:column;gap:15px}.BonusCardJoinCountdown{font-size:12px}}")}function gu(e,t,r){const n=e.slice();return n[76]=t[r],n[78]=r,n}function bu(e,t,r){const n=e.slice();return n[79]=t[r],n}function vu(e,t,r){const n=e.slice();return n[70]=t[r],n}function yu(e,t,r){const n=e.slice();return n[73]=t[r],n}function wu(e,t,r){const n=e.slice();return n[82]=t[r],n[84]=r,n}function Cu(e){var ce;let t,r,n,i,s,o=e[32](e[4]).indexOf("Casino")>-1,a,l=e[32](e[4]).indexOf("Sports")>-1,u,d=(e[4].name||((ce=e[4].presentation)==null?void 0:ce.name.content))+"",c,h,f,g,b,v,y,_=o&&xu(e),E=l&&Eu(e),w=[e[35]("TitleIcon")],A={};for(let I=0;I<w.length;I+=1)A=D(A,w[I]);let C=[e[35]("BonusCardRowTitle")],L={};for(let I=0;I<C.length;I+=1)L=D(L,C[I]);function q(I,H){if(I[0]==="active")return UC;if(I[0]==="completed")return HC}let K=q(e),Y=K&&K(e),k=[e[35]("BonusCardHeader")],N={};for(let I=0;I<k.length;I+=1)N=D(N,k[I]);let re=YC(e),J=e[9]&&Lu(e);function F(I,H){return I[13]?ux:lx}let V=F(e),W=V(e),z=[e[35]("BonusCardFooter")],ae={};for(let I=0;I<z.length;I+=1)ae=D(ae,z[I]);let Ce=[e[35]("BonusCardInfo")],Te={};for(let I=0;I<Ce.length;I+=1)Te=D(Te,Ce[I]);let ie=e[8]&&$u(e),me=[e[35]("BonusCard")],le={};for(let I=0;I<me.length;I+=1)le=D(le,me[I]);return{c(){t=x("div"),r=x("div"),n=x("div"),i=x("p"),s=x("span"),_&&_.c(),a=$(),E&&E.c(),u=$(),c=O(d),h=$(),Y&&Y.c(),f=$(),re&&re.c(),g=$(),b=x("div"),J&&J.c(),v=$(),W.c(),y=$(),ie&&ie.c(),S(s,A),S(i,L),S(n,N),S(b,ae),oe(b,"Active",e[10]||e[11]),S(r,Te),S(t,le)},m(I,H){B(I,t,H),p(t,r),p(r,n),p(n,i),p(i,s),_&&_.m(s,null),p(s,a),E&&E.m(s,null),p(i,u),p(i,c),p(n,h),Y&&Y.m(n,null),p(r,f),re&&re.m(r,null),p(r,g),p(r,b),J&&J.m(b,null),p(b,v),W.m(b,null),p(t,y),ie&&ie.m(t,null),e[53](t)},p(I,H){var P;H[0]&16&&(o=I[32](I[4]).indexOf("Casino")>-1),o?_?_.p(I,H):(_=xu(I),_.c(),_.m(s,a)):_&&(_.d(1),_=null),H[0]&16&&(l=I[32](I[4]).indexOf("Sports")>-1),l?E?E.p(I,H):(E=Eu(I),E.c(),E.m(s,null)):E&&(E.d(1),E=null),H[0]&16&&d!==(d=(I[4].name||((P=I[4].presentation)==null?void 0:P.name.content))+"")&&ne(c,d,L.contenteditable),K===(K=q(I))&&Y?Y.p(I,H):(Y&&Y.d(1),Y=K&&K(I),Y&&(Y.c(),Y.m(n,null))),re.p(I,H),I[9]?J?J.p(I,H):(J=Lu(I),J.c(),J.m(b,v)):J&&(J.d(1),J=null),V===(V=F(I))&&W?W.p(I,H):(W.d(1),W=V(I),W&&(W.c(),W.m(b,null))),H[0]&3072&&oe(b,"Active",I[10]||I[11]),I[8]?ie?ie.p(I,H):(ie=$u(I),ie.c(),ie.m(t,null)):ie&&(ie.d(1),ie=null)},d(I){I&&M(t),_&&_.d(),E&&E.d(),Y&&Y.d(),re&&re.d(),J&&J.d(),W.d(),ie&&ie.d(),e[53](null)}}}function xu(e){let t,r,n,i,s,o,a,l,u,d,c,h,f,g=[e[35]("CasinoIcon"),{viewBox:"0 0 41 41"}],b={};for(let v=0;v<g.length;v+=1)b=D(b,g[v]);return{c(){t=ee("svg"),r=ee("path"),n=ee("path"),i=ee("path"),s=ee("path"),o=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=ee("path"),c=ee("path"),h=ee("circle"),f=ee("circle"),m(r,"d","M21.2942 0V5.23421C24.916 5.42484 28.1964 6.86246 30.7301 9.14994L34.4393 5.44072C30.9525 2.22394 26.3616 0.190624 21.2942 0Z"),m(r,"fill","black"),m(n,"d","M30.7301 31.8501C28.2043 34.1296 24.916 35.5752 21.2942 35.7658V41C26.3616 40.8094 30.9525 38.7761 34.4313 35.5593L30.7221 31.8501H30.7301Z"),m(n,"fill","black"),m(i,"d","M35.7658 21.2943C35.5752 24.9162 34.1376 28.1965 31.8501 30.7302L35.5593 34.4394C38.7761 30.9605 40.8094 26.3697 41 21.3023H35.7658V21.2943Z"),m(i,"fill","black"),m(s,"d","M19.7056 35.7658C16.0838 35.5752 12.8035 34.1376 10.2698 31.8501L6.56055 35.5593C10.0394 38.7761 14.6382 40.8094 19.6977 41V35.7658H19.7056Z"),m(s,"fill","black"),m(o,"d","M31.8501 10.2698C34.1296 12.7955 35.5752 16.0838 35.7658 19.7056H41C40.8094 14.6382 38.7761 10.0474 35.5593 6.56848L31.8501 10.2777V10.2698Z"),m(o,"fill","black"),m(a,"d","M19.7058 0C14.6383 0.190624 10.0395 2.22394 6.5686 5.44072L10.2778 9.14994C12.8036 6.8704 16.0918 5.42484 19.7137 5.23421V0H19.7058Z"),m(a,"fill","black"),m(l,"d","M9.14994 30.7302C6.8704 28.2044 5.42484 24.9162 5.23421 21.2943H0C0.190624 26.3617 2.22394 30.9526 5.44072 34.4315L9.14994 30.7222V30.7302Z"),m(l,"fill","black"),m(u,"d","M5.23421 19.7058C5.42484 16.0839 6.86246 12.8036 9.14994 10.2699L5.44072 6.56067C2.22394 10.0475 0.190624 14.6384 0 19.7058H5.23421Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M20.5 31.825C26.7547 31.825 31.825 26.7547 31.825 20.5C31.825 14.2454 26.7547 9.17505 20.5 9.17505C14.2454 9.17505 9.17505 14.2454 9.17505 20.5C9.17505 26.7547 14.2454 31.825 20.5 31.825ZM20.5 33.825C27.8592 33.825 33.825 27.8592 33.825 20.5C33.825 13.1409 27.8592 7.17505 20.5 7.17505C13.1409 7.17505 7.17505 13.1409 7.17505 20.5C7.17505 27.8592 13.1409 33.825 20.5 33.825Z"),m(d,"fill","black"),m(c,"d","M21.6173 27.6413V28.7H19.3741V27.6413C17.3997 27.3092 16.3999 26.0428 16.3999 24.0707V23.0742H18.996V24.216C18.996 25.254 19.5421 25.6276 20.4159 25.6276C21.2897 25.6276 21.8358 25.254 21.8358 24.216C21.8442 21.2266 16.4755 21.0813 16.4755 16.9294C16.4755 14.978 17.4501 13.7325 19.3741 13.3795V12.3H21.6173V13.3795C23.5665 13.7117 24.5663 14.9573 24.5663 16.9294V17.3861H21.9702V16.7841C21.9702 15.7461 21.4745 15.3517 20.6007 15.3517C19.727 15.3517 19.2313 15.7461 19.2313 16.7841C19.2313 19.7735 24.5999 19.9188 24.5999 24.0707C24.5999 26.0428 23.5749 27.3092 21.6257 27.6413H21.6173Z"),m(c,"fill","black"),m(h,"cx","28.1874"),m(h,"cy","21.0125"),m(h,"r","1.5375"),m(h,"fill","black"),m(f,"cx","12.8124"),m(f,"cy","21.0125"),m(f,"r","1.5375"),m(f,"fill","black"),bd(t,b)},m(v,y){B(v,t,y),p(t,r),p(t,n),p(t,i),p(t,s),p(t,o),p(t,a),p(t,l),p(t,u),p(t,d),p(t,c),p(t,h),p(t,f)},p:Pe,d(v){v&&M(t)}}}function Eu(e){let t,r,n,i,s,o,a=[e[35]("SportsIcon"),{viewBox:"0 0 43 40"}],l={};for(let u=0;u<a.length;u+=1)l=D(l,a[u]);return{c(){t=ee("svg"),r=ee("path"),n=ee("path"),i=ee("path"),s=ee("path"),o=ee("path"),m(r,"d","M23 0C11.9555 0 3 8.95539 3 20C3 31.0446 11.9555 40 23 40C34.0454 40 43 31.0444 43 20C43 8.95558 34.0452 0 23 0ZM26.9568 37.9018C25.6574 38.1573 24.0408 38.3044 22.7261 38.3297C21.4806 38.3119 20.2402 38.1672 19.0241 37.8977C18.8058 37.8415 18.5877 37.7846 18.3698 37.7268L16.022 31.435L17.911 27.6923H28.0892L28.144 27.7958L30.0037 31.5315L27.7327 37.7125C27.4755 37.7813 27.2168 37.8444 26.9568 37.9018ZM16.6133 2.81538L22.1346 6.59385V12.1849L15.308 17.9606L10.5577 15.7962L10.157 15.6136L8.00971 9.45788C10.126 6.4575 13.1191 4.11827 16.6133 2.81538ZM37.9581 9.42952L35.8012 15.6298L30.6096 17.9748L23.7692 12.1849V6.59385L29.3073 2.80394C32.8037 4.10039 35.8366 6.43394 37.9581 9.42952ZM4.74462 21.6744L9.91346 17.2015L14.6768 19.3745L14.7306 19.399L16.6265 26.8305L14.6618 30.5352L7.94452 30.4472C6.18029 27.9126 5.03933 24.9139 4.74462 21.6744ZM31.3384 30.5351L29.3736 26.8304L31.2728 19.3865L36.0802 17.1961L41.2554 21.6744C40.9607 24.9139 39.8196 27.9126 38.0557 30.4471L31.3384 30.5351Z"),m(r,"fill","black"),m(n,"fill-rule","evenodd"),m(n,"clip-rule","evenodd"),m(n,"d","M23 39C23 39.5523 22.5523 40 22 40L6 40C5.44772 40 5 39.5523 5 39C5 38.4477 5.44772 38 6 38L22 38C22.5523 38 23 38.4477 23 39Z"),m(n,"fill","black"),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M9 36C9 36.5523 8.55228 37 8 37L1 37C0.447715 37 -3.91405e-08 36.5523 -8.74228e-08 36C-1.35705e-07 35.4477 0.447715 35 1 35L8 35C8.55228 35 9 35.4477 9 36Z"),m(i,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M3 39C3 39.5523 2.55228 40 2 40L1 40C0.447715 40 3.91405e-08 39.5523 8.74228e-08 39C1.35705e-07 38.4477 0.447715 38 1 38L2 38C2.55228 38 3 38.4477 3 39Z"),m(s,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M23 38C32.9411 38 41 29.9411 41 20C41 10.0589 32.9411 2 23 2C13.0589 2 5 10.0589 5 20C5 29.9411 13.0589 38 23 38ZM23 40C34.0457 40 43 31.0457 43 20C43 8.9543 34.0457 0 23 0C11.9543 0 3 8.9543 3 20C3 31.0457 11.9543 40 23 40Z"),m(o,"fill","black"),bd(t,l)},m(u,d){B(u,t,d),p(t,r),p(t,n),p(t,i),p(t,s),p(t,o)},p:Pe,d(u){u&&M(t)}}}function HC(e){let t,r=e[24](`bonusCard.${e[4].status}`)+"",n,i=[e[35]("BonusCardTitleSub")],s={};for(let o=0;o<i.length;o+=1)s=D(s,i[o]);return{c(){t=x("p"),n=O(r),S(t,s)},m(o,a){B(o,t,a),p(t,n)},p(o,a){a[0]&16777232&&r!==(r=o[24](`bonusCard.${o[4].status}`)+"")&&ne(n,r,s.contenteditable)},d(o){o&&M(t)}}}function UC(e){let t,r,n,i,s,o=[e[35]("BonusCardTitleSub")],a={};for(let l=0;l<o.length;l+=1)a=D(a,o[l]);return{c(){t=x("span"),r=ee("svg"),n=ee("path"),i=$(),s=O(e[17]),m(n,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(n,"fill","#6D6D6D"),m(r,"width","24"),m(r,"height","28"),m(r,"viewBox","0 0 24 28"),m(r,"fill","none"),m(r,"xmlns","http://www.w3.org/2000/svg"),S(t,a)},m(l,u){B(l,t,u),p(t,r),p(r,n),p(t,i),p(t,s)},p(l,u){u[0]&131072&&ne(s,l[17],a.contenteditable)},d(l){l&&M(t)}}}function YC(e){let t,r,n;function i(h,f){return h[0]==="claimable"?zC:WC}let s=i(e),o=s(e),a=[e[35]("BonusCardDataContent")],l={};for(let h=0;h<a.length;h+=1)l=D(l,a[h]);let u=(e[0]==="active"||e[0]==="completed")&&Bu(e),d=[e[35]("BonusCardData")],c={};for(let h=0;h<d.length;h+=1)c=D(c,d[h]);return{c(){t=x("div"),r=x("div"),o.c(),n=$(),u&&u.c(),S(r,l),S(t,c)},m(h,f){B(h,t,f),p(t,r),o.m(r,null),p(t,n),u&&u.m(t,null)},p(h,f){s===(s=i(h))&&o?o.p(h,f):(o.d(1),o=s(h),o&&(o.c(),o.m(r,null))),h[0]==="active"||h[0]==="completed"?u?u.p(h,f):(u=Bu(h),u.c(),u.m(t,null)):u&&(u.d(1),u=null)},d(h){h&&M(t),o.d(),u&&u.d()}}}function WC(e){let t,r,n=e[24]("bonusCard.bonusStatus")+"",i,s,o,a,l,u,d,c=e[24]("bonusCard.bonusType")+"",h,f,g,b,v=e[24](`bonusType.${e[4].type}`)+"",y,_,E,w,A,C,L,q=[e[35]("BonusCardLabel")],K={};for(let P=0;P<q.length;P+=1)K=D(K,q[P]);function Y(P,U){return P[0]==="active"?VC:$C}let k=Y(e),N=k(e),re=[e[35]("BonusCardRowText")],J={};for(let P=0;P<re.length;P+=1)J=D(J,re[P]);let F=[e[35]("BonusCardRow")],V={};for(let P=0;P<F.length;P+=1)V=D(V,F[P]);let W=[e[35]("BonusCardLabel")],z={};for(let P=0;P<W.length;P+=1)z=D(z,W[P]);let ae=[e[35]("BonusCardRowText","Type")],Ce={};for(let P=0;P<ae.length;P+=1)Ce=D(Ce,ae[P]);let Te=[e[35]("BonusCardRow")],ie={};for(let P=0;P<Te.length;P+=1)ie=D(ie,Te[P]);let me=e[4].type==="standard"&&Su(e),le=e[4].type==="freeBet"&&ku(e),ce=e[4].type==="freeRound"&&Tu(e),I=e[4].type==="wagering"&&Au(e),H=e[4].endTime&&e[0]==="active"&&e[4].type!=="wagering"&&Mu(e);return{c(){t=x("p"),r=x("span"),i=O(n),s=O(":"),o=$(),a=x("span"),N.c(),l=$(),u=x("p"),d=x("span"),h=O(c),f=O(":"),g=$(),b=x("span"),y=O(v),_=$(),me&&me.c(),E=$(),le&&le.c(),w=$(),ce&&ce.c(),A=$(),I&&I.c(),C=$(),H&&H.c(),L=Wt(),S(r,K),S(a,J),oe(a,"StatusActive",e[0]==="active"),oe(a,"StatusCompleted",e[0]==="completed"),oe(a,"StatusClaimable",e[0]==="claimable"),S(t,V),S(d,z),S(b,Ce),S(u,ie)},m(P,U){B(P,t,U),p(t,r),p(r,i),p(r,s),p(t,o),p(t,a),N.m(a,null),B(P,l,U),B(P,u,U),p(u,d),p(d,h),p(d,f),p(u,g),p(u,b),p(b,y),B(P,_,U),me&&me.m(P,U),B(P,E,U),le&&le.m(P,U),B(P,w,U),ce&&ce.m(P,U),B(P,A,U),I&&I.m(P,U),B(P,C,U),H&&H.m(P,U),B(P,L,U)},p(P,U){U[0]&16777216&&n!==(n=P[24]("bonusCard.bonusStatus")+"")&&ne(i,n,K.contenteditable),k===(k=Y(P))&&N?N.p(P,U):(N.d(1),N=k(P),N&&(N.c(),N.m(a,null))),U[0]&1&&oe(a,"StatusActive",P[0]==="active"),U[0]&1&&oe(a,"StatusCompleted",P[0]==="completed"),U[0]&1&&oe(a,"StatusClaimable",P[0]==="claimable"),U[0]&16777216&&c!==(c=P[24]("bonusCard.bonusType")+"")&&ne(h,c,z.contenteditable),U[0]&16777232&&v!==(v=P[24](`bonusType.${P[4].type}`)+"")&&ne(y,v,Ce.contenteditable),P[4].type==="standard"?me?me.p(P,U):(me=Su(P),me.c(),me.m(E.parentNode,E)):me&&(me.d(1),me=null),P[4].type==="freeBet"?le?le.p(P,U):(le=ku(P),le.c(),le.m(w.parentNode,w)):le&&(le.d(1),le=null),P[4].type==="freeRound"?ce?ce.p(P,U):(ce=Tu(P),ce.c(),ce.m(A.parentNode,A)):ce&&(ce.d(1),ce=null),P[4].type==="wagering"?I?I.p(P,U):(I=Au(P),I.c(),I.m(C.parentNode,C)):I&&(I.d(1),I=null),P[4].endTime&&P[0]==="active"&&P[4].type!=="wagering"?H?H.p(P,U):(H=Mu(P),H.c(),H.m(L.parentNode,L)):H&&(H.d(1),H=null)},d(P){P&&(M(t),M(l),M(u),M(_),M(E),M(w),M(A),M(C),M(L)),N.d(),me&&me.d(P),le&&le.d(P),ce&&ce.d(P),I&&I.d(P),H&&H.d(P)}}}function zC(e){let t,r,n=e[24]("bonusCard.bonusType")+"",i,s,o,a,l=e[24](`bonusType.${e[4].type}`)+"",u,d,c,h,f,g=e[24]("bonusCard.validity")+"",b,v,y,_,E=e[31](e[4])+"",w,A=[e[35]("BonusCardLabel")],C={};for(let z=0;z<A.length;z+=1)C=D(C,A[z]);let L=[e[35]("BonusCardRowText","Type")],q={};for(let z=0;z<L.length;z+=1)q=D(q,L[z]);let K=[e[35]("BonusCardRow")],Y={};for(let z=0;z<K.length;z+=1)Y=D(Y,K[z]);let k=e[4].type==="wagering"&&Ou(e),N=[e[35]("BonusCardLabel")],re={};for(let z=0;z<N.length;z+=1)re=D(re,N[z]);let J=[e[35]("BonusCardRowText")],F={};for(let z=0;z<J.length;z+=1)F=D(F,J[z]);let V=[e[35]("BonusCardRow")],W={};for(let z=0;z<V.length;z+=1)W=D(W,V[z]);return{c(){t=x("p"),r=x("span"),i=O(n),s=O(":"),o=$(),a=x("span"),u=O(l),d=$(),k&&k.c(),c=$(),h=x("p"),f=x("span"),b=O(g),v=O(":"),y=$(),_=x("span"),w=O(E),S(r,C),S(a,q),S(t,Y),S(f,re),S(_,F),S(h,W)},m(z,ae){B(z,t,ae),p(t,r),p(r,i),p(r,s),p(t,o),p(t,a),p(a,u),B(z,d,ae),k&&k.m(z,ae),B(z,c,ae),B(z,h,ae),p(h,f),p(f,b),p(f,v),p(h,y),p(h,_),p(_,w)},p(z,ae){ae[0]&16777216&&n!==(n=z[24]("bonusCard.bonusType")+"")&&ne(i,n,C.contenteditable),ae[0]&16777232&&l!==(l=z[24](`bonusType.${z[4].type}`)+"")&&ne(u,l,q.contenteditable),z[4].type==="wagering"?k?k.p(z,ae):(k=Ou(z),k.c(),k.m(c.parentNode,c)):k&&(k.d(1),k=null),ae[0]&16777216&&g!==(g=z[24]("bonusCard.validity")+"")&&ne(b,g,re.contenteditable),ae[0]&16&&E!==(E=z[31](z[4])+"")&&ne(w,E,F.contenteditable)},d(z){z&&(M(t),M(d),M(c),M(h)),k&&k.d(z)}}}function $C(e){let t=e[24](`bonusCard.${e[4].status}`)+"",r;return{c(){r=O(t)},m(n,i){B(n,r,i)},p(n,i){i[0]&16777232&&t!==(t=n[24](`bonusCard.${n[4].status}`)+"")&&xe(r,t)},d(n){n&&M(r)}}}function VC(e){let t=e[24](`bonusCard.${e[0]}`)+"",r;return{c(){r=O(t)},m(n,i){B(n,r,i)},p(n,i){i[0]&16777217&&t!==(t=n[24](`bonusCard.${n[0]}`)+"")&&xe(r,t)},d(n){n&&M(r)}}}function Su(e){let t,r,n=e[24]("bonusCard.bonusAmount")+"",i,s,o,a,l,u=e[4].remainingAmount+"",d,c,h,f,g=e[4].amount+"",b,v,y,_,E,w=e[24]("bonusCard.wageredAmount")+"",A,C,L,q,K=e[27](e[4])+e[16]+"",Y,k,N=[e[35]("BonusCardLabel")],re={};for(let H=0;H<N.length;H+=1)re=D(re,N[H]);let J=[e[35]("BonusCardRowText")],F={};for(let H=0;H<J.length;H+=1)F=D(F,J[H]);let V=[e[35]("BonusCardRow")],W={};for(let H=0;H<V.length;H+=1)W=D(W,V[H]);let z=[e[35]("BonusCardLabel")],ae={};for(let H=0;H<z.length;H+=1)ae=D(ae,z[H]);function Ce(H,P){return H[4].initialWagerRequirementAmount>=2147483647?jC:GC}let Te=Ce(e),ie=Te(e),me=[e[35]("BonusCardRowText")],le={};for(let H=0;H<me.length;H+=1)le=D(le,me[H]);let ce=[e[35]("BonusCardRow")],I={};for(let H=0;H<ce.length;H+=1)I=D(I,ce[H]);return{c(){t=x("p"),r=x("span"),i=O(n),s=O(":"),o=$(),a=x("span"),l=x("span"),d=O(u),c=O(e[16]),h=O(` /
|
|
3582
|
+
`),f=x("span"),b=O(g),v=O(e[16]),y=$(),_=x("p"),E=x("span"),A=O(w),C=O(":"),L=$(),q=x("span"),Y=O(K),k=O(` /
|
|
3583
|
+
`),ie.c(),S(r,re),oe(l,"BonusAmount",e[0]==="active"),oe(f,"Amount",e[0]==="active"),S(a,F),S(t,W),S(E,ae),S(q,le),S(_,I)},m(H,P){B(H,t,P),p(t,r),p(r,i),p(r,s),p(t,o),p(t,a),p(a,l),p(l,d),p(l,c),p(a,h),p(a,f),p(f,b),p(f,v),B(H,y,P),B(H,_,P),p(_,E),p(E,A),p(E,C),p(_,L),p(_,q),p(q,Y),p(q,k),ie.m(q,null)},p(H,P){P[0]&16777216&&n!==(n=H[24]("bonusCard.bonusAmount")+"")&&ne(i,n,re.contenteditable),P[0]&16&&u!==(u=H[4].remainingAmount+"")&&xe(d,u),P[0]&65536&&xe(c,H[16]),P[0]&1&&oe(l,"BonusAmount",H[0]==="active"),P[0]&16&&g!==(g=H[4].amount+"")&&xe(b,g),P[0]&65536&&xe(v,H[16]),P[0]&1&&oe(f,"Amount",H[0]==="active"),P[0]&16777216&&w!==(w=H[24]("bonusCard.wageredAmount")+"")&&ne(A,w,ae.contenteditable),P[0]&65552&&K!==(K=H[27](H[4])+H[16]+"")&&ne(Y,K,le.contenteditable),Te===(Te=Ce(H))&&ie?ie.p(H,P):(ie.d(1),ie=Te(H),ie&&(ie.c(),ie.m(q,null)))},d(H){H&&(M(t),M(y),M(_)),ie.d()}}}function GC(e){let t=e[4].initialWagerRequirementAmount+e[16]+"",r;return{c(){r=O(t)},m(n,i){B(n,r,i)},p(n,i){i[0]&65552&&t!==(t=n[4].initialWagerRequirementAmount+n[16]+"")&&xe(r,t)},d(n){n&&M(r)}}}function jC(e){let t;return{c(){t=O("∞")},m(r,n){B(r,t,n)},p:Pe,d(r){r&&M(t)}}}function ku(e){let t,r,n=e[24]("bonusCard.bonusAmount")+"",i,s,o,a,l,u=e[4].remainingAmount+"",d,c,h=[e[35]("BonusCardLabel")],f={};for(let _=0;_<h.length;_+=1)f=D(f,h[_]);let g=[e[35]("BonusCardRowText")],b={};for(let _=0;_<g.length;_+=1)b=D(b,g[_]);let v=[e[35]("BonusCardRow")],y={};for(let _=0;_<v.length;_+=1)y=D(y,v[_]);return{c(){t=x("p"),r=x("span"),i=O(n),s=O(":"),o=$(),a=x("span"),l=x("span"),d=O(u),c=O(e[16]),S(r,f),oe(l,"BonusAmount",e[0]==="active"),S(a,b),S(t,y)},m(_,E){B(_,t,E),p(t,r),p(r,i),p(r,s),p(t,o),p(t,a),p(a,l),p(l,d),p(l,c)},p(_,E){E[0]&16777216&&n!==(n=_[24]("bonusCard.bonusAmount")+"")&&ne(i,n,f.contenteditable),E[0]&16&&u!==(u=_[4].remainingAmount+"")&&xe(d,u),E[0]&65536&&xe(c,_[16]),E[0]&1&&oe(l,"BonusAmount",_[0]==="active")},d(_){_&&M(t)}}}function Tu(e){let t,r=e[4].status==="active"&&Pu(e);return{c(){r&&r.c(),t=Wt()},m(n,i){r&&r.m(n,i),B(n,t,i)},p(n,i){n[4].status==="active"?r?r.p(n,i):(r=Pu(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&M(t),r&&r.d(n)}}}function Pu(e){let t,r,n=e[24]("bonusCard.roundNumber")+"",i,s,o,a,l=e[4].numberOfFreeSpin+"",u,d,c,h,f=e[24]("bonusCard.game")+"",g,b,v,y,_,E,w,A,C,L,q,K,Y,k,N,re,J,F,V,W=[e[35]("BonusCardLabel")],z={};for(let Q=0;Q<W.length;Q+=1)z=D(z,W[Q]);let ae=[e[35]("BonusCardRowText")],Ce={};for(let Q=0;Q<ae.length;Q+=1)Ce=D(Ce,ae[Q]);let Te=[e[35]("BonusCardRow")],ie={};for(let Q=0;Q<Te.length;Q+=1)ie=D(ie,Te[Q]);let me=[e[35]("BonusCardLabel")],le={};for(let Q=0;Q<me.length;Q+=1)le=D(le,me[Q]);let ce=Ze(e[22]),I=[];for(let Q=0;Q<ce.length;Q+=1)I[Q]=Du(wu(e,ce,Q));let H=[e[35]("BonusCardRowText")],P={};for(let Q=0;Q<H.length;Q+=1)P=D(P,H[Q]);let U=[e[35]("BonusCardRow")],Re={};for(let Q=0;Q<U.length;Q+=1)Re=D(Re,U[Q]);return{c(){t=x("p"),r=x("span"),i=O(n),s=O(":"),o=$(),a=x("span"),u=O(l),d=$(),c=x("div"),h=x("div"),g=O(f),b=O(":"),v=$(),y=x("div"),_=x("div"),E=x("button"),w=ee("svg"),A=ee("path"),L=$(),q=x("div"),K=x("span");for(let Q=0;Q<I.length;Q+=1)I[Q].c();Y=$(),k=x("button"),N=ee("svg"),re=ee("path"),S(r,z),S(a,Ce),S(t,ie),S(h,le),m(A,"stroke-linecap","round"),m(A,"stroke-linejoin","round"),m(A,"stroke-width","2"),m(A,"d","M15 19l-7-7 7-7"),m(w,"fill","none"),m(w,"stroke","currentColor"),m(w,"viewBox","0 0 24 24"),m(w,"xmlns","http://www.w3.org/2000/svg"),m(E,"class","SliderNavButton"),m(E,"part","SliderNavButton"),E.disabled=C=e[23]==0,oe(E,"Hide",e[22].length<=3),m(K,"class","Games"),uo(K,"transform","translateX("+e[23]+"px)"),m(q,"class","Main"),m(re,"stroke-linecap","round"),m(re,"stroke-linejoin","round"),m(re,"stroke-width","2"),m(re,"d","M9 5l7 7-7 7"),m(N,"fill","none"),m(N,"stroke","currentColor"),m(N,"viewBox","0 0 24 24"),m(N,"xmlns","http://www.w3.org/2000/svg"),m(k,"class","SliderNavButton"),m(k,"part","SliderNavButton"),k.disabled=J=e[23]<=-(e[22].length-3)*100,oe(k,"Hide",e[22].length<=3),m(_,"class","BonusGamesSlider"),S(y,P),S(c,Re)},m(Q,De){B(Q,t,De),p(t,r),p(r,i),p(r,s),p(t,o),p(t,a),p(a,u),B(Q,d,De),B(Q,c,De),p(c,h),p(h,g),p(h,b),p(c,v),p(c,y),p(y,_),p(_,E),p(E,w),p(w,A),p(_,L),p(_,q),p(q,K);for(let Ne=0;Ne<I.length;Ne+=1)I[Ne]&&I[Ne].m(K,null);p(_,Y),p(_,k),p(k,N),p(N,re),F||(V=[Le(E,"click",e[45]),Le(k,"click",e[49])],F=!0)},p(Q,De){if(De[0]&16777216&&n!==(n=Q[24]("bonusCard.roundNumber")+"")&&ne(i,n,z.contenteditable),De[0]&16&&l!==(l=Q[4].numberOfFreeSpin+"")&&ne(u,l,Ce.contenteditable),De[0]&16777216&&f!==(f=Q[24]("bonusCard.game")+"")&&ne(g,f,le.contenteditable),De[0]&8388608&&C!==(C=Q[23]==0)&&(E.disabled=C),De[0]&4194304&&oe(E,"Hide",Q[22].length<=3),De[0]&24117248|De[1]&224){ce=Ze(Q[22]);let Ne;for(Ne=0;Ne<ce.length;Ne+=1){const ir=wu(Q,ce,Ne);I[Ne]?I[Ne].p(ir,De):(I[Ne]=Du(ir),I[Ne].c(),I[Ne].m(K,null))}for(;Ne<I.length;Ne+=1)I[Ne].d(1);I.length=ce.length}De[0]&8388608&&uo(K,"transform","translateX("+Q[23]+"px)"),De[0]&12582912&&J!==(J=Q[23]<=-(Q[22].length-3)*100)&&(k.disabled=J),De[0]&4194304&&oe(k,"Hide",Q[22].length<=3)},d(Q){Q&&(M(t),M(d),M(c)),tr(I,Q),F=!1,vt(V)}}}function Du(e){let t,r,n=e[24]("bonusCard.playNow")+"",i,s,o,a,l,u,d,c,h,f,g;function b(){return e[46](e[82])}function v(){return e[47](e[84])}return{c(){t=x("span"),r=x("span"),i=O(n),a=$(),l=x("img"),h=$(),m(r,"class",s="PlayNowButton "+(e[20]&&e[21]==e[84]?"ItemHover":"")),m(r,"part",o="PlayNowButton "+(e[20]&&e[21]==e[84]?"itemHover":"")),Ka(l.src,u=e[82].thumbnail)||m(l,"src",u),m(l,"width","100px"),m(l,"height","75px"),m(l,"alt",d=e[82].name),m(l,"title",c=e[82].name),m(t,"class","Game"),m(t,"part","Game")},m(y,_){B(y,t,_),p(t,r),p(r,i),p(t,a),p(t,l),p(t,h),f||(g=[Le(t,"click",b),Le(t,"mouseenter",v),Le(t,"mouseleave",e[48])],f=!0)},p(y,_){e=y,_[0]&16777216&&n!==(n=e[24]("bonusCard.playNow")+"")&&xe(i,n),_[0]&3145728&&s!==(s="PlayNowButton "+(e[20]&&e[21]==e[84]?"ItemHover":""))&&m(r,"class",s),_[0]&3145728&&o!==(o="PlayNowButton "+(e[20]&&e[21]==e[84]?"itemHover":""))&&m(r,"part",o),_[0]&4194304&&!Ka(l.src,u=e[82].thumbnail)&&m(l,"src",u),_[0]&4194304&&d!==(d=e[82].name)&&m(l,"alt",d),_[0]&4194304&&c!==(c=e[82].name)&&m(l,"title",c)},d(y){y&&M(t),f=!1,vt(g)}}}function Au(e){let t,r,n=e[24]("bonusCard.wageringType")+"",i,s,o,a,l=e[24](`bonusCard.${e[4].wageringType}`)+"",u,d,c,h,f=e[24]("bonusCard.wagered")+"",g,b,v,y,_=[e[35]("BonusCardLabel")],E={};for(let W=0;W<_.length;W+=1)E=D(E,_[W]);let w=[e[35]("BonusCardRowText")],A={};for(let W=0;W<w.length;W+=1)A=D(A,w[W]);let C=[e[35]("BonusCardRow")],L={};for(let W=0;W<C.length;W+=1)L=D(L,C[W]);let q=[e[35]("BonusCardLabel")],K={};for(let W=0;W<q.length;W+=1)K=D(K,q[W]);function Y(W,z){return W[4].wageringType==="money"?ZC:qC}let k=Y(e),N=k(e),re=[e[35]("BonusCardRowText")],J={};for(let W=0;W<re.length;W+=1)J=D(J,re[W]);let F=[e[35]("BonusCardRow")],V={};for(let W=0;W<F.length;W+=1)V=D(V,F[W]);return{c(){t=x("p"),r=x("span"),i=O(n),s=O(":"),o=$(),a=x("span"),u=O(l),d=$(),c=x("p"),h=x("span"),g=O(f),b=O(":"),v=$(),y=x("span"),N.c(),S(r,E),S(a,A),S(t,L),S(h,K),S(y,J),S(c,V)},m(W,z){B(W,t,z),p(t,r),p(r,i),p(r,s),p(t,o),p(t,a),p(a,u),B(W,d,z),B(W,c,z),p(c,h),p(h,g),p(h,b),p(c,v),p(c,y),N.m(y,null)},p(W,z){z[0]&16777216&&n!==(n=W[24]("bonusCard.wageringType")+"")&&ne(i,n,E.contenteditable),z[0]&16777232&&l!==(l=W[24](`bonusCard.${W[4].wageringType}`)+"")&&ne(u,l,A.contenteditable),z[0]&16777216&&f!==(f=W[24]("bonusCard.wagered")+"")&&ne(g,f,K.contenteditable),k===(k=Y(W))&&N?N.p(W,z):(N.d(1),N=k(W),N&&(N.c(),N.m(y,null)))},d(W){W&&(M(t),M(d),M(c)),N.d()}}}function qC(e){return{c:Pe,m:Pe,p:Pe,d:Pe}}function ZC(e){let t;function r(s,o){return s[0]==="active"?KC:XC}let n=r(e),i=n(e);return{c(){i.c(),t=Wt()},m(s,o){i.m(s,o),B(s,t,o)},p(s,o){n===(n=r(s))&&i?i.p(s,o):(i.d(1),i=n(s),i&&(i.c(),i.m(t.parentNode,t)))},d(s){s&&M(t),i.d(s)}}}function XC(e){let t=e[27](e[4])+e[16]+"",r,n,i;function s(l,u){return l[4].initialWagerRequirementAmount>=2147483647?QC:JC}let o=s(e),a=o(e);return{c(){r=O(t),n=O(` /
|
|
3584
|
+
`),a.c(),i=Wt()},m(l,u){B(l,r,u),B(l,n,u),a.m(l,u),B(l,i,u)},p(l,u){u[0]&65552&&t!==(t=l[27](l[4])+l[16]+"")&&xe(r,t),o===(o=s(l))&&a?a.p(l,u):(a.d(1),a=o(l),a&&(a.c(),a.m(i.parentNode,i)))},d(l){l&&(M(r),M(n),M(i)),a.d(l)}}}function KC(e){var d;let t=e[28](e[4])+"",r,n,i,s,o=((d=e[4].wageringProgress)==null?void 0:d.currentLevelIncrement)+"",a,l,u;return{c(){r=O(t),n=$(),i=O(e[16]),s=O(` /
|
|
3585
|
+
`),a=O(o),l=$(),u=O(e[16])},m(c,h){B(c,r,h),B(c,n,h),B(c,i,h),B(c,s,h),B(c,a,h),B(c,l,h),B(c,u,h)},p(c,h){var f;h[0]&16&&t!==(t=c[28](c[4])+"")&&xe(r,t),h[0]&65536&&xe(i,c[16]),h[0]&16&&o!==(o=((f=c[4].wageringProgress)==null?void 0:f.currentLevelIncrement)+"")&&xe(a,o),h[0]&65536&&xe(u,c[16])},d(c){c&&(M(r),M(n),M(i),M(s),M(a),M(l),M(u))}}}function JC(e){let t=e[4].initialWagerRequirementAmount+e[16]+"",r;return{c(){r=O(t)},m(n,i){B(n,r,i)},p(n,i){i[0]&65552&&t!==(t=n[4].initialWagerRequirementAmount+n[16]+"")&&xe(r,t)},d(n){n&&M(r)}}}function QC(e){let t;return{c(){t=O("∞")},m(r,n){B(r,t,n)},p:Pe,d(r){r&&M(t)}}}function Mu(e){let t,r,n=e[24]("bonusCard.validUntil")+"",i,s,o,a,l=e[30](e[4].endTime)+"",u,d=[e[35]("BonusCardLabel")],c={};for(let v=0;v<d.length;v+=1)c=D(c,d[v]);let h=[e[35]("BonusCardRowText")],f={};for(let v=0;v<h.length;v+=1)f=D(f,h[v]);let g=[e[35]("BonusCardRow")],b={};for(let v=0;v<g.length;v+=1)b=D(b,g[v]);return{c(){t=x("p"),r=x("span"),i=O(n),s=O(":"),o=$(),a=x("span"),u=O(l),S(r,c),S(a,f),S(t,b)},m(v,y){B(v,t,y),p(t,r),p(r,i),p(r,s),p(t,o),p(t,a),p(a,u)},p(v,y){y[0]&16777216&&n!==(n=v[24]("bonusCard.validUntil")+"")&&ne(i,n,c.contenteditable),y[0]&16&&l!==(l=v[30](v[4].endTime)+"")&&ne(u,l,f.contenteditable)},d(v){v&&M(t)}}}function Ou(e){let t,r,n=e[24]("bonusCard.levels")+"",i,s,o,a,l=[e[35]("BonusCardLabel")],u={};for(let y=0;y<l.length;y+=1)u=D(u,l[y]);function d(y,_){return y[7]>0?tx:ex}let c=d(e),h=c(e),f=[e[35]("BonusCardRowText")],g={};for(let y=0;y<f.length;y+=1)g=D(g,f[y]);let b=[e[35]("BonusCardRow")],v={};for(let y=0;y<b.length;y+=1)v=D(v,b[y]);return{c(){t=x("p"),r=x("span"),i=O(n),s=O(":"),o=$(),a=x("span"),h.c(),S(r,u),S(a,g),S(t,v)},m(y,_){B(y,t,_),p(t,r),p(r,i),p(r,s),p(t,o),p(t,a),h.m(a,null)},p(y,_){_[0]&16777216&&n!==(n=y[24]("bonusCard.levels")+"")&&ne(i,n,u.contenteditable),c===(c=d(y))&&h?h.p(y,_):(h.d(1),h=c(y),h&&(h.c(),h.m(a,null)))},d(y){y&&M(t),h.d()}}}function ex(e){let t;return{c(){t=O("∞")},m(r,n){B(r,t,n)},p:Pe,d(r){r&&M(t)}}}function tx(e){let t;return{c(){t=O(e[7])},m(r,n){B(r,t,n)},p(r,n){n[0]&128&&xe(t,r[7])},d(r){r&&M(t)}}}function Bu(e){let t,r,n=e[4].type==="standard"&&Nu(e),i=e[4].type==="wagering"&&Iu(e);return{c(){n&&n.c(),t=$(),i&&i.c(),r=Wt()},m(s,o){n&&n.m(s,o),B(s,t,o),i&&i.m(s,o),B(s,r,o)},p(s,o){s[4].type==="standard"?n?n.p(s,o):(n=Nu(s),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),s[4].type==="wagering"?i?i.p(s,o):(i=Iu(s),i.c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null)},d(s){s&&(M(t),M(r)),n&&n.d(s),i&&i.d(s)}}}function Nu(e){let t,r,n,i=[e[35]("CircularProgress"),{value:n=e[29](e[4])},{status:e[0]},{clientstyling:e[2]},{clientstylingurl:e[3]},{mbsource:e[1]}],s={};for(let l=0;l<i.length;l+=1)s=D(s,i[l]);let o=[e[35]("BonusCardProgress")],a={};for(let l=0;l<o.length;l+=1)a=D(a,o[l]);return{c(){t=x("div"),r=x("casino-bonus-progress"),S(r,s),S(t,a)},m(l,u){B(l,t,u),p(t,r)},p(l,u){S(r,s=He(i,[l[35]("CircularProgress"),u[0]&16&&n!==(n=l[29](l[4]))&&{value:n},u[0]&1&&{status:l[0]},u[0]&4&&{clientstyling:l[2]},u[0]&8&&{clientstylingurl:l[3]},u[0]&2&&{mbsource:l[1]}]))},d(l){l&&M(t)}}}function Iu(e){var A;let t,r,n,i,s,o=e[24]("bonusCard.level")+"",a,l,u=(((A=e[4].wageringProgress)==null?void 0:A.currentLevel)||1)+"",d,c,h=[e[35]("CircularProgress"),{value:n=e[29](e[4])},{status:e[0]},{clientstyling:e[2]},{clientstylingurl:e[3]},{mbsource:e[1]}],f={};for(let C=0;C<h.length;C+=1)f=D(f,h[C]);function g(C,L){return C[7]>0?nx:rx}let b=g(e),v=b(e),y=[e[35]("CircularProgressText")],_={};for(let C=0;C<y.length;C+=1)_=D(_,y[C]);let E=[e[35]("BonusCardProgress")],w={};for(let C=0;C<E.length;C+=1)w=D(w,E[C]);return{c(){t=x("div"),r=x("casino-bonus-progress"),i=$(),s=x("div"),a=O(o),l=O(": "),d=O(u),c=O(` /
|
|
3586
|
+
`),v.c(),S(r,f),S(s,_),S(t,w)},m(C,L){B(C,t,L),p(t,r),p(t,i),p(t,s),p(s,a),p(s,l),p(s,d),p(s,c),v.m(s,null)},p(C,L){var q;S(r,f=He(h,[C[35]("CircularProgress"),L[0]&16&&n!==(n=C[29](C[4]))&&{value:n},L[0]&1&&{status:C[0]},L[0]&4&&{clientstyling:C[2]},L[0]&8&&{clientstylingurl:C[3]},L[0]&2&&{mbsource:C[1]}])),L[0]&16777216&&o!==(o=C[24]("bonusCard.level")+"")&&ne(a,o,_.contenteditable),L[0]&16&&u!==(u=(((q=C[4].wageringProgress)==null?void 0:q.currentLevel)||1)+"")&&ne(d,u,_.contenteditable),b===(b=g(C))&&v?v.p(C,L):(v.d(1),v=b(C),v&&(v.c(),v.m(s,null)))},d(C){C&&M(t),v.d()}}}function rx(e){let t;return{c(){t=O("∞")},m(r,n){B(r,t,n)},p:Pe,d(r){r&&M(t)}}}function nx(e){let t;return{c(){t=O(e[7])},m(r,n){B(r,t,n)},p(r,n){n[0]&128&&xe(t,r[7])},d(r){r&&M(t)}}}function Lu(e){let t,r,n,i,s,o,a=e[24]("bonusCard.rewards")+"",l,u,d,c,h,f,g=[e[35]("BonusCardAdditionalTitle")],b={};for(let Y=0;Y<g.length;Y+=1)b=D(b,g[Y]);function v(Y,k){return Y[10]?ix:sx}let y=v(e),_=y(e),E=[e[35]("BonusCardAdditionalButton")],w={};for(let Y=0;Y<E.length;Y+=1)w=D(w,E[Y]);let A=[e[35]("BonusCardAdditionalHeader")],C={};for(let Y=0;Y<A.length;Y+=1)C=D(C,A[Y]);let L=e[10]&&Fu(e),q=[e[35]("BonusCardAdditional")],K={};for(let Y=0;Y<q.length;Y+=1)K=D(K,q[Y]);return{c(){t=x("div"),r=x("div"),n=x("span"),i=ee("svg"),s=ee("path"),o=$(),l=O(a),u=$(),d=x("span"),_.c(),c=$(),L&&L.c(),m(s,"d","M18 5.97075H14.885C15.3396 5.74285 15.7565 5.44638 16.121 5.09175C16.6824 4.52865 16.9977 3.76592 16.9977 2.97075C16.9977 2.17558 16.6824 1.41285 16.121 0.84975C14.987 -0.28325 13.013 -0.28325 11.879 0.84975C10.243 2.48675 10.02 5.56775 10 5.91375C9.98 5.56775 9.757 2.48675 8.121 0.85075C6.987 -0.28225 5.011 -0.28125 3.879 0.85075C3.312 1.41675 3 2.16975 3 2.97075C3 3.77175 3.312 4.52575 3.878 5.09175C4.24311 5.4461 4.66027 5.74253 5.115 5.97075H2C0.897 5.97075 0 6.86875 0 7.97075V10.9707C0 11.236 0.105357 11.4903 0.292893 11.6779C0.48043 11.8654 0.734784 11.9707 1 11.9707V17.9708C1 19.0738 1.897 19.9708 3 19.9708H17C18.103 19.9708 19 19.0738 19 17.9708V11.9707C19.2652 11.9707 19.5196 11.8654 19.7071 11.6779C19.8946 11.4903 20 11.236 20 10.9707V7.97075C20 6.86875 19.103 5.97075 18 5.97075ZM6 17.9708H3V11.9707H6V17.9708ZM6 9.97075H2V7.97075H6V9.97075ZM5.293 3.67775C5.19982 3.58514 5.12595 3.47497 5.07565 3.35361C5.02536 3.23225 4.99964 3.10212 5 2.97075C4.99947 2.83933 5.02498 2.7091 5.07506 2.58759C5.12514 2.46608 5.1988 2.3557 5.29177 2.26281C5.38475 2.16993 5.49521 2.09639 5.61677 2.04643C5.73833 1.99647 5.86858 1.97109 6 1.97175C6.268 1.97175 6.519 2.07575 6.708 2.26475C7.298 2.85375 7.642 3.91275 7.826 4.79475C6.945 4.60975 5.88 4.26475 5.293 3.67775ZM12 17.9708H8V11.9707H12V17.9708ZM12 9.97075H8V7.97075H12V9.97075ZM13.293 2.26475C13.482 2.07575 13.733 1.97175 14 1.97175C14.267 1.97175 14.518 2.07575 14.707 2.26375C14.8945 2.45128 14.9998 2.70559 14.9998 2.97075C14.9998 3.23591 14.8945 3.49022 14.707 3.67775C14.117 4.26975 13.058 4.61375 12.175 4.79875C12.358 3.91375 12.703 2.85475 13.293 2.26475ZM17 17.9708H14V11.9707H17V17.9708ZM18 9.97075H14V7.97075H18V9.97075Z"),m(s,"fill","black"),m(i,"width","20"),m(i,"height","20"),m(i,"viewBox","0 0 20 20"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),S(n,b),S(d,w),S(r,C),oe(r,"Active",e[10]),S(t,K)},m(Y,k){B(Y,t,k),p(t,r),p(r,n),p(n,i),p(i,s),p(n,o),p(n,l),p(r,u),p(r,d),_.m(d,null),p(t,c),L&&L.m(t,null),h||(f=Le(r,"click",e[50]),h=!0)},p(Y,k){k[0]&16777216&&a!==(a=Y[24]("bonusCard.rewards")+"")&&ne(l,a,b.contenteditable),y!==(y=v(Y))&&(_.d(1),_=y(Y),_&&(_.c(),_.m(d,null))),k[0]&1024&&oe(r,"Active",Y[10]),Y[10]?L?L.p(Y,k):(L=Fu(Y),L.c(),L.m(t,null)):L&&(L.d(1),L=null)},d(Y){Y&&M(t),_.d(),L&&L.d(),h=!1,f()}}}function ix(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(n,i){B(n,t,i),p(t,r)},d(n){n&&M(t)}}}function sx(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(n,i){B(n,t,i),p(t,r)},d(n){n&&M(t)}}}function Fu(e){let t,r=e[4].type==="wagering"&&Ru(e),n=[e[35]("BonusCardAdditionalContent")],i={};for(let s=0;s<n.length;s+=1)i=D(i,n[s]);return{c(){t=x("div"),r&&r.c(),S(t,i)},m(s,o){B(s,t,o),r&&r.m(t,null)},p(s,o){s[4].type==="wagering"?r?r.p(s,o):(r=Ru(s),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(s){s&&M(t),r&&r.d()}}}function Ru(e){let t,r,n=e[24]("bonusCard.allRewards")+"",i,s,o;function a(h,f){return h[4].status?ax:ox}let l=a(e),u=l(e),d=[e[35]("BonusAllRewardsLink"),{href:"javascript:void(0)"}],c={};for(let h=0;h<d.length;h+=1)c=D(c,d[h]);return{c(){u.c(),t=$(),r=x("a"),i=O(n),S(r,c)},m(h,f){u.m(h,f),B(h,t,f),B(h,r,f),p(r,i),s||(o=Le(r,"click",e[51]),s=!0)},p(h,f){l===(l=a(h))&&u?u.p(h,f):(u.d(1),u=l(h),u&&(u.c(),u.m(t.parentNode,t))),f[0]&16777216&&n!==(n=h[24]("bonusCard.allRewards")+"")&&ne(i,n,c.contenteditable)},d(h){h&&(M(t),M(r)),u.d(h),s=!1,o()}}}function ox(e){let t,r=Ze(e[4].levels),n=[];for(let i=0;i<r.length;i+=1)n[i]=Uu(gu(e,r,i));return{c(){for(let i=0;i<n.length;i+=1)n[i].c();t=Wt()},m(i,s){for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(i,s);B(i,t,s)},p(i,s){if(s[0]&16777232|s[1]&20){r=Ze(i[4].levels);let o;for(o=0;o<r.length;o+=1){const a=gu(i,r,o);n[o]?n[o].p(a,s):(n[o]=Uu(a),n[o].c(),n[o].m(t.parentNode,t))}for(;o<n.length;o+=1)n[o].d(1);n.length=r.length}},d(i){i&&M(t),tr(n,i)}}}function ax(e){let t,r=Ze(e[34](e[4],e[6])),n=[];for(let i=0;i<r.length;i+=1)n[i]=Wu(vu(e,r,i));return{c(){for(let i=0;i<n.length;i+=1)n[i].c();t=Wt()},m(i,s){for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(i,s);B(i,t,s)},p(i,s){if(s[0]&16777296|s[1]&24){r=Ze(i[34](i[4],i[6]));let o;for(o=0;o<r.length;o+=1){const a=vu(i,r,o);n[o]?n[o].p(a,s):(n[o]=Wu(a),n[o].c(),n[o].m(t.parentNode,t))}for(;o<n.length;o+=1)n[o].d(1);n.length=r.length}},d(i){i&&M(t),tr(n,i)}}}function Hu(e){let t=e[33](e[76],e[79])+"",r;return{c(){r=O(t)},m(n,i){B(n,r,i)},p(n,i){i[0]&16&&t!==(t=n[33](n[76],n[79])+"")&&xe(r,t)},d(n){n&&M(r)}}}function Uu(e){let t,r,n=e[24]("bonusCard.level")+"",i,s,o=(e[76].maxRepeats>1?`${e[78]+1}-${e[78]+1+e[76].maxRepeats-1}`:e[78]+1)+"",a,l,u,d,c,h=[e[35]("BonusRewardsLevelsItemPosition")],f={};for(let _=0;_<h.length;_+=1)f=D(f,h[_]);let g=Ze(e[76].bonuses),b=[];for(let _=0;_<g.length;_+=1)b[_]=Hu(bu(e,g,_));let v=[e[35]("BonusRewardsLevelsItem")],y={};for(let _=0;_<v.length;_+=1)y=D(y,v[_]);return{c(){t=x("p"),r=x("span"),i=O(n),s=$(),a=O(o),l=O(":"),u=$(),d=x("span");for(let _=0;_<b.length;_+=1)b[_].c();c=$(),S(r,f),S(t,y)},m(_,E){B(_,t,E),p(t,r),p(r,i),p(r,s),p(r,a),p(r,l),p(t,u),p(t,d);for(let w=0;w<b.length;w+=1)b[w]&&b[w].m(d,null);p(t,c)},p(_,E){if(E[0]&16777216&&n!==(n=_[24]("bonusCard.level")+"")&&ne(i,n,f.contenteditable),E[0]&16&&o!==(o=(_[76].maxRepeats>1?`${_[78]+1}-${_[78]+1+_[76].maxRepeats-1}`:_[78]+1)+"")&&ne(a,o,f.contenteditable),E[0]&16|E[1]&4){g=Ze(_[76].bonuses);let w;for(w=0;w<g.length;w+=1){const A=bu(_,g,w);b[w]?b[w].p(A,E):(b[w]=Hu(A),b[w].c(),b[w].m(d,null))}for(;w<b.length;w+=1)b[w].d(1);b.length=g.length}},d(_){_&&M(t),tr(b,_)}}}function Yu(e){let t=e[73]+"",r;return{c(){r=O(t)},m(n,i){B(n,r,i)},p(n,i){i[0]&80&&t!==(t=n[73]+"")&&xe(r,t)},d(n){n&&M(r)}}}function Wu(e){let t,r,n=e[24](`bonusCard.${e[70].label}`)+"",i,s,o=e[24]("bonusCard.level")+"",a,l,u,d,c,h=[e[35]("BonusRewardsLevelsItemPosition")],f={};for(let _=0;_<h.length;_+=1)f=D(f,h[_]);let g=Ze(e[70].desc),b=[];for(let _=0;_<g.length;_+=1)b[_]=Yu(yu(e,g,_));let v=[e[35]("BonusRewardsLevelsItem")],y={};for(let _=0;_<v.length;_+=1)y=D(y,v[_]);return{c(){t=x("p"),r=x("span"),i=O(n),s=$(),a=O(o),l=O(":"),u=$(),d=x("span");for(let _=0;_<b.length;_+=1)b[_].c();c=$(),S(r,f),S(t,y)},m(_,E){B(_,t,E),p(t,r),p(r,i),p(r,s),p(r,a),p(r,l),p(t,u),p(t,d);for(let w=0;w<b.length;w+=1)b[w]&&b[w].m(d,null);p(t,c)},p(_,E){if(E[0]&16777296&&n!==(n=_[24](`bonusCard.${_[70].label}`)+"")&&ne(i,n,f.contenteditable),E[0]&16777216&&o!==(o=_[24]("bonusCard.level")+"")&&ne(a,o,f.contenteditable),E[0]&80|E[1]&8){g=Ze(_[70].desc);let w;for(w=0;w<g.length;w+=1){const A=yu(_,g,w);b[w]?b[w].p(A,E):(b[w]=Yu(A),b[w].c(),b[w].m(d,null))}for(;w<b.length;w+=1)b[w].d(1);b.length=g.length}},d(_){_&&M(t),tr(b,_)}}}function lx(e){let t,r,n,i,s,o,a,l,u,d,c=e[24]("bonusCard.terms")+"",h,f=[e[35]("BonusCardTermsLink"),{href:e[19]},{target:"__blank"}],g={};for(let y=0;y<f.length;y+=1)g=D(g,f[y]);let b=[e[35]("BonusCardTerms")],v={};for(let y=0;y<b.length;y+=1)v=D(v,b[y]);return{c(){t=x("div"),r=x("a"),n=ee("svg"),i=ee("path"),s=ee("path"),o=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=$(),h=O(c),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(i,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(s,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(o,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(u,"fill","black"),m(n,"width","19"),m(n,"height","21"),m(n,"viewBox","0 0 19 21"),m(n,"fill","none"),m(n,"xmlns","http://www.w3.org/2000/svg"),S(r,g),S(t,v)},m(y,_){B(y,t,_),p(t,r),p(r,n),p(n,i),p(n,s),p(n,o),p(n,a),p(n,l),p(n,u),p(r,d),p(r,h)},p(y,_){_[0]&16777216&&c!==(c=y[24]("bonusCard.terms")+"")&&ne(h,c,g.contenteditable),S(r,g=He(f,[y[35]("BonusCardTermsLink"),_[0]&524288&&{href:y[19]},{target:"__blank"}]))},d(y){y&&M(t)}}}function ux(e){let t,r,n,i,s,o,a,l,u,d,c,h=e[24]("bonusCard.terms")+"",f,g,b,v,y,_,E=[e[35]("BonusCardTermsTitle")],w={};for(let F=0;F<E.length;F+=1)w=D(w,E[F]);function A(F,V){return F[11]?dx:cx}let C=A(e),L=C(e),q=[e[35]("BonusCardTermsButton")],K={};for(let F=0;F<q.length;F+=1)K=D(K,q[F]);let Y=[e[35]("BonusCardTermsHeader")],k={};for(let F=0;F<Y.length;F+=1)k=D(k,Y[F]);let N=e[11]&&zu(e),re=[e[35]("BonusCardTerms")],J={};for(let F=0;F<re.length;F+=1)J=D(J,re[F]);return{c(){t=x("div"),r=x("div"),n=x("span"),i=ee("svg"),s=ee("path"),o=ee("path"),a=ee("path"),l=ee("path"),u=ee("path"),d=ee("path"),c=$(),f=O(h),g=$(),b=x("span"),L.c(),v=$(),N&&N.c(),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(s,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(o,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(d,"fill","black"),m(i,"width","19"),m(i,"height","21"),m(i,"viewBox","0 0 19 21"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),S(n,w),S(b,K),S(r,k),oe(r,"Active",e[11]),S(t,J)},m(F,V){B(F,t,V),p(t,r),p(r,n),p(n,i),p(i,s),p(i,o),p(i,a),p(i,l),p(i,u),p(i,d),p(n,c),p(n,f),p(r,g),p(r,b),L.m(b,null),p(t,v),N&&N.m(t,null),y||(_=Le(r,"click",e[52]),y=!0)},p(F,V){V[0]&16777216&&h!==(h=F[24]("bonusCard.terms")+"")&&ne(f,h,w.contenteditable),C!==(C=A(F))&&(L.d(1),L=C(F),L&&(L.c(),L.m(b,null))),V[0]&2048&&oe(r,"Active",F[11]),F[11]?N?N.p(F,V):(N=zu(F),N.c(),N.m(t,null)):N&&(N.d(1),N=null)},d(F){F&&M(t),L.d(),N&&N.d(),y=!1,_()}}}function dx(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(n,i){B(n,t,i),p(t,r)},d(n){n&&M(t)}}}function cx(e){let t,r;return{c(){t=ee("svg"),r=ee("path"),m(r,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(r,"stroke","black"),m(r,"stroke-width","3"),m(r,"stroke-linecap","round"),m(t,"width","18"),m(t,"height","12"),m(t,"viewBox","0 0 18 12"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg")},m(n,i){B(n,t,i),p(t,r)},d(n){n&&M(t)}}}function zu(e){let t,r,n,i,s=[e[35]("BonusCardTermsContent")],o={};for(let a=0;a<s.length;a+=1)o=D(o,s[a]);return{c(){t=x("div"),S(t,o)},m(a,l){B(a,t,l),n||(i=Tf(r=e[39].call(null,t,e[15].terms_and_conditions)),n=!0)},p(a,l){r&&Hn(r.update)&&l[0]&32768&&r.update.call(null,a[15].terms_and_conditions)},d(a){a&&M(t),n=!1,i()}}}function $u(e){let t,r,n,i=e[0]==="claimable"&&Vu(e),s=e[0]==="active"&&e[4].status==="active"&&ju(e),o=[e[35]("BonusCardActionContent")],a={};for(let d=0;d<o.length;d+=1)a=D(a,o[d]);let l=[e[35]("BonusCardAction")],u={};for(let d=0;d<l.length;d+=1)u=D(u,l[d]);return{c(){t=x("div"),r=x("div"),i&&i.c(),n=$(),s&&s.c(),S(r,a),S(t,u)},m(d,c){B(d,t,c),p(t,r),i&&i.m(r,null),p(r,n),s&&s.m(r,null)},p(d,c){d[0]==="claimable"?i?i.p(d,c):(i=Vu(d),i.c(),i.m(r,n)):i&&(i.d(1),i=null),d[0]==="active"&&d[4].status==="active"?s?s.p(d,c):(s=ju(d),s.c(),s.m(r,null)):s&&(s.d(1),s=null)},d(d){d&&M(t),i&&i.d(),s&&s.d()}}}function Vu(e){let t,r,n,i,s,o,a,l,u,d=e[24]("bonusCard.join")+"",c,h,f,g,b=e[14]===!0&&Gu(e),v=[e[35]("BonusCardJoinCountdown")],y={};for(let C=0;C<v.length;C+=1)y=D(y,v[C]);let _=[e[35]("BonusJoinButton"),{type:"button"},{disabled:h=!e[12]}],E={};for(let C=0;C<_.length;C+=1)E=D(E,_[C]);let w=[e[35]("BonusCardJoinWrapper")],A={};for(let C=0;C<w.length;C+=1)A=D(A,w[C]);return{c(){t=x("div"),b&&b.c(),r=$(),n=x("span"),i=ee("svg"),s=ee("path"),o=$(),a=O(e[18]),l=$(),u=x("button"),c=O(d),m(s,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(s,"fill","#6D6D6D"),m(i,"width","24"),m(i,"height","28"),m(i,"viewBox","0 0 24 28"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),S(n,y),S(u,E),S(t,A)},m(C,L){B(C,t,L),b&&b.m(t,null),p(t,r),p(t,n),p(n,i),p(i,s),p(n,o),p(n,a),p(t,l),p(t,u),p(u,c),u.autofocus&&u.focus(),f||(g=Le(u,"click",e[25]),f=!0)},p(C,L){C[14]===!0?b?b.p(C,L):(b=Gu(C),b.c(),b.m(t,r)):b&&(b.d(1),b=null),L[0]&262144&&ne(a,C[18],y.contenteditable),L[0]&16777216&&d!==(d=C[24]("bonusCard.join")+"")&&ne(c,d,E.contenteditable),S(u,E=He(_,[C[35]("BonusJoinButton"),{type:"button"},L[0]&4096&&h!==(h=!C[12])&&{disabled:h}]))},d(C){C&&M(t),b&&b.d(),f=!1,g()}}}function Gu(e){let t,r=e[24]("bonusCard.error")+"",n,i=[e[35]("BonusCardJoinError")],s={};for(let o=0;o<i.length;o+=1)s=D(s,i[o]);return{c(){t=x("span"),n=O(r),S(t,s)},m(o,a){B(o,t,a),p(t,n)},p(o,a){a[0]&16777216&&r!==(r=o[24]("bonusCard.error")+"")&&ne(n,r,s.contenteditable)},d(o){o&&M(t)}}}function ju(e){let t,r=e[24]("bonusCard.forfeit")+"",n,i,s,o,a=[e[35]("BonusForfeitButton"),{type:"button"},{disabled:i=!e[12]}],l={};for(let u=0;u<a.length;u+=1)l=D(l,a[u]);return{c(){t=x("button"),n=O(r),S(t,l)},m(u,d){B(u,t,d),p(t,n),t.autofocus&&t.focus(),s||(o=Le(t,"click",e[26]),s=!0)},p(u,d){d[0]&16777216&&r!==(r=u[24]("bonusCard.forfeit")+"")&&ne(n,r,l.contenteditable),S(t,l=He(a,[u[35]("BonusForfeitButton"),{type:"button"},d[0]&4096&&i!==(i=!u[12])&&{disabled:i}]))},d(u){u&&M(t),s=!1,o()}}}function hx(e){let t,r=e[4]&&Cu(e);return{c(){r&&r.c(),t=Wt()},m(n,i){r&&r.m(n,i),B(n,t,i)},p(n,i){n[4]?r?r.p(n,i):(r=Cu(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},i:Pe,o:Pe,d(n){n&&M(t),r&&r.d(n)}}}function fx(e,t,r){let n,i;_d(e,jd,T=>r(24,i=T));let{rawbonus:s=""}=t,{lang:o="en"}=t,{status:a=""}=t,{mbsource:l}=t,{clientstyling:u=""}=t,{clientstylingurl:d=""}=t,{cmsendpoint:c=""}=t,{translationurl:h=""}=t,f,g=[],b,v=!1,y=!1,_=!1,E=!1,w=!0,A=!1,C=!1,L={},q,K,Y="",k=1e3*30,N,re="",J=!1,F,V=[],W=0;const z=()=>{fetch(h).then(Z=>Z.json()).then(Z=>{Object.keys(Z).forEach(de=>{Si(de,Z[de])})}).catch(Z=>{console.log(Z)})};Object.keys(ki).forEach(T=>{Si(T,ki[T])}),Vi(()=>(window.addEventListener("message",le,!1),()=>{window.removeEventListener("message",le)}));const ae=()=>{try{r(4,f=JSON.parse(s))}catch(T){}f&&(f.type==="wagering"&&r(9,y=!0),r(16,q=_u(f.currency)),r(6,g=Te(f.levels)),f.type==="freeRound"&&r(22,V=Ce(f.freeSpin)),U())},Ce=T=>{if(!T||!T.vendorGamesDetail)return[];let Z=[];return Object.keys(T.vendorGamesDetail).length>0&&Object.keys(T.vendorGamesDetail).forEach(de=>{Z=T.vendorGamesDetail[de]}),Z},Te=T=>{if(!T)return[];const Z=[];let de=!1;return T.map((ze,Je)=>{const Pt=ze,{maxRepeats:ut,completedTime:et}=Pt,it=Ms(Pt,["maxRepeats","completedTime"]);ut===0&&(de=!0);for(let je=0;je<ut;je++)Z.push(sr({},it))}),de?r(7,b=0):r(7,b=Z.length),Z},ie=()=>{r(12,w=!1),r(14,C=!1),window.postMessage({type:"OnBonusClaimed",bonusCode:f.code})},me=()=>{r(12,w=!1),window.postMessage({type:"OnBonusForfeit",bonus:f})},le=T=>{switch(T.data.type){case"OnBonusClaimedDone":r(12,w=!0);break;case"OnBonusForfeitedDone":r(12,w=!0);case"OnBonusClaimError":T.data.bonusCode===f.code&&r(14,C=!0);break}},ce=(T,Z)=>({remainder:T%Z,quotient:Math.floor(T/Z)}),I=T=>{const Z=new Date;return new Date(T).getTime()-Z.getTime()},H=T=>{const Z=I(T)/6e4,{quotient:de,remainder:ze}=ce(Z,1440),{quotient:Je,remainder:ut}=ce(ze,60),et=Math.floor(ut),it=je=>Math.abs(je)<10?`0${je}`:je;return[{value:de,symbol:"d"},{value:Je,symbol:"h"},{value:et,symbol:"m"}].map(je=>it(je.value)+je.symbol).join(" ")},P=(T,Z,de,ze)=>{const Je=I(T);Je<0?de():(ze(H(T)),Je<Z&&setTimeout(()=>{window.postMessage({type:"OnWageringBonusExpired"})},Je))},U=()=>{f&&((f.endTime||f.trigger&&f.trigger.endTime)&&P(f.endTime||f.trigger.endTime,k,()=>r(18,Y="Expired"),T=>r(18,Y=T)),f.expiryDate&&P(f.expiryDate,k,()=>r(17,K="Expired"),T=>r(17,K=T)))},Re=T=>{let Z=(T.initialWagerRequirementAmount*10-T.remainingWagerRequirementAmount*10)/10;return T.status==="released"&&(Z+=T.remainingAmount),Z},Q=T=>{var Z,de;return((((Z=T.wageringProgress)==null?void 0:Z.currentLevelIncrement)*10-((de=T.wageringProgress)==null?void 0:de.gap)*10)/10).toFixed(1)},De=T=>{var ze,Je,ut;let Z,de;return T.type==="wagering"&&T.status==="active"&&T.wageringType==="money"?(de=(ze=T.wageringProgress)==null?void 0:ze.currentLevelIncrement,de!=0&&(Z=((((Je=T.wageringProgress)==null?void 0:Je.currentLevelIncrement)-((ut=T.wageringProgress)==null?void 0:ut.gap))/de*100).toFixed(1))):T.status=="released"?Z=100:(de=T.initialWagerRequirementAmount,de!=0&&(Z=((T.initialWagerRequirementAmount-T.remainingWagerRequirementAmount)/de*100).toFixed(1))),Number(Z)},Ne=T=>G(T).format("YYYY-MM-DD hh:mm:ss"),ir=T=>{if(!T.wallet)return;let Z=T.wallet.validityMinutes;return Z===0?"infinite":Math.round(Z/1440)+" days"},rn=T=>{if(T.products)return T.products;{let Z=[];return T.wallet&&(T.wallet.casino&&Z.push("Casino"),T.wallet.sports&&Z.push("Sports")),Z}},Kn=(T,Z)=>{let de;de=i(`bonusType.${Z.type}`);const ze=_u(Object.keys(T.increment)[0]);if(Z.mode==="percentage")return`${Z.bonusAmount*100}% up to ${ze}${Z.capAmount} ${de}`;if(Z.mode==="fixed")return`${ze}${Z.bonusAmount} ${de}`},nn=(T,Z)=>{switch(Z.type){case"standard":case"freeBet":return Kn(T,Z);case"freeRound":return`${Z.freespinNumber} Free Spins`;case"tournamentTicket":return"Enroll to Tournament Ticket";case"oddsBoost":return"Enroll to Odds Boost";case"cashBack":return"Enroll to Cash Back";case"stakeBack":return"Enroll to Stake Back"}},Cs=(T,Z)=>{var ut;const de=((ut=T.wageringProgress)==null?void 0:ut.currentLevel)-1||0,ze=Z.length-1,Je=et=>et.filter(it=>it.index>=0&&it.index<=ze).map(it=>{const Pt=Z[it.index];return{label:it.label,desc:Pt.bonuses.map(je=>nn(Pt,je))}});return T.status==="active"?Je([{label:"current",index:de},{label:"next",index:de+1}]):T.status?Je([{label:"last",index:ze},{label:"previous",index:ze-1}]):Je([{label:"first",index:0},{label:"next",index:1}])},xs=T=>{var Z,de;r(19,re=T.url?T.url:(de=(Z=T.presentation)==null?void 0:Z.url)==null?void 0:de.content)},Es=(T,Z="")=>({part:T,class:[T,Z].join(" ")}),Jn=T=>{window.postMessage({type:"BonusGameAction",gameId:T.id,name:T.name,gameLaunchUrl:T.href},window.location.href)},Qn=T=>{r(20,J=!0),r(21,F=T)},ei=()=>{r(20,J=!1),r(21,F=-1)},Ss=T=>{fetch(`${c}/${o}/bonuses-information/${T}`).then(Z=>Z.json()).then(Z=>{Z&&Z[T]&&(r(13,A=!0),r(15,L=Z[T]))})},ks=(T,Z)=>{let de=document.createElement("div");de.innerHTML=Z,T.append(de)},Ts=()=>r(23,W+=300),Ps=T=>Jn(T),Ds=T=>Qn(T),j=()=>ei(),ke=()=>r(23,W-=300),We=()=>{r(10,_=!_)},Cr=()=>window.postMessage({type:"OnWageringBonusAllRewardsClick",bonusWalletID:f.id}),Gt=()=>{r(11,E=!E)};function wf(T){It[T?"unshift":"push"](()=>{N=T,r(5,N)})}return e.$$set=T=>{"rawbonus"in T&&r(40,s=T.rawbonus),"lang"in T&&r(41,o=T.lang),"status"in T&&r(0,a=T.status),"mbsource"in T&&r(1,l=T.mbsource),"clientstyling"in T&&r(2,u=T.clientstyling),"clientstylingurl"in T&&r(3,d=T.clientstylingurl),"cmsendpoint"in T&&r(42,c=T.cmsendpoint),"translationurl"in T&&r(43,h=T.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&1&&(a==="claimable"&&r(8,v=!0),a==="active"&&r(8,v=!0)),e.$$.dirty[0]&1|e.$$.dirty[1]&1536&&r(44,n=s&&o&&a),e.$$.dirty[1]&8192&&n&&ae(),e.$$.dirty[0]&16|e.$$.dirty[1]&11264&&n&&f&&(o&&qd(o),c?Ss(f.id):xs(f)),e.$$.dirty[0]&36&&u&&N&&es(N,u),e.$$.dirty[0]&40&&d&&N&&ts(N,d),e.$$.dirty[0]&34&&l&&N&&rs(N,`${l}.Style`),e.$$.dirty[1]&4096&&h&&z()},[a,l,u,d,f,N,g,b,v,y,_,E,w,A,C,L,q,K,Y,re,J,F,V,W,i,ie,me,Re,Q,De,Ne,ir,rn,nn,Cs,Es,Jn,Qn,ei,ks,s,o,c,h,n,Ts,Ps,Ds,j,ke,We,Cr,Gt,wf]}class px extends qi{constructor(t){super(),Gi(this,t,fx,hx,Un,{rawbonus:40,lang:41,status:0,mbsource:1,clientstyling:2,clientstylingurl:3,cmsendpoint:42,translationurl:43},RC,[-1,-1,-1])}get rawbonus(){return this.$$.ctx[40]}set rawbonus(t){this.$$set({rawbonus:t}),_e()}get lang(){return this.$$.ctx[41]}set lang(t){this.$$set({lang:t}),_e()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),_e()}get mbsource(){return this.$$.ctx[1]}set mbsource(t){this.$$set({mbsource:t}),_e()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),_e()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),_e()}get cmsendpoint(){return this.$$.ctx[42]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),_e()}get translationurl(){return this.$$.ctx[43]}set translationurl(t){this.$$set({translationurl:t}),_e()}}customElements.define("casino-bonus-card",ji(px,{rawbonus:{},lang:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{},cmsendpoint:{},translationurl:{}},[],[],!0));function mx({totalItems:e,pageSize:t,currentPage:r,limit:n}){const i=Math.ceil(e/t),o=n&&i>bx(n)?gx({totalPages:i,limit:n,currentPage:r}):_x({totalPages:i});return[{type:"symbol",symbol:"<",value:r<=1?1:r-1},...o||[],{type:"symbol",symbol:">",value:r>=i?i:r+1}]}function _x({totalPages:e}){return new Array(e).fill(null).map((t,r)=>({type:"number",value:r+1}))}function gx({totalPages:e,limit:t,currentPage:r}){const n=t*2+2,i=1+n,s=e-n,o=i+2;return r<=i-t?Array(o).fill(null).map((a,l)=>l===o-1?{type:"number",value:e}:l===o-2?{type:"symbol",symbol:".",value:i+1}:{type:"number",value:l+1}):r>=s+t?Array(o).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:s-1}:{type:"number",value:s+l-2}):r>=i-t&&r<=s+t?Array(o).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:r-t+(l-2)}:l===o-1?{type:"number",value:e}:l===o-2?{type:"symbol",symbol:".",value:r+t+1}:{type:"number",value:r-t+(l-2)}):[]}function bx(e){return e*2+3+2}function vx(e){$i(e,"svelte-1tlblg6",":host{font-family:inherit}.GeneralPagination{margin:40px 0;display:flex}.PaginationWrapper{flex:1;display:flex;justify-content:center}.PaginationWrapper.PaginationWrapperMobile{flex-wrap:wrap;text-align:center}.PaginationWrapper .prev,.PaginationWrapper .next,.PaginationWrapper .number{color:var(--emw--bonus-pagination-text, var(--emw--color-contrast-600, #0D0D4D));font-size:16px;cursor:pointer;font-weight:700;border:1px solid var(--emw--bonus-pagination-border, var(--emw--color-gray-150, #828282));width:32px;height:32px;line-height:28px;text-align:center;margin-right:2px;border-radius:2px}.PaginationWrapper .prev.disabled,.PaginationWrapper .next.disabled,.PaginationWrapper .number.disabled{color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));border-color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));cursor:default}.PaginationWrapper .prev.active,.PaginationWrapper .next.active,.PaginationWrapper .number.active{background-color:var(--emw--bonus-pagination-bg, var(--emw--color-contrast, #00AEEF));color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF))}.PaginationWrapper .ellipsis{width:32px;margin-right:2px;text-align:center;line-height:20px}.PaginationWrapper .Page{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.PaginationWrapper .Page.active{background-color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF));font-weight:700}.PaginationInputWrapper{flex:1}.PaginationInputWrapper .PaginationInput{padding:7px 0 6px 0;width:32px;text-align:center}.PaginationInputWrapper .PaginationGoButton{background:none;border:none;cursor:pointer;font-size:18px}")}function qu(e,t,r){const n=e.slice();return n[29]=t[r],n}const yx=e=>({}),Zu=e=>({}),wx=e=>({}),Xu=e=>({}),Cx=e=>({}),Ku=e=>({}),xx=e=>({value:e[0]&32}),Ju=e=>({value:e[29].value});function Ex(e){let t;const r=e[21].next,n=Yn(r,e,e[20],Zu),i=n||Px();return{c(){i&&i.c()},m(s,o){i&&i.m(s,o),t=!0},p(s,o){n&&n.p&&(!t||o[0]&1048576)&&zn(n,r,s,s[20],t?Wn(r,s[20],o,yx):$n(s[20]),Zu)},i(s){t||(_t(i,s),t=!0)},o(s){Ht(i,s),t=!1},d(s){i&&i.d(s)}}}function Sx(e){let t;const r=e[21].prev,n=Yn(r,e,e[20],Xu),i=n||Dx();return{c(){i&&i.c()},m(s,o){i&&i.m(s,o),t=!0},p(s,o){n&&n.p&&(!t||o[0]&1048576)&&zn(n,r,s,s[20],t?Wn(r,s[20],o,wx):$n(s[20]),Xu)},i(s){t||(_t(i,s),t=!0)},o(s){Ht(i,s),t=!1},d(s){i&&i.d(s)}}}function kx(e){let t;const r=e[21].ellipsis,n=Yn(r,e,e[20],Ku),i=n||Ax();return{c(){i&&i.c()},m(s,o){i&&i.m(s,o),t=!0},p(s,o){n&&n.p&&(!t||o[0]&1048576)&&zn(n,r,s,s[20],t?Wn(r,s[20],o,Cx):$n(s[20]),Ku)},i(s){t||(_t(i,s),t=!0)},o(s){Ht(i,s),t=!1},d(s){i&&i.d(s)}}}function Tx(e){let t;const r=e[21].number,n=Yn(r,e,e[20],Ju),i=n||Mx(e);return{c(){i&&i.c()},m(s,o){i&&i.m(s,o),t=!0},p(s,o){n?n.p&&(!t||o[0]&1048608)&&zn(n,r,s,s[20],t?Wn(r,s[20],o,xx):$n(s[20]),Ju):i&&i.p&&(!t||o[0]&32)&&i.p(s,t?o:[-1,-1])},i(s){t||(_t(i,s),t=!0)},o(s){Ht(i,s),t=!1},d(s){i&&i.d(s)}}}function Px(e){let t;return{c(){t=O(">")},m(r,n){B(r,t,n)},d(r){r&&M(t)}}}function Dx(e){let t;return{c(){t=O("<")},m(r,n){B(r,t,n)},d(r){r&&M(t)}}}function Ax(e){let t;return{c(){t=x("span"),t.textContent="..."},m(r,n){B(r,t,n)},p:Pe,d(r){r&&M(t)}}}function Mx(e){let t,r=e[29].value+"",n;return{c(){t=x("span"),n=O(r)},m(i,s){B(i,t,s),p(t,n)},p(i,s){s[0]&32&&r!==(r=i[29].value+"")&&xe(n,r)},d(i){i&&M(t)}}}function Qu(e){let t,r,n,i,s,o,a,l;const u=[Tx,kx,Sx,Ex],d=[];function c(f,g){return f[29].type==="number"?0:f[29].type==="symbol"&&f[29].symbol==="."?1:f[29].type==="symbol"&&f[29].symbol==="<"?2:f[29].type==="symbol"&&f[29].symbol===">"?3:-1}~(r=c(e))&&(n=d[r]=u[r](e));function h(){return e[22](e[29])}return{c(){t=x("button"),n&&n.c(),i=$(),t.disabled=s=e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1,m(t,"class","option"),m(t,"role","presentation"),oe(t,"number",e[29].type==="number"),oe(t,"prev",e[29].type==="symbol"&&e[29].symbol==="<"),oe(t,"next",e[29].type==="symbol"&&e[29].symbol===">"),oe(t,"disabled",e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1),oe(t,"ellipsis",e[29].type==="symbol"&&e[29].symbol==="."),oe(t,"active",e[29].type==="number"&&e[29].value===e[1])},m(f,g){B(f,t,g),~r&&d[r].m(t,null),p(t,i),o=!0,a||(l=Le(t,"click",h),a=!0)},p(f,g){e=f;let b=r;r=c(e),r===b?~r&&d[r].p(e,g):(n&&(yd(),Ht(d[b],1,1,()=>{d[b]=null}),wd()),~r?(n=d[r],n?n.p(e,g):(n=d[r]=u[r](e),n.c()),_t(n,1),n.m(t,i)):n=null),(!o||g[0]&98&&s!==(s=e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1))&&(t.disabled=s),(!o||g[0]&32)&&oe(t,"number",e[29].type==="number"),(!o||g[0]&32)&&oe(t,"prev",e[29].type==="symbol"&&e[29].symbol==="<"),(!o||g[0]&32)&&oe(t,"next",e[29].type==="symbol"&&e[29].symbol===">"),(!o||g[0]&98)&&oe(t,"disabled",e[29].type==="symbol"&&e[29].symbol===">"&&e[1]>=e[6]||e[29].type==="symbol"&&e[29].symbol==="<"&&e[1]<=1),(!o||g[0]&32)&&oe(t,"ellipsis",e[29].type==="symbol"&&e[29].symbol==="."),(!o||g[0]&34)&&oe(t,"active",e[29].type==="number"&&e[29].value===e[1])},i(f){o||(_t(n),o=!0)},o(f){Ht(n),o=!1},d(f){f&&M(t),~r&&d[r].d(),a=!1,l()}}}function ed(e){let t,r,n,i,s,o,a,l;return{c(){t=x("div"),r=x("span"),r.textContent="Go To Page",n=$(),i=x("input"),s=$(),o=x("button"),o.textContent="Go",m(i,"type","number"),m(i,"class","PaginationInput"),m(i,"part","PaginationInput"),m(o,"type","button"),m(o,"class","PaginationGoButton"),m(t,"class","PaginationInputWrapper")},m(u,d){B(u,t,d),p(t,r),p(t,n),p(t,i),Ci(i,e[3]),p(t,s),p(t,o),a||(l=[Le(i,"input",e[23]),Le(i,"change",e[24]),Le(o,"click",e[25])],a=!0)},p(u,d){d[0]&8&&vd(i.value)!==u[3]&&Ci(i,u[3])},d(u){u&&M(t),a=!1,vt(l)}}}function Ox(e){let t,r,n,i,s,o,a=Ze(e[5]),l=[];for(let c=0;c<a.length;c+=1)l[c]=Qu(qu(e,a,c));const u=c=>Ht(l[c],1,1,()=>{l[c]=null});let d=e[7]&&ed(e);return{c(){t=x("div"),r=x("div");for(let c=0;c<l.length;c+=1)l[c].c();s=$(),d&&d.c(),m(r,"class",n="PaginationWrapper "+(e[2]?"PaginationWrapperMobile":"")),m(r,"part",i="PaginationWrapper "+(e[2]?"PaginationWrapperMobile":"")),m(t,"class","GeneralPagination"),m(t,"part","GeneralPagination")},m(c,h){B(c,t,h),p(t,r);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(r,null);p(t,s),d&&d.m(t,null),e[26](t),o=!0},p(c,h){if(h[0]&1048930){a=Ze(c[5]);let f;for(f=0;f<a.length;f+=1){const g=qu(c,a,f);l[f]?(l[f].p(g,h),_t(l[f],1)):(l[f]=Qu(g),l[f].c(),_t(l[f],1),l[f].m(r,null))}for(yd(),f=a.length;f<l.length;f+=1)u(f);wd()}(!o||h[0]&4&&n!==(n="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(r,"class",n),(!o||h[0]&4&&i!==(i="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(r,"part",i),c[7]?d?d.p(c,h):(d=ed(c),d.c(),d.m(t,null)):d&&(d.d(1),d=null)},i(c){if(!o){for(let h=0;h<a.length;h+=1)_t(l[h]);o=!0}},o(c){l=l.filter(Boolean);for(let h=0;h<l.length;h+=1)Ht(l[h]);o=!1},d(c){c&&M(t),tr(l,c),d&&d.d(),e[26](null)}}}function Bx(e,t,r){let n,i,s,o,a,{$$slots:l={},$$scope:u}=t,{totalitems:d=""}=t,{pagesize:c=10}=t,{currentpage:h="1"}=t,{limit:f=2}=t,{showinput:g=""}=t,{mbsource:b}=t,{clientstyling:v=""}=t,{clientstylingurl:y=""}=t,_=window.navigator.userAgent,E=!1,w;tc(_)&&(E=!0);let A,C,L;const q=F=>{window.postMessage({type:"PaginationChange",page:F.value})},K=F=>{r(4,C=F>a?a:F)};Vi(()=>()=>{});const Y=F=>q(F);function k(){A=vd(this.value),r(3,A)}const N=()=>K(A),re=()=>q({value:C});function J(F){It[F?"unshift":"push"](()=>{w=F,r(0,w)})}return e.$$set=F=>{"totalitems"in F&&r(10,d=F.totalitems),"pagesize"in F&&r(11,c=F.pagesize),"currentpage"in F&&r(12,h=F.currentpage),"limit"in F&&r(13,f=F.limit),"showinput"in F&&r(14,g=F.showinput),"mbsource"in F&&r(15,b=F.mbsource),"clientstyling"in F&&r(16,v=F.clientstyling),"clientstylingurl"in F&&r(17,y=F.clientstylingurl),"$$scope"in F&&r(20,u=F.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&65537&&v&&w&&es(w,v),e.$$.dirty[0]&131073&&y&&w&&ts(w,y),e.$$.dirty[0]&32769&&b&&w&&rs(w,`${b}.Style`),e.$$.dirty[0]&1024&&r(19,n=Number(d)),e.$$.dirty[0]&16384&&r(7,i=g),e.$$.dirty[0]&4096&&r(1,s=Number(h)),e.$$.dirty[0]&2048&&r(18,o=c),e.$$.dirty[0]&794626&&r(5,L=mx({totalItems:n,pageSize:o,currentPage:s,limit:f})),e.$$.dirty[0]&786432&&r(6,a=Math.ceil(n/o))},[w,s,E,A,C,L,a,i,q,K,d,c,h,f,g,b,v,y,o,n,u,l,Y,k,N,re,J]}class Nx extends qi{constructor(t){super(),Gi(this,t,Bx,Ox,Un,{totalitems:10,pagesize:11,currentpage:12,limit:13,showinput:14,mbsource:15,clientstyling:16,clientstylingurl:17},vx,[-1,-1])}get totalitems(){return this.$$.ctx[10]}set totalitems(t){this.$$set({totalitems:t}),_e()}get pagesize(){return this.$$.ctx[11]}set pagesize(t){this.$$set({pagesize:t}),_e()}get currentpage(){return this.$$.ctx[12]}set currentpage(t){this.$$set({currentpage:t}),_e()}get limit(){return this.$$.ctx[13]}set limit(t){this.$$set({limit:t}),_e()}get showinput(){return this.$$.ctx[14]}set showinput(t){this.$$set({showinput:t}),_e()}get mbsource(){return this.$$.ctx[15]}set mbsource(t){this.$$set({mbsource:t}),_e()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(t){this.$$set({clientstyling:t}),_e()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),_e()}}customElements.define("casino-bonus-pagination",ji(Nx,{totalitems:{},pagesize:{},currentpage:{},limit:{},showinput:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["number","ellipsis","prev","next"],[],!0));function Ix(e){$i(e,"svelte-bgb61g",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.BonusList{display:flex;flex-wrap:wrap}.BonusItem{flex:0 0 50%;max-width:50%;padding:10px}.BonusItemMobile{flex:0 0 100%;max-width:100%}.BonusPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusPaginationWrapper.BonusPaginationWrapperMobile{flex-wrap:wrap;text-align:center}.BonusPaginationWrapper .BonusesFirst,.BonusPaginationWrapper .BonusesPrev,.BonusPaginationWrapper .BonusesNext,.BonusPaginationWrapper .BonusesLast{color:var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00AEEF));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusPaginationWrapper .BonusesFirst.Inactive,.BonusPaginationWrapper .BonusesPrev.Inactive,.BonusPaginationWrapper .BonusesNext.Inactive,.BonusPaginationWrapper .BonusesLast.Inactive{color:var(--emw--bonus-pagination-inactive-text, var(--emw--color-gray-100, #E6E6E6));cursor:default}.BonusPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.BonusPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--bonus-pagination-active-bg, var(--emw--color-white, #FFFFFF));font-weight:700}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--bonus-pagination-border, var(--emw--color-blue, #00AEEF));border-color:var(--emw--bonus-pagination-border, var(--emw--color-blue, #00AEEF)) transparent var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00AEEF)) transparent;animation:LoaderForModal 1.2s linear infinite}@keyframes LoaderForModal{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.BonusCalendarWrapper{display:flex;gap:20px;flex-wrap:wrap;background:var(--emw--bonus-calendar-bg, var(--emw--color-gray-50, #F4F4F4));border-radius:5px;padding:27px;width:calc(50% - 20px);margin:10px}.BonusCalendarContent{display:flex;gap:20px;flex-wrap:wrap}.BonusCalendarContainer{display:flex;gap:20px;flex-wrap:wrap;flex:4}.BonusCalendarContainer.BonusCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%;flex-direction:column}.BonusCalendarTitle{font-size:18px;font-weight:700;width:100%;color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B))}.BonusCalendarStartDate,.BonusCalendarEndDate{color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B));display:flex;position:relative;align-items:center;gap:10px;min-width:140px;flex:0 0 47%;flex-wrap:wrap}.BonusCalendarStartDate vaadin-date-picker,.BonusCalendarEndDate vaadin-date-picker{width:100%}.BonusCalendarStartDate.BonusesCalendarMobile,.BonusCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:100%}.BonusCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusCalendarStartDate label,.BonusCalendarEndDate label{font-size:14px;font-weight:300;width:100%;text-transform:capitalize}.BonusCalendarStartDate input,.BonusCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--bonus-calendar-border, var(--emw--color-gray-100, #E6E6E6));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;outline-color:var(--emw--bonus-calendar-outline, var(--emw--color-primary, #00AEEF))}.BonusFilterButton{flex:2;background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F39C12));outline:5px solid var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;max-width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;transition-property:outline, color, background;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-filter-text, var(--emw--color-white, #FFFFFF));align-self:end;margin-bottom:5px}.BonusFilterButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusFilterButton.BonusFilterButtonMobile{width:100%;min-width:100%}.BonusFilterButton:hover{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F38B12));outline:0}.BonusFilterButton:active{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #F38B12));outline-color:var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.6)))}.BonusFilterWrapper{display:flex;gap:15px;padding:10px;align-items:flex-start}.BonusFilterWrapper.BonusFilterWrapperMobile{width:100%;flex-direction:column;gap:10px;padding:0;padding-bottom:15px}.BonusFilterContainer{display:flex;gap:5px;border-bottom:5px solid var(--emw--bonus-filter-border, var(--emw--color-green, #53B65A));width:100%}.BonusStatusFilter{color:var(--emw--bonus-status-filter-text, var(--emw--color-gray-300, #6D6D6D));cursor:pointer;width:200px;height:50px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:15px;background:var(--emw--bonus-status-filter-bg, var(--emw--color-white, #FFFFFF));border:1px solid var(--emw--bonus-status-filter-border, var(--emw--color-gray-300, #767171));border-bottom:0;border-radius:5px 5px 0px 0px}.BonusStatusFilter.BonusStatusFilterMobile{width:100%;height:44px}.BonusStatusFilter.active{color:var(--emw--bonus-status-active-bg, var(--emw--color-white, #FFFFFF));background:var(--emw--bonus-status-active-bg, var(--emw--color-gray-300, #4E5662));border:0.5px solid var(--emw--bonus-status-active-border, var(--emw--color-gray-300, #767171))}.BonusPageNumber{color:var(--emw--bonus-page-number-text, var(--emw--color-gray-150, #9C9C9C));flex:1;display:flex;flex-wrap:wrap}.BonusPageNumberTabs{display:flex}.BonusPageNumberTabs .BonusPageNumberTab{cursor:pointer;width:36px;height:36px;padding:10px;text-align:center}.BonusPageNumberTabs .BonusPageNumberTab.active{color:var(--emw--bonus-page-number-text, var(--emw--color-white, #FFFFFF));background:var(--emw--bonus-page-number-active, var(--emw--color-yellow, #F39C12));border-radius:50%}.BonusCodeContainer{color:var(--emw--bonus-page-number-text, var(--emw--color-black, #000000));display:flex;flex-direction:column;position:relative;width:calc(50% - 20px);background:#F4F4F4;border-radius:5px;padding:36px;margin:10px}.BonusCodeContainer label{font-size:18px;font-weight:700;padding-bottom:20px}.BonusCodeContainer .Asterisk{color:var(--emw--bonus-card-red, var(--emw--color-red, #FD2839))}.BonusCodeContainer.BonusCodeContainerMobile{width:100%;margin:0 0 10px}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{flex:3;height:50px;border:1px solid var(--emw--bonus-code-border, var(--emw--color-gray-50, #D1D1D1));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--bonus-code-outline, var(--emw--color-gray-100, #C1C1C1))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton{background:var(--emw--bonus-claim-bg, var(--emw--color-yellow, #F39C12));outline:5px solid var(--emw--bonus-claim-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;margin-top:5px;cursor:pointer;color:var(--emw--bonus-claim-text, var(--emw--color-white, #FFFFFF))}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton.BonusClaimButtonMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:hover{background:var(--emw--bonus-claim-hover-bg, var(--emw--color-yellow, #F38B12));outline:0}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:active{background:var(--emw--bonus-claim-active-bg, var(--emw--color-yellow, #F38B12));outline-color:var(--emw--bonus-claim-active-outline, var(--emw--color-white, rgba(243, 156, 18, 0.6)))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--color-primary, #00AEEF);background:var(--emw--color-primary-50, #FBECF4);color:var(--emw--color-primary, #00AEEF)}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, #FD2839)}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--bonus-modal-bg, var(--emw--color-black, rgba(0, 0, 0, 0.7)));display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emw--bonus-modal-bg, var(--emw--color-white, #FFFFFF));position:relative;padding:30px;border-top:5px solid var(--emw--bonus-modal-border, var(--emw--color-primary, #00AEEF));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--bonus-modal-bg, var(--emw--color-gray-50, #F9F8F8));padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--bonus-modal-border, var(--emw--color-gray-300, #58586B));color:var(--emw--bonus-modal-text, var(--emw--color-gray-300, #58586B));cursor:pointer;border-radius:5px;width:180px;height:38px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emw--bonus-modal-bg, var(--emw--color-primary, #00AEEF));border:1px solid var(--emw--bonus-modal-bg, var(--emw--color-primary, #00AEEF));color:var(--emw--bonus-modal-text, var(--emw--color-white, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}@media only screen and (max-width: 1024px){.BonusCodeContainer{width:100%}.BonusCalendarWrapper,.BonusCalendarContent,.BonusCalendarContainer{width:100%;flex-wrap:wrap}.BonusCalendarWrapper{margin:10px 0 0 0}.BonusFilterWrapper{width:100%;flex-direction:column;gap:10px;padding:10px 0}.BonusStatusFilter{width:100%}.BonusFilterButton{margin-top:0}.BonusFilterButton,.BonusClaimButton{width:100%}.BonusItem{flex:0 0 100%;max-width:100%;padding:0;margin:10px 0 0 0}.BonusCalendarStartDate,.BonusCalendarEndDate{flex-direction:column;align-items:flex-start;gap:5px}.BonusCalendarStartDate .VaadinDatePicker,.BonusCalendarEndDate .VaadinDatePicker{width:100%}.BonusCalendarTitle{width:100%}}')}function td(e,t,r){const n=e.slice();return n[64]=t[r],n}function rd(e,t,r){const n=e.slice();return n[67]=t[r],n}function nd(e){let t,r=e[24](`bonusCard.${e[67]}`)+"",n,i,s,o,a=[{type:"button"},e[23]("BonusStatusFilter"),{disabled:e[11]}],l={};for(let d=0;d<a.length;d+=1)l=D(l,a[d]);function u(){return e[40](e[67])}return{c(){t=x("button"),n=O(r),i=$(),S(t,l),oe(t,"active",e[67]===e[20])},m(d,c){B(d,t,c),p(t,n),p(t,i),t.autofocus&&t.focus(),s||(o=Le(t,"click",u),s=!0)},p(d,c){e=d,c[0]&16777216&&r!==(r=e[24](`bonusCard.${e[67]}`)+"")&&ne(n,r,l.contenteditable),S(t,l=He(a,[{type:"button"},c[0]&8388608&&e[23]("BonusStatusFilter"),c[0]&2048&&{disabled:e[11]}])),oe(t,"active",e[67]===e[20])},d(d){d&&M(t),s=!1,o()}}}function Lx(e){let t,r,n=e[24]("bonus.canlendarTitle")+"",i,s,o,a,l,u,d=e[24]("bonus.from")+"",c,h,f,g,b,v,y=e[24]("bonus.to")+"",_,E,w,A,C,L=e[24]("bonus.filter")+"",q,K,Y,k=[e[33]("BonusCalendarTitle")],N={};for(let U=0;U<k.length;U+=1)N=D(N,k[U]);let re=[{min:e[25]},{max:e[26]},{value:e[27]},{placeholder:"From"},e[33]("VaadinDatePicker")],J={};for(let U=0;U<re.length;U+=1)J=D(J,re[U]);let F=[e[23]("BonusCalendarStartDate")],V={};for(let U=0;U<F.length;U+=1)V=D(V,F[U]);let W=[{min:e[25]},{max:e[26]},{value:e[26]},{placeholder:"To"},e[33]("VaadinDatePicker")],z={};for(let U=0;U<W.length;U+=1)z=D(z,W[U]);let ae=[e[23]("BonusCalendarEndDate")],Ce={};for(let U=0;U<ae.length;U+=1)Ce=D(Ce,ae[U]);let Te=[e[23]("BonusCalendarContainer")],ie={};for(let U=0;U<Te.length;U+=1)ie=D(ie,Te[U]);let me=[e[23]("BonusFilterButton"),{disabled:e[11]}],le={};for(let U=0;U<me.length;U+=1)le=D(le,me[U]);let ce=[e[33]("BonusCalendarContent")],I={};for(let U=0;U<ce.length;U+=1)I=D(I,ce[U]);let H=[e[23]("BonusCalendarWrapper")],P={};for(let U=0;U<H.length;U+=1)P=D(P,H[U]);return{c(){t=x("div"),r=x("div"),i=O(n),s=$(),o=x("div"),a=x("div"),l=x("div"),u=x("label"),c=O(d),h=$(),f=x("vaadin-date-picker"),g=$(),b=x("div"),v=x("label"),_=O(y),E=$(),w=x("vaadin-date-picker"),A=$(),C=x("button"),q=O(L),S(r,N),m(u,"for","BonusCalendarStartDate"),S(f,J),S(l,V),m(v,"for","BonusCalendarEndDate"),S(w,z),S(b,Ce),S(a,ie),S(C,le),S(o,I),S(t,P)},m(U,Re){B(U,t,Re),p(t,r),p(r,i),p(t,s),p(t,o),p(o,a),p(a,l),p(l,u),p(u,c),p(l,h),p(l,f),e[43](f),p(a,g),p(a,b),p(b,v),p(v,_),p(b,E),p(b,w),e[44](w),p(o,A),p(o,C),p(C,q),C.autofocus&&C.focus(),K||(Y=Le(C,"click",e[45]),K=!0)},p(U,Re){Re[0]&16777216&&n!==(n=U[24]("bonus.canlendarTitle")+"")&&ne(i,n,N.contenteditable),Re[0]&16777216&&d!==(d=U[24]("bonus.from")+"")&&xe(c,d),S(l,V=He(F,[Re[0]&8388608&&U[23]("BonusCalendarStartDate")])),Re[0]&16777216&&y!==(y=U[24]("bonus.to")+"")&&xe(_,y),S(b,Ce=He(ae,[Re[0]&8388608&&U[23]("BonusCalendarEndDate")])),S(a,ie=He(Te,[Re[0]&8388608&&U[23]("BonusCalendarContainer")])),Re[0]&16777216&&L!==(L=U[24]("bonus.filter")+"")&&ne(q,L,le.contenteditable),S(C,le=He(me,[Re[0]&8388608&&U[23]("BonusFilterButton"),Re[0]&2048&&{disabled:U[11]}])),S(t,P=He(H,[Re[0]&8388608&&U[23]("BonusCalendarWrapper")]))},d(U){U&&M(t),e[43](null),e[44](null),K=!1,Y()}}}function Fx(e){let t,r,n,i=e[24]("bonus.bonusCode")+"",s,o,a,l,u,d,c,h=e[24]("bonus.claim")+"",f,g,b,v,y,_=[e[23]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},{placeholder:u=e[24]("bonus.placeholder")}],E={};for(let k=0;k<_.length;k+=1)E=D(E,_[k]);let w=[e[23]("BonusClaimButton"),{disabled:g=e[17]||!e[21]}],A={};for(let k=0;k<w.length;k+=1)A=D(A,w[k]);let C=[e[23]("BonusCodeWrapper")],L={};for(let k=0;k<C.length;k+=1)L=D(L,C[k]);let q=e[18]&&id(e),K=[e[23]("BonusCodeContainer")],Y={};for(let k=0;k<K.length;k+=1)Y=D(Y,K[k]);return{c(){t=x("div"),r=x("label"),n=x("span"),n.textContent="*",s=O(i),o=$(),a=x("div"),l=x("input"),d=$(),c=x("button"),f=O(h),b=$(),q&&q.c(),m(n,"class","Asterisk"),m(r,"for","BonusCode"),S(l,E),S(c,A),S(a,L),S(t,Y)},m(k,N){B(k,t,N),p(t,r),p(r,n),p(r,s),p(t,o),p(t,a),p(a,l),l.autofocus&&l.focus(),Ci(l,e[16]),p(a,d),p(a,c),p(c,f),c.autofocus&&c.focus(),p(t,b),q&&q.m(t,null),v||(y=[Le(l,"input",e[41]),Le(l,"keyup",e[34]),Le(c,"click",e[42])],v=!0)},p(k,N){N[0]&16777216&&i!==(i=k[24]("bonus.bonusCode")+"")&&xe(s,i),S(l,E=He(_,[N[0]&8388608&&k[23]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},N[0]&16777216&&u!==(u=k[24]("bonus.placeholder"))&&{placeholder:u}])),N[0]&65536&&l.value!==k[16]&&Ci(l,k[16]),N[0]&16777216&&h!==(h=k[24]("bonus.claim")+"")&&ne(f,h,A.contenteditable),S(c,A=He(w,[N[0]&8388608&&k[23]("BonusClaimButton"),N[0]&2228224&&g!==(g=k[17]||!k[21])&&{disabled:g}])),S(a,L=He(C,[N[0]&8388608&&k[23]("BonusCodeWrapper")])),k[18]?q?q.p(k,N):(q=id(k),q.c(),q.m(t,null)):q&&(q.d(1),q=null),S(t,Y=He(K,[N[0]&8388608&&k[23]("BonusCodeContainer")]))},d(k){k&&M(t),q&&q.d(),v=!1,vt(y)}}}function id(e){let t,r=e[24]("bonus.invalidBonusCode")+"",n;return{c(){t=x("p"),n=O(r),m(t,"class","InvalidBonusCodeMessage"),m(t,"part","InvalidBonusCodeMessage")},m(i,s){B(i,t,s),p(t,n)},p(i,s){s[0]&16777216&&r!==(r=i[24]("bonus.invalidBonusCode")+"")&&xe(n,r)},d(i){i&&M(t)}}}function Rx(e){let t,r;function n(a,l){return a[10].length>0?Wx:a[12]?Yx:Ux}let i=n(e),s=i(e),o=e[10].length!==0&&od(e);return{c(){s.c(),t=$(),o&&o.c(),r=Wt()},m(a,l){s.m(a,l),B(a,t,l),o&&o.m(a,l),B(a,r,l)},p(a,l){i===(i=n(a))&&s?s.p(a,l):(s.d(1),s=i(a),s&&(s.c(),s.m(t.parentNode,t))),a[10].length!==0?o?o.p(a,l):(o=od(a),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},d(a){a&&(M(t),M(r)),s.d(a),o&&o.d(a)}}}function Hx(e){let t,r=[e[33]("ModalLoader")],n={};for(let i=0;i<r.length;i+=1)n=D(n,r[i]);return{c(){t=x("div"),S(t,n)},m(i,s){B(i,t,s)},p:Pe,d(i){i&&M(t)}}}function Ux(e){let t=e[24]("bonus.noBonus")+"",r;return{c(){r=O(t)},m(n,i){B(n,r,i)},p(n,i){i[0]&16777216&&t!==(t=n[24]("bonus.noBonus")+"")&&xe(r,t)},d(n){n&&M(r)}}}function Yx(e){let t,r=e[24]("bonus.error")+"",n,i,s;return{c(){t=x("div"),n=O(r),i=O(": "),s=O(e[12]),uo(t,"color","red")},m(o,a){B(o,t,a),p(t,n),p(t,i),p(t,s)},p(o,a){a[0]&16777216&&r!==(r=o[24]("bonus.error")+"")&&xe(n,r),a[0]&4096&&xe(s,o[12])},d(o){o&&M(t)}}}function Wx(e){let t,r=Ze(e[10]),n=[];for(let o=0;o<r.length;o+=1)n[o]=sd(td(e,r,o));let i=[e[33]("BonusList")],s={};for(let o=0;o<i.length;o+=1)s=D(s,i[o]);return{c(){t=x("ul");for(let o=0;o<n.length;o+=1)n[o].c();S(t,s)},m(o,a){B(o,t,a);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(t,null)},p(o,a){if(a[0]&9438333){r=Ze(o[10]);let l;for(l=0;l<r.length;l+=1){const u=td(o,r,l);n[l]?n[l].p(u,a):(n[l]=sd(u),n[l].c(),n[l].m(t,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=r.length}},d(o){o&&M(t),tr(n,o)}}}function sd(e){let t,r,n,i=[{rawbonus:JSON.stringify(e[64]),status:e[20],cmsendpoint:e[2],lang:e[0],clientstyling:e[4],clientstylingurl:e[5],mbsource:e[3],translationurl:e[6]}],s={};for(let l=0;l<i.length;l+=1)s=D(s,i[l]);let o=[e[23]("BonusItem")],a={};for(let l=0;l<o.length;l+=1)a=D(a,o[l]);return{c(){t=x("li"),r=x("casino-bonus-card"),n=$(),S(r,s),S(t,a)},m(l,u){B(l,t,u),p(t,r),p(t,n)},p(l,u){S(r,s=He(i,[u[0]&1049725&&{rawbonus:JSON.stringify(l[64]),status:l[20],cmsendpoint:l[2],lang:l[0],clientstyling:l[4],clientstylingurl:l[5],mbsource:l[3],translationurl:l[6]}])),S(t,a=He(o,[u[0]&8388608&&l[23]("BonusItem")]))},d(l){l&&M(t)}}}function od(e){let t;return{c(){t=x("casino-bonus-pagination"),tt(t,"totalitems",e[14]),tt(t,"currentpage",e[13]),tt(t,"pagesize",e[1]),tt(t,"limit",e[15]),tt(t,"clientstyling",e[4]),tt(t,"clientstylingurl",e[5]),tt(t,"mbsource",e[3])},m(r,n){B(r,t,n)},p(r,n){n[0]&16384&&tt(t,"totalitems",r[14]),n[0]&8192&&tt(t,"currentpage",r[13]),n[0]&2&&tt(t,"pagesize",r[1]),n[0]&32768&&tt(t,"limit",r[15]),n[0]&16&&tt(t,"clientstyling",r[4]),n[0]&32&&tt(t,"clientstylingurl",r[5]),n[0]&8&&tt(t,"mbsource",r[3])},d(r){r&&M(t)}}}function ad(e){let t,r,n,i,s=e[24]("bonus.forfeitMessage")+"",o,a,l,u,d=e[24]("bonus.forfeitCancel")+"",c,h,f,g=e[24]("bonus.forfeitConfirm")+"",b,v,y,_=[e[33]("ModalText")],E={};for(let V=0;V<_.length;V+=1)E=D(E,_[V]);let w=[e[33]("ModalCancel")],A={};for(let V=0;V<w.length;V+=1)A=D(A,w[V]);let C=[e[33]("ModalConfirm")],L={};for(let V=0;V<C.length;V+=1)L=D(L,C[V]);let q=[e[33]("ModalButtons")],K={};for(let V=0;V<q.length;V+=1)K=D(K,q[V]);let Y=[e[33]("ModalBody")],k={};for(let V=0;V<Y.length;V+=1)k=D(k,Y[V]);let N=[e[33]("ModalContent")],re={};for(let V=0;V<N.length;V+=1)re=D(re,N[V]);let J=[e[23]("ModalWrapper")],F={};for(let V=0;V<J.length;V+=1)F=D(F,J[V]);return{c(){t=x("div"),r=x("div"),n=x("div"),i=x("p"),o=O(s),a=$(),l=x("div"),u=x("button"),c=O(d),h=$(),f=x("button"),b=O(g),S(i,E),S(u,A),S(f,L),S(l,K),S(n,k),S(r,re),S(t,F)},m(V,W){B(V,t,W),p(t,r),p(r,n),p(n,i),p(i,o),p(n,a),p(n,l),p(l,u),p(u,c),u.autofocus&&u.focus(),p(l,h),p(l,f),p(f,b),f.autofocus&&f.focus(),v||(y=[Le(u,"click",e[31]),Le(f,"click",e[46])],v=!0)},p(V,W){W[0]&16777216&&s!==(s=V[24]("bonus.forfeitMessage")+"")&&ne(o,s,E.contenteditable),W[0]&16777216&&d!==(d=V[24]("bonus.forfeitCancel")+"")&&ne(c,d,A.contenteditable),W[0]&16777216&&g!==(g=V[24]("bonus.forfeitConfirm")+"")&&ne(b,g,L.contenteditable),S(t,F=He(J,[W[0]&8388608&&V[23]("ModalWrapper")]))},d(V){V&&M(t),v=!1,vt(y)}}}function zx(e){let t,r,n,i,s,o,a=Ze(e[28]),l=[];for(let w=0;w<a.length;w+=1)l[w]=nd(rd(e,a,w));let u=[e[23]("BonusFilterWrapper")],d={};for(let w=0;w<u.length;w+=1)d=D(d,u[w]);function c(w,A){if(w[20]==="claimable")return Fx;if(w[20]==="completed")return Lx}let h=c(e),f=h&&h(e);function g(w,A){return w[11]?Hx:Rx}let b=g(e),v=b(e),y=e[19]&&ad(e),_=[e[33]("BonusesController")],E={};for(let w=0;w<_.length;w+=1)E=D(E,_[w]);return{c(){t=x("div"),r=x("div"),n=x("div");for(let w=0;w<l.length;w+=1)l[w].c();i=$(),f&&f.c(),s=$(),v.c(),o=$(),y&&y.c(),m(n,"class","BonusFilterContainer"),m(n,"part","BonusFilterContainer"),S(r,d),S(t,E)},m(w,A){B(w,t,A),p(t,r),p(r,n);for(let C=0;C<l.length;C+=1)l[C]&&l[C].m(n,null);p(t,i),f&&f.m(t,null),p(t,s),v.m(t,null),p(t,o),y&&y.m(t,null),e[47](t)},p(w,A){if(A[0]&294651904|A[1]&2){a=Ze(w[28]);let C;for(C=0;C<a.length;C+=1){const L=rd(w,a,C);l[C]?l[C].p(L,A):(l[C]=nd(L),l[C].c(),l[C].m(n,null))}for(;C<l.length;C+=1)l[C].d(1);l.length=a.length}S(r,d=He(u,[A[0]&8388608&&w[23]("BonusFilterWrapper")])),h===(h=c(w))&&f?f.p(w,A):(f&&f.d(1),f=h&&h(w),f&&(f.c(),f.m(t,s))),b===(b=g(w))&&v?v.p(w,A):(v.d(1),v=b(w),v&&(v.c(),v.m(t,o))),w[19]?y?y.p(w,A):(y=ad(w),y.c(),y.m(t,null)):y&&(y.d(1),y=null)},i:Pe,o:Pe,d(w){w&&M(t),tr(l,w),f&&f.d(),v.d(),y&&y.d(),e[47](null)}}}function $x(e,t,r){let n,i,s;_d(e,jd,j=>r(24,s=j));let{endpoint:o=""}=t,{lang:a="en"}=t,{session:l=""}=t,{currency:u="EUR"}=t,{limit:d=""}=t,{cmsendpoint:c=""}=t,{mbsource:h}=t,{clientstyling:f=""}=t,{clientstylingurl:g=""}=t,{translationurl:b=""}=t,v=window.navigator.userAgent,y=!1,_=[],E=!0,w="",A=1,C=0,L=2,q=Us(xl(new Date,6),"yyyy-MM-dd"),K=Us(new Date,"yyyy-MM-dd"),Y=Us(xl(new Date,3),"yyyy-MM-dd"),k,N="",re=!0,J=!1,F=!1,V=Y,W=K,z,ae,Ce="active",Te=!0,ie=["active","completed","claimable"],me="";tc(v)&&(y=!0,L=1);const le=()=>{fetch(b).then(ke=>ke.json()).then(ke=>{Object.keys(ke).forEach(We=>{Si(We,ke[We])})}).catch(ke=>{console.log(ke)})};Object.keys(ki).forEach(j=>{Si(j,ki[j])}),Vi(()=>(window.addEventListener("message",ce,!1),()=>{z.removeEventListener("change",Kn),ae.removeEventListener("change",nn),window.removeEventListener("message",ce)}));const ce=j=>{switch(j.data.type){case"PaginationChange":r(13,A=j.data.page),De(A);break;case"OnBonusClaimed":H(j.data.bonusCode);break;case"OnBonusForfeit":r(22,me=j.data.bonus.id),r(19,F=!0)}},I=()=>st(this,null,function*(){De(1)}),H=(j,ke)=>st(this,null,function*(){r(21,Te=!1);const We=yield P(j);We.success?(r(18,J=!1),De(1)):(r(12,w=We.errorMessage),ke?r(18,J=!0):window.postMessage({type:"OnBonusClaimError",message:w,bonusCode:j})),window.postMessage({type:"OnBonusClaimedDone"}),r(21,Te=!0)}),P=j=>st(this,null,function*(){return yield rn(o+"/v1/bonus/claim",{method:"PUT",body:JSON.stringify({bonusCode:j,currency:u}),headers:{"x-SessionId":l,accept:"text/plain","Content-Type":"application/json-patch+json"}})}),U=j=>st(this,null,function*(){r(21,Te=!1);const ke=yield Re(j);ke.success?De(1):r(12,w=ke.errorMessage),window.postMessage({type:"OnBonusForfeitedDone"}),r(21,Te=!0),r(19,F=!1)}),Re=j=>st(this,null,function*(){const ke=new URL(`${o}/v1/bonus/forfeit`),We={bonusID:j,lang:a};return Object.keys(We).map(Cr=>{ke.searchParams.append(Cr,We[Cr])}),yield rn(ke,{method:"DELETE",headers:{"x-SessionId":l,accept:"text/plain"}})}),Q=()=>{window.postMessage({type:"EnableScroll"},window.location.href),window.postMessage({type:"OnBonusForfeitedDone"}),r(19,F=!1)},De=j=>st(this,null,function*(){A!==j&&r(13,A=j);const ke=(j-1)*Number(d);r(11,E=!0),r(10,_=[]);const We=yield Ne(o,l,ke,{lang:a,limit:d});We.success?(r(14,C=We.total),r(10,_=We.items||We.bonuses)):r(12,w=We.errorMessage),r(11,E=!1)}),Ne=(Gt,wf,T,...Z)=>st(this,[Gt,wf,T,...Z],function*(j,ke,We,Cr={}){const Pt=Cr,{limit:de,lang:ze}=Pt,Je=Ms(Pt,["limit","lang"]),ut=(()=>{switch(Ce){case"claimable":return Ce;default:return"granted"}})(),et=sn(sr({pagination:`limit=${de},offset=${We}`,language:ze},Je),{sortOrder:"desc"});if(Ce==="completed"){let je=new Date(V).toISOString(),Cf=new Date(W+" 23:59:59").toISOString();et.startTime=je,et.endTime=Cf,et.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",et.status="completed,released,forfeited,expired,closed"}Ce==="active"&&(et.type="standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",et.status="active");const it=new URL(`${j}/v1/bonus/${ut}`);return Ce!=="claimable"?it.searchParams.append("expand","freeSpin"):delete et.sortOrder,Object.keys(et).map(je=>{it.searchParams.append(je,et[je])}),yield rn(it,{headers:sr({},ke?{"x-SessionId":ke}:{})})}),ir=(j,ke="")=>({part:j,class:[j,ke].join(" ")}),rn=(We,...Cr)=>st(this,[We,...Cr],function*(j,ke={}){let Gt;return Gt=yield fetch(j,ke),Gt.ok===!1?{errorMessage:Gt.status}:(Gt=yield Gt.json(),Gt)}),Kn=j=>{V=j.target.value},nn=j=>{W=j.target.value},Cs=()=>{z.addEventListener("change",Kn,!1),ae.addEventListener("change",nn,!1)},xs=()=>(r(18,J=!1),!!N),Es=()=>{r(17,re=!xs())},Jn=j=>{r(20,Ce=j),De(1)};function Qn(){N=this.value,r(16,N)}const ei=()=>{H(N,!0)};function Ss(j){It[j?"unshift":"push"](()=>{z=j,r(8,z)})}function ks(j){It[j?"unshift":"push"](()=>{ae=j,r(9,ae)})}const Ts=()=>De(1),Ps=()=>U(me);function Ds(j){It[j?"unshift":"push"](()=>{k=j,r(7,k)})}return e.$$set=j=>{"endpoint"in j&&r(35,o=j.endpoint),"lang"in j&&r(0,a=j.lang),"session"in j&&r(36,l=j.session),"currency"in j&&r(37,u=j.currency),"limit"in j&&r(1,d=j.limit),"cmsendpoint"in j&&r(2,c=j.cmsendpoint),"mbsource"in j&&r(3,h=j.mbsource),"clientstyling"in j&&r(4,f=j.clientstyling),"clientstylingurl"in j&&r(5,g=j.clientstylingurl),"translationurl"in j&&r(6,b=j.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&768&&z&&ae&&Cs(),e.$$.dirty[1]&128&&r(23,n=(j,ke="")=>ir(`${j}${y?` ${j}Mobile`:""}`,ke)),e.$$.dirty[0]&1&&a&&qd(a),e.$$.dirty[0]&3|e.$$.dirty[1]&48&&r(39,i=o&&l&&a&&d),e.$$.dirty[1]&256&&i&&I(),e.$$.dirty[0]&144&&f&&k&&es(k,f),e.$$.dirty[0]&160&&g&&k&&ts(k,g),e.$$.dirty[0]&136&&h&&k&&rs(k,`${h}.Style`),e.$$.dirty[0]&64&&b&&le()},[a,d,c,h,f,g,b,k,z,ae,_,E,w,A,C,L,N,re,J,F,Ce,Te,me,n,s,q,K,Y,ie,H,U,Q,De,ir,Es,o,l,u,y,i,Jn,Qn,ei,Ss,ks,Ts,Ps,Ds]}class yf extends qi{constructor(t){super(),Gi(this,t,$x,zx,Un,{endpoint:35,lang:0,session:36,currency:37,limit:1,cmsendpoint:2,mbsource:3,clientstyling:4,clientstylingurl:5,translationurl:6},Ix,[-1,-1,-1])}get endpoint(){return this.$$.ctx[35]}set endpoint(t){this.$$set({endpoint:t}),_e()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),_e()}get session(){return this.$$.ctx[36]}set session(t){this.$$set({session:t}),_e()}get currency(){return this.$$.ctx[37]}set currency(t){this.$$set({currency:t}),_e()}get limit(){return this.$$.ctx[1]}set limit(t){this.$$set({limit:t}),_e()}get cmsendpoint(){return this.$$.ctx[2]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),_e()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),_e()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),_e()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),_e()}get translationurl(){return this.$$.ctx[6]}set translationurl(t){this.$$set({translationurl:t}),_e()}}ji(yf,{endpoint:{},lang:{},session:{},currency:{},limit:{},cmsendpoint:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=yf;
|