@everymatrix/player-account-controller 1.86.27 → 1.86.29

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.
Files changed (46) hide show
  1. package/components/{PlayerAccountController-BjjnKSNv.js → PlayerAccountController-CAYFIoUH.js} +8 -8
  2. package/components/{PlayerAccountController-di-iybbJ.js → PlayerAccountController-CJ_MmKAa.js} +8 -8
  3. package/components/{PlayerAccountController-Ct6iDIuk.cjs → PlayerAccountController-DmGmIzjU.cjs} +1 -1
  4. package/components/{PlayerAccountProductRestriction-BJAduEjx.js → PlayerAccountProductRestriction-D5TZl8TF.js} +2409 -2409
  5. package/components/{PlayerAccountProductRestriction-paZWUVZe.js → PlayerAccountProductRestriction-DWjdmOFI.js} +2391 -2391
  6. package/components/{PlayerAccountProductRestriction-BSaB1Z1x.cjs → PlayerAccountProductRestriction-Drc1Iu2o.cjs} +271 -271
  7. package/components/{PlayerAccountSelfExclusion-Ds9P4hmK.cjs → PlayerAccountSelfExclusion-CP3lzn6g.cjs} +150 -150
  8. package/components/{PlayerAccountSelfExclusion-DLRJgApt.js → PlayerAccountSelfExclusion-CXSti58w.js} +714 -714
  9. package/components/{PlayerAccountSelfExclusion-DSwi4nAJ.js → PlayerAccountSelfExclusion-CySbO2r9.js} +726 -726
  10. package/components/{PlayerAccountTimeout-CRG_9mgx.js → PlayerAccountTimeout-B3nTHnGv.js} +3 -3
  11. package/components/{PlayerAccountTimeout-CTqFdcnf.js → PlayerAccountTimeout-DML3GL0q.js} +3 -3
  12. package/components/{PlayerAccountTimeout-Dqs-d-Ji.cjs → PlayerAccountTimeout-DlmuOZH4.cjs} +1 -1
  13. package/components/{PlayerAccountTransactionsHistory-DVY3z4HK.cjs → PlayerAccountTransactionsHistory-B4RBuKIy.cjs} +1 -1
  14. package/components/{PlayerAccountTransactionsHistory-CyyqSaiL.js → PlayerAccountTransactionsHistory-CvjVg0YD.js} +2 -2
  15. package/components/{PlayerAccountTransactionsHistory-infw6lqU.js → PlayerAccountTransactionsHistory-DahpoUMs.js} +2 -2
  16. package/components/{PlayerBonusHistory-TiQjDVS2.js → PlayerBonusHistory-D8dTdXD3.js} +1 -1
  17. package/components/{PlayerBonusHistory-WzMPdrT7.cjs → PlayerBonusHistory-DtiQesaY.cjs} +1 -1
  18. package/components/{PlayerBonusHistory-CG8fOSGT.js → PlayerBonusHistory-Dw0IzpdC.js} +1 -1
  19. package/components/{PlayerGamingHistory-CjmQujzZ.cjs → PlayerGamingHistory-2XEKCfky.cjs} +1 -1
  20. package/components/{PlayerGamingHistory-O1SUuv2U.js → PlayerGamingHistory-D3DfJ0iq.js} +1 -1
  21. package/components/{PlayerGamingHistory-DBzGCuMH.js → PlayerGamingHistory-iAUjv5w2.js} +1 -1
  22. package/es2015/player-account-controller.cjs +1 -1
  23. package/es2015/player-account-controller.js +1 -1
  24. package/esnext/player-account-controller.js +1 -1
  25. package/package.json +1 -1
  26. package/stencil/{checkbox-group-input_16-BIw89eoT.js → checkbox-group-input_16-BOT_mAaq.js} +1193 -1193
  27. package/stencil/{checkbox-group-input_16-BMEzg7Gz.cjs → checkbox-group-input_16-BWWCYYjv.cjs} +252 -252
  28. package/stencil/{checkbox-group-input_16-BFr9NGkY.js → checkbox-group-input_16-t-IA7jce.js} +1193 -1193
  29. package/stencil/{index-6e523641-C2D7V1Bj.js → index-6e523641-B9tbNrXZ.js} +1 -1
  30. package/stencil/{index-6e523641-CKmTS6uC.cjs → index-6e523641-D2onrjgE.cjs} +1 -1
  31. package/stencil/{index-6e523641-BB_MNuoS.js → index-6e523641-DH0Ezdpy.js} +1 -1
  32. package/stencil/{index-c666b6e6-NVC2zx0G.cjs → index-c666b6e6-C_Ikwulq.cjs} +1 -1
  33. package/stencil/{index-c666b6e6-HOoK0aCl.js → index-c666b6e6-ntQxf3v0.js} +1 -1
  34. package/stencil/{index-c666b6e6-B08HoHDU.js → index-c666b6e6-oA7gKfyQ.js} +1 -1
  35. package/stencil/{pam-change-password-DP79fBlM.js → pam-change-password-4Ma6qr7N.js} +1 -1
  36. package/stencil/{pam-change-password-6b535bd5-BS0P8HsF.js → pam-change-password-6b535bd5-BGKp-lSg.js} +1 -1
  37. package/stencil/{pam-change-password-6b535bd5-e4lf7K_C.cjs → pam-change-password-6b535bd5-D7RnmJnb.cjs} +1 -1
  38. package/stencil/{pam-change-password-6b535bd5-DBBGauy1.js → pam-change-password-6b535bd5-lnslobwc.js} +1 -1
  39. package/stencil/{pam-change-password-De-m8S9K.cjs → pam-change-password-BIw1BZMI.cjs} +1 -1
  40. package/stencil/{pam-change-password-CJow26r0.js → pam-change-password-slwZr-b4.js} +1 -1
  41. package/stencil/{user-transaction-history-BkmoDFTs.js → user-transaction-history-BdbQJzhb.js} +1 -1
  42. package/stencil/{user-transaction-history-Bd1eC2iV.js → user-transaction-history-CcfxBfFN.js} +1 -1
  43. package/stencil/{user-transaction-history-BOayQu-b.cjs → user-transaction-history-CucZiFYD.cjs} +1 -1
  44. package/stencil/{user-transaction-history_2-CI6uuSIf.cjs → user-transaction-history_2-B2XvgToy.cjs} +270 -270
  45. package/stencil/{user-transaction-history_2-PSCBkBVb.js → user-transaction-history_2-B9fxyLUj.js} +3243 -3221
  46. package/stencil/{user-transaction-history_2-BSVh_kdE.js → user-transaction-history_2-Ds0pNCu8.js} +2728 -2750
@@ -1,49 +1,49 @@
1
- "use strict";var Vt=(o,e,t)=>new Promise((r,i)=>{var a=l=>{try{s(t.next(l))}catch(d){i(d)}},n=l=>{try{s(t.throw(l))}catch(d){i(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(o,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index-6e523641-CKmTS6uC.cjs"),As={en:{deposit:"Deposit",withdrawals:"Withdrawals",show:"Show",from:"From",to:"To",filter:"Filter",transactionId:"Transaction ID",date:"Date",amount:"Amount",productType:"Product Type",status:"Status",noData:"There are no account activities",transactionTitle:"Transaction History"},hr:{deposit:"Uplate",withdrawals:"Isplate",show:"Prikaži",from:"Od",to:"Do",filter:"Filter",transactionId:"ID transakcije",date:"Datum",amount:"Iznos",productType:"Vrsta proizvoda",status:"Status",noData:"Nema aktivnosti na računu",transactionTitle:"Povijest transakcija"}};class I{constructor(){}static loadCustomTranslations(e){return Vt(this,null,function*(){try{const t=yield fetch(e,{headers:{"Content-Type":"application/json"}});if(!t.ok){const i=yield t.text();throw new Error(i)}const r=yield t.json();I.updateTranslations(r)}catch(t){console.error(`Failed to load translations ${e}. ${t.message}`)}})}static translate(e,t){var r,i;const a=I.getAvaliableLanguages(t);return((i=(r=I.customTranslation)===null||r===void 0?void 0:r[a.customLanguage])===null||i===void 0?void 0:i[e])||I.defaultTranslation[a.predefinedLanguage][e]}static getAvaliableLanguages(e){var t;const r=!((t=I.customLanguages)===null||t===void 0)&&t.includes(e)?e:I.defaultLanguage;return{predefinedLanguage:I.supportedLanguages.includes(e)?e:I.defaultLanguage,customLanguage:r}}static updateTranslations(e){I.customLanguages=Array.from(new Set([...I.supportedLanguages,...Object.keys(e).map(t=>t.toLowerCase())])),I.customTranslation=e}}I.defaultLanguage="en";I.supportedLanguages=["en"];I.defaultTranslation=As;const Ps=()=>m.h("div",{class:"loader"},m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null));function _e(o){"@babel/helpers - typeof";return _e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(o)}function V(o,e){if(e.length<o)throw new TypeError(o+" argument"+(o>1?"s":"")+" required, but only "+e.length+" present")}function Is(o){return V(1,arguments),o instanceof Date||_e(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}function K(o){V(1,arguments);var e=Object.prototype.toString.call(o);return o instanceof Date||_e(o)==="object"&&e==="[object Date]"?new Date(o.getTime()):typeof o=="number"||e==="[object Number]"?new Date(o):((typeof o=="string"||e==="[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 Ss(o){if(V(1,arguments),!Is(o)&&typeof o!="number")return!1;var e=K(o);return!isNaN(Number(e))}function Q(o){if(o===null||o===!0||o===!1)return NaN;var e=Number(o);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Ds(o,e){V(2,arguments);var t=K(o).getTime(),r=Q(e);return new Date(t+r)}function ga(o,e){V(2,arguments);var t=Q(e);return Ds(o,-t)}var Os=864e5;function Ms(o){V(1,arguments);var e=K(o),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=t-r;return Math.floor(i/Os)+1}function qe(o){V(1,arguments);var e=1,t=K(o),r=t.getUTCDay(),i=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}function ba(o){V(1,arguments);var e=K(o),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var i=qe(r),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var n=qe(a);return e.getTime()>=i.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function zs(o){V(1,arguments);var e=ba(o),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=qe(t);return r}var Ns=6048e5;function ya(o){V(1,arguments);var e=K(o),t=qe(e).getTime()-zs(e).getTime();return Math.round(t/Ns)+1}var Ls={};function Xe(){return Ls}function De(o,e){var t,r,i,a,n,s,l,d;V(1,arguments);var c=Xe(),h=Q((t=(r=(i=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=K(o),p=u.getUTCDay(),b=(p<h?7:0)+p-h;return u.setUTCDate(u.getUTCDate()-b),u.setUTCHours(0,0,0,0),u}function gi(o,e){var t,r,i,a,n,s,l,d;V(1,arguments);var c=K(o),h=c.getUTCFullYear(),u=Xe(),p=Q((t=(r=(i=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(h+1,0,p),b.setUTCHours(0,0,0,0);var N=De(b,e),D=new Date(0);D.setUTCFullYear(h,0,p),D.setUTCHours(0,0,0,0);var O=De(D,e);return c.getTime()>=N.getTime()?h+1:c.getTime()>=O.getTime()?h:h-1}function Fs(o,e){var t,r,i,a,n,s,l,d;V(1,arguments);var c=Xe(),h=Q((t=(r=(i=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),u=gi(o,e),p=new Date(0);p.setUTCFullYear(u,0,h),p.setUTCHours(0,0,0,0);var b=De(p,e);return b}var Bs=6048e5;function wa(o,e){V(1,arguments);var t=K(o),r=De(t,e).getTime()-Fs(t,e).getTime();return Math.round(r/Bs)+1}function M(o,e){for(var t=o<0?"-":"",r=Math.abs(o).toString();r.length<e;)r="0"+r;return t+r}var Vs={y:function(e,t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return M(t==="yy"?i%100:i,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):M(r+1,2)},d:function(e,t){return M(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return M(e.getUTCHours()%12||12,t.length)},H:function(e,t){return M(e.getUTCHours(),t.length)},m:function(e,t){return M(e.getUTCMinutes(),t.length)},s:function(e,t){return M(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,i=e.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,r-3));return M(a,t.length)}};const be=Vs;var Fe={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Rs={G:function(e,t,r){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var i=e.getUTCFullYear(),a=i>0?i:1-i;return r.ordinalNumber(a,{unit:"year"})}return be.y(e,t)},Y:function(e,t,r,i){var a=gi(e,i),n=a>0?a:1-a;if(t==="YY"){var s=n%100;return M(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):M(n,t.length)},R:function(e,t){var r=ba(e);return M(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return M(r,t.length)},Q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return M(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return M(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,r){var i=e.getUTCMonth();switch(t){case"M":case"MM":return be.M(e,t);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,r){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return M(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,r,i){var a=wa(e,i);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):M(a,t.length)},I:function(e,t,r){var i=ya(e);return t==="Io"?r.ordinalNumber(i,{unit:"week"}):M(i,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):be.d(e,t)},D:function(e,t,r){var i=Ms(e);return t==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):M(i,t.length)},E:function(e,t,r){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,r,i){var a=e.getUTCDay(),n=(a-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return M(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,i){var a=e.getUTCDay(),n=(a-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return M(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var i=e.getUTCDay(),a=i===0?7:i;switch(t){case"i":return String(a);case"ii":return M(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,r){var i=e.getUTCHours(),a=i/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){var i=e.getUTCHours(),a;switch(i===12?a=Fe.noon:i===0?a=Fe.midnight:a=i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){var i=e.getUTCHours(),a;switch(i>=17?a=Fe.evening:i>=12?a=Fe.afternoon:i>=4?a=Fe.morning:a=Fe.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return be.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):be.H(e,t)},K:function(e,t,r){var i=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(i,{unit:"hour"}):M(i,t.length)},k:function(e,t,r){var i=e.getUTCHours();return i===0&&(i=24),t==="ko"?r.ordinalNumber(i,{unit:"hour"}):M(i,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):be.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):be.s(e,t)},S:function(e,t){return be.S(e,t)},X:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return mo(n);case"XXXX":case"XX":return Te(n);case"XXXXX":case"XXX":default:return Te(n,":")}},x:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();switch(t){case"x":return mo(n);case"xxxx":case"xx":return Te(n);case"xxxxx":case"xxx":default:return Te(n,":")}},O:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+po(n,":");case"OOOO":default:return"GMT"+Te(n,":")}},z:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+po(n,":");case"zzzz":default:return"GMT"+Te(n,":")}},t:function(e,t,r,i){var a=i._originalDate||e,n=Math.floor(a.getTime()/1e3);return M(n,t.length)},T:function(e,t,r,i){var a=i._originalDate||e,n=a.getTime();return M(n,t.length)}};function po(o,e){var t=o>0?"-":"+",r=Math.abs(o),i=Math.floor(r/60),a=r%60;if(a===0)return t+String(i);var n=e;return t+String(i)+n+M(a,2)}function mo(o,e){if(o%60===0){var t=o>0?"-":"+";return t+M(Math.abs(o)/60,2)}return Te(o,e)}function Te(o,e){var t=e||"",r=o>0?"-":"+",i=Math.abs(o),a=M(Math.floor(i/60),2),n=M(i%60,2);return r+a+t+n}const $s=Rs;var fo=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},xa=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Hs=function(e,t){var r=e.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return fo(e,t);var n;switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",fo(i,t)).replace("{{time}}",xa(a,t))},Us={p:xa,P:Hs};const qr=Us;function Ca(o){var e=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()));return e.setUTCFullYear(o.getFullYear()),o.getTime()-e.getTime()}var Ws=["D","DD"],qs=["YY","YYYY"];function ka(o){return Ws.indexOf(o)!==-1}function Ea(o){return qs.indexOf(o)!==-1}function Qt(o,e,t){if(o==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ys={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"}},js=function(e,t,r){var i,a=Ys[e];return typeof a=="string"?i=a:t===1?i=a.one:i=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const Gs=js;function Ir(o){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):o.defaultWidth,r=o.formats[t]||o.formats[o.defaultWidth];return r}}var Ks={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Xs={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Qs={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Js={date:Ir({formats:Ks,defaultWidth:"full"}),time:Ir({formats:Xs,defaultWidth:"full"}),dateTime:Ir({formats:Qs,defaultWidth:"full"})};const Zs=Js;var el={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tl=function(e,t,r,i){return el[e]};const rl=tl;function ot(o){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",i;if(r==="formatting"&&o.formattingValues){var a=o.defaultFormattingWidth||o.defaultWidth,n=t!=null&&t.width?String(t.width):a;i=o.formattingValues[n]||o.formattingValues[a]}else{var s=o.defaultWidth,l=t!=null&&t.width?String(t.width):o.defaultWidth;i=o.values[l]||o.values[s]}var d=o.argumentCallback?o.argumentCallback(e):e;return i[d]}}var il={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ol={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},al={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"]},nl={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"]},sl={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"}},ll={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"}},dl=function(e,t){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},cl={ordinalNumber:dl,era:ot({values:il,defaultWidth:"wide"}),quarter:ot({values:ol,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ot({values:al,defaultWidth:"wide"}),day:ot({values:nl,defaultWidth:"wide"}),dayPeriod:ot({values:sl,defaultWidth:"wide",formattingValues:ll,defaultFormattingWidth:"wide"})};const hl=cl;function at(o){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,i=r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth],a=e.match(i);if(!a)return null;var n=a[0],s=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],l=Array.isArray(s)?pl(s,function(h){return h.test(n)}):ul(s,function(h){return h.test(n)}),d;d=o.valueCallback?o.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var c=e.slice(n.length);return{value:d,rest:c}}}function ul(o,e){for(var t in o)if(o.hasOwnProperty(t)&&e(o[t]))return t}function pl(o,e){for(var t=0;t<o.length;t++)if(e(o[t]))return t}function ml(o){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(o.matchPattern);if(!r)return null;var i=r[0],a=e.match(o.parsePattern);if(!a)return null;var n=o.valueCallback?o.valueCallback(a[0]):a[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(i.length);return{value:n,rest:s}}}var fl=/^(\d+)(th|st|nd|rd)?/i,_l=/\d+/i,vl={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},gl={any:[/^b/i,/^(a|c)/i]},bl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},yl={any:[/1/i,/2/i,/3/i,/4/i]},wl={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},xl={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]},Cl={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},kl={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]},El={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},Tl={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}},Al={ordinalNumber:ml({matchPattern:fl,parsePattern:_l,valueCallback:function(e){return parseInt(e,10)}}),era:at({matchPatterns:vl,defaultMatchWidth:"wide",parsePatterns:gl,defaultParseWidth:"any"}),quarter:at({matchPatterns:bl,defaultMatchWidth:"wide",parsePatterns:yl,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:at({matchPatterns:wl,defaultMatchWidth:"wide",parsePatterns:xl,defaultParseWidth:"any"}),day:at({matchPatterns:Cl,defaultMatchWidth:"wide",parsePatterns:kl,defaultParseWidth:"any"}),dayPeriod:at({matchPatterns:El,defaultMatchWidth:"any",parsePatterns:Tl,defaultParseWidth:"any"})};const Pl=Al;var Il={code:"en-US",formatDistance:Gs,formatLong:Zs,formatRelative:rl,localize:hl,match:Pl,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ta=Il;var Sl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ol=/^'([^]*?)'?$/,Ml=/''/g,zl=/[a-zA-Z]/;function Ie(o,e,t){var r,i,a,n,s,l,d,c,h,u,p,b,N,D;V(2,arguments);var O=String(e),A=Xe(),U=(r=(i=void 0)!==null&&i!==void 0?i:A.locale)!==null&&r!==void 0?r:Ta,W=Q((a=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:A.firstWeekContainsDate)!==null&&n!==void 0?n:(d=A.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ne=Q((h=(u=(p=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&p!==void 0?p:A.weekStartsOn)!==null&&u!==void 0?u:(N=A.locale)===null||N===void 0||(D=N.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&h!==void 0?h:0);if(!(ne>=0&&ne<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!U.localize)throw new RangeError("locale must contain localize property");if(!U.formatLong)throw new RangeError("locale must contain formatLong property");var ge=K(o);if(!Ss(ge))throw new RangeError("Invalid time value");var et=Ca(ge),tt=ga(ge,et),rt={firstWeekContainsDate:W,weekStartsOn:ne,locale:U,_originalDate:ge},Tr=O.match(Dl).map(function(j){var ee=j[0];if(ee==="p"||ee==="P"){var ke=qr[ee];return ke(j,U.formatLong)}return j}).join("").match(Sl).map(function(j){if(j==="''")return"'";var ee=j[0];if(ee==="'")return Nl(j);var ke=$s[ee];if(ke)return Ea(j)&&Qt(j,e,String(o)),ka(j)&&Qt(j,e,String(o)),ke(tt,j,U.localize,rt);if(ee.match(zl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return j}).join("");return Tr}function Nl(o){var e=o.match(Ol);return e?e[1].replace(Ml,"'"):o}class Aa{constructor(){}static dateToFormatedString(e,t){const r=t?Ie(e,t):e.toLocaleDateString("en-gb"),i=e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return`${r}, ${i}`}}class Pa{constructor(){}static format(e,t){let r=`${t} ${e}`;try{r=new Intl.NumberFormat("en-US",{style:"currency",currency:e}).format(t)}catch(i){}return r}}const Ll=o=>m.h("div",{class:"data-transaction"},m.h("p",null,o.productType),m.h("p",{class:"text-style text-style-status"},m.h("span",{class:o.status.toLowerCase()},o.status)),m.h("p",{class:"date"},o.transId," | ",Aa.dateToFormatedString(new Date(o.created),o.dateformat)),m.h("p",{class:"text-style"},Pa.format(o.currency,o.realAmount)," ")),Fl=o=>m.h("div",{class:"page-size"},m.h("span",null,I.translate("show",o.language)),o.pageSizes.map(e=>m.h("button",{class:o.currentPageSize===e?"active":"",onClick:()=>o.changePageSize(e)},e))),Bl=({source:o,language:e,dateformat:t})=>{const r=[{name:I.translate("transactionId",e)},{name:I.translate("date",e)},{name:I.translate("amount",e)},{name:I.translate("productType",e)},{name:I.translate("status",e)}];return m.h("table",null,m.h("thead",null,m.h("tr",null,r.map(i=>m.h("th",null,i.name)))),m.h("tbody",null,o.map(i=>m.h("tr",null,m.h("td",null,i.transId),m.h("td",null,Aa.dateToFormatedString(new Date(i.created),t)),m.h("td",null,Pa.format(i.currency,i.realAmount)," "),m.h("td",null,i.productType),m.h("td",null,m.h("span",{class:i.status.toLowerCase()},i.status))))))};function _o(o,e){if(o){const t=document.createElement("style");t.innerHTML=e,o.appendChild(t)}}function vo(o,e){if(!o||!e)return;const t=new URL(e);fetch(t.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,o&&o.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Vl(o,e,t){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(e,i=>{r.innerHTML=i,o&&o.appendChild(r)})}}function go(o,e){(e==null||e>o.length)&&(e=o.length);for(var t=0,r=Array(e);t<e;t++)r[t]=o[t];return r}function Rl(o,e){if(o){if(typeof o=="string")return go(o,e);var t={}.toString.call(o).slice(8,-1);return t==="Object"&&o.constructor&&(t=o.constructor.name),t==="Map"||t==="Set"?Array.from(o):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?go(o,e):void 0}}function bo(o,e){var t=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!t){if(Array.isArray(o)||(t=Rl(o))||e){t&&(o=t);var r=0,i=function(){};return{s:i,n:function(){return r>=o.length?{done:!0}:{done:!1,value:o[r++]}},e:function(d){throw d},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,n=!0,s=!1;return{s:function(){t=t.call(o)},n:function(){var d=t.next();return n=d.done,d},e:function(d){s=!0,a=d},f:function(){try{n||t.return==null||t.return()}finally{if(s)throw a}}}}function $l(o,e){if(o==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t]);return o}function v(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function Yr(o,e){return Yr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Yr(o,e)}function E(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&Yr(o,e)}function Jt(o){return Jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jt(o)}function Ia(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ia=function(){return!!o})()}function Hl(o,e){if(e&&(_e(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(o)}function T(o){var e=Ia();return function(){var t,r=Jt(o);if(e){var i=Jt(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return Hl(this,t)}}function w(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function Ul(o,e){if(_e(o)!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var r=t.call(o,e);if(_e(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function Sa(o){var e=Ul(o,"string");return _e(e)=="symbol"?e:e+""}function Wl(o,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(o,Sa(r.key),r)}}function x(o,e,t){return e&&Wl(o.prototype,e),Object.defineProperty(o,"prototype",{writable:!1}),o}function _(o,e,t){return(e=Sa(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}var ql=10,Da=function(){function o(){w(this,o),_(this,"priority",void 0),_(this,"subPriority",0)}return x(o,[{key:"validate",value:function(t,r){return!0}}]),o}(),Yl=function(o){E(t,o);var e=T(t);function t(r,i,a,n,s){var l;return w(this,t),l=e.call(this),l.value=r,l.validateValue=i,l.setValue=a,l.priority=n,s&&(l.subPriority=s),l}return x(t,[{key:"validate",value:function(i,a){return this.validateValue(i,this.value,a)}},{key:"set",value:function(i,a,n){return this.setValue(i,a,this.value,n)}}]),t}(Da),jl=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",ql),_(v(r),"subPriority",-1),r}return x(t,[{key:"set",value:function(i,a){if(a.timestampIsSet)return i;var n=new Date(0);return n.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),n.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),n}}]),t}(Da),S=function(){function o(){w(this,o),_(this,"incompatibleTokens",void 0),_(this,"priority",void 0),_(this,"subPriority",void 0)}return x(o,[{key:"run",value:function(t,r,i,a){var n=this.parse(t,r,i,a);return n?{setter:new Yl(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,r,i){return!0}}]),o}(),Gl=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",140),_(v(r),"incompatibleTokens",["R","u","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"})||n.era(i,{width:"narrow"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})||n.era(i,{width:"abbreviated"})||n.era(i,{width:"narrow"})}}},{key:"set",value:function(i,a,n){return a.era=n,i.setUTCFullYear(n,0,1),i.setUTCHours(0,0,0,0),i}}]),t}(S),Kl=6e4,Xl=36e5,Ql=1e3,R={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},de={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function $(o,e){return o&&{value:e(o.value),rest:o.rest}}function F(o,e){var t=e.match(o);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function ce(o,e){var t=e.match(o);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var r=t[1]==="+"?1:-1,i=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,n=t[5]?parseInt(t[5],10):0;return{value:r*(i*Xl+a*Kl+n*Ql),rest:e.slice(t[0].length)}}function Oa(o){return F(R.anyDigitsSigned,o)}function B(o,e){switch(o){case 1:return F(R.singleDigit,e);case 2:return F(R.twoDigits,e);case 3:return F(R.threeDigits,e);case 4:return F(R.fourDigits,e);default:return F(new RegExp("^\\d{1,"+o+"}"),e)}}function Zt(o,e){switch(o){case 1:return F(R.singleDigitSigned,e);case 2:return F(R.twoDigitsSigned,e);case 3:return F(R.threeDigitsSigned,e);case 4:return F(R.fourDigitsSigned,e);default:return F(new RegExp("^-?\\d{1,"+o+"}"),e)}}function bi(o){switch(o){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Ma(o,e){var t=e>0,r=t?e:1-e,i;if(r<=50)i=o||100;else{var a=r+50,n=Math.floor(a/100)*100,s=o>=a%100;i=o+n-(s?100:0)}return t?i:1-i}function za(o){return o%400===0||o%4===0&&o%100!==0}var Jl=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="yy"}};switch(a){case"y":return $(B(4,i),s);case"yo":return $(n.ordinalNumber(i,{unit:"year"}),s);default:return $(B(a.length,i),s)}}},{key:"validate",value:function(i,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(i,a,n){var s=i.getUTCFullYear();if(n.isTwoDigitYear){var l=Ma(n.year,s);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var d=!("era"in a)||a.era===1?n.year:1-n.year;return i.setUTCFullYear(d,0,1),i.setUTCHours(0,0,0,0),i}}]),t}(S),Zl=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return $(B(4,i),s);case"Yo":return $(n.ordinalNumber(i,{unit:"year"}),s);default:return $(B(a.length,i),s)}}},{key:"validate",value:function(i,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(i,a,n,s){var l=gi(i,s);if(n.isTwoDigitYear){var d=Ma(n.year,l);return i.setUTCFullYear(d,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),De(i,s)}var c=!("era"in a)||a.era===1?n.year:1-n.year;return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),De(i,s)}}]),t}(S),ed=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a){return Zt(a==="R"?4:a.length,i)}},{key:"set",value:function(i,a,n){var s=new Date(0);return s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),qe(s)}}]),t}(S),td=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a){return Zt(a==="u"?4:a.length,i)}},{key:"set",value:function(i,a,n){return i.setUTCFullYear(n,0,1),i.setUTCHours(0,0,0,0),i}}]),t}(S),rd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",120),_(v(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"Q":case"QQ":return B(a.length,i);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"})||n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})||n.quarter(i,{width:"abbreviated",context:"formatting"})||n.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=1&&a<=4}},{key:"set",value:function(i,a,n){return i.setUTCMonth((n-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),t}(S),id=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",120),_(v(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"q":case"qq":return B(a.length,i);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"})||n.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})||n.quarter(i,{width:"abbreviated",context:"standalone"})||n.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=1&&a<=4}},{key:"set",value:function(i,a,n){return i.setUTCMonth((n-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),t}(S),od=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),_(v(r),"priority",110),r}return x(t,[{key:"parse",value:function(i,a,n){var s=function(d){return d-1};switch(a){case"M":return $(F(R.month,i),s);case"MM":return $(B(2,i),s);case"Mo":return $(n.ordinalNumber(i,{unit:"month"}),s);case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"})||n.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})||n.month(i,{width:"abbreviated",context:"formatting"})||n.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,n){return i.setUTCMonth(n,1),i.setUTCHours(0,0,0,0),i}}]),t}(S),ad=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",110),_(v(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){var s=function(d){return d-1};switch(a){case"L":return $(F(R.month,i),s);case"LL":return $(B(2,i),s);case"Lo":return $(n.ordinalNumber(i,{unit:"month"}),s);case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"})||n.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})||n.month(i,{width:"abbreviated",context:"standalone"})||n.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,n){return i.setUTCMonth(n,1),i.setUTCHours(0,0,0,0),i}}]),t}(S);function nd(o,e,t){V(2,arguments);var r=K(o),i=Q(e),a=wa(r,t)-i;return r.setUTCDate(r.getUTCDate()-a*7),r}var sd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",100),_(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"w":return F(R.week,i);case"wo":return n.ordinalNumber(i,{unit:"week"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=53}},{key:"set",value:function(i,a,n,s){return De(nd(i,n,s),s)}}]),t}(S);function ld(o,e){V(2,arguments);var t=K(o),r=Q(e),i=ya(t)-r;return t.setUTCDate(t.getUTCDate()-i*7),t}var dd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",100),_(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"I":return F(R.week,i);case"Io":return n.ordinalNumber(i,{unit:"week"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=53}},{key:"set",value:function(i,a,n){return qe(ld(i,n))}}]),t}(S),cd=[31,28,31,30,31,30,31,31,30,31,30,31],hd=[31,29,31,30,31,30,31,31,30,31,30,31],ud=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"subPriority",1),_(v(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"d":return F(R.date,i);case"do":return n.ordinalNumber(i,{unit:"date"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){var n=i.getUTCFullYear(),s=za(n),l=i.getUTCMonth();return s?a>=1&&a<=hd[l]:a>=1&&a<=cd[l]}},{key:"set",value:function(i,a,n){return i.setUTCDate(n),i.setUTCHours(0,0,0,0),i}}]),t}(S),pd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"subpriority",1),_(v(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"D":case"DD":return F(R.dayOfYear,i);case"Do":return n.ordinalNumber(i,{unit:"date"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){var n=i.getUTCFullYear(),s=za(n);return s?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(i,a,n){return i.setUTCMonth(0,n),i.setUTCHours(0,0,0,0),i}}]),t}(S);function yi(o,e,t){var r,i,a,n,s,l,d,c;V(2,arguments);var h=Xe(),u=Q((r=(i=(a=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:h.weekStartsOn)!==null&&i!==void 0?i:(d=h.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=K(o),b=Q(e),N=p.getUTCDay(),D=b%7,O=(D+7)%7,A=(O<u?7:0)+b-N;return p.setUTCDate(p.getUTCDate()+A),p}var md=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"})||n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})||n.day(i,{width:"abbreviated",context:"formatting"})||n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,n,s){return i=yi(i,n,s),i.setUTCHours(0,0,0,0),i}}]),t}(S),fd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n,s){var l=function(c){var h=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+h};switch(a){case"e":case"ee":return $(B(a.length,i),l);case"eo":return $(n.ordinalNumber(i,{unit:"day"}),l);case"eee":return n.day(i,{width:"abbreviated",context:"formatting"})||n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})||n.day(i,{width:"abbreviated",context:"formatting"})||n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,n,s){return i=yi(i,n,s),i.setUTCHours(0,0,0,0),i}}]),t}(S),_d=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n,s){var l=function(c){var h=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+h};switch(a){case"c":case"cc":return $(B(a.length,i),l);case"co":return $(n.ordinalNumber(i,{unit:"day"}),l);case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"})||n.day(i,{width:"short",context:"standalone"})||n.day(i,{width:"narrow",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"})||n.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})||n.day(i,{width:"abbreviated",context:"standalone"})||n.day(i,{width:"short",context:"standalone"})||n.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,n,s){return i=yi(i,n,s),i.setUTCHours(0,0,0,0),i}}]),t}(S);function vd(o,e){V(2,arguments);var t=Q(e);t%7===0&&(t=t-7);var r=1,i=K(o),a=i.getUTCDay(),n=t%7,s=(n+7)%7,l=(s<r?7:0)+t-a;return i.setUTCDate(i.getUTCDate()+l),i}var gd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){var s=function(d){return d===0?7:d};switch(a){case"i":case"ii":return B(a.length,i);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return $(n.day(i,{width:"abbreviated",context:"formatting"})||n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return $(n.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return $(n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return $(n.day(i,{width:"wide",context:"formatting"})||n.day(i,{width:"abbreviated",context:"formatting"})||n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,a){return a>=1&&a<=7}},{key:"set",value:function(i,a,n){return i=vd(i,n),i.setUTCHours(0,0,0,0),i}}]),t}(S),bd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",80),_(v(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"a":case"aa":case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"})||n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})||n.dayPeriod(i,{width:"abbreviated",context:"formatting"})||n.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,n){return i.setUTCHours(bi(n),0,0,0),i}}]),t}(S),yd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",80),_(v(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"b":case"bb":case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"})||n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})||n.dayPeriod(i,{width:"abbreviated",context:"formatting"})||n.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,n){return i.setUTCHours(bi(n),0,0,0),i}}]),t}(S),wd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",80),_(v(r),"incompatibleTokens",["a","b","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"})||n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})||n.dayPeriod(i,{width:"abbreviated",context:"formatting"})||n.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,n){return i.setUTCHours(bi(n),0,0,0),i}}]),t}(S),xd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["H","K","k","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"h":return F(R.hour12h,i);case"ho":return n.ordinalNumber(i,{unit:"hour"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=12}},{key:"set",value:function(i,a,n){var s=i.getUTCHours()>=12;return s&&n<12?i.setUTCHours(n+12,0,0,0):!s&&n===12?i.setUTCHours(0,0,0,0):i.setUTCHours(n,0,0,0),i}}]),t}(S),Cd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"H":return F(R.hour23h,i);case"Ho":return n.ordinalNumber(i,{unit:"hour"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=23}},{key:"set",value:function(i,a,n){return i.setUTCHours(n,0,0,0),i}}]),t}(S),kd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["h","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"K":return F(R.hour11h,i);case"Ko":return n.ordinalNumber(i,{unit:"hour"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,n){var s=i.getUTCHours()>=12;return s&&n<12?i.setUTCHours(n+12,0,0,0):i.setUTCHours(n,0,0,0),i}}]),t}(S),Ed=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"k":return F(R.hour24h,i);case"ko":return n.ordinalNumber(i,{unit:"hour"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=24}},{key:"set",value:function(i,a,n){var s=n<=24?n%24:n;return i.setUTCHours(s,0,0,0),i}}]),t}(S),Td=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",60),_(v(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"m":return F(R.minute,i);case"mo":return n.ordinalNumber(i,{unit:"minute"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=59}},{key:"set",value:function(i,a,n){return i.setUTCMinutes(n,0,0),i}}]),t}(S),Ad=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",50),_(v(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"s":return F(R.second,i);case"so":return n.ordinalNumber(i,{unit:"second"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=59}},{key:"set",value:function(i,a,n){return i.setUTCSeconds(n,0),i}}]),t}(S),Pd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",30),_(v(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(i,a){var n=function(l){return Math.floor(l*Math.pow(10,-a.length+3))};return $(B(a.length,i),n)}},{key:"set",value:function(i,a,n){return i.setUTCMilliseconds(n),i}}]),t}(S),Id=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",10),_(v(r),"incompatibleTokens",["t","T","x"]),r}return x(t,[{key:"parse",value:function(i,a){switch(a){case"X":return ce(de.basicOptionalMinutes,i);case"XX":return ce(de.basic,i);case"XXXX":return ce(de.basicOptionalSeconds,i);case"XXXXX":return ce(de.extendedOptionalSeconds,i);case"XXX":default:return ce(de.extended,i)}}},{key:"set",value:function(i,a,n){return a.timestampIsSet?i:new Date(i.getTime()-n)}}]),t}(S),Sd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",10),_(v(r),"incompatibleTokens",["t","T","X"]),r}return x(t,[{key:"parse",value:function(i,a){switch(a){case"x":return ce(de.basicOptionalMinutes,i);case"xx":return ce(de.basic,i);case"xxxx":return ce(de.basicOptionalSeconds,i);case"xxxxx":return ce(de.extendedOptionalSeconds,i);case"xxx":default:return ce(de.extended,i)}}},{key:"set",value:function(i,a,n){return a.timestampIsSet?i:new Date(i.getTime()-n)}}]),t}(S),Dd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",40),_(v(r),"incompatibleTokens","*"),r}return x(t,[{key:"parse",value:function(i){return Oa(i)}},{key:"set",value:function(i,a,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(S),Od=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",20),_(v(r),"incompatibleTokens","*"),r}return x(t,[{key:"parse",value:function(i){return Oa(i)}},{key:"set",value:function(i,a,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(S),Md={G:new Gl,y:new Jl,Y:new Zl,R:new ed,u:new td,Q:new rd,q:new id,M:new od,L:new ad,w:new sd,I:new dd,d:new ud,D:new pd,E:new md,e:new fd,c:new _d,i:new gd,a:new bd,b:new yd,B:new wd,h:new xd,H:new Cd,K:new kd,k:new Ed,m:new Td,s:new Ad,S:new Pd,X:new Id,x:new Sd,t:new Dd,T:new Od},zd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Nd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ld=/^'([^]*?)'?$/,Fd=/''/g,Bd=/\S/,Vd=/[a-zA-Z]/;function Na(o,e,t,r){var i,a,n,s,l,d,c,h,u,p,b,N,D,O;V(3,arguments);var A=String(o),U=String(e),W=Xe(),ne=(i=(a=void 0)!==null&&a!==void 0?a:W.locale)!==null&&i!==void 0?i:Ta;if(!ne.match)throw new RangeError("locale must contain match property");var ge=Q((n=(s=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:W.firstWeekContainsDate)!==null&&s!==void 0?s:(c=W.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(ge>=1&&ge<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var et=Q((u=(p=(b=(N=void 0)!==null&&N!==void 0?N:void 0)!==null&&b!==void 0?b:W.weekStartsOn)!==null&&p!==void 0?p:(D=W.locale)===null||D===void 0||(O=D.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&u!==void 0?u:0);if(!(et>=0&&et<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(U==="")return A===""?K(t):new Date(NaN);var tt={firstWeekContainsDate:ge,weekStartsOn:et,locale:ne},rt=[new jl],Tr=U.match(Nd).map(function(q){var L=q[0];if(L in qr){var ae=qr[L];return ae(q,ne.formatLong)}return q}).join("").match(zd),j=[],ee=bo(Tr),ke;try{var Es=function(){var L=ke.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Ea(L)&&Qt(L,U,o),!(r!=null&&r.useAdditionalDayOfYearTokens)&&ka(L)&&Qt(L,U,o);var ae=L[0],Bt=Md[ae];if(Bt){var co=Bt.incompatibleTokens;if(Array.isArray(co)){var ho=j.find(function(uo){return co.includes(uo.token)||uo.token===ae});if(ho)throw new RangeError("The format string mustn't contain `".concat(ho.fullToken,"` and `").concat(L,"` at the same time"))}else if(Bt.incompatibleTokens==="*"&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(L,"` and any other token at the same time"));j.push({token:ae,fullToken:L});var Pr=Bt.run(A,L,ne.match,tt);if(!Pr)return{v:new Date(NaN)};rt.push(Pr.setter),A=Pr.rest}else{if(ae.match(Vd))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ae+"`");if(L==="''"?L="'":ae==="'"&&(L=Rd(L)),A.indexOf(L)===0)A=A.slice(L.length);else return{v:new Date(NaN)}}};for(ee.s();!(ke=ee.n()).done;){var ao=Es();if(_e(ao)==="object")return ao.v}}catch(q){ee.e(q)}finally{ee.f()}if(A.length>0&&Bd.test(A))return new Date(NaN);var Ts=rt.map(function(q){return q.priority}).sort(function(q,L){return L-q}).filter(function(q,L,ae){return ae.indexOf(q)===L}).map(function(q){return rt.filter(function(L){return L.priority===q}).sort(function(L,ae){return ae.subPriority-L.subPriority})}).map(function(q){return q[0]}),Ar=K(t);if(isNaN(Ar.getTime()))return new Date(NaN);var it=ga(Ar,Ca(Ar)),no={},Lt=bo(Ts),so;try{for(Lt.s();!(so=Lt.n()).done;){var lo=so.value;if(!lo.validate(it,tt))return new Date(NaN);var Ft=lo.set(it,no,tt);Array.isArray(Ft)?(it=Ft[0],$l(no,Ft[1])):it=Ft}}catch(q){Lt.e(q)}finally{Lt.f()}return it}function Rd(o){return o.match(Ld)[1].replace(Fd,"'")}function $d(o,e){V(2,arguments);var t=K(o),r=Q(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var i=t.getDate(),a=new Date(t.getTime());a.setMonth(t.getMonth()+r+1,0);var n=a.getDate();return i>=n?a:(t.setFullYear(a.getFullYear(),a.getMonth(),i),t)}function Hd(o,e){V(2,arguments);var t=Q(e);return $d(o,-t)}const Ud=':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--hoverBackground:#ffffff;--background:#e4e6e8;--success:#7ac345;--heightScrollableContainer:400px;--borderColor:#d3d3d3;--borderColorButton:#c4c4c4;--textColor:#002554;--textColorHover:#7ac345;--errorColor:#c23b21;--loaderColor:#7ac345;--headerTableBackground:#cdcdcd;--borderTable:#dedede;--shadowBorderTable:#f1f1f1;--backgroundTable:#ffffff;font-family:Roboto, Arial, sans-serif;font-size:14px;color:var(--textColor);display:block;background-color:var(--background)}:host .wrapper{height:100%;padding:1rem}:host .types{display:flex;width:100%;gap:5px}:host .transaction-type{background:inherit;font-weight:600;padding:0.6rem 1.6rem;border:1px solid #6c757d;cursor:pointer}:host .transaction-type:hover{color:var(--activeButtonBackground);border-color:var(--activeButtonBackground);background:var(--hoverBackground)}:host .clicked{background-color:var(--activeButtonBackground);border-color:var(--activeButtonBackground)}:host .types-mobile{justify-content:center;margin-bottom:15px}:host .types-desktop{justify-content:flex-end;margin-bottom:3rem}:host .page-size{display:flex;width:100%;justify-content:flex-end;align-items:center}:host .page-size button{background:transparent;border:none;cursor:pointer;margin:0.4rem;width:2rem;height:2rem}:host .page-size button:hover{color:var(--textColorHover)}:host .page-size button.active{background:var(--activeButtonBackground);color:var(--textColor);font-weight:600;border-radius:0.4rem}:host .period{display:flex;width:100%;align-items:flex-end;justify-content:center;gap:10px;background:#f0f0f0;border-bottom:2px solid #e9e9e9;padding:1.6rem 0 0;margin-bottom:4rem}@media (max-width: 801px){:host .period{margin-bottom:0;flex-direction:column;align-items:stretch;width:auto;padding:1.4rem 2.8rem;box-shadow:0 4px 5px 0 rgba(90, 90, 90, 0.24)}}:host .period .range{color:var(--errorColor)}:host .period .filter-btn{height:40px;background:transparent;border:0.1rem solid var(--borderColorButton);min-width:12rem;max-width:17rem;cursor:pointer}@media (max-width: 801px){:host .period .filter-btn{max-width:none;min-width:none;margin-top:1rem}}:host .period .filter-btn:hover{border:none;background:var(--hoverBackground)}:host .period .duet-date__input{padding:7px 60px 7px 7px}:host .period+button{padding:9px 15px}:host .period-content{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:flex-end;margin:0 auto 1.6rem}@media (max-width: 801px){:host .period-content{flex-direction:column;align-items:stretch}}:host .period-content span{height:40px;display:flex;align-items:center;justify-content:center}@media (max-width: 801px){:host .period-content span{display:none}}:host .period-content .filter-btn{margin-left:60px}@media (max-width: 801px){:host .period-content .filter-btn{margin-left:0}}:host .period-content .date-input{padding:0 4px}@media (max-width: 801px){:host .period-content .date-input{width:auto}:host .period-content .date-input:first-child{margin-bottom:0.5rem}}:host .period-content .date-input label{display:inline-block;margin-bottom:0.9rem}:host .period-content .date-input input{border:0.1rem solid var(--borderColor);box-sizing:border-box;border-radius:0.2rem}:host .pagination{display:flex;width:100%;justify-content:center;margin-top:1.5rem}:host .pagination button{cursor:pointer;border:none;background-color:var(--activeButtonBackground);color:#fff;opacity:0.5;padding:7px 12px}:host .pagination button:hover{opacity:1}:host .pagination button:focus{opacity:1}:host button.active{color:var(--activeButtonFont);background-color:var(--activeButtonBackground)}.mobile-filter-button{display:flex;justify-content:center;align-items:center;width:100%;height:2.8rem;background:inherit;border:1px solid var(--borderColorButton)}.mobile-filter-button img{height:50%;margin-right:0.5rem}.noData{display:flex;align-items:center;box-shadow:0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);padding:1.1rem;border-radius:0.6rem}.noData span{margin-left:0.5rem}.table{height:var(--heightScrollableContainer);overflow-y:auto}.table .mobile-table{height:100%}.data-transaction{border-bottom:1px solid var(--borderColor);background-color:var(--hoverBackground);padding:0 20px;display:grid;grid-template-columns:repeat(2, 1fr)}.data-transaction .text-style-status{font-weight:600}.data-transaction .text-style-status .success{color:var(--success)}.data-transaction .text-style-status .error{color:var(--errorColor)}.data-transaction .text-style{text-align:end}.data-transaction .date{font-size:12px;display:flex;align-items:center}.loader{display:inline-block;position:absolute;width:80px;height:80px;top:calc(50% - 40px);left:calc(50% - 40px);z-index:100}.loader::before{content:"";position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255, 255, 255, 0.6)}.loader div{position:absolute;width:6px;height:6px;background:var(--loaderColor);border-radius:50%;animation:loader 1.2s linear infinite}.loader div:nth-child(1){animation-delay:0s;top:37px;left:66px}.loader div:nth-child(2){animation-delay:-0.1s;top:22px;left:62px}.loader div:nth-child(3){animation-delay:-0.2s;top:11px;left:52px}.loader div:nth-child(4){animation-delay:-0.3s;top:7px;left:37px}.loader div:nth-child(5){animation-delay:-0.4s;top:11px;left:22px}.loader div:nth-child(6){animation-delay:-0.5s;top:22px;left:11px}.loader div:nth-child(7){animation-delay:-0.6s;top:37px;left:7px}.loader div:nth-child(8){animation-delay:-0.7s;top:52px;left:11px}.loader div:nth-child(9){animation-delay:-0.8s;top:62px;left:22px}.loader div:nth-child(10){animation-delay:-0.9s;top:66px;left:37px}.loader div:nth-child(11){animation-delay:-1s;top:62px;left:52px}.loader div:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.table thead th{position:sticky;top:0}table{border-collapse:collapse;width:100%}table th{padding:14px 24px;text-align:left;font-weight:600;color:var(--textColor);background:var(--headerTableBackground)}table td{padding:1rem 1.7rem;box-shadow:0 -1px 0 0 var(--shadowBorderTable) inset;border-bottom:0.1rem solid var(--borderTable);text-align:left;color:var(--textColor)}table tbody{background:var(--backgroundTable)}table .success{color:var(--success)}table .error{color:var(--errorColor)}vaadin-date-picker{min-width:320px}@media (max-width: 1261px){vaadin-date-picker{width:auto;min-width:auto}}@media (max-width: 801px){vaadin-date-picker{width:100%}}.MenuReturnButton{font:inherit;color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MenuReturnButton h2.TransactionTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}',Wd=Ud,La=class{constructor(o){m.registerInstance(this,o),this.pageSizes=[10,25,50],this.pagination=null,this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.mobile},window.location.href)},this.endpoint=void 0,this.session=void 0,this.language=I.defaultLanguage,this.userId=void 0,this.translationUrl=void 0,this.mobile=!1,this.clientStyling=null,this.clientStylingUrl=null,this.mbSource=void 0,this.dateFormat="",this.page=0,this.pageSize=this.pageSizes[0],this.showMobileFilter=!1,this.to=void 0,this.from=void 0,this.type="0",this.transactions=void 0,this.showLoader=!0}watchMultiple(){this.loadTransactions()}handleClientStylingChange(o,e){o!=e&&_o(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(o,e){o!=e&&this.clientStylingUrl&&vo(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return Vt(this,null,function*(){this.translationUrl&&(yield I.loadCustomTranslations(this.translationUrl)),this.to=Ie(new Date,`${this.dateFormat||"yyyy-MM-dd"}`),this.from=Ie(Hd(new Date,1),`${this.dateFormat||"yyyy-MM-dd"}`),this.loadTransactions()})}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?Vl(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&_o(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&vo(this.stylingContainer,this.clientStylingUrl)))}componentDidRender(){this.getComponentHeight()}getComponentHeight(){var o;if(this.mobile){let e=this.el.getBoundingClientRect().height-((o=this.el.shadowRoot.querySelector(".table"))===null||o===void 0?void 0:o.getBoundingClientRect().y);this.el.style.setProperty("--heightScrollableContainer",e+"px")}}setHeightTableProperty(){let o=this.getComponentHeight();this.el.style.setProperty("--heightScrollableContainer",o+"px")}changeTransactionsType(o){this.type=o}changePageSize(o){this.pageSize=o}prev(){var o;!((o=this.pagination)===null||o===void 0)&&o.previous&&this.page--}next(){var o;!((o=this.pagination)===null||o===void 0)&&o.next&&this.page++}applyFilters(o,e){this.from=o,this.to=e,this.loadTransactions()}showFilter(){this.showMobileFilter=!this.showMobileFilter}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){var o;const e=m.getAssetPath("../assets/filter.svg"),t=m.getAssetPath("../assets/warning.svg");return m.h(m.Host,{key:"395328866f9fbae0a79d1dcf9dc5e9fd6e321406"},this.showLoader?m.h(Ps,null):"",m.h("div",{key:"fcb0efc2b0c9f2daa3df8c6c1d541dabe76c8126",class:"wrapper",ref:r=>this.stylingContainer=r},this.mobile?m.h("div",{class:"MenuReturnButton",onClick:this.toggleScreen},m.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},m.h("defs",null),m.h("g",{transform:"translate(-20 -158)"},m.h("g",{transform:"translate(20 158)"},m.h("path",{class:"aaa",d:"M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z",transform:"translate(15 15) rotate(180)"})))),m.h("h2",{class:"TransactionTitleMobile"},I.translate("transactionTitle",this.language))):m.h("h2",{class:"TransactionTitle"},I.translate("transactionTitle",this.language)),m.h("div",{key:"3fcb0ac0f3bc81ce2c3e298e53649a7050a53cb2",class:{"types types-mobile":this.mobile,"types types-desktop":!this.mobile}},m.h("button",{key:"1fcfd5dbf9857488bd0594f5b908e845a66f0d05",class:"transaction-type "+(this.type==="0"?"clicked":""),onClick:()=>this.changeTransactionsType("0")},I.translate("deposit",this.language)),m.h("button",{key:"58c6707975e3854e8a4afcf270a11dacd3c15947",class:"transaction-type "+(this.type==="1"?"clicked":""),onClick:()=>this.changeTransactionsType("1")},I.translate("withdrawals",this.language))),this.mobile?"":m.h(Fl,{language:this.language,pageSizes:this.pageSizes,currentPageSize:this.pageSize,changePageSize:r=>this.changePageSize(r)}),this.mobile?m.h("button",{class:"mobile-filter-button",onClick:()=>this.showFilter()},m.h("img",{src:e,alt:"Filter"}),I.translate("filter",this.language)):"",!this.mobile||this.showMobileFilter&&this.mobile?m.h("user-transaction-history-filter",{language:this.language,onApplyFilters:({detail:{from:r,to:i}})=>this.applyFilters(r,i),from:this.from,to:this.to,dateformat:this.dateFormat}):"",((o=this.transactions)===null||o===void 0?void 0:o.length)>0?m.h("div",{class:"table"},this.mobile?m.h("div",{class:"mobile-table"},this.transactions.map(r=>m.h(Ll,Object.assign({},r,{dateformat:this.dateFormat})))):m.h(Bl,{source:this.transactions,language:this.language,dateformat:this.dateFormat})):m.h("div",{class:"noData"},m.h("img",{src:t,alt:"Warning"}),m.h("span",null,I.translate("noData",this.language))),m.h("div",{key:"a58ec540ecc0d4162bb32eae5bd453e37cf7fed1",class:"pagination"},m.h("button",{key:"f21b01b72d7a4470e1cbbefdec50169e6e5bc222",onClick:()=>this.prev()},"<"),m.h("button",{key:"d14d057b3620a30ae3c11a5f22640913c0a1d32e",onClick:()=>this.next()},">"))))}loadTransactions(){return Vt(this,null,function*(){this.showLoader=!0;try{const o=`${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`,e=yield fetch(o,{headers:{"X-Sessionid":this.session,"Content-Type":"application/json"}});if(!e.ok){const r=yield e.text();throw new Error(r)}const t=yield e.json();this.pagination=t.pagination,this.transactions=t.transactions}catch(o){console.error(o)}finally{this.showLoader=!1}})}formatDateForApi(o){const e=Na(o,`${this.dateFormat||"yyyy-MM-dd"}`,new Date);return Ie(e,"yyyy-MM-dd")}getParams(){const o=(this.page*this.pageSize).toString(),e=this.formatDateForApi(this.from),t=this.formatDateForApi(this.to);return`offset=${o}&endDate=${t}&startDate=${e}&type=${this.type}&limit=${this.pageSize}`}static get assetsDirs(){return["../assets"]}get el(){return m.getElement(this)}static get watchers(){return{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],showMobileFilter:["getComponentHeight"]}}};La.style=Wd;var qd=Object.defineProperty,Yd=Object.defineProperties,jd=Object.getOwnPropertyDescriptors,yo=Object.getOwnPropertySymbols,Gd=Object.prototype.hasOwnProperty,Kd=Object.prototype.propertyIsEnumerable,jr=(o,e,t)=>e in o?qd(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,er=(o,e)=>{for(var t in e||(e={}))Gd.call(e,t)&&jr(o,t,e[t]);if(yo)for(var t of yo(e))Kd.call(e,t)&&jr(o,t,e[t]);return o},Fa=(o,e)=>Yd(o,jd(e)),X=(o,e,t)=>(jr(o,typeof e!="symbol"?e+"":e,t),t),tr=(o,e,t)=>new Promise((r,i)=>{var a=l=>{try{s(t.next(l))}catch(d){i(d)}},n=l=>{try{s(t.throw(l))}catch(d){i(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(o,e)).next())});/**
1
+ "use strict";var Vt=(i,e,t)=>new Promise((r,o)=>{var a=l=>{try{s(t.next(l))}catch(d){o(d)}},n=l=>{try{s(t.throw(l))}catch(d){o(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(i,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index-6e523641-D2onrjgE.cjs"),Ps={en:{deposit:"Deposit",withdrawals:"Withdrawals",show:"Show",from:"From",to:"To",filter:"Filter",transactionId:"Transaction ID",date:"Date",amount:"Amount",productType:"Product Type",status:"Status",noData:"There are no account activities",transactionTitle:"Transaction History"},hr:{deposit:"Uplate",withdrawals:"Isplate",show:"Prikaži",from:"Od",to:"Do",filter:"Filter",transactionId:"ID transakcije",date:"Datum",amount:"Iznos",productType:"Vrsta proizvoda",status:"Status",noData:"Nema aktivnosti na računu",transactionTitle:"Povijest transakcija"}};class I{constructor(){}static loadCustomTranslations(e){return Vt(this,null,function*(){try{const t=yield fetch(e,{headers:{"Content-Type":"application/json"}});if(!t.ok){const o=yield t.text();throw new Error(o)}const r=yield t.json();I.updateTranslations(r)}catch(t){console.error(`Failed to load translations ${e}. ${t.message}`)}})}static translate(e,t){var r,o;const a=I.getAvaliableLanguages(t);return((o=(r=I.customTranslation)===null||r===void 0?void 0:r[a.customLanguage])===null||o===void 0?void 0:o[e])||I.defaultTranslation[a.predefinedLanguage][e]}static getAvaliableLanguages(e){var t;const r=!((t=I.customLanguages)===null||t===void 0)&&t.includes(e)?e:I.defaultLanguage;return{predefinedLanguage:I.supportedLanguages.includes(e)?e:I.defaultLanguage,customLanguage:r}}static updateTranslations(e){I.customLanguages=Array.from(new Set([...I.supportedLanguages,...Object.keys(e).map(t=>t.toLowerCase())])),I.customTranslation=e}}I.defaultLanguage="en";I.supportedLanguages=["en"];I.defaultTranslation=Ps;const Is=()=>m.h("div",{class:"loader"},m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null));function _e(i){"@babel/helpers - typeof";return _e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(i)}function V(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function Ss(i){return V(1,arguments),i instanceof Date||_e(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function K(i){V(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||_e(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="string"||e==="[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 Ds(i){if(V(1,arguments),!Ss(i)&&typeof i!="number")return!1;var e=K(i);return!isNaN(Number(e))}function Q(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Os(i,e){V(2,arguments);var t=K(i).getTime(),r=Q(e);return new Date(t+r)}function ba(i,e){V(2,arguments);var t=Q(e);return Os(i,-t)}var Ms=864e5;function zs(i){V(1,arguments);var e=K(i),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),o=t-r;return Math.floor(o/Ms)+1}function qe(i){V(1,arguments);var e=1,t=K(i),r=t.getUTCDay(),o=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function ya(i){V(1,arguments);var e=K(i),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var o=qe(r),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var n=qe(a);return e.getTime()>=o.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function Ns(i){V(1,arguments);var e=ya(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=qe(t);return r}var Ls=6048e5;function wa(i){V(1,arguments);var e=K(i),t=qe(e).getTime()-Ns(e).getTime();return Math.round(t/Ls)+1}var Fs={};function Xe(){return Fs}function De(i,e){var t,r,o,a,n,s,l,d;V(1,arguments);var c=Xe(),h=Q((t=(r=(o=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=K(i),p=u.getUTCDay(),b=(p<h?7:0)+p-h;return u.setUTCDate(u.getUTCDate()-b),u.setUTCHours(0,0,0,0),u}function gi(i,e){var t,r,o,a,n,s,l,d;V(1,arguments);var c=K(i),h=c.getUTCFullYear(),u=Xe(),p=Q((t=(r=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(h+1,0,p),b.setUTCHours(0,0,0,0);var N=De(b,e),D=new Date(0);D.setUTCFullYear(h,0,p),D.setUTCHours(0,0,0,0);var O=De(D,e);return c.getTime()>=N.getTime()?h+1:c.getTime()>=O.getTime()?h:h-1}function Bs(i,e){var t,r,o,a,n,s,l,d;V(1,arguments);var c=Xe(),h=Q((t=(r=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),u=gi(i,e),p=new Date(0);p.setUTCFullYear(u,0,h),p.setUTCHours(0,0,0,0);var b=De(p,e);return b}var Vs=6048e5;function xa(i,e){V(1,arguments);var t=K(i),r=De(t,e).getTime()-Bs(t,e).getTime();return Math.round(r/Vs)+1}function M(i,e){for(var t=i<0?"-":"",r=Math.abs(i).toString();r.length<e;)r="0"+r;return t+r}var Rs={y:function(e,t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return M(t==="yy"?o%100:o,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):M(r+1,2)},d:function(e,t){return M(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return M(e.getUTCHours()%12||12,t.length)},H:function(e,t){return M(e.getUTCHours(),t.length)},m:function(e,t){return M(e.getUTCMinutes(),t.length)},s:function(e,t){return M(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,o=e.getUTCMilliseconds(),a=Math.floor(o*Math.pow(10,r-3));return M(a,t.length)}};const be=Rs;var Fe={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},$s={G:function(e,t,r){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var o=e.getUTCFullYear(),a=o>0?o:1-o;return r.ordinalNumber(a,{unit:"year"})}return be.y(e,t)},Y:function(e,t,r,o){var a=gi(e,o),n=a>0?a:1-a;if(t==="YY"){var s=n%100;return M(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):M(n,t.length)},R:function(e,t){var r=ya(e);return M(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return M(r,t.length)},Q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return M(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return M(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){var o=e.getUTCMonth();switch(t){case"M":case"MM":return be.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return M(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){var a=xa(e,o);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):M(a,t.length)},I:function(e,t,r){var o=wa(e);return t==="Io"?r.ordinalNumber(o,{unit:"week"}):M(o,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):be.d(e,t)},D:function(e,t,r){var o=zs(e);return t==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):M(o,t.length)},E:function(e,t,r){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){var a=e.getUTCDay(),n=(a-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return M(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){var a=e.getUTCDay(),n=(a-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return M(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var o=e.getUTCDay(),a=o===0?7:o;switch(t){case"i":return String(a);case"ii":return M(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){var o=e.getUTCHours(),a=o/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){var o=e.getUTCHours(),a;switch(o===12?a=Fe.noon:o===0?a=Fe.midnight:a=o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){var o=e.getUTCHours(),a;switch(o>=17?a=Fe.evening:o>=12?a=Fe.afternoon:o>=4?a=Fe.morning:a=Fe.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var o=e.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return be.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):be.H(e,t)},K:function(e,t,r){var o=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(o,{unit:"hour"}):M(o,t.length)},k:function(e,t,r){var o=e.getUTCHours();return o===0&&(o=24),t==="ko"?r.ordinalNumber(o,{unit:"hour"}):M(o,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):be.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):be.s(e,t)},S:function(e,t){return be.S(e,t)},X:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return mo(n);case"XXXX":case"XX":return Te(n);case"XXXXX":case"XXX":default:return Te(n,":")}},x:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"x":return mo(n);case"xxxx":case"xx":return Te(n);case"xxxxx":case"xxx":default:return Te(n,":")}},O:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+po(n,":");case"OOOO":default:return"GMT"+Te(n,":")}},z:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+po(n,":");case"zzzz":default:return"GMT"+Te(n,":")}},t:function(e,t,r,o){var a=o._originalDate||e,n=Math.floor(a.getTime()/1e3);return M(n,t.length)},T:function(e,t,r,o){var a=o._originalDate||e,n=a.getTime();return M(n,t.length)}};function po(i,e){var t=i>0?"-":"+",r=Math.abs(i),o=Math.floor(r/60),a=r%60;if(a===0)return t+String(o);var n=e;return t+String(o)+n+M(a,2)}function mo(i,e){if(i%60===0){var t=i>0?"-":"+";return t+M(Math.abs(i)/60,2)}return Te(i,e)}function Te(i,e){var t=e||"",r=i>0?"-":"+",o=Math.abs(i),a=M(Math.floor(o/60),2),n=M(o%60,2);return r+a+t+n}const Hs=$s;var fo=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Ca=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Us=function(e,t){var r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return fo(e,t);var n;switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",fo(o,t)).replace("{{time}}",Ca(a,t))},Ws={p:Ca,P:Us};const qr=Ws;function ka(i){var e=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return e.setUTCFullYear(i.getFullYear()),i.getTime()-e.getTime()}var qs=["D","DD"],Ys=["YY","YYYY"];function Ea(i){return qs.indexOf(i)!==-1}function Ta(i){return Ys.indexOf(i)!==-1}function Qt(i,e,t){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var js={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"}},Gs=function(e,t,r){var o,a=js[e];return typeof a=="string"?o=a:t===1?o=a.one:o=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const Ks=Gs;function Ir(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):i.defaultWidth,r=i.formats[t]||i.formats[i.defaultWidth];return r}}var Xs={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Qs={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Js={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Zs={date:Ir({formats:Xs,defaultWidth:"full"}),time:Ir({formats:Qs,defaultWidth:"full"}),dateTime:Ir({formats:Js,defaultWidth:"full"})};const el=Zs;var tl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},rl=function(e,t,r,o){return tl[e]};const il=rl;function ot(i){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",o;if(r==="formatting"&&i.formattingValues){var a=i.defaultFormattingWidth||i.defaultWidth,n=t!=null&&t.width?String(t.width):a;o=i.formattingValues[n]||i.formattingValues[a]}else{var s=i.defaultWidth,l=t!=null&&t.width?String(t.width):i.defaultWidth;o=i.values[l]||i.values[s]}var d=i.argumentCallback?i.argumentCallback(e):e;return o[d]}}var ol={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},al={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},nl={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"]},sl={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"]},ll={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"}},dl={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"}},cl=function(e,t){var r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},hl={ordinalNumber:cl,era:ot({values:ol,defaultWidth:"wide"}),quarter:ot({values:al,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ot({values:nl,defaultWidth:"wide"}),day:ot({values:sl,defaultWidth:"wide"}),dayPeriod:ot({values:ll,defaultWidth:"wide",formattingValues:dl,defaultFormattingWidth:"wide"})};const ul=hl;function at(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,o=r&&i.matchPatterns[r]||i.matchPatterns[i.defaultMatchWidth],a=e.match(o);if(!a)return null;var n=a[0],s=r&&i.parsePatterns[r]||i.parsePatterns[i.defaultParseWidth],l=Array.isArray(s)?ml(s,function(h){return h.test(n)}):pl(s,function(h){return h.test(n)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var c=e.slice(n.length);return{value:d,rest:c}}}function pl(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function ml(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function fl(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(i.matchPattern);if(!r)return null;var o=r[0],a=e.match(i.parsePattern);if(!a)return null;var n=i.valueCallback?i.valueCallback(a[0]):a[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(o.length);return{value:n,rest:s}}}var _l=/^(\d+)(th|st|nd|rd)?/i,vl=/\d+/i,gl={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},bl={any:[/^b/i,/^(a|c)/i]},yl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},wl={any:[/1/i,/2/i,/3/i,/4/i]},xl={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},Cl={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]},kl={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},El={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]},Tl={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},Al={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}},Pl={ordinalNumber:fl({matchPattern:_l,parsePattern:vl,valueCallback:function(e){return parseInt(e,10)}}),era:at({matchPatterns:gl,defaultMatchWidth:"wide",parsePatterns:bl,defaultParseWidth:"any"}),quarter:at({matchPatterns:yl,defaultMatchWidth:"wide",parsePatterns:wl,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:at({matchPatterns:xl,defaultMatchWidth:"wide",parsePatterns:Cl,defaultParseWidth:"any"}),day:at({matchPatterns:kl,defaultMatchWidth:"wide",parsePatterns:El,defaultParseWidth:"any"}),dayPeriod:at({matchPatterns:Tl,defaultMatchWidth:"any",parsePatterns:Al,defaultParseWidth:"any"})};const Il=Pl;var Sl={code:"en-US",formatDistance:Ks,formatLong:el,formatRelative:il,localize:ul,match:Il,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Aa=Sl;var Dl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ol=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ml=/^'([^]*?)'?$/,zl=/''/g,Nl=/[a-zA-Z]/;function Ie(i,e,t){var r,o,a,n,s,l,d,c,h,u,p,b,N,D;V(2,arguments);var O=String(e),A=Xe(),U=(r=(o=void 0)!==null&&o!==void 0?o:A.locale)!==null&&r!==void 0?r:Aa,W=Q((a=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:A.firstWeekContainsDate)!==null&&n!==void 0?n:(d=A.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ne=Q((h=(u=(p=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&p!==void 0?p:A.weekStartsOn)!==null&&u!==void 0?u:(N=A.locale)===null||N===void 0||(D=N.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&h!==void 0?h:0);if(!(ne>=0&&ne<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!U.localize)throw new RangeError("locale must contain localize property");if(!U.formatLong)throw new RangeError("locale must contain formatLong property");var ge=K(i);if(!Ds(ge))throw new RangeError("Invalid time value");var et=ka(ge),tt=ba(ge,et),rt={firstWeekContainsDate:W,weekStartsOn:ne,locale:U,_originalDate:ge},Tr=O.match(Ol).map(function(j){var ee=j[0];if(ee==="p"||ee==="P"){var ke=qr[ee];return ke(j,U.formatLong)}return j}).join("").match(Dl).map(function(j){if(j==="''")return"'";var ee=j[0];if(ee==="'")return Ll(j);var ke=Hs[ee];if(ke)return Ta(j)&&Qt(j,e,String(i)),Ea(j)&&Qt(j,e,String(i)),ke(tt,j,U.localize,rt);if(ee.match(Nl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return j}).join("");return Tr}function Ll(i){var e=i.match(Ml);return e?e[1].replace(zl,"'"):i}class Pa{constructor(){}static dateToFormatedString(e,t){const r=t?Ie(e,t):e.toLocaleDateString("en-gb"),o=e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return`${r}, ${o}`}}class Ia{constructor(){}static format(e,t){let r=`${t} ${e}`;try{r=new Intl.NumberFormat("en-US",{style:"currency",currency:e}).format(t)}catch(o){}return r}}const Fl=i=>m.h("div",{class:"data-transaction"},m.h("p",null,i.productType),m.h("p",{class:"text-style text-style-status"},m.h("span",{class:i.status.toLowerCase()},i.status)),m.h("p",{class:"date"},i.transId," | ",Pa.dateToFormatedString(new Date(i.created),i.dateformat)),m.h("p",{class:"text-style"},Ia.format(i.currency,i.realAmount)," ")),Bl=i=>m.h("div",{class:"page-size"},m.h("span",null,I.translate("show",i.language)),i.pageSizes.map(e=>m.h("button",{class:i.currentPageSize===e?"active":"",onClick:()=>i.changePageSize(e)},e))),Vl=({source:i,language:e,dateformat:t})=>{const r=[{name:I.translate("transactionId",e)},{name:I.translate("date",e)},{name:I.translate("amount",e)},{name:I.translate("productType",e)},{name:I.translate("status",e)}];return m.h("table",null,m.h("thead",null,m.h("tr",null,r.map(o=>m.h("th",null,o.name)))),m.h("tbody",null,i.map(o=>m.h("tr",null,m.h("td",null,o.transId),m.h("td",null,Pa.dateToFormatedString(new Date(o.created),t)),m.h("td",null,Ia.format(o.currency,o.realAmount)," "),m.h("td",null,o.productType),m.h("td",null,m.h("span",{class:o.status.toLowerCase()},o.status))))))};function _o(i,e){if(i){const t=document.createElement("style");t.innerHTML=e,i.appendChild(t)}}function vo(i,e){if(!i||!e)return;const t=new URL(e);fetch(t.href).then(r=>r.text()).then(r=>{const o=document.createElement("style");o.innerHTML=r,i&&i.appendChild(o)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Rl(i,e,t){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(e,o=>{r.innerHTML=o,i&&i.appendChild(r)})}}function go(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t<e;t++)r[t]=i[t];return r}function $l(i,e){if(i){if(typeof i=="string")return go(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?go(i,e):void 0}}function bo(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=$l(i))||e){t&&(i=t);var r=0,o=function(){};return{s:o,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,n=!0,s=!1;return{s:function(){t=t.call(i)},n:function(){var d=t.next();return n=d.done,d},e:function(d){s=!0,a=d},f:function(){try{n||t.return==null||t.return()}finally{if(s)throw a}}}}function Hl(i,e){if(i==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t]);return i}function v(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Yr(i,e){return Yr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Yr(i,e)}function E(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&Yr(i,e)}function Jt(i){return Jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jt(i)}function Sa(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Sa=function(){return!!i})()}function Ul(i,e){if(e&&(_e(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(i)}function T(i){var e=Sa();return function(){var t,r=Jt(i);if(e){var o=Jt(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return Ul(this,t)}}function w(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function Wl(i,e){if(_e(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e);if(_e(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Da(i){var e=Wl(i,"string");return _e(e)=="symbol"?e:e+""}function ql(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,Da(r.key),r)}}function x(i,e,t){return e&&ql(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function _(i,e,t){return(e=Da(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var Yl=10,Oa=function(){function i(){w(this,i),_(this,"priority",void 0),_(this,"subPriority",0)}return x(i,[{key:"validate",value:function(t,r){return!0}}]),i}(),jl=function(i){E(t,i);var e=T(t);function t(r,o,a,n,s){var l;return w(this,t),l=e.call(this),l.value=r,l.validateValue=o,l.setValue=a,l.priority=n,s&&(l.subPriority=s),l}return x(t,[{key:"validate",value:function(o,a){return this.validateValue(o,this.value,a)}},{key:"set",value:function(o,a,n){return this.setValue(o,a,this.value,n)}}]),t}(Oa),Gl=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",Yl),_(v(r),"subPriority",-1),r}return x(t,[{key:"set",value:function(o,a){if(a.timestampIsSet)return o;var n=new Date(0);return n.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),n.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),n}}]),t}(Oa),S=function(){function i(){w(this,i),_(this,"incompatibleTokens",void 0),_(this,"priority",void 0),_(this,"subPriority",void 0)}return x(i,[{key:"run",value:function(t,r,o,a){var n=this.parse(t,r,o,a);return n?{setter:new jl(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,r,o){return!0}}]),i}(),Kl=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",140),_(v(r),"incompatibleTokens",["R","u","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"})||n.era(o,{width:"narrow"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})||n.era(o,{width:"abbreviated"})||n.era(o,{width:"narrow"})}}},{key:"set",value:function(o,a,n){return a.era=n,o.setUTCFullYear(n,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(S),Xl=6e4,Ql=36e5,Jl=1e3,R={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},de={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function $(i,e){return i&&{value:e(i.value),rest:i.rest}}function F(i,e){var t=e.match(i);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function ce(i,e){var t=e.match(i);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var r=t[1]==="+"?1:-1,o=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,n=t[5]?parseInt(t[5],10):0;return{value:r*(o*Ql+a*Xl+n*Jl),rest:e.slice(t[0].length)}}function Ma(i){return F(R.anyDigitsSigned,i)}function B(i,e){switch(i){case 1:return F(R.singleDigit,e);case 2:return F(R.twoDigits,e);case 3:return F(R.threeDigits,e);case 4:return F(R.fourDigits,e);default:return F(new RegExp("^\\d{1,"+i+"}"),e)}}function Zt(i,e){switch(i){case 1:return F(R.singleDigitSigned,e);case 2:return F(R.twoDigitsSigned,e);case 3:return F(R.threeDigitsSigned,e);case 4:return F(R.fourDigitsSigned,e);default:return F(new RegExp("^-?\\d{1,"+i+"}"),e)}}function bi(i){switch(i){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function za(i,e){var t=e>0,r=t?e:1-e,o;if(r<=50)o=i||100;else{var a=r+50,n=Math.floor(a/100)*100,s=i>=a%100;o=i+n-(s?100:0)}return t?o:1-o}function Na(i){return i%400===0||i%4===0&&i%100!==0}var Zl=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="yy"}};switch(a){case"y":return $(B(4,o),s);case"yo":return $(n.ordinalNumber(o,{unit:"year"}),s);default:return $(B(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,n){var s=o.getUTCFullYear();if(n.isTwoDigitYear){var l=za(n.year,s);return o.setUTCFullYear(l,0,1),o.setUTCHours(0,0,0,0),o}var d=!("era"in a)||a.era===1?n.year:1-n.year;return o.setUTCFullYear(d,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(S),ed=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return $(B(4,o),s);case"Yo":return $(n.ordinalNumber(o,{unit:"year"}),s);default:return $(B(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,n,s){var l=gi(o,s);if(n.isTwoDigitYear){var d=za(n.year,l);return o.setUTCFullYear(d,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),De(o,s)}var c=!("era"in a)||a.era===1?n.year:1-n.year;return o.setUTCFullYear(c,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),De(o,s)}}]),t}(S),td=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a){return Zt(a==="R"?4:a.length,o)}},{key:"set",value:function(o,a,n){var s=new Date(0);return s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),qe(s)}}]),t}(S),rd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a){return Zt(a==="u"?4:a.length,o)}},{key:"set",value:function(o,a,n){return o.setUTCFullYear(n,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(S),id=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",120),_(v(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"Q":case"QQ":return B(a.length,o);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"})||n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})||n.quarter(o,{width:"abbreviated",context:"formatting"})||n.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,n){return o.setUTCMonth((n-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),t}(S),od=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",120),_(v(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"q":case"qq":return B(a.length,o);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"})||n.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})||n.quarter(o,{width:"abbreviated",context:"standalone"})||n.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,n){return o.setUTCMonth((n-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),t}(S),ad=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),_(v(r),"priority",110),r}return x(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d-1};switch(a){case"M":return $(F(R.month,o),s);case"MM":return $(B(2,o),s);case"Mo":return $(n.ordinalNumber(o,{unit:"month"}),s);case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"})||n.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})||n.month(o,{width:"abbreviated",context:"formatting"})||n.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){return o.setUTCMonth(n,1),o.setUTCHours(0,0,0,0),o}}]),t}(S),nd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",110),_(v(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d-1};switch(a){case"L":return $(F(R.month,o),s);case"LL":return $(B(2,o),s);case"Lo":return $(n.ordinalNumber(o,{unit:"month"}),s);case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"})||n.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})||n.month(o,{width:"abbreviated",context:"standalone"})||n.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){return o.setUTCMonth(n,1),o.setUTCHours(0,0,0,0),o}}]),t}(S);function sd(i,e,t){V(2,arguments);var r=K(i),o=Q(e),a=xa(r,t)-o;return r.setUTCDate(r.getUTCDate()-a*7),r}var ld=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",100),_(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"w":return F(R.week,o);case"wo":return n.ordinalNumber(o,{unit:"week"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,n,s){return De(sd(o,n,s),s)}}]),t}(S);function dd(i,e){V(2,arguments);var t=K(i),r=Q(e),o=wa(t)-r;return t.setUTCDate(t.getUTCDate()-o*7),t}var cd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",100),_(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"I":return F(R.week,o);case"Io":return n.ordinalNumber(o,{unit:"week"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,n){return qe(dd(o,n))}}]),t}(S),hd=[31,28,31,30,31,30,31,31,30,31,30,31],ud=[31,29,31,30,31,30,31,31,30,31,30,31],pd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"subPriority",1),_(v(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"d":return F(R.date,o);case"do":return n.ordinalNumber(o,{unit:"date"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){var n=o.getUTCFullYear(),s=Na(n),l=o.getUTCMonth();return s?a>=1&&a<=ud[l]:a>=1&&a<=hd[l]}},{key:"set",value:function(o,a,n){return o.setUTCDate(n),o.setUTCHours(0,0,0,0),o}}]),t}(S),md=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"subpriority",1),_(v(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"D":case"DD":return F(R.dayOfYear,o);case"Do":return n.ordinalNumber(o,{unit:"date"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){var n=o.getUTCFullYear(),s=Na(n);return s?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(o,a,n){return o.setUTCMonth(0,n),o.setUTCHours(0,0,0,0),o}}]),t}(S);function yi(i,e,t){var r,o,a,n,s,l,d,c;V(2,arguments);var h=Xe(),u=Q((r=(o=(a=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:h.weekStartsOn)!==null&&o!==void 0?o:(d=h.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=K(i),b=Q(e),N=p.getUTCDay(),D=b%7,O=(D+7)%7,A=(O<u?7:0)+b-N;return p.setUTCDate(p.getUTCDate()+A),p}var fd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=yi(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(S),_d=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n,s){var l=function(c){var h=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+h};switch(a){case"e":case"ee":return $(B(a.length,o),l);case"eo":return $(n.ordinalNumber(o,{unit:"day"}),l);case"eee":return n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=yi(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(S),vd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n,s){var l=function(c){var h=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+h};switch(a){case"c":case"cc":return $(B(a.length,o),l);case"co":return $(n.ordinalNumber(o,{unit:"day"}),l);case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"})||n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})||n.day(o,{width:"abbreviated",context:"standalone"})||n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=yi(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(S);function gd(i,e){V(2,arguments);var t=Q(e);t%7===0&&(t=t-7);var r=1,o=K(i),a=o.getUTCDay(),n=t%7,s=(n+7)%7,l=(s<r?7:0)+t-a;return o.setUTCDate(o.getUTCDate()+l),o}var bd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d===0?7:d};switch(a){case"i":case"ii":return B(a.length,o);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return $(n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s);case"iiiii":return $(n.day(o,{width:"narrow",context:"formatting"}),s);case"iiiiii":return $(n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s);case"iiii":default:return $(n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(o,a){return a>=1&&a<=7}},{key:"set",value:function(o,a,n){return o=gd(o,n),o.setUTCHours(0,0,0,0),o}}]),t}(S),yd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",80),_(v(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"a":case"aa":case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(bi(n),0,0,0),o}}]),t}(S),wd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",80),_(v(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"b":case"bb":case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(bi(n),0,0,0),o}}]),t}(S),xd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",80),_(v(r),"incompatibleTokens",["a","b","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(bi(n),0,0,0),o}}]),t}(S),Cd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["H","K","k","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"h":return F(R.hour12h,o);case"ho":return n.ordinalNumber(o,{unit:"hour"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=12}},{key:"set",value:function(o,a,n){var s=o.getUTCHours()>=12;return s&&n<12?o.setUTCHours(n+12,0,0,0):!s&&n===12?o.setUTCHours(0,0,0,0):o.setUTCHours(n,0,0,0),o}}]),t}(S),kd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"H":return F(R.hour23h,o);case"Ho":return n.ordinalNumber(o,{unit:"hour"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=23}},{key:"set",value:function(o,a,n){return o.setUTCHours(n,0,0,0),o}}]),t}(S),Ed=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["h","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"K":return F(R.hour11h,o);case"Ko":return n.ordinalNumber(o,{unit:"hour"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){var s=o.getUTCHours()>=12;return s&&n<12?o.setUTCHours(n+12,0,0,0):o.setUTCHours(n,0,0,0),o}}]),t}(S),Td=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"k":return F(R.hour24h,o);case"ko":return n.ordinalNumber(o,{unit:"hour"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=24}},{key:"set",value:function(o,a,n){var s=n<=24?n%24:n;return o.setUTCHours(s,0,0,0),o}}]),t}(S),Ad=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",60),_(v(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"m":return F(R.minute,o);case"mo":return n.ordinalNumber(o,{unit:"minute"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,n){return o.setUTCMinutes(n,0,0),o}}]),t}(S),Pd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",50),_(v(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"s":return F(R.second,o);case"so":return n.ordinalNumber(o,{unit:"second"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,n){return o.setUTCSeconds(n,0),o}}]),t}(S),Id=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",30),_(v(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(o,a){var n=function(l){return Math.floor(l*Math.pow(10,-a.length+3))};return $(B(a.length,o),n)}},{key:"set",value:function(o,a,n){return o.setUTCMilliseconds(n),o}}]),t}(S),Sd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",10),_(v(r),"incompatibleTokens",["t","T","x"]),r}return x(t,[{key:"parse",value:function(o,a){switch(a){case"X":return ce(de.basicOptionalMinutes,o);case"XX":return ce(de.basic,o);case"XXXX":return ce(de.basicOptionalSeconds,o);case"XXXXX":return ce(de.extendedOptionalSeconds,o);case"XXX":default:return ce(de.extended,o)}}},{key:"set",value:function(o,a,n){return a.timestampIsSet?o:new Date(o.getTime()-n)}}]),t}(S),Dd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",10),_(v(r),"incompatibleTokens",["t","T","X"]),r}return x(t,[{key:"parse",value:function(o,a){switch(a){case"x":return ce(de.basicOptionalMinutes,o);case"xx":return ce(de.basic,o);case"xxxx":return ce(de.basicOptionalSeconds,o);case"xxxxx":return ce(de.extendedOptionalSeconds,o);case"xxx":default:return ce(de.extended,o)}}},{key:"set",value:function(o,a,n){return a.timestampIsSet?o:new Date(o.getTime()-n)}}]),t}(S),Od=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",40),_(v(r),"incompatibleTokens","*"),r}return x(t,[{key:"parse",value:function(o){return Ma(o)}},{key:"set",value:function(o,a,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(S),Md=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",20),_(v(r),"incompatibleTokens","*"),r}return x(t,[{key:"parse",value:function(o){return Ma(o)}},{key:"set",value:function(o,a,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(S),zd={G:new Kl,y:new Zl,Y:new ed,R:new td,u:new rd,Q:new id,q:new od,M:new ad,L:new nd,w:new ld,I:new cd,d:new pd,D:new md,E:new fd,e:new _d,c:new vd,i:new bd,a:new yd,b:new wd,B:new xd,h:new Cd,H:new kd,K:new Ed,k:new Td,m:new Ad,s:new Pd,S:new Id,X:new Sd,x:new Dd,t:new Od,T:new Md},Nd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ld=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Fd=/^'([^]*?)'?$/,Bd=/''/g,Vd=/\S/,Rd=/[a-zA-Z]/;function La(i,e,t,r){var o,a,n,s,l,d,c,h,u,p,b,N,D,O;V(3,arguments);var A=String(i),U=String(e),W=Xe(),ne=(o=(a=void 0)!==null&&a!==void 0?a:W.locale)!==null&&o!==void 0?o:Aa;if(!ne.match)throw new RangeError("locale must contain match property");var ge=Q((n=(s=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:W.firstWeekContainsDate)!==null&&s!==void 0?s:(c=W.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(ge>=1&&ge<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var et=Q((u=(p=(b=(N=void 0)!==null&&N!==void 0?N:void 0)!==null&&b!==void 0?b:W.weekStartsOn)!==null&&p!==void 0?p:(D=W.locale)===null||D===void 0||(O=D.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&u!==void 0?u:0);if(!(et>=0&&et<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(U==="")return A===""?K(t):new Date(NaN);var tt={firstWeekContainsDate:ge,weekStartsOn:et,locale:ne},rt=[new Gl],Tr=U.match(Ld).map(function(q){var L=q[0];if(L in qr){var ae=qr[L];return ae(q,ne.formatLong)}return q}).join("").match(Nd),j=[],ee=bo(Tr),ke;try{var Ts=function(){var L=ke.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Ta(L)&&Qt(L,U,i),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Ea(L)&&Qt(L,U,i);var ae=L[0],Bt=zd[ae];if(Bt){var co=Bt.incompatibleTokens;if(Array.isArray(co)){var ho=j.find(function(uo){return co.includes(uo.token)||uo.token===ae});if(ho)throw new RangeError("The format string mustn't contain `".concat(ho.fullToken,"` and `").concat(L,"` at the same time"))}else if(Bt.incompatibleTokens==="*"&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(L,"` and any other token at the same time"));j.push({token:ae,fullToken:L});var Pr=Bt.run(A,L,ne.match,tt);if(!Pr)return{v:new Date(NaN)};rt.push(Pr.setter),A=Pr.rest}else{if(ae.match(Rd))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ae+"`");if(L==="''"?L="'":ae==="'"&&(L=$d(L)),A.indexOf(L)===0)A=A.slice(L.length);else return{v:new Date(NaN)}}};for(ee.s();!(ke=ee.n()).done;){var ao=Ts();if(_e(ao)==="object")return ao.v}}catch(q){ee.e(q)}finally{ee.f()}if(A.length>0&&Vd.test(A))return new Date(NaN);var As=rt.map(function(q){return q.priority}).sort(function(q,L){return L-q}).filter(function(q,L,ae){return ae.indexOf(q)===L}).map(function(q){return rt.filter(function(L){return L.priority===q}).sort(function(L,ae){return ae.subPriority-L.subPriority})}).map(function(q){return q[0]}),Ar=K(t);if(isNaN(Ar.getTime()))return new Date(NaN);var it=ba(Ar,ka(Ar)),no={},Lt=bo(As),so;try{for(Lt.s();!(so=Lt.n()).done;){var lo=so.value;if(!lo.validate(it,tt))return new Date(NaN);var Ft=lo.set(it,no,tt);Array.isArray(Ft)?(it=Ft[0],Hl(no,Ft[1])):it=Ft}}catch(q){Lt.e(q)}finally{Lt.f()}return it}function $d(i){return i.match(Fd)[1].replace(Bd,"'")}function Hd(i,e){V(2,arguments);var t=K(i),r=Q(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var o=t.getDate(),a=new Date(t.getTime());a.setMonth(t.getMonth()+r+1,0);var n=a.getDate();return o>=n?a:(t.setFullYear(a.getFullYear(),a.getMonth(),o),t)}function Ud(i,e){V(2,arguments);var t=Q(e);return Hd(i,-t)}const Wd=':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--hoverBackground:#ffffff;--background:#e4e6e8;--success:#7ac345;--heightScrollableContainer:400px;--borderColor:#d3d3d3;--borderColorButton:#c4c4c4;--textColor:#002554;--textColorHover:#7ac345;--errorColor:#c23b21;--loaderColor:#7ac345;--headerTableBackground:#cdcdcd;--borderTable:#dedede;--shadowBorderTable:#f1f1f1;--backgroundTable:#ffffff;font-family:Roboto, Arial, sans-serif;font-size:14px;color:var(--textColor);display:block;background-color:var(--background)}:host .wrapper{height:100%;padding:1rem}:host .types{display:flex;width:100%;gap:5px}:host .transaction-type{background:inherit;font-weight:600;padding:0.6rem 1.6rem;border:1px solid #6c757d;cursor:pointer}:host .transaction-type:hover{color:var(--activeButtonBackground);border-color:var(--activeButtonBackground);background:var(--hoverBackground)}:host .clicked{background-color:var(--activeButtonBackground);border-color:var(--activeButtonBackground)}:host .types-mobile{justify-content:center;margin-bottom:15px}:host .types-desktop{justify-content:flex-end;margin-bottom:3rem}:host .page-size{display:flex;width:100%;justify-content:flex-end;align-items:center}:host .page-size button{background:transparent;border:none;cursor:pointer;margin:0.4rem;width:2rem;height:2rem}:host .page-size button:hover{color:var(--textColorHover)}:host .page-size button.active{background:var(--activeButtonBackground);color:var(--textColor);font-weight:600;border-radius:0.4rem}:host .period{display:flex;width:100%;align-items:flex-end;justify-content:center;gap:10px;background:#f0f0f0;border-bottom:2px solid #e9e9e9;padding:1.6rem 0 0;margin-bottom:4rem}@media (max-width: 801px){:host .period{margin-bottom:0;flex-direction:column;align-items:stretch;width:auto;padding:1.4rem 2.8rem;box-shadow:0 4px 5px 0 rgba(90, 90, 90, 0.24)}}:host .period .range{color:var(--errorColor)}:host .period .filter-btn{height:40px;background:transparent;border:0.1rem solid var(--borderColorButton);min-width:12rem;max-width:17rem;cursor:pointer}@media (max-width: 801px){:host .period .filter-btn{max-width:none;min-width:none;margin-top:1rem}}:host .period .filter-btn:hover{border:none;background:var(--hoverBackground)}:host .period .duet-date__input{padding:7px 60px 7px 7px}:host .period+button{padding:9px 15px}:host .period-content{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:flex-end;margin:0 auto 1.6rem}@media (max-width: 801px){:host .period-content{flex-direction:column;align-items:stretch}}:host .period-content span{height:40px;display:flex;align-items:center;justify-content:center}@media (max-width: 801px){:host .period-content span{display:none}}:host .period-content .filter-btn{margin-left:60px}@media (max-width: 801px){:host .period-content .filter-btn{margin-left:0}}:host .period-content .date-input{padding:0 4px}@media (max-width: 801px){:host .period-content .date-input{width:auto}:host .period-content .date-input:first-child{margin-bottom:0.5rem}}:host .period-content .date-input label{display:inline-block;margin-bottom:0.9rem}:host .period-content .date-input input{border:0.1rem solid var(--borderColor);box-sizing:border-box;border-radius:0.2rem}:host .pagination{display:flex;width:100%;justify-content:center;margin-top:1.5rem}:host .pagination button{cursor:pointer;border:none;background-color:var(--activeButtonBackground);color:#fff;opacity:0.5;padding:7px 12px}:host .pagination button:hover{opacity:1}:host .pagination button:focus{opacity:1}:host button.active{color:var(--activeButtonFont);background-color:var(--activeButtonBackground)}.mobile-filter-button{display:flex;justify-content:center;align-items:center;width:100%;height:2.8rem;background:inherit;border:1px solid var(--borderColorButton)}.mobile-filter-button img{height:50%;margin-right:0.5rem}.noData{display:flex;align-items:center;box-shadow:0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);padding:1.1rem;border-radius:0.6rem}.noData span{margin-left:0.5rem}.table{height:var(--heightScrollableContainer);overflow-y:auto}.table .mobile-table{height:100%}.data-transaction{border-bottom:1px solid var(--borderColor);background-color:var(--hoverBackground);padding:0 20px;display:grid;grid-template-columns:repeat(2, 1fr)}.data-transaction .text-style-status{font-weight:600}.data-transaction .text-style-status .success{color:var(--success)}.data-transaction .text-style-status .error{color:var(--errorColor)}.data-transaction .text-style{text-align:end}.data-transaction .date{font-size:12px;display:flex;align-items:center}.loader{display:inline-block;position:absolute;width:80px;height:80px;top:calc(50% - 40px);left:calc(50% - 40px);z-index:100}.loader::before{content:"";position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255, 255, 255, 0.6)}.loader div{position:absolute;width:6px;height:6px;background:var(--loaderColor);border-radius:50%;animation:loader 1.2s linear infinite}.loader div:nth-child(1){animation-delay:0s;top:37px;left:66px}.loader div:nth-child(2){animation-delay:-0.1s;top:22px;left:62px}.loader div:nth-child(3){animation-delay:-0.2s;top:11px;left:52px}.loader div:nth-child(4){animation-delay:-0.3s;top:7px;left:37px}.loader div:nth-child(5){animation-delay:-0.4s;top:11px;left:22px}.loader div:nth-child(6){animation-delay:-0.5s;top:22px;left:11px}.loader div:nth-child(7){animation-delay:-0.6s;top:37px;left:7px}.loader div:nth-child(8){animation-delay:-0.7s;top:52px;left:11px}.loader div:nth-child(9){animation-delay:-0.8s;top:62px;left:22px}.loader div:nth-child(10){animation-delay:-0.9s;top:66px;left:37px}.loader div:nth-child(11){animation-delay:-1s;top:62px;left:52px}.loader div:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.table thead th{position:sticky;top:0}table{border-collapse:collapse;width:100%}table th{padding:14px 24px;text-align:left;font-weight:600;color:var(--textColor);background:var(--headerTableBackground)}table td{padding:1rem 1.7rem;box-shadow:0 -1px 0 0 var(--shadowBorderTable) inset;border-bottom:0.1rem solid var(--borderTable);text-align:left;color:var(--textColor)}table tbody{background:var(--backgroundTable)}table .success{color:var(--success)}table .error{color:var(--errorColor)}vaadin-date-picker{min-width:320px}@media (max-width: 1261px){vaadin-date-picker{width:auto;min-width:auto}}@media (max-width: 801px){vaadin-date-picker{width:100%}}.MenuReturnButton{font:inherit;color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MenuReturnButton h2.TransactionTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}',qd=Wd,Fa=class{constructor(i){m.registerInstance(this,i),this.pageSizes=[10,25,50],this.pagination=null,this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.mobile},window.location.href)},this.endpoint=void 0,this.session=void 0,this.language=I.defaultLanguage,this.userId=void 0,this.translationUrl=void 0,this.mobile=!1,this.clientStyling=null,this.clientStylingUrl=null,this.mbSource=void 0,this.dateFormat="",this.page=0,this.pageSize=this.pageSizes[0],this.showMobileFilter=!1,this.to=void 0,this.from=void 0,this.type="0",this.transactions=void 0,this.showLoader=!0}watchMultiple(){this.loadTransactions()}handleClientStylingChange(i,e){i!=e&&_o(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(i,e){i!=e&&this.clientStylingUrl&&vo(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return Vt(this,null,function*(){this.translationUrl&&(yield I.loadCustomTranslations(this.translationUrl)),this.to=Ie(new Date,`${this.dateFormat||"yyyy-MM-dd"}`),this.from=Ie(Ud(new Date,1),`${this.dateFormat||"yyyy-MM-dd"}`),this.loadTransactions()})}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?Rl(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&_o(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&vo(this.stylingContainer,this.clientStylingUrl)))}componentDidRender(){this.getComponentHeight()}getComponentHeight(){var i;if(this.mobile){let e=this.el.getBoundingClientRect().height-((i=this.el.shadowRoot.querySelector(".table"))===null||i===void 0?void 0:i.getBoundingClientRect().y);this.el.style.setProperty("--heightScrollableContainer",e+"px")}}setHeightTableProperty(){let i=this.getComponentHeight();this.el.style.setProperty("--heightScrollableContainer",i+"px")}changeTransactionsType(i){this.type=i}changePageSize(i){this.pageSize=i}prev(){var i;!((i=this.pagination)===null||i===void 0)&&i.previous&&this.page--}next(){var i;!((i=this.pagination)===null||i===void 0)&&i.next&&this.page++}applyFilters(i,e){this.from=i,this.to=e,this.loadTransactions()}showFilter(){this.showMobileFilter=!this.showMobileFilter}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){var i;const e=m.getAssetPath("../assets/filter.svg"),t=m.getAssetPath("../assets/warning.svg");return m.h(m.Host,{key:"395328866f9fbae0a79d1dcf9dc5e9fd6e321406"},this.showLoader?m.h(Is,null):"",m.h("div",{key:"fcb0efc2b0c9f2daa3df8c6c1d541dabe76c8126",class:"wrapper",ref:r=>this.stylingContainer=r},this.mobile?m.h("div",{class:"MenuReturnButton",onClick:this.toggleScreen},m.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},m.h("defs",null),m.h("g",{transform:"translate(-20 -158)"},m.h("g",{transform:"translate(20 158)"},m.h("path",{class:"aaa",d:"M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z",transform:"translate(15 15) rotate(180)"})))),m.h("h2",{class:"TransactionTitleMobile"},I.translate("transactionTitle",this.language))):m.h("h2",{class:"TransactionTitle"},I.translate("transactionTitle",this.language)),m.h("div",{key:"3fcb0ac0f3bc81ce2c3e298e53649a7050a53cb2",class:{"types types-mobile":this.mobile,"types types-desktop":!this.mobile}},m.h("button",{key:"1fcfd5dbf9857488bd0594f5b908e845a66f0d05",class:"transaction-type "+(this.type==="0"?"clicked":""),onClick:()=>this.changeTransactionsType("0")},I.translate("deposit",this.language)),m.h("button",{key:"58c6707975e3854e8a4afcf270a11dacd3c15947",class:"transaction-type "+(this.type==="1"?"clicked":""),onClick:()=>this.changeTransactionsType("1")},I.translate("withdrawals",this.language))),this.mobile?"":m.h(Bl,{language:this.language,pageSizes:this.pageSizes,currentPageSize:this.pageSize,changePageSize:r=>this.changePageSize(r)}),this.mobile?m.h("button",{class:"mobile-filter-button",onClick:()=>this.showFilter()},m.h("img",{src:e,alt:"Filter"}),I.translate("filter",this.language)):"",!this.mobile||this.showMobileFilter&&this.mobile?m.h("user-transaction-history-filter",{language:this.language,onApplyFilters:({detail:{from:r,to:o}})=>this.applyFilters(r,o),from:this.from,to:this.to,dateformat:this.dateFormat}):"",((i=this.transactions)===null||i===void 0?void 0:i.length)>0?m.h("div",{class:"table"},this.mobile?m.h("div",{class:"mobile-table"},this.transactions.map(r=>m.h(Fl,Object.assign({},r,{dateformat:this.dateFormat})))):m.h(Vl,{source:this.transactions,language:this.language,dateformat:this.dateFormat})):m.h("div",{class:"noData"},m.h("img",{src:t,alt:"Warning"}),m.h("span",null,I.translate("noData",this.language))),m.h("div",{key:"a58ec540ecc0d4162bb32eae5bd453e37cf7fed1",class:"pagination"},m.h("button",{key:"f21b01b72d7a4470e1cbbefdec50169e6e5bc222",onClick:()=>this.prev()},"<"),m.h("button",{key:"d14d057b3620a30ae3c11a5f22640913c0a1d32e",onClick:()=>this.next()},">"))))}loadTransactions(){return Vt(this,null,function*(){this.showLoader=!0;try{const i=`${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`,e=yield fetch(i,{headers:{"X-Sessionid":this.session,"Content-Type":"application/json"}});if(!e.ok){const r=yield e.text();throw new Error(r)}const t=yield e.json();this.pagination=t.pagination,this.transactions=t.transactions}catch(i){console.error(i)}finally{this.showLoader=!1}})}formatDateForApi(i){const e=La(i,`${this.dateFormat||"yyyy-MM-dd"}`,new Date);return Ie(e,"yyyy-MM-dd")}getParams(){const i=(this.page*this.pageSize).toString(),e=this.formatDateForApi(this.from),t=this.formatDateForApi(this.to);return`offset=${i}&endDate=${t}&startDate=${e}&type=${this.type}&limit=${this.pageSize}`}static get assetsDirs(){return["../assets"]}get el(){return m.getElement(this)}static get watchers(){return{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],showMobileFilter:["getComponentHeight"]}}};Fa.style=qd;var Yd=Object.defineProperty,jd=Object.defineProperties,Gd=Object.getOwnPropertyDescriptors,yo=Object.getOwnPropertySymbols,Kd=Object.prototype.hasOwnProperty,Xd=Object.prototype.propertyIsEnumerable,jr=(i,e,t)=>e in i?Yd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,er=(i,e)=>{for(var t in e||(e={}))Kd.call(e,t)&&jr(i,t,e[t]);if(yo)for(var t of yo(e))Xd.call(e,t)&&jr(i,t,e[t]);return i},Ba=(i,e)=>jd(i,Gd(e)),X=(i,e,t)=>(jr(i,typeof e!="symbol"?e+"":e,t),t),tr=(i,e,t)=>new Promise((r,o)=>{var a=l=>{try{s(t.next(l))}catch(d){o(d)}},n=l=>{try{s(t.throw(l))}catch(d){o(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(i,e)).next())});/**
3
3
  * @license
4
4
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
5
5
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
- */function y(o,e="24.5.10"){Object.defineProperty(o,"version",{get(){return e}});const t=customElements.get(o.is);if(!t)customElements.define(o.is,o);else{const r=t.version;r&&o.version&&r===o.version?console.warn(`The component ${o.is} has been loaded twice`):console.error(`Tried to define ${o.is} version ${o.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
6
+ */function y(i,e="24.5.10"){Object.defineProperty(i,"version",{get(){return e}});const t=customElements.get(i.is);if(!t)customElements.define(i.is,i);else{const r=t.version;r&&i.version&&r===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
7
7
  * @license
8
8
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9
9
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10
- */class Xd extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}y(Xd);/**
10
+ */class Qd extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}y(Qd);/**
11
11
  * @license
12
12
  * Copyright 2019 Google LLC
13
13
  * SPDX-License-Identifier: BSD-3-Clause
14
- */const Gt=globalThis,wi=Gt.ShadowRoot&&(Gt.ShadyCSS===void 0||Gt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xi=Symbol(),wo=new WeakMap;let Ci=class{constructor(o,e,t){if(this._$cssResult$=!0,t!==xi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=e}get styleSheet(){let o=this.o;const e=this.t;if(wi&&o===void 0){const t=e!==void 0&&e.length===1;t&&(o=wo.get(e)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),t&&wo.set(e,o))}return o}toString(){return this.cssText}};const Qd=o=>new Ci(typeof o=="string"?o:o+"",void 0,xi),f=(o,...e)=>{const t=o.length===1?o[0]:e.reduce((r,i,a)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[a+1],o[0]);return new Ci(t,o,xi)},Ba=(o,e)=>{if(wi)o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),i=Gt.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=t.cssText,o.appendChild(r)}},xo=wi?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return Qd(t)})(o):o;/**
14
+ */const Gt=globalThis,wi=Gt.ShadowRoot&&(Gt.ShadyCSS===void 0||Gt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xi=Symbol(),wo=new WeakMap;let Ci=class{constructor(i,e,t){if(this._$cssResult$=!0,t!==xi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=e}get styleSheet(){let i=this.o;const e=this.t;if(wi&&i===void 0){const t=e!==void 0&&e.length===1;t&&(i=wo.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),t&&wo.set(e,i))}return i}toString(){return this.cssText}};const Jd=i=>new Ci(typeof i=="string"?i:i+"",void 0,xi),f=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((r,o,a)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[a+1],i[0]);return new Ci(t,i,xi)},Va=(i,e)=>{if(wi)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),o=Gt.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,i.appendChild(r)}},xo=wi?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return Jd(t)})(i):i;/**
15
15
  * @license
16
16
  * Copyright 2017 Google LLC
17
17
  * SPDX-License-Identifier: BSD-3-Clause
18
- */const{is:Jd,defineProperty:Zd,getOwnPropertyDescriptor:ec,getOwnPropertyNames:tc,getOwnPropertySymbols:rc,getPrototypeOf:ic}=Object,Ye=globalThis,Co=Ye.trustedTypes,oc=Co?Co.emptyScript:"",ko=Ye.reactiveElementPolyfillSupport,mt=(o,e)=>o,Gr={toAttribute(o,e){switch(e){case Boolean:o=o?oc:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch(r){t=null}}return t}},Va=(o,e)=>!Jd(o,e),Eo={attribute:!0,type:String,converter:Gr,reflect:!1,useDefault:!1,hasChanged:Va};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),Ye.litPropertyMetadata!=null||(Ye.litPropertyMetadata=new WeakMap);class Ve extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Eo){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(e,r,t);i!==void 0&&Zd(this.prototype,e,i)}}static getPropertyDescriptor(e,t,r){var i;const{get:a,set:n}=(i=ec(this.prototype,e))!=null?i:{get(){return this[t]},set(s){this[t]=s}};return{get:a,set(s){const l=a==null?void 0:a.call(this);n==null||n.call(this,s),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:Eo}static _$Ei(){if(this.hasOwnProperty(mt("elementProperties")))return;const e=ic(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(mt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(mt("properties"))){const t=this.properties,r=[...tc(t),...rc(t)];for(const i of r)this.createProperty(i,t[i])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,i]of t)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const i=this._$Eu(t,r);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const i of r)t.unshift(xo(i))}else e!==void 0&&t.push(xo(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Ba(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostConnected)==null?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){var r;const i=this.constructor.elementProperties.get(e),a=this.constructor._$Eu(e,i);if(a!==void 0&&i.reflect===!0){const n=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:Gr).toAttribute(t,i.type);this._$Em=e,n==null?this.removeAttribute(a):this.setAttribute(a,n),this._$Em=null}}_$AK(e,t){var r,i,a;const n=this.constructor,s=n._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const l=n.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:((r=l.converter)==null?void 0:r.fromAttribute)!==void 0?l.converter:Gr;this._$Em=s;const c=d.fromAttribute(t,l.type);this[s]=(a=c!=null?c:(i=this._$Ej)==null?void 0:i.get(s))!=null?a:c,this._$Em=null}}requestUpdate(e,t,r){var i,a;if(e!==void 0){const n=this.constructor,s=this[e];if(r!=null||(r=n.getPropertyOptions(e)),!(((i=r.hasChanged)!=null?i:Va)(s,t)||r.useDefault&&r.reflect&&s===((a=this._$Ej)==null?void 0:a.get(e))&&!this.hasAttribute(n._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:i,wrapped:a},n){var s,l,d;r&&!((s=this._$Ej)!=null?s:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=n!=null?n:t)!=null?l:this[e]),a!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),i===!0&&this._$Em!==e&&((d=this._$Eq)!=null?d:this._$Eq=new Set).add(e))}_$EP(){return tr(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,n]of this._$Ep)this[a]=n;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[a,n]of i){const{wrapped:s}=n,l=this[a];s!==!0||this._$AL.has(a)||l===void 0||this.C(a,void 0,n,l)}}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$EO)==null||e.forEach(i=>{var a;return(a=i.hostUpdate)==null?void 0:a.call(i)}),this.update(r)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}}var To;Ve.elementStyles=[],Ve.shadowRootOptions={mode:"open"},Ve[mt("elementProperties")]=new Map,Ve[mt("finalized")]=new Map,ko==null||ko({ReactiveElement:Ve}),((To=Ye.reactiveElementVersions)!=null?To:Ye.reactiveElementVersions=[]).push("2.1.1");/**
18
+ */const{is:Zd,defineProperty:ec,getOwnPropertyDescriptor:tc,getOwnPropertyNames:rc,getOwnPropertySymbols:ic,getPrototypeOf:oc}=Object,Ye=globalThis,Co=Ye.trustedTypes,ac=Co?Co.emptyScript:"",ko=Ye.reactiveElementPolyfillSupport,mt=(i,e)=>i,Gr={toAttribute(i,e){switch(e){case Boolean:i=i?ac:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(r){t=null}}return t}},Ra=(i,e)=>!Zd(i,e),Eo={attribute:!0,type:String,converter:Gr,reflect:!1,useDefault:!1,hasChanged:Ra};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),Ye.litPropertyMetadata!=null||(Ye.litPropertyMetadata=new WeakMap);let Ve=class extends HTMLElement{static addInitializer(i){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,e=Eo){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(i)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(i,e),!e.noAccessor){const t=Symbol(),r=this.getPropertyDescriptor(i,t,e);r!==void 0&&ec(this.prototype,i,r)}}static getPropertyDescriptor(i,e,t){var r;const{get:o,set:a}=(r=tc(this.prototype,i))!=null?r:{get(){return this[e]},set(n){this[e]=n}};return{get:o,set(n){const s=o==null?void 0:o.call(this);a==null||a.call(this,n),this.requestUpdate(i,s,t)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var e;return(e=this.elementProperties.get(i))!=null?e:Eo}static _$Ei(){if(this.hasOwnProperty(mt("elementProperties")))return;const i=oc(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(mt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(mt("properties"))){const e=this.properties,t=[...rc(e),...ic(e)];for(const r of t)this.createProperty(r,e[r])}const i=this[Symbol.metadata];if(i!==null){const e=litPropertyMetadata.get(i);if(e!==void 0)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){const e=[];if(Array.isArray(i)){const t=new Set(i.flat(1/0).reverse());for(const r of t)e.unshift(xo(r))}else i!==void 0&&e.push(xo(i));return e}static _$Eu(i,e){const t=e.attribute;return t===!1?void 0:typeof t=="string"?t:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(e=>e(this))}addController(i){var e,t;((e=this._$EO)!=null?e:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((t=i.hostConnected)==null||t.call(i))}removeController(i){var e;(e=this._$EO)==null||e.delete(i)}_$E_(){const i=new Map,e=this.constructor.elementProperties;for(const t of e.keys())this.hasOwnProperty(t)&&(i.set(t,this[t]),delete this[t]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var i;const e=(i=this.shadowRoot)!=null?i:this.attachShadow(this.constructor.shadowRootOptions);return Va(e,this.constructor.elementStyles),e}connectedCallback(){var i;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(i=this._$EO)==null||i.forEach(e=>{var t;return(t=e.hostConnected)==null?void 0:t.call(e)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(e=>{var t;return(t=e.hostDisconnected)==null?void 0:t.call(e)})}attributeChangedCallback(i,e,t){this._$AK(i,t)}_$ET(i,e){var t;const r=this.constructor.elementProperties.get(i),o=this.constructor._$Eu(i,r);if(o!==void 0&&r.reflect===!0){const a=(((t=r.converter)==null?void 0:t.toAttribute)!==void 0?r.converter:Gr).toAttribute(e,r.type);this._$Em=i,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$Em=null}}_$AK(i,e){var t,r,o;const a=this.constructor,n=a._$Eh.get(i);if(n!==void 0&&this._$Em!==n){const s=a.getPropertyOptions(n),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((t=s.converter)==null?void 0:t.fromAttribute)!==void 0?s.converter:Gr;this._$Em=n;const d=l.fromAttribute(e,s.type);this[n]=(o=d!=null?d:(r=this._$Ej)==null?void 0:r.get(n))!=null?o:d,this._$Em=null}}requestUpdate(i,e,t,r=!1,o){var a,n;if(i!==void 0){const s=this.constructor;if(r===!1&&(o=this[i]),t!=null||(t=s.getPropertyOptions(i)),!(((a=t.hasChanged)!=null?a:Ra)(o,e)||t.useDefault&&t.reflect&&o===((n=this._$Ej)==null?void 0:n.get(i))&&!this.hasAttribute(s._$Eu(i,t))))return;this.C(i,e,t)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(i,e,{useDefault:t,reflect:r,wrapped:o},a){var n,s,l;t&&!((n=this._$Ej)!=null?n:this._$Ej=new Map).has(i)&&(this._$Ej.set(i,(s=a!=null?a:e)!=null?s:this[i]),o!==!0||a!==void 0)||(this._$AL.has(i)||(this.hasUpdated||t||(e=void 0),this._$AL.set(i,e)),r===!0&&this._$Em!==i&&((l=this._$Eq)!=null?l:this._$Eq=new Set).add(i))}_$EP(){return tr(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const i=this.scheduleUpdate();return i!=null&&(yield i),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,a]of this._$Ep)this[o]=a;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[o,a]of r){const{wrapped:n}=a,s=this[o];n!==!0||this._$AL.has(o)||s===void 0||this.C(o,void 0,a,s)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(r=>{var o;return(o=r.hostUpdate)==null?void 0:o.call(r)}),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(i){}_$AE(i){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostUpdated)==null?void 0:r.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(i){}firstUpdated(i){}};var To;Ve.elementStyles=[],Ve.shadowRootOptions={mode:"open"},Ve[mt("elementProperties")]=new Map,Ve[mt("finalized")]=new Map,ko==null||ko({ReactiveElement:Ve}),((To=Ye.reactiveElementVersions)!=null?To:Ye.reactiveElementVersions=[]).push("2.1.2");/**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
- */const rr=globalThis,ir=rr.trustedTypes,Ao=ir?ir.createPolicy("lit-html",{createHTML:o=>o}):void 0,Ra="$lit$",ye=`lit$${Math.random().toFixed(9).slice(2)}$`,$a="?"+ye,ac=`<${$a}>`,Oe=document,_t=()=>Oe.createComment(""),vt=o=>o===null||typeof o!="object"&&typeof o!="function",ki=Array.isArray,nc=o=>ki(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Sr=`[
23
- \f\r]`,nt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Po=/-->/g,Io=/>/g,Ee=RegExp(`>|${Sr}(?:([^\\s"'>=/]+)(${Sr}*=${Sr}*(?:[^
24
- \f\r"'\`<>=]|("|')|))|$)`,"g"),So=/'/g,Do=/"/g,Ha=/^(?:script|style|textarea|title)$/i,je=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),Oo=new WeakMap,Ae=Oe.createTreeWalker(Oe,129);function Ua(o,e){if(!ki(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ao!==void 0?Ao.createHTML(e):e}const sc=(o,e)=>{const t=o.length-1,r=[];let i,a=e===2?"<svg>":e===3?"<math>":"",n=nt;for(let s=0;s<t;s++){const l=o[s];let d,c,h=-1,u=0;for(;u<l.length&&(n.lastIndex=u,c=n.exec(l),c!==null);)u=n.lastIndex,n===nt?c[1]==="!--"?n=Po:c[1]!==void 0?n=Io:c[2]!==void 0?(Ha.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=Ee):c[3]!==void 0&&(n=Ee):n===Ee?c[0]===">"?(n=i!=null?i:nt,h=-1):c[1]===void 0?h=-2:(h=n.lastIndex-c[2].length,d=c[1],n=c[3]===void 0?Ee:c[3]==='"'?Do:So):n===Do||n===So?n=Ee:n===Po||n===Io?n=nt:(n=Ee,i=void 0);const p=n===Ee&&o[s+1].startsWith("/>")?" ":"";a+=n===nt?l+ac:h>=0?(r.push(d),l.slice(0,h)+Ra+l.slice(h)+ye+p):l+ye+(h===-2?s:p)}return[Ua(o,a+(o[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class gt{constructor({strings:e,_$litType$:t},r){let i;this.parts=[];let a=0,n=0;const s=e.length-1,l=this.parts,[d,c]=sc(e,t);if(this.el=gt.createElement(d,r),Ae.currentNode=this.el.content,t===2||t===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=Ae.nextNode())!==null&&l.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(const h of i.getAttributeNames())if(h.endsWith(Ra)){const u=c[n++],p=i.getAttribute(h).split(ye),b=/([.?@])?(.*)/.exec(u);l.push({type:1,index:a,name:b[2],strings:p,ctor:b[1]==="."?dc:b[1]==="?"?cc:b[1]==="@"?hc:pr}),i.removeAttribute(h)}else h.startsWith(ye)&&(l.push({type:6,index:a}),i.removeAttribute(h));if(Ha.test(i.tagName)){const h=i.textContent.split(ye),u=h.length-1;if(u>0){i.textContent=ir?ir.emptyScript:"";for(let p=0;p<u;p++)i.append(h[p],_t()),Ae.nextNode(),l.push({type:2,index:++a});i.append(h[u],_t())}}}else if(i.nodeType===8)if(i.data===$a)l.push({type:2,index:a});else{let h=-1;for(;(h=i.data.indexOf(ye,h+1))!==-1;)l.push({type:7,index:a}),h+=ye.length-1}a++}}static createElement(e,t){const r=Oe.createElement("template");return r.innerHTML=e,r}}function Ge(o,e,t=o,r){var i,a,n;if(e===je)return e;let s=r!==void 0?(i=t._$Co)==null?void 0:i[r]:t._$Cl;const l=vt(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==l&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),l===void 0?s=void 0:(s=new l(o),s._$AT(o,t,r)),r!==void 0?((n=t._$Co)!=null?n:t._$Co=[])[r]=s:t._$Cl=s),s!==void 0&&(e=Ge(o,s._$AS(o,e.values),s,r)),e}class lc{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:r},parts:i}=this._$AD,a=((t=e==null?void 0:e.creationScope)!=null?t:Oe).importNode(r,!0);Ae.currentNode=a;let n=Ae.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let c;d.type===2?c=new Pt(n,n.nextSibling,this,e):d.type===1?c=new d.ctor(n,d.name,d.strings,this,e):d.type===6&&(c=new uc(n,this,e)),this._$AV.push(c),d=i[++l]}s!==(d==null?void 0:d.index)&&(n=Ae.nextNode(),s++)}return Ae.currentNode=Oe,a}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class Pt{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,i){var a;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=i,this._$Cv=(a=i==null?void 0:i.isConnected)!=null?a:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ge(this,e,t),vt(e)?e===Y||e==null||e===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):e!==this._$AH&&e!==je&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):nc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Y&&vt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Oe.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:i}=e,a=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=gt.createElement(Ua(i.h,i.h[0]),this.options)),i);if(((t=this._$AH)==null?void 0:t._$AD)===a)this._$AH.p(r);else{const n=new lc(a,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let t=Oo.get(e.strings);return t===void 0&&Oo.set(e.strings,t=new gt(e)),t}k(e){ki(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,i=0;for(const a of e)i===t.length?t.push(r=new Pt(this.O(_t()),this.O(_t()),this,this.options)):r=t[i],r._$AI(a),i++;i<t.length&&(this._$AR(r&&r._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class pr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,i,a){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Y}_$AI(e,t=this,r,i){const a=this.strings;let n=!1;if(a===void 0)e=Ge(this,e,t,0),n=!vt(e)||e!==this._$AH&&e!==je,n&&(this._$AH=e);else{const s=e;let l,d;for(e=a[0],l=0;l<a.length-1;l++)d=Ge(this,s[r+l],t,l),d===je&&(d=this._$AH[l]),n||(n=!vt(d)||d!==this._$AH[l]),d===Y?e=Y:e!==Y&&(e+=(d!=null?d:"")+a[l+1]),this._$AH[l]=d}n&&!i&&this.j(e)}j(e){e===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class dc extends pr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Y?void 0:e}}class cc extends pr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Y)}}class hc extends pr{constructor(e,t,r,i,a){super(e,t,r,i,a),this.type=5}_$AI(e,t=this){var r;if((e=(r=Ge(this,e,t,0))!=null?r:Y)===je)return;const i=this._$AH,a=e===Y&&i!==Y||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==Y&&(i===Y||a);a&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class uc{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Ge(this,e)}}const Mo=rr.litHtmlPolyfillSupport;var zo;Mo==null||Mo(gt,Pt),((zo=rr.litHtmlVersions)!=null?zo:rr.litHtmlVersions=[]).push("3.3.1");const Wa=(o,e,t)=>{var r,i;const a=(r=t==null?void 0:t.renderBefore)!=null?r:e;let n=a._$litPart$;if(n===void 0){const s=(i=t==null?void 0:t.renderBefore)!=null?i:null;a._$litPart$=n=new Pt(e.insertBefore(_t(),s),s,void 0,t!=null?t:{})}return n._$AI(o),n};/**
22
+ */const rr=globalThis,Ao=i=>i,ir=rr.trustedTypes,Po=ir?ir.createPolicy("lit-html",{createHTML:i=>i}):void 0,$a="$lit$",ye=`lit$${Math.random().toFixed(9).slice(2)}$`,Ha="?"+ye,nc=`<${Ha}>`,Oe=document,_t=()=>Oe.createComment(""),vt=i=>i===null||typeof i!="object"&&typeof i!="function",ki=Array.isArray,sc=i=>ki(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Sr=`[
23
+ \f\r]`,nt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Io=/-->/g,So=/>/g,Ee=RegExp(`>|${Sr}(?:([^\\s"'>=/]+)(${Sr}*=${Sr}*(?:[^
24
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Do=/'/g,Oo=/"/g,Ua=/^(?:script|style|textarea|title)$/i,je=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),Mo=new WeakMap,Ae=Oe.createTreeWalker(Oe,129);function Wa(i,e){if(!ki(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Po!==void 0?Po.createHTML(e):e}const lc=(i,e)=>{const t=i.length-1,r=[];let o,a=e===2?"<svg>":e===3?"<math>":"",n=nt;for(let s=0;s<t;s++){const l=i[s];let d,c,h=-1,u=0;for(;u<l.length&&(n.lastIndex=u,c=n.exec(l),c!==null);)u=n.lastIndex,n===nt?c[1]==="!--"?n=Io:c[1]!==void 0?n=So:c[2]!==void 0?(Ua.test(c[2])&&(o=RegExp("</"+c[2],"g")),n=Ee):c[3]!==void 0&&(n=Ee):n===Ee?c[0]===">"?(n=o!=null?o:nt,h=-1):c[1]===void 0?h=-2:(h=n.lastIndex-c[2].length,d=c[1],n=c[3]===void 0?Ee:c[3]==='"'?Oo:Do):n===Oo||n===Do?n=Ee:n===Io||n===So?n=nt:(n=Ee,o=void 0);const p=n===Ee&&i[s+1].startsWith("/>")?" ":"";a+=n===nt?l+nc:h>=0?(r.push(d),l.slice(0,h)+$a+l.slice(h)+ye+p):l+ye+(h===-2?s:p)}return[Wa(i,a+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class gt{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let a=0,n=0;const s=e.length-1,l=this.parts,[d,c]=lc(e,t);if(this.el=gt.createElement(d,r),Ae.currentNode=this.el.content,t===2||t===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=Ae.nextNode())!==null&&l.length<s;){if(o.nodeType===1){if(o.hasAttributes())for(const h of o.getAttributeNames())if(h.endsWith($a)){const u=c[n++],p=o.getAttribute(h).split(ye),b=/([.?@])?(.*)/.exec(u);l.push({type:1,index:a,name:b[2],strings:p,ctor:b[1]==="."?cc:b[1]==="?"?hc:b[1]==="@"?uc:pr}),o.removeAttribute(h)}else h.startsWith(ye)&&(l.push({type:6,index:a}),o.removeAttribute(h));if(Ua.test(o.tagName)){const h=o.textContent.split(ye),u=h.length-1;if(u>0){o.textContent=ir?ir.emptyScript:"";for(let p=0;p<u;p++)o.append(h[p],_t()),Ae.nextNode(),l.push({type:2,index:++a});o.append(h[u],_t())}}}else if(o.nodeType===8)if(o.data===Ha)l.push({type:2,index:a});else{let h=-1;for(;(h=o.data.indexOf(ye,h+1))!==-1;)l.push({type:7,index:a}),h+=ye.length-1}a++}}static createElement(e,t){const r=Oe.createElement("template");return r.innerHTML=e,r}}function Ge(i,e,t=i,r){var o,a,n;if(e===je)return e;let s=r!==void 0?(o=t._$Co)==null?void 0:o[r]:t._$Cl;const l=vt(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==l&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,r)),r!==void 0?((n=t._$Co)!=null?n:t._$Co=[])[r]=s:t._$Cl=s),s!==void 0&&(e=Ge(i,s._$AS(i,e.values),s,r)),e}class dc{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:r},parts:o}=this._$AD,a=((t=e==null?void 0:e.creationScope)!=null?t:Oe).importNode(r,!0);Ae.currentNode=a;let n=Ae.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let c;d.type===2?c=new Pt(n,n.nextSibling,this,e):d.type===1?c=new d.ctor(n,d.name,d.strings,this,e):d.type===6&&(c=new pc(n,this,e)),this._$AV.push(c),d=o[++l]}s!==(d==null?void 0:d.index)&&(n=Ae.nextNode(),s++)}return Ae.currentNode=Oe,a}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class Pt{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,o){var a;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=(a=o==null?void 0:o.isConnected)!=null?a:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ge(this,e,t),vt(e)?e===Y||e==null||e===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):e!==this._$AH&&e!==je&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):sc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Y&&vt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Oe.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:o}=e,a=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=gt.createElement(Wa(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)==null?void 0:t._$AD)===a)this._$AH.p(r);else{const n=new dc(a,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let t=Mo.get(e.strings);return t===void 0&&Mo.set(e.strings,t=new gt(e)),t}k(e){ki(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const a of e)o===t.length?t.push(r=new Pt(this.O(_t()),this.O(_t()),this,this.options)):r=t[o],r._$AI(a),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e!==this._$AB;){const o=Ao(e).nextSibling;Ao(e).remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class pr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,a){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Y}_$AI(e,t=this,r,o){const a=this.strings;let n=!1;if(a===void 0)e=Ge(this,e,t,0),n=!vt(e)||e!==this._$AH&&e!==je,n&&(this._$AH=e);else{const s=e;let l,d;for(e=a[0],l=0;l<a.length-1;l++)d=Ge(this,s[r+l],t,l),d===je&&(d=this._$AH[l]),n||(n=!vt(d)||d!==this._$AH[l]),d===Y?e=Y:e!==Y&&(e+=(d!=null?d:"")+a[l+1]),this._$AH[l]=d}n&&!o&&this.j(e)}j(e){e===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class cc extends pr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Y?void 0:e}}class hc extends pr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Y)}}class uc extends pr{constructor(e,t,r,o,a){super(e,t,r,o,a),this.type=5}_$AI(e,t=this){var r;if((e=(r=Ge(this,e,t,0))!=null?r:Y)===je)return;const o=this._$AH,a=e===Y&&o!==Y||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==Y&&(o===Y||a);a&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class pc{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Ge(this,e)}}const zo=rr.litHtmlPolyfillSupport;var No;zo==null||zo(gt,Pt),((No=rr.litHtmlVersions)!=null?No:rr.litHtmlVersions=[]).push("3.3.2");const qa=(i,e,t)=>{var r,o;const a=(r=t==null?void 0:t.renderBefore)!=null?r:e;let n=a._$litPart$;if(n===void 0){const s=(o=t==null?void 0:t.renderBefore)!=null?o:null;a._$litPart$=n=new Pt(e.insertBefore(_t(),s),s,void 0,t!=null?t:{})}return n._$AI(i),n};/**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
27
27
  * SPDX-License-Identifier: BSD-3-Clause
28
- */const bt=globalThis;class Re extends Ve{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Wa(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return je}}var No;Re._$litElement$=!0,Re.finalized=!0,(No=bt.litElementHydrateSupport)==null||No.call(bt,{LitElement:Re});const Lo=bt.litElementPolyfillSupport;Lo==null||Lo({LitElement:Re});var Fo;((Fo=bt.litElementVersions)!=null?Fo:bt.litElementVersions=[]).push("4.2.1");/**
28
+ */const bt=globalThis;class Re extends Ve{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=qa(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return je}}var Lo;Re._$litElement$=!0,Re.finalized=!0,(Lo=bt.litElementHydrateSupport)==null||Lo.call(bt,{LitElement:Re});const Fo=bt.litElementPolyfillSupport;Fo==null||Fo({LitElement:Re});var Bo;((Bo=bt.litElementVersions)!=null?Bo:bt.litElementVersions=[]).push("4.2.2");/**
29
29
  * @license
30
30
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
31
31
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
32
- */const mr=o=>class extends o{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e==="theme"&&this._set_theme(r)}};/**
32
+ */const mr=i=>class extends i{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e==="theme"&&this._set_theme(r)}};/**
33
33
  * @license
34
34
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
35
35
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
36
- */const qa=[],Kr=new Set,Ei=new Set;function Ya(o){return o&&Object.prototype.hasOwnProperty.call(o,"__themes")}function pc(o){return Ya(customElements.get(o))}function mc(o=[]){return[o].flat(1/0).filter(e=>e instanceof Ci?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function ja(o,e){return(o||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function Ga(o){return o.map(e=>e.cssText).join(`
37
- `)}const or="vaadin-themable-mixin-style";function fc(o,e){const t=document.createElement("style");t.id=or,t.textContent=Ga(o),e.content.appendChild(t)}function _c(o){if(!o.shadowRoot)return;const e=o.constructor;if(o instanceof Re)[...o.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),Ba(o.shadowRoot,e.elementStyles);else{const t=o.shadowRoot.getElementById(or),r=e.prototype._template;t.textContent=r.content.getElementById(or).textContent}}function vc(o){Kr.forEach(e=>{const t=e.deref();t instanceof o?_c(t):t||Kr.delete(e)})}function Ka(o){if(o.prototype instanceof Re)o.elementStyles=o.finalizeStyles(o.styles);else{const e=o.prototype._template;e.content.getElementById(or).textContent=Ga(o.getStylesForThis())}Ei.forEach(e=>{const t=customElements.get(e);t!==o&&t.prototype instanceof o&&Ka(t)})}function gc(o,e){const t=o.__themes;return!t||!e?!1:t.some(r=>r.styles.some(i=>e.some(a=>a.cssText===i.cssText)))}function g(o,e,t={}){e=mc(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(o,e,t):qa.push({themeFor:o,styles:e,include:t.include,moduleId:t.moduleId}),o&&Ei.forEach(r=>{if(ja(o,r)&&pc(r)){const i=customElements.get(r);gc(i,e)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" 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".`),Ka(i),vc(i)}})}function Xr(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():qa}function bc(o=""){let e=0;return o.startsWith("lumo-")||o.startsWith("material-")?e=1:o.startsWith("vaadin-")&&(e=2),e}function Xa(o){const e=[];return o.include&&[].concat(o.include).forEach(t=>{const r=Xr().find(i=>i.moduleId===t);r?e.push(...Xa(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},o.styles),e}function yc(o){const e=`${o}-default-theme`,t=Xr().filter(r=>r.moduleId!==e&&ja(r.themeFor,o)).map(r=>Fa(er({},r),{styles:[...Xa(r),...r.styles],includePriority:bc(r.moduleId)})).sort((r,i)=>i.includePriority-r.includePriority);return t.length>0?t:Xr().filter(r=>r.moduleId===e)}const z=o=>class extends mr(o){constructor(){super(),Kr.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Ei.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Ya(this)||fc(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=o.__themes||[],t=Object.getPrototypeOf(this.prototype),r=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...r,...yc(this.is)];const i=this.__themes.flatMap(a=>a.styles);return i.filter((a,n)=>n===i.lastIndexOf(a))}};/**
36
+ */const Ya=[],Kr=new Set,Ei=new Set;function ja(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function mc(i){return ja(customElements.get(i))}function fc(i=[]){return[i].flat(1/0).filter(e=>e instanceof Ci?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Ga(i,e){return(i||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function Ka(i){return i.map(e=>e.cssText).join(`
37
+ `)}const or="vaadin-themable-mixin-style";function _c(i,e){const t=document.createElement("style");t.id=or,t.textContent=Ka(i),e.content.appendChild(t)}function vc(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof Re)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),Va(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(or),r=e.prototype._template;t.textContent=r.content.getElementById(or).textContent}}function gc(i){Kr.forEach(e=>{const t=e.deref();t instanceof i?vc(t):t||Kr.delete(e)})}function Xa(i){if(i.prototype instanceof Re)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(or).textContent=Ka(i.getStylesForThis())}Ei.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&Xa(t)})}function bc(i,e){const t=i.__themes;return!t||!e?!1:t.some(r=>r.styles.some(o=>e.some(a=>a.cssText===o.cssText)))}function g(i,e,t={}){e=fc(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):Ya.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId}),i&&Ei.forEach(r=>{if(Ga(i,r)&&mc(r)){const o=customElements.get(r);bc(o,e)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" 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".`),Xa(o),gc(o)}})}function Xr(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Ya}function yc(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function Qa(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const r=Xr().find(o=>o.moduleId===t);r?e.push(...Qa(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function wc(i){const e=`${i}-default-theme`,t=Xr().filter(r=>r.moduleId!==e&&Ga(r.themeFor,i)).map(r=>Ba(er({},r),{styles:[...Qa(r),...r.styles],includePriority:yc(r.moduleId)})).sort((r,o)=>o.includePriority-r.includePriority);return t.length>0?t:Xr().filter(r=>r.moduleId===e)}const z=i=>class extends mr(i){constructor(){super(),Kr.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Ei.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||ja(this)||_c(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=i.__themes||[],t=Object.getPrototypeOf(this.prototype),r=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...r,...wc(this.is)];const o=this.__themes.flatMap(a=>a.styles);return o.filter((a,n)=>n===o.lastIndexOf(a))}};/**
38
38
  * @license
39
39
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
40
40
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
41
- */const wc=(o,...e)=>{const t=document.createElement("style");t.id=o,t.textContent=e.map(r=>r.toString()).join(`
42
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},Qe=(o,...e)=>{wc(`lumo-${o}`,e)};/**
41
+ */const xc=(i,...e)=>{const t=document.createElement("style");t.id=i,t.textContent=e.map(r=>r.toString()).join(`
42
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},Qe=(i,...e)=>{xc(`lumo-${i}`,e)};/**
43
43
  * @license
44
44
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
45
45
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
46
- */const xc=f`
46
+ */const Cc=f`
47
47
  :host {
48
48
  /* Base (background) */
49
49
  --lumo-base-color: #fff;
@@ -128,7 +128,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
128
128
  --lumo-disabled-text-color: GrayText;
129
129
  }
130
130
  }
131
- `;Qe("color-props",xc);const Cc=f`
131
+ `;Qe("color-props",Cc);const kc=f`
132
132
  [theme~='dark'] {
133
133
  /* Base (background) */
134
134
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -246,11 +246,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
246
246
  pre code {
247
247
  background: transparent;
248
248
  }
249
- `;g("",Cc,{moduleId:"lumo-color"});/**
249
+ `;g("",kc,{moduleId:"lumo-color"});/**
250
250
  * @license
251
251
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
252
252
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
253
- */const kc=f`
253
+ */const Ec=f`
254
254
  @font-face {
255
255
  font-family: 'lumo-icons';
256
256
  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==)
@@ -303,11 +303,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
303
303
  --lumo-icons-upload: '\\ea29';
304
304
  --lumo-icons-user: '\\ea2a';
305
305
  }
306
- `;Qe("font-icons",kc);/**
306
+ `;Qe("font-icons",Ec);/**
307
307
  * @license
308
308
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
309
309
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
310
- */const Ec=f`
310
+ */const Tc=f`
311
311
  :host {
312
312
  --lumo-size-xs: 1.625rem;
313
313
  --lumo-size-s: 1.875rem;
@@ -322,11 +322,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
322
322
  /* For backwards compatibility */
323
323
  --lumo-icon-size: var(--lumo-icon-size-m);
324
324
  }
325
- `;Qe("sizing-props",Ec);/**
325
+ `;Qe("sizing-props",Tc);/**
326
326
  * @license
327
327
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
328
328
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
329
- */const Tc=f`
329
+ */const Ac=f`
330
330
  :host {
331
331
  /* Square */
332
332
  --lumo-space-xs: 0.25rem;
@@ -349,11 +349,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
349
349
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
350
350
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
351
351
  }
352
- `;Qe("spacing-props",Tc);/**
352
+ `;Qe("spacing-props",Ac);/**
353
353
  * @license
354
354
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
355
355
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
356
- */const Ac=f`
356
+ */const Pc=f`
357
357
  :host {
358
358
  /* Border radius */
359
359
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -453,11 +453,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
453
453
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
454
454
  --vaadin-input-field-value-font-weight: 500;
455
455
  }
456
- `;Qe("style-props",Ac);/**
456
+ `;Qe("style-props",Pc);/**
457
457
  * @license
458
458
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
459
459
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
460
- */const Pc=f`
460
+ */const Ic=f`
461
461
  :host {
462
462
  /* prettier-ignore */
463
463
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -477,7 +477,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
477
477
  --lumo-line-height-s: 1.375;
478
478
  --lumo-line-height-m: 1.625;
479
479
  }
480
- `,Ic=f`
480
+ `,Sc=f`
481
481
  body,
482
482
  :host {
483
483
  font-family: var(--lumo-font-family);
@@ -569,7 +569,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
569
569
  border-left: none;
570
570
  border-right: 2px solid var(--lumo-contrast-30pct);
571
571
  }
572
- `;g("",Ic,{moduleId:"lumo-typography"});Qe("typography-props",Pc);g("vaadin-checkbox",f`
572
+ `;g("",Sc,{moduleId:"lumo-typography"});Qe("typography-props",Ic);g("vaadin-checkbox",f`
573
573
  :host {
574
574
  color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
575
575
  font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
@@ -881,7 +881,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
881
881
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
882
882
  Code distributed by Google as part of the polymer project is also
883
883
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
884
- */window.JSCompiler_renameProperty=function(o,e){return o};/**
884
+ */window.JSCompiler_renameProperty=function(i,e){return i};/**
885
885
  @license
886
886
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
887
887
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -889,7 +889,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
889
889
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
890
890
  Code distributed by Google as part of the polymer project is also
891
891
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
892
- */let Sc=/(url\()([^)]*)(\))/g,Dc=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Rt,te;function ft(o,e){if(o&&Dc.test(o)||o==="//")return o;if(Rt===void 0){Rt=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",Rt=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),Rt)try{return new URL(o,e).href}catch(t){return o}return te||(te=document.implementation.createHTMLDocument("temp"),te.base=te.createElement("base"),te.head.appendChild(te.base),te.anchor=te.createElement("a"),te.body.appendChild(te.anchor)),te.base.href=e,te.anchor.href=o,te.anchor.href||o}function Ti(o,e){return o.replace(Sc,function(t,r,i,a){return r+"'"+ft(i.replace(/["']/g,""),e)+"'"+a})}function Ai(o){return o.substring(0,o.lastIndexOf("/")+1)}/**
892
+ */let Dc=/(url\()([^)]*)(\))/g,Oc=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Rt,te;function ft(i,e){if(i&&Oc.test(i)||i==="//")return i;if(Rt===void 0){Rt=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",Rt=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),Rt)try{return new URL(i,e).href}catch(t){return i}return te||(te=document.implementation.createHTMLDocument("temp"),te.base=te.createElement("base"),te.head.appendChild(te.base),te.anchor=te.createElement("a"),te.body.appendChild(te.anchor)),te.base.href=e,te.anchor.href=i,te.anchor.href||i}function Ti(i,e){return i.replace(Dc,function(t,r,o,a){return r+"'"+ft(o.replace(/["']/g,""),e)+"'"+a})}function Ai(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
893
893
  @license
894
894
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
895
895
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -897,7 +897,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
897
897
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
898
898
  Code distributed by Google as part of the polymer project is also
899
899
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
900
- */const Qa=!window.ShadyDOM||!window.ShadyDOM.inUse,Oc=Qa&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const o=new CSSStyleSheet;o.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[o],e.shadowRoot.adoptedStyleSheets[0]===o}catch(o){return!1}})();let Mc=window.Polymer&&window.Polymer.rootPath||Ai(document.baseURI||window.location.href),ar=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,nr=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,zc=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Ja=window.Polymer&&window.Polymer.legacyOptimizations||!1,Za=window.Polymer&&window.Polymer.legacyWarnings||!1,Nc=window.Polymer&&window.Polymer.syncInitialRender||!1,Qr=window.Polymer&&window.Polymer.legacyUndefined||!1,Lc=window.Polymer&&window.Polymer.orderedComputed||!1,Bo=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Fc=window.Polymer&&window.Polymer.fastDomIf||!1,Vo=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Bc=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
900
+ */const Ja=!window.ShadyDOM||!window.ShadyDOM.inUse,Mc=Ja&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[i],e.shadowRoot.adoptedStyleSheets[0]===i}catch(i){return!1}})();let zc=window.Polymer&&window.Polymer.rootPath||Ai(document.baseURI||window.location.href),ar=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,nr=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Nc=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Za=window.Polymer&&window.Polymer.legacyOptimizations||!1,en=window.Polymer&&window.Polymer.legacyWarnings||!1,Lc=window.Polymer&&window.Polymer.syncInitialRender||!1,Qr=window.Polymer&&window.Polymer.legacyUndefined||!1,Fc=window.Polymer&&window.Polymer.orderedComputed||!1,Vo=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Bc=window.Polymer&&window.Polymer.fastDomIf||!1,Ro=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Vc=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
901
901
  @license
902
902
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
903
903
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -905,7 +905,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
905
905
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
906
906
  Code distributed by Google as part of the polymer project is also
907
907
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
908
- */let Vc=0;const H=function(o){let e=o.__mixinApplications;e||(e=new WeakMap,o.__mixinApplications=e);let t=Vc++;function r(i){let a=i.__mixinSet;if(a&&a[t])return i;let n=e,s=n.get(i);if(!s){s=o(i),n.set(i,s);let l=Object.create(s.__mixinSet||a||null);l[t]=!0,s.__mixinSet=l}return s}return r};/**
908
+ */let Rc=0;const H=function(i){let e=i.__mixinApplications;e||(e=new WeakMap,i.__mixinApplications=e);let t=Rc++;function r(o){let a=o.__mixinSet;if(a&&a[t])return o;let n=e,s=n.get(o);if(!s){s=i(o),n.set(o,s);let l=Object.create(s.__mixinSet||a||null);l[t]=!0,s.__mixinSet=l}return s}return r};/**
909
909
  @license
910
910
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
911
911
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -913,7 +913,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
913
913
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
914
914
  Code distributed by Google as part of the polymer project is also
915
915
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
916
- */let Pi={},en={};function Ro(o,e){Pi[o]=en[o.toLowerCase()]=e}function $o(o){return Pi[o]||en[o.toLowerCase()]}function Rc(o){o.querySelector("style")&&console.warn("dom-module %s has style outside template",o.id)}class yt extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let r=$o(e);return r&&t?r.querySelector(t):r}return null}attributeChangedCallback(e,t,r,i){t!==r&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=ft(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Ai(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(nr&&$o(e)!==void 0)throw Ro(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Ro(e,this),Rc(this)}}}yt.prototype.modules=Pi;customElements.define("dom-module",yt);/**
916
+ */let Pi={},tn={};function $o(i,e){Pi[i]=tn[i.toLowerCase()]=e}function Ho(i){return Pi[i]||tn[i.toLowerCase()]}function $c(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class yt extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let r=Ho(e);return r&&t?r.querySelector(t):r}return null}attributeChangedCallback(e,t,r,o){t!==r&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=ft(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Ai(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(nr&&Ho(e)!==void 0)throw $o(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,$o(e,this),$c(this)}}}yt.prototype.modules=Pi;customElements.define("dom-module",yt);/**
917
917
  @license
918
918
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
919
919
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -921,7 +921,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
921
921
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
922
922
  Code distributed by Google as part of the polymer project is also
923
923
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
924
- */const $c="link[rel=import][type~=css]",Hc="include",Ho="shady-unscoped";function tn(o){return yt.import(o)}function Uo(o){let e=o.body?o.body:o;const t=Ti(e.textContent,o.baseURI),r=document.createElement("style");return r.textContent=t,r}function Uc(o){const e=o.trim().split(/\s+/),t=[];for(let r=0;r<e.length;r++)t.push(...Wc(e[r]));return t}function Wc(o){const e=tn(o);if(!e)return console.warn("Could not find style data in module named",o),[];if(e._styles===void 0){const t=[];t.push(...on(e));const r=e.querySelector("template");r&&t.push(...rn(r,e.assetpath)),e._styles=t}return e._styles}function rn(o,e){if(!o._styles){const t=[],r=o.content.querySelectorAll("style");for(let i=0;i<r.length;i++){let a=r[i],n=a.getAttribute(Hc);n&&t.push(...Uc(n).filter(function(s,l,d){return d.indexOf(s)===l})),e&&(a.textContent=Ti(a.textContent,e)),t.push(a)}o._styles=t}return o._styles}function qc(o){let e=tn(o);return e?on(e):[]}function on(o){const e=[],t=o.querySelectorAll($c);for(let r=0;r<t.length;r++){let i=t[r];if(i.import){const a=i.import,n=i.hasAttribute(Ho);if(n&&!a._unscopedStyle){const s=Uo(a);s.setAttribute(Ho,""),a._unscopedStyle=s}else a._style||(a._style=Uo(a));e.push(n?a._unscopedStyle:a._style)}}return e}/**
924
+ */const Hc="link[rel=import][type~=css]",Uc="include",Uo="shady-unscoped";function rn(i){return yt.import(i)}function Wo(i){let e=i.body?i.body:i;const t=Ti(e.textContent,i.baseURI),r=document.createElement("style");return r.textContent=t,r}function Wc(i){const e=i.trim().split(/\s+/),t=[];for(let r=0;r<e.length;r++)t.push(...qc(e[r]));return t}function qc(i){const e=rn(i);if(!e)return console.warn("Could not find style data in module named",i),[];if(e._styles===void 0){const t=[];t.push(...an(e));const r=e.querySelector("template");r&&t.push(...on(r,e.assetpath)),e._styles=t}return e._styles}function on(i,e){if(!i._styles){const t=[],r=i.content.querySelectorAll("style");for(let o=0;o<r.length;o++){let a=r[o],n=a.getAttribute(Uc);n&&t.push(...Wc(n).filter(function(s,l,d){return d.indexOf(s)===l})),e&&(a.textContent=Ti(a.textContent,e)),t.push(a)}i._styles=t}return i._styles}function Yc(i){let e=rn(i);return e?an(e):[]}function an(i){const e=[],t=i.querySelectorAll(Hc);for(let r=0;r<t.length;r++){let o=t[r];if(o.import){const a=o.import,n=o.hasAttribute(Uo);if(n&&!a._unscopedStyle){const s=Wo(a);s.setAttribute(Uo,""),a._unscopedStyle=s}else a._style||(a._style=Wo(a));e.push(n?a._unscopedStyle:a._style)}}return e}/**
925
925
  @license
926
926
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
927
927
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -929,7 +929,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
929
929
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
930
930
  Code distributed by Google as part of the polymer project is also
931
931
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
932
- */const G=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?o=>ShadyDOM.patch(o):o=>o;/**
932
+ */const G=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?i=>ShadyDOM.patch(i):i=>i;/**
933
933
  @license
934
934
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
935
935
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -937,7 +937,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
937
937
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
938
938
  Code distributed by Google as part of the polymer project is also
939
939
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
940
- */function Jr(o){return o.indexOf(".")>=0}function Me(o){let e=o.indexOf(".");return e===-1?o:o.slice(0,e)}function an(o,e){return o.indexOf(e+".")===0}function wt(o,e){return e.indexOf(o+".")===0}function xt(o,e,t){return e+t.slice(o.length)}function Yc(o,e){return o===e||an(o,e)||wt(o,e)}function ht(o){if(Array.isArray(o)){let e=[];for(let t=0;t<o.length;t++){let r=o[t].toString().split(".");for(let i=0;i<r.length;i++)e.push(r[i])}return e.join(".")}else return o}function nn(o){return Array.isArray(o)?ht(o).split("."):o.toString().split(".")}function Z(o,e,t){let r=o,i=nn(e);for(let a=0;a<i.length;a++){if(!r)return;let n=i[a];r=r[n]}return t&&(t.path=i.join(".")),r}function Wo(o,e,t){let r=o,i=nn(e),a=i[i.length-1];if(i.length>1){for(let n=0;n<i.length-1;n++){let s=i[n];if(r=r[s],!r)return}r[a]=t}else r[e]=t;return i.join(".")}/**
940
+ */function Jr(i){return i.indexOf(".")>=0}function Me(i){let e=i.indexOf(".");return e===-1?i:i.slice(0,e)}function nn(i,e){return i.indexOf(e+".")===0}function wt(i,e){return e.indexOf(i+".")===0}function xt(i,e,t){return e+t.slice(i.length)}function jc(i,e){return i===e||nn(i,e)||wt(i,e)}function ht(i){if(Array.isArray(i)){let e=[];for(let t=0;t<i.length;t++){let r=i[t].toString().split(".");for(let o=0;o<r.length;o++)e.push(r[o])}return e.join(".")}else return i}function sn(i){return Array.isArray(i)?ht(i).split("."):i.toString().split(".")}function Z(i,e,t){let r=i,o=sn(e);for(let a=0;a<o.length;a++){if(!r)return;let n=o[a];r=r[n]}return t&&(t.path=o.join(".")),r}function qo(i,e,t){let r=i,o=sn(e),a=o[o.length-1];if(o.length>1){for(let n=0;n<o.length-1;n++){let s=o[n];if(r=r[s],!r)return}r[a]=t}else r[e]=t;return o.join(".")}/**
941
941
  @license
942
942
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
943
943
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -945,7 +945,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
945
945
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
946
946
  Code distributed by Google as part of the polymer project is also
947
947
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
948
- */const sr={},jc=/-[a-z]/g,Gc=/([A-Z])/g;function sn(o){return sr[o]||(sr[o]=o.indexOf("-")<0?o:o.replace(jc,e=>e[1].toUpperCase()))}function fr(o){return sr[o]||(sr[o]=o.replace(Gc,"-$1").toLowerCase())}/**
948
+ */const sr={},Gc=/-[a-z]/g,Kc=/([A-Z])/g;function ln(i){return sr[i]||(sr[i]=i.indexOf("-")<0?i:i.replace(Gc,e=>e[1].toUpperCase()))}function fr(i){return sr[i]||(sr[i]=i.replace(Kc,"-$1").toLowerCase())}/**
949
949
  @license
950
950
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
951
951
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -953,7 +953,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
953
953
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
954
954
  Code distributed by Google as part of the polymer project is also
955
955
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
956
- */let Kc=0,ln=0,$e=[],Xc=0,Zr=!1,dn=document.createTextNode("");new window.MutationObserver(Qc).observe(dn,{characterData:!0});function Qc(){Zr=!1;const o=$e.length;for(let e=0;e<o;e++){let t=$e[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}$e.splice(0,o),ln+=o}const Jc={after(o){return{run(e){return window.setTimeout(e,o)},cancel(e){window.clearTimeout(e)}}},run(o,e){return window.setTimeout(o,e)},cancel(o){window.clearTimeout(o)}},cn={run(o){return Zr||(Zr=!0,dn.textContent=Xc++),$e.push(o),Kc++},cancel(o){const e=o-ln;if(e>=0){if(!$e[e])throw new Error("invalid async handle: "+o);$e[e]=null}}};/**
956
+ */let Xc=0,dn=0,$e=[],Qc=0,Zr=!1,cn=document.createTextNode("");new window.MutationObserver(Jc).observe(cn,{characterData:!0});function Jc(){Zr=!1;const i=$e.length;for(let e=0;e<i;e++){let t=$e[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}$e.splice(0,i),dn+=i}const Zc={after(i){return{run(e){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}}},run(i,e){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}},hn={run(i){return Zr||(Zr=!0,cn.textContent=Qc++),$e.push(i),Xc++},cancel(i){const e=i-dn;if(e>=0){if(!$e[e])throw new Error("invalid async handle: "+i);$e[e]=null}}};/**
957
957
  @license
958
958
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
959
959
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -961,7 +961,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
961
961
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
962
962
  Code distributed by Google as part of the polymer project is also
963
963
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
964
- */const Zc=cn,hn=H(o=>{class e extends o{static createProperties(r){const i=this.prototype;for(let a in r)a in i||i._createPropertyAccessor(a)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,i){this._addPropertyToAttributeMap(r),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,i))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let i=this.__dataAttributes[r];return i||(i=this.constructor.attributeNameForProperty(r),this.__dataAttributes[i]=r),i}_definePropertyAccessor(r,i){Object.defineProperty(this,r,{get(){return this.__data[r]},set:i?function(){}:function(a){this._setPendingProperty(r,a,!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 r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])}_initializeInstanceProperties(r){Object.assign(this,r)}_setProperty(r,i){this._setPendingProperty(r,i)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,i,a){let n=this.__data[r],s=this._shouldPropertyChange(r,i,n);return s&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=n),this.__data[r]=i,this.__dataPending[r]=i),s}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Zc.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 r=this.__data,i=this.__dataPending,a=this.__dataOld;this._shouldPropertiesChange(r,i,a)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,i,a)),this.__dataCounter--}_shouldPropertiesChange(r,i,a){return!!i}_propertiesChanged(r,i,a){}_shouldPropertyChange(r,i,a){return a!==i&&(a===a||i===i)}attributeChangedCallback(r,i,a,n){i!==a&&this._attributeToProperty(r,a),super.attributeChangedCallback&&super.attributeChangedCallback(r,i,a,n)}_attributeToProperty(r,i,a){if(!this.__serializing){const n=this.__dataAttributes,s=n&&n[r]||r;this[s]=this._deserializeValue(i,a||this.constructor.typeForProperty(s))}}_propertyToAttribute(r,i,a){this.__serializing=!0,a=arguments.length<3?this[r]:a,this._valueToNodeAttribute(this,a,i||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,i,a){const n=this._serializeValue(i);(a==="class"||a==="name"||a==="slot")&&(r=G(r)),n===void 0?r.removeAttribute(a):r.setAttribute(a,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,i){switch(i){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return e});/**
964
+ */const eh=hn,un=H(i=>{class e extends i{static createProperties(r){const o=this.prototype;for(let a in r)a in o||o._createPropertyAccessor(a)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,o){this._addPropertyToAttributeMap(r),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,o))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[r];return o||(o=this.constructor.attributeNameForProperty(r),this.__dataAttributes[o]=r),o}_definePropertyAccessor(r,o){Object.defineProperty(this,r,{get(){return this.__data[r]},set:o?function(){}:function(a){this._setPendingProperty(r,a,!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 r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])}_initializeInstanceProperties(r){Object.assign(this,r)}_setProperty(r,o){this._setPendingProperty(r,o)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,o,a){let n=this.__data[r],s=this._shouldPropertyChange(r,o,n);return s&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=n),this.__data[r]=o,this.__dataPending[r]=o),s}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,eh.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 r=this.__data,o=this.__dataPending,a=this.__dataOld;this._shouldPropertiesChange(r,o,a)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,o,a)),this.__dataCounter--}_shouldPropertiesChange(r,o,a){return!!o}_propertiesChanged(r,o,a){}_shouldPropertyChange(r,o,a){return a!==o&&(a===a||o===o)}attributeChangedCallback(r,o,a,n){o!==a&&this._attributeToProperty(r,a),super.attributeChangedCallback&&super.attributeChangedCallback(r,o,a,n)}_attributeToProperty(r,o,a){if(!this.__serializing){const n=this.__dataAttributes,s=n&&n[r]||r;this[s]=this._deserializeValue(o,a||this.constructor.typeForProperty(s))}}_propertyToAttribute(r,o,a){this.__serializing=!0,a=arguments.length<3?this[r]:a,this._valueToNodeAttribute(this,a,o||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,o,a){const n=this._serializeValue(o);(a==="class"||a==="name"||a==="slot")&&(r=G(r)),n===void 0?r.removeAttribute(a):r.setAttribute(a,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,o){switch(o){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return e});/**
965
965
  @license
966
966
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
967
967
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -969,7 +969,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
969
969
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
970
970
  Code distributed by Google as part of the polymer project is also
971
971
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
972
- */const un={};let $t=HTMLElement.prototype;for(;$t;){let o=Object.getOwnPropertyNames($t);for(let e=0;e<o.length;e++)un[o[e]]=!0;$t=Object.getPrototypeOf($t)}const eh=window.trustedTypes?o=>trustedTypes.isHTML(o)||trustedTypes.isScript(o)||trustedTypes.isScriptURL(o):()=>!1;function th(o,e){if(!un[e]){let t=o[e];t!==void 0&&(o.__data?o._setPendingProperty(e,t):(o.__dataProto?o.hasOwnProperty(JSCompiler_renameProperty("__dataProto",o))||(o.__dataProto=Object.create(o.__dataProto)):o.__dataProto={},o.__dataProto[e]=t))}}const rh=H(o=>{const e=hn(o);class t extends e{static createPropertiesForAttributes(){let i=this.observedAttributes;for(let a=0;a<i.length;a++)this.prototype._createPropertyAccessor(sn(i[a]))}static attributeNameForProperty(i){return fr(i)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(i){for(let a in i)this._setProperty(a,i[a])}_ensureAttribute(i,a){const n=this;n.hasAttribute(i)||this._valueToNodeAttribute(n,a,i)}_serializeValue(i){switch(typeof i){case"object":if(i instanceof Date)return i.toString();if(i){if(eh(i))return i;try{return JSON.stringify(i)}catch(a){return""}}default:return super._serializeValue(i)}}_deserializeValue(i,a){let n;switch(a){case Object:try{n=JSON.parse(i)}catch(s){n=i}break;case Array:try{n=JSON.parse(i)}catch(s){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${i}`)}break;case Date:n=isNaN(i)?String(i):Number(i),n=new Date(n);break;default:n=super._deserializeValue(i,a);break}return n}_definePropertyAccessor(i,a){th(this,i),super._definePropertyAccessor(i,a)}_hasAccessor(i){return this.__dataHasAccessor&&this.__dataHasAccessor[i]}_isPropertyPending(i){return!!(this.__dataPending&&i in this.__dataPending)}}return t});/**
972
+ */const pn={};let $t=HTMLElement.prototype;for(;$t;){let i=Object.getOwnPropertyNames($t);for(let e=0;e<i.length;e++)pn[i[e]]=!0;$t=Object.getPrototypeOf($t)}const th=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function rh(i,e){if(!pn[e]){let t=i[e];t!==void 0&&(i.__data?i._setPendingProperty(e,t):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[e]=t))}}const ih=H(i=>{const e=un(i);class t extends e{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let a=0;a<o.length;a++)this.prototype._createPropertyAccessor(ln(o[a]))}static attributeNameForProperty(o){return fr(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let a in o)this._setProperty(a,o[a])}_ensureAttribute(o,a){const n=this;n.hasAttribute(o)||this._valueToNodeAttribute(n,a,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(th(o))return o;try{return JSON.stringify(o)}catch(a){return""}}default:return super._serializeValue(o)}}_deserializeValue(o,a){let n;switch(a){case Object:try{n=JSON.parse(o)}catch(s){n=o}break;case Array:try{n=JSON.parse(o)}catch(s){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:n=isNaN(o)?String(o):Number(o),n=new Date(n);break;default:n=super._deserializeValue(o,a);break}return n}_definePropertyAccessor(o,a){rh(this,o),super._definePropertyAccessor(o,a)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return t});/**
973
973
  @license
974
974
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
975
975
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -977,7 +977,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
977
977
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
978
978
  Code distributed by Google as part of the polymer project is also
979
979
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
980
- */const ih={"dom-if":!0,"dom-repeat":!0};let qo=!1,Yo=!1;function oh(){if(!qo){qo=!0;const o=document.createElement("textarea");o.placeholder="a",Yo=o.placeholder===o.textContent}return Yo}function ah(o){oh()&&o.localName==="textarea"&&o.placeholder&&o.placeholder===o.textContent&&(o.textContent=null)}const nh=(()=>{const o=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{const i=t.getAttribute(r);if(o&&r.startsWith("on-")){e.setAttribute(r,o.createScript(i,r));return}e.setAttribute(r,i)}})();function sh(o){let e=o.getAttribute("is");if(e&&ih[e]){let t=o;for(t.removeAttribute("is"),o=t.ownerDocument.createElement(e),t.parentNode.replaceChild(o,t),o.appendChild(t);t.attributes.length;){const{name:r}=t.attributes[0];nh(o,t,r),t.removeAttribute(r)}}return o}function pn(o,e){let t=e.parentInfo&&pn(o,e.parentInfo);if(t){for(let r=t.firstChild,i=0;r;r=r.nextSibling)if(e.parentIndex===i++)return r}else return o}function lh(o,e,t,r){r.id&&(e[r.id]=t)}function dh(o,e,t){if(t.events&&t.events.length)for(let r=0,i=t.events,a;r<i.length&&(a=i[r]);r++)o._addMethodEventListenerToNode(e,a.name,a.value,o)}function ch(o,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function hh(o,e,t){return o=o._methodHost||o,function(r){o[t]?o[t](r,r.detail):console.warn("listener method `"+t+"` not defined")}}const uh=H(o=>{class e extends o{static _parseTemplate(r,i){if(!r._templateInfo){let a=r._templateInfo={};a.nodeInfoList=[],a.nestedTemplate=!!i,a.stripWhiteSpace=i&&i.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,a,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,i,a){return this._parseTemplateNode(r.content,i,a)}static _parseTemplateNode(r,i,a){let n=!1,s=r;return s.localName=="template"&&!s.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(s,i,a)||n:s.localName==="slot"&&(i.hasInsertionPoint=!0),ah(s),s.firstChild&&this._parseTemplateChildNodes(s,i,a),s.hasAttributes&&s.hasAttributes()&&(n=this._parseTemplateNodeAttributes(s,i,a)||n),n||a.noted}static _parseTemplateChildNodes(r,i,a){if(!(r.localName==="script"||r.localName==="style"))for(let n=r.firstChild,s=0,l;n;n=l){if(n.localName=="template"&&(n=sh(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)n.textContent+=c.textContent,l=c.nextSibling,r.removeChild(c),c=l;if(i.stripWhiteSpace&&!n.textContent.trim()){r.removeChild(n);continue}}let d={parentIndex:s,parentInfo:a};this._parseTemplateNode(n,i,d)&&(d.infoIndex=i.nodeInfoList.push(d)-1),n.parentNode&&s++}}static _parseTemplateNestedTemplate(r,i,a){let n=r,s=this._parseTemplate(n,i);return(s.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),a.templateInfo=s,!0}static _parseTemplateNodeAttributes(r,i,a){let n=!1,s=Array.from(r.attributes);for(let l=s.length-1,d;d=s[l];l--)n=this._parseTemplateNodeAttribute(r,i,a,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(r,i,a,n,s){return n.slice(0,3)==="on-"?(r.removeAttribute(n),a.events=a.events||[],a.events.push({name:n.slice(3),value:s}),!0):n==="id"?(a.id=s,!0):!1}static _contentForTemplate(r){let i=r._templateInfo;return i&&i.content||r.content}_stampTemplate(r,i){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),i=i||this.constructor._parseTemplate(r);let a=i.nodeInfoList,n=i.content||r.content,s=document.importNode(n,!0);s.__noInsertionPoint=!i.hasInsertionPoint;let l=s.nodeList=new Array(a.length);s.$={};for(let d=0,c=a.length,h;d<c&&(h=a[d]);d++){let u=l[d]=pn(s,h);lh(this,s.$,u,h),ch(this,u,h,i),dh(this,u,h)}return s=s,s}_addMethodEventListenerToNode(r,i,a,n){n=n||r;let s=hh(n,i,a);return this._addEventListenerToNode(r,i,s),s}_addEventListenerToNode(r,i,a){r.addEventListener(i,a)}_removeEventListenerFromNode(r,i,a){r.removeEventListener(i,a)}}return e});/**
980
+ */const oh={"dom-if":!0,"dom-repeat":!0};let Yo=!1,jo=!1;function ah(){if(!Yo){Yo=!0;const i=document.createElement("textarea");i.placeholder="a",jo=i.placeholder===i.textContent}return jo}function nh(i){ah()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const sh=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{const o=t.getAttribute(r);if(i&&r.startsWith("on-")){e.setAttribute(r,i.createScript(o,r));return}e.setAttribute(r,o)}})();function lh(i){let e=i.getAttribute("is");if(e&&oh[e]){let t=i;for(t.removeAttribute("is"),i=t.ownerDocument.createElement(e),t.parentNode.replaceChild(i,t),i.appendChild(t);t.attributes.length;){const{name:r}=t.attributes[0];sh(i,t,r),t.removeAttribute(r)}}return i}function mn(i,e){let t=e.parentInfo&&mn(i,e.parentInfo);if(t){for(let r=t.firstChild,o=0;r;r=r.nextSibling)if(e.parentIndex===o++)return r}else return i}function dh(i,e,t,r){r.id&&(e[r.id]=t)}function ch(i,e,t){if(t.events&&t.events.length)for(let r=0,o=t.events,a;r<o.length&&(a=o[r]);r++)i._addMethodEventListenerToNode(e,a.name,a.value,i)}function hh(i,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function uh(i,e,t){return i=i._methodHost||i,function(r){i[t]?i[t](r,r.detail):console.warn("listener method `"+t+"` not defined")}}const ph=H(i=>{class e extends i{static _parseTemplate(r,o){if(!r._templateInfo){let a=r._templateInfo={};a.nodeInfoList=[],a.nestedTemplate=!!o,a.stripWhiteSpace=o&&o.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,a,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,o,a){return this._parseTemplateNode(r.content,o,a)}static _parseTemplateNode(r,o,a){let n=!1,s=r;return s.localName=="template"&&!s.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(s,o,a)||n:s.localName==="slot"&&(o.hasInsertionPoint=!0),nh(s),s.firstChild&&this._parseTemplateChildNodes(s,o,a),s.hasAttributes&&s.hasAttributes()&&(n=this._parseTemplateNodeAttributes(s,o,a)||n),n||a.noted}static _parseTemplateChildNodes(r,o,a){if(!(r.localName==="script"||r.localName==="style"))for(let n=r.firstChild,s=0,l;n;n=l){if(n.localName=="template"&&(n=lh(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)n.textContent+=c.textContent,l=c.nextSibling,r.removeChild(c),c=l;if(o.stripWhiteSpace&&!n.textContent.trim()){r.removeChild(n);continue}}let d={parentIndex:s,parentInfo:a};this._parseTemplateNode(n,o,d)&&(d.infoIndex=o.nodeInfoList.push(d)-1),n.parentNode&&s++}}static _parseTemplateNestedTemplate(r,o,a){let n=r,s=this._parseTemplate(n,o);return(s.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),a.templateInfo=s,!0}static _parseTemplateNodeAttributes(r,o,a){let n=!1,s=Array.from(r.attributes);for(let l=s.length-1,d;d=s[l];l--)n=this._parseTemplateNodeAttribute(r,o,a,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(r,o,a,n,s){return n.slice(0,3)==="on-"?(r.removeAttribute(n),a.events=a.events||[],a.events.push({name:n.slice(3),value:s}),!0):n==="id"?(a.id=s,!0):!1}static _contentForTemplate(r){let o=r._templateInfo;return o&&o.content||r.content}_stampTemplate(r,o){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),o=o||this.constructor._parseTemplate(r);let a=o.nodeInfoList,n=o.content||r.content,s=document.importNode(n,!0);s.__noInsertionPoint=!o.hasInsertionPoint;let l=s.nodeList=new Array(a.length);s.$={};for(let d=0,c=a.length,h;d<c&&(h=a[d]);d++){let u=l[d]=mn(s,h);dh(this,s.$,u,h),hh(this,u,h,o),ch(this,u,h)}return s=s,s}_addMethodEventListenerToNode(r,o,a,n){n=n||r;let s=uh(n,o,a);return this._addEventListenerToNode(r,o,s),s}_addEventListenerToNode(r,o,a){r.addEventListener(o,a)}_removeEventListenerFromNode(r,o,a){r.removeEventListener(o,a)}}return e});/**
981
981
  * @fileoverview
982
982
  * @suppress {checkPrototypalTypes}
983
983
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -987,7 +987,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
987
987
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
988
988
  * Google as part of the polymer project is also subject to an additional IP
989
989
  * rights grant found at http://polymer.github.io/PATENTS.txt
990
- */let Ct=0;const kt=[],P={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},mn="__computeInfo",ph=/[A-Z]/;function Dr(o,e,t){let r=o[e];if(!r)r=o[e]={};else if(!o.hasOwnProperty(e)&&(r=o[e]=Object.create(o[e]),t))for(let i in r){let a=r[i],n=r[i]=Array(a.length);for(let s=0;s<a.length;s++)n[s]=a[s]}return r}function ut(o,e,t,r,i,a){if(e){let n=!1;const s=Ct++;for(let l in t){let d=i?Me(l):l,c=e[d];if(c)for(let h=0,u=c.length,p;h<u&&(p=c[h]);h++)(!p.info||p.info.lastRun!==s)&&(!i||Ii(l,p.trigger))&&(p.info&&(p.info.lastRun=s),p.fn(o,l,t,r,p.info,i,a),n=!0)}return n}return!1}function mh(o,e,t,r,i,a,n,s){let l=!1,d=n?Me(r):r,c=e[d];if(c)for(let h=0,u=c.length,p;h<u&&(p=c[h]);h++)(!p.info||p.info.lastRun!==t)&&(!n||Ii(r,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(o,r,i,a,p.info,n,s),l=!0);return l}function Ii(o,e){if(e){let t=e.name;return t==o||!!(e.structured&&an(t,o))||!!(e.wildcard&&wt(t,o))}else return!0}function jo(o,e,t,r,i){let a=typeof i.method=="string"?o[i.method]:i.method,n=i.property;a?a.call(o,o.__data[n],r[n]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function fh(o,e,t,r,i){let a=o[P.NOTIFY],n,s=Ct++;for(let d in e)e[d]&&(a&&mh(o,a,s,d,t,r,i)||i&&_h(o,d,t))&&(n=!0);let l;n&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function _h(o,e,t){let r=Me(e);if(r!==e){let i=fr(r)+"-changed";return fn(o,i,t[e],e),!0}return!1}function fn(o,e,t,r){let i={value:t,queueProperty:!0};r&&(i.path=r),G(o).dispatchEvent(new CustomEvent(e,{detail:i}))}function vh(o,e,t,r,i,a){let n=(a?Me(e):e)!=e?e:null,s=n?Z(o,n):o.__data[e];n&&s===void 0&&(s=t[e]),fn(o,i.eventName,s,n)}function gh(o,e,t,r,i){let a,n=o.detail,s=n&&n.path;s?(r=xt(t,r,s),a=n&&n.value):a=o.currentTarget[t],a=i?!a:a,(!e[P.READ_ONLY]||!e[P.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,a,!0,!!s)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function bh(o,e,t,r,i){let a=o.__data[e];ar&&(a=ar(a,i.attrName,"attribute",o)),o._propertyToAttribute(e,i.attrName,a)}function yh(o,e,t,r){let i=o[P.COMPUTE];if(i)if(Lc){Ct++;const a=xh(o),n=[];for(let l in e)Go(l,i,n,a,r);let s;for(;s=n.shift();)_n(o,"",e,t,s)&&Go(s.methodInfo,i,n,a,r);Object.assign(t,o.__dataOld),Object.assign(e,o.__dataPending),o.__dataPending=null}else{let a=e;for(;ut(o,i,a,t,r);)Object.assign(t,o.__dataOld),Object.assign(e,o.__dataPending),a=o.__dataPending,o.__dataPending=null}}const wh=(o,e,t)=>{let r=0,i=e.length-1,a=-1;for(;r<=i;){const n=r+i>>1,s=t.get(e[n].methodInfo)-t.get(o.methodInfo);if(s<0)r=n+1;else if(s>0)i=n-1;else{a=n;break}}a<0&&(a=i+1),e.splice(a,0,o)},Go=(o,e,t,r,i)=>{const a=i?Me(o):o,n=e[a];if(n)for(let s=0;s<n.length;s++){const l=n[s];l.info.lastRun!==Ct&&(!i||Ii(o,l.trigger))&&(l.info.lastRun=Ct,wh(l.info,t,r))}};function xh(o){let e=o.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=o[P.COMPUTE];let{counts:r,ready:i,total:a}=Ch(o),n;for(;n=i.shift();){e.set(n,e.size);const s=t[n];s&&s.forEach(l=>{const d=l.info.methodInfo;--a,--r[d]===0&&i.push(d)})}a!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=e}return e}function Ch(o){const e=o[mn],t={},r=o[P.COMPUTE],i=[];let a=0;for(let n in e){const s=e[n];a+=t[n]=s.args.filter(l=>!l.literal).length+(s.dynamicFn?1:0)}for(let n in r)e[n]||i.push(n);return{counts:t,ready:i,total:a}}function _n(o,e,t,r,i){let a=ei(o,e,t,r,i);if(a===kt)return!1;let n=i.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,a,!0):(o[n]=a,!1)}function kh(o,e,t){let r=o.__dataLinkedPaths;if(r){let i;for(let a in r){let n=r[a];wt(a,e)?(i=xt(a,n,e),o._setPendingPropertyOrPath(i,t,!0,!0)):wt(n,e)&&(i=xt(n,a,e),o._setPendingPropertyOrPath(i,t,!0,!0))}}}function Or(o,e,t,r,i,a,n){t.bindings=t.bindings||[];let s={kind:r,target:i,parts:a,literal:n,isCompound:a.length!==1};if(t.bindings.push(s),Ih(s)){let{event:d,negate:c}=s.parts[0];s.listenerEvent=d||fr(i)+"-changed",s.listenerNegate=c}let l=e.nodeInfoList.length;for(let d=0;d<s.parts.length;d++){let c=s.parts[d];c.compoundIndex=d,Eh(o,e,s,c,l)}}function Eh(o,e,t,r,i){if(!r.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let a=r.dependencies,n={index:i,binding:t,part:r,evaluator:o};for(let s=0;s<a.length;s++){let l=a[s];typeof l=="string"&&(l=gn(l),l.wildcard=!0),o._addTemplatePropertyEffect(e,l.rootProperty,{fn:Th,info:n,trigger:l})}}}function Th(o,e,t,r,i,a,n){let s=n[i.index],l=i.binding,d=i.part;if(a&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]){let c=t[e];e=xt(d.source,l.target,e),s._setPendingPropertyOrPath(e,c,!1,!0)&&o._enqueueClient(s)}else{let c=i.evaluator._evaluateBinding(o,d,e,t,r,a);c!==kt&&Ah(o,s,l,d,c)}}function Ah(o,e,t,r,i){if(i=Ph(e,i,t,r),ar&&(i=ar(i,t.target,t.kind,e)),t.kind=="attribute")o._valueToNodeAttribute(e,i,t.target);else{let a=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[a]?(!e[P.READ_ONLY]||!e[P.READ_ONLY][a])&&e._setPendingProperty(a,i)&&o._enqueueClient(e):o._setUnmanagedPropertyToNode(e,a,i)}}function Ph(o,e,t,r){if(t.isCompound){let i=o.__dataCompoundStorage[t.target];i[r.compoundIndex]=e,e=i.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(e=e==null?"":e),e}function Ih(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function Sh(o,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let i=0;i<r.length;i++){let a=r[i],n=t[i],s=a.bindings;if(s)for(let l=0;l<s.length;l++){let d=s[l];Dh(n,d),Oh(n,o,d)}n.__dataHost=o}}function Dh(o,e){if(e.isCompound){let t=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),r=e.parts,i=new Array(r.length);for(let n=0;n<r.length;n++)i[n]=r[n].literal;let a=e.target;t[a]=i,e.literal&&e.kind=="property"&&(a==="className"&&(o=G(o)),o[a]=e.literal)}}function Oh(o,e,t){if(t.listenerEvent){let r=t.parts[0];o.addEventListener(t.listenerEvent,function(i){gh(i,e,t.target,r.source,r.negate)})}}function Ko(o,e,t,r,i,a){a=e.static||a&&(typeof a!="object"||a[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:i,dynamicFn:a};for(let s=0,l;s<e.args.length&&(l=e.args[s]);s++)l.literal||o._addPropertyEffect(l.rootProperty,t,{fn:r,info:n,trigger:l});return a&&o._addPropertyEffect(e.methodName,t,{fn:r,info:n}),n}function ei(o,e,t,r,i){let a=o._methodHost||o,n=a[i.methodName];if(n){let s=o._marshalArgs(i.args,e,t);return s===kt?kt:n.apply(a,s)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const Mh=[],vn="(?:[a-zA-Z_$][\\w.:$\\-*]*)",zh="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Nh="(?:'(?:[^'\\\\]|\\\\.)*')",Lh='(?:"(?:[^"\\\\]|\\\\.)*")',Fh="(?:"+Nh+"|"+Lh+")",Xo="(?:("+vn+"|"+zh+"|"+Fh+")\\s*)",Bh="(?:"+Xo+"(?:,\\s*"+Xo+")*)",Vh="(?:\\(\\s*(?:"+Bh+"?)\\)\\s*)",Rh="("+vn+"\\s*"+Vh+"?)",$h="(\\[\\[|{{)\\s*",Hh="(?:]]|}})",Uh="(?:(!)\\s*)?",Wh=$h+Uh+Rh+Hh,Qo=new RegExp(Wh,"g");function Jo(o){let e="";for(let t=0;t<o.length;t++){let r=o[t].literal;e+=r||""}return e}function Mr(o){let e=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Mh};if(e[2].trim()){let r=e[2].replace(/\\,/g,"&comma;").split(",");return qh(r,t)}else return t}return null}function qh(o,e){return e.args=o.map(function(t){let r=gn(t);return r.literal||(e.static=!1),r},this),e}function gn(o){let e=o.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Me(e),t.structured=Jr(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function Zo(o,e,t){let r=Z(o,t);return r===void 0&&(r=e[t]),r}function bn(o,e,t,r){const i={indexSplices:r};Qr&&!o._overrideLegacyUndefined&&(e.splices=i),o.notifyPath(t+".splices",i),o.notifyPath(t+".length",e.length),Qr&&!o._overrideLegacyUndefined&&(i.indexSplices=[])}function st(o,e,t,r,i,a){bn(o,e,t,[{index:r,addedCount:i,removed:a,object:e,type:"splice"}])}function Yh(o){return o[0].toUpperCase()+o.substring(1)}const Si=H(o=>{const e=uh(rh(o));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return P}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(lt.length){let i=lt[lt.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 a=this[P.READ_ONLY];for(let n in i)(!a||!a[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=i[n])}_addPropertyEffect(i,a,n){this._createPropertyAccessor(i,a==P.READ_ONLY);let s=Dr(this,a,!0)[i];s||(s=this[a][i]=[]),s.push(n)}_removePropertyEffect(i,a,n){let s=Dr(this,a,!0)[i],l=s.indexOf(n);l>=0&&s.splice(l,1)}_hasPropertyEffect(i,a){let n=this[a];return!!(n&&n[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,P.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,P.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,P.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,P.COMPUTE)}_setPendingPropertyOrPath(i,a,n,s){if(s||Me(Array.isArray(i)?i[0]:i)!==i){if(!s){let l=Z(this,i);if(i=Wo(this,i,a),!i||!super._shouldPropertyChange(i,a,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,a,n))return kh(this,i,a),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,a,n);this[i]=a}return!1}_setUnmanagedPropertyToNode(i,a,n){(n!==i[a]||typeof n=="object")&&(a==="className"&&(i=G(i)),i[a]=n)}_setPendingProperty(i,a,n){let s=this.__dataHasPaths&&Jr(i),l=s?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,a,l[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),s?this.__dataTemp[i]=a:this.__data[i]=a,this.__dataPending[i]=a,(s||this[P.NOTIFY]&&this[P.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=n),!0):!1}_setProperty(i,a){this._setPendingProperty(i,a,!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 a=0;a<i.length;a++){let n=i[a];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,a){for(let n in i)(a||!this[P.READ_ONLY]||!this[P.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,i[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,a,n){let s=this.__dataHasPaths;this.__dataHasPaths=!1;let l;yh(this,a,n,s),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(a,n,s),this._flushClients(),ut(this,this[P.REFLECT],a,n,s),ut(this,this[P.OBSERVE],a,n,s),l&&fh(this,l,a,n,s),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,a,n){this[P.PROPAGATE]&&ut(this,this[P.PROPAGATE],i,a,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,a,n)}_runEffectsForTemplate(i,a,n,s){const l=(d,c)=>{ut(this,i.propertyEffects,d,n,c,i.nodeList);for(let h=i.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,c)};i.runEffects?i.runEffects(l,a,s):l(a,s)}linkPaths(i,a){i=ht(i),a=ht(a),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=a}unlinkPaths(i){i=ht(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,a){let n={path:""},s=Z(this,i,n);bn(this,s,n.path,a)}get(i,a){return Z(a||this,i)}set(i,a,n){n?Wo(n,i,a):(!this[P.READ_ONLY]||!this[P.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,a,!0)&&this._invalidateProperties()}push(i,...a){let n={path:""},s=Z(this,i,n),l=s.length,d=s.push(...a);return a.length&&st(this,s,n.path,l,a.length,[]),d}pop(i){let a={path:""},n=Z(this,i,a),s=!!n.length,l=n.pop();return s&&st(this,n,a.path,n.length,0,[l]),l}splice(i,a,n,...s){let l={path:""},d=Z(this,i,l);a<0?a=d.length-Math.floor(-a):a&&(a=Math.floor(a));let c;return arguments.length===2?c=d.splice(a):c=d.splice(a,n,...s),(s.length||c.length)&&st(this,d,l.path,a,s.length,c),c}shift(i){let a={path:""},n=Z(this,i,a),s=!!n.length,l=n.shift();return s&&st(this,n,a.path,0,0,[l]),l}unshift(i,...a){let n={path:""},s=Z(this,i,n),l=s.unshift(...a);return a.length&&st(this,s,n.path,0,a.length,[]),l}notifyPath(i,a){let n;if(arguments.length==1){let s={path:""};a=Z(this,i,s),n=s.path}else Array.isArray(i)?n=ht(i):n=i;this._setPendingPropertyOrPath(n,a,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,a){this._addPropertyEffect(i,P.READ_ONLY),a&&(this["_set"+Yh(i)]=function(n){this._setProperty(i,n)})}_createPropertyObserver(i,a,n){let s={property:i,method:a,dynamicFn:!!n};this._addPropertyEffect(i,P.OBSERVE,{fn:jo,info:s,trigger:{name:i}}),n&&this._addPropertyEffect(a,P.OBSERVE,{fn:jo,info:s,trigger:{name:a}})}_createMethodObserver(i,a){let n=Mr(i);if(!n)throw new Error("Malformed observer expression '"+i+"'");Ko(this,n,P.OBSERVE,ei,null,a)}_createNotifyingProperty(i){this._addPropertyEffect(i,P.NOTIFY,{fn:vh,info:{eventName:fr(i)+"-changed",property:i}})}_createReflectedProperty(i){let a=this.constructor.attributeNameForProperty(i);a[0]==="-"?console.warn("Property "+i+" cannot be reflected to attribute "+a+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(i,P.REFLECT,{fn:bh,info:{attrName:a}})}_createComputedProperty(i,a,n){let s=Mr(a);if(!s)throw new Error("Malformed computed expression '"+a+"'");const l=Ko(this,s,P.COMPUTE,_n,i,n);Dr(this,mn)[i]=l}_marshalArgs(i,a,n){const s=this.__data,l=[];for(let d=0,c=i.length;d<c;d++){let{name:h,structured:u,wildcard:p,value:b,literal:N}=i[d];if(!N)if(p){const D=wt(h,a),O=Zo(s,n,D?a:h);b={path:D?a:h,value:O,base:D?Z(s,h):O}}else b=u?Zo(s,n,h):s[h];if(Qr&&!this._overrideLegacyUndefined&&b===void 0&&i.length>1)return kt;l[d]=b}return l}static addPropertyEffect(i,a,n){this.prototype._addPropertyEffect(i,a,n)}static createPropertyObserver(i,a,n){this.prototype._createPropertyObserver(i,a,n)}static createMethodObserver(i,a){this.prototype._createMethodObserver(i,a)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,a){this.prototype._createReadOnlyProperty(i,a)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,a,n){this.prototype._createComputedProperty(i,a,n)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,a){let n=this.constructor._parseTemplate(i),s=this.__preBoundTemplateInfo==n;if(!s)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(a)if(n=Object.create(n),n.wasPreBound=s,!this.__templateInfo)this.__templateInfo=n;else{const l=i._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(i,a,n){let s=i.hostProps=i.hostProps||{};s[a]=!0;let l=i.propertyEffects=i.propertyEffects||{};(l[a]=l[a]||[]).push(n)}_stampTemplate(i,a){a=a||this._bindTemplate(i,!0),lt.push(this);let n=super._stampTemplate(i,a);if(lt.pop(),a.nodeList=n.nodeList,!a.wasPreBound){let s=a.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)s.push(l)}return n.templateInfo=a,Sh(this,a),this.__dataClientsReady&&(this._runEffectsForTemplate(a,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(i){const a=i.templateInfo,{previousSibling:n,nextSibling:s,parent:l}=a;n?n.nextSibling=s:l&&(l.firstChild=s),s?s.previousSibling=n:l&&(l.lastChild=n),a.nextSibling=a.previousSibling=null;let d=a.childNodes;for(let c=0;c<d.length;c++){let h=d[c];G(G(h).parentNode).removeChild(h)}}static _parseTemplateNode(i,a,n){let s=e._parseTemplateNode.call(this,i,a,n);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,a);l&&(i.textContent=Jo(l)||" ",Or(this,a,n,"text","textContent",l),s=!0)}return s}static _parseTemplateNodeAttribute(i,a,n,s,l){let d=this._parseBindings(l,a);if(d){let c=s,h="property";ph.test(s)?h="attribute":s[s.length-1]=="$"&&(s=s.slice(0,-1),h="attribute");let u=Jo(d);return u&&h=="attribute"&&(s=="class"&&i.hasAttribute("class")&&(u+=" "+i.getAttribute(s)),i.setAttribute(s,u)),h=="attribute"&&c=="disable-upgrade$"&&i.setAttribute(s,""),i.localName==="input"&&c==="value"&&i.setAttribute(c,""),i.removeAttribute(c),h==="property"&&(s=sn(s)),Or(this,a,n,h,s,d,u),!0}else return e._parseTemplateNodeAttribute.call(this,i,a,n,s,l)}static _parseTemplateNestedTemplate(i,a,n){let s=e._parseTemplateNestedTemplate.call(this,i,a,n);const l=i.parentNode,d=n.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";Bo&&(c||h)&&(l.removeChild(i),n=n.parentInfo,n.templateInfo=d,n.noted=!0,s=!1);let u=d.hostProps;if(Fc&&c)u&&(a.hostProps=Object.assign(a.hostProps||{},u),Bo||(n.parentInfo.noted=!0));else{let p="{";for(let b in u){let N=[{mode:p,source:b,dependencies:[b],hostProp:!0}];Or(this,a,n,"property","_host_"+b,N)}}return s}static _parseBindings(i,a){let n=[],s=0,l;for(;(l=Qo.exec(i))!==null;){l.index>s&&n.push({literal:i.slice(s,l.index)});let d=l[1][0],c=!!l[2],h=l[3].trim(),u=!1,p="",b=-1;d=="{"&&(b=h.indexOf("::"))>0&&(p=h.substring(b+2),h=h.substring(0,b),u=!0);let N=Mr(h),D=[];if(N){let{args:O,methodName:A}=N;for(let W=0;W<O.length;W++){let ne=O[W];ne.literal||D.push(ne)}let U=a.dynamicFns;(U&&U[A]||N.static)&&(D.push(A),N.dynamicFn=!0)}else D.push(h);n.push({source:h,mode:d,negate:c,customEvent:u,signature:N,dependencies:D,event:p}),s=Qo.lastIndex}if(s&&s<i.length){let d=i.substring(s);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(i,a,n,s,l,d){let c;return a.signature?c=ei(i,n,s,l,a.signature):n!=a.source?c=Z(i,a.source):d&&Jr(n)?c=Z(i,n):c=i.__data[n],a.negate&&(c=!c),c}}return t}),lt=[];/**
990
+ */let Ct=0;const kt=[],P={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},fn="__computeInfo",mh=/[A-Z]/;function Dr(i,e,t){let r=i[e];if(!r)r=i[e]={};else if(!i.hasOwnProperty(e)&&(r=i[e]=Object.create(i[e]),t))for(let o in r){let a=r[o],n=r[o]=Array(a.length);for(let s=0;s<a.length;s++)n[s]=a[s]}return r}function ut(i,e,t,r,o,a){if(e){let n=!1;const s=Ct++;for(let l in t){let d=o?Me(l):l,c=e[d];if(c)for(let h=0,u=c.length,p;h<u&&(p=c[h]);h++)(!p.info||p.info.lastRun!==s)&&(!o||Ii(l,p.trigger))&&(p.info&&(p.info.lastRun=s),p.fn(i,l,t,r,p.info,o,a),n=!0)}return n}return!1}function fh(i,e,t,r,o,a,n,s){let l=!1,d=n?Me(r):r,c=e[d];if(c)for(let h=0,u=c.length,p;h<u&&(p=c[h]);h++)(!p.info||p.info.lastRun!==t)&&(!n||Ii(r,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(i,r,o,a,p.info,n,s),l=!0);return l}function Ii(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&nn(t,i))||!!(e.wildcard&&wt(t,i))}else return!0}function Go(i,e,t,r,o){let a=typeof o.method=="string"?i[o.method]:o.method,n=o.property;a?a.call(i,i.__data[n],r[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function _h(i,e,t,r,o){let a=i[P.NOTIFY],n,s=Ct++;for(let d in e)e[d]&&(a&&fh(i,a,s,d,t,r,o)||o&&vh(i,d,t))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function vh(i,e,t){let r=Me(e);if(r!==e){let o=fr(r)+"-changed";return _n(i,o,t[e],e),!0}return!1}function _n(i,e,t,r){let o={value:t,queueProperty:!0};r&&(o.path=r),G(i).dispatchEvent(new CustomEvent(e,{detail:o}))}function gh(i,e,t,r,o,a){let n=(a?Me(e):e)!=e?e:null,s=n?Z(i,n):i.__data[e];n&&s===void 0&&(s=t[e]),_n(i,o.eventName,s,n)}function bh(i,e,t,r,o){let a,n=i.detail,s=n&&n.path;s?(r=xt(t,r,s),a=n&&n.value):a=i.currentTarget[t],a=o?!a:a,(!e[P.READ_ONLY]||!e[P.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,a,!0,!!s)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function yh(i,e,t,r,o){let a=i.__data[e];ar&&(a=ar(a,o.attrName,"attribute",i)),i._propertyToAttribute(e,o.attrName,a)}function wh(i,e,t,r){let o=i[P.COMPUTE];if(o)if(Fc){Ct++;const a=Ch(i),n=[];for(let l in e)Ko(l,o,n,a,r);let s;for(;s=n.shift();)vn(i,"",e,t,s)&&Ko(s.methodInfo,o,n,a,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let a=e;for(;ut(i,o,a,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),a=i.__dataPending,i.__dataPending=null}}const xh=(i,e,t)=>{let r=0,o=e.length-1,a=-1;for(;r<=o;){const n=r+o>>1,s=t.get(e[n].methodInfo)-t.get(i.methodInfo);if(s<0)r=n+1;else if(s>0)o=n-1;else{a=n;break}}a<0&&(a=o+1),e.splice(a,0,i)},Ko=(i,e,t,r,o)=>{const a=o?Me(i):i,n=e[a];if(n)for(let s=0;s<n.length;s++){const l=n[s];l.info.lastRun!==Ct&&(!o||Ii(i,l.trigger))&&(l.info.lastRun=Ct,xh(l.info,t,r))}};function Ch(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[P.COMPUTE];let{counts:r,ready:o,total:a}=kh(i),n;for(;n=o.shift();){e.set(n,e.size);const s=t[n];s&&s.forEach(l=>{const d=l.info.methodInfo;--a,--r[d]===0&&o.push(d)})}a!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function kh(i){const e=i[fn],t={},r=i[P.COMPUTE],o=[];let a=0;for(let n in e){const s=e[n];a+=t[n]=s.args.filter(l=>!l.literal).length+(s.dynamicFn?1:0)}for(let n in r)e[n]||o.push(n);return{counts:t,ready:o,total:a}}function vn(i,e,t,r,o){let a=ei(i,e,t,r,o);if(a===kt)return!1;let n=o.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,a,!0):(i[n]=a,!1)}function Eh(i,e,t){let r=i.__dataLinkedPaths;if(r){let o;for(let a in r){let n=r[a];wt(a,e)?(o=xt(a,n,e),i._setPendingPropertyOrPath(o,t,!0,!0)):wt(n,e)&&(o=xt(n,a,e),i._setPendingPropertyOrPath(o,t,!0,!0))}}}function Or(i,e,t,r,o,a,n){t.bindings=t.bindings||[];let s={kind:r,target:o,parts:a,literal:n,isCompound:a.length!==1};if(t.bindings.push(s),Sh(s)){let{event:d,negate:c}=s.parts[0];s.listenerEvent=d||fr(o)+"-changed",s.listenerNegate=c}let l=e.nodeInfoList.length;for(let d=0;d<s.parts.length;d++){let c=s.parts[d];c.compoundIndex=d,Th(i,e,s,c,l)}}function Th(i,e,t,r,o){if(!r.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let a=r.dependencies,n={index:o,binding:t,part:r,evaluator:i};for(let s=0;s<a.length;s++){let l=a[s];typeof l=="string"&&(l=bn(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Ah,info:n,trigger:l})}}}function Ah(i,e,t,r,o,a,n){let s=n[o.index],l=o.binding,d=o.part;if(a&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]){let c=t[e];e=xt(d.source,l.target,e),s._setPendingPropertyOrPath(e,c,!1,!0)&&i._enqueueClient(s)}else{let c=o.evaluator._evaluateBinding(i,d,e,t,r,a);c!==kt&&Ph(i,s,l,d,c)}}function Ph(i,e,t,r,o){if(o=Ih(e,o,t,r),ar&&(o=ar(o,t.target,t.kind,e)),t.kind=="attribute")i._valueToNodeAttribute(e,o,t.target);else{let a=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[a]?(!e[P.READ_ONLY]||!e[P.READ_ONLY][a])&&e._setPendingProperty(a,o)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,a,o)}}function Ih(i,e,t,r){if(t.isCompound){let o=i.__dataCompoundStorage[t.target];o[r.compoundIndex]=e,e=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(e=e==null?"":e),e}function Sh(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Dh(i,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let o=0;o<r.length;o++){let a=r[o],n=t[o],s=a.bindings;if(s)for(let l=0;l<s.length;l++){let d=s[l];Oh(n,d),Mh(n,i,d)}n.__dataHost=i}}function Oh(i,e){if(e.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=e.parts,o=new Array(r.length);for(let n=0;n<r.length;n++)o[n]=r[n].literal;let a=e.target;t[a]=o,e.literal&&e.kind=="property"&&(a==="className"&&(i=G(i)),i[a]=e.literal)}}function Mh(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(o){bh(o,e,t.target,r.source,r.negate)})}}function Xo(i,e,t,r,o,a){a=e.static||a&&(typeof a!="object"||a[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:a};for(let s=0,l;s<e.args.length&&(l=e.args[s]);s++)l.literal||i._addPropertyEffect(l.rootProperty,t,{fn:r,info:n,trigger:l});return a&&i._addPropertyEffect(e.methodName,t,{fn:r,info:n}),n}function ei(i,e,t,r,o){let a=i._methodHost||i,n=a[o.methodName];if(n){let s=i._marshalArgs(o.args,e,t);return s===kt?kt:n.apply(a,s)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const zh=[],gn="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Nh="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Lh="(?:'(?:[^'\\\\]|\\\\.)*')",Fh='(?:"(?:[^"\\\\]|\\\\.)*")',Bh="(?:"+Lh+"|"+Fh+")",Qo="(?:("+gn+"|"+Nh+"|"+Bh+")\\s*)",Vh="(?:"+Qo+"(?:,\\s*"+Qo+")*)",Rh="(?:\\(\\s*(?:"+Vh+"?)\\)\\s*)",$h="("+gn+"\\s*"+Rh+"?)",Hh="(\\[\\[|{{)\\s*",Uh="(?:]]|}})",Wh="(?:(!)\\s*)?",qh=Hh+Wh+$h+Uh,Jo=new RegExp(qh,"g");function Zo(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function Mr(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:zh};if(e[2].trim()){let r=e[2].replace(/\\,/g,"&comma;").split(",");return Yh(r,t)}else return t}return null}function Yh(i,e){return e.args=i.map(function(t){let r=bn(t);return r.literal||(e.static=!1),r},this),e}function bn(i){let e=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Me(e),t.structured=Jr(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function ea(i,e,t){let r=Z(i,t);return r===void 0&&(r=e[t]),r}function yn(i,e,t,r){const o={indexSplices:r};Qr&&!i._overrideLegacyUndefined&&(e.splices=o),i.notifyPath(t+".splices",o),i.notifyPath(t+".length",e.length),Qr&&!i._overrideLegacyUndefined&&(o.indexSplices=[])}function st(i,e,t,r,o,a){yn(i,e,t,[{index:r,addedCount:o,removed:a,object:e,type:"splice"}])}function jh(i){return i[0].toUpperCase()+i.substring(1)}const Si=H(i=>{const e=ph(ih(i));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return P}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(lt.length){let o=lt[lt.length-1];o._enqueueClient(this),this.__dataHost=o}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={}}_initializeInstanceProperties(o){let a=this[P.READ_ONLY];for(let n in o)(!a||!a[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n])}_addPropertyEffect(o,a,n){this._createPropertyAccessor(o,a==P.READ_ONLY);let s=Dr(this,a,!0)[o];s||(s=this[a][o]=[]),s.push(n)}_removePropertyEffect(o,a,n){let s=Dr(this,a,!0)[o],l=s.indexOf(n);l>=0&&s.splice(l,1)}_hasPropertyEffect(o,a){let n=this[a];return!!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,P.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,P.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,P.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,P.COMPUTE)}_setPendingPropertyOrPath(o,a,n,s){if(s||Me(Array.isArray(o)?o[0]:o)!==o){if(!s){let l=Z(this,o);if(o=qo(this,o,a),!o||!super._shouldPropertyChange(o,a,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,a,n))return Eh(this,o,a),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,a,n);this[o]=a}return!1}_setUnmanagedPropertyToNode(o,a,n){(n!==o[a]||typeof n=="object")&&(a==="className"&&(o=G(o)),o[a]=n)}_setPendingProperty(o,a,n){let s=this.__dataHasPaths&&Jr(o),l=s?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,a,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),s?this.__dataTemp[o]=a:this.__data[o]=a,this.__dataPending[o]=a,(s||this[P.NOTIFY]&&this[P.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,a){this._setPendingProperty(o,a,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let a=0;a<o.length;a++){let n=o[a];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,a){for(let n in o)(a||!this[P.READ_ONLY]||!this[P.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,a,n){let s=this.__dataHasPaths;this.__dataHasPaths=!1;let l;wh(this,a,n,s),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(a,n,s),this._flushClients(),ut(this,this[P.REFLECT],a,n,s),ut(this,this[P.OBSERVE],a,n,s),l&&_h(this,l,a,n,s),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,a,n){this[P.PROPAGATE]&&ut(this,this[P.PROPAGATE],o,a,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,a,n)}_runEffectsForTemplate(o,a,n,s){const l=(d,c)=>{ut(this,o.propertyEffects,d,n,c,o.nodeList);for(let h=o.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,c)};o.runEffects?o.runEffects(l,a,s):l(a,s)}linkPaths(o,a){o=ht(o),a=ht(a),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=a}unlinkPaths(o){o=ht(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,a){let n={path:""},s=Z(this,o,n);yn(this,s,n.path,a)}get(o,a){return Z(a||this,o)}set(o,a,n){n?qo(n,o,a):(!this[P.READ_ONLY]||!this[P.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,a,!0)&&this._invalidateProperties()}push(o,...a){let n={path:""},s=Z(this,o,n),l=s.length,d=s.push(...a);return a.length&&st(this,s,n.path,l,a.length,[]),d}pop(o){let a={path:""},n=Z(this,o,a),s=!!n.length,l=n.pop();return s&&st(this,n,a.path,n.length,0,[l]),l}splice(o,a,n,...s){let l={path:""},d=Z(this,o,l);a<0?a=d.length-Math.floor(-a):a&&(a=Math.floor(a));let c;return arguments.length===2?c=d.splice(a):c=d.splice(a,n,...s),(s.length||c.length)&&st(this,d,l.path,a,s.length,c),c}shift(o){let a={path:""},n=Z(this,o,a),s=!!n.length,l=n.shift();return s&&st(this,n,a.path,0,0,[l]),l}unshift(o,...a){let n={path:""},s=Z(this,o,n),l=s.unshift(...a);return a.length&&st(this,s,n.path,0,a.length,[]),l}notifyPath(o,a){let n;if(arguments.length==1){let s={path:""};a=Z(this,o,s),n=s.path}else Array.isArray(o)?n=ht(o):n=o;this._setPendingPropertyOrPath(n,a,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,a){this._addPropertyEffect(o,P.READ_ONLY),a&&(this["_set"+jh(o)]=function(n){this._setProperty(o,n)})}_createPropertyObserver(o,a,n){let s={property:o,method:a,dynamicFn:!!n};this._addPropertyEffect(o,P.OBSERVE,{fn:Go,info:s,trigger:{name:o}}),n&&this._addPropertyEffect(a,P.OBSERVE,{fn:Go,info:s,trigger:{name:a}})}_createMethodObserver(o,a){let n=Mr(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");Xo(this,n,P.OBSERVE,ei,null,a)}_createNotifyingProperty(o){this._addPropertyEffect(o,P.NOTIFY,{fn:gh,info:{eventName:fr(o)+"-changed",property:o}})}_createReflectedProperty(o){let a=this.constructor.attributeNameForProperty(o);a[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+a+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,P.REFLECT,{fn:yh,info:{attrName:a}})}_createComputedProperty(o,a,n){let s=Mr(a);if(!s)throw new Error("Malformed computed expression '"+a+"'");const l=Xo(this,s,P.COMPUTE,vn,o,n);Dr(this,fn)[o]=l}_marshalArgs(o,a,n){const s=this.__data,l=[];for(let d=0,c=o.length;d<c;d++){let{name:h,structured:u,wildcard:p,value:b,literal:N}=o[d];if(!N)if(p){const D=wt(h,a),O=ea(s,n,D?a:h);b={path:D?a:h,value:O,base:D?Z(s,h):O}}else b=u?ea(s,n,h):s[h];if(Qr&&!this._overrideLegacyUndefined&&b===void 0&&o.length>1)return kt;l[d]=b}return l}static addPropertyEffect(o,a,n){this.prototype._addPropertyEffect(o,a,n)}static createPropertyObserver(o,a,n){this.prototype._createPropertyObserver(o,a,n)}static createMethodObserver(o,a){this.prototype._createMethodObserver(o,a)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,a){this.prototype._createReadOnlyProperty(o,a)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,a,n){this.prototype._createComputedProperty(o,a,n)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,a){let n=this.constructor._parseTemplate(o),s=this.__preBoundTemplateInfo==n;if(!s)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(a)if(n=Object.create(n),n.wasPreBound=s,!this.__templateInfo)this.__templateInfo=n;else{const l=o._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(o,a,n){let s=o.hostProps=o.hostProps||{};s[a]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[a]=l[a]||[]).push(n)}_stampTemplate(o,a){a=a||this._bindTemplate(o,!0),lt.push(this);let n=super._stampTemplate(o,a);if(lt.pop(),a.nodeList=n.nodeList,!a.wasPreBound){let s=a.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)s.push(l)}return n.templateInfo=a,Dh(this,a),this.__dataClientsReady&&(this._runEffectsForTemplate(a,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const a=o.templateInfo,{previousSibling:n,nextSibling:s,parent:l}=a;n?n.nextSibling=s:l&&(l.firstChild=s),s?s.previousSibling=n:l&&(l.lastChild=n),a.nextSibling=a.previousSibling=null;let d=a.childNodes;for(let c=0;c<d.length;c++){let h=d[c];G(G(h).parentNode).removeChild(h)}}static _parseTemplateNode(o,a,n){let s=e._parseTemplateNode.call(this,o,a,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,a);l&&(o.textContent=Zo(l)||" ",Or(this,a,n,"text","textContent",l),s=!0)}return s}static _parseTemplateNodeAttribute(o,a,n,s,l){let d=this._parseBindings(l,a);if(d){let c=s,h="property";mh.test(s)?h="attribute":s[s.length-1]=="$"&&(s=s.slice(0,-1),h="attribute");let u=Zo(d);return u&&h=="attribute"&&(s=="class"&&o.hasAttribute("class")&&(u+=" "+o.getAttribute(s)),o.setAttribute(s,u)),h=="attribute"&&c=="disable-upgrade$"&&o.setAttribute(s,""),o.localName==="input"&&c==="value"&&o.setAttribute(c,""),o.removeAttribute(c),h==="property"&&(s=ln(s)),Or(this,a,n,h,s,d,u),!0}else return e._parseTemplateNodeAttribute.call(this,o,a,n,s,l)}static _parseTemplateNestedTemplate(o,a,n){let s=e._parseTemplateNestedTemplate.call(this,o,a,n);const l=o.parentNode,d=n.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";Vo&&(c||h)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=d,n.noted=!0,s=!1);let u=d.hostProps;if(Bc&&c)u&&(a.hostProps=Object.assign(a.hostProps||{},u),Vo||(n.parentInfo.noted=!0));else{let p="{";for(let b in u){let N=[{mode:p,source:b,dependencies:[b],hostProp:!0}];Or(this,a,n,"property","_host_"+b,N)}}return s}static _parseBindings(o,a){let n=[],s=0,l;for(;(l=Jo.exec(o))!==null;){l.index>s&&n.push({literal:o.slice(s,l.index)});let d=l[1][0],c=!!l[2],h=l[3].trim(),u=!1,p="",b=-1;d=="{"&&(b=h.indexOf("::"))>0&&(p=h.substring(b+2),h=h.substring(0,b),u=!0);let N=Mr(h),D=[];if(N){let{args:O,methodName:A}=N;for(let W=0;W<O.length;W++){let ne=O[W];ne.literal||D.push(ne)}let U=a.dynamicFns;(U&&U[A]||N.static)&&(D.push(A),N.dynamicFn=!0)}else D.push(h);n.push({source:h,mode:d,negate:c,customEvent:u,signature:N,dependencies:D,event:p}),s=Jo.lastIndex}if(s&&s<o.length){let d=o.substring(s);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(o,a,n,s,l,d){let c;return a.signature?c=ei(o,n,s,l,a.signature):n!=a.source?c=Z(o,a.source):d&&Jr(n)?c=Z(o,n):c=o.__data[n],a.negate&&(c=!c),c}}return t}),lt=[];/**
991
991
  @license
992
992
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
993
993
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1003,7 +1003,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1003
1003
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1004
1004
  Code distributed by Google as part of the polymer project is also
1005
1005
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1006
- */function jh(o){const e={};for(let t in o){const r=o[t];e[t]=typeof r=="function"?{type:r}:r}return e}const Gh=H(o=>{const e=hn(o);function t(a){const n=Object.getPrototypeOf(a);return n.prototype instanceof i?n:null}function r(a){if(!a.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",a))){let n=null;if(a.hasOwnProperty(JSCompiler_renameProperty("properties",a))){const s=a.properties;s&&(n=jh(s))}a.__ownProperties=n}return a.__ownProperties}class i extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(s=>this.prototype._addPropertyToAttributeMap(s)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=t(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=r(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=t(this);this.__properties=Object.assign({},n&&n._properties,r(this))}return this.__properties}static typeForProperty(n){const s=this._properties[n];return s&&s.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return i});/**
1006
+ */function Gh(i){const e={};for(let t in i){const r=i[t];e[t]=typeof r=="function"?{type:r}:r}return e}const Kh=H(i=>{const e=un(i);function t(a){const n=Object.getPrototypeOf(a);return n.prototype instanceof o?n:null}function r(a){if(!a.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",a))){let n=null;if(a.hasOwnProperty(JSCompiler_renameProperty("properties",a))){const s=a.properties;s&&(n=Gh(s))}a.__ownProperties=n}return a.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(s=>this.prototype._addPropertyToAttributeMap(s)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=t(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=r(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=t(this);this.__properties=Object.assign({},n&&n._properties,r(this))}return this.__properties}static typeForProperty(n){const s=this._properties[n];return s&&s.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o});/**
1007
1007
  * @fileoverview
1008
1008
  * @suppress {checkPrototypalTypes}
1009
1009
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1013,7 +1013,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1013
1013
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1014
1014
  * Google as part of the polymer project is also subject to an additional IP
1015
1015
  * rights grant found at http://polymer.github.io/PATENTS.txt
1016
- */const Kh="3.5.2",ea=window.ShadyCSS&&window.ShadyCSS.cssBuild,Xh=H(o=>{const e=Gh(Si(o));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let c in d){let h=d[c];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=h)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function i(l,d,c,h){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,c.computed,h)),c.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):c.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),c.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):c.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),c.observer&&l._createPropertyObserver(d,c.observer,h[c.observer]),l._addPropertyToAttributeMap(d)}function a(l,d,c,h){if(!ea){const u=d.content.querySelectorAll("style"),p=rn(d),b=qc(c),N=d.content.firstElementChild;for(let O=0;O<b.length;O++){let A=b[O];A.textContent=l._processStyleText(A.textContent,h),d.content.insertBefore(A,N)}let D=0;for(let O=0;O<p.length;O++){let A=p[O],U=u[D];U!==A?(A=A.cloneNode(!0),U.parentNode.insertBefore(A,U)):D++,A.textContent=l._processStyleText(A.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,c),Bc&&ea&&Oc){const u=d.content.querySelectorAll("style");if(u){let p="";Array.from(u).forEach(b=>{p+=b.textContent,b.parentNode.removeChild(b)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p)}}}function n(l){let d=null;if(l&&(!nr||zc)&&(d=yt.import(l,"template"),nr&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class s extends e{static get polymerElementVersion(){return Kh}static _finalizeClass(){e._finalizeClass.call(this);const d=r(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):Ja||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let c in d)i(this.prototype,c,d[c],d)}static createObservers(d,c){const h=this.prototype;for(let u=0;u<d.length;u++)h._createMethodObserver(d[u],c)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Ai(d.url);else{const c=yt.import(this.is);this._importPath=c&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super()}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Mc,this.importPath=this.constructor.importPath;let d=t(this.constructor);if(d)for(let c in d){let h=d[c];if(this._canApplyPropertyDefault(c)){let u=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(c)?this._setPendingProperty(c,u,!0):this[c]=u}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,c){return Ti(d,c)}static _finalizeTemplate(d){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const h=this.importPath,u=h?ft(h):"";a(this,c,d,u),this.prototype._bindTemplate(c)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const c=G(this);if(c.attachShadow)return d?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:d}),c.shadowRoot.appendChild(d),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Nc&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,c){return!c&&this.importPath&&(c=ft(this.importPath)),ft(d,c)}static _parseTemplateContent(d,c,h){return c.dynamicFns=c.dynamicFns||this._properties,e._parseTemplateContent.call(this,d,c,h)}static _addTemplatePropertyEffect(d,c,h){return Za&&!(c in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,d,c,h)}}return s});/**
1016
+ */const Xh="3.5.2",ta=window.ShadyCSS&&window.ShadyCSS.cssBuild,Qh=H(i=>{const e=Kh(Si(i));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let c in d){let h=d[c];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=h)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,d,c,h){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,c.computed,h)),c.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):c.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),c.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):c.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),c.observer&&l._createPropertyObserver(d,c.observer,h[c.observer]),l._addPropertyToAttributeMap(d)}function a(l,d,c,h){if(!ta){const u=d.content.querySelectorAll("style"),p=on(d),b=Yc(c),N=d.content.firstElementChild;for(let O=0;O<b.length;O++){let A=b[O];A.textContent=l._processStyleText(A.textContent,h),d.content.insertBefore(A,N)}let D=0;for(let O=0;O<p.length;O++){let A=p[O],U=u[D];U!==A?(A=A.cloneNode(!0),U.parentNode.insertBefore(A,U)):D++,A.textContent=l._processStyleText(A.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,c),Vc&&ta&&Mc){const u=d.content.querySelectorAll("style");if(u){let p="";Array.from(u).forEach(b=>{p+=b.textContent,b.parentNode.removeChild(b)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p)}}}function n(l){let d=null;if(l&&(!nr||Nc)&&(d=yt.import(l,"template"),nr&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class s extends e{static get polymerElementVersion(){return Xh}static _finalizeClass(){e._finalizeClass.call(this);const d=r(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):Za||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let c in d)o(this.prototype,c,d[c],d)}static createObservers(d,c){const h=this.prototype;for(let u=0;u<d.length;u++)h._createMethodObserver(d[u],c)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Ai(d.url);else{const c=yt.import(this.is);this._importPath=c&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super()}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=zc,this.importPath=this.constructor.importPath;let d=t(this.constructor);if(d)for(let c in d){let h=d[c];if(this._canApplyPropertyDefault(c)){let u=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(c)?this._setPendingProperty(c,u,!0):this[c]=u}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,c){return Ti(d,c)}static _finalizeTemplate(d){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const h=this.importPath,u=h?ft(h):"";a(this,c,d,u),this.prototype._bindTemplate(c)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const c=G(this);if(c.attachShadow)return d?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:d}),c.shadowRoot.appendChild(d),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Lc&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,c){return!c&&this.importPath&&(c=ft(this.importPath)),ft(d,c)}static _parseTemplateContent(d,c,h){return c.dynamicFns=c.dynamicFns||this._properties,e._parseTemplateContent.call(this,d,c,h)}static _addTemplatePropertyEffect(d,c,h){return en&&!(c in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,d,c,h)}}return s});/**
1017
1017
  @license
1018
1018
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1019
1019
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1021,7 +1021,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1021
1021
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1022
1022
  Code distributed by Google as part of the polymer project is also
1023
1023
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1024
- */const ta=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:o=>o});class yn{constructor(e,t){xn(e,t);const r=t.reduce((i,a,n)=>i+wn(a)+e[n+1],e[0]);this.value=r.toString()}toString(){return this.value}}function wn(o){if(o instanceof yn)return o.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${o}`)}function Qh(o){if(o instanceof HTMLTemplateElement)return o.innerHTML;if(o instanceof yn)return wn(o);throw new Error(`non-template value passed to Polymer's html function: ${o}`)}const C=function(o,...e){xn(o,e);const t=document.createElement("template");let r=e.reduce((i,a,n)=>i+Qh(a)+o[n+1],o[0]);return ta&&(r=ta.createHTML(r)),t.innerHTML=r,t},xn=(o,e)=>{if(!Array.isArray(o)||!Array.isArray(o.raw)||e.length!==o.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1024
+ */const ra=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class wn{constructor(e,t){Cn(e,t);const r=t.reduce((o,a,n)=>o+xn(a)+e[n+1],e[0]);this.value=r.toString()}toString(){return this.value}}function xn(i){if(i instanceof wn)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function Jh(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof wn)return xn(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const C=function(i,...e){Cn(i,e);const t=document.createElement("template");let r=e.reduce((o,a,n)=>o+Jh(a)+i[n+1],i[0]);return ra&&(r=ra.createHTML(r)),t.innerHTML=r,t},Cn=(i,e)=>{if(!Array.isArray(i)||!Array.isArray(i.raw)||e.length!==i.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1025
1025
  @license
1026
1026
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1027
1027
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1029,7 +1029,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1029
1029
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1030
1030
  Code distributed by Google as part of the polymer project is also
1031
1031
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1032
- */const k=Xh(HTMLElement),Jh=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Kt=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Zh(){function o(){return!0}return Cn(o)}function eu(){try{return tu()?!0:ru()?Kt?!iu():!Zh():!1}catch(o){return!1}}function tu(){return localStorage.getItem("vaadin.developmentmode.force")}function ru(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function iu(){return!!(Kt&&Object.keys(Kt).map(o=>Kt[o]).filter(o=>o.productionMode).length>0)}function Cn(o,e){if(typeof o!="function")return;const t=Jh.exec(o.toString());if(t)try{o=new Function(t[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return o(e)}window.Vaadin=window.Vaadin||{};const ra=function(o,e){if(window.Vaadin.developmentMode)return Cn(o,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=eu());function ou(){/*! vaadin-dev-mode:start
1032
+ */const k=Qh(HTMLElement),Zh=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Kt=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function eu(){function i(){return!0}return kn(i)}function tu(){try{return ru()?!0:iu()?Kt?!ou():!eu():!1}catch(i){return!1}}function ru(){return localStorage.getItem("vaadin.developmentmode.force")}function iu(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function ou(){return!!(Kt&&Object.keys(Kt).map(i=>Kt[i]).filter(i=>i.productionMode).length>0)}function kn(i,e){if(typeof i!="function")return;const t=Zh.exec(i.toString());if(t)try{i=new Function(t[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return i(e)}window.Vaadin=window.Vaadin||{};const ia=function(i,e){if(window.Vaadin.developmentMode)return kn(i,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=tu());function au(){/*! vaadin-dev-mode:start
1033
1033
  (function () {
1034
1034
  'use strict';
1035
1035
 
@@ -1507,7 +1507,7 @@ try {
1507
1507
 
1508
1508
  }());
1509
1509
 
1510
- vaadin-dev-mode:end **/}const au=function(){if(typeof ra=="function")return ra(ou)};/**
1510
+ vaadin-dev-mode:end **/}const nu=function(){if(typeof ia=="function")return ia(au)};/**
1511
1511
  * @license
1512
1512
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1513
1513
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1515,7 +1515,7 @@ try {
1515
1515
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1516
1516
  * Code distributed by Google as part of the polymer project is also
1517
1517
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1518
- */let ia=0,kn=0;const He=[];let ti=!1;function nu(){ti=!1;const o=He.length;for(let e=0;e<o;e++){const t=He[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}He.splice(0,o),kn+=o}const we={after(o){return{run(e){return window.setTimeout(e,o)},cancel(e){window.clearTimeout(e)}}},run(o,e){return window.setTimeout(o,e)},cancel(o){window.clearTimeout(o)}},Et={run(o){return window.requestAnimationFrame(o)},cancel(o){window.cancelAnimationFrame(o)}},En={run(o){return window.requestIdleCallback?window.requestIdleCallback(o):window.setTimeout(o,16)},cancel(o){window.cancelIdleCallback?window.cancelIdleCallback(o):window.clearTimeout(o)}},lr={run(o){ti||(ti=!0,queueMicrotask(()=>nu())),He.push(o);const e=ia;return ia+=1,e},cancel(o){const e=o-kn;if(e>=0){if(!He[e])throw new Error(`invalid async handle: ${o}`);He[e]=null}}};/**
1518
+ */let oa=0,En=0;const He=[];let ti=!1;function su(){ti=!1;const i=He.length;for(let e=0;e<i;e++){const t=He[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}He.splice(0,i),En+=i}const we={after(i){return{run(e){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}}},run(i,e){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}},Et={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},Tn={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},lr={run(i){ti||(ti=!0,queueMicrotask(()=>su())),He.push(i);const e=oa;return oa+=1,e},cancel(i){const e=i-En;if(e>=0){if(!He[e])throw new Error(`invalid async handle: ${i}`);He[e]=null}}};/**
1519
1519
  @license
1520
1520
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1521
1521
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1523,31 +1523,31 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1523
1523
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1524
1524
  Code distributed by Google as part of the polymer project is also
1525
1525
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1526
- */const Tt=new Set;let re=class ri{static debounce(e,t,r){return e instanceof ri?e._cancelAsync():e=new ri,e.setConfig(t,r),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Tt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Tt.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 Tn(o){Tt.add(o)}function su(){const o=!!Tt.size;return Tt.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),o}const pt=()=>{let o;do o=su();while(o)};/**
1526
+ */const Tt=new Set;let re=class ri{static debounce(e,t,r){return e instanceof ri?e._cancelAsync():e=new ri,e.setConfig(t,r),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Tt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Tt.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 An(i){Tt.add(i)}function lu(){const i=!!Tt.size;return Tt.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i}const pt=()=>{let i;do i=lu();while(i)};/**
1527
1527
  * @license
1528
1528
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1529
1529
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1530
- */const ue=[];function ii(o,e,t=o.getAttribute("dir")){e?o.setAttribute("dir",e):t!=null&&o.removeAttribute("dir")}function oi(){return document.documentElement.getAttribute("dir")}function lu(){const o=oi();ue.forEach(e=>{ii(e,o)})}const du=new MutationObserver(lu);du.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const ie=o=>class extends o{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),ii(this,oi(),null))}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback(e,t,r),e!=="dir")return;const i=oi(),a=r===i&&ue.indexOf(this)===-1,n=!r&&t&&ue.indexOf(this)===-1;a||n?(this.__subscribe(),ii(this,i,r)):r!==i&&t===i&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=ue.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,r){r==="dir"&&t===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,r)}_attributeToProperty(e,t,r){e==="dir"&&!t?this.dir="":super._attributeToProperty(e,t,r)}__subscribe(){ue.includes(this)||ue.push(this)}__unsubscribe(){ue.includes(this)&&ue.splice(ue.indexOf(this),1)}};/**
1530
+ */const ue=[];function ii(i,e,t=i.getAttribute("dir")){e?i.setAttribute("dir",e):t!=null&&i.removeAttribute("dir")}function oi(){return document.documentElement.getAttribute("dir")}function du(){const i=oi();ue.forEach(e=>{ii(e,i)})}const cu=new MutationObserver(du);cu.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const ie=i=>class extends i{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),ii(this,oi(),null))}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback(e,t,r),e!=="dir")return;const o=oi(),a=r===o&&ue.indexOf(this)===-1,n=!r&&t&&ue.indexOf(this)===-1;a||n?(this.__subscribe(),ii(this,o,r)):r!==o&&t===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=ue.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,r){r==="dir"&&t===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,r)}_attributeToProperty(e,t,r){e==="dir"&&!t?this.dir="":super._attributeToProperty(e,t,r)}__subscribe(){ue.includes(this)||ue.push(this)}__unsubscribe(){ue.includes(this)&&ue.splice(ue.indexOf(this),1)}};/**
1531
1531
  * @license
1532
1532
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1533
1533
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1534
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){au()};let zr;const oa=new Set,oe=o=>class extends ie(o){static finalize(){super.finalize();const{is:e}=this;e&&!oa.has(e)&&(window.Vaadin.registrations.push(this),oa.add(e),window.Vaadin.developmentModeCallback&&(zr=re.debounce(zr,En,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Tn(zr)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
1534
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){nu()};let zr;const aa=new Set,oe=i=>class extends ie(i){static finalize(){super.finalize();const{is:e}=this;e&&!aa.has(e)&&(window.Vaadin.registrations.push(this),aa.add(e),window.Vaadin.developmentModeCallback&&(zr=re.debounce(zr,Tn,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),An(zr)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
1535
1535
  * @license
1536
1536
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1537
1537
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1538
- */function cu(o){const e=[];for(;o;){if(o.nodeType===Node.DOCUMENT_NODE){e.push(o);break}if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(o),o=o.host;continue}if(o.assignedSlot){o=o.assignedSlot;continue}o=o.parentNode}return e}function An(o){const e=[];let t;return o.localName==="slot"?t=o.assignedElements():(e.push(o),t=[...o.children]),t.forEach(r=>e.push(...An(r))),e}function Di(o){return o?new Set(o.split(" ")):new Set}function _r(o){return o?[...o].join(" "):""}function Pn(o,e,t){const r=Di(o.getAttribute(e));r.add(t),o.setAttribute(e,_r(r))}function hu(o,e,t){const r=Di(o.getAttribute(e));if(r.delete(t),r.size===0){o.removeAttribute(e);return}o.setAttribute(e,_r(r))}function uu(o){return o.nodeType===Node.TEXT_NODE&&o.textContent.trim()===""}/**
1538
+ */function hu(i){const e=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){e.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return e}function Pn(i){const e=[];let t;return i.localName==="slot"?t=i.assignedElements():(e.push(i),t=[...i.children]),t.forEach(r=>e.push(...Pn(r))),e}function Di(i){return i?new Set(i.split(" ")):new Set}function _r(i){return i?[...i].join(" "):""}function In(i,e,t){const r=Di(i.getAttribute(e));r.add(t),i.setAttribute(e,_r(r))}function uu(i,e,t){const r=Di(i.getAttribute(e));if(r.delete(t),r.size===0){i.removeAttribute(e);return}i.setAttribute(e,_r(r))}function pu(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
1539
1539
  * @license
1540
1540
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1541
1541
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1542
- */class Oi{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const r=[],i=[];e.length&&(t=e.filter(a=>!this._storedNodes.includes(a))),this._storedNodes.length&&this._storedNodes.forEach((a,n)=>{const s=e.indexOf(a);s===-1?r.push(a):s!==n&&i.push(a)}),(t.length||r.length||i.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:i,removedNodes:r}),this._storedNodes=e}}/**
1542
+ */class Oi{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const r=[],o=[];e.length&&(t=e.filter(a=>!this._storedNodes.includes(a))),this._storedNodes.length&&this._storedNodes.forEach((a,n)=>{const s=e.indexOf(a);s===-1?r.push(a):s!==n&&o.push(a)}),(t.length||r.length||o.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:o,removedNodes:r}),this._storedNodes=e}}/**
1543
1543
  * @license
1544
1544
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1545
1545
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1546
- */let pu=0;function It(){return pu++}/**
1546
+ */let mu=0;function It(){return mu++}/**
1547
1547
  * @license
1548
1548
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1549
1549
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1550
- */class J extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${It()}`}constructor(e,t,r,i={}){super();const{initializer:a,multiple:n,observe:s,useUniqueId:l,uniqueIdPrefix:d}=i;this.host=e,this.slotName=t,this.tagName=r,this.observe=typeof s=="boolean"?s:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=a,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,d||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:r}=this;let i=this.defaultNode;return!i&&r&&(i=document.createElement(r),i instanceof Element&&(t!==""&&i.setAttribute("slot",t),this.defaultNode=i)),i&&(this.node=i,e.appendChild(i)),i}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,r=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Oi(r,({addedNodes:i,removedNodes:a})=>{const n=this.multiple?this.nodes:[this.node],s=i.filter(l=>!uu(l)&&!n.includes(l));a.length&&(this.nodes=n.filter(l=>!a.includes(l)),a.forEach(l=>{this.teardownNode(l)})),s&&s.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...s].filter(l=>l!==this.defaultNode),s.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=s[0],this.initAddedNode(this.node)))})}}/**
1550
+ */class J extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${It()}`}constructor(e,t,r,o={}){super();const{initializer:a,multiple:n,observe:s,useUniqueId:l,uniqueIdPrefix:d}=o;this.host=e,this.slotName=t,this.tagName=r,this.observe=typeof s=="boolean"?s:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=a,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,d||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:r}=this;let o=this.defaultNode;return!o&&r&&(o=document.createElement(r),o instanceof Element&&(t!==""&&o.setAttribute("slot",t),this.defaultNode=o)),o&&(this.node=o,e.appendChild(o)),o}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,r=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Oi(r,({addedNodes:o,removedNodes:a})=>{const n=this.multiple?this.nodes:[this.node],s=o.filter(l=>!pu(l)&&!n.includes(l));a.length&&(this.nodes=n.filter(l=>!a.includes(l)),a.forEach(l=>{this.teardownNode(l)})),s&&s.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...s].filter(l=>l!==this.defaultNode),s.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=s[0],this.initAddedNode(this.node)))})}}/**
1551
1551
  * @license
1552
1552
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1553
1553
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1559,95 +1559,95 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1559
1559
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1560
1560
  Code distributed by Google as part of the polymer project is also
1561
1561
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1562
- */const mu=o=>o,In=typeof document.head.style.touchAction=="string",ai="__polymerGestures",Nr="__polymerGesturesHandled",ni="__polymerGesturesTouchAction",aa=25,na=5,fu=2,_u=["mousedown","mousemove","mouseup","click"],vu=[0,1,4,2],gu=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function Sn(o){return _u.indexOf(o)>-1}(function(){try{const o=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}})();const bu=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),yu={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Se(o){const e=o.type;if(!Sn(e))return!1;if(e==="mousemove"){let t=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!gu&&(t=vu[o.which]||0),!!(t&1)}return(o.button===void 0?0:o.button)===0}function wu(o){if(o.type==="click"){if(o.detail===0)return!0;const e=xe(o);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),r=o.pageX,i=o.pageY;return!(r>=t.left&&r<=t.right&&i>=t.top&&i<=t.bottom)}return!1}const pe={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function xu(o){let e="auto";const t=On(o);for(let r=0,i;r<t.length;r++)if(i=t[r],i[ni]){e=i[ni];break}return e}function Dn(o,e,t){o.movefn=e,o.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function Ue(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null}const On=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],Mi={},Pe=[];function Cu(o,e){let t=document.elementFromPoint(o,e),r=t;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const i=r;if(r=r.shadowRoot.elementFromPoint(o,e),i===r)break;r&&(t=r)}return t}function xe(o){const e=On(o);return e.length>0?e[0]:o.target}function ku(o){const e=o.type,t=o.currentTarget[ai];if(!t)return;const r=t[e];if(!r)return;if(!o[Nr]&&(o[Nr]={},e.startsWith("touch"))){const a=o.changedTouches[0];if(e==="touchstart"&&o.touches.length===1&&(pe.touch.id=a.identifier),pe.touch.id!==a.identifier)return;In||(e==="touchstart"||e==="touchmove")&&Eu(o)}const i=o[Nr];if(!i.skip){for(let a=0,n;a<Pe.length;a++)n=Pe[a],r[n.name]&&!i[n.name]&&n.flow&&n.flow.start.indexOf(o.type)>-1&&n.reset&&n.reset();for(let a=0,n;a<Pe.length;a++)n=Pe[a],r[n.name]&&!i[n.name]&&(i[n.name]=!0,n[e](o))}}function Eu(o){const e=o.changedTouches[0],t=o.type;if(t==="touchstart")pe.touch.x=e.clientX,pe.touch.y=e.clientY,pe.touch.scrollDecided=!1;else if(t==="touchmove"){if(pe.touch.scrollDecided)return;pe.touch.scrollDecided=!0;const r=xu(o);let i=!1;const a=Math.abs(pe.touch.x-e.clientX),n=Math.abs(pe.touch.y-e.clientY);o.cancelable&&(r==="none"?i=!0:r==="pan-x"?i=n>a:r==="pan-y"&&(i=a>n)),i?o.preventDefault():dr("track")}}function le(o,e,t){return Mi[e]?(Tu(o,e,t),!0):!1}function Tu(o,e,t){const r=Mi[e],i=r.deps,a=r.name;let n=o[ai];n||(o[ai]=n={});for(let s=0,l,d;s<i.length;s++)l=i[s],!(bu&&Sn(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&o.addEventListener(l,ku,void 0),d[a]=(d[a]||0)+1,d._count=(d._count||0)+1);o.addEventListener(e,t),r.touchAction&&Mn(o,r.touchAction)}function zi(o){Pe.push(o),o.emits.forEach(e=>{Mi[e]=o})}function Au(o){for(let e=0,t;e<Pe.length;e++){t=Pe[e];for(let r=0,i;r<t.emits.length;r++)if(i=t.emits[r],i===o)return t}return null}function Mn(o,e){In&&o instanceof HTMLElement&&lr.run(()=>{o.style.touchAction=e}),o[ni]=e}function Ni(o,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,mu(o).dispatchEvent(r),r.defaultPrevented){const i=t.preventer||t.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function dr(o){const e=Au(o);e.info&&(e.info.prevent=!0)}zi({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Ue(this.info)},mousedown(o){if(!Se(o))return;const e=xe(o),t=this,r=a=>{Se(a)||(dt("up",e,a),Ue(t.info))},i=a=>{Se(a)&&dt("up",e,a),Ue(t.info)};Dn(this.info,r,i),dt("down",e,o)},touchstart(o){dt("down",xe(o),o.changedTouches[0],o)},touchend(o){dt("up",xe(o),o.changedTouches[0],o)}});function dt(o,e,t,r){e&&Ni(e,o,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(i){return dr(i)}})}zi({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(o){this.moves.length>fu&&this.moves.shift(),this.moves.push(o)},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,Ue(this.info)},mousedown(o){if(!Se(o))return;const e=xe(o),t=this,r=a=>{const n=a.clientX,s=a.clientY;sa(t.info,n,s)&&(t.info.state=t.info.started?a.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&dr("tap"),t.info.addMove({x:n,y:s}),Se(a)||(t.info.state="end",Ue(t.info)),e&&Lr(t.info,e,a),t.info.started=!0)},i=a=>{t.info.started&&r(a),Ue(t.info)};Dn(this.info,r,i),this.info.x=o.clientX,this.info.y=o.clientY},touchstart(o){const e=o.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(o){const e=xe(o),t=o.changedTouches[0],r=t.clientX,i=t.clientY;sa(this.info,r,i)&&(this.info.state==="start"&&dr("tap"),this.info.addMove({x:r,y:i}),Lr(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(o){const e=xe(o),t=o.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Lr(this.info,e,t))}});function sa(o,e,t){if(o.prevent)return!1;if(o.started)return!0;const r=Math.abs(o.x-e),i=Math.abs(o.y-t);return r>=na||i>=na}function Lr(o,e,t){if(!e)return;const r=o.moves[o.moves.length-2],i=o.moves[o.moves.length-1],a=i.x-o.x,n=i.y-o.y;let s,l=0;r&&(s=i.x-r.x,l=i.y-r.y),Ni(e,"track",{state:o.state,x:t.clientX,y:t.clientY,dx:a,dy:n,ddx:s,ddy:l,sourceEvent:t,hover(){return Cu(t.clientX,t.clientY)}})}zi({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(o){Se(o)&&(this.info.x=o.clientX,this.info.y=o.clientY)},click(o){Se(o)&&la(this.info,o)},touchstart(o){const e=o.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(o){la(this.info,o.changedTouches[0],o)}});function la(o,e,t){const r=Math.abs(e.clientX-o.x),i=Math.abs(e.clientY-o.y),a=xe(t||e);!a||yu[a.localName]&&a.hasAttribute("disabled")||(isNaN(r)||isNaN(i)||r<=aa&&i<=aa||wu(e))&&(o.prevent||Ni(a,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1562
+ */const fu=i=>i,Sn=typeof document.head.style.touchAction=="string",ai="__polymerGestures",Nr="__polymerGesturesHandled",ni="__polymerGesturesTouchAction",na=25,sa=5,_u=2,vu=["mousedown","mousemove","mouseup","click"],gu=[0,1,4,2],bu=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function Dn(i){return vu.indexOf(i)>-1}(function(){try{const i=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();const yu=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),wu={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Se(i){const e=i.type;if(!Dn(e))return!1;if(e==="mousemove"){let t=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!bu&&(t=gu[i.which]||0),!!(t&1)}return(i.button===void 0?0:i.button)===0}function xu(i){if(i.type==="click"){if(i.detail===0)return!0;const e=xe(i);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),r=i.pageX,o=i.pageY;return!(r>=t.left&&r<=t.right&&o>=t.top&&o<=t.bottom)}return!1}const pe={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Cu(i){let e="auto";const t=Mn(i);for(let r=0,o;r<t.length;r++)if(o=t[r],o[ni]){e=o[ni];break}return e}function On(i,e,t){i.movefn=e,i.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function Ue(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const Mn=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],Mi={},Pe=[];function ku(i,e){let t=document.elementFromPoint(i,e),r=t;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const o=r;if(r=r.shadowRoot.elementFromPoint(i,e),o===r)break;r&&(t=r)}return t}function xe(i){const e=Mn(i);return e.length>0?e[0]:i.target}function Eu(i){const e=i.type,t=i.currentTarget[ai];if(!t)return;const r=t[e];if(!r)return;if(!i[Nr]&&(i[Nr]={},e.startsWith("touch"))){const a=i.changedTouches[0];if(e==="touchstart"&&i.touches.length===1&&(pe.touch.id=a.identifier),pe.touch.id!==a.identifier)return;Sn||(e==="touchstart"||e==="touchmove")&&Tu(i)}const o=i[Nr];if(!o.skip){for(let a=0,n;a<Pe.length;a++)n=Pe[a],r[n.name]&&!o[n.name]&&n.flow&&n.flow.start.indexOf(i.type)>-1&&n.reset&&n.reset();for(let a=0,n;a<Pe.length;a++)n=Pe[a],r[n.name]&&!o[n.name]&&(o[n.name]=!0,n[e](i))}}function Tu(i){const e=i.changedTouches[0],t=i.type;if(t==="touchstart")pe.touch.x=e.clientX,pe.touch.y=e.clientY,pe.touch.scrollDecided=!1;else if(t==="touchmove"){if(pe.touch.scrollDecided)return;pe.touch.scrollDecided=!0;const r=Cu(i);let o=!1;const a=Math.abs(pe.touch.x-e.clientX),n=Math.abs(pe.touch.y-e.clientY);i.cancelable&&(r==="none"?o=!0:r==="pan-x"?o=n>a:r==="pan-y"&&(o=a>n)),o?i.preventDefault():dr("track")}}function le(i,e,t){return Mi[e]?(Au(i,e,t),!0):!1}function Au(i,e,t){const r=Mi[e],o=r.deps,a=r.name;let n=i[ai];n||(i[ai]=n={});for(let s=0,l,d;s<o.length;s++)l=o[s],!(yu&&Dn(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&i.addEventListener(l,Eu,void 0),d[a]=(d[a]||0)+1,d._count=(d._count||0)+1);i.addEventListener(e,t),r.touchAction&&zn(i,r.touchAction)}function zi(i){Pe.push(i),i.emits.forEach(e=>{Mi[e]=i})}function Pu(i){for(let e=0,t;e<Pe.length;e++){t=Pe[e];for(let r=0,o;r<t.emits.length;r++)if(o=t.emits[r],o===i)return t}return null}function zn(i,e){Sn&&i instanceof HTMLElement&&lr.run(()=>{i.style.touchAction=e}),i[ni]=e}function Ni(i,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,fu(i).dispatchEvent(r),r.defaultPrevented){const o=t.preventer||t.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function dr(i){const e=Pu(i);e.info&&(e.info.prevent=!0)}zi({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Ue(this.info)},mousedown(i){if(!Se(i))return;const e=xe(i),t=this,r=a=>{Se(a)||(dt("up",e,a),Ue(t.info))},o=a=>{Se(a)&&dt("up",e,a),Ue(t.info)};On(this.info,r,o),dt("down",e,i)},touchstart(i){dt("down",xe(i),i.changedTouches[0],i)},touchend(i){dt("up",xe(i),i.changedTouches[0],i)}});function dt(i,e,t,r){e&&Ni(e,i,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(o){return dr(o)}})}zi({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(i){this.moves.length>_u&&this.moves.shift(),this.moves.push(i)},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,Ue(this.info)},mousedown(i){if(!Se(i))return;const e=xe(i),t=this,r=a=>{const n=a.clientX,s=a.clientY;la(t.info,n,s)&&(t.info.state=t.info.started?a.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&dr("tap"),t.info.addMove({x:n,y:s}),Se(a)||(t.info.state="end",Ue(t.info)),e&&Lr(t.info,e,a),t.info.started=!0)},o=a=>{t.info.started&&r(a),Ue(t.info)};On(this.info,r,o),this.info.x=i.clientX,this.info.y=i.clientY},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(i){const e=xe(i),t=i.changedTouches[0],r=t.clientX,o=t.clientY;la(this.info,r,o)&&(this.info.state==="start"&&dr("tap"),this.info.addMove({x:r,y:o}),Lr(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(i){const e=xe(i),t=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Lr(this.info,e,t))}});function la(i,e,t){if(i.prevent)return!1;if(i.started)return!0;const r=Math.abs(i.x-e),o=Math.abs(i.y-t);return r>=sa||o>=sa}function Lr(i,e,t){if(!e)return;const r=i.moves[i.moves.length-2],o=i.moves[i.moves.length-1],a=o.x-i.x,n=o.y-i.y;let s,l=0;r&&(s=o.x-r.x,l=o.y-r.y),Ni(e,"track",{state:i.state,x:t.clientX,y:t.clientY,dx:a,dy:n,ddx:s,ddy:l,sourceEvent:t,hover(){return ku(t.clientX,t.clientY)}})}zi({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(i){Se(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){Se(i)&&da(this.info,i)},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(i){da(this.info,i.changedTouches[0],i)}});function da(i,e,t){const r=Math.abs(e.clientX-i.x),o=Math.abs(e.clientY-i.y),a=xe(t||e);!a||wu[a.localName]&&a.hasAttribute("disabled")||(isNaN(r)||isNaN(o)||r<=na&&o<=na||xu(e))&&(i.prevent||Ni(a,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1563
1563
  * @license
1564
1564
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1565
1565
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1566
- */const Je=H(o=>class extends o{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
1566
+ */const Je=H(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
1567
1567
  * @license
1568
1568
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1569
1569
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1570
- */const ze=H(o=>class extends o{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
1570
+ */const ze=H(i=>class extends i{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
1571
1571
  * @license
1572
1572
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1573
1573
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1574
- */const Li=o=>class extends Je(ze(o)){get _activeKeys(){return[" "]}ready(){super.ready(),le(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),le(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
1574
+ */const Li=i=>class extends Je(ze(i)){get _activeKeys(){return[" "]}ready(){super.ready(),le(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),le(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
1575
1575
  * @license
1576
1576
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1577
1577
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1578
- */let Fi=!1;window.addEventListener("keydown",()=>{Fi=!0},{capture:!0});window.addEventListener("mousedown",()=>{Fi=!1},{capture:!0});function si(){let o=document.activeElement||document.body;for(;o.shadowRoot&&o.shadowRoot.activeElement;)o=o.shadowRoot.activeElement;return o}function vr(){return Fi}function zn(o){const e=o.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(o);return t.visibility==="hidden"||t.display==="none"}function Pu(o,e){const t=Math.max(o.tabIndex,0),r=Math.max(e.tabIndex,0);return t===0||r===0?r>t:t>r}function Iu(o,e){const t=[];for(;o.length>0&&e.length>0;)Pu(o[0],e[0])?t.push(e.shift()):t.push(o.shift());return t.concat(o,e)}function li(o){const e=o.length;if(e<2)return o;const t=Math.ceil(e/2),r=li(o.slice(0,t)),i=li(o.slice(t));return Iu(r,i)}function di(o){return o.offsetParent===null&&o.clientWidth===0&&o.clientHeight===0?!0:zn(o)}function Bi(o){return o.matches('[tabindex="-1"]')?!1:o.matches("input, select, textarea, button, object")?o.matches(":not([disabled])"):o.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Vi(o){return o.getRootNode().activeElement===o}function Su(o){if(!Bi(o))return-1;const e=o.getAttribute("tabindex")||0;return Number(e)}function Nn(o,e){if(o.nodeType!==Node.ELEMENT_NODE||zn(o))return!1;const t=o,r=Su(t);let i=r>0;r>=0&&e.push(t);let a=[];return t.localName==="slot"?a=t.assignedNodes({flatten:!0}):a=(t.shadowRoot||t).children,[...a].forEach(n=>{i=Nn(n,e)||i}),i}function Du(o){const e=[];return Nn(o,e)?li(e):e}/**
1578
+ */let Fi=!1;window.addEventListener("keydown",()=>{Fi=!0},{capture:!0});window.addEventListener("mousedown",()=>{Fi=!1},{capture:!0});function si(){let i=document.activeElement||document.body;for(;i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function vr(){return Fi}function Nn(i){const e=i.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(i);return t.visibility==="hidden"||t.display==="none"}function Iu(i,e){const t=Math.max(i.tabIndex,0),r=Math.max(e.tabIndex,0);return t===0||r===0?r>t:t>r}function Su(i,e){const t=[];for(;i.length>0&&e.length>0;)Iu(i[0],e[0])?t.push(e.shift()):t.push(i.shift());return t.concat(i,e)}function li(i){const e=i.length;if(e<2)return i;const t=Math.ceil(e/2),r=li(i.slice(0,t)),o=li(i.slice(t));return Su(r,o)}function di(i){return i.offsetParent===null&&i.clientWidth===0&&i.clientHeight===0?!0:Nn(i)}function Bi(i){return i.matches('[tabindex="-1"]')?!1:i.matches("input, select, textarea, button, object")?i.matches(":not([disabled])"):i.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Vi(i){return i.getRootNode().activeElement===i}function Du(i){if(!Bi(i))return-1;const e=i.getAttribute("tabindex")||0;return Number(e)}function Ln(i,e){if(i.nodeType!==Node.ELEMENT_NODE||Nn(i))return!1;const t=i,r=Du(t);let o=r>0;r>=0&&e.push(t);let a=[];return t.localName==="slot"?a=t.assignedNodes({flatten:!0}):a=(t.shadowRoot||t).children,[...a].forEach(n=>{o=Ln(n,e)||o}),o}function Ou(i){const e=[];return Ln(i,e)?li(e):e}/**
1579
1579
  * @license
1580
1580
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1581
1581
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1582
- */const Ne=H(o=>class extends o{get _keyboardActive(){return vr()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
1582
+ */const Ne=H(i=>class extends i{get _keyboardActive(){return vr()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
1583
1583
  * @license
1584
1584
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1585
1585
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1586
- */const Ln=o=>class extends Je(o){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
1586
+ */const Fn=i=>class extends Je(i){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
1587
1587
  * @license
1588
1588
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1589
1589
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1590
- */const gr=H(o=>class extends Ne(Ln(o)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
1590
+ */const gr=H(i=>class extends Ne(Fn(i)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
1591
1591
  * @license
1592
1592
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1593
1593
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1594
- */const Ri=H(o=>class extends o{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((t,r)=>{this._delegateAttribute(t,e[r])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((t,r)=>{this._delegateProperty(t,e[r])})}_delegateAttribute(e,t){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",t?"true":!1),typeof t=="boolean"?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}});/**
1594
+ */const Ri=H(i=>class extends i{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((t,r)=>{this._delegateAttribute(t,e[r])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((t,r)=>{this._delegateProperty(t,e[r])})}_delegateAttribute(e,t){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",t?"true":!1),typeof t=="boolean"?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}});/**
1595
1595
  * @license
1596
1596
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1597
1597
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1598
- */const St=H(o=>class extends o{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),!(e===""&&t===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}});/**
1598
+ */const St=H(i=>class extends i{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),!(e===""&&t===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}});/**
1599
1599
  * @license
1600
1600
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1601
1601
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1602
- */const Ou=H(o=>class extends Ri(Je(St(o))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
1602
+ */const Mu=H(i=>class extends Ri(Je(St(i))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
1603
1603
  * @license
1604
1604
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1605
1605
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1606
- */const Fr=new Map;function $i(o){return Fr.has(o)||Fr.set(o,new WeakMap),Fr.get(o)}function Fn(o,e){o&&o.removeAttribute(e)}function Bn(o,e){if(!o||!e)return;const t=$i(e);if(t.has(o))return;const r=Di(o.getAttribute(e));t.set(o,new Set(r))}function Mu(o,e){if(!o||!e)return;const t=$i(e),r=t.get(o);!r||r.size===0?o.removeAttribute(e):Pn(o,e,_r(r)),t.delete(o)}function We(o,e,t={newId:null,oldId:null,fromUser:!1}){if(!o||!e)return;const{newId:r,oldId:i,fromUser:a}=t,n=$i(e),s=n.get(o);if(!a&&s){i&&s.delete(i),r&&s.add(r);return}a&&(s?r||n.delete(o):Bn(o,e),Fn(o,e)),hu(o,e,i);const l=r||_r(s);l&&Pn(o,e,l)}function zu(o,e){Bn(o,e),Fn(o,e)}/**
1606
+ */const Fr=new Map;function $i(i){return Fr.has(i)||Fr.set(i,new WeakMap),Fr.get(i)}function Bn(i,e){i&&i.removeAttribute(e)}function Vn(i,e){if(!i||!e)return;const t=$i(e);if(t.has(i))return;const r=Di(i.getAttribute(e));t.set(i,new Set(r))}function zu(i,e){if(!i||!e)return;const t=$i(e),r=t.get(i);!r||r.size===0?i.removeAttribute(e):In(i,e,_r(r)),t.delete(i)}function We(i,e,t={newId:null,oldId:null,fromUser:!1}){if(!i||!e)return;const{newId:r,oldId:o,fromUser:a}=t,n=$i(e),s=n.get(i);if(!a&&s){o&&s.delete(o),r&&s.add(r);return}a&&(s?r||n.delete(i):Vn(i,e),Bn(i,e)),uu(i,e,o);const l=r||_r(s);l&&In(i,e,l)}function Nu(i,e){Vn(i,e),Bn(i,e)}/**
1607
1607
  * @license
1608
1608
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1609
1609
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1610
- */class Nu{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,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(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(zu(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(Mu(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){We(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){We(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){We(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
1610
+ */class Lu{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,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(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(Nu(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(zu(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){We(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){We(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){We(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
1611
1611
  * @license
1612
1612
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1613
1613
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1614
- */const he=H(o=>typeof o.prototype.addController=="function"?o:class extends o{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
1614
+ */const he=H(i=>typeof i.prototype.addController=="function"?i:class extends i{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
1615
1615
  * @license
1616
1616
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1617
1617
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1618
- */const se=document.createElement("div");se.style.position="fixed";se.style.clip="rect(0px, 0px, 0px, 0px)";se.setAttribute("aria-live","polite");document.body.appendChild(se);let Ht;function Xt(o,e={}){const t=e.mode||"polite",r=e.timeout===void 0?150:e.timeout;t==="alert"?(se.removeAttribute("aria-live"),se.removeAttribute("role"),Ht=re.debounce(Ht,Et,()=>{se.setAttribute("role","alert")})):(Ht&&Ht.cancel(),se.removeAttribute("role"),se.setAttribute("aria-live",t)),se.textContent="",setTimeout(()=>{se.textContent=o},r)}/**
1618
+ */const se=document.createElement("div");se.style.position="fixed";se.style.clip="rect(0px, 0px, 0px, 0px)";se.setAttribute("aria-live","polite");document.body.appendChild(se);let Ht;function Xt(i,e={}){const t=e.mode||"polite",r=e.timeout===void 0?150:e.timeout;t==="alert"?(se.removeAttribute("aria-live"),se.removeAttribute("role"),Ht=re.debounce(Ht,Et,()=>{se.setAttribute("role","alert")})):(Ht&&Ht.cancel(),se.removeAttribute("role"),se.setAttribute("aria-live",t)),se.textContent="",setTimeout(()=>{se.textContent=i},r)}/**
1619
1619
  * @license
1620
1620
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1621
1621
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1622
- */class Hi extends J{constructor(e,t,r,i={}){super(e,t,r,Fa(er({},i),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(r=>{const i=r.target,a=i===this.node;r.type==="attributes"?a&&this.__updateNodeId(i):(a||i.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
1622
+ */class Hi extends J{constructor(e,t,r,o={}){super(e,t,r,Ba(er({},o),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(r=>{const o=r.target,a=o===this.node;r.type==="attributes"?a&&this.__updateNodeId(o):(a||o.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
1623
1623
  * @license
1624
1624
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1625
1625
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1626
- */class Lu extends Hi{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:r}=this,i=!!(r&&t&&t.trim()!=="");e&&(e.textContent=i?t:"",e.hidden=!i,i&&Xt(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
1626
+ */class Fu extends Hi{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:r}=this,o=!!(r&&t&&t.trim()!=="");e&&(e.textContent=o?t:"",e.hidden=!o,o&&Xt(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
1627
1627
  * @license
1628
1628
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1629
1629
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1630
- */class Fu extends Hi{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1630
+ */class Bu extends Hi{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1631
1631
  * @license
1632
1632
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1633
1633
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1634
- */class Vn extends Hi{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1634
+ */class Rn extends Hi{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1635
1635
  * @license
1636
1636
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1637
1637
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1638
- */const Bu=H(o=>class extends he(o){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Vn(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
1638
+ */const Vu=H(i=>class extends he(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Rn(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
1639
1639
  * @license
1640
1640
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1641
1641
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1642
- */const Ui=H(o=>class extends o{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
1642
+ */const Ui=H(i=>class extends i{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
1643
1643
  * @license
1644
1644
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1645
1645
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1646
- */const br=o=>class extends Ui(Bu(he(o))){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 Nu(this),this._helperController=new Fu(this),this._errorController=new Lu(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:r}=e.detail;this.__labelChanged(t,r)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:r}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,r)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)})}};/**
1646
+ */const br=i=>class extends Ui(Vu(he(i))){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 Lu(this),this._helperController=new Bu(this),this._errorController=new Fu(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:r}=e.detail;this.__labelChanged(t,r)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:r}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,r)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)})}};/**
1647
1647
  * @license
1648
1648
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1649
1649
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1650
- */class Dt extends J{constructor(e,t,r={}){const{uniqueIdPrefix:i}=r;super(e,"input","input",{initializer:(a,n)=>{n.value&&(a.value=n.value),n.type&&a.setAttribute("type",n.type),a.id=this.defaultId,typeof t=="function"&&t(a)},useUniqueId:!0,uniqueIdPrefix:i})}}/**
1650
+ */class Dt extends J{constructor(e,t,r={}){const{uniqueIdPrefix:o}=r;super(e,"input","input",{initializer:(a,n)=>{n.value&&(a.value=n.value),n.type&&a.setAttribute("type",n.type),a.id=this.defaultId,typeof t=="function"&&t(a)},useUniqueId:!0,uniqueIdPrefix:o})}}/**
1651
1651
  * @license
1652
1652
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1653
1653
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1655,11 +1655,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1655
1655
  * @license
1656
1656
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1657
1657
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1658
- */const Vu=o=>class extends br(Ou(gr(Li(o)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new Dt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Ot(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
1658
+ */const Ru=i=>class extends br(Mu(gr(Li(i)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new Dt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Ot(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
1659
1659
  * @license
1660
1660
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1661
1661
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1662
- */const Ru=f`
1662
+ */const $u=f`
1663
1663
  :host {
1664
1664
  display: inline-block;
1665
1665
  }
@@ -1751,7 +1751,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1751
1751
  * @license
1752
1752
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1753
1753
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1754
- */g("vaadin-checkbox",Ru,{moduleId:"vaadin-checkbox-styles"});class $u extends Vu(oe(z(k))){static get is(){return"vaadin-checkbox"}static get template(){return C`
1754
+ */g("vaadin-checkbox",$u,{moduleId:"vaadin-checkbox-styles"});class Hu extends Ru(oe(z(k))){static get is(){return"vaadin-checkbox"}static get template(){return C`
1755
1755
  <div class="vaadin-checkbox-container">
1756
1756
  <div part="checkbox" aria-hidden="true"></div>
1757
1757
  <slot name="input"></slot>
@@ -1767,11 +1767,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1767
1767
  </div>
1768
1768
  </div>
1769
1769
  <slot name="tooltip"></slot>
1770
- `}ready(){super.ready(),this._tooltipController=new ve(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}y($u);/**
1770
+ `}ready(){super.ready(),this._tooltipController=new ve(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}y(Hu);/**
1771
1771
  * @license
1772
1772
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1773
1773
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1774
- */const Rn=f`
1774
+ */const $n=f`
1775
1775
  :host {
1776
1776
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1777
1777
  }
@@ -1943,7 +1943,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1943
1943
  margin-left: 0;
1944
1944
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1945
1945
  }
1946
- `;g("",Wi,{moduleId:"lumo-required-field"});const Hu=f`
1946
+ `;g("",Wi,{moduleId:"lumo-required-field"});const Uu=f`
1947
1947
  :host {
1948
1948
  color: var(--lumo-body-text-color);
1949
1949
  font-size: var(--lumo-font-size-m);
@@ -1986,15 +1986,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1986
1986
  color: var(--lumo-secondary-text-color);
1987
1987
  }
1988
1988
  }
1989
- `;g("vaadin-checkbox-group",[Wi,Rn,Hu],{moduleId:"lumo-checkbox-group"});/**
1989
+ `;g("vaadin-checkbox-group",[Wi,$n,Uu],{moduleId:"lumo-checkbox-group"});/**
1990
1990
  * @license
1991
1991
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
1992
1992
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1993
- */const Uu=o=>class extends br(Ne(Je(o))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new ve(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const r=this.__checkboxes.map(i=>i.inputElement);this._tooltipController.setAriaTarget(r)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Oi(e,({addedNodes:t,removedNodes:r})=>{const i=this.__filterCheckboxes(t),a=this.__filterCheckboxes(r);i.forEach(this.__registerCheckbox),a.forEach(this.__unregisterCheckbox);const n=this.__checkboxes.map(s=>s.inputElement);this._tooltipController.setAriaTarget(n),this.__warnOfCheckboxesWithoutValue(i)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(t=>{const{value:r}=t;return!t.hasAttribute("value")&&(!r||r==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),!(!e&&t===void 0)&&t!==e&&this.__checkboxes.forEach(r=>{r.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&e.length===0&&t===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(r=>{r.checked=e&&e.includes(r.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(r=>{r.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
1993
+ */const Wu=i=>class extends br(Ne(Je(i))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new ve(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const r=this.__checkboxes.map(o=>o.inputElement);this._tooltipController.setAriaTarget(r)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Oi(e,({addedNodes:t,removedNodes:r})=>{const o=this.__filterCheckboxes(t),a=this.__filterCheckboxes(r);o.forEach(this.__registerCheckbox),a.forEach(this.__unregisterCheckbox);const n=this.__checkboxes.map(s=>s.inputElement);this._tooltipController.setAriaTarget(n),this.__warnOfCheckboxesWithoutValue(o)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(t=>{const{value:r}=t;return!t.hasAttribute("value")&&(!r||r==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),!(!e&&t===void 0)&&t!==e&&this.__checkboxes.forEach(r=>{r.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&e.length===0&&t===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(r=>{r.checked=e&&e.includes(r.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(r=>{r.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
1994
1994
  * @license
1995
1995
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
1996
1996
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1997
- */const Wu=f`
1997
+ */const qu=f`
1998
1998
  :host {
1999
1999
  display: inline-flex;
2000
2000
  }
@@ -2027,7 +2027,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2027
2027
  * @license
2028
2028
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
2029
2029
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2030
- */g("vaadin-checkbox-group",Wu,{moduleId:"vaadin-checkbox-group-styles"});class qu extends Uu(oe(z(k))){static get is(){return"vaadin-checkbox-group"}static get template(){return C`
2030
+ */g("vaadin-checkbox-group",qu,{moduleId:"vaadin-checkbox-group-styles"});class Yu extends Wu(oe(z(k))){static get is(){return"vaadin-checkbox-group"}static get template(){return C`
2031
2031
  <div class="vaadin-group-field-container">
2032
2032
  <div part="label">
2033
2033
  <slot name="label"></slot>
@@ -2048,7 +2048,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2048
2048
  </div>
2049
2049
 
2050
2050
  <slot name="tooltip"></slot>
2051
- `}}y(qu);/**
2051
+ `}}y(Yu);/**
2052
2052
  * @license
2053
2053
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2054
2054
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2151,7 +2151,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2151
2151
  opacity: 0;
2152
2152
  }
2153
2153
  }
2154
- `;g("",yr,{moduleId:"lumo-menu-overlay-core"});const Yu=f`
2154
+ `;g("",yr,{moduleId:"lumo-menu-overlay-core"});const ju=f`
2155
2155
  /* Small viewport (bottom sheet) styles */
2156
2156
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
2157
2157
  @media (max-width: 450px), (max-height: 450px) {
@@ -2213,7 +2213,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2213
2213
  transform: translateY(150%);
2214
2214
  }
2215
2215
  }
2216
- `,qi=[Ze,yr,Yu];g("",qi,{moduleId:"lumo-menu-overlay"});const ju=f`
2216
+ `,qi=[Ze,yr,ju];g("",qi,{moduleId:"lumo-menu-overlay"});const Gu=f`
2217
2217
  [part='overlay'] {
2218
2218
  /*
2219
2219
  Width:
@@ -2258,7 +2258,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2258
2258
  max-height: 70vh;
2259
2259
  }
2260
2260
  }
2261
- `;g("vaadin-date-picker-overlay",[qi,ju],{moduleId:"lumo-date-picker-overlay"});const $n=f`
2261
+ `;g("vaadin-date-picker-overlay",[qi,Gu],{moduleId:"lumo-date-picker-overlay"});const Hn=f`
2262
2262
  :host {
2263
2263
  /* Sizing */
2264
2264
  --lumo-button-size: var(--lumo-size-m);
@@ -2534,7 +2534,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2534
2534
  margin-left: 0;
2535
2535
  margin-right: 0;
2536
2536
  }
2537
- `;g("vaadin-button",$n,{moduleId:"lumo-button"});g("vaadin-date-picker-year",f`
2537
+ `;g("vaadin-button",Hn,{moduleId:"lumo-button"});g("vaadin-date-picker-year",f`
2538
2538
  :host([current]) [part='year-number'] {
2539
2539
  color: var(--lumo-primary-text-color);
2540
2540
  }
@@ -3068,7 +3068,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3068
3068
  * @license
3069
3069
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3070
3070
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3071
- */const Gu=f`
3071
+ */const Ku=f`
3072
3072
  :host {
3073
3073
  --lumo-text-field-size: var(--lumo-size-m);
3074
3074
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -3199,7 +3199,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3199
3199
  [part='clear-button']::before {
3200
3200
  content: var(--lumo-icons-cross);
3201
3201
  }
3202
- `,Le=[Wi,Yi,Rn,Gu];g("",Le,{moduleId:"lumo-input-field-shared-styles"});const Ku=f`
3202
+ `,Le=[Wi,Yi,$n,Ku];g("",Le,{moduleId:"lumo-input-field-shared-styles"});const Xu=f`
3203
3203
  [part='toggle-button']::before {
3204
3204
  content: var(--lumo-icons-calendar);
3205
3205
  }
@@ -3221,15 +3221,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3221
3221
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
3222
3222
  --_lumo-text-field-overflow-mask-image: none;
3223
3223
  }
3224
- `;g("vaadin-date-picker",[Le,Ku],{moduleId:"lumo-date-picker"});/**
3224
+ `;g("vaadin-date-picker",[Le,Xu],{moduleId:"lumo-date-picker"});/**
3225
3225
  * @license
3226
3226
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3227
3227
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3228
- */const Xu=o=>class extends o{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}};/**
3228
+ */const Qu=i=>class extends i{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}};/**
3229
3229
  * @license
3230
3230
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3231
3231
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3232
- */const Qu=f`
3232
+ */const Ju=f`
3233
3233
  :host {
3234
3234
  display: flex;
3235
3235
  align-items: center;
@@ -3298,11 +3298,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3298
3298
  * @license
3299
3299
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3300
3300
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3301
- */g("vaadin-input-container",Qu,{moduleId:"vaadin-input-container-styles"});class Hn extends Xu(z(ie(k))){static get is(){return"vaadin-input-container"}static get template(){return C`
3301
+ */g("vaadin-input-container",Ju,{moduleId:"vaadin-input-container-styles"});class Un extends Qu(z(ie(k))){static get is(){return"vaadin-input-container"}static get template(){return C`
3302
3302
  <slot name="prefix"></slot>
3303
3303
  <slot></slot>
3304
3304
  <slot name="suffix"></slot>
3305
- `}}y(Hn);/**
3305
+ `}}y(Un);/**
3306
3306
  * @license
3307
3307
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3308
3308
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3373,55 +3373,55 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3373
3373
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3374
3374
  Code distributed by Google as part of the polymer project is also
3375
3375
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3376
- */let ci=!1,Ju=[],Un=[];function Zu(){ci=!0,requestAnimationFrame(function(){ci=!1,ep(Ju),setTimeout(function(){tp(Un)})})}function ep(o){for(;o.length;)Wn(o.shift())}function tp(o){for(let e=0,t=o.length;e<t;e++)Wn(o.shift())}function Wn(o){const e=o[0],t=o[1],r=o[2];try{t.apply(e,r)}catch(i){setTimeout(()=>{throw i})}}function ji(o,e,t){ci||Zu(),Un.push([o,e,t])}/**
3376
+ */let ci=!1,Zu=[],Wn=[];function ep(){ci=!0,requestAnimationFrame(function(){ci=!1,tp(Zu),setTimeout(function(){rp(Wn)})})}function tp(i){for(;i.length;)qn(i.shift())}function rp(i){for(let e=0,t=i.length;e<t;e++)qn(i.shift())}function qn(i){const e=i[0],t=i[1],r=i[2];try{t.apply(e,r)}catch(o){setTimeout(()=>{throw o})}}function ji(i,e,t){ci||ep(),Wn.push([i,e,t])}/**
3377
3377
  * @license
3378
3378
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3379
3379
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3380
- */const wr=o=>o.test(navigator.userAgent),hi=o=>o.test(navigator.platform),rp=o=>o.test(navigator.vendor);wr(/Android/u);wr(/Chrome/u)&&rp(/Google Inc/u);wr(/Firefox/u);const ip=hi(/^iPad/u)||hi(/^Mac/u)&&navigator.maxTouchPoints>1,op=hi(/^iPhone/u),Gi=op||ip,ap=wr(/^((?!chrome|android).)*safari/iu),ui=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(o){return!1}})();/**
3380
+ */const wr=i=>i.test(navigator.userAgent),hi=i=>i.test(navigator.platform),ip=i=>i.test(navigator.vendor);wr(/Android/u);wr(/Chrome/u)&&ip(/Google Inc/u);wr(/Firefox/u);const op=hi(/^iPad/u)||hi(/^Mac/u)&&navigator.maxTouchPoints>1,ap=hi(/^iPhone/u),Gi=ap||op,np=wr(/^((?!chrome|android).)*safari/iu),ui=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(i){return!1}})();/**
3381
3381
  * @license
3382
3382
  * Copyright (c) 2017 Anton Korzunov
3383
3383
  * SPDX-License-Identifier: MIT
3384
- */let Be=new WeakMap,Ut=new WeakMap,Wt={},Br=0;const da=o=>o&&o.nodeType===Node.ELEMENT_NODE,Vr=(...o)=>{console.error(`Error: ${o.join(" ")}. Skip setting aria-hidden.`)},np=(o,e)=>da(o)?e.map(t=>{if(!da(t))return Vr(t,"is not a valid element"),null;let r=t;for(;r&&r!==o;){if(o.contains(r))return t;r=r.getRootNode().host}return Vr(t,"is not contained inside",o),null}).filter(t=>!!t):(Vr(o,"is not a valid element"),[]),sp=(o,e,t,r)=>{const i=np(e,Array.isArray(o)?o:[o]);Wt[t]||(Wt[t]=new WeakMap);const a=Wt[t],n=[],s=new Set,l=new Set(i),d=h=>{if(!h||s.has(h))return;s.add(h);const u=h.assignedSlot;u&&d(u),d(h.parentNode||h.host)};i.forEach(d);const c=h=>{if(!h||l.has(h))return;const u=h.shadowRoot;(u?[...h.children,...u.children]:[...h.children]).forEach(p=>{if(!["template","script","style"].includes(p.localName))if(s.has(p))c(p);else{const b=p.getAttribute(r),N=b!==null&&b!=="false",D=(Be.get(p)||0)+1,O=(a.get(p)||0)+1;Be.set(p,D),a.set(p,O),n.push(p),D===1&&N&&Ut.set(p,!0),O===1&&p.setAttribute(t,"true"),N||p.setAttribute(r,"true")}})};return c(e),s.clear(),Br+=1,()=>{n.forEach(h=>{const u=Be.get(h)-1,p=a.get(h)-1;Be.set(h,u),a.set(h,p),u||(Ut.has(h)?Ut.delete(h):h.removeAttribute(r)),p||h.removeAttribute(t)}),Br-=1,Br||(Be=new WeakMap,Be=new WeakMap,Ut=new WeakMap,Wt={})}},qn=(o,e=document.body,t="data-aria-hidden")=>{const r=Array.from(Array.isArray(o)?o:[o]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),sp(r,e,t,"aria-hidden")};/**
3384
+ */let Be=new WeakMap,Ut=new WeakMap,Wt={},Br=0;const ca=i=>i&&i.nodeType===Node.ELEMENT_NODE,Vr=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},sp=(i,e)=>ca(i)?e.map(t=>{if(!ca(t))return Vr(t,"is not a valid element"),null;let r=t;for(;r&&r!==i;){if(i.contains(r))return t;r=r.getRootNode().host}return Vr(t,"is not contained inside",i),null}).filter(t=>!!t):(Vr(i,"is not a valid element"),[]),lp=(i,e,t,r)=>{const o=sp(e,Array.isArray(i)?i:[i]);Wt[t]||(Wt[t]=new WeakMap);const a=Wt[t],n=[],s=new Set,l=new Set(o),d=h=>{if(!h||s.has(h))return;s.add(h);const u=h.assignedSlot;u&&d(u),d(h.parentNode||h.host)};o.forEach(d);const c=h=>{if(!h||l.has(h))return;const u=h.shadowRoot;(u?[...h.children,...u.children]:[...h.children]).forEach(p=>{if(!["template","script","style"].includes(p.localName))if(s.has(p))c(p);else{const b=p.getAttribute(r),N=b!==null&&b!=="false",D=(Be.get(p)||0)+1,O=(a.get(p)||0)+1;Be.set(p,D),a.set(p,O),n.push(p),D===1&&N&&Ut.set(p,!0),O===1&&p.setAttribute(t,"true"),N||p.setAttribute(r,"true")}})};return c(e),s.clear(),Br+=1,()=>{n.forEach(h=>{const u=Be.get(h)-1,p=a.get(h)-1;Be.set(h,u),a.set(h,p),u||(Ut.has(h)?Ut.delete(h):h.removeAttribute(r)),p||h.removeAttribute(t)}),Br-=1,Br||(Be=new WeakMap,Be=new WeakMap,Ut=new WeakMap,Wt={})}},Yn=(i,e=document.body,t="data-aria-hidden")=>{const r=Array.from(Array.isArray(i)?i:[i]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),lp(r,e,t,"aria-hidden")};/**
3385
3385
  * @license
3386
3386
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3387
3387
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3388
- */class lp{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=qn(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
3388
+ */class dp{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=Yn(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
3389
3389
  * @license
3390
3390
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3391
3391
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3392
- */class dp{saveFocus(e){this.focusNode=e||si()}restoreFocus(e){const t=this.focusNode;if(!t)return;const r=e?e.preventScroll:!1;si()===document.body?setTimeout(()=>t.focus({preventScroll:r})):t.focus({preventScroll:r}),this.focusNode=null}}/**
3392
+ */class cp{saveFocus(e){this.focusNode=e||si()}restoreFocus(e){const t=this.focusNode;if(!t)return;const r=e?e.preventScroll:!1;si()===document.body?setTimeout(()=>t.focus({preventScroll:r})):t.focus({preventScroll:r}),this.focusNode=null}}/**
3393
3393
  * @license
3394
3394
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3395
3395
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3396
- */const Rr=[];class cp{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Du(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Vi).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Rr.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Rr.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Rr).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,r=e?-1:1,i=this.__focusedElementIndex,a=(t.length+i+r)%t.length,n=t[a];n.focus(),n.localName==="input"&&n.select()}}/**
3396
+ */const Rr=[];class hp{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Ou(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Vi).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Rr.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Rr.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Rr).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,r=e?-1:1,o=this.__focusedElementIndex,a=(t.length+o+r)%t.length,n=t[a];n.focus(),n.localName==="input"&&n.select()}}/**
3397
3397
  * @license
3398
3398
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3399
3399
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3400
- */const hp=o=>class extends he(o){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new lp(this),this.__focusTrapController=new cp(this),this.__focusRestorationController=new dp}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 e=!vr();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=si();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const r=e.ownerDocument;for(;t&&t!==r&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
3400
+ */const up=i=>class extends he(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new dp(this),this.__focusTrapController=new hp(this),this.__focusRestorationController=new cp}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 e=!vr();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=si();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const r=e.ownerDocument;for(;t&&t!==r&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
3401
3401
  * @license
3402
3402
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3403
3403
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3404
- */const Yn=()=>Array.from(document.body.children).filter(o=>o instanceof HTMLElement&&o._hasOverlayStackMixin&&!o.hasAttribute("closing")).sort((o,e)=>o.__zIndex-e.__zIndex||0),pi=()=>Yn().filter(o=>o.$.overlay),up=o=>o===pi().pop(),jn=o=>class extends o{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return up(this)}bringToFront(){let e="";const t=Yn().filter(r=>r!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),pi().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=pi();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
3404
+ */const jn=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,e)=>i.__zIndex-e.__zIndex||0),pi=()=>jn().filter(i=>i.$.overlay),pp=i=>i===pi().pop(),Gn=i=>class extends i{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return pp(this)}bringToFront(){let e="";const t=jn().filter(r=>r!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),pi().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=pi();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
3405
3405
  * @license
3406
3406
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3407
3407
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3408
- */const zt=o=>class extends hp(jn(o)){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),Gi&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight;t&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,r,i){const a=this._oldOwner!==t||this._oldModel!==r;this._oldModel=r,this._oldOwner=t;const n=this._oldRenderer!==e,s=this._oldRenderer!==void 0;this._oldRenderer=e;const l=this._oldOpened!==i;this._oldOpened=i,n&&s&&(this.innerHTML="",delete this._$litPart$),i&&e&&(n||l||a)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),ji(this,()=>{this._trapFocus();const r=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(r)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return e.getPropertyValue("display")!=="none"&&t&&t!=="none"}_enqueueAnimation(e,t){const r=`__${e}Handler`,i=a=>{a&&a.target!==this||(t(),this.removeEventListener("animationend",i),delete this[r])};this[r]=i,this.addEventListener("animationend",i)}_flushAnimation(e){const t=`__${e}Handler`;typeof this[t]=="function"&&this[t]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}};/**
3408
+ */const zt=i=>class extends up(Gn(i)){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),Gi&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight;t&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,r,o){const a=this._oldOwner!==t||this._oldModel!==r;this._oldModel=r,this._oldOwner=t;const n=this._oldRenderer!==e,s=this._oldRenderer!==void 0;this._oldRenderer=e;const l=this._oldOpened!==o;this._oldOpened=o,n&&s&&(this.innerHTML="",delete this._$litPart$),o&&e&&(n||l||a)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),ji(this,()=>{this._trapFocus();const r=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(r)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return e.getPropertyValue("display")!=="none"&&t&&t!=="none"}_enqueueAnimation(e,t){const r=`__${e}Handler`,o=a=>{a&&a.target!==this||(t(),this.removeEventListener("animationend",o),delete this[r])};this[r]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const t=`__${e}Handler`;typeof this[t]=="function"&&this[t]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}};/**
3409
3409
  * @license
3410
3410
  * Copyright (c) 2024 Vaadin Ltd.
3411
3411
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3412
- */function pp(o,e){let t=null;const r=document.documentElement;function i(){t&&t.disconnect(),t=null}function a(n=!1,s=1){i();const{left:l,top:d,width:c,height:h}=o.getBoundingClientRect();if(n||e(),!c||!h)return;const u=Math.floor(d),p=Math.floor(r.clientWidth-(l+c)),b=Math.floor(r.clientHeight-(d+h)),N=Math.floor(l),D={rootMargin:`${-u}px ${-p}px ${-b}px ${-N}px`,threshold:Math.max(0,Math.min(1,s))||1};let O=!0;function A(U){let W=U[0].intersectionRatio;if(W!==s){if(!O)return a();W===0&&(W=1e-7),a(!1,W)}O=!1}t=new IntersectionObserver(A,D),t.observe(o)}return a(!0),i}/**
3412
+ */function mp(i,e){let t=null;const r=document.documentElement;function o(){t&&t.disconnect(),t=null}function a(n=!1,s=1){o();const{left:l,top:d,width:c,height:h}=i.getBoundingClientRect();if(n||e(),!c||!h)return;const u=Math.floor(d),p=Math.floor(r.clientWidth-(l+c)),b=Math.floor(r.clientHeight-(d+h)),N=Math.floor(l),D={rootMargin:`${-u}px ${-p}px ${-b}px ${-N}px`,threshold:Math.max(0,Math.min(1,s))||1};let O=!0;function A(U){let W=U[0].intersectionRatio;if(W!==s){if(!O)return a();W===0&&(W=1e-7),a(!1,W)}O=!1}t=new IntersectionObserver(A,D),t.observe(i)}return a(!0),o}/**
3413
3413
  * @license
3414
3414
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3415
3415
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3416
- */const $r={start:"top",end:"bottom"},Hr={start:"left",end:"right"},ca=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),Ki=o=>class extends o{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=cu(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=pp(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,ca.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,ca.observe(t))),e){const r=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(i=>{this.__margins[i]=parseInt(r[i],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const r=this.__isRTL,i=this.__shouldAlignStartHorizontally(e,r),a=!r&&i||r&&!i;this.style.alignItems=a?"flex-start":"flex-end";const n=this.getBoundingClientRect(),s=this.__calculatePositionInOneDimension(e,n,this.noVerticalOverlap,$r,this,t),l=this.__calculatePositionInOneDimension(e,n,this.noHorizontalOverlap,Hr,this,i);Object.assign(this.style,s,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!a),this.toggleAttribute("start-aligned",a)}__shouldAlignStartHorizontally(e,t){const r=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const i=Math.min(window.innerWidth,document.documentElement.clientWidth),a=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,r,i,this.__margins,a,this.noHorizontalOverlap,Hr)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const r=Math.min(window.innerHeight,document.documentElement.clientHeight),i=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,r,this.__margins,i,this.noVerticalOverlap,$r)}__shouldAlignStart(e,t,r,i,a,n,s){const l=r-e[n?s.end:s.start]-i[s.end],d=e[n?s.start:s.end]-i[s.start],c=a?l:d,h=c>(a?d:l)||c>t;return a===h}__adjustBottomProperty(e,t,r){let i;if(e===t.end){if(t.end===$r.end){const a=Math.min(window.innerHeight,document.documentElement.clientHeight);if(r>a&&this.__oldViewportHeight){const n=this.__oldViewportHeight-a;i=r-n}this.__oldViewportHeight=a}if(t.end===Hr.end){const a=Math.min(window.innerWidth,document.documentElement.clientWidth);if(r>a&&this.__oldViewportWidth){const n=this.__oldViewportWidth-a;i=r-n}this.__oldViewportWidth=a}}return i}__calculatePositionInOneDimension(e,t,r,i,a,n){const s=n?i.start:i.end,l=n?i.end:i.start,d=parseFloat(a.style[s]||getComputedStyle(a)[s]),c=this.__adjustBottomProperty(s,i,d),h=t[n?i.start:i.end]-e[r===n?i.end:i.start],u=c?`${c}px`:`${d+h*(n?-1:1)}px`;return{[s]:u,[l]:""}}};/**
3416
+ */const $r={start:"top",end:"bottom"},Hr={start:"left",end:"right"},ha=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),Ki=i=>class extends i{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=hu(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=mp(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,ha.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,ha.observe(t))),e){const r=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(r[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const r=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,r),a=!r&&o||r&&!o;this.style.alignItems=a?"flex-start":"flex-end";const n=this.getBoundingClientRect(),s=this.__calculatePositionInOneDimension(e,n,this.noVerticalOverlap,$r,this,t),l=this.__calculatePositionInOneDimension(e,n,this.noHorizontalOverlap,Hr,this,o);Object.assign(this.style,s,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!a),this.toggleAttribute("start-aligned",a)}__shouldAlignStartHorizontally(e,t){const r=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),a=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,r,o,this.__margins,a,this.noHorizontalOverlap,Hr)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const r=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,r,this.__margins,o,this.noVerticalOverlap,$r)}__shouldAlignStart(e,t,r,o,a,n,s){const l=r-e[n?s.end:s.start]-o[s.end],d=e[n?s.start:s.end]-o[s.start],c=a?l:d,h=c>(a?d:l)||c>t;return a===h}__adjustBottomProperty(e,t,r){let o;if(e===t.end){if(t.end===$r.end){const a=Math.min(window.innerHeight,document.documentElement.clientHeight);if(r>a&&this.__oldViewportHeight){const n=this.__oldViewportHeight-a;o=r-n}this.__oldViewportHeight=a}if(t.end===Hr.end){const a=Math.min(window.innerWidth,document.documentElement.clientWidth);if(r>a&&this.__oldViewportWidth){const n=this.__oldViewportWidth-a;o=r-n}this.__oldViewportWidth=a}}return o}__calculatePositionInOneDimension(e,t,r,o,a,n){const s=n?o.start:o.end,l=n?o.end:o.start,d=parseFloat(a.style[s]||getComputedStyle(a)[s]),c=this.__adjustBottomProperty(s,o,d),h=t[n?o.start:o.end]-e[r===n?o.end:o.start],u=c?`${c}px`:`${d+h*(n?-1:1)}px`;return{[s]:u,[l]:""}}};/**
3417
3417
  * @license
3418
3418
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
3419
3419
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3420
- */const mp=o=>class extends Ki(zt(o)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Bi(e.composedPath()[0])&&e.preventDefault()}};/**
3420
+ */const fp=i=>class extends Ki(zt(i)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Bi(e.composedPath()[0])&&e.preventDefault()}};/**
3421
3421
  * @license
3422
3422
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3423
3423
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3424
- */const fp=f`
3424
+ */const _p=f`
3425
3425
  [part='overlay'] {
3426
3426
  display: flex;
3427
3427
  flex: auto;
@@ -3440,18 +3440,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3440
3440
  * @license
3441
3441
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3442
3442
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3443
- */g("vaadin-date-picker-overlay",[Mt,fp],{moduleId:"vaadin-date-picker-overlay-styles"});class _p extends mp(ie(z(k))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return C`
3443
+ */g("vaadin-date-picker-overlay",[Mt,_p],{moduleId:"vaadin-date-picker-overlay-styles"});class vp extends fp(ie(z(k))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return C`
3444
3444
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
3445
3445
  <div part="overlay" id="overlay">
3446
3446
  <div part="content" id="content">
3447
3447
  <slot></slot>
3448
3448
  </div>
3449
3449
  </div>
3450
- `}}y(_p);/**
3450
+ `}}y(vp);/**
3451
3451
  * @license
3452
3452
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3453
3453
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3454
- */const Gn=f`
3454
+ */const Kn=f`
3455
3455
  :host {
3456
3456
  display: inline-block;
3457
3457
  position: relative;
@@ -3511,7 +3511,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3511
3511
  outline-color: GrayText;
3512
3512
  }
3513
3513
  }
3514
- `,vp=o=>o`
3514
+ `,gp=i=>i`
3515
3515
  <div class="vaadin-button-container">
3516
3516
  <span part="prefix" aria-hidden="true">
3517
3517
  <slot name="prefix"></slot>
@@ -3528,15 +3528,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3528
3528
  * @license
3529
3529
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3530
3530
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3531
- */const Xi=o=>class extends Li(Ln(Ne(o))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
3531
+ */const Xi=i=>class extends Li(Fn(Ne(i))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
3532
3532
  * @license
3533
3533
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3534
3534
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3535
- */g("vaadin-button",Gn,{moduleId:"vaadin-button-styles"});class gp extends Xi(oe(z(he(k)))){static get is(){return"vaadin-button"}static get template(){return vp(C)}ready(){super.ready(),this._tooltipController=new ve(this),this.addController(this._tooltipController)}}y(gp);/**
3535
+ */g("vaadin-button",Kn,{moduleId:"vaadin-button-styles"});class bp extends Xi(oe(z(he(k)))){static get is(){return"vaadin-button"}static get template(){return gp(C)}ready(){super.ready(),this._tooltipController=new ve(this),this.addController(this._tooltipController)}}y(bp);/**
3536
3536
  * @license
3537
3537
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3538
3538
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3539
- */function bp(o){let e=o.getDay();e===0&&(e=7);const t=4-e,r=new Date(o.getTime()+t*24*3600*1e3),i=new Date(0,0);i.setFullYear(r.getFullYear());const a=r.getTime()-i.getTime(),n=Math.round(a/(24*3600*1e3));return Math.floor(n/7+1)}function mi(o){const e=new Date(o);return e.setHours(0,0,0,0),e}function fe(o,e,t=mi){return o instanceof Date&&e instanceof Date&&t(o).getTime()===t(e).getTime()}function Qi(o){return{day:o.getDate(),month:o.getMonth(),year:o.getFullYear()}}function Ke(o,e,t,r){let i=!1;if(typeof r=="function"&&o){const a=Qi(o);i=r(a)}return(!e||o>=e)&&(!t||o<=t)&&!i}function Kn(o,e){return e.filter(t=>t!==void 0).reduce((t,r)=>{if(!r)return t;if(!t)return r;const i=Math.abs(o.getTime()-r.getTime()),a=Math.abs(t.getTime()-o.getTime());return i<a?r:t})}function Xn(o){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(o)+e.getMonth()),t}function yp(o,e,t=0,r=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let i=e+Math.floor(o.getFullYear()/100)*100;return o<new Date(i-50,t,r)?i-=100:o>new Date(i+50,t,r)&&(i+=100),i}function ct(o){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(o);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function wp(o){const e=(l,d="00")=>(d+l).substr((d+l).length-d.length);let t="",r="0000",i=o.year;i<0?(i=-i,t="-",r="000000"):o.year>=1e4&&(t="+",r="000000");const a=t+e(i,r),n=e(o.month+1),s=e(o.day);return[a,n,s].join("-")}function xp(o){return o instanceof Date?wp({year:o.getFullYear(),month:o.getMonth(),day:o.getDate()}):""}/**
3539
+ */function yp(i){let e=i.getDay();e===0&&(e=7);const t=4-e,r=new Date(i.getTime()+t*24*3600*1e3),o=new Date(0,0);o.setFullYear(r.getFullYear());const a=r.getTime()-o.getTime(),n=Math.round(a/(24*3600*1e3));return Math.floor(n/7+1)}function mi(i){const e=new Date(i);return e.setHours(0,0,0,0),e}function fe(i,e,t=mi){return i instanceof Date&&e instanceof Date&&t(i).getTime()===t(e).getTime()}function Qi(i){return{day:i.getDate(),month:i.getMonth(),year:i.getFullYear()}}function Ke(i,e,t,r){let o=!1;if(typeof r=="function"&&i){const a=Qi(i);o=r(a)}return(!e||i>=e)&&(!t||i<=t)&&!o}function Xn(i,e){return e.filter(t=>t!==void 0).reduce((t,r)=>{if(!r)return t;if(!t)return r;const o=Math.abs(i.getTime()-r.getTime()),a=Math.abs(t.getTime()-i.getTime());return o<a?r:t})}function Qn(i){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(i)+e.getMonth()),t}function wp(i,e,t=0,r=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let o=e+Math.floor(i.getFullYear()/100)*100;return i<new Date(o-50,t,r)?o-=100:i>new Date(o+50,t,r)&&(o+=100),o}function ct(i){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(i);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function xp(i){const e=(l,d="00")=>(d+l).substr((d+l).length-d.length);let t="",r="0000",o=i.year;o<0?(o=-o,t="-",r="000000"):i.year>=1e4&&(t="+",r="000000");const a=t+e(o,r),n=e(i.month+1),s=e(i.day);return[a,n,s].join("-")}function Cp(i){return i instanceof Date?xp({year:i.getFullYear(),month:i.getMonth(),day:i.getDate()}):""}/**
3540
3540
  @license
3541
3541
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3542
3542
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3544,7 +3544,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3544
3544
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3545
3545
  Code distributed by Google as part of the polymer project is also
3546
3546
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3547
- */class cr{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,At.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),At.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(e,t,r){return e instanceof cr?e._cancelAsync():e=new cr,e.setConfig(t,r),e}}let At=new Set;const Cp=function(o){At.add(o)},kp=function(){const o=!!At.size;return At.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),o};/**
3547
+ */class cr{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,At.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),At.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(e,t,r){return e instanceof cr?e._cancelAsync():e=new cr,e.setConfig(t,r),e}}let At=new Set;const kp=function(i){At.add(i)},Ep=function(){const i=!!At.size;return At.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i};/**
3548
3548
  @license
3549
3549
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3550
3550
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3552,11 +3552,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3552
3552
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3553
3553
  Code distributed by Google as part of the polymer project is also
3554
3554
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3555
- */const Ji=function(){let o,e;do o=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=kp();while(o||e)};/**
3555
+ */const Ji=function(){let i,e;do i=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=Ep();while(i||e)};/**
3556
3556
  * @license
3557
3557
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3558
3558
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3559
- */const Qn=document.createElement("template");Qn.innerHTML=`
3559
+ */const Jn=document.createElement("template");Jn.innerHTML=`
3560
3560
  <style>
3561
3561
  :host {
3562
3562
  display: block;
@@ -3606,11 +3606,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3606
3606
  <div class="buffer"></div>
3607
3607
  <div id="fullHeight"></div>
3608
3608
  </div>
3609
- `;class Jn extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Qn.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const r=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(r)}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(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${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()),Ji()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,r=e>this._buffers[1].translateY+t,i=e<this._buffers[0].translateY+t;(r||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=re.debounce(this._debouncerScrollFinish,we.after(200),()=>{const a=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],a)&&!this._isVisible(this._buffers[1],a)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=re.debounce(this._debouncerUpdateClones,we.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let r=0;r<this.bufferSize;r++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const a=`vaadin-infinite-scroller-item-content-${It()}`,n=document.createElement("slot");n.setAttribute("name",a),n._itemWrapper=i,t.appendChild(n),i.setAttribute("slot",a),this.appendChild(i),this._isVisible(i,e)&&this._ensureStampedInstance(i)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(r=>{e.instance[r]=t[r]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,i)=>{if(!r.updated){const a=this._firstIndex+this.bufferSize*i;[...r.children].forEach((n,s)=>{const l=n._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,a+s)}),r.updated=!0}})}_isVisible(e,t){const r=e.getBoundingClientRect();return r.bottom>t.top&&r.top<t.bottom}}/**
3609
+ `;class Zn extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Jn.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const r=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(r)}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(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${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()),Ji()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,r=e>this._buffers[1].translateY+t,o=e<this._buffers[0].translateY+t;(r||o)&&(this._translateBuffer(o),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=re.debounce(this._debouncerScrollFinish,we.after(200),()=>{const a=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],a)&&!this._isVisible(this._buffers[1],a)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=re.debounce(this._debouncerUpdateClones,we.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let r=0;r<this.bufferSize;r++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const a=`vaadin-infinite-scroller-item-content-${It()}`,n=document.createElement("slot");n.setAttribute("name",a),n._itemWrapper=o,t.appendChild(n),o.setAttribute("slot",a),this.appendChild(o),this._isVisible(o,e)&&this._ensureStampedInstance(o)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(r=>{e.instance[r]=t[r]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,o)=>{if(!r.updated){const a=this._firstIndex+this.bufferSize*o;[...r.children].forEach((n,s)=>{const l=n._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,a+s)}),r.updated=!0}})}_isVisible(e,t){const r=e.getBoundingClientRect();return r.bottom>t.top&&r.top<t.bottom}}/**
3610
3610
  * @license
3611
3611
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3612
3612
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3613
- */const Zn=document.createElement("template");Zn.innerHTML=`
3613
+ */const es=document.createElement("template");es.innerHTML=`
3614
3614
  <style>
3615
3615
  :host {
3616
3616
  --vaadin-infinite-scroller-item-height: 270px;
@@ -3622,11 +3622,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3622
3622
  height: 100%;
3623
3623
  }
3624
3624
  </style>
3625
- `;class Ep extends Jn{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Zn.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Xn(t)}}y(Ep);/**
3625
+ `;class Tp extends Zn{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(es.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Qn(t)}}y(Tp);/**
3626
3626
  * @license
3627
3627
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3628
3628
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3629
- */const es=document.createElement("template");es.innerHTML=`
3629
+ */const ts=document.createElement("template");ts.innerHTML=`
3630
3630
  <style>
3631
3631
  :host {
3632
3632
  --vaadin-infinite-scroller-item-height: 80px;
@@ -3660,15 +3660,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3660
3660
  border-left-color: #000;
3661
3661
  }
3662
3662
  </style>
3663
- `;class Tp extends Jn{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(es.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,r=new Date(t);return r.setFullYear(parseInt(e)+t.getFullYear()),r.getFullYear()}}y(Tp);/**
3663
+ `;class Ap extends Zn{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(ts.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,r=new Date(t);return r.setFullYear(parseInt(e)+t.getFullYear()),r.getFullYear()}}y(Ap);/**
3664
3664
  * @license
3665
3665
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3666
3666
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3667
- */const Ap=o=>class extends o{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
3667
+ */const Pp=i=>class extends i{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
3668
3668
  * @license
3669
3669
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3670
3670
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3671
- */class Pp extends z(Ap(k)){static get is(){return"vaadin-date-picker-year"}static get template(){return C`
3671
+ */class Ip extends z(Pp(k)){static get is(){return"vaadin-date-picker-year"}static get template(){return C`
3672
3672
  <style>
3673
3673
  :host {
3674
3674
  display: block;
@@ -3677,7 +3677,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3677
3677
  </style>
3678
3678
  <div part="year-number">[[year]]</div>
3679
3679
  <div part="year-separator" aria-hidden="true"></div>
3680
- `}}y(Pp);/**
3680
+ `}}y(Ip);/**
3681
3681
  @license
3682
3682
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3683
3683
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3685,7 +3685,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3685
3685
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3686
3686
  Code distributed by Google as part of the polymer project is also
3687
3687
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3688
- */function Zi(o,e,t,r,i){let a;i&&(a=typeof t=="object"&&t!==null,a&&(r=o.__dataTemp[e]));let n=r!==t&&(r===r||t===t);return a&&n&&(o.__dataTemp[e]=t),n}const eo=H(o=>{class e extends o{_shouldPropertyChange(r,i,a){return Zi(this,r,i,a,!0)}}return e}),Ip=H(o=>{class e extends o{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,i,a){return Zi(this,r,i,a,this.mutableData)}}return e});eo._mutablePropertyChange=Zi;/**
3688
+ */function Zi(i,e,t,r,o){let a;o&&(a=typeof t=="object"&&t!==null,a&&(r=i.__dataTemp[e]));let n=r!==t&&(r===r||t===t);return a&&n&&(i.__dataTemp[e]=t),n}const eo=H(i=>{class e extends i{_shouldPropertyChange(r,o,a){return Zi(this,r,o,a,!0)}}return e}),Sp=H(i=>{class e extends i{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,o,a){return Zi(this,r,o,a,this.mutableData)}}return e});eo._mutablePropertyChange=Zi;/**
3689
3689
  @license
3690
3690
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3691
3691
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3693,7 +3693,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3693
3693
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3694
3694
  Code distributed by Google as part of the polymer project is also
3695
3695
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3696
- */let fi=null;function _i(){return fi}_i.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:_i,writable:!0}});const ts=Si(_i),Sp=eo(ts);function Dp(o,e){fi=o,Object.setPrototypeOf(o,e.prototype),new e,fi=null}const Op=Si(class{});function Mp(o,e){for(let t=0;t<e.length;t++){let r=e[t];if(!!o!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)o?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(o)r.__polymerReplaced__=document.createComment("hidden-slot"),G(G(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const i=r.__polymerReplaced__;i&&G(G(i).parentNode).replaceChild(r,i)}else r.style&&(o?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=o,r._showHideChildren&&r._showHideChildren(o)}}class to extends Op{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let i=this.root.firstChild;i;i=i.nextSibling)t.push(i),i.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let r=this.__templatizeOptions;(e&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,i=>{i.model=this,r(i)});else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(e,t,r)}}_showHideChildren(e){Mp(e,this.children)}_setUnmanagedPropertyToNode(e,t,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,t,r)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}const zp=eo(to);function ha(o){let e=o.__dataHost;return e&&e._methodHost||e}function Np(o,e,t){let r=t.mutableData?zp:to;vi.mixin&&(r=vi.mixin(r));let i=class extends r{};return i.prototype.__templatizeOptions=t,i.prototype._bindTemplate(o),Bp(i,o,e,t),i}function Lp(o,e,t,r){let i=t.forwardHostProp;if(i&&e.hasHostProps){const a=o.localName=="template";let n=e.templatizeTemplateClass;if(!n){if(a){let l=t.mutableData?Sp:ts;class d extends l{}n=e.templatizeTemplateClass=d}else{const l=o.constructor;class d extends l{}n=e.templatizeTemplateClass=d}let s=e.hostProps;for(let l in s)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Fp(l,i)}),n.prototype._createNotifyingProperty("_host_"+l);Za&&r&&$p(e,t,r)}if(o.__dataProto&&Object.assign(o.__data,o.__dataProto),a)Dp(o,n),o.__dataTemp={},o.__dataPending=null,o.__dataOld=null,o._enableProperties();else{Object.setPrototypeOf(o,n.prototype);const s=e.hostProps;for(let l in s)if(l="_host_"+l,l in o){const d=o[l];delete o[l],o.__data[l]=d}}}}function Fp(o,e){return function(t,r,i){e.call(t.__templatizeOwner,r.substring(6),i[r])}}function Bp(o,e,t,r){let i=t.hostProps||{};for(let a in r.instanceProps){delete i[a];let n=r.notifyInstanceProp;n&&o.prototype._addPropertyEffect(a,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Vp(a,n)})}if(r.forwardHostProp&&e.__dataHost)for(let a in i)t.hasHostProps||(t.hasHostProps=!0),o.prototype._addPropertyEffect(a,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Rp()})}function Vp(o,e){return function(t,r,i){e.call(t.__templatizeOwner,t,r,i[r])}}function Rp(){return function(o,e,t){o.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function vi(o,e,t){if(nr&&!ha(o))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},o.__templatizeOwner)throw new Error("A <template> can only be templatized once");o.__templatizeOwner=e;let r=(e?e.constructor:to)._parseTemplate(o),i=r.templatizeInstanceClass;i||(i=Np(o,r,t),r.templatizeInstanceClass=i);const a=ha(o);Lp(o,r,t,a);let n=class extends i{};return n.prototype._methodHost=a,n.prototype.__dataHost=o,n.prototype.__templatizeOwner=e,n.prototype.__hostProps=r.hostProps,n=n,n}function $p(o,e,t){const r=t.constructor._properties,{propertyEffects:i}=o,{instanceProps:a}=e;for(let n in i)if(!r[n]&&!(a&&a[n])){const s=i[n];for(let l=0;l<s.length;l++){const{part:d}=s[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Hp(o,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=o)e=t.__dataHost;else return t;else e=G(e).parentNode;return null}/**
3696
+ */let fi=null;function _i(){return fi}_i.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:_i,writable:!0}});const rs=Si(_i),Dp=eo(rs);function Op(i,e){fi=i,Object.setPrototypeOf(i,e.prototype),new e,fi=null}const Mp=Si(class{});function zp(i,e){for(let t=0;t<e.length;t++){let r=e[t];if(!!i!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)i?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(i)r.__polymerReplaced__=document.createComment("hidden-slot"),G(G(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const o=r.__polymerReplaced__;o&&G(G(o).parentNode).replaceChild(r,o)}else r.style&&(i?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=i,r._showHideChildren&&r._showHideChildren(i)}}class to extends Mp{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let o=this.root.firstChild;o;o=o.nextSibling)t.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let r=this.__templatizeOptions;(e&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,o=>{o.model=this,r(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(e,t,r)}}_showHideChildren(e){zp(e,this.children)}_setUnmanagedPropertyToNode(e,t,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,t,r)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}const Np=eo(to);function ua(i){let e=i.__dataHost;return e&&e._methodHost||e}function Lp(i,e,t){let r=t.mutableData?Np:to;vi.mixin&&(r=vi.mixin(r));let o=class extends r{};return o.prototype.__templatizeOptions=t,o.prototype._bindTemplate(i),Vp(o,i,e,t),o}function Fp(i,e,t,r){let o=t.forwardHostProp;if(o&&e.hasHostProps){const a=i.localName=="template";let n=e.templatizeTemplateClass;if(!n){if(a){let l=t.mutableData?Dp:rs;class d extends l{}n=e.templatizeTemplateClass=d}else{const l=i.constructor;class d extends l{}n=e.templatizeTemplateClass=d}let s=e.hostProps;for(let l in s)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Bp(l,o)}),n.prototype._createNotifyingProperty("_host_"+l);en&&r&&Hp(e,t,r)}if(i.__dataProto&&Object.assign(i.__data,i.__dataProto),a)Op(i,n),i.__dataTemp={},i.__dataPending=null,i.__dataOld=null,i._enableProperties();else{Object.setPrototypeOf(i,n.prototype);const s=e.hostProps;for(let l in s)if(l="_host_"+l,l in i){const d=i[l];delete i[l],i.__data[l]=d}}}}function Bp(i,e){return function(t,r,o){e.call(t.__templatizeOwner,r.substring(6),o[r])}}function Vp(i,e,t,r){let o=t.hostProps||{};for(let a in r.instanceProps){delete o[a];let n=r.notifyInstanceProp;n&&i.prototype._addPropertyEffect(a,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Rp(a,n)})}if(r.forwardHostProp&&e.__dataHost)for(let a in o)t.hasHostProps||(t.hasHostProps=!0),i.prototype._addPropertyEffect(a,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:$p()})}function Rp(i,e){return function(t,r,o){e.call(t.__templatizeOwner,t,r,o[r])}}function $p(){return function(i,e,t){i.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function vi(i,e,t){if(nr&&!ua(i))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},i.__templatizeOwner)throw new Error("A <template> can only be templatized once");i.__templatizeOwner=e;let r=(e?e.constructor:to)._parseTemplate(i),o=r.templatizeInstanceClass;o||(o=Lp(i,r,t),r.templatizeInstanceClass=o);const a=ua(i);Fp(i,r,t,a);let n=class extends o{};return n.prototype._methodHost=a,n.prototype.__dataHost=i,n.prototype.__templatizeOwner=e,n.prototype.__hostProps=r.hostProps,n=n,n}function Hp(i,e,t){const r=t.constructor._properties,{propertyEffects:o}=i,{instanceProps:a}=e;for(let n in o)if(!r[n]&&!(a&&a[n])){const s=o[n];for(let l=0;l<s.length;l++){const{part:d}=s[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Up(i,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=i)e=t.__dataHost;else return t;else e=G(e).parentNode;return null}/**
3697
3697
  @license
3698
3698
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3699
3699
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3701,7 +3701,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3701
3701
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3702
3702
  Code distributed by Google as part of the polymer project is also
3703
3703
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3704
- */let ua=!1;function Up(){if(Ja&&!Qa){if(!ua){ua=!0;const o=document.createElement("style");o.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(o)}return!0}return!1}/**
3704
+ */let pa=!1;function Wp(){if(Za&&!Ja){if(!pa){pa=!0;const i=document.createElement("style");i.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(i)}return!0}return!1}/**
3705
3705
  @license
3706
3706
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3707
3707
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3709,15 +3709,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3709
3709
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3710
3710
  Code distributed by Google as part of the polymer project is also
3711
3711
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3712
- */const Wp=Ip(k);class pa extends Wp{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:!Vo,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}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Up()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=G(G(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){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 r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=vi(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(i,a){let n=this.__instances;for(let s=0,l;s<n.length&&(l=n[s]);s++)l.forwardHostProp(i,a)},notifyInstanceProp:function(i,a,n){if(Yc(this.as,a)){let s=i[this.itemsIndexAs];a==this.as&&(this.items[s]=n);let l=xt(this.as,`${JSCompiler_renameProperty("items",this)}.${s}`,a);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,r=this.__getMethodHost();return function(){return r[t].apply(r,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let r=0;r<t.length;r++)e.indexOf(t[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=cr.debounce(this.__renderDebouncer,t>0?Jc.after(t):cn,e.bind(this)),Cp(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ji()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),r=this.__calculateLimit(t.length);this.__updateInstances(e,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Vo||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=r;return this.__filterFn&&(t=t.filter((r,i,a)=>this.__filterFn(e[r],i,a))),this.__sortFn&&t.sort((r,i)=>this.__sortFn(e[r],e[i])),t}__calculateLimit(e){let t=e;const r=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),i=Math.max(t-r,0),this.__chunkCount=i||1):(i=Math.min(Math.max(e-r,0),this.__chunkCount),t=Math.min(r+i,e)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,r){const i=this.__itemsIdxToInstIdx={};let a;for(a=0;a<t;a++){let n=this.__instances[a],s=r[a],l=e[s];i[s]=a,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,a),n._setPendingProperty(this.itemsIndexAs,s),n._flushProperties()):this.__insertInstance(l,a,s)}for(let n=this.__instances.length-1;n>=a;n--)this.__detachAndRemoveInstance(n)}__detachInstance(e){let t=this.__instances[e];const r=G(t.root);for(let i=0;i<t.children.length;i++){let a=t.children[i];r.appendChild(a)}return t}__attachInstance(e,t){let r=this.__instances[e];t.insertBefore(r.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,r){let i={};return i[this.as]=e,i[this.indexAs]=t,i[this.itemsIndexAs]=r,new this.__ctor(i)}__insertInstance(e,t,r){const i=this.__stampInstance(e,t,r);let a=this.__instances[t+1],n=a?a.children[0]:this;return G(G(this).parentNode).insertBefore(i.root,n),this.__instances[t]=i,i}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let r=e.slice(6),i=r.indexOf("."),a=i<0?r:r.substring(0,i);if(a==parseInt(a,10)){let n=i<0?"":r.substring(i+1);this.__handleObservedPaths(n);let s=this.__itemsIdxToInstIdx[a],l=this.__instances[s];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return Hp(this.template,e)}}customElements.define(pa.is,pa);/**
3712
+ */const qp=Sp(k);class ma extends qp{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!Ro,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Wp()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=G(G(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=vi(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(o,a){let n=this.__instances;for(let s=0,l;s<n.length&&(l=n[s]);s++)l.forwardHostProp(o,a)},notifyInstanceProp:function(o,a,n){if(jc(this.as,a)){let s=o[this.itemsIndexAs];a==this.as&&(this.items[s]=n);let l=xt(this.as,`${JSCompiler_renameProperty("items",this)}.${s}`,a);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,r=this.__getMethodHost();return function(){return r[t].apply(r,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let r=0;r<t.length;r++)e.indexOf(t[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=cr.debounce(this.__renderDebouncer,t>0?Zc.after(t):hn,e.bind(this)),kp(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ji()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),r=this.__calculateLimit(t.length);this.__updateInstances(e,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Ro||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=r;return this.__filterFn&&(t=t.filter((r,o,a)=>this.__filterFn(e[r],o,a))),this.__sortFn&&t.sort((r,o)=>this.__sortFn(e[r],e[o])),t}__calculateLimit(e){let t=e;const r=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),o=Math.max(t-r,0),this.__chunkCount=o||1):(o=Math.min(Math.max(e-r,0),this.__chunkCount),t=Math.min(r+o,e)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,r){const o=this.__itemsIdxToInstIdx={};let a;for(a=0;a<t;a++){let n=this.__instances[a],s=r[a],l=e[s];o[s]=a,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,a),n._setPendingProperty(this.itemsIndexAs,s),n._flushProperties()):this.__insertInstance(l,a,s)}for(let n=this.__instances.length-1;n>=a;n--)this.__detachAndRemoveInstance(n)}__detachInstance(e){let t=this.__instances[e];const r=G(t.root);for(let o=0;o<t.children.length;o++){let a=t.children[o];r.appendChild(a)}return t}__attachInstance(e,t){let r=this.__instances[e];t.insertBefore(r.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,r){let o={};return o[this.as]=e,o[this.indexAs]=t,o[this.itemsIndexAs]=r,new this.__ctor(o)}__insertInstance(e,t,r){const o=this.__stampInstance(e,t,r);let a=this.__instances[t+1],n=a?a.children[0]:this;return G(G(this).parentNode).insertBefore(o.root,n),this.__instances[t]=o,o}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let r=e.slice(6),o=r.indexOf("."),a=o<0?r:r.substring(0,o);if(a==parseInt(a,10)){let n=o<0?"":r.substring(o+1);this.__handleObservedPaths(n);let s=this.__itemsIdxToInstIdx[a],l=this.__instances[s];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return Up(this.template,e)}}customElements.define(ma.is,ma);/**
3713
3713
  * @license
3714
3714
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3715
3715
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3716
- */const qp=o=>class extends Ne(o){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(e=>fe(e.date,this.focusedDate))}ready(){super.ready(),le(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,r){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);const a=new Date(0,0);return a.setFullYear(e.getFullYear()),a.setMonth(e.getMonth()+1),a.setDate(0),t&&r&&t.getMonth()===r.getMonth()&&t.getMonth()===e.getMonth()&&r.getDate()-t.getDate()>=0?!1:!Ke(i,t,r)&&!Ke(a,t,r)}_getTitle(e,t){if(!(e===void 0||t===void 0))return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(!(e===void 0||t===void 0))return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(e===void 0||t===void 0)return[];const{weekdays:r,weekdaysShort:i,firstDayOfWeek:a}=e,n=this._applyFirstDayOfWeek(i,a);return this._applyFirstDayOfWeek(r,a).map((s,l)=>({weekDay:s,weekDayShort:n[l]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(r=>fe(r,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&t.firstDayOfWeek===1}_isToday(e){return fe(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const r=new Date(0,0);for(r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);r.getDay()!==t.firstDayOfWeek;)this._dateAdd(r,-1);const i=[],a=r.getMonth(),n=e.getMonth();for(;r.getMonth()===n||r.getMonth()===a;)i.push(r.getMonth()===n?new Date(r.getTime()):null),this._dateAdd(r,1);return i}_getWeeks(e){return e.reduce((t,r,i)=>(i%7===0&&t.push([]),t[t.length-1].push(r),t),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const t=e.reduce((r,i)=>!r&&i?i:r);return bp(t)}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(t+=`, ${this.i18n.today}`),t}};/**
3716
+ */const Yp=i=>class extends Ne(i){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(e=>fe(e.date,this.focusedDate))}ready(){super.ready(),le(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,r){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);const a=new Date(0,0);return a.setFullYear(e.getFullYear()),a.setMonth(e.getMonth()+1),a.setDate(0),t&&r&&t.getMonth()===r.getMonth()&&t.getMonth()===e.getMonth()&&r.getDate()-t.getDate()>=0?!1:!Ke(o,t,r)&&!Ke(a,t,r)}_getTitle(e,t){if(!(e===void 0||t===void 0))return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(!(e===void 0||t===void 0))return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(e===void 0||t===void 0)return[];const{weekdays:r,weekdaysShort:o,firstDayOfWeek:a}=e,n=this._applyFirstDayOfWeek(o,a);return this._applyFirstDayOfWeek(r,a).map((s,l)=>({weekDay:s,weekDayShort:n[l]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(r=>fe(r,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&t.firstDayOfWeek===1}_isToday(e){return fe(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const r=new Date(0,0);for(r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);r.getDay()!==t.firstDayOfWeek;)this._dateAdd(r,-1);const o=[],a=r.getMonth(),n=e.getMonth();for(;r.getMonth()===n||r.getMonth()===a;)o.push(r.getMonth()===n?new Date(r.getTime()):null),this._dateAdd(r,1);return o}_getWeeks(e){return e.reduce((t,r,o)=>(o%7===0&&t.push([]),t[t.length-1].push(r),t),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const t=e.reduce((r,o)=>!r&&o?o:r);return yp(t)}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(t+=`, ${this.i18n.today}`),t}};/**
3717
3717
  * @license
3718
3718
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3719
3719
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3720
- */const Yp=f`
3720
+ */const jp=f`
3721
3721
  :host {
3722
3722
  display: block;
3723
3723
  }
@@ -3777,7 +3777,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3777
3777
  * @license
3778
3778
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3779
3779
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3780
- */g("vaadin-month-calendar",Yp,{moduleId:"vaadin-month-calendar-styles"});class jp extends qp(z(k)){static get template(){return C`
3780
+ */g("vaadin-month-calendar",jp,{moduleId:"vaadin-month-calendar-styles"});class Gp extends Yp(z(k)){static get template(){return C`
3781
3781
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3782
3782
  <table
3783
3783
  id="monthGrid"
@@ -3819,7 +3819,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3819
3819
  </template>
3820
3820
  </tbody>
3821
3821
  </table>
3822
- `}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(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,r,i,a,n){const s=["date"],l=e>mi(new Date),d=e<mi(new Date);return this.__isDayDisabled(e,i,a,n)&&s.push("disabled"),this.__isDayFocused(e,t)&&s.push("focused"),this.__isDaySelected(e,r)&&s.push("selected"),this._isToday(e)&&s.push("today"),d&&s.push("past"),l&&s.push("future"),s.join(" ")}__isDayFocused(e,t){return fe(e,t)}__isDaySelected(e,t){return fe(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,r,i){return!Ke(e,t,r,i)}__getDayAriaDisabled(e,t,r,i){if(!(e===void 0||t===void 0&&r===void 0&&i===void 0)&&this.__isDayDisabled(e,t,r,i))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}y(jp);/**
3822
+ `}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(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,r,o,a,n){const s=["date"],l=e>mi(new Date),d=e<mi(new Date);return this.__isDayDisabled(e,o,a,n)&&s.push("disabled"),this.__isDayFocused(e,t)&&s.push("focused"),this.__isDaySelected(e,r)&&s.push("selected"),this._isToday(e)&&s.push("today"),d&&s.push("past"),l&&s.push("future"),s.join(" ")}__isDayFocused(e,t){return fe(e,t)}__isDaySelected(e,t){return fe(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,r,o){return!Ke(e,t,r,o)}__getDayAriaDisabled(e,t,r,o){if(!(e===void 0||t===void 0&&r===void 0&&o===void 0)&&this.__isDayDisabled(e,t,r,o))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}y(Gp);/**
3823
3823
  * @license
3824
3824
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3825
3825
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3827,11 +3827,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3827
3827
  * @license
3828
3828
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3829
3829
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3830
- */const Gp=o=>class extends o{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(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Mn(this.$.scrollers,"pan-y"),le(this.$.scrollers,"track",this._track.bind(this)),le(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),le(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),le(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new ro(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new J(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),le(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new J(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),le(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const r=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+r,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new J(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(r=>{r.addEventListener("selected-date-changed",i=>{this.selectedDate=i.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new J(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),le(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,r,i,a){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(r,i,a))}__updateCalendars(e,t,r,i,a,n,s,l,d,c){e&&e.length&&e.forEach(h=>{h.i18n=t,h.minDate=r,h.maxDate=i,h.isDateDisabled=c,h.focusedDate=n,h.selectedDate=a,h.showWeekNumbers=s,h.ignoreTaps=l,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(e,t,r){e&&e.length&&e.forEach(i=>{i.selectedDate=t,r?i.setAttribute("theme",r):i.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const r=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const s=this._calculateWeekScrollOffset(e);this._scrollToPosition(r+s,t);return}const i=this._monthScroller.position>r,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,n=this._monthScroller.position+a-1<r;i?this._scrollToPosition(r,t):n&&this._scrollToPosition(r-a+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let r=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(r+=1);return r/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=re.debounce(this._debouncer,we.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,r){return e&&t&&typeof t.formatDate=="function"?t.formatDate(Qi(e)):r}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let r;this._revealPromise=new Promise(l=>{r=l});const i=(l,d,c,h)=>(l/=h/2,l<1?c/2*l*l+d:(l-=1,-c/2*(l*(l-2)-1)+d));let a=0;const n=this._monthScroller.position,s=l=>{a||(a=l);const d=l-a;if(d<this.scrollDuration){const c=i(d,n,this._targetPosition-n,this.scrollDuration);this._monthScroller.position=c,window.requestAnimationFrame(s)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:n}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,r(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(s)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Xn(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){fe(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&fe(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return tr(this,null,function*(){const r=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=r,t||(this._focusedMonthDate=r.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return tr(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{ji(this,()=>{Ji(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Kn(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,r){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,r):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const r=new Date(0,0);return r.setFullYear(this.focusedDate.getFullYear()),r.setMonth(this.focusedDate.getMonth()+e),t&&r.setDate(this.focusedDate.getDate()+t),r}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),r=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==r&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const r=new Date(0,0);r.setFullYear(e.getFullYear()),t==="minDate"?(r.setMonth(e.getMonth()),r.setDate(1)):(r.setMonth(e.getMonth()+1),r.setDate(0)),this._dateAllowed(r)?this.focusDate(r):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,r=this.maxDate,i=this.isDateDisabled){return Ke(e,t,r,i)}_isTodayAllowed(e,t,r){return this._dateAllowed(this._getTodayMidnight(),e,t,r)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
3830
+ */const Kp=i=>class extends i{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(e=>e.focusableDateElement).find(Boolean)}_addListeners(){zn(this.$.scrollers,"pan-y"),le(this.$.scrollers,"track",this._track.bind(this)),le(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),le(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),le(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new ro(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new J(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),le(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new J(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),le(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const r=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+r,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new J(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(r=>{r.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new J(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),le(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,r,o,a){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(r,o,a))}__updateCalendars(e,t,r,o,a,n,s,l,d,c){e&&e.length&&e.forEach(h=>{h.i18n=t,h.minDate=r,h.maxDate=o,h.isDateDisabled=c,h.focusedDate=n,h.selectedDate=a,h.showWeekNumbers=s,h.ignoreTaps=l,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(e,t,r){e&&e.length&&e.forEach(o=>{o.selectedDate=t,r?o.setAttribute("theme",r):o.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const r=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const s=this._calculateWeekScrollOffset(e);this._scrollToPosition(r+s,t);return}const o=this._monthScroller.position>r,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,n=this._monthScroller.position+a-1<r;o?this._scrollToPosition(r,t):n&&this._scrollToPosition(r-a+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let r=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(r+=1);return r/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=re.debounce(this._debouncer,we.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,r){return e&&t&&typeof t.formatDate=="function"?t.formatDate(Qi(e)):r}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let r;this._revealPromise=new Promise(l=>{r=l});const o=(l,d,c,h)=>(l/=h/2,l<1?c/2*l*l+d:(l-=1,-c/2*(l*(l-2)-1)+d));let a=0;const n=this._monthScroller.position,s=l=>{a||(a=l);const d=l-a;if(d<this.scrollDuration){const c=o(d,n,this._targetPosition-n,this.scrollDuration);this._monthScroller.position=c,window.requestAnimationFrame(s)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:n}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,r(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(s)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Qn(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){fe(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&fe(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return tr(this,null,function*(){const r=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=r,t||(this._focusedMonthDate=r.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return tr(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{ji(this,()=>{Ji(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Xn(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,r){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,r):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const r=new Date(0,0);return r.setFullYear(this.focusedDate.getFullYear()),r.setMonth(this.focusedDate.getMonth()+e),t&&r.setDate(this.focusedDate.getDate()+t),r}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),r=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==r&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const r=new Date(0,0);r.setFullYear(e.getFullYear()),t==="minDate"?(r.setMonth(e.getMonth()),r.setDate(1)):(r.setMonth(e.getMonth()+1),r.setDate(0)),this._dateAllowed(r)?this.focusDate(r):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,r=this.maxDate,o=this.isDateDisabled){return Ke(e,t,r,o)}_isTodayAllowed(e,t,r){return this._dateAllowed(this._getTodayMidnight(),e,t,r)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
3831
3831
  * @license
3832
3832
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3833
3833
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3834
- */const Kp=f`
3834
+ */const Xp=f`
3835
3835
  :host {
3836
3836
  display: flex;
3837
3837
  flex-direction: column;
@@ -3895,7 +3895,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3895
3895
  * @license
3896
3896
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3897
3897
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3898
- */g("vaadin-date-picker-overlay-content",Kp,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Xp extends Gp(he(z(ie(k)))){static get template(){return C`
3898
+ */g("vaadin-date-picker-overlay-content",Xp,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Qp extends Kp(he(z(ie(k)))){static get template(){return C`
3899
3899
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3900
3900
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3901
3901
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3915,23 +3915,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3915
3915
  <slot name="today-button"></slot>
3916
3916
  <slot name="cancel-button"></slot>
3917
3917
  </div>
3918
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}y(Xp);/**
3918
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}y(Qp);/**
3919
3919
  * @license
3920
3920
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3921
3921
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3922
- */const Ur=new WeakMap;function Qp(o){return Ur.has(o)||Ur.set(o,new Set),Ur.get(o)}function Jp(o,e){const t=document.createElement("style");t.textContent=o,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const rs=H(o=>class extends o{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=Qp(e);this.slotStyles.forEach(r=>{t.has(r)||(Jp(r,e),t.add(r))})}});/**
3922
+ */const Ur=new WeakMap;function Jp(i){return Ur.has(i)||Ur.set(i,new Set),Ur.get(i)}function Zp(i,e){const t=document.createElement("style");t.textContent=i,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const is=H(i=>class extends i{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=Jp(e);this.slotStyles.forEach(r=>{t.has(r)||(Zp(r,e),t.add(r))})}});/**
3923
3923
  * @license
3924
3924
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3925
3925
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3926
- */const Zp=o=>class extends St(ze(o)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),ui||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3926
+ */const em=i=>class extends St(ze(i)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),ui||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3927
3927
  * @license
3928
3928
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3929
3929
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3930
- */const io=H(o=>class extends Ri(Ui(St(o))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(t=>this.__isValidConstraint(t))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const r=this._hasValidConstraints(t),i=this.__previousHasConstraints&&!r;(this._hasValue||this.invalid)&&r?this.validate():i&&this._setInvalid(!1),this.__previousHasConstraints=r}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3930
+ */const io=H(i=>class extends Ri(Ui(St(i))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(t=>this.__isValidConstraint(t))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const r=this._hasValidConstraints(t),o=this.__previousHasConstraints&&!r;(this._hasValue||this.invalid)&&r?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=r}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3931
3931
  * @license
3932
3932
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3933
3933
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3934
- */const xr=o=>class extends rs(gr(io(br(Zp(ze(o)))))){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[`
3934
+ */const xr=i=>class extends is(gr(io(br(em(ze(i)))))){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[`
3935
3935
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3936
3936
  font: inherit;
3937
3937
  color: inherit;
@@ -3940,7 +3940,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3940
3940
  * @license
3941
3941
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3942
3942
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3943
- */const em=f`
3943
+ */const tm=f`
3944
3944
  [part='clear-button'] {
3945
3945
  display: none;
3946
3946
  cursor: default;
@@ -3957,7 +3957,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3957
3957
  * @license
3958
3958
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3959
3959
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3960
- */const is=f`
3960
+ */const os=f`
3961
3961
  :host {
3962
3962
  display: inline-flex;
3963
3963
  outline: none;
@@ -3995,7 +3995,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3995
3995
  * @license
3996
3996
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3997
3997
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3998
- */const os=f`
3998
+ */const as=f`
3999
3999
  [class$='container'] {
4000
4000
  display: flex;
4001
4001
  flex-direction: column;
@@ -4007,23 +4007,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4007
4007
  * @license
4008
4008
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
4009
4009
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4010
- */const Cr=[is,os,em];/**
4010
+ */const Cr=[os,as,tm];/**
4011
4011
  * @license
4012
4012
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
4013
4013
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4014
- */const Nt=o=>class extends o{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t||e===void 0)return;const{classList:r}=t;if(this.__initialClasses||(this.__initialClasses=new Set(r)),Array.isArray(this.__previousClasses)){const a=this.__previousClasses.filter(n=>!this.__initialClasses.has(n));a.length>0&&r.remove(...a)}const i=typeof e=="string"?e.split(" ").filter(Boolean):[];i.length>0&&r.add(...i),this.__previousClasses=i}};/**
4014
+ */const Nt=i=>class extends i{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t||e===void 0)return;const{classList:r}=t;if(this.__initialClasses||(this.__initialClasses=new Set(r)),Array.isArray(this.__previousClasses)){const a=this.__previousClasses.filter(n=>!this.__initialClasses.has(n));a.length>0&&r.remove(...a)}const o=typeof e=="string"?e.split(" ").filter(Boolean):[];o.length>0&&r.add(...o),this.__previousClasses=o}};/**
4015
4015
  * @license
4016
4016
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4017
4017
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4018
- */class as{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
4018
+ */class ns{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
4019
4019
  * @license
4020
4020
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4021
4021
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4022
- */const tm=o=>class extends Nt(he(gr(io(ze(o))))){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(e){const t=String(e.year).replace(/\d+/u,r=>"0000".substr(r.length)+r);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),r=new Date;let i,a=r.getMonth(),n=r.getFullYear();if(t.length===3){if(a=parseInt(t[0])-1,i=parseInt(t[1]),n=parseInt(t[2]),t[2].length<3&&n>=0){const s=this.referenceDate?ct(this.referenceDate):new Date;n=yp(s,n,a,i)}}else t.length===2?(a=parseInt(t[0])-1,i=parseInt(t[1])):t.length===1&&(i=parseInt(t[0]));if(i!==void 0)return{day:i,month:a,year:n}},formatTitle:(e,t)=>`${e} ${t}`})},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:Gi},_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(e){super._inputElementValue=e,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(e){super._onFocus(e),this._noInput&&!vr()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new ro(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new as(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",r=>{this.__commitDate(r.detail.date),this._close()}),t.addEventListener("date-selected",r=>{this.__commitDate(r.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",r=>{this._shouldRemoveFocus(r)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",r=>{this._focusedDate=r.detail.value}),t.addEventListener("click",r=>r.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=ct(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Qi(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),r=!this._selectedDate||Ke(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let i=!0;return this.inputElement&&(this.inputElement.checkValidity?i=this.inputElement.checkValidity():this.inputElement.validate&&(i=this.inputElement.validate())),t&&r&&i}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,r,i,a,n){return!e||t&&(!n||a)||r&&a||!i.parseDate}_formatISO(e){return xp(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const r=ct(e);if(e&&!r){this.value=t;return}e?fe(this._selectedDate,r)||(this._selectedDate=r,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,r,i,a,n,s,l,d){e&&(e.i18n=t,e.label=r,e.minDate=i,e.maxDate=a,e.focusedDate=n,e.selectedDate=s,e.showWeekNumbers=l,e.isDateDisabled=d)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const r=e.focusedDate||t;e.scrollToDate(r),this._ignoreFocusedDateChange=!0,e.focusedDate=r,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const i=this._nativeInput;this._noInput&&i&&(i.blur(),this._overlayContent.focusDateElement());const a=this._noInput?e:[i,e];this.__showOthers=qn(a)}_getInitialPosition(){const e=ct(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Ke(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?Kn(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(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(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,fe(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return ct(e)}};/**
4022
+ */const rm=i=>class extends Nt(he(gr(io(ze(i))))){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(e){const t=String(e.year).replace(/\d+/u,r=>"0000".substr(r.length)+r);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),r=new Date;let o,a=r.getMonth(),n=r.getFullYear();if(t.length===3){if(a=parseInt(t[0])-1,o=parseInt(t[1]),n=parseInt(t[2]),t[2].length<3&&n>=0){const s=this.referenceDate?ct(this.referenceDate):new Date;n=wp(s,n,a,o)}}else t.length===2?(a=parseInt(t[0])-1,o=parseInt(t[1])):t.length===1&&(o=parseInt(t[0]));if(o!==void 0)return{day:o,month:a,year:n}},formatTitle:(e,t)=>`${e} ${t}`})},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:Gi},_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(e){super._inputElementValue=e,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(e){super._onFocus(e),this._noInput&&!vr()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new ro(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new ns(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",r=>{this.__commitDate(r.detail.date),this._close()}),t.addEventListener("date-selected",r=>{this.__commitDate(r.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",r=>{this._shouldRemoveFocus(r)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",r=>{this._focusedDate=r.detail.value}),t.addEventListener("click",r=>r.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=ct(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Qi(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),r=!this._selectedDate||Ke(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),t&&r&&o}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,r,o,a,n){return!e||t&&(!n||a)||r&&a||!o.parseDate}_formatISO(e){return Cp(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const r=ct(e);if(e&&!r){this.value=t;return}e?fe(this._selectedDate,r)||(this._selectedDate=r,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,r,o,a,n,s,l,d){e&&(e.i18n=t,e.label=r,e.minDate=o,e.maxDate=a,e.focusedDate=n,e.selectedDate=s,e.showWeekNumbers=l,e.isDateDisabled=d)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const r=e.focusedDate||t;e.scrollToDate(r),this._ignoreFocusedDateChange=!0,e.focusedDate=r,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const a=this._noInput?e:[o,e];this.__showOthers=Yn(a)}_getInitialPosition(){const e=ct(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Ke(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?Xn(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(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(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,fe(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return ct(e)}};/**
4023
4023
  * @license
4024
4024
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4025
4025
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4026
- */const rm=f`
4026
+ */const im=f`
4027
4027
  :host([opened]) {
4028
4028
  pointer-events: auto;
4029
4029
  }
@@ -4040,7 +4040,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4040
4040
  * @license
4041
4041
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4042
4042
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4043
- */g("vaadin-date-picker",[Cr,rm],{moduleId:"vaadin-date-picker-styles"});class im extends tm(xr(z(oe(k)))){static get is(){return"vaadin-date-picker"}static get template(){return C`
4043
+ */g("vaadin-date-picker",[Cr,im],{moduleId:"vaadin-date-picker-styles"});class om extends rm(xr(z(oe(k)))){static get is(){return"vaadin-date-picker"}static get template(){return C`
4044
4044
  <div class="vaadin-date-picker-container">
4045
4045
  <div part="label">
4046
4046
  <slot name="label"></slot>
@@ -4082,7 +4082,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4082
4082
  ></vaadin-date-picker-overlay>
4083
4083
 
4084
4084
  <slot name="tooltip"></slot>
4085
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Dt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Ot(this.inputElement,this._labelController)),this._tooltipController=new ve(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}y(im);/**
4085
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Dt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Ot(this.inputElement,this._labelController)),this._tooltipController=new ve(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}y(om);/**
4086
4086
  * @license
4087
4087
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4088
4088
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4090,15 +4090,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4090
4090
  * @license
4091
4091
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4092
4092
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4093
- */const om=o=>class extends xr(o){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),t!==void 0&&this.invalid&&this.validate()}};/**
4093
+ */const am=i=>class extends xr(i){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),t!==void 0&&this.invalid&&this.validate()}};/**
4094
4094
  * @license
4095
4095
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4096
4096
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4097
- */const am=o=>class extends om(o){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Dt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Ot(this.inputElement,this._labelController))}};/**
4097
+ */const nm=i=>class extends am(i){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Dt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Ot(this.inputElement,this._labelController))}};/**
4098
4098
  * @license
4099
4099
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4100
4100
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4101
- */g("vaadin-text-field",Cr,{moduleId:"vaadin-text-field-styles"});class ns extends am(z(oe(k))){static get is(){return"vaadin-text-field"}static get template(){return C`
4101
+ */g("vaadin-text-field",Cr,{moduleId:"vaadin-text-field-styles"});class ss extends nm(z(oe(k))){static get is(){return"vaadin-text-field"}static get template(){return C`
4102
4102
  <div class="vaadin-field-container">
4103
4103
  <div part="label">
4104
4104
  <slot name="label"></slot>
@@ -4127,11 +4127,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4127
4127
  </div>
4128
4128
  </div>
4129
4129
  <slot name="tooltip"></slot>
4130
- `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new ve(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}y(ns);/**
4130
+ `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new ve(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}y(ss);/**
4131
4131
  * @license
4132
4132
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4133
4133
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4134
- */const nm=f`
4134
+ */const sm=f`
4135
4135
  :host {
4136
4136
  position: absolute;
4137
4137
  right: 0;
@@ -4144,11 +4144,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4144
4144
  background: transparent;
4145
4145
  outline: none;
4146
4146
  }
4147
- `;g("vaadin-password-field-button",[$n,nm],{moduleId:"lumo-password-field-button"});/**
4147
+ `;g("vaadin-password-field-button",[Hn,sm],{moduleId:"lumo-password-field-button"});/**
4148
4148
  * @license
4149
4149
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4150
4150
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4151
- */const sm=f`
4151
+ */const lm=f`
4152
4152
  [part='reveal-button']::before {
4153
4153
  content: var(--lumo-icons-eye);
4154
4154
  }
@@ -4166,15 +4166,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4166
4166
  [part='reveal-button'][hidden] {
4167
4167
  display: none !important;
4168
4168
  }
4169
- `;g("vaadin-password-field",[Le,sm],{moduleId:"lumo-password-field"});/**
4169
+ `;g("vaadin-password-field",[Le,lm],{moduleId:"lumo-password-field"});/**
4170
4170
  * @license
4171
4171
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4172
4172
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4173
- */g("vaadin-password-field-button",Gn,{moduleId:"vaadin-password-field-button-styles"});class lm extends Xi(ie(z(k))){static get is(){return"vaadin-password-field-button"}static get template(){return C``}}y(lm);/**
4173
+ */g("vaadin-password-field-button",Kn,{moduleId:"vaadin-password-field-button-styles"});class dm extends Xi(ie(z(k))){static get is(){return"vaadin-password-field-button"}static get template(){return C``}}y(dm);/**
4174
4174
  * @license
4175
4175
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4176
4176
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4177
- */const dm=o=>class extends rs(Je(Ne(St(o)))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){const e=this.localName;return[...super.slotStyles,`
4177
+ */const cm=i=>class extends is(Je(Ne(St(i)))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){const e=this.localName;return[...super.slotStyles,`
4178
4178
  ${e} [slot="input"]::-ms-reveal {
4179
4179
  display: none;
4180
4180
  }
@@ -4182,11 +4182,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4182
4182
  * @license
4183
4183
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4184
4184
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4185
- */const cm=C`
4185
+ */const hm=C`
4186
4186
  <div part="reveal-button" slot="suffix">
4187
4187
  <slot name="reveal"></slot>
4188
4188
  </div>
4189
- `;let qt;class hm extends dm(ns){static get is(){return"vaadin-password-field"}static get template(){if(!qt){qt=super.template.cloneNode(!0);const e=cm.content.querySelector('[part="reveal-button"]');qt.content.querySelector('[part="input-field"]').appendChild(e)}return qt}}y(hm);const kr=f`
4189
+ `;let qt;class um extends cm(ss){static get is(){return"vaadin-password-field"}static get template(){if(!qt){qt=super.template.cloneNode(!0);const e=hm.content.querySelector('[part="reveal-button"]');qt.content.querySelector('[part="input-field"]').appendChild(e)}return qt}}y(um);const kr=f`
4190
4190
  :host {
4191
4191
  display: flex;
4192
4192
  align-items: center;
@@ -4270,7 +4270,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4270
4270
  width: var(--lumo-icon-size-m);
4271
4271
  height: var(--lumo-icon-size-m);
4272
4272
  }
4273
- `;g("vaadin-item",kr,{moduleId:"lumo-item"});const ss=f`
4273
+ `;g("vaadin-item",kr,{moduleId:"lumo-item"});const ls=f`
4274
4274
  :host {
4275
4275
  transition: background-color 100ms;
4276
4276
  overflow: hidden;
@@ -4282,11 +4282,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4282
4282
  :host([focused]:not([disabled])) {
4283
4283
  box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
4284
4284
  }
4285
- `;g("vaadin-combo-box-item",[kr,ss],{moduleId:"lumo-combo-box-item"});/**
4285
+ `;g("vaadin-combo-box-item",[kr,ls],{moduleId:"lumo-combo-box-item"});/**
4286
4286
  * @license
4287
4287
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
4288
4288
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4289
- */const ls=f`
4289
+ */const ds=f`
4290
4290
  [part~='loader'] {
4291
4291
  box-sizing: border-box;
4292
4292
  width: var(--lumo-icon-size-s);
@@ -4328,7 +4328,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4328
4328
  transform: rotate(360deg);
4329
4329
  }
4330
4330
  }
4331
- `,ds=f`
4331
+ `,cs=f`
4332
4332
  [part='content'] {
4333
4333
  padding: 0;
4334
4334
  }
@@ -4349,7 +4349,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4349
4349
  :host([bottom-aligned]) [part~='overlay'] {
4350
4350
  margin-bottom: var(--lumo-space-xs);
4351
4351
  }
4352
- `,cs=f`
4352
+ `,hs=f`
4353
4353
  [part~='loader'] {
4354
4354
  position: absolute;
4355
4355
  z-index: 1;
@@ -4357,24 +4357,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4357
4357
  top: var(--lumo-space-s);
4358
4358
  margin-inline: auto 0;
4359
4359
  }
4360
- `;g("vaadin-combo-box-overlay",[Ze,yr,ds,ls,cs,f`
4360
+ `;g("vaadin-combo-box-overlay",[Ze,yr,cs,ds,hs,f`
4361
4361
  :host {
4362
4362
  --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
4363
4363
  --_vaadin-combo-box-items-container-border-style: solid;
4364
4364
  }
4365
- `],{moduleId:"lumo-combo-box-overlay"});const um=f`
4365
+ `],{moduleId:"lumo-combo-box-overlay"});const pm=f`
4366
4366
  [part='toggle-button']::before {
4367
4367
  content: var(--lumo-icons-dropdown);
4368
4368
  }
4369
- `;g("vaadin-combo-box",[Le,um],{moduleId:"lumo-combo-box"});/**
4369
+ `;g("vaadin-combo-box",[Le,pm],{moduleId:"lumo-combo-box"});/**
4370
4370
  * @license
4371
4371
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4372
4372
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4373
- */const hs=o=>class extends o{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,r){e==="hidden"&&r!==null?this.index=void 0:super.attributeChangedCallback(e,t,r)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,r){r===void 0||t===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};/**
4373
+ */const us=i=>class extends i{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,r){e==="hidden"&&r!==null?this.index=void 0:super.attributeChangedCallback(e,t,r)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,r){r===void 0||t===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};/**
4374
4374
  * @license
4375
4375
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4376
4376
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4377
- */class pm extends hs(z(ie(k))){static get template(){return C`
4377
+ */class mm extends us(z(ie(k))){static get template(){return C`
4378
4378
  <style>
4379
4379
  :host {
4380
4380
  display: block;
@@ -4388,15 +4388,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4388
4388
  <div part="content">
4389
4389
  <slot></slot>
4390
4390
  </div>
4391
- `}static get is(){return"vaadin-combo-box-item"}}y(pm);/**
4391
+ `}static get is(){return"vaadin-combo-box-item"}}y(mm);/**
4392
4392
  * @license
4393
4393
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4394
4394
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4395
- */const us=o=>class extends Ki(o){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Bi(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);t===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};/**
4395
+ */const ps=i=>class extends Ki(i){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Bi(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);t===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};/**
4396
4396
  * @license
4397
4397
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4398
4398
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4399
- */const mm=f`
4399
+ */const fm=f`
4400
4400
  #overlay {
4401
4401
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
4402
4402
  }
@@ -4406,17 +4406,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4406
4406
  flex-direction: column;
4407
4407
  height: 100%;
4408
4408
  }
4409
- `;g("vaadin-combo-box-overlay",[Mt,mm],{moduleId:"vaadin-combo-box-overlay-styles"});class fm extends us(zt(ie(z(k)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return C`
4409
+ `;g("vaadin-combo-box-overlay",[Mt,fm],{moduleId:"vaadin-combo-box-overlay-styles"});class _m extends ps(zt(ie(z(k)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return C`
4410
4410
  <div id="backdrop" part="backdrop" hidden></div>
4411
4411
  <div part="overlay" id="overlay">
4412
4412
  <div part="loader"></div>
4413
4413
  <div part="content" id="content"><slot></slot></div>
4414
4414
  </div>
4415
- `}}y(fm);/**
4415
+ `}}y(_m);/**
4416
4416
  * @license
4417
4417
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
4418
4418
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4419
- */function hr(o,e){return o.split(".").reduce((t,r)=>t?t[r]:void 0,e)}/**
4419
+ */function hr(i,e){return i.split(".").reduce((t,r)=>t?t[r]:void 0,e)}/**
4420
4420
  * @license
4421
4421
  * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
4422
4422
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -4424,11 +4424,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4424
4424
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
4425
4425
  * Code distributed by Google as part of the polymer project is also
4426
4426
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
4427
- */const ma=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),_m=ma&&ma[1]>=8,fa=3,vm={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const o=this._virtualCount;return Math.max(0,o-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(o){o=this._clamp(o,0,this._maxVirtualStart),this._virtualStartVal=o},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(o){o%=this._physicalCount,o<0&&(o=this._physicalCount+o),this._physicalStartVal=o},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(o){this._physicalCountVal=o},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let o=this._firstVisibleIndexVal;if(o==null){let e=this._physicalTop+this._scrollOffset;o=this._iterateItems((t,r)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return r})||0,this._firstVisibleIndexVal=o}return o},get lastVisibleIndex(){let o=this._lastVisibleIndexVal;if(o==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,r)=>{e<this._scrollBottom&&(o=r),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=o}return o},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const o=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=o-this._scrollPosition;const t=e>=0;if(this._scrollPosition=o,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const r=Math.round(e/this._physicalAverage);this._virtualStart+=r,this._physicalStart+=r,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const r=this._getReusables(t);t?(this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length):(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length),this._update(r.indexes,t?null:r.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),lr)}},_getReusables(o){let e,t,r;const i=[],a=this._hiddenContentSize*this._ratio,n=this._virtualStart,s=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const c=this._physicalBottom+this._scrollOffset,h=this._scrollPosition,u=this._scrollBottom;for(o?(e=this._physicalStart,t=h-d):(e=this._physicalEnd,t=c-u);r=this._getPhysicalSizeIncrement(e),t-=r,!(i.length>=l||t<=a);)if(o){if(s+i.length+1>=this._virtualCount||d+r>=h-this._scrollOffset)break;i.push(e),d+=r,e=(e+1)%l}else{if(n-i.length<=0||d+this._physicalSize-r<=u)break;i.push(e),d-=r,e=e===0?l-1:e-1}return{indexes:i,physicalTop:d-this._scrollOffset}},_update(o,e){if(!(o&&o.length===0||this._physicalCount===0)){if(this._assignModels(o),this._updateMetrics(o),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(o){const e=this._clamp(this._physicalCount+o,fa,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const r=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let i=0;i<e;i++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-r)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),En):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),lr))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const o=this._getReusables(!0);this._physicalTop=o.physicalTop,this._virtualStart+=o.indexes.length,this._physicalStart+=o.indexes.length,this._update(o.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(fa))},_itemsChanged(o){o.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,Et))},_iterateItems(o,e){let t,r,i,a;if(arguments.length===2&&e){for(a=0;a<e.length;a++)if(t=e[a],r=this._computeVidx(t),(i=o.call(this,t,r))!=null)return i}else{for(t=this._physicalStart,r=this._virtualStart;t<this._physicalCount;t++,r++)if((i=o.call(this,t,r))!=null)return i;for(t=0;t<this._physicalStart;t++,r++)if((i=o.call(this,t,r))!=null)return i}},_computeVidx(o){return o>=this._physicalStart?this._virtualStart+(o-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+o},_positionItems(){this._adjustScrollPosition();let o=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${o}px`,0,this._physicalItems[e]),o+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(o){return this._physicalSizes[o]},_adjustScrollPosition(){const o=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(o!==0){this._physicalTop-=o;const e=this._scrollPosition;!_m&&e>0&&this._resetScrollPosition(e-o)}},_resetScrollPosition(o){this.scrollTarget&&o>=0&&(this._scrollTop=o,this._scrollPosition=this._scrollTop)},_updateScrollerSize(o){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(o||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(o){if(typeof o!="number"||o<0||o>this.items.length-1||(pt(),this._physicalCount===0))return;o=this._clamp(o,0,this._virtualCount-1),(!this._isIndexRendered(o)||o>=this._maxVirtualStart)&&(this._virtualStart=o-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,r=0;const i=this._hiddenContentSize;for(;t<o&&r<=i;)r+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},Et)},_isIndexRendered(o){return o>=this._virtualStart&&o<=this._virtualEnd},_getPhysicalIndex(o){return(this._physicalStart+(o-this._virtualStart))%this._physicalCount},_clamp(o,e,t){return Math.min(t,Math.max(e,o))},_debounce(o,e,t){this._debouncers||(this._debouncers={}),this._debouncers[o]=re.debounce(this._debouncers[o],t,e.bind(this)),Tn(this._debouncers[o])}};/**
4427
+ */const fa=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),vm=fa&&fa[1]>=8,_a=3,gm={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const i=this._virtualCount;return Math.max(0,i-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(i){i=this._clamp(i,0,this._maxVirtualStart),this._virtualStartVal=i},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(i){i%=this._physicalCount,i<0&&(i=this._physicalCount+i),this._physicalStartVal=i},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(i){this._physicalCountVal=i},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let i=this._firstVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;i=this._iterateItems((t,r)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return r})||0,this._firstVisibleIndexVal=i}return i},get lastVisibleIndex(){let i=this._lastVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,r)=>{e<this._scrollBottom&&(i=r),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=i}return i},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const i=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=i-this._scrollPosition;const t=e>=0;if(this._scrollPosition=i,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const r=Math.round(e/this._physicalAverage);this._virtualStart+=r,this._physicalStart+=r,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const r=this._getReusables(t);t?(this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length):(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length),this._update(r.indexes,t?null:r.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),lr)}},_getReusables(i){let e,t,r;const o=[],a=this._hiddenContentSize*this._ratio,n=this._virtualStart,s=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const c=this._physicalBottom+this._scrollOffset,h=this._scrollPosition,u=this._scrollBottom;for(i?(e=this._physicalStart,t=h-d):(e=this._physicalEnd,t=c-u);r=this._getPhysicalSizeIncrement(e),t-=r,!(o.length>=l||t<=a);)if(i){if(s+o.length+1>=this._virtualCount||d+r>=h-this._scrollOffset)break;o.push(e),d+=r,e=(e+1)%l}else{if(n-o.length<=0||d+this._physicalSize-r<=u)break;o.push(e),d-=r,e=e===0?l-1:e-1}return{indexes:o,physicalTop:d-this._scrollOffset}},_update(i,e){if(!(i&&i.length===0||this._physicalCount===0)){if(this._assignModels(i),this._updateMetrics(i),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(i){const e=this._clamp(this._physicalCount+i,_a,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const r=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let o=0;o<e;o++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-r)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),Tn):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),lr))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const i=this._getReusables(!0);this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length,this._update(i.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(_a))},_itemsChanged(i){i.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,Et))},_iterateItems(i,e){let t,r,o,a;if(arguments.length===2&&e){for(a=0;a<e.length;a++)if(t=e[a],r=this._computeVidx(t),(o=i.call(this,t,r))!=null)return o}else{for(t=this._physicalStart,r=this._virtualStart;t<this._physicalCount;t++,r++)if((o=i.call(this,t,r))!=null)return o;for(t=0;t<this._physicalStart;t++,r++)if((o=i.call(this,t,r))!=null)return o}},_computeVidx(i){return i>=this._physicalStart?this._virtualStart+(i-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+i},_positionItems(){this._adjustScrollPosition();let i=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${i}px`,0,this._physicalItems[e]),i+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(i){return this._physicalSizes[i]},_adjustScrollPosition(){const i=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(i!==0){this._physicalTop-=i;const e=this._scrollPosition;!vm&&e>0&&this._resetScrollPosition(e-i)}},_resetScrollPosition(i){this.scrollTarget&&i>=0&&(this._scrollTop=i,this._scrollPosition=this._scrollTop)},_updateScrollerSize(i){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(i||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(i){if(typeof i!="number"||i<0||i>this.items.length-1||(pt(),this._physicalCount===0))return;i=this._clamp(i,0,this._virtualCount-1),(!this._isIndexRendered(i)||i>=this._maxVirtualStart)&&(this._virtualStart=i-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,r=0;const o=this._hiddenContentSize;for(;t<i&&r<=o;)r+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},Et)},_isIndexRendered(i){return i>=this._virtualStart&&i<=this._virtualEnd},_getPhysicalIndex(i){return(this._physicalStart+(i-this._virtualStart))%this._physicalCount},_clamp(i,e,t){return Math.min(t,Math.max(e,i))},_debounce(i,e,t){this._debouncers||(this._debouncers={}),this._debouncers[i]=re.debounce(this._debouncers[i],t,e.bind(this)),An(this._debouncers[i])}};/**
4428
4428
  * @license
4429
4429
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4430
4430
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4431
- */const gm=1e5,Wr=1e3;class ps{constructor({createElements:e,updateElement:t,scrollTarget:r,scrollContainer:i,elementsContainer:a,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=r,this.scrollContainer=i,this.elementsContainer=a||i,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:s}])=>{const l=s.width===0&&s.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",s=>this.__onWheel(s)),this.scrollTarget.addEventListener("virtualizer-element-focused",s=>this.__onElementFocused(s)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let r=Math.floor(e/this.size*this._virtualCount);this._virtualCount-r<t?(r=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):r<t?e<Wr?(r=e,this._vidxOffset=0):(r=Wr,this._vidxOffset=e-r):this._vidxOffset=e-r,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(r),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),pt(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const r=[];this.__getVisibleElements().forEach(i=>{i.__virtualIndex>=e&&i.__virtualIndex<=t&&(this.__updateElement(i,i.__virtualIndex,!0),r.push(i))}),this.__afterElementsUpdated(r)}_updateMetrics(e){pt();let t=0,r=0;const i=this._physicalAverageCount,a=this._physicalAverage;this._iterateItems((n,s)=>{r+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),t+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},e),this._physicalSize=this._physicalSize+t-r,this._physicalAverageCount!==i&&(this._physicalAverage=Math.round((a*i+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),r=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return r;const i=parseFloat(t.paddingBottom)||0,a=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,s=parseFloat(t.borderTopWidth)||0;return r+i+a+n+s}__updateElement(e,t,r){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||r)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const r=t.offsetHeight;if(r===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=re.debounce(this.__placeholderClearDebouncer,Et,()=>this._resizeHandler());else{this.__elementHeightQueue.push(r),this.__elementHeightQueue.shift();const i=this.__elementHeightQueue.filter(a=>a!==void 0);this.__placeholderHeight=Math.round(i.reduce((a,n)=>a+n,0)/i.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(r=>r.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,r;if(e>0&&(t=this.adjustedFirstVisibleIndex,r=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),pt(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const i=this.__getIndexScrollOffset(t);r!==void 0&&i!==void 0&&(this._scrollTop+=r-i)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),pt(),this._debounce("_update",this._update,lr)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,gm)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),r=document.createDocumentFragment();return t.forEach(i=>{i.style.position="absolute",r.appendChild(i),this.__resizeObserver.observe(i)}),this.elementsContainer.appendChild(r),t}_assignModels(e){const t=[];this._iterateItems((r,i)=>{const a=this._physicalItems[r];a.hidden=i>=this.size,a.hidden?delete a.__lastUpdatedIndex:(a.__virtualIndex=i+(this._vidxOffset||0),this.__updateElement(a,a.__virtualIndex),t.push(a))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,r,i){i.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const r=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,r)||this.__nextFocusableSiblingMissing(t,r))&&this.flush();const i=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,i)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,i)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,r=this._getReusables(!t);r.indexes.length&&(this._physicalTop=r.physicalTop,t?(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length):(this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=re.debounce(this.__fixInvalidItemPositioningDebouncer,we.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=re.debounce(this.__scrollReorderDebouncer,we.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,r=this.adjustedFirstVisibleIndex===0,i=this.adjustedLastVisibleIndex===this.size-1;if(e&&!r||t&&!i){const a=t,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(a?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=re.debounce(this.__debouncerWheelAnimationFrame,Et,()=>{this._wheelAnimationFrame=!1});const r=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=re.debounce(this._debouncerIgnoreNewWheel,we.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&r<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():r>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=r}_hasScrolledAncestor(e,t,r){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,r)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,r)}_canScroll(e,t,r){return r>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||r<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),r=this.__getFocusedElement(t)||t[0];if(!r)return;const i=r.__virtualIndex-e,a=t.indexOf(r)-i;if(a>0)for(let n=0;n<a;n++)this.elementsContainer.appendChild(t[n]);else if(a<0)for(let n=t.length+a;n<t.length;n++)this.elementsContainer.insertBefore(t[n],t[0]);if(ap){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const r=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(r*t)}else{const r=this._vidxOffset,i=Wr,a=100;this._scrollTop===0?(this._vidxOffset=0,r!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<i&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex+(r-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,r!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-i&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-r)))}}}Object.setPrototypeOf(ps.prototype,vm);class bm{constructor(e){this.__adapter=new ps(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
4431
+ */const bm=1e5,Wr=1e3;class ms{constructor({createElements:e,updateElement:t,scrollTarget:r,scrollContainer:o,elementsContainer:a,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=r,this.scrollContainer=o,this.elementsContainer=a||o,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:s}])=>{const l=s.width===0&&s.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",s=>this.__onWheel(s)),this.scrollTarget.addEventListener("virtualizer-element-focused",s=>this.__onElementFocused(s)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let r=Math.floor(e/this.size*this._virtualCount);this._virtualCount-r<t?(r=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):r<t?e<Wr?(r=e,this._vidxOffset=0):(r=Wr,this._vidxOffset=e-r):this._vidxOffset=e-r,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(r),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),pt(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const r=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),r.push(o))}),this.__afterElementsUpdated(r)}_updateMetrics(e){pt();let t=0,r=0;const o=this._physicalAverageCount,a=this._physicalAverage;this._iterateItems((n,s)=>{r+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),t+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},e),this._physicalSize=this._physicalSize+t-r,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((a*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),r=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return r;const o=parseFloat(t.paddingBottom)||0,a=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,s=parseFloat(t.borderTopWidth)||0;return r+o+a+n+s}__updateElement(e,t,r){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||r)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const r=t.offsetHeight;if(r===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=re.debounce(this.__placeholderClearDebouncer,Et,()=>this._resizeHandler());else{this.__elementHeightQueue.push(r),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(a=>a!==void 0);this.__placeholderHeight=Math.round(o.reduce((a,n)=>a+n,0)/o.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(r=>r.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,r;if(e>0&&(t=this.adjustedFirstVisibleIndex,r=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),pt(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);r!==void 0&&o!==void 0&&(this._scrollTop+=r-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),pt(),this._debounce("_update",this._update,lr)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,bm)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),r=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",r.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(r),t}_assignModels(e){const t=[];this._iterateItems((r,o)=>{const a=this._physicalItems[r];a.hidden=o>=this.size,a.hidden?delete a.__lastUpdatedIndex:(a.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(a,a.__virtualIndex),t.push(a))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,r,o){o.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const r=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,r)||this.__nextFocusableSiblingMissing(t,r))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,o)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,r=this._getReusables(!t);r.indexes.length&&(this._physicalTop=r.physicalTop,t?(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length):(this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=re.debounce(this.__fixInvalidItemPositioningDebouncer,we.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=re.debounce(this.__scrollReorderDebouncer,we.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,r=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!r||t&&!o){const a=t,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(a?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=re.debounce(this.__debouncerWheelAnimationFrame,Et,()=>{this._wheelAnimationFrame=!1});const r=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=re.debounce(this._debouncerIgnoreNewWheel,we.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&r<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():r>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=r}_hasScrolledAncestor(e,t,r){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,r)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,r)}_canScroll(e,t,r){return r>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||r<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),r=this.__getFocusedElement(t)||t[0];if(!r)return;const o=r.__virtualIndex-e,a=t.indexOf(r)-o;if(a>0)for(let n=0;n<a;n++)this.elementsContainer.appendChild(t[n]);else if(a<0)for(let n=t.length+a;n<t.length;n++)this.elementsContainer.insertBefore(t[n],t[0]);if(np){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const r=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(r*t)}else{const r=this._vidxOffset,o=Wr,a=100;this._scrollTop===0?(this._vidxOffset=0,r!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex+(r-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,r!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-r)))}}}Object.setPrototypeOf(ms.prototype,gm);class ym{constructor(e){this.__adapter=new ms(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
4432
4432
  * @license
4433
4433
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4434
4434
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4436,11 +4436,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4436
4436
  * @license
4437
4437
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4438
4438
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4439
- */const ms=o=>class extends o{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,r)=>t+r)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${It()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let r=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),r=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(r=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,r));const i=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!i||e!==i.index)return;const a=i.getBoundingClientRect(),n=this.getBoundingClientRect(),s=a.bottom-n.bottom+this._viewportTotalPaddingBottom;s>0&&(this.scrollTop+=s)}_isItemSelected(e,t,r){return e instanceof Ce?!1:r&&e!==void 0&&t!==void 0?hr(r,e)===hr(r,t):e===t}__initVirtualizer(){this.__virtualizer=new bm({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(e,t){const r=this.items[t],i=this.focusedIndex,a=this._isItemSelected(r,this.selectedItem,this.itemIdPath);e.setProperties({item:r,index:t,label:this.getItemLabel(r),selected:a,renderer:this.renderer,focused:!this.loading&&i===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(r):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",t!==void 0?"option":!1),e.setAttribute("aria-selected",a.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),r instanceof Ce&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,r=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||r&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
4439
+ */const fs=i=>class extends i{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,r)=>t+r)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${It()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let r=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),r=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(r=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,r));const o=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!o||e!==o.index)return;const a=o.getBoundingClientRect(),n=this.getBoundingClientRect(),s=a.bottom-n.bottom+this._viewportTotalPaddingBottom;s>0&&(this.scrollTop+=s)}_isItemSelected(e,t,r){return e instanceof Ce?!1:r&&e!==void 0&&t!==void 0?hr(r,e)===hr(r,t):e===t}__initVirtualizer(){this.__virtualizer=new ym({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(e,t){const r=this.items[t],o=this.focusedIndex,a=this._isItemSelected(r,this.selectedItem,this.itemIdPath);e.setProperties({item:r,index:t,label:this.getItemLabel(r),selected:a,renderer:this.renderer,focused:!this.loading&&o===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(r):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",t!==void 0?"option":!1),e.setAttribute("aria-selected",a.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),r instanceof Ce&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,r=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||r&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
4440
4440
  * @license
4441
4441
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4442
4442
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4443
- */class ym extends ms(k){static get is(){return"vaadin-combo-box-scroller"}static get template(){return C`
4443
+ */class wm extends fs(k){static get is(){return"vaadin-combo-box-scroller"}static get template(){return C`
4444
4444
  <style>
4445
4445
  :host {
4446
4446
  display: block;
@@ -4467,39 +4467,39 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4467
4467
  <div id="selector">
4468
4468
  <slot></slot>
4469
4469
  </div>
4470
- `}}y(ym);/**
4470
+ `}}y(wm);/**
4471
4471
  * @license
4472
4472
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4473
4473
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4474
- */const wm=o=>class extends io(o){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
4474
+ */const xm=i=>class extends io(i){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
4475
4475
  * @license
4476
4476
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4477
4477
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4478
- */function ur(o,e,t=0){let r=e;for(const i of o.subCaches){const a=i.parentCacheIndex;if(r<=a)break;if(r<=a+i.flatSize)return ur(i,r-a-1,t+1);r-=i.flatSize}return{cache:o,item:o.items[r],index:r,page:Math.floor(r/o.pageSize),level:t}}function fs({getItemId:o},e,t,r=0,i=0){for(let a=0;a<e.items.length;a++){const n=e.items[a];if(n&&o(n)===o(t))return{cache:e,level:r,item:n,index:a,page:Math.floor(a/e.pageSize),subCache:e.getSubCache(a),flatIndex:i+e.getFlatIndex(a)}}for(const a of e.subCaches){const n=i+e.getFlatIndex(a.parentCacheIndex),s=fs({getItemId:o},a,t,r+1,n+1);if(s)return s}}function _s(o,[e,...t],r=0){e===1/0&&(e=o.size-1);const i=o.getFlatIndex(e),a=o.getSubCache(e);return a&&a.flatSize>0&&t.length?_s(a,t,r+i+1):r+i}/**
4478
+ */function ur(i,e,t=0){let r=e;for(const o of i.subCaches){const a=o.parentCacheIndex;if(r<=a)break;if(r<=a+o.flatSize)return ur(o,r-a-1,t+1);r-=o.flatSize}return{cache:i,item:i.items[r],index:r,page:Math.floor(r/i.pageSize),level:t}}function _s({getItemId:i},e,t,r=0,o=0){for(let a=0;a<e.items.length;a++){const n=e.items[a];if(n&&i(n)===i(t))return{cache:e,level:r,item:n,index:a,page:Math.floor(a/e.pageSize),subCache:e.getSubCache(a),flatIndex:o+e.getFlatIndex(a)}}for(const a of e.subCaches){const n=o+e.getFlatIndex(a.parentCacheIndex),s=_s({getItemId:i},a,t,r+1,n+1);if(s)return s}}function vs(i,[e,...t],r=0){e===1/0&&(e=i.size-1);const o=i.getFlatIndex(e),a=i.getSubCache(e);return a&&a.flatSize>0&&t.length?vs(a,t,r+o+1):r+o}/**
4479
4479
  * @license
4480
4480
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4481
4481
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4482
- */class oo{constructor(e,t,r,i,a){X(this,"context"),X(this,"pageSize"),X(this,"items",[]),X(this,"pendingRequests",{}),X(this,"__subCacheByIndex",{}),X(this,"__size",0),X(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=r,this.parentCache=i,this.parentCacheIndex=a,this.__flatSize=r||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var t;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let r=0;r<e;r++)(t=this.items)[r]||(t[r]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(r=>{parseInt(r)*this.pageSize>=this.size&&delete this.pendingRequests[r]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const r=e*this.pageSize;t.forEach((i,a)=>{const n=r+a;(this.size===void 0||n<this.size)&&(this.items[n]=i)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new oo(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((r,i)=>{const a=i.parentCacheIndex;return t>a?r+i.flatSize:r},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=ur(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:r}=ur(this,e);return{cache:t,scaledIndex:r}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
4482
+ */class oo{constructor(e,t,r,o,a){X(this,"context"),X(this,"pageSize"),X(this,"items",[]),X(this,"pendingRequests",{}),X(this,"__subCacheByIndex",{}),X(this,"__size",0),X(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=r,this.parentCache=o,this.parentCacheIndex=a,this.__flatSize=r||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var t;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let r=0;r<e;r++)(t=this.items)[r]||(t[r]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(r=>{parseInt(r)*this.pageSize>=this.size&&delete this.pendingRequests[r]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const r=e*this.pageSize;t.forEach((o,a)=>{const n=r+a;(this.size===void 0||n<this.size)&&(this.items[n]=o)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new oo(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((r,o)=>{const a=o.parentCacheIndex;return t>a?r+o.flatSize:r},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=ur(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:r}=ur(this,e);return{cache:t,scaledIndex:r}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
4483
4483
  * @license
4484
4484
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4485
4485
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4486
- */class xm extends EventTarget{constructor(e,{size:t,pageSize:r,isExpanded:i,getItemId:a,isPlaceholder:n,placeholder:s,dataProvider:l,dataProviderParams:d}){super(),X(this,"host"),X(this,"dataProvider"),X(this,"dataProviderParams"),X(this,"pageSize"),X(this,"isExpanded"),X(this,"getItemId"),X(this,"rootCache"),X(this,"placeholder"),X(this,"isPlaceholder"),this.host=e,this.pageSize=r,this.getItemId=a,this.isExpanded=i,this.placeholder=s,this.isPlaceholder=n,this.dataProvider=l,this.dataProviderParams=d,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return ur(this.rootCache,e)}getItemContext(e){return fs({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return _s(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:r,item:i}=this.getFlatIndexContext(e);this.__isItemLoaded(i)||this.__loadCachePage(t,r)}ensureFlatIndexHierarchy(e){const{cache:t,item:r,index:i}=this.getFlatIndexContext(e);if(this.__isItemLoaded(r)&&this.isExpanded(r)&&!t.getSubCache(i)){const a=t.createSubCache(i);this.__loadCachePage(a,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new oo(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let r={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(r=er(er({},r),this.dataProviderParams()));const i=(a,n)=>{e.pendingRequests[t]===i&&(n!==void 0?e.size=n:r.parentItem&&(e.size=a.length),e.setPage(t,a),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=i,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(r,i)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
4486
+ */class Cm extends EventTarget{constructor(e,{size:t,pageSize:r,isExpanded:o,getItemId:a,isPlaceholder:n,placeholder:s,dataProvider:l,dataProviderParams:d}){super(),X(this,"host"),X(this,"dataProvider"),X(this,"dataProviderParams"),X(this,"pageSize"),X(this,"isExpanded"),X(this,"getItemId"),X(this,"rootCache"),X(this,"placeholder"),X(this,"isPlaceholder"),this.host=e,this.pageSize=r,this.getItemId=a,this.isExpanded=o,this.placeholder=s,this.isPlaceholder=n,this.dataProvider=l,this.dataProviderParams=d,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return ur(this.rootCache,e)}getItemContext(e){return _s({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return vs(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:r,item:o}=this.getFlatIndexContext(e);this.__isItemLoaded(o)||this.__loadCachePage(t,r)}ensureFlatIndexHierarchy(e){const{cache:t,item:r,index:o}=this.getFlatIndexContext(e);if(this.__isItemLoaded(r)&&this.isExpanded(r)&&!t.getSubCache(o)){const a=t.createSubCache(o);this.__loadCachePage(a,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new oo(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let r={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(r=er(er({},r),this.dataProviderParams()));const o=(a,n)=>{e.pendingRequests[t]===o&&(n!==void 0?e.size=n:r.parentItem&&(e.size=a.length),e.setPage(t,a),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(r,o)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
4487
4487
  * @license
4488
4488
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4489
4489
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4490
- */const vs=o=>class extends o{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new xm(this,{placeholder:new Ce,isPlaceholder:e=>e instanceof Ce,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;const t=e.detail.index;t!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(t)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&t!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const r=this.__getItemIndexByValue(this.filteredItems,t);(r<0||!this._getItemLabel(this.filteredItems[r]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};/**
4490
+ */const gs=i=>class extends i{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new Cm(this,{placeholder:new Ce,isPlaceholder:e=>e instanceof Ce,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;const t=e.detail.index;t!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(t)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&t!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const r=this.__getItemIndexByValue(this.filteredItems,t);(r<0||!this._getItemLabel(this.filteredItems[r]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};/**
4491
4491
  * @license
4492
4492
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4493
4493
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4494
- */function Er(o){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(o);return}o.querySelector("template")&&console.warn(`WARNING: <template> inside <${o.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
4494
+ */function Er(i){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(i);return}i.querySelector("template")&&console.warn(`WARNING: <template> inside <${i.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
4495
4495
  * @license
4496
4496
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4497
4497
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4498
- */function _a(o){return o!=null}function va(o,e){return o.findIndex(t=>t instanceof Ce?!1:e(t))}const gs=o=>class extends Nt(he(Ui(Ne(ze(St(Je(o))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),Er(this),this.addController(new as(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,r){super._propertiesChanged(e,t,r),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const r=this._overlayElement;r.renderer=i=>{i.innerHTML||i.appendChild(t)},r.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,r,i,a,n,s,l,d,c){if(e&&(r&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:r?t:[],opened:r,loading:i,selectedItem:a,itemIdPath:n,focusedIndex:s,renderer:l,theme:d,itemClassNameGenerator:c}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(h){}}_openedOrItemsChanged(e,t,r,i){this._overlayOpened=e&&(i||r||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&Vi(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const r=this._getItemElements().find(i=>i.index===e);r?t.setAttribute("aria-activedescendant",r.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!ui&&this.inputElement&&this.inputElement.focus():this._onClosed();const r=this._nativeInput;r&&(r.setAttribute("aria-expanded",!!e),e?r.setAttribute("aria-controls",this._scroller.id):r.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?hr(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?hr(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{ui&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const r=this._inputElementValue;this._lastCustomValue=r;const i=new CustomEvent("custom-value-set",{detail:r,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(i),i.defaultPrevented||(this.value=r)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,r={};this.filter===t?this._filterChanged(this.filter):r.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(r.opened=!0),this.setProperties(r)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(_a(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(r=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),r=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&r===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const r=t?t[this._focusedIndex]:null,i=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&i>=0&&(this.selectedItem=e[i]);const a=this.__getItemIndexByValue(e,this._getItemValue(r));a>-1?this._focusedIndex=a:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!_a(t)?-1:va(e,r=>this._getItemValue(r)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:va(e,r=>this._getItemLabel(r).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Ce)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(vr()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
4498
+ */function va(i){return i!=null}function ga(i,e){return i.findIndex(t=>t instanceof Ce?!1:e(t))}const bs=i=>class extends Nt(he(Ui(Ne(ze(St(Je(i))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),Er(this),this.addController(new ns(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,r){super._propertiesChanged(e,t,r),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const r=this._overlayElement;r.renderer=o=>{o.innerHTML||o.appendChild(t)},r.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,r,o,a,n,s,l,d,c){if(e&&(r&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:r?t:[],opened:r,loading:o,selectedItem:a,itemIdPath:n,focusedIndex:s,renderer:l,theme:d,itemClassNameGenerator:c}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(h){}}_openedOrItemsChanged(e,t,r,o){this._overlayOpened=e&&(o||r||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&Vi(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const r=this._getItemElements().find(o=>o.index===e);r?t.setAttribute("aria-activedescendant",r.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!ui&&this.inputElement&&this.inputElement.focus():this._onClosed();const r=this._nativeInput;r&&(r.setAttribute("aria-expanded",!!e),e?r.setAttribute("aria-controls",this._scroller.id):r.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?hr(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?hr(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{ui&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const r=this._inputElementValue;this._lastCustomValue=r;const o=new CustomEvent("custom-value-set",{detail:r,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=r)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,r={};this.filter===t?this._filterChanged(this.filter):r.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(r.opened=!0),this.setProperties(r)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(va(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(r=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),r=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&r===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const r=t?t[this._focusedIndex]:null,o=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=e[o]);const a=this.__getItemIndexByValue(e,this._getItemValue(r));a>-1?this._focusedIndex=a:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!va(t)?-1:ga(e,r=>this._getItemValue(r)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:ga(e,r=>this._getItemLabel(r).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Ce)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(vr()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
4499
4499
  * @license
4500
4500
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4501
4501
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4502
- */g("vaadin-combo-box",Cr,{moduleId:"vaadin-combo-box-styles"});class Cm extends vs(gs(wm(xr(z(oe(k)))))){static get is(){return"vaadin-combo-box"}static get template(){return C`
4502
+ */g("vaadin-combo-box",Cr,{moduleId:"vaadin-combo-box-styles"});class km extends gs(bs(xm(xr(z(oe(k)))))){static get is(){return"vaadin-combo-box"}static get template(){return C`
4503
4503
  <style>
4504
4504
  :host([opened]) {
4505
4505
  pointer-events: auto;
@@ -4544,11 +4544,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4544
4544
  ></vaadin-combo-box-overlay>
4545
4545
 
4546
4546
  <slot name="tooltip"></slot>
4547
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Dt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Ot(this.inputElement,this._labelController)),this._tooltipController=new ve(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}y(Cm);/**
4547
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Dt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Ot(this.inputElement,this._labelController)),this._tooltipController=new ve(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}y(km);/**
4548
4548
  * @license
4549
4549
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4550
4550
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4551
- */const km=f`
4551
+ */const Em=f`
4552
4552
  :host {
4553
4553
  font-size: var(--lumo-font-size-xxs);
4554
4554
  line-height: 1;
@@ -4637,18 +4637,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4637
4637
  -webkit-text-fill-color: var(--lumo-disabled-text-color);
4638
4638
  pointer-events: none;
4639
4639
  }
4640
- `;g("vaadin-multi-select-combo-box-chip",[Yi,km],{moduleId:"lumo-multi-select-combo-box-chip"});/**
4640
+ `;g("vaadin-multi-select-combo-box-chip",[Yi,Em],{moduleId:"lumo-multi-select-combo-box-chip"});/**
4641
4641
  * @license
4642
4642
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4643
4643
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4644
- */const Em=f`
4644
+ */const Tm=f`
4645
4645
  @media (any-hover: hover) {
4646
4646
  :host(:hover[readonly]) {
4647
4647
  background-color: transparent;
4648
4648
  cursor: default;
4649
4649
  }
4650
4650
  }
4651
- `;g("vaadin-multi-select-combo-box-item",[kr,ss,Em],{moduleId:"lumo-multi-select-combo-box-item"});g("vaadin-multi-select-combo-box-overlay",[Ze,yr,ds,ls,cs,f`
4651
+ `;g("vaadin-multi-select-combo-box-item",[kr,ls,Tm],{moduleId:"lumo-multi-select-combo-box-item"});g("vaadin-multi-select-combo-box-overlay",[Ze,yr,cs,ds,hs,f`
4652
4652
  :host {
4653
4653
  --_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
4654
4654
  --_vaadin-multi-select-combo-box-items-container-border-style: solid;
@@ -4657,7 +4657,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4657
4657
  :host([auto-expand-vertically]) {
4658
4658
  padding-block: var(--lumo-space-xs);
4659
4659
  }
4660
- `,{moduleId:"lumo-multi-select-combo-box-container"});const Tm=f`
4660
+ `,{moduleId:"lumo-multi-select-combo-box-container"});const Am=f`
4661
4661
  :host([has-value]) {
4662
4662
  padding-inline-start: 0;
4663
4663
  }
@@ -4710,11 +4710,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4710
4710
  color: var(--lumo-contrast-60pct);
4711
4711
  cursor: var(--lumo-clickable-cursor);
4712
4712
  }
4713
- `;g("vaadin-multi-select-combo-box",[Le,Tm],{moduleId:"lumo-multi-select-combo-box"});/**
4713
+ `;g("vaadin-multi-select-combo-box",[Le,Am],{moduleId:"lumo-multi-select-combo-box"});/**
4714
4714
  * @license
4715
4715
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4716
4716
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4717
- */class Am extends z(k){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return C`
4717
+ */class Pm extends z(k){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return C`
4718
4718
  <style>
4719
4719
  :host {
4720
4720
  display: inline-flex;
@@ -4743,7 +4743,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4743
4743
  </style>
4744
4744
  <div part="label">[[label]]</div>
4745
4745
  <div part="remove-button" on-click="_onRemoveClick"></div>
4746
- `}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}y(Am);/**
4746
+ `}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}y(Pm);/**
4747
4747
  * @license
4748
4748
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4749
4749
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4757,11 +4757,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4757
4757
  :host([auto-expand-vertically]) #wrapper {
4758
4758
  flex-wrap: wrap;
4759
4759
  }
4760
- `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let Yt;class Pm extends Hn{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!Yt){Yt=super.template.cloneNode(!0);const e=Yt.content,t=e.querySelectorAll("slot"),r=document.createElement("div");r.setAttribute("id","wrapper"),e.insertBefore(r,t[2]),r.appendChild(t[0]),r.appendChild(t[1])}return Yt}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}y(Pm);/**
4760
+ `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let Yt;class Im extends Un{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!Yt){Yt=super.template.cloneNode(!0);const e=Yt.content,t=e.querySelectorAll("slot"),r=document.createElement("div");r.setAttribute("id","wrapper"),e.insertBefore(r,t[2]),r.appendChild(t[0]),r.appendChild(t[1])}return Yt}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}y(Im);/**
4761
4761
  * @license
4762
4762
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4763
4763
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4764
- */class Im extends hs(z(ie(k))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return C`
4764
+ */class Sm extends us(z(ie(k))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return C`
4765
4765
  <style>
4766
4766
  :host {
4767
4767
  display: block;
@@ -4775,11 +4775,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4775
4775
  <div part="content">
4776
4776
  <slot></slot>
4777
4777
  </div>
4778
- `}}y(Im);/**
4778
+ `}}y(Sm);/**
4779
4779
  * @license
4780
4780
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4781
4781
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4782
- */const Sm=f`
4782
+ */const Dm=f`
4783
4783
  #overlay {
4784
4784
  width: var(
4785
4785
  --vaadin-multi-select-combo-box-overlay-width,
@@ -4792,17 +4792,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4792
4792
  flex-direction: column;
4793
4793
  height: 100%;
4794
4794
  }
4795
- `;g("vaadin-multi-select-combo-box-overlay",[Mt,Sm],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class Dm extends us(zt(ie(z(k)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return C`
4795
+ `;g("vaadin-multi-select-combo-box-overlay",[Mt,Dm],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class Om extends ps(zt(ie(z(k)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return C`
4796
4796
  <div id="backdrop" part="backdrop" hidden></div>
4797
4797
  <div part="overlay" id="overlay">
4798
4798
  <div part="loader"></div>
4799
4799
  <div part="content" id="content"><slot></slot></div>
4800
4800
  </div>
4801
- `}}y(Dm);/**
4801
+ `}}y(Om);/**
4802
4802
  * @license
4803
4803
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4804
4804
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4805
- */class Om extends ms(k){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return C`
4805
+ */class Mm extends fs(k){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return C`
4806
4806
  <style>
4807
4807
  :host {
4808
4808
  display: block;
@@ -4829,11 +4829,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4829
4829
  <div id="selector">
4830
4830
  <slot></slot>
4831
4831
  </div>
4832
- `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,r){return e instanceof Ce||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,r)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}y(Om);/**
4832
+ `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,r){return e instanceof Ce||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,r)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}y(Mm);/**
4833
4833
  * @license
4834
4834
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4835
4835
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4836
- */class Mm extends vs(gs(z(k))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return C`
4836
+ */class zm extends gs(bs(z(k))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return C`
4837
4837
  <style>
4838
4838
  :host([opened]) {
4839
4839
  pointer-events: auto;
@@ -4851,15 +4851,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4851
4851
  no-vertical-overlap
4852
4852
  restore-focus-node="[[inputElement]]"
4853
4853
  ></vaadin-multi-select-combo-box-overlay>
4854
- `}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(r=>this._comboBox._findIndex(r,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof Ce||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}y(Mm);/**
4854
+ `}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(r=>this._comboBox._findIndex(r,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof Ce||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}y(zm);/**
4855
4855
  * @license
4856
4856
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4857
4857
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4858
- */const jt=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),bs=H(o=>class extends o{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),jt.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,jt.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),jt.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&jt.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4858
+ */const jt=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),ys=H(i=>class extends i{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),jt.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,jt.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),jt.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&jt.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4859
4859
  * @license
4860
4860
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4861
4861
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4862
- */const zm=f`
4862
+ */const Nm=f`
4863
4863
  :host {
4864
4864
  --input-min-width: var(--vaadin-multi-select-combo-box-input-min-width, 4em);
4865
4865
  --_chip-min-width: var(--vaadin-multi-select-combo-box-chip-min-width, 50px);
@@ -4897,7 +4897,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4897
4897
  :host([auto-expand-horizontally]) [class$='container'] {
4898
4898
  width: auto;
4899
4899
  }
4900
- `;g("vaadin-multi-select-combo-box",[Cr,zm],{moduleId:"vaadin-multi-select-combo-box-styles"});class Nm extends bs(xr(z(oe(k)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return C`
4900
+ `;g("vaadin-multi-select-combo-box",[Cr,Nm],{moduleId:"vaadin-multi-select-combo-box-styles"});class Lm extends ys(xr(z(oe(k)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return C`
4901
4901
  <div class="vaadin-multi-select-combo-box-container">
4902
4902
  <div part="label">
4903
4903
  <slot name="label"></slot>
@@ -4973,7 +4973,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4973
4973
  color: transparent !important;
4974
4974
  forced-color-adjust: none;
4975
4975
  }
4976
- `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Dt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Ot(this.inputElement,this._labelController)),this._tooltipController=new ve(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new J(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),Er(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),Xt(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,r){if(r&&e){for(let i=0;i<t.length;i++)if(t[i]&&t[i][r]===e[r])return i;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,r){const i=t?"selected":"deselected",a=this.i18n.total.replace("{count}",r||0);Xt(`${e} ${this.i18n[i]} ${a}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const r=this._getItemLabel(e);this.__announceItem(r,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],r=this._findIndex(e,t,this.itemIdPath),i=this._getItemLabel(e);let a=!1;if(r!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===i.toLowerCase()){this.__clearInternalValue();return}t.splice(r,1)}else t.push(e),a=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(i,a,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,r){e?r||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const r=this._getItemLabel(e);return t.label=r,t.setAttribute("title",r),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",i=>this._onItemRemoved(i)),t.addEventListener("mousedown",i=>this._preventBlur(i)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const r=getComputedStyle(e),i=e.clientWidth+parseInt(r.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",i}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,r=parseInt(getComputedStyle(this.inputElement).flexBasis);let i=t-r;e.length>1&&(i-=this.__getOverflowWidth());const a=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let d=e.length-1,c=null;d>=0;d--){const h=this.__createChip(e[d]);this.insertBefore(h,c),c=h,n.unshift(h)}const s=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<r){for(;n.length>1;){n.pop().remove(),s.unshift(e.pop());const d=s.length>0?r+this.__getOverflowWidth():r;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=d)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(a,i)}px`)}this._overflowItems=s;return}for(let n=e.length-1,s=null;n>=0;n--){const l=this.__createChip(e[n]);if(this.insertBefore(l,s),!this.autoExpandVertically&&this.$.chips.clientWidth>i)if(s===null)l.style.maxWidth=`${Math.max(a,i)}px`;else{l.remove();break}e.pop(),s=l}this._overflowItems=e}__updateOverflowChip(e,t,r,i){if(e){const a=t.length;e.label=`${a}`,e.setAttribute("count",`${a}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",a===0),e.disabled=r,e.readonly=i}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let i;this.__isRTL?r===e.length-1?i=-1:r>-1&&(i=r+1):r===-1?i=e.length-1:r>0&&(i=r-1),i!==void 0&&(this._focusedChipIndex=i)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let i;this.__isRTL?r===-1?i=e.length-1:r>0&&(i=r-1):r===e.length-1?i=-1:r>-1&&(i=r+1),i!==void 0&&(this._focusedChipIndex=i)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const r=this._chips;if(r.forEach((i,a)=>{i.toggleAttribute("focused",a===e)}),e>-1){const i=r[e].item,a=this._getItemLabel(i);Xt(`${a} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}y(Nm);g("vaadin-notification-card",f`
4976
+ `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Dt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Ot(this.inputElement,this._labelController)),this._tooltipController=new ve(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new J(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),Er(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),Xt(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,r){if(r&&e){for(let o=0;o<t.length;o++)if(t[o]&&t[o][r]===e[r])return o;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,r){const o=t?"selected":"deselected",a=this.i18n.total.replace("{count}",r||0);Xt(`${e} ${this.i18n[o]} ${a}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const r=this._getItemLabel(e);this.__announceItem(r,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],r=this._findIndex(e,t,this.itemIdPath),o=this._getItemLabel(e);let a=!1;if(r!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}t.splice(r,1)}else t.push(e),a=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(o,a,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,r){e?r||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const r=this._getItemLabel(e);return t.label=r,t.setAttribute("title",r),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",o=>this._onItemRemoved(o)),t.addEventListener("mousedown",o=>this._preventBlur(o)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const r=getComputedStyle(e),o=e.clientWidth+parseInt(r.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",o}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,r=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=t-r;e.length>1&&(o-=this.__getOverflowWidth());const a=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let d=e.length-1,c=null;d>=0;d--){const h=this.__createChip(e[d]);this.insertBefore(h,c),c=h,n.unshift(h)}const s=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<r){for(;n.length>1;){n.pop().remove(),s.unshift(e.pop());const d=s.length>0?r+this.__getOverflowWidth():r;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=d)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(a,o)}px`)}this._overflowItems=s;return}for(let n=e.length-1,s=null;n>=0;n--){const l=this.__createChip(e[n]);if(this.insertBefore(l,s),!this.autoExpandVertically&&this.$.chips.clientWidth>o)if(s===null)l.style.maxWidth=`${Math.max(a,o)}px`;else{l.remove();break}e.pop(),s=l}this._overflowItems=e}__updateOverflowChip(e,t,r,o){if(e){const a=t.length;e.label=`${a}`,e.setAttribute("count",`${a}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",a===0),e.disabled=r,e.readonly=o}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let o;this.__isRTL?r===e.length-1?o=-1:r>-1&&(o=r+1):r===-1?o=e.length-1:r>0&&(o=r-1),o!==void 0&&(this._focusedChipIndex=o)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let o;this.__isRTL?r===-1?o=e.length-1:r>0&&(o=r-1):r===e.length-1?o=-1:r>-1&&(o=r+1),o!==void 0&&(this._focusedChipIndex=o)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const r=this._chips;if(r.forEach((o,a)=>{o.toggleAttribute("focused",a===e)}),e>-1){const o=r[e].item,a=this._getItemLabel(o);Xt(`${a} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}y(Lm);g("vaadin-notification-card",f`
4977
4977
  :host {
4978
4978
  position: relative;
4979
4979
  margin: var(--lumo-space-s);
@@ -5191,11 +5191,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5191
5191
  * @license
5192
5192
  * Copyright 2020 Google LLC
5193
5193
  * SPDX-License-Identifier: BSD-3-Clause
5194
- */const Lm=(o,e)=>(o==null?void 0:o._$litType$)!==void 0;/**
5194
+ */const Fm=(i,e)=>(i==null?void 0:i._$litType$)!==void 0;/**
5195
5195
  * @license
5196
5196
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5197
5197
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5198
- */class Fm extends jn(z(oe(k))){static get template(){return C`
5198
+ */class Bm extends Gn(z(oe(k))){static get template(){return C`
5199
5199
  <style>
5200
5200
  :host {
5201
5201
  position: fixed;
@@ -5262,7 +5262,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5262
5262
  <div region="bottom-end"><slot name="bottom-end"></slot></div>
5263
5263
  </div>
5264
5264
  <div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
5265
- `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),Gi&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight;t&&r>e?this.style.bottom=`${r-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class Bm extends z(k){static get template(){return C`
5265
+ `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),Gi&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight;t&&r>e?this.style.bottom=`${r-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class Vm extends z(k){static get template(){return C`
5266
5266
  <style>
5267
5267
  :host {
5268
5268
  display: block;
@@ -5291,7 +5291,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5291
5291
  }
5292
5292
  </style>
5293
5293
  <vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
5294
- `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return Lm(e)?me._createAndShowNotification(r=>{Wa(e,r)},t):me._createAndShowNotification(r=>{r.innerText=e},t)}static _createAndShowNotification(e,t){const r=document.createElement(me.is);return t&&Number.isFinite(t.duration)&&(r.duration=t.duration),t&&t.position&&(r.position=t.position),t&&t.theme&&r.setAttribute("theme",t.theme),r.renderer=e,document.body.appendChild(r),r.opened=!0,r.addEventListener("opened-changed",i=>{i.detail.value||r.remove()}),r}get _container(){return me._container||(me._container=document.createElement("vaadin-notification-container"),document.body.appendChild(me._container)),me._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Er(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,r){if(!r)return;const i=this._oldRenderer!==e;this._oldRenderer=e,i&&(r.innerHTML="",delete r._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}y(Fm);y(Bm);y(me);const ys=f`
5294
+ `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return Fm(e)?me._createAndShowNotification(r=>{qa(e,r)},t):me._createAndShowNotification(r=>{r.innerText=e},t)}static _createAndShowNotification(e,t){const r=document.createElement(me.is);return t&&Number.isFinite(t.duration)&&(r.duration=t.duration),t&&t.position&&(r.position=t.position),t&&t.theme&&r.setAttribute("theme",t.theme),r.renderer=e,document.body.appendChild(r),r.opened=!0,r.addEventListener("opened-changed",o=>{o.detail.value||r.remove()}),r}get _container(){return me._container||(me._container=document.createElement("vaadin-notification-container"),document.body.appendChild(me._container)),me._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Er(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,r){if(!r)return;const o=this._oldRenderer!==e;this._oldRenderer=e,o&&(r.innerHTML="",delete r._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}y(Bm);y(Vm);y(me);const ws=f`
5295
5295
  :host {
5296
5296
  -webkit-tap-highlight-color: transparent;
5297
5297
  --_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
@@ -5305,11 +5305,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5305
5305
  margin: var(--lumo-space-s) var(--lumo-border-radius-m);
5306
5306
  background-color: var(--lumo-contrast-10pct);
5307
5307
  }
5308
- `;g("vaadin-list-box",ys,{moduleId:"lumo-list-box"});/**
5308
+ `;g("vaadin-list-box",ws,{moduleId:"lumo-list-box"});/**
5309
5309
  * @license
5310
5310
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5311
5311
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5312
- */g("vaadin-select-item",kr,{moduleId:"lumo-select-item"});g("vaadin-select-list-box",ys,{moduleId:"lumo-select-list-box"});const Vm=f`
5312
+ */g("vaadin-select-item",kr,{moduleId:"lumo-select-item"});g("vaadin-select-list-box",ws,{moduleId:"lumo-select-list-box"});const Rm=f`
5313
5313
  :host(:not([theme*='align'])) ::slotted([slot='value']) {
5314
5314
  text-align: start;
5315
5315
  }
@@ -5352,7 +5352,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5352
5352
  --_lumo-selected-item-height: var(--lumo-size-s);
5353
5353
  --_lumo-selected-item-padding: 0;
5354
5354
  }
5355
- `;g("vaadin-select",[Le,Vm],{moduleId:"lumo-select"});g("vaadin-select-value-button",f`
5355
+ `;g("vaadin-select",[Le,Rm],{moduleId:"lumo-select"});g("vaadin-select-value-button",f`
5356
5356
  :host {
5357
5357
  font-family: var(--lumo-font-family);
5358
5358
  font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
@@ -5371,7 +5371,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5371
5371
  ::slotted(*:hover) {
5372
5372
  background-color: transparent;
5373
5373
  }
5374
- `,{moduleId:"lumo-select-value-button"});const Rm=f`
5374
+ `,{moduleId:"lumo-select-value-button"});const $m=f`
5375
5375
  :host {
5376
5376
  --_lumo-item-selected-icon-display: block;
5377
5377
  }
@@ -5407,15 +5407,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5407
5407
  :host([theme~='align-center']) {
5408
5408
  text-align: center;
5409
5409
  }
5410
- `;g("vaadin-select-overlay",[qi,Rm],{moduleId:"lumo-select-overlay"});/**
5410
+ `;g("vaadin-select-overlay",[qi,$m],{moduleId:"lumo-select-overlay"});/**
5411
5411
  * @license
5412
5412
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5413
5413
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5414
- */const ws=o=>class extends Li(Ne(o)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(e){return!this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}};/**
5414
+ */const xs=i=>class extends Li(Ne(i)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(e){return!this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}};/**
5415
5415
  * @license
5416
5416
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5417
5417
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5418
- */class $m extends ws(z(ie(k))){static get is(){return"vaadin-select-item"}static get template(){return C`
5418
+ */class Hm extends xs(z(ie(k))){static get is(){return"vaadin-select-item"}static get template(){return C`
5419
5419
  <style>
5420
5420
  :host {
5421
5421
  display: inline-block;
@@ -5429,23 +5429,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5429
5429
  <div part="content">
5430
5430
  <slot></slot>
5431
5431
  </div>
5432
- `}ready(){super.ready(),this.setAttribute("role","option")}}y($m);/**
5432
+ `}ready(){super.ready(),this.setAttribute("role","option")}}y(Hm);/**
5433
5433
  * @license
5434
5434
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
5435
5435
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5436
- */function xs(o,e){const{scrollLeft:t}=o;return e!=="rtl"?t:o.scrollWidth-o.clientWidth+t}function Hm(o,e,t){e!=="rtl"?o.scrollLeft=t:o.scrollLeft=o.clientWidth-o.scrollWidth+t}/**
5436
+ */function Cs(i,e){const{scrollLeft:t}=i;return e!=="rtl"?t:i.scrollWidth-i.clientWidth+t}function Um(i,e,t){e!=="rtl"?i.scrollLeft=t:i.scrollLeft=i.clientWidth-i.scrollWidth+t}/**
5437
5437
  * @license
5438
5438
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
5439
5439
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5440
- */const Um=o=>class extends ze(o){get focused(){return(this._getItems()||[]).find(Vi)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,r=>!di(r));t>=0&&this._focus(t)}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:t}=e,r=this._getItems()||[],i=r.indexOf(this.focused);let a,n;const s=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(t)?(n=-s,a=i-s):this.__isNextKey(t)?(n=s,a=i+s):t==="Home"?(n=1,a=0):t==="End"&&(n=-1,a=r.length-1),a=this._getAvailableIndex(r,a,n,l=>!di(l)),a>=0&&(e.preventDefault(),this._focus(a,!0))}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,t=!1){const r=this._getItems();this._focusItem(r[e],t)}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""))}_getAvailableIndex(e,t,r,i){const a=e.length;let n=t;for(let s=0;typeof n=="number"&&s<a;s+=1,n+=r||1){n<0?n=a-1:n>=a&&(n=0);const l=e[n];if(!l.hasAttribute("disabled")&&this.__isMatchingItem(l,i))return n}return-1}__isMatchingItem(e,t){return typeof t=="function"?t(e):!0}};/**
5440
+ */const Wm=i=>class extends ze(i){get focused(){return(this._getItems()||[]).find(Vi)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,r=>!di(r));t>=0&&this._focus(t)}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:t}=e,r=this._getItems()||[],o=r.indexOf(this.focused);let a,n;const s=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(t)?(n=-s,a=o-s):this.__isNextKey(t)?(n=s,a=o+s):t==="Home"?(n=1,a=0):t==="End"&&(n=-1,a=r.length-1),a=this._getAvailableIndex(r,a,n,l=>!di(l)),a>=0&&(e.preventDefault(),this._focus(a,!0))}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,t=!1){const r=this._getItems();this._focusItem(r[e],t)}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""))}_getAvailableIndex(e,t,r,o){const a=e.length;let n=t;for(let s=0;typeof n=="number"&&s<a;s+=1,n+=r||1){n<0?n=a-1:n>=a&&(n=0);const l=e[n];if(!l.hasAttribute("disabled")&&this.__isMatchingItem(l,o))return n}return-1}__isMatchingItem(e,t){return typeof t=="function"?t(e):!0}};/**
5441
5441
  * @license
5442
5442
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5443
5443
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5444
- */const Cs=o=>class extends Um(o){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],t=this._getAvailableIndex(e,0,null,r=>r.tabIndex===0&&!di(r));t>=0?this._focus(t):super.focus()}ready(){super.ready(),this.addEventListener("click",t=>this._onClick(t));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Oi(e,()=>{this._setItems(this._filterItems(An(this)))})}_getItems(){return this.items}_enhanceItems(e,t,r,i){if(!i&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(n=>{t?n.setAttribute("orientation",t):n.removeAttribute("orientation")}),this._setFocusable(r<0||!r?0:r);const a=e[r];e.forEach(n=>{n.selected=n===a}),a&&!a.disabled&&this._scrollToItem(r)}}_filterItems(e){return e.filter(t=>t._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const t=this._filterItems(e.composedPath())[0];let r;t&&!t.disabled&&(r=this.items.indexOf(t))>=0&&(this.selected=r)}_searchKey(e,t){this._searchReset=re.debounce(this._searchReset,we.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(i=>this.__isMatchingKey(i))||(this._searchBuf=t.toLowerCase());const r=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,r,1,i=>this.__isMatchingKey(i)&&getComputedStyle(i).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const t=e.key,r=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const i=this._searchKey(r,t);i>=0&&this._focus(i);return}super._onKeyDown(e)}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const t=this.items[e];this.items.forEach(r=>{r.tabIndex=r===t?0:-1})}_focus(e){this.items.forEach((t,r)=>{t.focused=r===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const r=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],i=this._scrollerElement.getBoundingClientRect(),a=(this.items[e+1]||t).getBoundingClientRect(),n=(this.items[e-1]||t).getBoundingClientRect();let s=0;!this._isRTL&&a[r[1]]>=i[r[1]]||this._isRTL&&a[r[1]]<=i[r[1]]?s=a[r[1]]-i[r[1]]:(!this._isRTL&&n[r[0]]<=i[r[0]]||this._isRTL&&n[r[0]]>=i[r[0]])&&(s=n[r[0]]-i[r[0]]),this._scroll(s)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",r=xs(this._scrollerElement,t)+e;Hm(this._scrollerElement,t,r)}}};/**
5444
+ */const ks=i=>class extends Wm(i){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],t=this._getAvailableIndex(e,0,null,r=>r.tabIndex===0&&!di(r));t>=0?this._focus(t):super.focus()}ready(){super.ready(),this.addEventListener("click",t=>this._onClick(t));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Oi(e,()=>{this._setItems(this._filterItems(Pn(this)))})}_getItems(){return this.items}_enhanceItems(e,t,r,o){if(!o&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(n=>{t?n.setAttribute("orientation",t):n.removeAttribute("orientation")}),this._setFocusable(r<0||!r?0:r);const a=e[r];e.forEach(n=>{n.selected=n===a}),a&&!a.disabled&&this._scrollToItem(r)}}_filterItems(e){return e.filter(t=>t._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const t=this._filterItems(e.composedPath())[0];let r;t&&!t.disabled&&(r=this.items.indexOf(t))>=0&&(this.selected=r)}_searchKey(e,t){this._searchReset=re.debounce(this._searchReset,we.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(o=>this.__isMatchingKey(o))||(this._searchBuf=t.toLowerCase());const r=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,r,1,o=>this.__isMatchingKey(o)&&getComputedStyle(o).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const t=e.key,r=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const o=this._searchKey(r,t);o>=0&&this._focus(o);return}super._onKeyDown(e)}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const t=this.items[e];this.items.forEach(r=>{r.tabIndex=r===t?0:-1})}_focus(e){this.items.forEach((t,r)=>{t.focused=r===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const r=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],o=this._scrollerElement.getBoundingClientRect(),a=(this.items[e+1]||t).getBoundingClientRect(),n=(this.items[e-1]||t).getBoundingClientRect();let s=0;!this._isRTL&&a[r[1]]>=o[r[1]]||this._isRTL&&a[r[1]]<=o[r[1]]?s=a[r[1]]-o[r[1]]:(!this._isRTL&&n[r[0]]<=o[r[0]]||this._isRTL&&n[r[0]]>=o[r[0]])&&(s=n[r[0]]-o[r[0]]),this._scroll(s)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",r=Cs(this._scrollerElement,t)+e;Um(this._scrollerElement,t,r)}}};/**
5445
5445
  * @license
5446
5446
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5447
5447
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5448
- */class Wm extends Cs(z(ie(he(k)))){static get is(){return"vaadin-select-list-box"}static get template(){return C`
5448
+ */class qm extends ks(z(ie(he(k)))){static get is(){return"vaadin-select-list-box"}static get template(){return C`
5449
5449
  <style>
5450
5450
  :host {
5451
5451
  display: flex;
@@ -5465,15 +5465,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5465
5465
  <div part="items">
5466
5466
  <slot></slot>
5467
5467
  </div>
5468
- `}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}y(Wm);/**
5468
+ `}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}y(qm);/**
5469
5469
  * @license
5470
5470
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5471
5471
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5472
- */const qm=o=>class extends Ki(zt(ie(o))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,t){if(e&&t){const r="--vaadin-select-overlay-width",i=getComputedStyle(t).getPropertyValue(r);i===""?this.style.removeProperty(r):this.style.setProperty(r,i)}}};/**
5472
+ */const Ym=i=>class extends Ki(zt(ie(i))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,t){if(e&&t){const r="--vaadin-select-overlay-width",o=getComputedStyle(t).getPropertyValue(r);o===""?this.style.removeProperty(r):this.style.setProperty(r,o)}}};/**
5473
5473
  * @license
5474
5474
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5475
5475
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5476
- */const Ym=f`
5476
+ */const jm=f`
5477
5477
  :host {
5478
5478
  align-items: flex-start;
5479
5479
  justify-content: flex-start;
@@ -5488,18 +5488,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5488
5488
  outline: 3px solid;
5489
5489
  }
5490
5490
  }
5491
- `;g("vaadin-select-overlay",[Mt,Ym],{moduleId:"vaadin-select-overlay-styles"});class jm extends qm(z(k)){static get is(){return"vaadin-select-overlay"}static get template(){return C`
5491
+ `;g("vaadin-select-overlay",[Mt,jm],{moduleId:"vaadin-select-overlay-styles"});class Gm extends Ym(z(k)){static get is(){return"vaadin-select-overlay"}static get template(){return C`
5492
5492
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
5493
5493
  <div part="overlay" id="overlay" tabindex="0">
5494
5494
  <div part="content" id="content">
5495
5495
  <slot></slot>
5496
5496
  </div>
5497
5497
  </div>
5498
- `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}y(jm);/**
5498
+ `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}y(Gm);/**
5499
5499
  * @license
5500
5500
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5501
5501
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5502
- */const Gm=f`
5502
+ */const Km=f`
5503
5503
  :host {
5504
5504
  display: inline-block;
5505
5505
  position: relative;
@@ -5545,17 +5545,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5545
5545
  * @license
5546
5546
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5547
5547
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5548
- */g("vaadin-select-value-button",Gm,{moduleId:"vaadin-select-value-button-styles"});class Km extends Xi(z(k)){static get is(){return"vaadin-select-value-button"}static get template(){return C`
5548
+ */g("vaadin-select-value-button",Km,{moduleId:"vaadin-select-value-button-styles"});class Xm extends Xi(z(k)){static get is(){return"vaadin-select-value-button"}static get template(){return C`
5549
5549
  <div class="vaadin-button-container">
5550
5550
  <span part="label">
5551
5551
  <slot></slot>
5552
5552
  </span>
5553
5553
  </div>
5554
- `}}y(Km);/**
5554
+ `}}y(Xm);/**
5555
5555
  * @license
5556
5556
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
5557
5557
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5558
- */const Xm=f`
5558
+ */const Qm=f`
5559
5559
  .sr-only {
5560
5560
  border: 0 !important;
5561
5561
  clip: rect(1px, 1px, 1px, 1px) !important;
@@ -5573,15 +5573,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5573
5573
  * @license
5574
5574
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
5575
5575
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5576
- */class Qm extends J{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,r)=>{r._setFocusElement(t),r.ariaTarget=t,r.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
5576
+ */class Jm extends J{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,r)=>{r._setFocusElement(t),r.ariaTarget=t,r.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
5577
5577
  * @license
5578
5578
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5579
5579
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5580
- */const Jm=o=>class extends Nt(gr(Ri(ze(br(o))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${It()}`,this._srLabelController=new Vn(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new Qm(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new ro(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new ve(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),e.addEventListener("click",t=>{const r=t.composedPath().find(i=>i._hasVaadinItemMixin);this.__dispatchChangePending=!!(r&&r.value!==void 0&&r.value!==this.value),this.opened=!1},!0),this.__lastMenuElement=e)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),t!==void 0&&!this.__dispatchChangePending&&this.validate()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(e){e.preventDefault()}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const t=this._menuElement.selected,r=t!==void 0?t:-1,i=this._menuElement._searchKey(r,e.key);i>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=i)}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1)}_openedChanged(e,t,r){if(!(!t||!r)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),t.style.setProperty("--vaadin-select-text-field-width",`${r.offsetWidth}px`);const i=this.hasAttribute("focus-ring");this._openedWithFocusRing=i,i&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e}}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(e){let t;const r=e.getAttribute("label");r?t=this.__createItemElement({label:r}):t=e.cloneNode(!0),t._sourceItem=e,this.__appendValueItemElement(t,this.focusElement),t.selected=!0}__createItemElement(e){const t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e)}_setCustomAriaLabelledBy(e){const t=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(t,!0)}_getLabelIdWithItemId(e){const t=this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:"";return e?`${e} ${t}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const t=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){const i=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(i,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const r=t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};We(e,"aria-labelledby",r),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(e){if(!e)return!1;const t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),r=e.childElementCount>0;return t||r}_updateSelectedItem(e,t){if(t){const r=e==null?e:e.toString();this._menuElement.selected=t.reduce((i,a,n)=>i===void 0&&a.value===r?n:i,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||this.items.length===0){e.textContent="";return}let r=e.firstElementChild;r||(r=document.createElement("vaadin-select-list-box"),e.appendChild(r)),r.textContent="",this.items.forEach(i=>{r.appendChild(this.__createItemElement(i))})}__dispatchChange(){return tr(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1})}};/**
5580
+ */const Zm=i=>class extends Nt(gr(Ri(ze(br(i))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${It()}`,this._srLabelController=new Rn(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new Jm(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new ro(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new ve(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),e.addEventListener("click",t=>{const r=t.composedPath().find(o=>o._hasVaadinItemMixin);this.__dispatchChangePending=!!(r&&r.value!==void 0&&r.value!==this.value),this.opened=!1},!0),this.__lastMenuElement=e)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),t!==void 0&&!this.__dispatchChangePending&&this.validate()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(e){e.preventDefault()}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const t=this._menuElement.selected,r=t!==void 0?t:-1,o=this._menuElement._searchKey(r,e.key);o>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=o)}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1)}_openedChanged(e,t,r){if(!(!t||!r)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),t.style.setProperty("--vaadin-select-text-field-width",`${r.offsetWidth}px`);const o=this.hasAttribute("focus-ring");this._openedWithFocusRing=o,o&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e}}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(e){let t;const r=e.getAttribute("label");r?t=this.__createItemElement({label:r}):t=e.cloneNode(!0),t._sourceItem=e,this.__appendValueItemElement(t,this.focusElement),t.selected=!0}__createItemElement(e){const t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e)}_setCustomAriaLabelledBy(e){const t=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(t,!0)}_getLabelIdWithItemId(e){const t=this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:"";return e?`${e} ${t}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const t=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){const o=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(o,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const r=t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};We(e,"aria-labelledby",r),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(e){if(!e)return!1;const t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),r=e.childElementCount>0;return t||r}_updateSelectedItem(e,t){if(t){const r=e==null?e:e.toString();this._menuElement.selected=t.reduce((o,a,n)=>o===void 0&&a.value===r?n:o,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||this.items.length===0){e.textContent="";return}let r=e.firstElementChild;r||(r=document.createElement("vaadin-select-list-box"),e.appendChild(r)),r.textContent="",this.items.forEach(o=>{r.appendChild(this.__createItemElement(o))})}__dispatchChange(){return tr(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1})}};/**
5581
5581
  * @license
5582
5582
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5583
5583
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5584
- */g("vaadin-select",[is,os,Xm],{moduleId:"vaadin-select-styles"});class Zm extends Jm(oe(z(k))){static get is(){return"vaadin-select"}static get template(){return C`
5584
+ */g("vaadin-select",[os,as,Qm],{moduleId:"vaadin-select-styles"});class ef extends Zm(oe(z(k))){static get is(){return"vaadin-select"}static get template(){return C`
5585
5585
  <style>
5586
5586
  :host {
5587
5587
  position: relative;
@@ -5634,7 +5634,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5634
5634
  <div class="sr-only">
5635
5635
  <slot name="sr-label"></slot>
5636
5636
  </div>
5637
- `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Er(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}y(Zm);const ks=f`
5637
+ `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Er(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}y(ef);const Es=f`
5638
5638
  /* Optical centering */
5639
5639
  :host::before,
5640
5640
  :host::after {
@@ -5734,7 +5734,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5734
5734
  transform: scale(1.02);
5735
5735
  }
5736
5736
  }
5737
- `;g("vaadin-dialog-overlay",[Ze,ks],{moduleId:"lumo-dialog"});g("vaadin-confirm-dialog-overlay",[Ze,ks,f`
5737
+ `;g("vaadin-dialog-overlay",[Ze,Es],{moduleId:"lumo-dialog"});g("vaadin-confirm-dialog-overlay",[Ze,Es,f`
5738
5738
  [part='header'] ::slotted(h3) {
5739
5739
  margin-top: 0 !important;
5740
5740
  margin-bottom: 0 !important;
@@ -5773,11 +5773,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5773
5773
  * @license
5774
5774
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5775
5775
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5776
- */const ef=o=>class extends o{static get properties(){return{opened:{type:Boolean,value:!1,notify:!0},noCloseOnOutsideClick:{type:Boolean,value:!1},noCloseOnEsc:{type:Boolean,value:!1},modeless:{type:Boolean,value:!1},overlayRole:{type:String,value:"dialog"}}}ready(){super.ready();const e=this.$.overlay;e.addEventListener("vaadin-overlay-outside-click",this._handleOutsideClick.bind(this)),e.addEventListener("vaadin-overlay-escape-press",this._handleEscPress.bind(this)),e.addEventListener("vaadin-overlay-closed",this.__handleOverlayClosed.bind(this)),this._overlayElement=e}__handleOverlayClosed(){this.dispatchEvent(new CustomEvent("closed"))}connectedCallback(){super.connectedCallback(),this.__restoreOpened&&(this.opened=!0)}disconnectedCallback(){super.disconnectedCallback(),setTimeout(()=>{this.isConnected||(this.__restoreOpened=this.opened,this.opened=!1)})}_onOverlayOpened(e){e.detail.value===!1&&(this.opened=!1)}_handleOutsideClick(e){this.noCloseOnOutsideClick&&e.preventDefault()}_handleEscPress(e){this.noCloseOnEsc&&e.preventDefault()}_bringOverlayToFront(){this.modeless&&this._overlayElement.bringToFront()}};/**
5776
+ */const tf=i=>class extends i{static get properties(){return{opened:{type:Boolean,value:!1,notify:!0},noCloseOnOutsideClick:{type:Boolean,value:!1},noCloseOnEsc:{type:Boolean,value:!1},modeless:{type:Boolean,value:!1},overlayRole:{type:String,value:"dialog"}}}ready(){super.ready();const e=this.$.overlay;e.addEventListener("vaadin-overlay-outside-click",this._handleOutsideClick.bind(this)),e.addEventListener("vaadin-overlay-escape-press",this._handleEscPress.bind(this)),e.addEventListener("vaadin-overlay-closed",this.__handleOverlayClosed.bind(this)),this._overlayElement=e}__handleOverlayClosed(){this.dispatchEvent(new CustomEvent("closed"))}connectedCallback(){super.connectedCallback(),this.__restoreOpened&&(this.opened=!0)}disconnectedCallback(){super.disconnectedCallback(),setTimeout(()=>{this.isConnected||(this.__restoreOpened=this.opened,this.opened=!1)})}_onOverlayOpened(e){e.detail.value===!1&&(this.opened=!1)}_handleOutsideClick(e){this.noCloseOnOutsideClick&&e.preventDefault()}_handleEscPress(e){this.noCloseOnEsc&&e.preventDefault()}_bringOverlayToFront(){this.modeless&&this._overlayElement.bringToFront()}};/**
5777
5777
  * @license
5778
5778
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5779
5779
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5780
- */const tf=f`
5780
+ */const rf=f`
5781
5781
  [part='header'],
5782
5782
  [part='header-content'],
5783
5783
  [part='footer'] {
@@ -5952,11 +5952,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5952
5952
  * @license
5953
5953
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
5954
5954
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5955
- */const rf=o=>class extends o{static get properties(){return{ariaLabel:{type:String,value:""},contentHeight:{type:String},contentWidth:{type:String}}}static get observers(){return["__updateContentHeight(contentHeight, _overlayElement)","__updateContentWidth(contentWidth, _overlayElement)"]}__updateDimension(e,t,r){const i=`--_vaadin-confirm-dialog-content-${t}`;r?e.style.setProperty(i,r):e.style.removeProperty(i)}__updateContentHeight(e,t){t&&this.__updateDimension(t,"height",e)}__updateContentWidth(e,t){t&&this.__updateDimension(t,"width",e)}};/**
5955
+ */const of=i=>class extends i{static get properties(){return{ariaLabel:{type:String,value:""},contentHeight:{type:String},contentWidth:{type:String}}}static get observers(){return["__updateContentHeight(contentHeight, _overlayElement)","__updateContentWidth(contentWidth, _overlayElement)"]}__updateDimension(e,t,r){const o=`--_vaadin-confirm-dialog-content-${t}`;r?e.style.setProperty(o,r):e.style.removeProperty(o)}__updateContentHeight(e,t){t&&this.__updateDimension(t,"height",e)}__updateContentWidth(e,t){t&&this.__updateDimension(t,"width",e)}};/**
5956
5956
  * @license
5957
5957
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
5958
5958
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5959
- */const of=f`
5959
+ */const af=f`
5960
5960
  :host {
5961
5961
  --_vaadin-confirm-dialog-content-width: auto;
5962
5962
  --_vaadin-confirm-dialog-content-height: auto;
@@ -5979,7 +5979,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5979
5979
  * @license
5980
5980
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
5981
5981
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5982
- */g("vaadin-confirm-dialog-overlay",[Mt,tf,of],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class af extends zt(ie(z(k))){static get is(){return"vaadin-confirm-dialog-overlay"}static get template(){return C`
5982
+ */g("vaadin-confirm-dialog-overlay",[Mt,rf,af],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class nf extends zt(ie(z(k))){static get is(){return"vaadin-confirm-dialog-overlay"}static get template(){return C`
5983
5983
  <div part="backdrop" id="backdrop" hidden$="[[!withBackdrop]]"></div>
5984
5984
  <div part="overlay" id="overlay" tabindex="0">
5985
5985
  <section id="resizerContainer" class="resizer-container">
@@ -6000,7 +6000,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6000
6000
  </footer>
6001
6001
  </section>
6002
6002
  </div>
6003
- `}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","")}}y(af);class nf extends rf(ef(Nt(mr(k)))){static get is(){return"vaadin-confirm-dialog-dialog"}static get template(){return C`
6003
+ `}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","")}}y(nf);class sf extends of(tf(Nt(mr(k)))){static get is(){return"vaadin-confirm-dialog-dialog"}static get template(){return C`
6004
6004
  <style>
6005
6005
  :host {
6006
6006
  display: none;
@@ -6021,15 +6021,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6021
6021
  restore-focus-on-close
6022
6022
  focus-trap
6023
6023
  ></vaadin-confirm-dialog-overlay>
6024
- `}}y(nf);/**
6024
+ `}}y(sf);/**
6025
6025
  * @license
6026
6026
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
6027
6027
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6028
- */const sf=o=>class extends o{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new J(this,"header","h3",{initializer:e=>{this._headerNode=e}}),this.addController(this._headerController),this._messageController=new J(this,"","div",{multiple:!0,observe:!1,initializer:e=>{const t=document.createElement("div");t.style.display="contents";const r=`confirm-dialog-message-${It()}`;t.id=r,this.appendChild(t),t.appendChild(e),this._messageNodes=[...this._messageNodes,t]}}),this.addController(this._messageController),this._cancelController=new J(this,"cancel-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("cancel",e)}}),this.addController(this._cancelController),this._rejectController=new J(this,"reject-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("reject",e)}}),this.addController(this._rejectController),this._confirmController=new J(this,"confirm-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("confirm",e)}}),this.addController(this._confirmController)}_initOverlay(e){e.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),e.addEventListener("vaadin-overlay-open",()=>this.__onDialogOpened()),e.addEventListener("vaadin-overlay-closed",()=>this.__onDialogClosed()),e.setAttribute("role","alertdialog")}__onDialogOpened(){const e=this._overlayElement;this.__slottedNodes.forEach(r=>{e.appendChild(r)});const t=e.querySelector('[slot="confirm-button"]');t&&t.focus()}__onDialogClosed(){this.__slottedNodes.forEach(e=>{this.appendChild(e)}),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(e,t,r){!e||!t||(r!==void 0?We(e,"aria-describedby",{newId:r,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):t.forEach(i=>{We(e,"aria-describedby",{newId:i.id})}),this.__oldAccessibleDescriptionRef=r)}__setupSlottedButton(e,t){const r=`_${e}Button`,i=`__${e}`;this[r]&&this[r]!==t&&this[r].remove(),t.addEventListener("click",this[i]),this[r]=t}__updateCancelButton(e,t,r,i){e&&(e===this._cancelController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r)),e.toggleAttribute("hidden",!i))}__updateConfirmButton(e,t,r){e&&e===this._confirmController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r))}__updateHeaderNode(e,t){e&&e===this._headerController.defaultNode&&(e.textContent=t)}__updateMessageNodes(e,t){if(e&&e.length>0){const r=e.find(i=>this._messageController.defaultNode&&i===this._messageController.defaultNode.parentElement);r&&(r.firstChild.textContent=t)}}__updateRejectButton(e,t,r,i){e&&(e===this._rejectController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r)),e.toggleAttribute("hidden",!i))}_escPressed(e){e.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(e){return e||"confirmation"}};/**
6028
+ */const lf=i=>class extends i{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new J(this,"header","h3",{initializer:e=>{this._headerNode=e}}),this.addController(this._headerController),this._messageController=new J(this,"","div",{multiple:!0,observe:!1,initializer:e=>{const t=document.createElement("div");t.style.display="contents";const r=`confirm-dialog-message-${It()}`;t.id=r,this.appendChild(t),t.appendChild(e),this._messageNodes=[...this._messageNodes,t]}}),this.addController(this._messageController),this._cancelController=new J(this,"cancel-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("cancel",e)}}),this.addController(this._cancelController),this._rejectController=new J(this,"reject-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("reject",e)}}),this.addController(this._rejectController),this._confirmController=new J(this,"confirm-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("confirm",e)}}),this.addController(this._confirmController)}_initOverlay(e){e.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),e.addEventListener("vaadin-overlay-open",()=>this.__onDialogOpened()),e.addEventListener("vaadin-overlay-closed",()=>this.__onDialogClosed()),e.setAttribute("role","alertdialog")}__onDialogOpened(){const e=this._overlayElement;this.__slottedNodes.forEach(r=>{e.appendChild(r)});const t=e.querySelector('[slot="confirm-button"]');t&&t.focus()}__onDialogClosed(){this.__slottedNodes.forEach(e=>{this.appendChild(e)}),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(e,t,r){!e||!t||(r!==void 0?We(e,"aria-describedby",{newId:r,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):t.forEach(o=>{We(e,"aria-describedby",{newId:o.id})}),this.__oldAccessibleDescriptionRef=r)}__setupSlottedButton(e,t){const r=`_${e}Button`,o=`__${e}`;this[r]&&this[r]!==t&&this[r].remove(),t.addEventListener("click",this[o]),this[r]=t}__updateCancelButton(e,t,r,o){e&&(e===this._cancelController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r)),e.toggleAttribute("hidden",!o))}__updateConfirmButton(e,t,r){e&&e===this._confirmController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r))}__updateHeaderNode(e,t){e&&e===this._headerController.defaultNode&&(e.textContent=t)}__updateMessageNodes(e,t){if(e&&e.length>0){const r=e.find(o=>this._messageController.defaultNode&&o===this._messageController.defaultNode.parentElement);r&&(r.firstChild.textContent=t)}}__updateRejectButton(e,t,r,o){e&&(e===this._rejectController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r)),e.toggleAttribute("hidden",!o))}_escPressed(e){e.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(e){return e||"confirmation"}};/**
6029
6029
  * @license
6030
6030
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
6031
6031
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6032
- */class lf extends sf(oe(mr(he(k)))){static get template(){return C`
6032
+ */class df extends lf(oe(mr(he(k)))){static get template(){return C`
6033
6033
  <style>
6034
6034
  :host,
6035
6035
  [hidden] {
@@ -6056,7 +6056,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6056
6056
  <slot name="reject-button"></slot>
6057
6057
  <slot name="confirm-button"></slot>
6058
6058
  </div>
6059
- `}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}y(lf);g("vaadin-tab",f`
6059
+ `}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}y(df);g("vaadin-tab",f`
6060
6060
  :host {
6061
6061
  box-sizing: border-box;
6062
6062
  padding: 0.5rem 0.75rem;
@@ -6293,11 +6293,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6293
6293
  * @license
6294
6294
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6295
6295
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6296
- */const df=o=>class extends ws(o){ready(){super.ready(),this.setAttribute("role","tab")}_onKeyUp(e){const t=this.hasAttribute("active");if(super._onKeyUp(e),t){const r=this.querySelector("a");r&&r.click()}}};/**
6296
+ */const cf=i=>class extends xs(i){ready(){super.ready(),this.setAttribute("role","tab")}_onKeyUp(e){const t=this.hasAttribute("active");if(super._onKeyUp(e),t){const r=this.querySelector("a");r&&r.click()}}};/**
6297
6297
  * @license
6298
6298
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6299
6299
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6300
- */const cf=f`
6300
+ */const hf=f`
6301
6301
  :host {
6302
6302
  display: block;
6303
6303
  }
@@ -6320,10 +6320,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6320
6320
  * @license
6321
6321
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6322
6322
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6323
- */g("vaadin-tab",cf,{moduleId:"vaadin-tab-styles"});class hf extends oe(z(df(he(k)))){static get template(){return C`
6323
+ */g("vaadin-tab",hf,{moduleId:"vaadin-tab-styles"});class uf extends oe(z(cf(he(k)))){static get template(){return C`
6324
6324
  <slot></slot>
6325
6325
  <slot name="tooltip"></slot>
6326
- `}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new ve(this),this.addController(this._tooltipController)}}y(hf);g("vaadin-tabs",f`
6326
+ `}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new ve(this),this.addController(this._tooltipController)}}y(uf);g("vaadin-tabs",f`
6327
6327
  :host {
6328
6328
  -webkit-tap-highlight-color: transparent;
6329
6329
  }
@@ -6565,11 +6565,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6565
6565
  * @license
6566
6566
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6567
6567
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6568
- */const uf=o=>class extends bs(Cs(o)){static get properties(){return{orientation:{value:"horizontal",type:String,reflectToAttribute:!0,sync:!0},selected:{value:0,type:Number}}}static get observers(){return["__tabsItemsChanged(items)"]}constructor(){super(),this.__itemsResizeObserver=new ResizeObserver(()=>{setTimeout(()=>this._updateOverflow())})}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return!this._vertical&&this.__isRTL?1:-1}ready(){super.ready(),this._scrollerElement.addEventListener("scroll",()=>this._updateOverflow()),this.setAttribute("role","tablist"),ji(this,()=>{this._updateOverflow()})}_onResize(){this._updateOverflow()}__tabsItemsChanged(e){this.__itemsResizeObserver.disconnect(),(e||[]).forEach(t=>{this.__itemsResizeObserver.observe(t)}),this._updateOverflow()}_scrollForward(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),r=this._scrollerElement.getBoundingClientRect(),i=[...this.items].reverse().find(s=>this._isItemVisible(s,e,t,r)).getBoundingClientRect(),a=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let n;if(this.__isRTL){const s=r.right-a;n=i.right-s}else{const s=r.left+a;n=i.left-s}-this.__direction*n<1&&(n=-this.__direction*(this._scrollOffset-a)),this._scroll(n)}_scrollBack(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),r=this._scrollerElement.getBoundingClientRect(),i=this.items.find(s=>this._isItemVisible(s,e,t,r)).getBoundingClientRect(),a=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let n;if(this.__isRTL){const s=r.left+a;n=i.left-s}else{const s=r.right-a;n=i.right-s}this.__direction*n<1&&(n=this.__direction*(this._scrollOffset-a)),this._scroll(n)}_isItemVisible(e,t,r,i){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const a=this.__isRTL?r:t,n=this.__isRTL?t:r,s=i.right-a,l=i.left+n,d=e.getBoundingClientRect();return s>Math.floor(d.left)&&l<Math.ceil(d.right)}_getNavigationButtonVisibleWidth(e){const t=this.shadowRoot.querySelector(`[part="${e}"]`);return window.getComputedStyle(t).opacity==="0"?0:t.clientWidth}_updateOverflow(){const e=this._vertical?this._scrollerElement.scrollTop:xs(this._scrollerElement,this.getAttribute("dir")),t=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let r=Math.floor(e)>1?"start":"";Math.ceil(e)<Math.ceil(t-this._scrollOffset)&&(r+=" end"),this.__direction===1&&(r=r.replace(/start|end/giu,i=>i==="start"?"end":"start")),r?this.setAttribute("overflow",r.trim()):this.removeAttribute("overflow")}};/**
6568
+ */const pf=i=>class extends ys(ks(i)){static get properties(){return{orientation:{value:"horizontal",type:String,reflectToAttribute:!0,sync:!0},selected:{value:0,type:Number}}}static get observers(){return["__tabsItemsChanged(items)"]}constructor(){super(),this.__itemsResizeObserver=new ResizeObserver(()=>{setTimeout(()=>this._updateOverflow())})}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return!this._vertical&&this.__isRTL?1:-1}ready(){super.ready(),this._scrollerElement.addEventListener("scroll",()=>this._updateOverflow()),this.setAttribute("role","tablist"),ji(this,()=>{this._updateOverflow()})}_onResize(){this._updateOverflow()}__tabsItemsChanged(e){this.__itemsResizeObserver.disconnect(),(e||[]).forEach(t=>{this.__itemsResizeObserver.observe(t)}),this._updateOverflow()}_scrollForward(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),r=this._scrollerElement.getBoundingClientRect(),o=[...this.items].reverse().find(s=>this._isItemVisible(s,e,t,r)).getBoundingClientRect(),a=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let n;if(this.__isRTL){const s=r.right-a;n=o.right-s}else{const s=r.left+a;n=o.left-s}-this.__direction*n<1&&(n=-this.__direction*(this._scrollOffset-a)),this._scroll(n)}_scrollBack(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),r=this._scrollerElement.getBoundingClientRect(),o=this.items.find(s=>this._isItemVisible(s,e,t,r)).getBoundingClientRect(),a=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let n;if(this.__isRTL){const s=r.left+a;n=o.left-s}else{const s=r.right-a;n=o.right-s}this.__direction*n<1&&(n=this.__direction*(this._scrollOffset-a)),this._scroll(n)}_isItemVisible(e,t,r,o){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const a=this.__isRTL?r:t,n=this.__isRTL?t:r,s=o.right-a,l=o.left+n,d=e.getBoundingClientRect();return s>Math.floor(d.left)&&l<Math.ceil(d.right)}_getNavigationButtonVisibleWidth(e){const t=this.shadowRoot.querySelector(`[part="${e}"]`);return window.getComputedStyle(t).opacity==="0"?0:t.clientWidth}_updateOverflow(){const e=this._vertical?this._scrollerElement.scrollTop:Cs(this._scrollerElement,this.getAttribute("dir")),t=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let r=Math.floor(e)>1?"start":"";Math.ceil(e)<Math.ceil(t-this._scrollOffset)&&(r+=" end"),this.__direction===1&&(r=r.replace(/start|end/giu,o=>o==="start"?"end":"start")),r?this.setAttribute("overflow",r.trim()):this.removeAttribute("overflow")}};/**
6569
6569
  * @license
6570
6570
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6571
6571
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6572
- */const pf=f`
6572
+ */const mf=f`
6573
6573
  :host {
6574
6574
  display: flex;
6575
6575
  align-items: center;
@@ -6649,7 +6649,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6649
6649
  * @license
6650
6650
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6651
6651
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6652
- */g("vaadin-tabs",pf,{moduleId:"vaadin-tabs-styles"});class mf extends uf(oe(z(k))){static get template(){return C`
6652
+ */g("vaadin-tabs",mf,{moduleId:"vaadin-tabs-styles"});class ff extends pf(oe(z(k))){static get template(){return C`
6653
6653
  <div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
6654
6654
 
6655
6655
  <div id="scroll" part="tabs">
@@ -6657,4 +6657,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6657
6657
  </div>
6658
6658
 
6659
6659
  <div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
6660
- `}static get is(){return"vaadin-tabs"}}y(mf);const ff=class{constructor(o){m.registerInstance(this,o),this.applyFilters=m.createEvent(this,"applyFilters"),this.startDateChange=()=>{this.startDate=Ie(new Date(this.startDatePicker.value),`${this.dateformat||"yyyy-MM-dd"}`)},this.endDateChange=()=>{this.endDate=Ie(new Date(this.endDatePicker.value),`${this.dateformat||"yyyy-MM-dd"}`)},this.from=void 0,this.to=void 0,this.language=void 0,this.dateformat=void 0,this.startDate=void 0,this.endDate=void 0}componentWillLoad(){this.startDate=this.from,this.endDate=this.to}componentDidLoad(){this.startDatePicker.i18n=Object.assign(Object.assign({},this.startDatePicker.i18n),{formatDate:this.formatVaadinDate.bind(this),parseDate:this.parseDate.bind(this)}),this.endDatePicker.i18n=Object.assign(Object.assign({},this.endDatePicker.i18n),{formatDate:this.formatVaadinDate.bind(this),parseDate:this.parseDate.bind(this)})}formatVaadinDate(o){const{year:e,month:t,day:r}=o,i=new Date(e,t,r);return Ie(i,this.dateformat||"yyyy-MM-dd")}parseDate(o){const e=Na(o,this.dateformat||"yyyy-MM-dd",new Date);return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}}handleApplyFilters(){this.applyFilters.emit({from:this.startDate,to:this.endDate})}render(){return m.h("div",{key:"5cd1b3d5f8e9c18e546c657cedd0923c2394508e",class:"period"},m.h("div",{key:"c9a37f4d4265594277ca73c3a929107a83c8e1b8",class:"period-content"},m.h("div",{key:"6c81e7cc31bdc4f0e25377bdaa0dd162e8ad7805",class:"date-input"},m.h("vaadin-date-picker",{key:"2842f491b88b1f482ca4be068e0da721568af1e0",value:this.startDate,placeholder:this.startDate,ref:o=>this.startDatePicker=o,label:I.translate("from",this.language),onChange:this.startDateChange})),m.h("span",{key:"dda5f883cfa94dea18cfb868b4162c5c40592a40"},m.h("svg",{key:"6181900f60dceebd97bdfab69a36ade1a6ce377f",width:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m.h("path",{key:"39bd58d353885e15a8720ff730a2a040328529b6",d:"m21 11.75c0-.414-.336-.75-.75-.75h-16.5c-.414 0-.75.336-.75.75s.336.75.75.75h16.5c.414 0 .75-.336.75-.75z","fill-rule":"nonzero",fill:"5d687b"}))),m.h("div",{key:"5a06d7e6e8d2a95262cdf46620f5e162a068ba09",class:"date-input"},m.h("vaadin-date-picker",{key:"8fd6250bc8ff6936fef8efef52caea51e96c48bf",value:this.endDate,placeholder:this.endDate,ref:o=>this.endDatePicker=o,label:I.translate("to",this.language),onChange:this.endDateChange})),m.h("button",{key:"8d793ce5748cf44238c88735b5559472ef0435f2",class:"filter-btn",onClick:this.handleApplyFilters.bind(this)},I.translate("filter",this.language))))}};exports.user_transaction_history=La;exports.user_transaction_history_filter=ff;
6660
+ `}static get is(){return"vaadin-tabs"}}y(ff);const _f=class{constructor(i){m.registerInstance(this,i),this.applyFilters=m.createEvent(this,"applyFilters"),this.startDateChange=()=>{this.startDate=Ie(new Date(this.startDatePicker.value),`${this.dateformat||"yyyy-MM-dd"}`)},this.endDateChange=()=>{this.endDate=Ie(new Date(this.endDatePicker.value),`${this.dateformat||"yyyy-MM-dd"}`)},this.from=void 0,this.to=void 0,this.language=void 0,this.dateformat=void 0,this.startDate=void 0,this.endDate=void 0}componentWillLoad(){this.startDate=this.from,this.endDate=this.to}componentDidLoad(){this.startDatePicker.i18n=Object.assign(Object.assign({},this.startDatePicker.i18n),{formatDate:this.formatVaadinDate.bind(this),parseDate:this.parseDate.bind(this)}),this.endDatePicker.i18n=Object.assign(Object.assign({},this.endDatePicker.i18n),{formatDate:this.formatVaadinDate.bind(this),parseDate:this.parseDate.bind(this)})}formatVaadinDate(i){const{year:e,month:t,day:r}=i,o=new Date(e,t,r);return Ie(o,this.dateformat||"yyyy-MM-dd")}parseDate(i){const e=La(i,this.dateformat||"yyyy-MM-dd",new Date);return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}}handleApplyFilters(){this.applyFilters.emit({from:this.startDate,to:this.endDate})}render(){return m.h("div",{key:"5cd1b3d5f8e9c18e546c657cedd0923c2394508e",class:"period"},m.h("div",{key:"c9a37f4d4265594277ca73c3a929107a83c8e1b8",class:"period-content"},m.h("div",{key:"6c81e7cc31bdc4f0e25377bdaa0dd162e8ad7805",class:"date-input"},m.h("vaadin-date-picker",{key:"2842f491b88b1f482ca4be068e0da721568af1e0",value:this.startDate,placeholder:this.startDate,ref:i=>this.startDatePicker=i,label:I.translate("from",this.language),onChange:this.startDateChange})),m.h("span",{key:"dda5f883cfa94dea18cfb868b4162c5c40592a40"},m.h("svg",{key:"6181900f60dceebd97bdfab69a36ade1a6ce377f",width:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m.h("path",{key:"39bd58d353885e15a8720ff730a2a040328529b6",d:"m21 11.75c0-.414-.336-.75-.75-.75h-16.5c-.414 0-.75.336-.75.75s.336.75.75.75h16.5c.414 0 .75-.336.75-.75z","fill-rule":"nonzero",fill:"5d687b"}))),m.h("div",{key:"5a06d7e6e8d2a95262cdf46620f5e162a068ba09",class:"date-input"},m.h("vaadin-date-picker",{key:"8fd6250bc8ff6936fef8efef52caea51e96c48bf",value:this.endDate,placeholder:this.endDate,ref:i=>this.endDatePicker=i,label:I.translate("to",this.language),onChange:this.endDateChange})),m.h("button",{key:"8d793ce5748cf44238c88735b5559472ef0435f2",class:"filter-btn",onClick:this.handleApplyFilters.bind(this)},I.translate("filter",this.language))))}};exports.user_transaction_history=Fa;exports.user_transaction_history_filter=_f;