@everymatrix/player-account-controller-nd 1.68.0 → 1.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/components/{PlayerAccountControllerNd-DLE8Fmlq.js → PlayerAccountControllerNd-C4fyqqh1.js} +97 -9
  2. package/components/{PlayerAccountControllerNd-DdY0uS9P.js → PlayerAccountControllerNd-Dwdl_p1l.js} +97 -9
  3. package/components/PlayerAccountControllerNd-zBnRxjjD.cjs +1 -0
  4. package/components/{PlayerAccountGamingLimits-DZBzKFyv.cjs → PlayerAccountGamingLimits-BIXEO8qU.cjs} +1 -1
  5. package/components/{PlayerAccountGamingLimits-BwempsG_.js → PlayerAccountGamingLimits-Bj6iDB2S.js} +1 -1
  6. package/components/{PlayerAccountGamingLimits-C5fcaaR5.js → PlayerAccountGamingLimits-DxoR6Rl0.js} +1 -1
  7. package/components/PlayerAccountGamingLimitsGroupEdit-5Xl-352p.js +4792 -0
  8. package/components/PlayerAccountGamingLimitsGroupEdit-CYeY3dwe.js +4792 -0
  9. package/components/PlayerAccountGamingLimitsGroupEdit-Crtmu06d.cjs +2 -0
  10. package/components/{PlayerAccountGamingLimitsInfoCard-BiYcxWjN.js → PlayerAccountGamingLimitsInfoCard-B-8AhoxC.js} +2 -2
  11. package/components/{PlayerAccountGamingLimitsInfoCard-DWbZBNtU.cjs → PlayerAccountGamingLimitsInfoCard-COS0sgRr.cjs} +1 -1
  12. package/components/{PlayerAccountGamingLimitsInfoCard-dUq3DIBx.js → PlayerAccountGamingLimitsInfoCard-DSLO6bv_.js} +2 -2
  13. package/components/{PlayerAccountGeneralConfirmationModal-C4zwKDdb.js → PlayerAccountGeneralConfirmationModal-BBveBuYk.js} +114 -119
  14. package/components/{PlayerAccountGeneralConfirmationModal-Byd2u6b9.js → PlayerAccountGeneralConfirmationModal-DFj-HuBM.js} +114 -119
  15. package/components/PlayerAccountGeneralConfirmationModal-DHEkFez0.cjs +1 -0
  16. package/components/{PlayerAccountProductRestriction-pQjnbz9B.js → PlayerAccountProductRestriction-ESKHafqp.js} +268 -283
  17. package/components/{PlayerAccountProductRestriction-BSOQXTrt.js → PlayerAccountProductRestriction-h9nnGXrP.js} +268 -283
  18. package/components/{PlayerAccountProductRestriction-BK1qKxhK.cjs → PlayerAccountProductRestriction-uj_BwdJ0.cjs} +37 -37
  19. package/components/{PlayerAccountSelfExclusionNd-BG-L1FIn.js → PlayerAccountSelfExclusionNd-9tdRb-BD.js} +2 -2
  20. package/components/{PlayerAccountSelfExclusionNd-Cm53bCiD.js → PlayerAccountSelfExclusionNd-BQlI8ffc.js} +2 -2
  21. package/components/{PlayerAccountSelfExclusionNd-DnktIYiG.cjs → PlayerAccountSelfExclusionNd-BxnljuoQ.cjs} +1 -1
  22. package/components/{PlayerAccountTimeout-C0aSuJAQ.cjs → PlayerAccountTimeout-6ruoWoF3.cjs} +1 -1
  23. package/components/{PlayerAccountTimeout-BqGTX3_t.js → PlayerAccountTimeout-Bf9hZOsd.js} +2 -2
  24. package/components/{PlayerAccountTimeout-MJuN3qY1.js → PlayerAccountTimeout-CZR3PPPV.js} +2 -2
  25. package/components/{PlayerAccountTransactionsHistory-CWLsJxGB.js → PlayerAccountTransactionsHistory-CLGmdqFi.js} +2 -2
  26. package/components/{PlayerAccountTransactionsHistory-WOO2lyyP.cjs → PlayerAccountTransactionsHistory-CRmQjcHX.cjs} +1 -1
  27. package/components/{PlayerAccountTransactionsHistory-ClkTyrnI.js → PlayerAccountTransactionsHistory-CtyhdBep.js} +2 -2
  28. package/components/{PlayerActiveBonuses-D0-l-pB3.js → PlayerActiveBonuses-CD7vVwcl.js} +492 -462
  29. package/components/{PlayerActiveBonuses-LzSf0vDW.js → PlayerActiveBonuses-CfJuOJRv.js} +489 -459
  30. package/components/PlayerActiveBonuses-wlP0A00N.cjs +1 -0
  31. package/components/PlayerBonusCard-BBQEU4zs.cjs +1 -0
  32. package/components/{PlayerBonusCard-C0Z6YeQL.js → PlayerBonusCard-CLcU7jvi.js} +207 -191
  33. package/components/{PlayerBonusCard-CYnvLBMF.js → PlayerBonusCard-DqH1t5fZ.js} +207 -191
  34. package/components/PlayerBonusHistory-BBM_Ee_C.js +1051 -0
  35. package/components/PlayerBonusHistory-D2uJLN_3.cjs +1 -0
  36. package/components/PlayerBonusHistory-DtPqQdZo.js +1040 -0
  37. package/components/PlayerGamingHistory-COsI7V9y.js +1016 -0
  38. package/components/PlayerGamingHistory-D5C8zTFo.cjs +1 -0
  39. package/components/{PlayerGamingHistory-DV8OU2Tr.js → PlayerGamingHistory-DlQpmkPh.js} +472 -456
  40. package/es2015/player-account-controller-nd.cjs +1 -1
  41. package/es2015/player-account-controller-nd.js +1 -1
  42. package/esnext/player-account-controller-nd.js +1 -1
  43. package/package.json +1 -1
  44. package/stencil/{index-7c5e707a-C9R6jYpt.js → index-7c5e707a-2AC9SnQ7.js} +1 -1
  45. package/stencil/{index-7c5e707a-DvxqcEpc.js → index-7c5e707a-BM4sfR0h.js} +1 -1
  46. package/stencil/{index-7c5e707a-ESX_oqGB.cjs → index-7c5e707a-Cw-c3Bke.cjs} +1 -1
  47. package/stencil/user-transaction-history-7_yFZr3w.js +1645 -0
  48. package/stencil/user-transaction-history-DZZT2rYX.cjs +1 -0
  49. package/stencil/user-transaction-history-Dpd_aKdj.js +1621 -0
  50. package/components/PlayerAccountControllerNd-CWJ_S9v9.cjs +0 -1
  51. package/components/PlayerAccountGamingLimitsGroupEdit-BvnqlbPp.cjs +0 -1
  52. package/components/PlayerAccountGamingLimitsGroupEdit-D0hqXEY4.js +0 -2891
  53. package/components/PlayerAccountGamingLimitsGroupEdit-DVvwhjK6.js +0 -2891
  54. package/components/PlayerAccountGeneralConfirmationModal-BiNxgQbD.cjs +0 -1
  55. package/components/PlayerActiveBonuses-Bc5S3wl_.cjs +0 -1
  56. package/components/PlayerBonusCard-BNNcjGWn.cjs +0 -1
  57. package/components/PlayerBonusHistory-C3fZQarG.js +0 -985
  58. package/components/PlayerBonusHistory-DWFOy5jX.js +0 -986
  59. package/components/PlayerBonusHistory-KSW8XpoL.cjs +0 -1
  60. package/components/PlayerGamingHistory-BBu7qQuS.js +0 -975
  61. package/components/PlayerGamingHistory-WTu28xyT.cjs +0 -1
  62. package/stencil/user-transaction-history-BAK7MHHa.js +0 -374
  63. package/stencil/user-transaction-history-DhQ6RqNc.js +0 -350
  64. package/stencil/user-transaction-history-DiRXpfbN.cjs +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";var Zn=Object.defineProperty,Qn=Object.defineProperties;var ea=Object.getOwnPropertyDescriptors;var Zr=Object.getOwnPropertySymbols;var ta=Object.prototype.hasOwnProperty,ia=Object.prototype.propertyIsEnumerable;var Qr=(r,e,t)=>e in r?Zn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,eo=(r,e)=>{for(var t in e||(e={}))ta.call(e,t)&&Qr(r,t,e[t]);if(Zr)for(var t of Zr(e))ia.call(e,t)&&Qr(r,t,e[t]);return r},to=(r,e)=>Qn(r,ea(e));var io=(r,e,t)=>new Promise((i,o)=>{var s=l=>{try{a(t.next(l))}catch(c){o(c)}},n=l=>{try{a(t.throw(l))}catch(c){o(c)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,n);a((t=t.apply(r,e)).next())});const d=require("./GeneralLogout-Dzu2Sl-x.cjs");require("../stencil/ui-skeleton-t0bb1jH7.cjs");require("./PlayerAccountGamingLimitsGroupEdit-BvnqlbPp.cjs");if(typeof window!="undefined"){let r=function(e){return function(...t){try{return e.apply(this,t)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGeneralConfirmationModal-BiNxgQbD.cjs")).then(({default:e})=>{!customElements.get("player-account-general-confirmation-modal")&&customElements.define("player-account-general-confirmation-modal",e.element)})}var hs={exports:{}};(function(r,e){(function(t,i){r.exports=i()})(d.commonjsGlobal,function(){var t=1e3,i=6e4,o=36e5,s="millisecond",n="second",a="minute",l="hour",c="day",h="week",u="month",f="quarter",p="year",w="date",S="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var b=["th","st","nd","rd"],v=E%100;return"["+E+(b[(v-20)%10]||b[v]||b[0])+"]"}},H=function(E,b,v){var y=String(E);return!y||y.length>=b?E:""+Array(b+1-y.length).join(v)+E},N={s:H,z:function(E){var b=-E.utcOffset(),v=Math.abs(b),y=Math.floor(v/60),g=v%60;return(b<=0?"+":"-")+H(y,2,"0")+":"+H(g,2,"0")},m:function E(b,v){if(b.date()<v.date())return-E(v,b);var y=12*(v.year()-b.year())+(v.month()-b.month()),g=b.clone().add(y,u),k=v-g<0,I=b.clone().add(y+(k?-1:1),u);return+(-(y+(v-g)/(k?g-I:I-g))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:u,y:p,w:h,d:c,D:w,h:l,m:a,s:n,ms:s,Q:f}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},K="en",R={};R[K]=$;var xe="$isDayjsObject",j=function(E){return E instanceof re||!(!E||!E[xe])},ae=function E(b,v,y){var g;if(!b)return K;if(typeof b=="string"){var k=b.toLowerCase();R[k]&&(g=k),v&&(R[k]=v,g=k);var I=b.split("-");if(!g&&I.length>1)return E(I[0])}else{var z=b.name;R[z]=b,g=z}return!y&&g&&(K=g),g||!y&&K},B=function(E,b){if(j(E))return E.clone();var v=typeof b=="object"?b:{};return v.date=E,v.args=arguments,new re(v)},O=N;O.l=ae,O.i=j,O.w=function(E,b){return B(E,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var re=function(){function E(v){this.$L=ae(v.locale,null,!0),this.parse(v),this.$x=this.$x||v.x||{},this[xe]=!0}var b=E.prototype;return b.parse=function(v){this.$d=function(y){var g=y.date,k=y.utc;if(g===null)return new Date(NaN);if(O.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var I=g.match(A);if(I){var z=I[2]-1||0,W=(I[7]||"0").substring(0,3);return k?new Date(Date.UTC(I[1],z,I[3]||1,I[4]||0,I[5]||0,I[6]||0,W)):new Date(I[1],z,I[3]||1,I[4]||0,I[5]||0,I[6]||0,W)}}return new Date(g)}(v),this.init()},b.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},b.$utils=function(){return O},b.isValid=function(){return this.$d.toString()!==S},b.isSame=function(v,y){var g=B(v);return this.startOf(y)<=g&&g<=this.endOf(y)},b.isAfter=function(v,y){return B(v)<this.startOf(y)},b.isBefore=function(v,y){return this.endOf(y)<B(v)},b.$g=function(v,y,g){return O.u(v)?this[y]:this.set(g,v)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(v,y){var g=this,k=!!O.u(y)||y,I=O.p(v),z=function(X,G){var le=O.w(g.$u?Date.UTC(g.$y,G,X):new Date(g.$y,G,X),g);return k?le:le.endOf(c)},W=function(X,G){return O.w(g.toDate()[X].apply(g.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(G)),g)},Y=this.$W,q=this.$M,Z=this.$D,de="set"+(this.$u?"UTC":"");switch(I){case p:return k?z(1,0):z(31,11);case u:return k?z(1,q):z(0,q+1);case h:var _e=this.$locale().weekStart||0,he=(Y<_e?Y+7:Y)-_e;return z(k?Z-he:Z+(6-he),q);case c:case w:return W(de+"Hours",0);case l:return W(de+"Minutes",1);case a:return W(de+"Seconds",2);case n:return W(de+"Milliseconds",3);default:return this.clone()}},b.endOf=function(v){return this.startOf(v,!1)},b.$set=function(v,y){var g,k=O.p(v),I="set"+(this.$u?"UTC":""),z=(g={},g[c]=I+"Date",g[w]=I+"Date",g[u]=I+"Month",g[p]=I+"FullYear",g[l]=I+"Hours",g[a]=I+"Minutes",g[n]=I+"Seconds",g[s]=I+"Milliseconds",g)[k],W=k===c?this.$D+(y-this.$W):y;if(k===u||k===p){var Y=this.clone().set(w,1);Y.$d[z](W),Y.init(),this.$d=Y.set(w,Math.min(this.$D,Y.daysInMonth())).$d}else z&&this.$d[z](W);return this.init(),this},b.set=function(v,y){return this.clone().$set(v,y)},b.get=function(v){return this[O.p(v)]()},b.add=function(v,y){var g,k=this;v=Number(v);var I=O.p(y),z=function(q){var Z=B(k);return O.w(Z.date(Z.date()+Math.round(q*v)),k)};if(I===u)return this.set(u,this.$M+v);if(I===p)return this.set(p,this.$y+v);if(I===c)return z(1);if(I===h)return z(7);var W=(g={},g[a]=i,g[l]=o,g[n]=t,g)[I]||1,Y=this.$d.getTime()+v*W;return O.w(Y,this)},b.subtract=function(v,y){return this.add(-1*v,y)},b.format=function(v){var y=this,g=this.$locale();if(!this.isValid())return g.invalidDate||S;var k=v||"YYYY-MM-DDTHH:mm:ssZ",I=O.z(this),z=this.$H,W=this.$m,Y=this.$M,q=g.weekdays,Z=g.months,de=g.meridiem,_e=function(G,le,ue,fe){return G&&(G[le]||G(y,k))||ue[le].slice(0,fe)},he=function(G){return O.s(z%12||12,G,"0")},X=de||function(G,le,ue){var fe=G<12?"AM":"PM";return ue?fe.toLowerCase():fe};return k.replace(D,function(G,le){return le||function(ue){switch(ue){case"YY":return String(y.$y).slice(-2);case"YYYY":return O.s(y.$y,4,"0");case"M":return Y+1;case"MM":return O.s(Y+1,2,"0");case"MMM":return _e(g.monthsShort,Y,Z,3);case"MMMM":return _e(Z,Y);case"D":return y.$D;case"DD":return O.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return _e(g.weekdaysMin,y.$W,q,2);case"ddd":return _e(g.weekdaysShort,y.$W,q,3);case"dddd":return q[y.$W];case"H":return String(z);case"HH":return O.s(z,2,"0");case"h":return he(1);case"hh":return he(2);case"a":return X(z,W,!0);case"A":return X(z,W,!1);case"m":return String(W);case"mm":return O.s(W,2,"0");case"s":return String(y.$s);case"ss":return O.s(y.$s,2,"0");case"SSS":return O.s(y.$ms,3,"0");case"Z":return I}return null}(G)||I.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(v,y,g){var k,I=this,z=O.p(y),W=B(v),Y=(W.utcOffset()-this.utcOffset())*i,q=this-W,Z=function(){return O.m(I,W)};switch(z){case p:k=Z()/12;break;case u:k=Z();break;case f:k=Z()/3;break;case h:k=(q-Y)/6048e5;break;case c:k=(q-Y)/864e5;break;case l:k=q/o;break;case a:k=q/i;break;case n:k=q/t;break;default:k=q}return g?k:O.a(k)},b.daysInMonth=function(){return this.endOf(u).$D},b.$locale=function(){return R[this.$L]},b.locale=function(v,y){if(!v)return this.$L;var g=this.clone(),k=ae(v,y,!0);return k&&(g.$L=k),g},b.clone=function(){return O.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},E}(),be=re.prototype;return B.prototype=be,[["$ms",s],["$s",n],["$m",a],["$H",l],["$W",c],["$M",u],["$y",p],["$D",w]].forEach(function(E){be[E[1]]=function(b){return this.$g(b,E[0],E[1])}}),B.extend=function(E,b){return E.$i||(E(b,re,B),E.$i=!0),B},B.locale=ae,B.isDayjs=j,B.unix=function(E){return B(1e3*E)},B.en=R[K],B.Ls=R,B.p={},B})})(hs);var ra=hs.exports;const $e=d.getDefaultExportFromCjs(ra);var oa=Object.defineProperty,sa=Object.defineProperties,na=Object.getOwnPropertyDescriptors,ro=Object.getOwnPropertySymbols,aa=Object.prototype.hasOwnProperty,la=Object.prototype.propertyIsEnumerable,qi=(r,e,t)=>e in r?oa(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Qt=(r,e)=>{for(var t in e||(e={}))aa.call(e,t)&&qi(r,t,e[t]);if(ro)for(var t of ro(e))la.call(e,t)&&qi(r,t,e[t]);return r},us=(r,e)=>sa(r,na(e)),ne=(r,e,t)=>(qi(r,typeof e!="symbol"?e+"":e,t),t),ei=(r,e,t)=>new Promise((i,o)=>{var s=l=>{try{a(t.next(l))}catch(c){o(c)}},n=l=>{try{a(t.throw(l))}catch(c){o(c)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,n);a((t=t.apply(r,e)).next())});/**
1
+ "use strict";var Zn=Object.defineProperty,Qn=Object.defineProperties;var ea=Object.getOwnPropertyDescriptors;var Zr=Object.getOwnPropertySymbols;var ta=Object.prototype.hasOwnProperty,ia=Object.prototype.propertyIsEnumerable;var Qr=(r,e,t)=>e in r?Zn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,eo=(r,e)=>{for(var t in e||(e={}))ta.call(e,t)&&Qr(r,t,e[t]);if(Zr)for(var t of Zr(e))ia.call(e,t)&&Qr(r,t,e[t]);return r},to=(r,e)=>Qn(r,ea(e));var io=(r,e,t)=>new Promise((i,o)=>{var s=l=>{try{a(t.next(l))}catch(c){o(c)}},n=l=>{try{a(t.throw(l))}catch(c){o(c)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,n);a((t=t.apply(r,e)).next())});const d=require("./GeneralLogout-Dzu2Sl-x.cjs");require("../stencil/ui-skeleton-t0bb1jH7.cjs");require("./PlayerAccountGamingLimitsGroupEdit-Crtmu06d.cjs");if(typeof window!="undefined"){let r=function(e){return function(...t){try{return e.apply(this,t)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGeneralConfirmationModal-DHEkFez0.cjs")).then(({default:e})=>{!customElements.get("player-account-general-confirmation-modal")&&customElements.define("player-account-general-confirmation-modal",e.element)})}var hs={exports:{}};(function(r,e){(function(t,i){r.exports=i()})(d.commonjsGlobal,function(){var t=1e3,i=6e4,o=36e5,s="millisecond",n="second",a="minute",l="hour",c="day",h="week",u="month",f="quarter",p="year",w="date",S="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var b=["th","st","nd","rd"],v=E%100;return"["+E+(b[(v-20)%10]||b[v]||b[0])+"]"}},H=function(E,b,v){var y=String(E);return!y||y.length>=b?E:""+Array(b+1-y.length).join(v)+E},N={s:H,z:function(E){var b=-E.utcOffset(),v=Math.abs(b),y=Math.floor(v/60),g=v%60;return(b<=0?"+":"-")+H(y,2,"0")+":"+H(g,2,"0")},m:function E(b,v){if(b.date()<v.date())return-E(v,b);var y=12*(v.year()-b.year())+(v.month()-b.month()),g=b.clone().add(y,u),k=v-g<0,I=b.clone().add(y+(k?-1:1),u);return+(-(y+(v-g)/(k?g-I:I-g))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:u,y:p,w:h,d:c,D:w,h:l,m:a,s:n,ms:s,Q:f}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},K="en",R={};R[K]=$;var xe="$isDayjsObject",j=function(E){return E instanceof re||!(!E||!E[xe])},ae=function E(b,v,y){var g;if(!b)return K;if(typeof b=="string"){var k=b.toLowerCase();R[k]&&(g=k),v&&(R[k]=v,g=k);var I=b.split("-");if(!g&&I.length>1)return E(I[0])}else{var z=b.name;R[z]=b,g=z}return!y&&g&&(K=g),g||!y&&K},B=function(E,b){if(j(E))return E.clone();var v=typeof b=="object"?b:{};return v.date=E,v.args=arguments,new re(v)},O=N;O.l=ae,O.i=j,O.w=function(E,b){return B(E,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var re=function(){function E(v){this.$L=ae(v.locale,null,!0),this.parse(v),this.$x=this.$x||v.x||{},this[xe]=!0}var b=E.prototype;return b.parse=function(v){this.$d=function(y){var g=y.date,k=y.utc;if(g===null)return new Date(NaN);if(O.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var I=g.match(A);if(I){var z=I[2]-1||0,W=(I[7]||"0").substring(0,3);return k?new Date(Date.UTC(I[1],z,I[3]||1,I[4]||0,I[5]||0,I[6]||0,W)):new Date(I[1],z,I[3]||1,I[4]||0,I[5]||0,I[6]||0,W)}}return new Date(g)}(v),this.init()},b.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},b.$utils=function(){return O},b.isValid=function(){return this.$d.toString()!==S},b.isSame=function(v,y){var g=B(v);return this.startOf(y)<=g&&g<=this.endOf(y)},b.isAfter=function(v,y){return B(v)<this.startOf(y)},b.isBefore=function(v,y){return this.endOf(y)<B(v)},b.$g=function(v,y,g){return O.u(v)?this[y]:this.set(g,v)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(v,y){var g=this,k=!!O.u(y)||y,I=O.p(v),z=function(X,G){var le=O.w(g.$u?Date.UTC(g.$y,G,X):new Date(g.$y,G,X),g);return k?le:le.endOf(c)},W=function(X,G){return O.w(g.toDate()[X].apply(g.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(G)),g)},Y=this.$W,q=this.$M,Z=this.$D,de="set"+(this.$u?"UTC":"");switch(I){case p:return k?z(1,0):z(31,11);case u:return k?z(1,q):z(0,q+1);case h:var _e=this.$locale().weekStart||0,he=(Y<_e?Y+7:Y)-_e;return z(k?Z-he:Z+(6-he),q);case c:case w:return W(de+"Hours",0);case l:return W(de+"Minutes",1);case a:return W(de+"Seconds",2);case n:return W(de+"Milliseconds",3);default:return this.clone()}},b.endOf=function(v){return this.startOf(v,!1)},b.$set=function(v,y){var g,k=O.p(v),I="set"+(this.$u?"UTC":""),z=(g={},g[c]=I+"Date",g[w]=I+"Date",g[u]=I+"Month",g[p]=I+"FullYear",g[l]=I+"Hours",g[a]=I+"Minutes",g[n]=I+"Seconds",g[s]=I+"Milliseconds",g)[k],W=k===c?this.$D+(y-this.$W):y;if(k===u||k===p){var Y=this.clone().set(w,1);Y.$d[z](W),Y.init(),this.$d=Y.set(w,Math.min(this.$D,Y.daysInMonth())).$d}else z&&this.$d[z](W);return this.init(),this},b.set=function(v,y){return this.clone().$set(v,y)},b.get=function(v){return this[O.p(v)]()},b.add=function(v,y){var g,k=this;v=Number(v);var I=O.p(y),z=function(q){var Z=B(k);return O.w(Z.date(Z.date()+Math.round(q*v)),k)};if(I===u)return this.set(u,this.$M+v);if(I===p)return this.set(p,this.$y+v);if(I===c)return z(1);if(I===h)return z(7);var W=(g={},g[a]=i,g[l]=o,g[n]=t,g)[I]||1,Y=this.$d.getTime()+v*W;return O.w(Y,this)},b.subtract=function(v,y){return this.add(-1*v,y)},b.format=function(v){var y=this,g=this.$locale();if(!this.isValid())return g.invalidDate||S;var k=v||"YYYY-MM-DDTHH:mm:ssZ",I=O.z(this),z=this.$H,W=this.$m,Y=this.$M,q=g.weekdays,Z=g.months,de=g.meridiem,_e=function(G,le,ue,fe){return G&&(G[le]||G(y,k))||ue[le].slice(0,fe)},he=function(G){return O.s(z%12||12,G,"0")},X=de||function(G,le,ue){var fe=G<12?"AM":"PM";return ue?fe.toLowerCase():fe};return k.replace(D,function(G,le){return le||function(ue){switch(ue){case"YY":return String(y.$y).slice(-2);case"YYYY":return O.s(y.$y,4,"0");case"M":return Y+1;case"MM":return O.s(Y+1,2,"0");case"MMM":return _e(g.monthsShort,Y,Z,3);case"MMMM":return _e(Z,Y);case"D":return y.$D;case"DD":return O.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return _e(g.weekdaysMin,y.$W,q,2);case"ddd":return _e(g.weekdaysShort,y.$W,q,3);case"dddd":return q[y.$W];case"H":return String(z);case"HH":return O.s(z,2,"0");case"h":return he(1);case"hh":return he(2);case"a":return X(z,W,!0);case"A":return X(z,W,!1);case"m":return String(W);case"mm":return O.s(W,2,"0");case"s":return String(y.$s);case"ss":return O.s(y.$s,2,"0");case"SSS":return O.s(y.$ms,3,"0");case"Z":return I}return null}(G)||I.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(v,y,g){var k,I=this,z=O.p(y),W=B(v),Y=(W.utcOffset()-this.utcOffset())*i,q=this-W,Z=function(){return O.m(I,W)};switch(z){case p:k=Z()/12;break;case u:k=Z();break;case f:k=Z()/3;break;case h:k=(q-Y)/6048e5;break;case c:k=(q-Y)/864e5;break;case l:k=q/o;break;case a:k=q/i;break;case n:k=q/t;break;default:k=q}return g?k:O.a(k)},b.daysInMonth=function(){return this.endOf(u).$D},b.$locale=function(){return R[this.$L]},b.locale=function(v,y){if(!v)return this.$L;var g=this.clone(),k=ae(v,y,!0);return k&&(g.$L=k),g},b.clone=function(){return O.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},E}(),be=re.prototype;return B.prototype=be,[["$ms",s],["$s",n],["$m",a],["$H",l],["$W",c],["$M",u],["$y",p],["$D",w]].forEach(function(E){be[E[1]]=function(b){return this.$g(b,E[0],E[1])}}),B.extend=function(E,b){return E.$i||(E(b,re,B),E.$i=!0),B},B.locale=ae,B.isDayjs=j,B.unix=function(E){return B(1e3*E)},B.en=R[K],B.Ls=R,B.p={},B})})(hs);var ra=hs.exports;const $e=d.getDefaultExportFromCjs(ra);var oa=Object.defineProperty,sa=Object.defineProperties,na=Object.getOwnPropertyDescriptors,ro=Object.getOwnPropertySymbols,aa=Object.prototype.hasOwnProperty,la=Object.prototype.propertyIsEnumerable,qi=(r,e,t)=>e in r?oa(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Qt=(r,e)=>{for(var t in e||(e={}))aa.call(e,t)&&qi(r,t,e[t]);if(ro)for(var t of ro(e))la.call(e,t)&&qi(r,t,e[t]);return r},us=(r,e)=>sa(r,na(e)),ne=(r,e,t)=>(qi(r,typeof e!="symbol"?e+"":e,t),t),ei=(r,e,t)=>new Promise((i,o)=>{var s=l=>{try{a(t.next(l))}catch(c){o(c)}},n=l=>{try{a(t.throw(l))}catch(c){o(c)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,n);a((t=t.apply(r,e)).next())});/**
2
2
  * @license
3
3
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -14,17 +14,17 @@
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const{is:ha,defineProperty:ua,getOwnPropertyDescriptor:pa,getOwnPropertyNames:ma,getOwnPropertySymbols:_a,getPrototypeOf:fa}=Object,nt=globalThis,no=nt.trustedTypes,va=no?no.emptyScript:"",ao=nt.reactiveElementPolyfillSupport,xt=(r,e)=>r,Ui={toAttribute(r,e){switch(e){case Boolean:r=r?va:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch(i){t=null}}return t}},ms=(r,e)=>!ha(r,e),lo={attribute:!0,type:String,converter:Ui,reflect:!1,useDefault:!1,hasChanged:ms};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),nt.litPropertyMetadata!=null||(nt.litPropertyMetadata=new WeakMap);class tt 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=lo){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 i=Symbol(),o=this.getPropertyDescriptor(e,i,t);o!==void 0&&ua(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){var o;const{get:s,set:n}=(o=pa(this.prototype,e))!=null?o:{get(){return this[t]},set(a){this[t]=a}};return{get:s,set(a){const l=s==null?void 0:s.call(this);n==null||n.call(this,a),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:lo}static _$Ei(){if(this.hasOwnProperty(xt("elementProperties")))return;const e=fa(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(xt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(xt("properties"))){const t=this.properties,i=[...ma(t),..._a(t)];for(const o of i)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,o]of t)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const o=this._$Eu(t,i);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)t.unshift(so(o))}else e!==void 0&&t.push(so(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i: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,i;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return ps(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 i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){var i;const o=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,o);if(s!==void 0&&o.reflect===!0){const n=(((i=o.converter)==null?void 0:i.toAttribute)!==void 0?o.converter:Ui).toAttribute(t,o.type);this._$Em=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(e,t){var i,o,s,n;const a=this.constructor,l=a._$Eh.get(e);if(l!==void 0&&this._$Em!==l){const c=a.getPropertyOptions(l),h=typeof c.converter=="function"?{fromAttribute:c.converter}:((i=c.converter)==null?void 0:i.fromAttribute)!==void 0?c.converter:Ui;this._$Em=l,this[l]=(n=(s=h.fromAttribute(t,c.type))!=null?s:(o=this._$Ej)==null?void 0:o.get(l))!=null?n:null,this._$Em=null}}requestUpdate(e,t,i){var o,s;if(e!==void 0){const n=this.constructor,a=this[e];if(i!=null||(i=n.getPropertyOptions(e)),!(((o=i.hasChanged)!=null?o:ms)(a,t)||i.useDefault&&i.reflect&&a===((s=this._$Ej)==null?void 0:s.get(e))&&!this.hasAttribute(n._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:o,wrapped:s},n){var a,l,c;i&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=n!=null?n:t)!=null?l:this[e]),s!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&((c=this._$Eq)!=null?c:this._$Eq=new Set).add(e))}_$EP(){return ei(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[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[s,n]of o){const{wrapped:a}=n,l=this[s];a!==!0||this._$AL.has(s)||l===void 0||this.C(s,void 0,n,l)}}let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(e=this._$EO)==null||e.forEach(o=>{var s;return(s=o.hostUpdate)==null?void 0:s.call(o)}),this.update(i)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),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 co;tt.elementStyles=[],tt.shadowRootOptions={mode:"open"},tt[xt("elementProperties")]=new Map,tt[xt("finalized")]=new Map,ao==null||ao({ReactiveElement:tt}),((co=nt.reactiveElementVersions)!=null?co:nt.reactiveElementVersions=[]).push("2.1.0");/**
17
+ */const{is:ha,defineProperty:ua,getOwnPropertyDescriptor:pa,getOwnPropertyNames:ma,getOwnPropertySymbols:_a,getPrototypeOf:fa}=Object,nt=globalThis,no=nt.trustedTypes,va=no?no.emptyScript:"",ao=nt.reactiveElementPolyfillSupport,yt=(r,e)=>r,Ui={toAttribute(r,e){switch(e){case Boolean:r=r?va:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch(i){t=null}}return t}},ms=(r,e)=>!ha(r,e),lo={attribute:!0,type:String,converter:Ui,reflect:!1,useDefault:!1,hasChanged:ms};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),nt.litPropertyMetadata!=null||(nt.litPropertyMetadata=new WeakMap);class tt 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=lo){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 i=Symbol(),o=this.getPropertyDescriptor(e,i,t);o!==void 0&&ua(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){var o;const{get:s,set:n}=(o=pa(this.prototype,e))!=null?o:{get(){return this[t]},set(a){this[t]=a}};return{get:s,set(a){const l=s==null?void 0:s.call(this);n==null||n.call(this,a),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:lo}static _$Ei(){if(this.hasOwnProperty(yt("elementProperties")))return;const e=fa(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(yt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(yt("properties"))){const t=this.properties,i=[...ma(t),..._a(t)];for(const o of i)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,o]of t)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const o=this._$Eu(t,i);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)t.unshift(so(o))}else e!==void 0&&t.push(so(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i: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,i;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return ps(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 i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){var i;const o=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,o);if(s!==void 0&&o.reflect===!0){const n=(((i=o.converter)==null?void 0:i.toAttribute)!==void 0?o.converter:Ui).toAttribute(t,o.type);this._$Em=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(e,t){var i,o,s,n;const a=this.constructor,l=a._$Eh.get(e);if(l!==void 0&&this._$Em!==l){const c=a.getPropertyOptions(l),h=typeof c.converter=="function"?{fromAttribute:c.converter}:((i=c.converter)==null?void 0:i.fromAttribute)!==void 0?c.converter:Ui;this._$Em=l,this[l]=(n=(s=h.fromAttribute(t,c.type))!=null?s:(o=this._$Ej)==null?void 0:o.get(l))!=null?n:null,this._$Em=null}}requestUpdate(e,t,i){var o,s;if(e!==void 0){const n=this.constructor,a=this[e];if(i!=null||(i=n.getPropertyOptions(e)),!(((o=i.hasChanged)!=null?o:ms)(a,t)||i.useDefault&&i.reflect&&a===((s=this._$Ej)==null?void 0:s.get(e))&&!this.hasAttribute(n._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:o,wrapped:s},n){var a,l,c;i&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=n!=null?n:t)!=null?l:this[e]),s!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&((c=this._$Eq)!=null?c:this._$Eq=new Set).add(e))}_$EP(){return ei(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[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[s,n]of o){const{wrapped:a}=n,l=this[s];a!==!0||this._$AL.has(s)||l===void 0||this.C(s,void 0,n,l)}}let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(e=this._$EO)==null||e.forEach(o=>{var s;return(s=o.hostUpdate)==null?void 0:s.call(o)}),this.update(i)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),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 co;tt.elementStyles=[],tt.shadowRootOptions={mode:"open"},tt[yt("elementProperties")]=new Map,tt[yt("finalized")]=new Map,ao==null||ao({ReactiveElement:tt}),((co=nt.reactiveElementVersions)!=null?co:nt.reactiveElementVersions=[]).push("2.1.0");/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */const ti=globalThis,ii=ti.trustedTypes,ho=ii?ii.createPolicy("lit-html",{createHTML:r=>r}):void 0,_s="$lit$",Re=`lit$${Math.random().toFixed(9).slice(2)}$`,fs="?"+Re,ga=`<${fs}>`,qe=document,Ct=()=>qe.createComment(""),Pt=r=>r===null||typeof r!="object"&&typeof r!="function",br=Array.isArray,ba=r=>br(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Ti=`[
22
- \f\r]`,pt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,uo=/-->/g,po=/>/g,Be=RegExp(`>|${Ti}(?:([^\\s"'>=/]+)(${Ti}*=${Ti}*(?:[^
23
- \f\r"'\`<>=]|("|')|))|$)`,"g"),mo=/'/g,_o=/"/g,vs=/^(?:script|style|textarea|title)$/i,at=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),fo=new WeakMap,He=qe.createTreeWalker(qe,129);function gs(r,e){if(!br(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ho!==void 0?ho.createHTML(e):e}const ya=(r,e)=>{const t=r.length-1,i=[];let o,s=e===2?"<svg>":e===3?"<math>":"",n=pt;for(let a=0;a<t;a++){const l=r[a];let c,h,u=-1,f=0;for(;f<l.length&&(n.lastIndex=f,h=n.exec(l),h!==null);)f=n.lastIndex,n===pt?h[1]==="!--"?n=uo:h[1]!==void 0?n=po:h[2]!==void 0?(vs.test(h[2])&&(o=RegExp("</"+h[2],"g")),n=Be):h[3]!==void 0&&(n=Be):n===Be?h[0]===">"?(n=o!=null?o:pt,u=-1):h[1]===void 0?u=-2:(u=n.lastIndex-h[2].length,c=h[1],n=h[3]===void 0?Be:h[3]==='"'?_o:mo):n===_o||n===mo?n=Be:n===uo||n===po?n=pt:(n=Be,o=void 0);const p=n===Be&&r[a+1].startsWith("/>")?" ":"";s+=n===pt?l+ga:u>=0?(i.push(c),l.slice(0,u)+_s+l.slice(u)+Re+p):l+Re+(u===-2?a:p)}return[gs(r,s+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class kt{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let s=0,n=0;const a=e.length-1,l=this.parts,[c,h]=ya(e,t);if(this.el=kt.createElement(c,i),He.currentNode=this.el.content,t===2||t===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=He.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const u of o.getAttributeNames())if(u.endsWith(_s)){const f=h[n++],p=o.getAttribute(u).split(Re),w=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:w[2],strings:p,ctor:w[1]==="."?wa:w[1]==="?"?Ca:w[1]==="@"?Pa:ui}),o.removeAttribute(u)}else u.startsWith(Re)&&(l.push({type:6,index:s}),o.removeAttribute(u));if(vs.test(o.tagName)){const u=o.textContent.split(Re),f=u.length-1;if(f>0){o.textContent=ii?ii.emptyScript:"";for(let p=0;p<f;p++)o.append(u[p],Ct()),He.nextNode(),l.push({type:2,index:++s});o.append(u[f],Ct())}}}else if(o.nodeType===8)if(o.data===fs)l.push({type:2,index:s});else{let u=-1;for(;(u=o.data.indexOf(Re,u+1))!==-1;)l.push({type:7,index:s}),u+=Re.length-1}s++}}static createElement(e,t){const i=qe.createElement("template");return i.innerHTML=e,i}}function lt(r,e,t=r,i){var o,s,n;if(e===at)return e;let a=i!==void 0?(o=t._$Co)==null?void 0:o[i]:t._$Cl;const l=Pt(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==l&&((s=a==null?void 0:a._$AO)==null||s.call(a,!1),l===void 0?a=void 0:(a=new l(r),a._$AT(r,t,i)),i!==void 0?((n=t._$Co)!=null?n:t._$Co=[])[i]=a:t._$Cl=a),a!==void 0&&(e=lt(r,a._$AS(r,e.values),a,i)),e}class xa{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:i},parts:o}=this._$AD,s=((t=e==null?void 0:e.creationScope)!=null?t:qe).importNode(i,!0);He.currentNode=s;let n=He.nextNode(),a=0,l=0,c=o[0];for(;c!==void 0;){if(a===c.index){let h;c.type===2?h=new Mt(n,n.nextSibling,this,e):c.type===1?h=new c.ctor(n,c.name,c.strings,this,e):c.type===6&&(h=new ka(n,this,e)),this._$AV.push(h),c=o[++l]}a!==(c==null?void 0:c.index)&&(n=He.nextNode(),a++)}return He.currentNode=qe,s}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class Mt{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,i,o){var s;this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cv=(s=o==null?void 0:o.isConnected)!=null?s:!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=lt(this,e,t),Pt(e)?e===Q||e==null||e===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):e!==this._$AH&&e!==at&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ba(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!==Q&&Pt(this._$AH)?this._$AA.nextSibling.data=e:this.T(qe.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:o}=e,s=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=kt.createElement(gs(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)==null?void 0:t._$AD)===s)this._$AH.p(i);else{const n=new xa(s,this),a=n.u(this.options);n.p(i),this.T(a),this._$AH=n}}_$AC(e){let t=fo.get(e.strings);return t===void 0&&fo.set(e.strings,t=new kt(e)),t}k(e){br(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,o=0;for(const s of e)o===t.length?t.push(i=new Mt(this.O(Ct()),this.O(Ct()),this,this.options)):i=t[o],i._$AI(s),o++;o<t.length&&(this._$AR(i&&i._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e&&e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class ui{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,o,s){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Q}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(s===void 0)e=lt(this,e,t,0),n=!Pt(e)||e!==this._$AH&&e!==at,n&&(this._$AH=e);else{const a=e;let l,c;for(e=s[0],l=0;l<s.length-1;l++)c=lt(this,a[i+l],t,l),c===at&&(c=this._$AH[l]),n||(n=!Pt(c)||c!==this._$AH[l]),c===Q?e=Q:e!==Q&&(e+=(c!=null?c:"")+s[l+1]),this._$AH[l]=c}n&&!o&&this.j(e)}j(e){e===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class wa extends ui{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Q?void 0:e}}class Ca extends ui{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Q)}}class Pa extends ui{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=(i=lt(this,e,t,0))!=null?i:Q)===at)return;const o=this._$AH,s=e===Q&&o!==Q||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==Q&&(o===Q||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class ka{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){lt(this,e)}}const vo=ti.litHtmlPolyfillSupport;var go;vo==null||vo(kt,Mt),((go=ti.litHtmlVersions)!=null?go:ti.litHtmlVersions=[]).push("3.3.0");const bs=(r,e,t)=>{var i,o;const s=(i=t==null?void 0:t.renderBefore)!=null?i:e;let n=s._$litPart$;if(n===void 0){const a=(o=t==null?void 0:t.renderBefore)!=null?o:null;s._$litPart$=n=new Mt(e.insertBefore(Ct(),a),a,void 0,t!=null?t:{})}return n._$AI(r),n};/**
21
+ */const ti=globalThis,ii=ti.trustedTypes,ho=ii?ii.createPolicy("lit-html",{createHTML:r=>r}):void 0,_s="$lit$",Re=`lit$${Math.random().toFixed(9).slice(2)}$`,fs="?"+Re,ga=`<${fs}>`,qe=document,wt=()=>qe.createComment(""),Ct=r=>r===null||typeof r!="object"&&typeof r!="function",br=Array.isArray,ba=r=>br(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Ti=`[
22
+ \f\r]`,ut=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,uo=/-->/g,po=/>/g,Be=RegExp(`>|${Ti}(?:([^\\s"'>=/]+)(${Ti}*=${Ti}*(?:[^
23
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),mo=/'/g,_o=/"/g,vs=/^(?:script|style|textarea|title)$/i,at=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),fo=new WeakMap,He=qe.createTreeWalker(qe,129);function gs(r,e){if(!br(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ho!==void 0?ho.createHTML(e):e}const ya=(r,e)=>{const t=r.length-1,i=[];let o,s=e===2?"<svg>":e===3?"<math>":"",n=ut;for(let a=0;a<t;a++){const l=r[a];let c,h,u=-1,f=0;for(;f<l.length&&(n.lastIndex=f,h=n.exec(l),h!==null);)f=n.lastIndex,n===ut?h[1]==="!--"?n=uo:h[1]!==void 0?n=po:h[2]!==void 0?(vs.test(h[2])&&(o=RegExp("</"+h[2],"g")),n=Be):h[3]!==void 0&&(n=Be):n===Be?h[0]===">"?(n=o!=null?o:ut,u=-1):h[1]===void 0?u=-2:(u=n.lastIndex-h[2].length,c=h[1],n=h[3]===void 0?Be:h[3]==='"'?_o:mo):n===_o||n===mo?n=Be:n===uo||n===po?n=ut:(n=Be,o=void 0);const p=n===Be&&r[a+1].startsWith("/>")?" ":"";s+=n===ut?l+ga:u>=0?(i.push(c),l.slice(0,u)+_s+l.slice(u)+Re+p):l+Re+(u===-2?a:p)}return[gs(r,s+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class Pt{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let s=0,n=0;const a=e.length-1,l=this.parts,[c,h]=ya(e,t);if(this.el=Pt.createElement(c,i),He.currentNode=this.el.content,t===2||t===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=He.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const u of o.getAttributeNames())if(u.endsWith(_s)){const f=h[n++],p=o.getAttribute(u).split(Re),w=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:w[2],strings:p,ctor:w[1]==="."?wa:w[1]==="?"?Ca:w[1]==="@"?Pa:ui}),o.removeAttribute(u)}else u.startsWith(Re)&&(l.push({type:6,index:s}),o.removeAttribute(u));if(vs.test(o.tagName)){const u=o.textContent.split(Re),f=u.length-1;if(f>0){o.textContent=ii?ii.emptyScript:"";for(let p=0;p<f;p++)o.append(u[p],wt()),He.nextNode(),l.push({type:2,index:++s});o.append(u[f],wt())}}}else if(o.nodeType===8)if(o.data===fs)l.push({type:2,index:s});else{let u=-1;for(;(u=o.data.indexOf(Re,u+1))!==-1;)l.push({type:7,index:s}),u+=Re.length-1}s++}}static createElement(e,t){const i=qe.createElement("template");return i.innerHTML=e,i}}function lt(r,e,t=r,i){var o,s,n;if(e===at)return e;let a=i!==void 0?(o=t._$Co)==null?void 0:o[i]:t._$Cl;const l=Ct(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==l&&((s=a==null?void 0:a._$AO)==null||s.call(a,!1),l===void 0?a=void 0:(a=new l(r),a._$AT(r,t,i)),i!==void 0?((n=t._$Co)!=null?n:t._$Co=[])[i]=a:t._$Cl=a),a!==void 0&&(e=lt(r,a._$AS(r,e.values),a,i)),e}class xa{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:i},parts:o}=this._$AD,s=((t=e==null?void 0:e.creationScope)!=null?t:qe).importNode(i,!0);He.currentNode=s;let n=He.nextNode(),a=0,l=0,c=o[0];for(;c!==void 0;){if(a===c.index){let h;c.type===2?h=new zt(n,n.nextSibling,this,e):c.type===1?h=new c.ctor(n,c.name,c.strings,this,e):c.type===6&&(h=new ka(n,this,e)),this._$AV.push(h),c=o[++l]}a!==(c==null?void 0:c.index)&&(n=He.nextNode(),a++)}return He.currentNode=qe,s}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class zt{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,i,o){var s;this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cv=(s=o==null?void 0:o.isConnected)!=null?s:!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=lt(this,e,t),Ct(e)?e===Q||e==null||e===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):e!==this._$AH&&e!==at&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ba(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!==Q&&Ct(this._$AH)?this._$AA.nextSibling.data=e:this.T(qe.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:o}=e,s=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Pt.createElement(gs(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)==null?void 0:t._$AD)===s)this._$AH.p(i);else{const n=new xa(s,this),a=n.u(this.options);n.p(i),this.T(a),this._$AH=n}}_$AC(e){let t=fo.get(e.strings);return t===void 0&&fo.set(e.strings,t=new Pt(e)),t}k(e){br(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,o=0;for(const s of e)o===t.length?t.push(i=new zt(this.O(wt()),this.O(wt()),this,this.options)):i=t[o],i._$AI(s),o++;o<t.length&&(this._$AR(i&&i._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e&&e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class ui{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,o,s){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Q}_$AI(e,t=this,i,o){const s=this.strings;let n=!1;if(s===void 0)e=lt(this,e,t,0),n=!Ct(e)||e!==this._$AH&&e!==at,n&&(this._$AH=e);else{const a=e;let l,c;for(e=s[0],l=0;l<s.length-1;l++)c=lt(this,a[i+l],t,l),c===at&&(c=this._$AH[l]),n||(n=!Ct(c)||c!==this._$AH[l]),c===Q?e=Q:e!==Q&&(e+=(c!=null?c:"")+s[l+1]),this._$AH[l]=c}n&&!o&&this.j(e)}j(e){e===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class wa extends ui{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Q?void 0:e}}class Ca extends ui{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Q)}}class Pa extends ui{constructor(e,t,i,o,s){super(e,t,i,o,s),this.type=5}_$AI(e,t=this){var i;if((e=(i=lt(this,e,t,0))!=null?i:Q)===at)return;const o=this._$AH,s=e===Q&&o!==Q||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==Q&&(o===Q||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class ka{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){lt(this,e)}}const vo=ti.litHtmlPolyfillSupport;var go;vo==null||vo(Pt,zt),((go=ti.litHtmlVersions)!=null?go:ti.litHtmlVersions=[]).push("3.3.0");const bs=(r,e,t)=>{var i,o;const s=(i=t==null?void 0:t.renderBefore)!=null?i:e;let n=s._$litPart$;if(n===void 0){const a=(o=t==null?void 0:t.renderBefore)!=null?o:null;s._$litPart$=n=new zt(e.insertBefore(wt(),a),a,void 0,t!=null?t:{})}return n._$AI(r),n};/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */const At=globalThis;class it extends tt{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=bs(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 at}}var bo;it._$litElement$=!0,it.finalized=!0,(bo=At.litElementHydrateSupport)==null||bo.call(At,{LitElement:it});const yo=At.litElementPolyfillSupport;yo==null||yo({LitElement:it});var xo;((xo=At.litElementVersions)!=null?xo:At.litElementVersions=[]).push("4.2.0");/**
27
+ */const kt=globalThis;class it extends tt{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=bs(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 at}}var bo;it._$litElement$=!0,it.finalized=!0,(bo=kt.litElementHydrateSupport)==null||bo.call(kt,{LitElement:it});const yo=kt.litElementPolyfillSupport;yo==null||yo({LitElement:it});var xo;((xo=kt.litElementVersions)!=null?xo:kt.litElementVersions=[]).push("4.2.0");/**
28
28
  * @license
29
29
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
30
30
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -888,7 +888,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
888
888
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
889
889
  Code distributed by Google as part of the polymer project is also
890
890
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
891
- */let ja=/(url\()([^)]*)(\))/g,Wa=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,$t,pe;function wt(r,e){if(r&&Wa.test(r)||r==="//")return r;if($t===void 0){$t=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",$t=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),$t)try{return new URL(r,e).href}catch(t){return r}return pe||(pe=document.implementation.createHTMLDocument("temp"),pe.base=pe.createElement("base"),pe.head.appendChild(pe.base),pe.anchor=pe.createElement("a"),pe.body.appendChild(pe.anchor)),pe.base.href=e,pe.anchor.href=r,pe.anchor.href||r}function xr(r,e){return r.replace(ja,function(t,i,o,s){return i+"'"+wt(o.replace(/["']/g,""),e)+"'"+s})}function wr(r){return r.substring(0,r.lastIndexOf("/")+1)}/**
891
+ */let ja=/(url\()([^)]*)(\))/g,Wa=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,$t,pe;function xt(r,e){if(r&&Wa.test(r)||r==="//")return r;if($t===void 0){$t=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",$t=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),$t)try{return new URL(r,e).href}catch(t){return r}return pe||(pe=document.implementation.createHTMLDocument("temp"),pe.base=pe.createElement("base"),pe.head.appendChild(pe.base),pe.anchor=pe.createElement("a"),pe.body.appendChild(pe.anchor)),pe.base.href=e,pe.anchor.href=r,pe.anchor.href||r}function xr(r,e){return r.replace(ja,function(t,i,o,s){return i+"'"+xt(o.replace(/["']/g,""),e)+"'"+s})}function wr(r){return r.substring(0,r.lastIndexOf("/")+1)}/**
892
892
  @license
893
893
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
894
894
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -912,7 +912,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
912
912
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
913
913
  Code distributed by Google as part of the polymer project is also
914
914
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
915
- */let Cr={},Ts={};function Po(r,e){Cr[r]=Ts[r.toLowerCase()]=e}function ko(r){return Cr[r]||Ts[r.toLowerCase()]}function Qa(r){r.querySelector("style")&&console.warn("dom-module %s has style outside template",r.id)}class Et extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=ko(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,o){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=wt(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=wr(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(si&&ko(e)!==void 0)throw Po(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Po(e,this),Qa(this)}}}Et.prototype.modules=Cr;customElements.define("dom-module",Et);/**
915
+ */let Cr={},Ts={};function Po(r,e){Cr[r]=Ts[r.toLowerCase()]=e}function ko(r){return Cr[r]||Ts[r.toLowerCase()]}function Qa(r){r.querySelector("style")&&console.warn("dom-module %s has style outside template",r.id)}class At extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=ko(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,o){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=xt(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=wr(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(si&&ko(e)!==void 0)throw Po(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Po(e,this),Qa(this)}}}At.prototype.modules=Cr;customElements.define("dom-module",At);/**
916
916
  @license
917
917
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
918
918
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -920,7 +920,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
920
920
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
921
921
  Code distributed by Google as part of the polymer project is also
922
922
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
923
- */const el="link[rel=import][type~=css]",tl="include",Ao="shady-unscoped";function Ds(r){return Et.import(r)}function Eo(r){let e=r.body?r.body:r;const t=xr(e.textContent,r.baseURI),i=document.createElement("style");return i.textContent=t,i}function il(r){const e=r.trim().split(/\s+/),t=[];for(let i=0;i<e.length;i++)t.push(...rl(e[i]));return t}function rl(r){const e=Ds(r);if(!e)return console.warn("Could not find style data in module named",r),[];if(e._styles===void 0){const t=[];t.push(...Rs(e));const i=e.querySelector("template");i&&t.push(...Os(i,e.assetpath)),e._styles=t}return e._styles}function Os(r,e){if(!r._styles){const t=[],i=r.content.querySelectorAll("style");for(let o=0;o<i.length;o++){let s=i[o],n=s.getAttribute(tl);n&&t.push(...il(n).filter(function(a,l,c){return c.indexOf(a)===l})),e&&(s.textContent=xr(s.textContent,e)),t.push(s)}r._styles=t}return r._styles}function ol(r){let e=Ds(r);return e?Rs(e):[]}function Rs(r){const e=[],t=r.querySelectorAll(el);for(let i=0;i<t.length;i++){let o=t[i];if(o.import){const s=o.import,n=o.hasAttribute(Ao);if(n&&!s._unscopedStyle){const a=Eo(s);a.setAttribute(Ao,""),s._unscopedStyle=a}else s._style||(s._style=Eo(s));e.push(n?s._unscopedStyle:s._style)}}return e}/**
923
+ */const el="link[rel=import][type~=css]",tl="include",Ao="shady-unscoped";function Ds(r){return At.import(r)}function Eo(r){let e=r.body?r.body:r;const t=xr(e.textContent,r.baseURI),i=document.createElement("style");return i.textContent=t,i}function il(r){const e=r.trim().split(/\s+/),t=[];for(let i=0;i<e.length;i++)t.push(...rl(e[i]));return t}function rl(r){const e=Ds(r);if(!e)return console.warn("Could not find style data in module named",r),[];if(e._styles===void 0){const t=[];t.push(...Rs(e));const i=e.querySelector("template");i&&t.push(...Os(i,e.assetpath)),e._styles=t}return e._styles}function Os(r,e){if(!r._styles){const t=[],i=r.content.querySelectorAll("style");for(let o=0;o<i.length;o++){let s=i[o],n=s.getAttribute(tl);n&&t.push(...il(n).filter(function(a,l,c){return c.indexOf(a)===l})),e&&(s.textContent=xr(s.textContent,e)),t.push(s)}r._styles=t}return r._styles}function ol(r){let e=Ds(r);return e?Rs(e):[]}function Rs(r){const e=[],t=r.querySelectorAll(el);for(let i=0;i<t.length;i++){let o=t[i];if(o.import){const s=o.import,n=o.hasAttribute(Ao);if(n&&!s._unscopedStyle){const a=Eo(s);a.setAttribute(Ao,""),s._unscopedStyle=a}else s._style||(s._style=Eo(s));e.push(n?s._unscopedStyle:s._style)}}return e}/**
924
924
  @license
925
925
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
926
926
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -936,7 +936,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
936
936
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
937
937
  Code distributed by Google as part of the polymer project is also
938
938
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
939
- */function Ji(r){return r.indexOf(".")>=0}function Ue(r){let e=r.indexOf(".");return e===-1?r:r.slice(0,e)}function zs(r,e){return r.indexOf(e+".")===0}function It(r,e){return e.indexOf(r+".")===0}function St(r,e,t){return e+t.slice(r.length)}function sl(r,e){return r===e||zs(r,e)||It(r,e)}function gt(r){if(Array.isArray(r)){let e=[];for(let t=0;t<r.length;t++){let i=r[t].toString().split(".");for(let o=0;o<i.length;o++)e.push(i[o])}return e.join(".")}else return r}function Ms(r){return Array.isArray(r)?gt(r).split("."):r.toString().split(".")}function ce(r,e,t){let i=r,o=Ms(e);for(let s=0;s<o.length;s++){if(!i)return;let n=o[s];i=i[n]}return t&&(t.path=o.join(".")),i}function Io(r,e,t){let i=r,o=Ms(e),s=o[o.length-1];if(o.length>1){for(let n=0;n<o.length-1;n++){let a=o[n];if(i=i[a],!i)return}i[s]=t}else i[e]=t;return o.join(".")}/**
939
+ */function Ji(r){return r.indexOf(".")>=0}function Ue(r){let e=r.indexOf(".");return e===-1?r:r.slice(0,e)}function zs(r,e){return r.indexOf(e+".")===0}function Et(r,e){return e.indexOf(r+".")===0}function It(r,e,t){return e+t.slice(r.length)}function sl(r,e){return r===e||zs(r,e)||Et(r,e)}function vt(r){if(Array.isArray(r)){let e=[];for(let t=0;t<r.length;t++){let i=r[t].toString().split(".");for(let o=0;o<i.length;o++)e.push(i[o])}return e.join(".")}else return r}function Ms(r){return Array.isArray(r)?vt(r).split("."):r.toString().split(".")}function ce(r,e,t){let i=r,o=Ms(e);for(let s=0;s<o.length;s++){if(!i)return;let n=o[s];i=i[n]}return t&&(t.path=o.join(".")),i}function Io(r,e,t){let i=r,o=Ms(e),s=o[o.length-1];if(o.length>1){for(let n=0;n<o.length-1;n++){let a=o[n];if(i=i[a],!i)return}i[s]=t}else i[e]=t;return o.join(".")}/**
940
940
  @license
941
941
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
942
942
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -986,7 +986,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
986
986
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
987
987
  * Google as part of the polymer project is also subject to an additional IP
988
988
  * rights grant found at http://polymer.github.io/PATENTS.txt
989
- */let Tt=0;const Dt=[],L={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},js="__computeInfo",Al=/[A-Z]/;function Di(r,e,t){let i=r[e];if(!i)i=r[e]={};else if(!r.hasOwnProperty(e)&&(i=r[e]=Object.create(r[e]),t))for(let o in i){let s=i[o],n=i[o]=Array(s.length);for(let a=0;a<s.length;a++)n[a]=s[a]}return i}function bt(r,e,t,i,o,s){if(e){let n=!1;const a=Tt++;for(let l in t){let c=o?Ue(l):l,h=e[c];if(h)for(let u=0,f=h.length,p;u<f&&(p=h[u]);u++)(!p.info||p.info.lastRun!==a)&&(!o||Pr(l,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(r,l,t,i,p.info,o,s),n=!0)}return n}return!1}function El(r,e,t,i,o,s,n,a){let l=!1,c=n?Ue(i):i,h=e[c];if(h)for(let u=0,f=h.length,p;u<f&&(p=h[u]);u++)(!p.info||p.info.lastRun!==t)&&(!n||Pr(i,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(r,i,o,s,p.info,n,a),l=!0);return l}function Pr(r,e){if(e){let t=e.name;return t==r||!!(e.structured&&zs(t,r))||!!(e.wildcard&&It(t,r))}else return!0}function Do(r,e,t,i,o){let s=typeof o.method=="string"?r[o.method]:o.method,n=o.property;s?s.call(r,r.__data[n],i[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function Il(r,e,t,i,o){let s=r[L.NOTIFY],n,a=Tt++;for(let c in e)e[c]&&(s&&El(r,s,a,c,t,i,o)||o&&Sl(r,c,t))&&(n=!0);let l;n&&(l=r.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Sl(r,e,t){let i=Ue(e);if(i!==e){let o=pi(i)+"-changed";return Ws(r,o,t[e],e),!0}return!1}function Ws(r,e,t,i){let o={value:t,queueProperty:!0};i&&(o.path=i),ie(r).dispatchEvent(new CustomEvent(e,{detail:o}))}function Tl(r,e,t,i,o,s){let n=(s?Ue(e):e)!=e?e:null,a=n?ce(r,n):r.__data[e];n&&a===void 0&&(a=t[e]),Ws(r,o.eventName,a,n)}function Dl(r,e,t,i,o){let s,n=r.detail,a=n&&n.path;a?(i=St(t,i,a),s=n&&n.value):s=r.currentTarget[t],s=o?!s:s,(!e[L.READ_ONLY]||!e[L.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,s,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function Ol(r,e,t,i,o){let s=r.__data[e];oi&&(s=oi(s,o.attrName,"attribute",r)),r._propertyToAttribute(e,o.attrName,s)}function Rl(r,e,t,i){let o=r[L.COMPUTE];if(o)if(Ga){Tt++;const s=Ml(r),n=[];for(let l in e)Oo(l,o,n,s,i);let a;for(;a=n.shift();)qs(r,"",e,t,a)&&Oo(a.methodInfo,o,n,s,i);Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),r.__dataPending=null}else{let s=e;for(;bt(r,o,s,t,i);)Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),s=r.__dataPending,r.__dataPending=null}}const zl=(r,e,t)=>{let i=0,o=e.length-1,s=-1;for(;i<=o;){const n=i+o>>1,a=t.get(e[n].methodInfo)-t.get(r.methodInfo);if(a<0)i=n+1;else if(a>0)o=n-1;else{s=n;break}}s<0&&(s=o+1),e.splice(s,0,r)},Oo=(r,e,t,i,o)=>{const s=o?Ue(r):r,n=e[s];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Tt&&(!o||Pr(r,l.trigger))&&(l.info.lastRun=Tt,zl(l.info,t,i))}};function Ml(r){let e=r.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=r[L.COMPUTE];let{counts:i,ready:o,total:s}=Nl(r),n;for(;n=o.shift();){e.set(n,e.size);const a=t[n];a&&a.forEach(l=>{const c=l.info.methodInfo;--s,--i[c]===0&&o.push(c)})}s!==0&&console.warn(`Computed graph for ${r.localName} incomplete; circular?`),r.constructor.__orderedComputedDeps=e}return e}function Nl(r){const e=r[js],t={},i=r[L.COMPUTE],o=[];let s=0;for(let n in e){const a=e[n];s+=t[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)e[n]||o.push(n);return{counts:t,ready:o,total:s}}function qs(r,e,t,i,o){let s=Zi(r,e,t,i,o);if(s===Dt)return!1;let n=o.methodInfo;return r.__dataHasAccessor&&r.__dataHasAccessor[n]?r._setPendingProperty(n,s,!0):(r[n]=s,!1)}function Ll(r,e,t){let i=r.__dataLinkedPaths;if(i){let o;for(let s in i){let n=i[s];It(s,e)?(o=St(s,n,e),r._setPendingPropertyOrPath(o,t,!0,!0)):It(n,e)&&(o=St(n,s,e),r._setPendingPropertyOrPath(o,t,!0,!0))}}}function Oi(r,e,t,i,o,s,n){t.bindings=t.bindings||[];let a={kind:i,target:o,parts:s,literal:n,isCompound:s.length!==1};if(t.bindings.push(a),Hl(a)){let{event:c,negate:h}=a.parts[0];a.listenerEvent=c||pi(o)+"-changed",a.listenerNegate=h}let l=e.nodeInfoList.length;for(let c=0;c<a.parts.length;c++){let h=a.parts[c];h.compoundIndex=c,Vl(r,e,a,h,l)}}function Vl(r,e,t,i,o){if(!i.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 s=i.dependencies,n={index:o,binding:t,part:i,evaluator:r};for(let a=0;a<s.length;a++){let l=s[a];typeof l=="string"&&(l=Ys(l),l.wildcard=!0),r._addTemplatePropertyEffect(e,l.rootProperty,{fn:Fl,info:n,trigger:l})}}}function Fl(r,e,t,i,o,s,n){let a=n[o.index],l=o.binding,c=o.part;if(s&&c.source&&e.length>c.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let h=t[e];e=St(c.source,l.target,e),a._setPendingPropertyOrPath(e,h,!1,!0)&&r._enqueueClient(a)}else{let h=o.evaluator._evaluateBinding(r,c,e,t,i,s);h!==Dt&&Bl(r,a,l,c,h)}}function Bl(r,e,t,i,o){if(o=$l(e,o,t,i),oi&&(o=oi(o,t.target,t.kind,e)),t.kind=="attribute")r._valueToNodeAttribute(e,o,t.target);else{let s=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?(!e[L.READ_ONLY]||!e[L.READ_ONLY][s])&&e._setPendingProperty(s,o)&&r._enqueueClient(e):r._setUnmanagedPropertyToNode(e,s,o)}}function $l(r,e,t,i){if(t.isCompound){let o=r.__dataCompoundStorage[t.target];o[i.compoundIndex]=e,e=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(r.localName==="input"||r.localName==="textarea"))&&(e=e==null?"":e),e}function Hl(r){return!!r.target&&r.kind!="attribute"&&r.kind!="text"&&!r.isCompound&&r.parts[0].mode==="{"}function jl(r,e){let{nodeList:t,nodeInfoList:i}=e;if(i.length)for(let o=0;o<i.length;o++){let s=i[o],n=t[o],a=s.bindings;if(a)for(let l=0;l<a.length;l++){let c=a[l];Wl(n,c),ql(n,r,c)}n.__dataHost=r}}function Wl(r,e){if(e.isCompound){let t=r.__dataCompoundStorage||(r.__dataCompoundStorage={}),i=e.parts,o=new Array(i.length);for(let n=0;n<i.length;n++)o[n]=i[n].literal;let s=e.target;t[s]=o,e.literal&&e.kind=="property"&&(s==="className"&&(r=ie(r)),r[s]=e.literal)}}function ql(r,e,t){if(t.listenerEvent){let i=t.parts[0];r.addEventListener(t.listenerEvent,function(o){Dl(o,e,t.target,i.source,i.negate)})}}function Ro(r,e,t,i,o,s){s=e.static||s&&(typeof s!="object"||s[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:s};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||r._addPropertyEffect(l.rootProperty,t,{fn:i,info:n,trigger:l});return s&&r._addPropertyEffect(e.methodName,t,{fn:i,info:n}),n}function Zi(r,e,t,i,o){let s=r._methodHost||r,n=s[o.methodName];if(n){let a=r._marshalArgs(o.args,e,t);return a===Dt?Dt:n.apply(s,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const Ul=[],Us="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Yl="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Kl="(?:'(?:[^'\\\\]|\\\\.)*')",Gl='(?:"(?:[^"\\\\]|\\\\.)*")',Jl="(?:"+Kl+"|"+Gl+")",zo="(?:("+Us+"|"+Yl+"|"+Jl+")\\s*)",Xl="(?:"+zo+"(?:,\\s*"+zo+")*)",Zl="(?:\\(\\s*(?:"+Xl+"?)\\)\\s*)",Ql="("+Us+"\\s*"+Zl+"?)",ed="(\\[\\[|{{)\\s*",td="(?:]]|}})",id="(?:(!)\\s*)?",rd=ed+id+Ql+td,Mo=new RegExp(rd,"g");function No(r){let e="";for(let t=0;t<r.length;t++){let i=r[t].literal;e+=i||""}return e}function Ri(r){let e=r.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Ul};if(e[2].trim()){let i=e[2].replace(/\\,/g,"&comma;").split(",");return od(i,t)}else return t}return null}function od(r,e){return e.args=r.map(function(t){let i=Ys(t);return i.literal||(e.static=!1),i},this),e}function Ys(r){let e=r.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},i=e[0];switch(i==="-"&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){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=Ue(e),t.structured=Ji(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function Lo(r,e,t){let i=ce(r,t);return i===void 0&&(i=e[t]),i}function Ks(r,e,t,i){const o={indexSplices:i};Gi&&!r._overrideLegacyUndefined&&(e.splices=o),r.notifyPath(t+".splices",o),r.notifyPath(t+".length",e.length),Gi&&!r._overrideLegacyUndefined&&(o.indexSplices=[])}function mt(r,e,t,i,o,s){Ks(r,e,t,[{index:i,addedCount:o,removed:s,object:e,type:"splice"}])}function sd(r){return r[0].toUpperCase()+r.substring(1)}const kr=J(r=>{const e=kl(_l(r));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return L}_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(_t.length){let o=_t[_t.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 s=this[L.READ_ONLY];for(let n in o)(!s||!s[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n])}_addPropertyEffect(o,s,n){this._createPropertyAccessor(o,s==L.READ_ONLY);let a=Di(this,s,!0)[o];a||(a=this[s][o]=[]),a.push(n)}_removePropertyEffect(o,s,n){let a=Di(this,s,!0)[o],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(o,s){let n=this[s];return!!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,L.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,L.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,L.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,L.COMPUTE)}_setPendingPropertyOrPath(o,s,n,a){if(a||Ue(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=ce(this,o);if(o=Io(this,o,s),!o||!super._shouldPropertyChange(o,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,s,n))return Ll(this,o,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,s,n);this[o]=s}return!1}_setUnmanagedPropertyToNode(o,s,n){(n!==o[s]||typeof n=="object")&&(s==="className"&&(o=ie(o)),o[s]=n)}_setPendingProperty(o,s,n){let a=this.__dataHasPaths&&Ji(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,s,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=s:this.__data[o]=s,this.__dataPending[o]=s,(a||this[L.NOTIFY]&&this[L.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,s){this._setPendingProperty(o,s,!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 s=0;s<o.length;s++){let n=o[s];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,s){for(let n in o)(s||!this[L.READ_ONLY]||!this[L.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,s,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Rl(this,s,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,n,a),this._flushClients(),bt(this,this[L.REFLECT],s,n,a),bt(this,this[L.OBSERVE],s,n,a),l&&Il(this,l,s,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,s,n){this[L.PROPAGATE]&&bt(this,this[L.PROPAGATE],o,s,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,s,n)}_runEffectsForTemplate(o,s,n,a){const l=(c,h)=>{bt(this,o.propertyEffects,c,n,h,o.nodeList);for(let u=o.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,c,n,h)};o.runEffects?o.runEffects(l,s,a):l(s,a)}linkPaths(o,s){o=gt(o),s=gt(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=s}unlinkPaths(o){o=gt(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,s){let n={path:""},a=ce(this,o,n);Ks(this,a,n.path,s)}get(o,s){return ce(s||this,o)}set(o,s,n){n?Io(n,o,s):(!this[L.READ_ONLY]||!this[L.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,s,!0)&&this._invalidateProperties()}push(o,...s){let n={path:""},a=ce(this,o,n),l=a.length,c=a.push(...s);return s.length&&mt(this,a,n.path,l,s.length,[]),c}pop(o){let s={path:""},n=ce(this,o,s),a=!!n.length,l=n.pop();return a&&mt(this,n,s.path,n.length,0,[l]),l}splice(o,s,n,...a){let l={path:""},c=ce(this,o,l);s<0?s=c.length-Math.floor(-s):s&&(s=Math.floor(s));let h;return arguments.length===2?h=c.splice(s):h=c.splice(s,n,...a),(a.length||h.length)&&mt(this,c,l.path,s,a.length,h),h}shift(o){let s={path:""},n=ce(this,o,s),a=!!n.length,l=n.shift();return a&&mt(this,n,s.path,0,0,[l]),l}unshift(o,...s){let n={path:""},a=ce(this,o,n),l=a.unshift(...s);return s.length&&mt(this,a,n.path,0,s.length,[]),l}notifyPath(o,s){let n;if(arguments.length==1){let a={path:""};s=ce(this,o,a),n=a.path}else Array.isArray(o)?n=gt(o):n=o;this._setPendingPropertyOrPath(n,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,s){this._addPropertyEffect(o,L.READ_ONLY),s&&(this["_set"+sd(o)]=function(n){this._setProperty(o,n)})}_createPropertyObserver(o,s,n){let a={property:o,method:s,dynamicFn:!!n};this._addPropertyEffect(o,L.OBSERVE,{fn:Do,info:a,trigger:{name:o}}),n&&this._addPropertyEffect(s,L.OBSERVE,{fn:Do,info:a,trigger:{name:s}})}_createMethodObserver(o,s){let n=Ri(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");Ro(this,n,L.OBSERVE,Zi,null,s)}_createNotifyingProperty(o){this._addPropertyEffect(o,L.NOTIFY,{fn:Tl,info:{eventName:pi(o)+"-changed",property:o}})}_createReflectedProperty(o){let s=this.constructor.attributeNameForProperty(o);s[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,L.REFLECT,{fn:Ol,info:{attrName:s}})}_createComputedProperty(o,s,n){let a=Ri(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const l=Ro(this,a,L.COMPUTE,qs,o,n);Di(this,js)[o]=l}_marshalArgs(o,s,n){const a=this.__data,l=[];for(let c=0,h=o.length;c<h;c++){let{name:u,structured:f,wildcard:p,value:w,literal:S}=o[c];if(!S)if(p){const A=It(u,s),D=Lo(a,n,A?s:u);w={path:A?s:u,value:D,base:A?ce(a,u):D}}else w=f?Lo(a,n,u):a[u];if(Gi&&!this._overrideLegacyUndefined&&w===void 0&&o.length>1)return Dt;l[c]=w}return l}static addPropertyEffect(o,s,n){this.prototype._addPropertyEffect(o,s,n)}static createPropertyObserver(o,s,n){this.prototype._createPropertyObserver(o,s,n)}static createMethodObserver(o,s){this.prototype._createMethodObserver(o,s)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,s){this.prototype._createReadOnlyProperty(o,s)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,s,n){this.prototype._createComputedProperty(o,s,n)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,s){let n=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(s)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=o._parentTemplateInfo||this.__templateInfo,c=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=c,c?c.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(o,s,n){let a=o.hostProps=o.hostProps||{};a[s]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[s]=l[s]||[]).push(n)}_stampTemplate(o,s){s=s||this._bindTemplate(o,!0),_t.push(this);let n=super._stampTemplate(o,s);if(_t.pop(),s.nodeList=n.nodeList,!s.wasPreBound){let a=s.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=s,jl(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const s=o.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=s;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),s.nextSibling=s.previousSibling=null;let c=s.childNodes;for(let h=0;h<c.length;h++){let u=c[h];ie(ie(u).parentNode).removeChild(u)}}static _parseTemplateNode(o,s,n){let a=e._parseTemplateNode.call(this,o,s,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,s);l&&(o.textContent=No(l)||" ",Oi(this,s,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(o,s,n,a,l){let c=this._parseBindings(l,s);if(c){let h=a,u="property";Al.test(a)?u="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),u="attribute");let f=No(c);return f&&u=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(f+=" "+o.getAttribute(a)),o.setAttribute(a,f)),u=="attribute"&&h=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&h==="value"&&o.setAttribute(h,""),o.removeAttribute(h),u==="property"&&(a=Ns(a)),Oi(this,s,n,u,a,c,f),!0}else return e._parseTemplateNodeAttribute.call(this,o,s,n,a,l)}static _parseTemplateNestedTemplate(o,s,n){let a=e._parseTemplateNestedTemplate.call(this,o,s,n);const l=o.parentNode,c=n.templateInfo,h=l.localName==="dom-if",u=l.localName==="dom-repeat";wo&&(h||u)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=c,n.noted=!0,a=!1);let f=c.hostProps;if(Ja&&h)f&&(s.hostProps=Object.assign(s.hostProps||{},f),wo||(n.parentInfo.noted=!0));else{let p="{";for(let w in f){let S=[{mode:p,source:w,dependencies:[w],hostProp:!0}];Oi(this,s,n,"property","_host_"+w,S)}}return a}static _parseBindings(o,s){let n=[],a=0,l;for(;(l=Mo.exec(o))!==null;){l.index>a&&n.push({literal:o.slice(a,l.index)});let c=l[1][0],h=!!l[2],u=l[3].trim(),f=!1,p="",w=-1;c=="{"&&(w=u.indexOf("::"))>0&&(p=u.substring(w+2),u=u.substring(0,w),f=!0);let S=Ri(u),A=[];if(S){let{args:D,methodName:$}=S;for(let N=0;N<D.length;N++){let K=D[N];K.literal||A.push(K)}let H=s.dynamicFns;(H&&H[$]||S.static)&&(A.push($),S.dynamicFn=!0)}else A.push(u);n.push({source:u,mode:c,negate:h,customEvent:f,signature:S,dependencies:A,event:p}),a=Mo.lastIndex}if(a&&a<o.length){let c=o.substring(a);c&&n.push({literal:c})}return n.length?n:null}static _evaluateBinding(o,s,n,a,l,c){let h;return s.signature?h=Zi(o,n,a,l,s.signature):n!=s.source?h=ce(o,s.source):c&&Ji(n)?h=ce(o,n):h=o.__data[n],s.negate&&(h=!h),h}}return t}),_t=[];/**
989
+ */let St=0;const Tt=[],L={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},js="__computeInfo",Al=/[A-Z]/;function Di(r,e,t){let i=r[e];if(!i)i=r[e]={};else if(!r.hasOwnProperty(e)&&(i=r[e]=Object.create(r[e]),t))for(let o in i){let s=i[o],n=i[o]=Array(s.length);for(let a=0;a<s.length;a++)n[a]=s[a]}return i}function gt(r,e,t,i,o,s){if(e){let n=!1;const a=St++;for(let l in t){let c=o?Ue(l):l,h=e[c];if(h)for(let u=0,f=h.length,p;u<f&&(p=h[u]);u++)(!p.info||p.info.lastRun!==a)&&(!o||Pr(l,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(r,l,t,i,p.info,o,s),n=!0)}return n}return!1}function El(r,e,t,i,o,s,n,a){let l=!1,c=n?Ue(i):i,h=e[c];if(h)for(let u=0,f=h.length,p;u<f&&(p=h[u]);u++)(!p.info||p.info.lastRun!==t)&&(!n||Pr(i,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(r,i,o,s,p.info,n,a),l=!0);return l}function Pr(r,e){if(e){let t=e.name;return t==r||!!(e.structured&&zs(t,r))||!!(e.wildcard&&Et(t,r))}else return!0}function Do(r,e,t,i,o){let s=typeof o.method=="string"?r[o.method]:o.method,n=o.property;s?s.call(r,r.__data[n],i[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function Il(r,e,t,i,o){let s=r[L.NOTIFY],n,a=St++;for(let c in e)e[c]&&(s&&El(r,s,a,c,t,i,o)||o&&Sl(r,c,t))&&(n=!0);let l;n&&(l=r.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Sl(r,e,t){let i=Ue(e);if(i!==e){let o=pi(i)+"-changed";return Ws(r,o,t[e],e),!0}return!1}function Ws(r,e,t,i){let o={value:t,queueProperty:!0};i&&(o.path=i),ie(r).dispatchEvent(new CustomEvent(e,{detail:o}))}function Tl(r,e,t,i,o,s){let n=(s?Ue(e):e)!=e?e:null,a=n?ce(r,n):r.__data[e];n&&a===void 0&&(a=t[e]),Ws(r,o.eventName,a,n)}function Dl(r,e,t,i,o){let s,n=r.detail,a=n&&n.path;a?(i=It(t,i,a),s=n&&n.value):s=r.currentTarget[t],s=o?!s:s,(!e[L.READ_ONLY]||!e[L.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,s,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function Ol(r,e,t,i,o){let s=r.__data[e];oi&&(s=oi(s,o.attrName,"attribute",r)),r._propertyToAttribute(e,o.attrName,s)}function Rl(r,e,t,i){let o=r[L.COMPUTE];if(o)if(Ga){St++;const s=Ml(r),n=[];for(let l in e)Oo(l,o,n,s,i);let a;for(;a=n.shift();)qs(r,"",e,t,a)&&Oo(a.methodInfo,o,n,s,i);Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),r.__dataPending=null}else{let s=e;for(;gt(r,o,s,t,i);)Object.assign(t,r.__dataOld),Object.assign(e,r.__dataPending),s=r.__dataPending,r.__dataPending=null}}const zl=(r,e,t)=>{let i=0,o=e.length-1,s=-1;for(;i<=o;){const n=i+o>>1,a=t.get(e[n].methodInfo)-t.get(r.methodInfo);if(a<0)i=n+1;else if(a>0)o=n-1;else{s=n;break}}s<0&&(s=o+1),e.splice(s,0,r)},Oo=(r,e,t,i,o)=>{const s=o?Ue(r):r,n=e[s];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==St&&(!o||Pr(r,l.trigger))&&(l.info.lastRun=St,zl(l.info,t,i))}};function Ml(r){let e=r.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=r[L.COMPUTE];let{counts:i,ready:o,total:s}=Nl(r),n;for(;n=o.shift();){e.set(n,e.size);const a=t[n];a&&a.forEach(l=>{const c=l.info.methodInfo;--s,--i[c]===0&&o.push(c)})}s!==0&&console.warn(`Computed graph for ${r.localName} incomplete; circular?`),r.constructor.__orderedComputedDeps=e}return e}function Nl(r){const e=r[js],t={},i=r[L.COMPUTE],o=[];let s=0;for(let n in e){const a=e[n];s+=t[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)e[n]||o.push(n);return{counts:t,ready:o,total:s}}function qs(r,e,t,i,o){let s=Zi(r,e,t,i,o);if(s===Tt)return!1;let n=o.methodInfo;return r.__dataHasAccessor&&r.__dataHasAccessor[n]?r._setPendingProperty(n,s,!0):(r[n]=s,!1)}function Ll(r,e,t){let i=r.__dataLinkedPaths;if(i){let o;for(let s in i){let n=i[s];Et(s,e)?(o=It(s,n,e),r._setPendingPropertyOrPath(o,t,!0,!0)):Et(n,e)&&(o=It(n,s,e),r._setPendingPropertyOrPath(o,t,!0,!0))}}}function Oi(r,e,t,i,o,s,n){t.bindings=t.bindings||[];let a={kind:i,target:o,parts:s,literal:n,isCompound:s.length!==1};if(t.bindings.push(a),Hl(a)){let{event:c,negate:h}=a.parts[0];a.listenerEvent=c||pi(o)+"-changed",a.listenerNegate=h}let l=e.nodeInfoList.length;for(let c=0;c<a.parts.length;c++){let h=a.parts[c];h.compoundIndex=c,Vl(r,e,a,h,l)}}function Vl(r,e,t,i,o){if(!i.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 s=i.dependencies,n={index:o,binding:t,part:i,evaluator:r};for(let a=0;a<s.length;a++){let l=s[a];typeof l=="string"&&(l=Ys(l),l.wildcard=!0),r._addTemplatePropertyEffect(e,l.rootProperty,{fn:Fl,info:n,trigger:l})}}}function Fl(r,e,t,i,o,s,n){let a=n[o.index],l=o.binding,c=o.part;if(s&&c.source&&e.length>c.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let h=t[e];e=It(c.source,l.target,e),a._setPendingPropertyOrPath(e,h,!1,!0)&&r._enqueueClient(a)}else{let h=o.evaluator._evaluateBinding(r,c,e,t,i,s);h!==Tt&&Bl(r,a,l,c,h)}}function Bl(r,e,t,i,o){if(o=$l(e,o,t,i),oi&&(o=oi(o,t.target,t.kind,e)),t.kind=="attribute")r._valueToNodeAttribute(e,o,t.target);else{let s=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?(!e[L.READ_ONLY]||!e[L.READ_ONLY][s])&&e._setPendingProperty(s,o)&&r._enqueueClient(e):r._setUnmanagedPropertyToNode(e,s,o)}}function $l(r,e,t,i){if(t.isCompound){let o=r.__dataCompoundStorage[t.target];o[i.compoundIndex]=e,e=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(r.localName==="input"||r.localName==="textarea"))&&(e=e==null?"":e),e}function Hl(r){return!!r.target&&r.kind!="attribute"&&r.kind!="text"&&!r.isCompound&&r.parts[0].mode==="{"}function jl(r,e){let{nodeList:t,nodeInfoList:i}=e;if(i.length)for(let o=0;o<i.length;o++){let s=i[o],n=t[o],a=s.bindings;if(a)for(let l=0;l<a.length;l++){let c=a[l];Wl(n,c),ql(n,r,c)}n.__dataHost=r}}function Wl(r,e){if(e.isCompound){let t=r.__dataCompoundStorage||(r.__dataCompoundStorage={}),i=e.parts,o=new Array(i.length);for(let n=0;n<i.length;n++)o[n]=i[n].literal;let s=e.target;t[s]=o,e.literal&&e.kind=="property"&&(s==="className"&&(r=ie(r)),r[s]=e.literal)}}function ql(r,e,t){if(t.listenerEvent){let i=t.parts[0];r.addEventListener(t.listenerEvent,function(o){Dl(o,e,t.target,i.source,i.negate)})}}function Ro(r,e,t,i,o,s){s=e.static||s&&(typeof s!="object"||s[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:s};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||r._addPropertyEffect(l.rootProperty,t,{fn:i,info:n,trigger:l});return s&&r._addPropertyEffect(e.methodName,t,{fn:i,info:n}),n}function Zi(r,e,t,i,o){let s=r._methodHost||r,n=s[o.methodName];if(n){let a=r._marshalArgs(o.args,e,t);return a===Tt?Tt:n.apply(s,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const Ul=[],Us="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Yl="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Kl="(?:'(?:[^'\\\\]|\\\\.)*')",Gl='(?:"(?:[^"\\\\]|\\\\.)*")',Jl="(?:"+Kl+"|"+Gl+")",zo="(?:("+Us+"|"+Yl+"|"+Jl+")\\s*)",Xl="(?:"+zo+"(?:,\\s*"+zo+")*)",Zl="(?:\\(\\s*(?:"+Xl+"?)\\)\\s*)",Ql="("+Us+"\\s*"+Zl+"?)",ed="(\\[\\[|{{)\\s*",td="(?:]]|}})",id="(?:(!)\\s*)?",rd=ed+id+Ql+td,Mo=new RegExp(rd,"g");function No(r){let e="";for(let t=0;t<r.length;t++){let i=r[t].literal;e+=i||""}return e}function Ri(r){let e=r.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Ul};if(e[2].trim()){let i=e[2].replace(/\\,/g,"&comma;").split(",");return od(i,t)}else return t}return null}function od(r,e){return e.args=r.map(function(t){let i=Ys(t);return i.literal||(e.static=!1),i},this),e}function Ys(r){let e=r.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},i=e[0];switch(i==="-"&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){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=Ue(e),t.structured=Ji(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function Lo(r,e,t){let i=ce(r,t);return i===void 0&&(i=e[t]),i}function Ks(r,e,t,i){const o={indexSplices:i};Gi&&!r._overrideLegacyUndefined&&(e.splices=o),r.notifyPath(t+".splices",o),r.notifyPath(t+".length",e.length),Gi&&!r._overrideLegacyUndefined&&(o.indexSplices=[])}function pt(r,e,t,i,o,s){Ks(r,e,t,[{index:i,addedCount:o,removed:s,object:e,type:"splice"}])}function sd(r){return r[0].toUpperCase()+r.substring(1)}const kr=J(r=>{const e=kl(_l(r));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return L}_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(mt.length){let o=mt[mt.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 s=this[L.READ_ONLY];for(let n in o)(!s||!s[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n])}_addPropertyEffect(o,s,n){this._createPropertyAccessor(o,s==L.READ_ONLY);let a=Di(this,s,!0)[o];a||(a=this[s][o]=[]),a.push(n)}_removePropertyEffect(o,s,n){let a=Di(this,s,!0)[o],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(o,s){let n=this[s];return!!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,L.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,L.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,L.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,L.COMPUTE)}_setPendingPropertyOrPath(o,s,n,a){if(a||Ue(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=ce(this,o);if(o=Io(this,o,s),!o||!super._shouldPropertyChange(o,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,s,n))return Ll(this,o,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,s,n);this[o]=s}return!1}_setUnmanagedPropertyToNode(o,s,n){(n!==o[s]||typeof n=="object")&&(s==="className"&&(o=ie(o)),o[s]=n)}_setPendingProperty(o,s,n){let a=this.__dataHasPaths&&Ji(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,s,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=s:this.__data[o]=s,this.__dataPending[o]=s,(a||this[L.NOTIFY]&&this[L.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,s){this._setPendingProperty(o,s,!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 s=0;s<o.length;s++){let n=o[s];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,s){for(let n in o)(s||!this[L.READ_ONLY]||!this[L.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,s,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Rl(this,s,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,n,a),this._flushClients(),gt(this,this[L.REFLECT],s,n,a),gt(this,this[L.OBSERVE],s,n,a),l&&Il(this,l,s,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,s,n){this[L.PROPAGATE]&&gt(this,this[L.PROPAGATE],o,s,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,s,n)}_runEffectsForTemplate(o,s,n,a){const l=(c,h)=>{gt(this,o.propertyEffects,c,n,h,o.nodeList);for(let u=o.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,c,n,h)};o.runEffects?o.runEffects(l,s,a):l(s,a)}linkPaths(o,s){o=vt(o),s=vt(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=s}unlinkPaths(o){o=vt(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,s){let n={path:""},a=ce(this,o,n);Ks(this,a,n.path,s)}get(o,s){return ce(s||this,o)}set(o,s,n){n?Io(n,o,s):(!this[L.READ_ONLY]||!this[L.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,s,!0)&&this._invalidateProperties()}push(o,...s){let n={path:""},a=ce(this,o,n),l=a.length,c=a.push(...s);return s.length&&pt(this,a,n.path,l,s.length,[]),c}pop(o){let s={path:""},n=ce(this,o,s),a=!!n.length,l=n.pop();return a&&pt(this,n,s.path,n.length,0,[l]),l}splice(o,s,n,...a){let l={path:""},c=ce(this,o,l);s<0?s=c.length-Math.floor(-s):s&&(s=Math.floor(s));let h;return arguments.length===2?h=c.splice(s):h=c.splice(s,n,...a),(a.length||h.length)&&pt(this,c,l.path,s,a.length,h),h}shift(o){let s={path:""},n=ce(this,o,s),a=!!n.length,l=n.shift();return a&&pt(this,n,s.path,0,0,[l]),l}unshift(o,...s){let n={path:""},a=ce(this,o,n),l=a.unshift(...s);return s.length&&pt(this,a,n.path,0,s.length,[]),l}notifyPath(o,s){let n;if(arguments.length==1){let a={path:""};s=ce(this,o,a),n=a.path}else Array.isArray(o)?n=vt(o):n=o;this._setPendingPropertyOrPath(n,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,s){this._addPropertyEffect(o,L.READ_ONLY),s&&(this["_set"+sd(o)]=function(n){this._setProperty(o,n)})}_createPropertyObserver(o,s,n){let a={property:o,method:s,dynamicFn:!!n};this._addPropertyEffect(o,L.OBSERVE,{fn:Do,info:a,trigger:{name:o}}),n&&this._addPropertyEffect(s,L.OBSERVE,{fn:Do,info:a,trigger:{name:s}})}_createMethodObserver(o,s){let n=Ri(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");Ro(this,n,L.OBSERVE,Zi,null,s)}_createNotifyingProperty(o){this._addPropertyEffect(o,L.NOTIFY,{fn:Tl,info:{eventName:pi(o)+"-changed",property:o}})}_createReflectedProperty(o){let s=this.constructor.attributeNameForProperty(o);s[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,L.REFLECT,{fn:Ol,info:{attrName:s}})}_createComputedProperty(o,s,n){let a=Ri(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const l=Ro(this,a,L.COMPUTE,qs,o,n);Di(this,js)[o]=l}_marshalArgs(o,s,n){const a=this.__data,l=[];for(let c=0,h=o.length;c<h;c++){let{name:u,structured:f,wildcard:p,value:w,literal:S}=o[c];if(!S)if(p){const A=Et(u,s),D=Lo(a,n,A?s:u);w={path:A?s:u,value:D,base:A?ce(a,u):D}}else w=f?Lo(a,n,u):a[u];if(Gi&&!this._overrideLegacyUndefined&&w===void 0&&o.length>1)return Tt;l[c]=w}return l}static addPropertyEffect(o,s,n){this.prototype._addPropertyEffect(o,s,n)}static createPropertyObserver(o,s,n){this.prototype._createPropertyObserver(o,s,n)}static createMethodObserver(o,s){this.prototype._createMethodObserver(o,s)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,s){this.prototype._createReadOnlyProperty(o,s)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,s,n){this.prototype._createComputedProperty(o,s,n)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,s){let n=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(s)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=o._parentTemplateInfo||this.__templateInfo,c=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=c,c?c.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(o,s,n){let a=o.hostProps=o.hostProps||{};a[s]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[s]=l[s]||[]).push(n)}_stampTemplate(o,s){s=s||this._bindTemplate(o,!0),mt.push(this);let n=super._stampTemplate(o,s);if(mt.pop(),s.nodeList=n.nodeList,!s.wasPreBound){let a=s.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=s,jl(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const s=o.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=s;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),s.nextSibling=s.previousSibling=null;let c=s.childNodes;for(let h=0;h<c.length;h++){let u=c[h];ie(ie(u).parentNode).removeChild(u)}}static _parseTemplateNode(o,s,n){let a=e._parseTemplateNode.call(this,o,s,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,s);l&&(o.textContent=No(l)||" ",Oi(this,s,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(o,s,n,a,l){let c=this._parseBindings(l,s);if(c){let h=a,u="property";Al.test(a)?u="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),u="attribute");let f=No(c);return f&&u=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(f+=" "+o.getAttribute(a)),o.setAttribute(a,f)),u=="attribute"&&h=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&h==="value"&&o.setAttribute(h,""),o.removeAttribute(h),u==="property"&&(a=Ns(a)),Oi(this,s,n,u,a,c,f),!0}else return e._parseTemplateNodeAttribute.call(this,o,s,n,a,l)}static _parseTemplateNestedTemplate(o,s,n){let a=e._parseTemplateNestedTemplate.call(this,o,s,n);const l=o.parentNode,c=n.templateInfo,h=l.localName==="dom-if",u=l.localName==="dom-repeat";wo&&(h||u)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=c,n.noted=!0,a=!1);let f=c.hostProps;if(Ja&&h)f&&(s.hostProps=Object.assign(s.hostProps||{},f),wo||(n.parentInfo.noted=!0));else{let p="{";for(let w in f){let S=[{mode:p,source:w,dependencies:[w],hostProp:!0}];Oi(this,s,n,"property","_host_"+w,S)}}return a}static _parseBindings(o,s){let n=[],a=0,l;for(;(l=Mo.exec(o))!==null;){l.index>a&&n.push({literal:o.slice(a,l.index)});let c=l[1][0],h=!!l[2],u=l[3].trim(),f=!1,p="",w=-1;c=="{"&&(w=u.indexOf("::"))>0&&(p=u.substring(w+2),u=u.substring(0,w),f=!0);let S=Ri(u),A=[];if(S){let{args:D,methodName:$}=S;for(let N=0;N<D.length;N++){let K=D[N];K.literal||A.push(K)}let H=s.dynamicFns;(H&&H[$]||S.static)&&(A.push($),S.dynamicFn=!0)}else A.push(u);n.push({source:u,mode:c,negate:h,customEvent:f,signature:S,dependencies:A,event:p}),a=Mo.lastIndex}if(a&&a<o.length){let c=o.substring(a);c&&n.push({literal:c})}return n.length?n:null}static _evaluateBinding(o,s,n,a,l,c){let h;return s.signature?h=Zi(o,n,a,l,s.signature):n!=s.source?h=ce(o,s.source):c&&Ji(n)?h=ce(o,n):h=o.__data[n],s.negate&&(h=!h),h}}return t}),mt=[];/**
990
990
  @license
991
991
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
992
992
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1012,7 +1012,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1012
1012
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1013
1013
  * Google as part of the polymer project is also subject to an additional IP
1014
1014
  * rights grant found at http://polymer.github.io/PATENTS.txt
1015
- */const ld="3.5.2",Vo=window.ShadyCSS&&window.ShadyCSS.cssBuild,dd=J(r=>{const e=ad(kr(r));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let c=l._properties;for(let h in c){let u=c[h];"value"in u&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[h]=u)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,c,h,u){h.computed&&(h.readOnly=!0),h.computed&&(l._hasReadOnlyEffect(c)?console.warn(`Cannot redefine computed property '${c}'.`):l._createComputedProperty(c,h.computed,u)),h.readOnly&&!l._hasReadOnlyEffect(c)?l._createReadOnlyProperty(c,!h.computed):h.readOnly===!1&&l._hasReadOnlyEffect(c)&&console.warn(`Cannot make readOnly property '${c}' non-readOnly.`),h.reflectToAttribute&&!l._hasReflectEffect(c)?l._createReflectedProperty(c):h.reflectToAttribute===!1&&l._hasReflectEffect(c)&&console.warn(`Cannot make reflected property '${c}' non-reflected.`),h.notify&&!l._hasNotifyEffect(c)?l._createNotifyingProperty(c):h.notify===!1&&l._hasNotifyEffect(c)&&console.warn(`Cannot make notify property '${c}' non-notify.`),h.observer&&l._createPropertyObserver(c,h.observer,u[h.observer]),l._addPropertyToAttributeMap(c)}function s(l,c,h,u){if(!Vo){const f=c.content.querySelectorAll("style"),p=Os(c),w=ol(h),S=c.content.firstElementChild;for(let D=0;D<w.length;D++){let $=w[D];$.textContent=l._processStyleText($.textContent,u),c.content.insertBefore($,S)}let A=0;for(let D=0;D<p.length;D++){let $=p[D],H=f[A];H!==$?($=$.cloneNode(!0),H.parentNode.insertBefore($,H)):A++,$.textContent=l._processStyleText($.textContent,u)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(c,h),Xa&&Vo&&qa){const f=c.content.querySelectorAll("style");if(f){let p="";Array.from(f).forEach(w=>{p+=w.textContent,w.parentNode.removeChild(w)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p)}}}function n(l){let c=null;if(l&&(!si||Ya)&&(c=Et.import(l,"template"),si&&!c))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return c}class a extends e{static get polymerElementVersion(){return ld}static _finalizeClass(){e._finalizeClass.call(this);const c=i(this);c&&this.createObservers(c,this._properties),this._prepareTemplate()}static _prepareTemplate(){let c=this.template;c&&(typeof c=="string"?(console.error("template getter must return HTMLTemplateElement"),c=null):Is||(c=c.cloneNode(!0))),this.prototype._template=c}static createProperties(c){for(let h in c)o(this.prototype,h,c[h],c)}static createObservers(c,h){const u=this.prototype;for(let f=0;f<c.length;f++)u._createMethodObserver(c[f],h)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let c=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof c=="function"&&(c=c()),this._template=c!==void 0?c:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(c){this._template=c}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const c=this.importMeta;if(c)this._importPath=wr(c.url);else{const h=Et.import(this.is);this._importPath=h&&h.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Ua,this.importPath=this.constructor.importPath;let c=t(this.constructor);if(c)for(let h in c){let u=c[h];if(this._canApplyPropertyDefault(h)){let f=typeof u.value=="function"?u.value.call(this):u.value;this._hasAccessor(h)?this._setPendingProperty(h,f,!0):this[h]=f}}}_canApplyPropertyDefault(c){return!this.hasOwnProperty(c)}static _processStyleText(c,h){return xr(c,h)}static _finalizeTemplate(c){const h=this.prototype._template;if(h&&!h.__polymerFinalized){h.__polymerFinalized=!0;const u=this.importPath,f=u?wt(u):"";s(this,h,c,f),this.prototype._bindTemplate(h)}}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(c){const h=ie(this);if(h.attachShadow)return c?(h.shadowRoot||(h.attachShadow({mode:"open",shadyUpgradeFragment:c}),h.shadowRoot.appendChild(c),this.constructor._styleSheet&&(h.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Ka&&window.ShadyDOM&&window.ShadyDOM.flushInitial(h.shadowRoot),h.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(c){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,c)}resolveUrl(c,h){return!h&&this.importPath&&(h=wt(this.importPath)),wt(c,h)}static _parseTemplateContent(c,h,u){return h.dynamicFns=h.dynamicFns||this._properties,e._parseTemplateContent.call(this,c,h,u)}static _addTemplatePropertyEffect(c,h,u){return Ss&&!(h in this._properties)&&!(u.info.part.signature&&u.info.part.signature.static)&&!u.info.part.hostProp&&!c.nestedTemplate&&console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,c,h,u)}}return a});/**
1015
+ */const ld="3.5.2",Vo=window.ShadyCSS&&window.ShadyCSS.cssBuild,dd=J(r=>{const e=ad(kr(r));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let c=l._properties;for(let h in c){let u=c[h];"value"in u&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[h]=u)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,c,h,u){h.computed&&(h.readOnly=!0),h.computed&&(l._hasReadOnlyEffect(c)?console.warn(`Cannot redefine computed property '${c}'.`):l._createComputedProperty(c,h.computed,u)),h.readOnly&&!l._hasReadOnlyEffect(c)?l._createReadOnlyProperty(c,!h.computed):h.readOnly===!1&&l._hasReadOnlyEffect(c)&&console.warn(`Cannot make readOnly property '${c}' non-readOnly.`),h.reflectToAttribute&&!l._hasReflectEffect(c)?l._createReflectedProperty(c):h.reflectToAttribute===!1&&l._hasReflectEffect(c)&&console.warn(`Cannot make reflected property '${c}' non-reflected.`),h.notify&&!l._hasNotifyEffect(c)?l._createNotifyingProperty(c):h.notify===!1&&l._hasNotifyEffect(c)&&console.warn(`Cannot make notify property '${c}' non-notify.`),h.observer&&l._createPropertyObserver(c,h.observer,u[h.observer]),l._addPropertyToAttributeMap(c)}function s(l,c,h,u){if(!Vo){const f=c.content.querySelectorAll("style"),p=Os(c),w=ol(h),S=c.content.firstElementChild;for(let D=0;D<w.length;D++){let $=w[D];$.textContent=l._processStyleText($.textContent,u),c.content.insertBefore($,S)}let A=0;for(let D=0;D<p.length;D++){let $=p[D],H=f[A];H!==$?($=$.cloneNode(!0),H.parentNode.insertBefore($,H)):A++,$.textContent=l._processStyleText($.textContent,u)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(c,h),Xa&&Vo&&qa){const f=c.content.querySelectorAll("style");if(f){let p="";Array.from(f).forEach(w=>{p+=w.textContent,w.parentNode.removeChild(w)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p)}}}function n(l){let c=null;if(l&&(!si||Ya)&&(c=At.import(l,"template"),si&&!c))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return c}class a extends e{static get polymerElementVersion(){return ld}static _finalizeClass(){e._finalizeClass.call(this);const c=i(this);c&&this.createObservers(c,this._properties),this._prepareTemplate()}static _prepareTemplate(){let c=this.template;c&&(typeof c=="string"?(console.error("template getter must return HTMLTemplateElement"),c=null):Is||(c=c.cloneNode(!0))),this.prototype._template=c}static createProperties(c){for(let h in c)o(this.prototype,h,c[h],c)}static createObservers(c,h){const u=this.prototype;for(let f=0;f<c.length;f++)u._createMethodObserver(c[f],h)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let c=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof c=="function"&&(c=c()),this._template=c!==void 0?c:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(c){this._template=c}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const c=this.importMeta;if(c)this._importPath=wr(c.url);else{const h=At.import(this.is);this._importPath=h&&h.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Ua,this.importPath=this.constructor.importPath;let c=t(this.constructor);if(c)for(let h in c){let u=c[h];if(this._canApplyPropertyDefault(h)){let f=typeof u.value=="function"?u.value.call(this):u.value;this._hasAccessor(h)?this._setPendingProperty(h,f,!0):this[h]=f}}}_canApplyPropertyDefault(c){return!this.hasOwnProperty(c)}static _processStyleText(c,h){return xr(c,h)}static _finalizeTemplate(c){const h=this.prototype._template;if(h&&!h.__polymerFinalized){h.__polymerFinalized=!0;const u=this.importPath,f=u?xt(u):"";s(this,h,c,f),this.prototype._bindTemplate(h)}}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(c){const h=ie(this);if(h.attachShadow)return c?(h.shadowRoot||(h.attachShadow({mode:"open",shadyUpgradeFragment:c}),h.shadowRoot.appendChild(c),this.constructor._styleSheet&&(h.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Ka&&window.ShadyDOM&&window.ShadyDOM.flushInitial(h.shadowRoot),h.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(c){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,c)}resolveUrl(c,h){return!h&&this.importPath&&(h=xt(this.importPath)),xt(c,h)}static _parseTemplateContent(c,h,u){return h.dynamicFns=h.dynamicFns||this._properties,e._parseTemplateContent.call(this,c,h,u)}static _addTemplatePropertyEffect(c,h,u){return Ss&&!(h in this._properties)&&!(u.info.part.signature&&u.info.part.signature.static)&&!u.info.part.hostProp&&!c.nestedTemplate&&console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,c,h,u)}}return a});/**
1016
1016
  @license
1017
1017
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1018
1018
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1514,7 +1514,7 @@ try {
1514
1514
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1515
1515
  * Code distributed by Google as part of the polymer project is also
1516
1516
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1517
- */let $o=0,Qs=0;const ot=[];let Qi=!1;function bd(){Qi=!1;const r=ot.length;for(let e=0;e<r;e++){const t=ot[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}ot.splice(0,r),Qs+=r}const ze={after(r){return{run(e){return window.setTimeout(e,r)},cancel(e){window.clearTimeout(e)}}},run(r,e){return window.setTimeout(r,e)},cancel(r){window.clearTimeout(r)}},Ot={run(r){return window.requestAnimationFrame(r)},cancel(r){window.cancelAnimationFrame(r)}},en={run(r){return window.requestIdleCallback?window.requestIdleCallback(r):window.setTimeout(r,16)},cancel(r){window.cancelIdleCallback?window.cancelIdleCallback(r):window.clearTimeout(r)}},ai={run(r){Qi||(Qi=!0,queueMicrotask(()=>bd())),ot.push(r);const e=$o;return $o+=1,e},cancel(r){const e=r-Qs;if(e>=0){if(!ot[e])throw new Error(`invalid async handle: ${r}`);ot[e]=null}}};/**
1517
+ */let $o=0,Qs=0;const ot=[];let Qi=!1;function bd(){Qi=!1;const r=ot.length;for(let e=0;e<r;e++){const t=ot[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}ot.splice(0,r),Qs+=r}const ze={after(r){return{run(e){return window.setTimeout(e,r)},cancel(e){window.clearTimeout(e)}}},run(r,e){return window.setTimeout(r,e)},cancel(r){window.clearTimeout(r)}},Dt={run(r){return window.requestAnimationFrame(r)},cancel(r){window.cancelAnimationFrame(r)}},en={run(r){return window.requestIdleCallback?window.requestIdleCallback(r):window.setTimeout(r,16)},cancel(r){window.cancelIdleCallback?window.cancelIdleCallback(r):window.clearTimeout(r)}},ai={run(r){Qi||(Qi=!0,queueMicrotask(()=>bd())),ot.push(r);const e=$o;return $o+=1,e},cancel(r){const e=r-Qs;if(e>=0){if(!ot[e])throw new Error(`invalid async handle: ${r}`);ot[e]=null}}};/**
1518
1518
  @license
1519
1519
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1520
1520
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1522,7 +1522,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1522
1522
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1523
1523
  Code distributed by Google as part of the polymer project is also
1524
1524
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1525
- */const Rt=new Set;let me=class er{static debounce(e,t,i){return e instanceof er?e._cancelAsync():e=new er,e.setConfig(t,i),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,Rt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Rt.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(r){Rt.add(r)}function yd(){const r=!!Rt.size;return Rt.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),r}const yt=()=>{let r;do r=yd();while(r)};/**
1525
+ */const Ot=new Set;let me=class er{static debounce(e,t,i){return e instanceof er?e._cancelAsync():e=new er,e.setConfig(t,i),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,Ot.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Ot.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(r){Ot.add(r)}function yd(){const r=!!Ot.size;return Ot.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),r}const bt=()=>{let r;do r=yd();while(r)};/**
1526
1526
  * @license
1527
1527
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1528
1528
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1558,7 +1558,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1558
1558
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1559
1559
  Code distributed by Google as part of the polymer project is also
1560
1560
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1561
- */const Ed=r=>r,sn=typeof document.head.style.touchAction=="string",rr="__polymerGestures",Mi="__polymerGesturesHandled",or="__polymerGesturesTouchAction",jo=25,Wo=5,Id=2,Sd=["mousedown","mousemove","mouseup","click"],Td=[0,1,4,2],Dd=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(r){return!1}}();function nn(r){return Sd.indexOf(r)>-1}let Od=!1;(function(){try{const r=Object.defineProperty({},"passive",{get(){Od=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(r){}})();const Rd=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),zd={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function We(r){const e=r.type;if(!nn(e))return!1;if(e==="mousemove"){let t=r.buttons===void 0?1:r.buttons;return r instanceof window.MouseEvent&&!Dd&&(t=Td[r.which]||0),!!(t&1)}return(r.button===void 0?0:r.button)===0}function Md(r){if(r.type==="click"){if(r.detail===0)return!0;const e=Me(r);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),i=r.pageX,o=r.pageY;return!(i>=t.left&&i<=t.right&&o>=t.top&&o<=t.bottom)}return!1}const Ie={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Nd(r){let e="auto";const t=ln(r);for(let i=0,o;i<t.length;i++)if(o=t[i],o[or]){e=o[or];break}return e}function an(r,e,t){r.movefn=e,r.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function st(r){document.removeEventListener("mousemove",r.movefn),document.removeEventListener("mouseup",r.upfn),r.movefn=null,r.upfn=null}const ln=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:r=>r.composedPath&&r.composedPath()||[],Ir={},je=[];function Ld(r,e){let t=document.elementFromPoint(r,e),i=t;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const o=i;if(i=i.shadowRoot.elementFromPoint(r,e),o===i)break;i&&(t=i)}return t}function Me(r){const e=ln(r);return e.length>0?e[0]:r.target}function Vd(r){const e=r.type,t=r.currentTarget[rr];if(!t)return;const i=t[e];if(!i)return;if(!r[Mi]&&(r[Mi]={},e.startsWith("touch"))){const s=r.changedTouches[0];if(e==="touchstart"&&r.touches.length===1&&(Ie.touch.id=s.identifier),Ie.touch.id!==s.identifier)return;sn||(e==="touchstart"||e==="touchmove")&&Fd(r)}const o=r[Mi];if(!o.skip){for(let s=0,n;s<je.length;s++)n=je[s],i[n.name]&&!o[n.name]&&n.flow&&n.flow.start.indexOf(r.type)>-1&&n.reset&&n.reset();for(let s=0,n;s<je.length;s++)n=je[s],i[n.name]&&!o[n.name]&&(o[n.name]=!0,n[e](r))}}function Fd(r){const e=r.changedTouches[0],t=r.type;if(t==="touchstart")Ie.touch.x=e.clientX,Ie.touch.y=e.clientY,Ie.touch.scrollDecided=!1;else if(t==="touchmove"){if(Ie.touch.scrollDecided)return;Ie.touch.scrollDecided=!0;const i=Nd(r);let o=!1;const s=Math.abs(Ie.touch.x-e.clientX),n=Math.abs(Ie.touch.y-e.clientY);r.cancelable&&(i==="none"?o=!0:i==="pan-x"?o=n>s:i==="pan-y"&&(o=s>n)),o?r.preventDefault():li("track")}}function we(r,e,t){return Ir[e]?(Bd(r,e,t),!0):!1}function Bd(r,e,t){const i=Ir[e],o=i.deps,s=i.name;let n=r[rr];n||(r[rr]=n={});for(let a=0,l,c;a<o.length;a++)l=o[a],!(Rd&&nn(l)&&l!=="click")&&(c=n[l],c||(n[l]=c={_count:0}),c._count===0&&r.addEventListener(l,Vd,void 0),c[s]=(c[s]||0)+1,c._count=(c._count||0)+1);r.addEventListener(e,t),i.touchAction&&dn(r,i.touchAction)}function Sr(r){je.push(r),r.emits.forEach(e=>{Ir[e]=r})}function $d(r){for(let e=0,t;e<je.length;e++){t=je[e];for(let i=0,o;i<t.emits.length;i++)if(o=t.emits[i],o===r)return t}return null}function dn(r,e){sn&&r instanceof HTMLElement&&ai.run(()=>{r.style.touchAction=e}),r[or]=e}function Tr(r,e,t){const i=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=t,Ed(r).dispatchEvent(i),i.defaultPrevented){const o=t.preventer||t.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function li(r){const e=$d(r);e.info&&(e.info.prevent=!0)}Sr({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){st(this.info)},mousedown(r){if(!We(r))return;const e=Me(r),t=this,i=s=>{We(s)||(ft("up",e,s),st(t.info))},o=s=>{We(s)&&ft("up",e,s),st(t.info)};an(this.info,i,o),ft("down",e,r)},touchstart(r){ft("down",Me(r),r.changedTouches[0],r)},touchend(r){ft("up",Me(r),r.changedTouches[0],r)}});function ft(r,e,t,i){e&&Tr(e,r,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i,prevent(o){return li(o)}})}Sr({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(r){this.moves.length>Id&&this.moves.shift(),this.moves.push(r)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,st(this.info)},mousedown(r){if(!We(r))return;const e=Me(r),t=this,i=s=>{const n=s.clientX,a=s.clientY;qo(t.info,n,a)&&(t.info.state=t.info.started?s.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&li("tap"),t.info.addMove({x:n,y:a}),We(s)||(t.info.state="end",st(t.info)),e&&Ni(t.info,e,s),t.info.started=!0)},o=s=>{t.info.started&&i(s),st(t.info)};an(this.info,i,o),this.info.x=r.clientX,this.info.y=r.clientY},touchstart(r){const e=r.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(r){const e=Me(r),t=r.changedTouches[0],i=t.clientX,o=t.clientY;qo(this.info,i,o)&&(this.info.state==="start"&&li("tap"),this.info.addMove({x:i,y:o}),Ni(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(r){const e=Me(r),t=r.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Ni(this.info,e,t))}});function qo(r,e,t){if(r.prevent)return!1;if(r.started)return!0;const i=Math.abs(r.x-e),o=Math.abs(r.y-t);return i>=Wo||o>=Wo}function Ni(r,e,t){if(!e)return;const i=r.moves[r.moves.length-2],o=r.moves[r.moves.length-1],s=o.x-r.x,n=o.y-r.y;let a,l=0;i&&(a=o.x-i.x,l=o.y-i.y),Tr(e,"track",{state:r.state,x:t.clientX,y:t.clientY,dx:s,dy:n,ddx:a,ddy:l,sourceEvent:t,hover(){return Ld(t.clientX,t.clientY)}})}Sr({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(r){We(r)&&(this.info.x=r.clientX,this.info.y=r.clientY)},click(r){We(r)&&Uo(this.info,r)},touchstart(r){const e=r.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(r){Uo(this.info,r.changedTouches[0],r)}});function Uo(r,e,t){const i=Math.abs(e.clientX-r.x),o=Math.abs(e.clientY-r.y),s=Me(t||e);!s||zd[s.localName]&&s.hasAttribute("disabled")||(isNaN(i)||isNaN(o)||i<=jo&&o<=jo||Md(e))&&(r.prevent||Tr(s,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1561
+ */const Ed=r=>r,sn=typeof document.head.style.touchAction=="string",rr="__polymerGestures",Mi="__polymerGesturesHandled",or="__polymerGesturesTouchAction",jo=25,Wo=5,Id=2,Sd=["mousedown","mousemove","mouseup","click"],Td=[0,1,4,2],Dd=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(r){return!1}}();function nn(r){return Sd.indexOf(r)>-1}let Od=!1;(function(){try{const r=Object.defineProperty({},"passive",{get(){Od=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(r){}})();const Rd=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),zd={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function We(r){const e=r.type;if(!nn(e))return!1;if(e==="mousemove"){let t=r.buttons===void 0?1:r.buttons;return r instanceof window.MouseEvent&&!Dd&&(t=Td[r.which]||0),!!(t&1)}return(r.button===void 0?0:r.button)===0}function Md(r){if(r.type==="click"){if(r.detail===0)return!0;const e=Me(r);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),i=r.pageX,o=r.pageY;return!(i>=t.left&&i<=t.right&&o>=t.top&&o<=t.bottom)}return!1}const Ie={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Nd(r){let e="auto";const t=ln(r);for(let i=0,o;i<t.length;i++)if(o=t[i],o[or]){e=o[or];break}return e}function an(r,e,t){r.movefn=e,r.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function st(r){document.removeEventListener("mousemove",r.movefn),document.removeEventListener("mouseup",r.upfn),r.movefn=null,r.upfn=null}const ln=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:r=>r.composedPath&&r.composedPath()||[],Ir={},je=[];function Ld(r,e){let t=document.elementFromPoint(r,e),i=t;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const o=i;if(i=i.shadowRoot.elementFromPoint(r,e),o===i)break;i&&(t=i)}return t}function Me(r){const e=ln(r);return e.length>0?e[0]:r.target}function Vd(r){const e=r.type,t=r.currentTarget[rr];if(!t)return;const i=t[e];if(!i)return;if(!r[Mi]&&(r[Mi]={},e.startsWith("touch"))){const s=r.changedTouches[0];if(e==="touchstart"&&r.touches.length===1&&(Ie.touch.id=s.identifier),Ie.touch.id!==s.identifier)return;sn||(e==="touchstart"||e==="touchmove")&&Fd(r)}const o=r[Mi];if(!o.skip){for(let s=0,n;s<je.length;s++)n=je[s],i[n.name]&&!o[n.name]&&n.flow&&n.flow.start.indexOf(r.type)>-1&&n.reset&&n.reset();for(let s=0,n;s<je.length;s++)n=je[s],i[n.name]&&!o[n.name]&&(o[n.name]=!0,n[e](r))}}function Fd(r){const e=r.changedTouches[0],t=r.type;if(t==="touchstart")Ie.touch.x=e.clientX,Ie.touch.y=e.clientY,Ie.touch.scrollDecided=!1;else if(t==="touchmove"){if(Ie.touch.scrollDecided)return;Ie.touch.scrollDecided=!0;const i=Nd(r);let o=!1;const s=Math.abs(Ie.touch.x-e.clientX),n=Math.abs(Ie.touch.y-e.clientY);r.cancelable&&(i==="none"?o=!0:i==="pan-x"?o=n>s:i==="pan-y"&&(o=s>n)),o?r.preventDefault():li("track")}}function we(r,e,t){return Ir[e]?(Bd(r,e,t),!0):!1}function Bd(r,e,t){const i=Ir[e],o=i.deps,s=i.name;let n=r[rr];n||(r[rr]=n={});for(let a=0,l,c;a<o.length;a++)l=o[a],!(Rd&&nn(l)&&l!=="click")&&(c=n[l],c||(n[l]=c={_count:0}),c._count===0&&r.addEventListener(l,Vd,void 0),c[s]=(c[s]||0)+1,c._count=(c._count||0)+1);r.addEventListener(e,t),i.touchAction&&dn(r,i.touchAction)}function Sr(r){je.push(r),r.emits.forEach(e=>{Ir[e]=r})}function $d(r){for(let e=0,t;e<je.length;e++){t=je[e];for(let i=0,o;i<t.emits.length;i++)if(o=t.emits[i],o===r)return t}return null}function dn(r,e){sn&&r instanceof HTMLElement&&ai.run(()=>{r.style.touchAction=e}),r[or]=e}function Tr(r,e,t){const i=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=t,Ed(r).dispatchEvent(i),i.defaultPrevented){const o=t.preventer||t.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function li(r){const e=$d(r);e.info&&(e.info.prevent=!0)}Sr({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){st(this.info)},mousedown(r){if(!We(r))return;const e=Me(r),t=this,i=s=>{We(s)||(_t("up",e,s),st(t.info))},o=s=>{We(s)&&_t("up",e,s),st(t.info)};an(this.info,i,o),_t("down",e,r)},touchstart(r){_t("down",Me(r),r.changedTouches[0],r)},touchend(r){_t("up",Me(r),r.changedTouches[0],r)}});function _t(r,e,t,i){e&&Tr(e,r,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i,prevent(o){return li(o)}})}Sr({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(r){this.moves.length>Id&&this.moves.shift(),this.moves.push(r)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,st(this.info)},mousedown(r){if(!We(r))return;const e=Me(r),t=this,i=s=>{const n=s.clientX,a=s.clientY;qo(t.info,n,a)&&(t.info.state=t.info.started?s.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&li("tap"),t.info.addMove({x:n,y:a}),We(s)||(t.info.state="end",st(t.info)),e&&Ni(t.info,e,s),t.info.started=!0)},o=s=>{t.info.started&&i(s),st(t.info)};an(this.info,i,o),this.info.x=r.clientX,this.info.y=r.clientY},touchstart(r){const e=r.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(r){const e=Me(r),t=r.changedTouches[0],i=t.clientX,o=t.clientY;qo(this.info,i,o)&&(this.info.state==="start"&&li("tap"),this.info.addMove({x:i,y:o}),Ni(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(r){const e=Me(r),t=r.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Ni(this.info,e,t))}});function qo(r,e,t){if(r.prevent)return!1;if(r.started)return!0;const i=Math.abs(r.x-e),o=Math.abs(r.y-t);return i>=Wo||o>=Wo}function Ni(r,e,t){if(!e)return;const i=r.moves[r.moves.length-2],o=r.moves[r.moves.length-1],s=o.x-r.x,n=o.y-r.y;let a,l=0;i&&(a=o.x-i.x,l=o.y-i.y),Tr(e,"track",{state:r.state,x:t.clientX,y:t.clientY,dx:s,dy:n,ddx:a,ddy:l,sourceEvent:t,hover(){return Ld(t.clientX,t.clientY)}})}Sr({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(r){We(r)&&(this.info.x=r.clientX,this.info.y=r.clientY)},click(r){We(r)&&Uo(this.info,r)},touchstart(r){const e=r.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(r){Uo(this.info,r.changedTouches[0],r)}});function Uo(r,e,t){const i=Math.abs(e.clientX-r.x),o=Math.abs(e.clientY-r.y),s=Me(t||e);!s||zd[s.localName]&&s.hasAttribute("disabled")||(isNaN(i)||isNaN(o)||i<=jo&&o<=jo||Md(e))&&(r.prevent||Tr(s,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1562
1562
  * @license
1563
1563
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1564
1564
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1594,11 +1594,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1594
1594
  * @license
1595
1595
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1596
1596
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1597
- */const Nt=J(r=>class extends r{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}});/**
1597
+ */const Mt=J(r=>class extends r{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
1598
  * @license
1599
1599
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1600
1600
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1601
- */const Ud=J(r=>class extends Mr(ht(Nt(r))){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}});/**
1601
+ */const Ud=J(r=>class extends Mr(ht(Mt(r))){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
1602
  * @license
1603
1603
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1604
1604
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1614,7 +1614,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1614
1614
  * @license
1615
1615
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1616
1616
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1617
- */const ye=document.createElement("div");ye.style.position="fixed";ye.style.clip="rect(0px, 0px, 0px, 0px)";ye.setAttribute("aria-live","polite");document.body.appendChild(ye);let jt;function Zt(r,e={}){const t=e.mode||"polite",i=e.timeout===void 0?150:e.timeout;t==="alert"?(ye.removeAttribute("aria-live"),ye.removeAttribute("role"),jt=me.debounce(jt,Ot,()=>{ye.setAttribute("role","alert")})):(jt&&jt.cancel(),ye.removeAttribute("role"),ye.setAttribute("aria-live",t)),ye.textContent="",setTimeout(()=>{ye.textContent=r},i)}/**
1617
+ */const ye=document.createElement("div");ye.style.position="fixed";ye.style.clip="rect(0px, 0px, 0px, 0px)";ye.setAttribute("aria-live","polite");document.body.appendChild(ye);let jt;function Zt(r,e={}){const t=e.mode||"polite",i=e.timeout===void 0?150:e.timeout;t==="alert"?(ye.removeAttribute("aria-live"),ye.removeAttribute("role"),jt=me.debounce(jt,Dt,()=>{ye.setAttribute("role","alert")})):(jt&&jt.cancel(),ye.removeAttribute("role"),ye.setAttribute("aria-live",t)),ye.textContent="",setTimeout(()=>{ye.textContent=r},i)}/**
1618
1618
  * @license
1619
1619
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1620
1620
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1646,15 +1646,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1646
1646
  * @license
1647
1647
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1648
1648
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1649
- */class Lt extends Ce{constructor(e,t,i={}){const{uniqueIdPrefix:o}=i;super(e,"input","input",{initializer:(s,n)=>{n.value&&(s.value=n.value),n.type&&s.setAttribute("type",n.type),s.id=this.defaultId,typeof t=="function"&&t(s)},useUniqueId:!0,uniqueIdPrefix:o})}}/**
1649
+ */class Nt extends Ce{constructor(e,t,i={}){const{uniqueIdPrefix:o}=i;super(e,"input","input",{initializer:(s,n)=>{n.value&&(s.value=n.value),n.type&&s.setAttribute("type",n.type),s.id=this.defaultId,typeof t=="function"&&t(s)},useUniqueId:!0,uniqueIdPrefix:o})}}/**
1650
1650
  * @license
1651
1651
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1652
1652
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1653
- */class Vt{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
1653
+ */class Lt{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
1654
1654
  * @license
1655
1655
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1656
1656
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1657
- */const Qd=r=>class extends gi(Ud(vi(Dr(r)))){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 Lt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Vt(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()}};/**
1657
+ */const Qd=r=>class extends gi(Ud(vi(Dr(r)))){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 Nt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Lt(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
1658
  * @license
1659
1659
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1660
1660
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3535,7 +3535,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3535
3535
  * @license
3536
3536
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3537
3537
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3538
- */function Rc(r){let e=r.getDay();e===0&&(e=7);const t=4-e,i=new Date(r.getTime()+t*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const s=i.getTime()-o.getTime(),n=Math.round(s/(24*3600*1e3));return Math.floor(n/7+1)}function ur(r){const e=new Date(r);return e.setHours(0,0,0,0),e}function Te(r,e,t=ur){return r instanceof Date&&e instanceof Date&&t(r).getTime()===t(e).getTime()}function qr(r){return{day:r.getDate(),month:r.getMonth(),year:r.getFullYear()}}function dt(r,e,t,i){let o=!1;if(typeof i=="function"&&r){const s=qr(r);o=i(s)}return(!e||r>=e)&&(!t||r<=t)&&!o}function An(r,e){return e.filter(t=>t!==void 0).reduce((t,i)=>{if(!i)return t;if(!t)return i;const o=Math.abs(r.getTime()-i.getTime()),s=Math.abs(t.getTime()-r.getTime());return o<s?i:t})}function En(r){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(r)+e.getMonth()),t}function zc(r,e,t=0,i=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(r.getFullYear()/100)*100;return r<new Date(o-50,t,i)?o-=100:r>new Date(o+50,t,i)&&(o+=100),o}function vt(r){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(r);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 Mc(r){const e=(l,c="00")=>(c+l).substr((c+l).length-c.length);let t="",i="0000",o=r.year;o<0?(o=-o,t="-",i="000000"):r.year>=1e4&&(t="+",i="000000");const s=t+e(o,i),n=e(r.month+1),a=e(r.day);return[s,n,a].join("-")}function Nc(r){return r instanceof Date?Mc({year:r.getFullYear(),month:r.getMonth(),day:r.getDate()}):""}/**
3538
+ */function Rc(r){let e=r.getDay();e===0&&(e=7);const t=4-e,i=new Date(r.getTime()+t*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const s=i.getTime()-o.getTime(),n=Math.round(s/(24*3600*1e3));return Math.floor(n/7+1)}function ur(r){const e=new Date(r);return e.setHours(0,0,0,0),e}function Te(r,e,t=ur){return r instanceof Date&&e instanceof Date&&t(r).getTime()===t(e).getTime()}function qr(r){return{day:r.getDate(),month:r.getMonth(),year:r.getFullYear()}}function dt(r,e,t,i){let o=!1;if(typeof i=="function"&&r){const s=qr(r);o=i(s)}return(!e||r>=e)&&(!t||r<=t)&&!o}function An(r,e){return e.filter(t=>t!==void 0).reduce((t,i)=>{if(!i)return t;if(!t)return i;const o=Math.abs(r.getTime()-i.getTime()),s=Math.abs(t.getTime()-r.getTime());return o<s?i:t})}function En(r){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(r)+e.getMonth()),t}function zc(r,e,t=0,i=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(r.getFullYear()/100)*100;return r<new Date(o-50,t,i)?o-=100:r>new Date(o+50,t,i)&&(o+=100),o}function ft(r){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(r);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 Mc(r){const e=(l,c="00")=>(c+l).substr((c+l).length-c.length);let t="",i="0000",o=r.year;o<0?(o=-o,t="-",i="000000"):r.year>=1e4&&(t="+",i="000000");const s=t+e(o,i),n=e(r.month+1),a=e(r.day);return[s,n,a].join("-")}function Nc(r){return r instanceof Date?Mc({year:r.getFullYear(),month:r.getMonth(),day:r.getDate()}):""}/**
3539
3539
  @license
3540
3540
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3541
3541
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3543,7 +3543,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3543
3543
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3544
3544
  Code distributed by Google as part of the polymer project is also
3545
3545
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3546
- */class di{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,zt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),zt.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,i){return e instanceof di?e._cancelAsync():e=new di,e.setConfig(t,i),e}}let zt=new Set;const Lc=function(r){zt.add(r)},Vc=function(){const r=!!zt.size;return zt.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),r};/**
3546
+ */class di{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,Rt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Rt.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,i){return e instanceof di?e._cancelAsync():e=new di,e.setConfig(t,i),e}}let Rt=new Set;const Lc=function(r){Rt.add(r)},Vc=function(){const r=!!Rt.size;return Rt.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),r};/**
3547
3547
  @license
3548
3548
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3549
3549
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3708,7 +3708,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3708
3708
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3709
3709
  Code distributed by Google as part of the polymer project is also
3710
3710
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3711
- */const oh=jc(F);class Xo extends oh{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:!Co,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),rh()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=ie(ie(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 i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=_r(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(o,s){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(o,s)},notifyInstanceProp:function(o,s,n){if(sl(this.as,s)){let a=o[this.itemsIndexAs];s==this.as&&(this.items[a]=n);let l=St(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,s);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,i=this.__getMethodHost();return function(){return i[t].apply(i,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 i=0;i<t.length;i++)e.indexOf(t[i])===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=di.debounce(this.__renderDebouncer,t>0?hl.after(t):Fs,e.bind(this)),Lc(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ur()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length);this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Co||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=i;return this.__filterFn&&(t=t.filter((i,o,s)=>this.__filterFn(e[i],o,s))),this.__sortFn&&t.sort((i,o)=>this.__sortFn(e[i],e[o])),t}__calculateLimit(e){let t=e;const i=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),o=Math.max(t-i,0),this.__chunkCount=o||1):(o=Math.min(Math.max(e-i,0),this.__chunkCount),t=Math.min(i+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,i){const o=this.__itemsIdxToInstIdx={};let s;for(s=0;s<t;s++){let n=this.__instances[s],a=i[s],l=e[a];o[a]=s,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,s),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,s,a)}for(let n=this.__instances.length-1;n>=s;n--)this.__detachAndRemoveInstance(n)}__detachInstance(e){let t=this.__instances[e];const i=ie(t.root);for(let o=0;o<t.children.length;o++){let s=t.children[o];i.appendChild(s)}return t}__attachInstance(e,t){let i=this.__instances[e];t.insertBefore(i.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){let o={};return o[this.as]=e,o[this.indexAs]=t,o[this.itemsIndexAs]=i,new this.__ctor(o)}__insertInstance(e,t,i){const o=this.__stampInstance(e,t,i);let s=this.__instances[t+1],n=s?s.children[0]:this;return ie(ie(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 i=e.slice(6),o=i.indexOf("."),s=o<0?i:i.substring(0,o);if(s==parseInt(s,10)){let n=o<0?"":i.substring(o+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[s],l=this.__instances[a];if(l){let c=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(c,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 ih(this.template,e)}}customElements.define(Xo.is,Xo);/**
3711
+ */const oh=jc(F);class Xo extends oh{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:!Co,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),rh()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=ie(ie(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 i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=_r(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(o,s){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(o,s)},notifyInstanceProp:function(o,s,n){if(sl(this.as,s)){let a=o[this.itemsIndexAs];s==this.as&&(this.items[a]=n);let l=It(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,s);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,i=this.__getMethodHost();return function(){return i[t].apply(i,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 i=0;i<t.length;i++)e.indexOf(t[i])===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=di.debounce(this.__renderDebouncer,t>0?hl.after(t):Fs,e.bind(this)),Lc(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ur()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length);this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Co||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=i;return this.__filterFn&&(t=t.filter((i,o,s)=>this.__filterFn(e[i],o,s))),this.__sortFn&&t.sort((i,o)=>this.__sortFn(e[i],e[o])),t}__calculateLimit(e){let t=e;const i=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),o=Math.max(t-i,0),this.__chunkCount=o||1):(o=Math.min(Math.max(e-i,0),this.__chunkCount),t=Math.min(i+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,i){const o=this.__itemsIdxToInstIdx={};let s;for(s=0;s<t;s++){let n=this.__instances[s],a=i[s],l=e[a];o[a]=s,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,s),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,s,a)}for(let n=this.__instances.length-1;n>=s;n--)this.__detachAndRemoveInstance(n)}__detachInstance(e){let t=this.__instances[e];const i=ie(t.root);for(let o=0;o<t.children.length;o++){let s=t.children[o];i.appendChild(s)}return t}__attachInstance(e,t){let i=this.__instances[e];t.insertBefore(i.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){let o={};return o[this.as]=e,o[this.indexAs]=t,o[this.itemsIndexAs]=i,new this.__ctor(o)}__insertInstance(e,t,i){const o=this.__stampInstance(e,t,i);let s=this.__instances[t+1],n=s?s.children[0]:this;return ie(ie(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 i=e.slice(6),o=i.indexOf("."),s=o<0?i:i.substring(0,o);if(s==parseInt(s,10)){let n=o<0?"":i.substring(o+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[s],l=this.__instances[a];if(l){let c=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(c,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 ih(this.template,e)}}customElements.define(Xo.is,Xo);/**
3712
3712
  * @license
3713
3713
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3714
3714
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3922,11 +3922,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3922
3922
  * @license
3923
3923
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3924
3924
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3925
- */const ph=r=>class extends Nt(Ye(r)){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(),cr||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}))}};/**
3925
+ */const ph=r=>class extends Mt(Ye(r)){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(),cr||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
3926
  * @license
3927
3927
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3928
3928
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3929
- */const Jr=J(r=>class extends Mr(Vr(Nt(r))){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 i=this._hasValidConstraints(t),o=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3929
+ */const Jr=J(r=>class extends Mr(Vr(Mt(r))){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 i=this._hasValidConstraints(t),o=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3930
3930
  * @license
3931
3931
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3932
3932
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4018,7 +4018,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4018
4018
  * @license
4019
4019
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4020
4020
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4021
- */const _h=r=>class extends Ai(Ve(vi(Jr(Ye(r))))){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,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),i=new Date;let o,s=i.getMonth(),n=i.getFullYear();if(t.length===3){if(s=parseInt(t[0])-1,o=parseInt(t[1]),n=parseInt(t[2]),t[2].length<3&&n>=0){const a=this.referenceDate?vt(this.referenceDate):new Date;n=zc(a,n,s,o)}}else t.length===2?(s=parseInt(t[0])-1,o=parseInt(t[1])):t.length===1&&(o=parseInt(t[0]));if(o!==void 0)return{day:o,month:s,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:Hr},_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&&!fi()&&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 Gr(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new Nn(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",i=>{this.__commitDate(i.detail.date),this._close()}),t.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),t.addEventListener("click",i=>i.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=vt(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(qr(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||dt(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&&i&&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,i,o,s,n){return!e||t&&(!n||s)||i&&s||!o.parseDate}_formatISO(e){return Nc(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 i=vt(e);if(e&&!i){this.value=t;return}e?Te(this._selectedDate,i)||(this._selectedDate=i,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,i,o,s,n,a,l,c){e&&(e.i18n=t,e.label=i,e.minDate=o,e.maxDate=s,e.focusedDate=n,e.selectedDate=a,e.showWeekNumbers=l,e.isDateDisabled=c)}__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 i=e.focusedDate||t;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const s=this._noInput?e:[o,e];this.__showOthers=wn(s)}_getInitialPosition(){const e=vt(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||dt(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?An(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,Te(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return vt(e)}};/**
4021
+ */const _h=r=>class extends Ai(Ve(vi(Jr(Ye(r))))){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,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),i=new Date;let o,s=i.getMonth(),n=i.getFullYear();if(t.length===3){if(s=parseInt(t[0])-1,o=parseInt(t[1]),n=parseInt(t[2]),t[2].length<3&&n>=0){const a=this.referenceDate?ft(this.referenceDate):new Date;n=zc(a,n,s,o)}}else t.length===2?(s=parseInt(t[0])-1,o=parseInt(t[1])):t.length===1&&(o=parseInt(t[0]));if(o!==void 0)return{day:o,month:s,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:Hr},_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&&!fi()&&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 Gr(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new Nn(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",i=>{this.__commitDate(i.detail.date),this._close()}),t.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),t.addEventListener("click",i=>i.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=ft(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(qr(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||dt(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&&i&&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,i,o,s,n){return!e||t&&(!n||s)||i&&s||!o.parseDate}_formatISO(e){return Nc(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 i=ft(e);if(e&&!i){this.value=t;return}e?Te(this._selectedDate,i)||(this._selectedDate=i,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,i,o,s,n,a,l,c){e&&(e.i18n=t,e.label=i,e.minDate=o,e.maxDate=s,e.focusedDate=n,e.selectedDate=a,e.showWeekNumbers=l,e.isDateDisabled=c)}__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 i=e.focusedDate||t;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const s=this._noInput?e:[o,e];this.__showOthers=wn(s)}_getInitialPosition(){const e=ft(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||dt(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?An(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,Te(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return ft(e)}};/**
4022
4022
  * @license
4023
4023
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4024
4024
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4081,7 +4081,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4081
4081
  ></vaadin-date-picker-overlay>
4082
4082
 
4083
4083
  <slot name="tooltip"></slot>
4084
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Lt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Vt(this.inputElement,this._labelController)),this._tooltipController=new Le(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}}M(vh);/**
4084
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Nt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Lt(this.inputElement,this._labelController)),this._tooltipController=new Le(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}}M(vh);/**
4085
4085
  * @license
4086
4086
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4087
4087
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4093,7 +4093,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4093
4093
  * @license
4094
4094
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4095
4095
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4096
- */const bh=r=>class extends gh(r){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 Lt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Vt(this.inputElement,this._labelController))}};/**
4096
+ */const bh=r=>class extends gh(r){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 Nt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Lt(this.inputElement,this._labelController))}};/**
4097
4097
  * @license
4098
4098
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4099
4099
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4173,7 +4173,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4173
4173
  * @license
4174
4174
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4175
4175
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4176
- */const Ch=r=>class extends Rn(ht(Ke(Nt(r)))){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,`
4176
+ */const Ch=r=>class extends Rn(ht(Ke(Mt(r)))){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
4177
  ${e} [slot="input"]::-ms-reveal {
4178
4178
  display: none;
4179
4179
  }
@@ -4423,11 +4423,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4423
4423
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
4424
4424
  * Code distributed by Google as part of the polymer project is also
4425
4425
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
4426
- */const Zo=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Th=Zo&&Zo[1]>=8,Qo=3,Dh={_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 r=this._virtualCount;return Math.max(0,r-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(r){r=this._clamp(r,0,this._maxVirtualStart),this._virtualStartVal=r},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(r){r%=this._physicalCount,r<0&&(r=this._physicalCount+r),this._physicalStartVal=r},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(r){this._physicalCountVal=r},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let r=this._firstVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;r=this._iterateItems((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=r}return r},get lastVisibleIndex(){let r=this._lastVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,i)=>{e<this._scrollBottom&&(r=i),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=r}return r},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const r=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=r-this._scrollPosition;const t=e>=0;if(this._scrollPosition=r,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const i=Math.round(e/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const i=this._getReusables(t);t?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,t?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ai)}},_getReusables(r){let e,t,i;const o=[],s=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let c=this._physicalTop+this._scrollOffset;const h=this._physicalBottom+this._scrollOffset,u=this._scrollPosition,f=this._scrollBottom;for(r?(e=this._physicalStart,t=u-c):(e=this._physicalEnd,t=h-f);i=this._getPhysicalSizeIncrement(e),t-=i,!(o.length>=l||t<=s);)if(r){if(a+o.length+1>=this._virtualCount||c+i>=u-this._scrollOffset)break;o.push(e),c+=i,e=(e+1)%l}else{if(n-o.length<=0||c+this._physicalSize-i<=f)break;o.push(e),c-=i,e=e===0?l-1:e-1}return{indexes:o,physicalTop:c-this._scrollOffset}},_update(r,e){if(!(r&&r.length===0||this._physicalCount===0)){if(this._assignModels(r),this._updateMetrics(r),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(r){const e=this._clamp(this._physicalCount+r,Qo,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const i=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()-i)/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),ai))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const r=this._getReusables(!0);this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length,this._update(r.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Qo))},_itemsChanged(r){r.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,Ot))},_iterateItems(r,e){let t,i,o,s;if(arguments.length===2&&e){for(s=0;s<e.length;s++)if(t=e[s],i=this._computeVidx(t),(o=r.call(this,t,i))!=null)return o}else{for(t=this._physicalStart,i=this._virtualStart;t<this._physicalCount;t++,i++)if((o=r.call(this,t,i))!=null)return o;for(t=0;t<this._physicalStart;t++,i++)if((o=r.call(this,t,i))!=null)return o}},_computeVidx(r){return r>=this._physicalStart?this._virtualStart+(r-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+r},_positionItems(){this._adjustScrollPosition();let r=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${r}px`,0,this._physicalItems[e]),r+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(r){return this._physicalSizes[r]},_adjustScrollPosition(){const r=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(r!==0){this._physicalTop-=r;const e=this._scrollPosition;!Th&&e>0&&this._resetScrollPosition(e-r)}},_resetScrollPosition(r){this.scrollTarget&&r>=0&&(this._scrollTop=r,this._scrollPosition=this._scrollTop)},_updateScrollerSize(r){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(r||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(r){if(typeof r!="number"||r<0||r>this.items.length-1||(yt(),this._physicalCount===0))return;r=this._clamp(r,0,this._virtualCount-1),(!this._isIndexRendered(r)||r>=this._maxVirtualStart)&&(this._virtualStart=r-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,i=0;const o=this._hiddenContentSize;for(;t<r&&i<=o;)i+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),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)},Ot)},_isIndexRendered(r){return r>=this._virtualStart&&r<=this._virtualEnd},_getPhysicalIndex(r){return(this._physicalStart+(r-this._virtualStart))%this._physicalCount},_clamp(r,e,t){return Math.min(t,Math.max(e,r))},_debounce(r,e,t){this._debouncers||(this._debouncers={}),this._debouncers[r]=me.debounce(this._debouncers[r],t,e.bind(this)),tn(this._debouncers[r])}};/**
4426
+ */const Zo=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Th=Zo&&Zo[1]>=8,Qo=3,Dh={_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 r=this._virtualCount;return Math.max(0,r-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(r){r=this._clamp(r,0,this._maxVirtualStart),this._virtualStartVal=r},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(r){r%=this._physicalCount,r<0&&(r=this._physicalCount+r),this._physicalStartVal=r},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(r){this._physicalCountVal=r},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let r=this._firstVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;r=this._iterateItems((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=r}return r},get lastVisibleIndex(){let r=this._lastVisibleIndexVal;if(r==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,i)=>{e<this._scrollBottom&&(r=i),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=r}return r},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const r=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=r-this._scrollPosition;const t=e>=0;if(this._scrollPosition=r,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const i=Math.round(e/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const i=this._getReusables(t);t?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,t?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ai)}},_getReusables(r){let e,t,i;const o=[],s=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let c=this._physicalTop+this._scrollOffset;const h=this._physicalBottom+this._scrollOffset,u=this._scrollPosition,f=this._scrollBottom;for(r?(e=this._physicalStart,t=u-c):(e=this._physicalEnd,t=h-f);i=this._getPhysicalSizeIncrement(e),t-=i,!(o.length>=l||t<=s);)if(r){if(a+o.length+1>=this._virtualCount||c+i>=u-this._scrollOffset)break;o.push(e),c+=i,e=(e+1)%l}else{if(n-o.length<=0||c+this._physicalSize-i<=f)break;o.push(e),c-=i,e=e===0?l-1:e-1}return{indexes:o,physicalTop:c-this._scrollOffset}},_update(r,e){if(!(r&&r.length===0||this._physicalCount===0)){if(this._assignModels(r),this._updateMetrics(r),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(r){const e=this._clamp(this._physicalCount+r,Qo,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const i=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()-i)/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),ai))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const r=this._getReusables(!0);this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length,this._update(r.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Qo))},_itemsChanged(r){r.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,Dt))},_iterateItems(r,e){let t,i,o,s;if(arguments.length===2&&e){for(s=0;s<e.length;s++)if(t=e[s],i=this._computeVidx(t),(o=r.call(this,t,i))!=null)return o}else{for(t=this._physicalStart,i=this._virtualStart;t<this._physicalCount;t++,i++)if((o=r.call(this,t,i))!=null)return o;for(t=0;t<this._physicalStart;t++,i++)if((o=r.call(this,t,i))!=null)return o}},_computeVidx(r){return r>=this._physicalStart?this._virtualStart+(r-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+r},_positionItems(){this._adjustScrollPosition();let r=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${r}px`,0,this._physicalItems[e]),r+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(r){return this._physicalSizes[r]},_adjustScrollPosition(){const r=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(r!==0){this._physicalTop-=r;const e=this._scrollPosition;!Th&&e>0&&this._resetScrollPosition(e-r)}},_resetScrollPosition(r){this.scrollTarget&&r>=0&&(this._scrollTop=r,this._scrollPosition=this._scrollTop)},_updateScrollerSize(r){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(r||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(r){if(typeof r!="number"||r<0||r>this.items.length-1||(bt(),this._physicalCount===0))return;r=this._clamp(r,0,this._virtualCount-1),(!this._isIndexRendered(r)||r>=this._maxVirtualStart)&&(this._virtualStart=r-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,i=0;const o=this._hiddenContentSize;for(;t<r&&i<=o;)i+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),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)},Dt)},_isIndexRendered(r){return r>=this._virtualStart&&r<=this._virtualEnd},_getPhysicalIndex(r){return(this._physicalStart+(r-this._virtualStart))%this._physicalCount},_clamp(r,e,t){return Math.min(t,Math.max(e,r))},_debounce(r,e,t){this._debouncers||(this._debouncers={}),this._debouncers[r]=me.debounce(this._debouncers[r],t,e.bind(this)),tn(this._debouncers[r])}};/**
4427
4427
  * @license
4428
4428
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4429
4429
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4430
- */const Oh=1e5,Wi=1e3;class Wn{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:o,elementsContainer:s,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=o,this.elementsContainer=s||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:a}])=>{const l=a.width===0&&a.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",a=>this.__onWheel(a)),this.scrollTarget.addEventListener("virtualizer-element-focused",a=>this.__onElementFocused(a)),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 i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<t?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<t?e<Wi?(i=e,this._vidxOffset=0):(i=Wi,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),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(),yt(),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 i=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o))}),this.__afterElementsUpdated(i)}_updateMetrics(e){yt();let t=0,i=0;const o=this._physicalAverageCount,s=this._physicalAverage;this._iterateItems((n,a)=>{i+=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-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((s*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return i;const o=parseFloat(t.paddingBottom)||0,s=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,a=parseFloat(t.borderTopWidth)||0;return i+o+s+n+a}__updateElement(e,t,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||i)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const i=t.offsetHeight;if(i===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=me.debounce(this.__placeholderClearDebouncer,Ot,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(s=>s!==void 0);this.__placeholderHeight=Math.round(o.reduce((s,n)=>s+n,0)/o.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(i=>i.__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,i;if(e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),yt(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);i!==void 0&&o!==void 0&&(this._scrollTop+=i-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),yt(),this._debounce("_update",this._update,ai)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Oh)}}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),i=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",i.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems((i,o)=>{const s=this._physicalItems[i];s.hidden=o>=this.size,s.hidden?delete s.__lastUpdatedIndex:(s.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(s,s.__virtualIndex),t.push(s))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,i,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 i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,i)||this.__nextFocusableSiblingMissing(t,i))&&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,i=this._getReusables(!t);i.indexes.length&&(this._physicalTop=i.physicalTop,t?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=me.debounce(this.__fixInvalidItemPositioningDebouncer,ze.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=me.debounce(this.__scrollReorderDebouncer,ze.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,i=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||t&&!o){const s=t,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(s?-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=me.debounce(this.__debouncerWheelAnimationFrame,Ot,()=>{this._wheelAnimationFrame=!1});const i=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=me.debounce(this._debouncerIgnoreNewWheel,ze.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,t,i){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,i)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,i)}_canScroll(e,t,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<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(),i=this.__getFocusedElement(t)||t[0];if(!i)return;const o=i.__virtualIndex-e,s=t.indexOf(i)-o;if(s>0)for(let n=0;n<s;n++)this.elementsContainer.appendChild(t[n]);else if(s<0)for(let n=t.length+s;n<t.length;n++)this.elementsContainer.insertBefore(t[n],t[0]);if(bc){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 i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*t)}else{const i=this._vidxOffset,o=Wi,s=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(Wn.prototype,Dh);class Rh{constructor(e){this.__adapter=new Wn(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()}}/**
4430
+ */const Oh=1e5,Wi=1e3;class Wn{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:o,elementsContainer:s,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=o,this.elementsContainer=s||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:a}])=>{const l=a.width===0&&a.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",a=>this.__onWheel(a)),this.scrollTarget.addEventListener("virtualizer-element-focused",a=>this.__onElementFocused(a)),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 i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<t?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<t?e<Wi?(i=e,this._vidxOffset=0):(i=Wi,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),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(),bt(),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 i=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o))}),this.__afterElementsUpdated(i)}_updateMetrics(e){bt();let t=0,i=0;const o=this._physicalAverageCount,s=this._physicalAverage;this._iterateItems((n,a)=>{i+=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-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((s*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return i;const o=parseFloat(t.paddingBottom)||0,s=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,a=parseFloat(t.borderTopWidth)||0;return i+o+s+n+a}__updateElement(e,t,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||i)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const i=t.offsetHeight;if(i===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=me.debounce(this.__placeholderClearDebouncer,Dt,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(s=>s!==void 0);this.__placeholderHeight=Math.round(o.reduce((s,n)=>s+n,0)/o.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(i=>i.__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,i;if(e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),bt(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);i!==void 0&&o!==void 0&&(this._scrollTop+=i-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),bt(),this._debounce("_update",this._update,ai)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Oh)}}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),i=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",i.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems((i,o)=>{const s=this._physicalItems[i];s.hidden=o>=this.size,s.hidden?delete s.__lastUpdatedIndex:(s.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(s,s.__virtualIndex),t.push(s))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,i,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 i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,i)||this.__nextFocusableSiblingMissing(t,i))&&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,i=this._getReusables(!t);i.indexes.length&&(this._physicalTop=i.physicalTop,t?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=me.debounce(this.__fixInvalidItemPositioningDebouncer,ze.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=me.debounce(this.__scrollReorderDebouncer,ze.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,i=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||t&&!o){const s=t,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(s?-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=me.debounce(this.__debouncerWheelAnimationFrame,Dt,()=>{this._wheelAnimationFrame=!1});const i=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=me.debounce(this._debouncerIgnoreNewWheel,ze.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,t,i){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,i)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,i)}_canScroll(e,t,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<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(),i=this.__getFocusedElement(t)||t[0];if(!i)return;const o=i.__virtualIndex-e,s=t.indexOf(i)-o;if(s>0)for(let n=0;n<s;n++)this.elementsContainer.appendChild(t[n]);else if(s<0)for(let n=t.length+s;n<t.length;n++)this.elementsContainer.insertBefore(t[n],t[0]);if(bc){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 i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*t)}else{const i=this._vidxOffset,o=Wi,s=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(Wn.prototype,Dh);class Rh{constructor(e){this.__adapter=new Wn(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
4431
  * @license
4432
4432
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4433
4433
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4494,7 +4494,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4494
4494
  * @license
4495
4495
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4496
4496
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4497
- */function es(r){return r!=null}function ts(r,e){return r.findIndex(t=>t instanceof Ne?!1:e(t))}const Gn=r=>class extends Ai(Ve(Vr(Ke(Ye(Nt(ht(r))))))){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),Ii(this),this.addController(new Nn(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,i){super._propertiesChanged(e,t,i),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 i=this._overlayElement;i.renderer=o=>{o.innerHTML||o.appendChild(t)},i.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,i,o,s,n,a,l,c,h){if(e&&(i&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:i?t:[],opened:i,loading:o,selectedItem:s,itemIdPath:n,focusedIndex:a,renderer:l,theme:c,itemClassNameGenerator:h}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(u){}}_openedOrItemsChanged(e,t,i,o){this._overlayOpened=e&&(o||i||!!(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&&zr(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const i=this._getItemElements().find(o=>o.index===e);i?t.setAttribute("aria-activedescendant",i.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!cr&&this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!e),e?i.setAttribute("aria-controls",this._scroller.id):i.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?ci(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?ci(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",()=>{cr&&!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 i=this._inputElementValue;this._lastCustomValue=i;const o=new CustomEvent("custom-value-set",{detail:i,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=i)}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,i={};this.filter===t?this._filterChanged(this.filter):i.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_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||(es(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(i=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(i).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),i=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&&i===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const i=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 s=this.__getItemIndexByValue(e,this._getItemValue(i));s>-1?this._focusedIndex=s: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||!es(t)?-1:ts(e,i=>this._getItemValue(i)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:ts(e,i=>this._getItemLabel(i).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Ne)&&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(fi()){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())}};/**
4497
+ */function es(r){return r!=null}function ts(r,e){return r.findIndex(t=>t instanceof Ne?!1:e(t))}const Gn=r=>class extends Ai(Ve(Vr(Ke(Ye(Mt(ht(r))))))){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),Ii(this),this.addController(new Nn(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,i){super._propertiesChanged(e,t,i),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 i=this._overlayElement;i.renderer=o=>{o.innerHTML||o.appendChild(t)},i.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,i,o,s,n,a,l,c,h){if(e&&(i&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:i?t:[],opened:i,loading:o,selectedItem:s,itemIdPath:n,focusedIndex:a,renderer:l,theme:c,itemClassNameGenerator:h}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(u){}}_openedOrItemsChanged(e,t,i,o){this._overlayOpened=e&&(o||i||!!(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&&zr(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const i=this._getItemElements().find(o=>o.index===e);i?t.setAttribute("aria-activedescendant",i.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!cr&&this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!e),e?i.setAttribute("aria-controls",this._scroller.id):i.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?ci(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?ci(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",()=>{cr&&!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 i=this._inputElementValue;this._lastCustomValue=i;const o=new CustomEvent("custom-value-set",{detail:i,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=i)}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,i={};this.filter===t?this._filterChanged(this.filter):i.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_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||(es(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(i=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(i).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),i=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&&i===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const i=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 s=this.__getItemIndexByValue(e,this._getItemValue(i));s>-1?this._focusedIndex=s: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||!es(t)?-1:ts(e,i=>this._getItemValue(i)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:ts(e,i=>this._getItemLabel(i).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Ne)&&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(fi()){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
4498
  * @license
4499
4499
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4500
4500
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4543,7 +4543,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4543
4543
  ></vaadin-combo-box-overlay>
4544
4544
 
4545
4545
  <slot name="tooltip"></slot>
4546
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Lt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Vt(this.inputElement,this._labelController)),this._tooltipController=new Le(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)}}M(Lh);/**
4546
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Nt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Lt(this.inputElement,this._labelController)),this._tooltipController=new Le(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)}}M(Lh);/**
4547
4547
  * @license
4548
4548
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4549
4549
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4972,7 +4972,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4972
4972
  color: transparent !important;
4973
4973
  forced-color-adjust: none;
4974
4974
  }
4975
- `]}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 Lt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Vt(this.inputElement,this._labelController)),this._tooltipController=new Le(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 Ce(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(),Ii(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),Zt(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,i){if(i&&e){for(let o=0;o<t.length;o++)if(t[o]&&t[o][i]===e[i])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,i){const o=t?"selected":"deselected",s=this.i18n.total.replace("{count}",i||0);Zt(`${e} ${this.i18n[o]} ${s}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const i=this._getItemLabel(e);this.__announceItem(i,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],i=this._findIndex(e,t,this.itemIdPath),o=this._getItemLabel(e);let s=!1;if(i!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}t.splice(i,1)}else t.push(e),s=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(o,s,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,i){e?i||(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 i=this._getItemLabel(e);return t.label=i,t.setAttribute("title",i),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 i=getComputedStyle(e),o=e.clientWidth+parseInt(i.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,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=t-i;e.length>1&&(o-=this.__getOverflowWidth());const s=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let c=e.length-1,h=null;c>=0;c--){const u=this.__createChip(e[c]);this.insertBefore(u,h),h=u,n.unshift(u)}const a=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<i){for(;n.length>1;){n.pop().remove(),a.unshift(e.pop());const c=a.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=c)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(s,o)}px`)}this._overflowItems=a;return}for(let n=e.length-1,a=null;n>=0;n--){const l=this.__createChip(e[n]);if(this.insertBefore(l,a),!this.autoExpandVertically&&this.$.chips.clientWidth>o)if(a===null)l.style.maxWidth=`${Math.max(s,o)}px`;else{l.remove();break}e.pop(),a=l}this._overflowItems=e}__updateOverflowChip(e,t,i,o){if(e){const s=t.length;e.label=`${s}`,e.setAttribute("count",`${s}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",s===0),e.disabled=i,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 i=this._focusedChipIndex;i!==-1&&t.preventDefault();let o;this.__isRTL?i===e.length-1?o=-1:i>-1&&(o=i+1):i===-1?o=e.length-1:i>0&&(o=i-1),o!==void 0&&(this._focusedChipIndex=o)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let o;this.__isRTL?i===-1?o=e.length-1:i>0&&(o=i-1):i===e.length-1?o=-1:i>-1&&(o=i+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 i=this._chips;if(i.forEach((o,s)=>{o.toggleAttribute("focused",s===e)}),e>-1){const o=i[e].item,s=this._getItemLabel(o);Zt(`${s} ${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()}}M(Jh);P("vaadin-notification-card",x`
4975
+ `]}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 Nt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Lt(this.inputElement,this._labelController)),this._tooltipController=new Le(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 Ce(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(),Ii(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),Zt(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,i){if(i&&e){for(let o=0;o<t.length;o++)if(t[o]&&t[o][i]===e[i])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,i){const o=t?"selected":"deselected",s=this.i18n.total.replace("{count}",i||0);Zt(`${e} ${this.i18n[o]} ${s}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const i=this._getItemLabel(e);this.__announceItem(i,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],i=this._findIndex(e,t,this.itemIdPath),o=this._getItemLabel(e);let s=!1;if(i!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}t.splice(i,1)}else t.push(e),s=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(o,s,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,i){e?i||(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 i=this._getItemLabel(e);return t.label=i,t.setAttribute("title",i),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 i=getComputedStyle(e),o=e.clientWidth+parseInt(i.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,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=t-i;e.length>1&&(o-=this.__getOverflowWidth());const s=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let c=e.length-1,h=null;c>=0;c--){const u=this.__createChip(e[c]);this.insertBefore(u,h),h=u,n.unshift(u)}const a=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<i){for(;n.length>1;){n.pop().remove(),a.unshift(e.pop());const c=a.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=c)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(s,o)}px`)}this._overflowItems=a;return}for(let n=e.length-1,a=null;n>=0;n--){const l=this.__createChip(e[n]);if(this.insertBefore(l,a),!this.autoExpandVertically&&this.$.chips.clientWidth>o)if(a===null)l.style.maxWidth=`${Math.max(s,o)}px`;else{l.remove();break}e.pop(),a=l}this._overflowItems=e}__updateOverflowChip(e,t,i,o){if(e){const s=t.length;e.label=`${s}`,e.setAttribute("count",`${s}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",s===0),e.disabled=i,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 i=this._focusedChipIndex;i!==-1&&t.preventDefault();let o;this.__isRTL?i===e.length-1?o=-1:i>-1&&(o=i+1):i===-1?o=e.length-1:i>0&&(o=i-1),o!==void 0&&(this._focusedChipIndex=o)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let o;this.__isRTL?i===-1?o=e.length-1:i>0&&(o=i-1):i===e.length-1?o=-1:i>-1&&(o=i+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 i=this._chips;if(i.forEach((o,s)=>{o.toggleAttribute("focused",s===e)}),e>-1){const o=i[e].item,s=this._getItemLabel(o);Zt(`${s} ${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()}}M(Jh);P("vaadin-notification-card",x`
4976
4976
  :host {
4977
4977
  position: relative;
4978
4978
  margin: var(--lumo-space-s);
@@ -5633,7 +5633,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5633
5633
  <div class="sr-only">
5634
5634
  <slot name="sr-label"></slot>
5635
5635
  </div>
5636
- `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Ii(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}M(vu);function is(r,e){d.addMessages(r,e)}function gu(r){d.$locale.set(r)}const rs={en:{titleProductRestriction:"Product Restriction",productRestrictionText:"<p>While product-restrictioned, access to your account will be entirely restricted.</br>product-restriction can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a restriction period",selectAPeriod:"Select a period",Casino:"Casino",Sports:"Sports",Virtuals:"Virtuals","6Month":"6 Months","1Year":"1 Year","2Year":"2 Years","5Year":"5 Years",Until:"Until",Permanent:"Permanent",deniedProductText:"Restricted product until {date}",temporaryProductRestriction:"Your product-restriction period will last until the {date} 23:59.",permanentProductRestriction:"Your product-restriction period will be permanent.",confirmationModalTitle:"Confirmation",productRestrictionSuccess:"Product restrcition active",confirmationModalTextPeriod:"Are you sure you want to restrict the following products: {product} for {period}?",confirmationModalTextUntil:"Are you sure you want to restrict the following products: {product} until {date}?",errorProductRestrictionCall:"There was a problem while making the product restriction request.",generalError:"There was an error while fetching the product restriction.",InvalidSession:"The session is exipired."},"zh-hk":{titleProductRestriction:"產品限制",productRestrictionText:"<p>在產品限制期間,您的帳戶訪問將完全受限。</br>產品限制只能在您選擇的期限過後,通過與客戶支持溝通解除,這將需要審查和冷靜期。</br>或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中休息(最多6週)。</br>如果您更願意關閉您的帳戶,您可以通過'<a href='{baseurl}/{lang}/account/account-closure'>帳戶關閉</a>'選項選擇這樣做。</br>我們建議您也閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取更多建議。",productRestrictionEmailText:"電子郵件:<a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"持續時間:",dateInstructions:"為了手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇限制期限",selectAPeriod:"選擇一個期限",Casino:"賭場",Sports:"體育",Virtuals:"虛擬","6Month":"6個月","1Year":"1年","2Year":"2年","5Year":"5年",Until:"直到",Permanent:"永久",deniedProductText:"受限產品直到 {date}",temporaryProductRestriction:"您的產品限制期將持續到 {date} 23:59。",permanentProductRestriction:"您的產品限制期將是永久的。",confirmationModalTitle:"確認",productRestrictionSuccess:"產品限制已激活",confirmationModalTextPeriod:"您確定要限制以下產品:{product} 為期 {period} 嗎?",confirmationModalTextUntil:"您確定要限制以下產品:{product} 直到 {date} 嗎?",errorProductRestrictionCall:"在進行產品限制請求時出現問題。",generalError:"獲取產品限制時出現錯誤。",InvalidSession:"會話已過期。"},fr:{titleProductRestriction:"Restriction de produit",productRestrictionText:"<p>Pendant la restriction de produit, l'accès à votre compte sera entièrement restreint.</br>La restriction de produit ne peut être levée qu'après la période que vous avez sélectionnée en communiquant avec le support client, ce qui sera soumis à une révision et à une période de réflexion.</br>Alternativement, vous pouvez choisir de prendre un 'temps mort' (une pause de jusqu'à 6 semaines) de nos services via l'option '<a href='{baseurl}/{lang}/account/timeout'>Temps mort</a>'.</br>Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br>Nous vous recommandons également de lire nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu responsable</a>' pour plus de conseils si nécessaire.",productRestrictionEmailText:"E-mail : <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Durée :",dateInstructions:"Pour entrer manuellement la date, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période de restriction",selectAPeriod:"Sélectionnez une période",Casino:"Casino",Sports:"Sports",Virtuals:"Virtuels","6Month":"6 Mois","1Year":"1 An","2Year":"2 Ans","5Year":"5 Ans",Until:"Jusqu'à",Permanent:"Permanent",deniedProductText:"Produit restreint jusqu'au {date}",temporaryProductRestriction:"Votre période de restriction de produit durera jusqu'à {date} 23:59.",permanentProductRestriction:"Votre période de restriction de produit sera permanente.",confirmationModalTitle:"Confirmation",productRestrictionSuccess:"Restriction de produit active",confirmationModalTextPeriod:"Êtes-vous sûr de vouloir restreindre les produits suivants : {product} pour {period} ?",confirmationModalTextUntil:"Êtes-vous sûr de vouloir restreindre les produits suivants : {product} jusqu'à {date} ?",errorProductRestrictionCall:"Il y a eu un problème lors de la demande de restriction de produit.",generalError:"Il y a eu une erreur lors de la récupération de la restriction de produit.",InvalidSession:"La session a expiré."},ro:{titleProductRestriction:"Restricție de produs",productRestrictionText:"<p>În timpul restricției de produs, accesul la contul dvs. va fi complet restricționat.</br>Restricția de produs poate fi ridicată doar după ce perioada pe care ați selectat-o a trecut, prin comunicarea cu Suportul pentru Clienți, care va fi supusă unei revizuiri și unei perioade de răcire.</br>Alternativ, puteți alege să luați o 'pauză' (o pauză de până la 6 săptămâni) de la serviciile noastre prin opțiunea '<a href='{baseurl}/{lang}/account/timeout'>Pauză</a>'.</br>Dacă preferați doar să vă închideți contul, puteți alege să faceți acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br>Vă recomandăm, de asemenea, să citiți paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc responsabil</a>' pentru sfaturi suplimentare, dacă aveți nevoie.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Durată:",dateInstructions:"Pentru a introduce manual data, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de restricție",selectAPeriod:"Selectați o perioadă",Casino:"Cazinou",Sports:"Sporturi",Virtuals:"Virtuale","6Month":"6 Luni","1Year":"1 An","2Year":"2 Ani","5Year":"5 Ani",Until:"Până la",Permanent:"Permanent",deniedProductText:"Produs restricționat până la {date}",temporaryProductRestriction:"Perioada dvs. de restricție de produs va dura până la {date} 23:59.",permanentProductRestriction:"Perioada dvs. de restricție de produs va fi permanentă.",confirmationModalTitle:"Confirmare",productRestrictionSuccess:"Restricție de produs activă",confirmationModalTextPeriod:"Sunteți sigur că doriți să restricționați următoarele produse: {product} pentru {period}?",confirmationModalTextUntil:"Sunteți sigur că doriți să restricționați următoarele produse: {product} până la {date}?",errorProductRestrictionCall:"A apărut o problemă în timpul solicitării de restricție de produs.",generalError:"A apărut o eroare la preluarea restricției de produs.",InvalidSession:"Sesiunea a expirat."},es:{titleProductRestriction:"Restricción de producto",productRestrictionText:"<p>Mientras esté restringido por producto, el acceso a su cuenta estará completamente restringido.</br>La restricción de producto solo se puede levantar después de que haya pasado el período que seleccionó comunicándose con el Soporte al Cliente, lo cual estará sujeto a revisión y un período de enfriamiento.</br>Alternativamente, puede optar por tomarse un 'descanso' (una pausa de hasta 6 semanas) de nuestros servicios a través de la opción '<a href='{baseurl}/{lang}/account/timeout'>Descanso</a>'.</br>Si prefiere simplemente cerrar su cuenta, puede optar por hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de cuenta</a>'.</br>Le recomendamos que también lea nuestras páginas de ayuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.",productRestrictionEmailText:"Correo electrónico: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, use el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor seleccione un período de restricción",selectAPeriod:"Seleccione un período",Casino:"Casino",Sports:"Deportes",Virtuals:"Virtuales","6Month":"6 Meses","1Year":"1 Año","2Year":"2 Años","5Year":"5 Años",Until:"Hasta",Permanent:"Permanente",deniedProductText:"Producto restringido hasta {date}",temporaryProductRestriction:"Su período de restricción de producto durará hasta {date} 23:59.",permanentProductRestriction:"Su período de restricción de producto será permanente.",confirmationModalTitle:"Confirmación",productRestrictionSuccess:"Restricción de producto activa",confirmationModalTextPeriod:"¿Está seguro de que desea restringir los siguientes productos: {product} por {period}?",confirmationModalTextUntil:"¿Está seguro de que desea restringir los siguientes productos: {product} hasta {date}?",errorProductRestrictionCall:"Hubo un problema al realizar la solicitud de restricción de producto.",generalError:"Hubo un error al obtener la restricción de producto.",InvalidSession:"La sesión ha expirado."},pt:{titleProductRestriction:"Restrição de Produto",productRestrictionText:"<p>Enquanto estiver com restrição de produto, o acesso à sua conta será totalmente restrito.</br>A restrição de produto só pode ser levantada após o período que você selecionou ter passado, comunicando-se com o Suporte ao Cliente, o que estará sujeito a revisão e um período de reflexão.</br>Alternativamente, você pode optar por fazer uma 'pausa' (uma pausa de até 6 semanas) de nossos serviços através da opção '<a href='{baseurl}/{lang}/account/timeout'>Pausa</a>'.</br>Se você preferir apenas fechar sua conta, pode optar por fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br>Recomendamos que você também leia nossas páginas de ajuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, se precisar.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de restrição",selectAPeriod:"Selecione um período",Casino:"Cassino",Sports:"Esportes",Virtuals:"Virtuais","6Month":"6 Meses","1Year":"1 Ano","2Year":"2 Anos","5Year":"5 Anos",Until:"Até",Permanent:"Permanente",deniedProductText:"Produto restrito até {date}",temporaryProductRestriction:"Seu período de restrição de produto durará até {date} 23:59.",permanentProductRestriction:"Seu período de restrição de produto será permanente.",confirmationModalTitle:"Confirmação",productRestrictionSuccess:"Restrição de produto ativa",confirmationModalTextPeriod:"Tem certeza de que deseja restringir os seguintes produtos: {product} por {period}?",confirmationModalTextUntil:"Tem certeza de que deseja restringir os seguintes produtos: {product} até {date}?",errorProductRestrictionCall:"Houve um problema ao fazer a solicitação de restrição de produto.",generalError:"Houve um erro ao buscar a restrição de produto.",InvalidSession:"A sessão expirou."},hr:{titleProductRestriction:"Ograničenje proizvoda",productRestrictionText:"<p>Tijekom ograničenja proizvoda, pristup vašem računu bit će potpuno ograničen.</br>Ograničenje proizvoda može se ukinuti tek nakon što prođe razdoblje koje ste odabrali, komunikacijom s korisničkom podrškom, što će biti podložno pregledu i razdoblju hlađenja.</br>Alternativno, možete odabrati 'pauzu' (pauza do 6 tjedana) od naših usluga putem opcije '<a href='{baseurl}/{lang}/account/timeout'>Pauza</a>'.</br>Ako radije želite zatvoriti svoj račun, možete to učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br>Preporučujemo vam da također pročitate naše stranice pomoći '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za daljnje savjete ako vam je potrebno.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje ograničenja",selectAPeriod:"Odaberite razdoblje",Casino:"Kasino",Sports:"Sportovi",Virtuals:"Virtualni","6Month":"6 Mjeseci","1Year":"1 Godina","2Year":"2 Godine","5Year":"5 Godina",Until:"Do",Permanent:"Trajno",deniedProductText:"Ograničeni proizvod do {date}",temporaryProductRestriction:"Vaše razdoblje ograničenja proizvoda trajat će do {date} 23:59.",permanentProductRestriction:"Vaše razdoblje ograničenja proizvoda bit će trajno.",confirmationModalTitle:"Potvrda",productRestrictionSuccess:"Ograničenje proizvoda aktivno",confirmationModalTextPeriod:"Jeste li sigurni da želite ograničiti sljedeće proizvode: {product} za {period}?",confirmationModalTextUntil:"Jeste li sigurni da želite ograničiti sljedeće proizvode: {product} do {date}?",errorProductRestrictionCall:"Došlo je do problema prilikom podnošenja zahtjeva za ograničenje proizvoda.",generalError:"Došlo je do pogreške prilikom dohvaćanja ograničenja proizvoda.",InvalidSession:"Sesija je istekla."},"pt-br":{titleProductRestriction:"Restrição de Produto",productRestrictionText:"<p>Enquanto estiver com restrição de produto, o acesso à sua conta será totalmente restrito.</br>A restrição de produto só pode ser levantada após o período que você selecionou ter passado, comunicando-se com o Suporte ao Cliente, o que estará sujeito a revisão e um período de reflexão.</br>Alternativamente, você pode optar por fazer uma 'pausa' (uma pausa de até 6 semanas) de nossos serviços através da opção '<a href='{baseurl}/{lang}/account/timeout'>Pausa</a>'.</br>Se você preferir apenas fechar sua conta, pode optar por fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br>Recomendamos que você também leia nossas páginas de ajuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, se precisar.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de restrição",selectAPeriod:"Selecione um período",Casino:"Cassino",Sports:"Esportes",Virtuals:"Virtuais","6Month":"6 Meses","1Year":"1 Ano","2Year":"2 Anos","5Year":"5 Anos",Until:"Até",Permanent:"Permanente",deniedProductText:"Produto restrito até {date}",temporaryProductRestriction:"Seu período de restrição de produto durará até {date} 23:59.",permanentProductRestriction:"Seu período de restrição de produto será permanente.",confirmationModalTitle:"Confirmação",productRestrictionSuccess:"Restrição de produto ativa",confirmationModalTextPeriod:"Tem certeza de que deseja restringir os seguintes produtos: {product} por {period}?",confirmationModalTextUntil:"Tem certeza de que deseja restringir os seguintes produtos: {product} até {date}?",errorProductRestrictionCall:"Houve um problema ao fazer a solicitação de restrição de produto.",generalError:"Houve um erro ao buscar a restrição de produto.",InvalidSession:"A sessão expirou."},"es-mx":{titleProductRestriction:"Restricción de producto",productRestrictionText:"<p>Mientras esté restringido por producto, el acceso a su cuenta estará completamente restringido.</br>La restricción de producto solo se puede levantar después de que haya pasado el período que seleccionó comunicándose con el Soporte al Cliente, lo cual estará sujeto a revisión y un período de enfriamiento.</br>Alternativamente, puede optar por tomarse un 'descanso' (una pausa de hasta 6 semanas) de nuestros servicios a través de la opción '<a href='{baseurl}/{lang}/account/timeout'>Descanso</a>'.</br>Si prefiere simplemente cerrar su cuenta, puede optar por hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de cuenta</a>'.</br>Le recomendamos que también lea nuestras páginas de ayuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.",productRestrictionEmailText:"Correo electrónico: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, use el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor seleccione un período de restricción",selectAPeriod:"Seleccione un período",Casino:"Casino",Sports:"Deportes",Virtuals:"Virtuales","6Month":"6 Meses","1Year":"1 Año","2Year":"2 Años","5Year":"5 Años",Until:"Hasta",Permanent:"Permanente",deniedProductText:"Producto restringido hasta {date}",temporaryProductRestriction:"Su período de restricción de producto durará hasta {date} 23:59.",permanentProductRestriction:"Su período de restricción de producto será permanente.",confirmationModalTitle:"Confirmación",productRestrictionSuccess:"Restricción de producto activa",confirmationModalTextPeriod:"¿Está seguro de que desea restringir los siguientes productos: {product} por {period}?",confirmationModalTextUntil:"¿Está seguro de que desea restringir los siguientes productos: {product} hasta {date}?",errorProductRestrictionCall:"Hubo un problema al realizar la solicitud de restricción de producto.",generalError:"Hubo un error al obtener la restricción de producto.",InvalidSession:"La sesión ha expirado."},tr:{titleProductRestriction:"Ürün Kısıtlaması",productRestrictionText:"<p>Ürün kısıtlaması sırasında, hesabınıza erişim tamamen kısıtlanacaktır.</br>Ürün kısıtlaması, yalnızca seçtiğiniz süre geçtikten sonra Müşteri Desteği ile iletişime geçerek kaldırılabilir, bu da inceleme ve soğuma süresine tabi olacaktır.</br>Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Zaman aşımı</a>' seçeneği aracılığıyla hizmetlerimizden 'zaman aşımı' (6 haftaya kadar bir ara) vermeyi seçebilirsiniz.</br>Hesabınızı kapatmayı tercih ederseniz, '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla bunu yapabilirsiniz.</br>İhtiyacınız olursa, daha fazla tavsiye için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Kumar</a>' yardım sayfalarımızı okumanızı öneririz.",productRestrictionEmailText:"E-posta: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için aşağıdaki formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kısıtlama süresi seçin",selectAPeriod:"Bir dönem seçin",Casino:"Kumarhane",Sports:"Sporlar",Virtuals:"Sanal","6Month":"6 Ay","1Year":"1 Yıl","2Year":"2 Yıl","5Year":"5 Yıl",Until:"Kadar",Permanent:"Kalıcı",deniedProductText:"Ürün {date} tarihine kadar kısıtlandı",temporaryProductRestriction:"Ürün kısıtlama süreniz {date} 23:59'a kadar sürecektir.",permanentProductRestriction:"Ürün kısıtlama süreniz kalıcı olacaktır.",confirmationModalTitle:"Onay",productRestrictionSuccess:"Ürün kısıtlaması aktif",confirmationModalTextPeriod:"Aşağıdaki ürünleri {period} süreyle kısıtlamak istediğinizden emin misiniz: {product}?",confirmationModalTextUntil:"Aşağıdaki ürünleri {date} tarihine kadar kısıtlamak istediğinizden emin misiniz: {product}?",errorProductRestrictionCall:"Ürün kısıtlama isteği yapılırken bir sorun oluştu.",generalError:"Ürün kısıtlaması alınırken bir hata oluştu.",InvalidSession:"Oturum süresi doldu."}};function bu(r){d.append_styles(r,"svelte-q8bsrd",'a{cursor:pointer;text-decoration:underline;font-weight:600}.ProductRestrictionContainer{border-radius:var(--emw--border-radius-medium, 10px);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));container-type:inline-size}.ProductRestrictionContainer .ProductRestrictionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));padding:50px;border-radius:var(--emw--border-radius-medium, 10px);max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper .PlayerProductRestrictionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription{color:var(--emw--color-gray-300, #58586b);line-height:24px;min-height:180px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription p{font-size:16px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper{width:50%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel p{margin:0;font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon.active{transform:rotateZ(0deg)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586b);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));border-radius:0px 0px var(--emw--border-radius-medium, 10px) var(--emw--border-radius-medium, 10px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transition:all 0.5s ease-in-out;font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown div:hover{color:var(--emw--color-white, #ffffff);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown.active{max-height:300px;opacity:1}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper{color:var(--emw--color-gray-300, #58586b);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper .ProductRestrictionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper .ProductRestrictionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #e6e6e6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification{color:var(--emw--color-gray-300, #58586b);line-height:24px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification .ProductRestrictionDescriptionText p{font-size:16px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification .ProductRestrictionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:5px;color:var(--emw--color-gray-300, #58586b);font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel .label{font-size:var(--emw--size-standard, 16px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel p{margin:0}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent{display:inherit;flex-direction:row;align-items:center;justify-content:center;background-color:transparent;border:none;cursor:pointer;gap:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox{width:20px;height:20px;padding:2px;margin:2px 0 2px 0;border-radius:100%;position:relative;border:1px solid var(--emw--color-gray-300, #666178)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox [type=checkbox]{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox::before{content:"";width:12.75px;height:12.75px;border-radius:100px;cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .toggleCheckbox{border:1px solid var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .toggleCheckbox::before{background-color:var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .label{color:var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons{margin-top:40px;width:50%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--color-primary, #23b04e);border-radius:var(--emw--border-radius-medium, 10px);padding:20px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #ffffff);cursor:pointer;border:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave:hover{filter:brightness(0.9)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave:disabled{opacity:0.5;cursor:default}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionError{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:var(--emw--font-weight-normal, 500)}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .MenuReturnButton{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .PlayerProductRestrictionTitle{display:block;width:30%;height:20px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionDescription{display:flex;flex-direction:column;gap:10px;width:75%}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionDescription ui-skeleton:last-child{margin-top:30px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionConfigWrapper{border:none}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionNotification{margin-bottom:30px}@container (max-width: 768px){.ProductRestrictionContainer .ProductRestrictionWrapper{padding:20px 15px;max-width:unset;border-radius:0}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton{display:inline-flex;align-items:center;color:var(--emw--color-gray-300, #58586b);border:none;background-color:transparent;column-gap:10px;margin-bottom:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton .PlayerProductRestrictionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .PlayerProductRestrictionTitle{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription .ProductRestrictionDescriptionText{color:var(--emw--color-gray-300, #58586b)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon{width:10px;height:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper{width:100%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons{width:100%;grid-template-columns:1fr 1fr}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .MenuReturnButton{display:block;width:200px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .PlayerProductRestrictionTitle{display:none}}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function os(r,e,t){const i=r.slice();return i[67]=e[t],i[69]=t,i}function ss(r,e,t){const i=r.slice();return i[70]=e[t],i}function yu(r,e,t){const i=r.slice();return i[62]=e[t],i}function xu(r,e,t){const i=r.slice();return i[62]=e[t],i}function wu(r){let e,t,i,o,s,n,a,l,c,h,u,f,p=r[25]("titleProductRestriction")+"",w,S,A,D=r[25]("titleProductRestriction")+"",$,H,N,K,R=r[25]("productRestrictionText",{values:{baseurl:r[1],lang:r[0]}})+"",xe,j,ae=r[25]("productRestrictionEmailText")+"",B,O,re,be,E=r[25](`${r[16]}`)+"",b,v,y,g,k,I,z,W,Y,q,Z,de,_e,he,X,G=r[25]("save")+"",le,ue,fe,Ft,Je,Xe,Ze,ut,ke=d.ensure_array_like(r[9]),ee=[];for(let _=0;_<ke.length;_+=1)ee[_]=ns(ss(r,ke,_));let oe=r[20]&&as(r);function Bt(_,C){return _[19]?Au:_[15]?Pu:ku}let Qe=Bt(r),ve=Qe(r),De=d.ensure_array_like(r[11]),te=[];for(let _=0;_<De.length;_+=1)te[_]=ds(os(r,De,_));let se=r[24]&&cs(r),m=r[26]&&Eu(r);return{c(){e=d.element("div"),t=d.element("div"),i=d.element("button"),o=d.svg_element("svg"),s=d.svg_element("defs"),n=d.svg_element("style"),a=d.text(`.svgClass {
5636
+ `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Ii(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}M(vu);function is(r,e){d.addMessages(r,e)}function gu(r){d.$locale.set(r)}const rs={en:{titleProductRestriction:"Product Restriction",productRestrictionText:"<p>While product-restrictioned, access to your account will be entirely restricted.</br>product-restriction can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a restriction period",selectAPeriod:"Select a period",Casino:"Casino",Sports:"Sports",Virtuals:"Virtuals","6Month":"6 Months","1Year":"1 Year","2Year":"2 Years","5Year":"5 Years",Until:"Until",Permanent:"Permanent",deniedProductText:"Restricted product until {date}",temporaryProductRestriction:"Your product-restriction period will last until the {date} 23:59.",permanentProductRestriction:"Your product-restriction period will be permanent.",confirmationModalTitle:"Product Restriction",productRestrictionSuccess:"Product restrcition active",confirmationModalTextPeriod:"You are choosing to restrict yourself from the following products until {date} / for {period}. </br> {product} </br> This action cannot be reversed once confirmed </br> Please confirm you wish to proceed.",errorProductRestrictionCall:"There was a problem while making the product restriction request.",generalError:"There was an error while fetching the product restriction.",InvalidSession:"The session is exipired."},"zh-hk":{titleProductRestriction:"產品限制",productRestrictionText:"<p>在產品限制期間,您的帳戶訪問將完全受限。</br>產品限制只能在您選擇的期限過後,通過與客戶支持溝通解除,這將需要審查和冷靜期。</br>或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中休息(最多6週)。</br>如果您更願意關閉您的帳戶,您可以通過'<a href='{baseurl}/{lang}/account/account-closure'>帳戶關閉</a>'選項選擇這樣做。</br>我們建議您也閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取更多建議。",productRestrictionEmailText:"電子郵件:<a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"持續時間:",dateInstructions:"為了手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇限制期限",selectAPeriod:"選擇一個期限",Casino:"賭場",Sports:"體育",Virtuals:"虛擬","6Month":"6個月","1Year":"1年","2Year":"2年","5Year":"5年",Until:"直到",Permanent:"永久",deniedProductText:"受限產品直到 {date}",temporaryProductRestriction:"您的產品限制期將持續到 {date} 23:59。",permanentProductRestriction:"您的產品限制期將是永久的。",confirmationModalTitle:"確認",productRestrictionSuccess:"產品限制已激活",confirmationModalTextPeriod:"您選擇將自己限制使用以下產品,直到 {date} / 為期 {period}。 </br> {product} </br> 一旦確認,此操作無法撤銷 </br> 請確認您希望繼續。",errorProductRestrictionCall:"在進行產品限制請求時出現問題。",generalError:"獲取產品限制時出現錯誤。",InvalidSession:"會話已過期。"},fr:{titleProductRestriction:"Restriction de produit",productRestrictionText:"<p>Pendant la restriction de produit, l'accès à votre compte sera entièrement restreint.</br>La restriction de produit ne peut être levée qu'après la période que vous avez sélectionnée en communiquant avec le support client, ce qui sera soumis à une révision et à une période de réflexion.</br>Alternativement, vous pouvez choisir de prendre un 'temps mort' (une pause de jusqu'à 6 semaines) de nos services via l'option '<a href='{baseurl}/{lang}/account/timeout'>Temps mort</a>'.</br>Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br>Nous vous recommandons également de lire nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu responsable</a>' pour plus de conseils si nécessaire.",productRestrictionEmailText:"E-mail : <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Durée :",dateInstructions:"Pour entrer manuellement la date, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période de restriction",selectAPeriod:"Sélectionnez une période",Casino:"Casino",Sports:"Sports",Virtuals:"Virtuels","6Month":"6 Mois","1Year":"1 An","2Year":"2 Ans","5Year":"5 Ans",Until:"Jusqu'à",Permanent:"Permanent",deniedProductText:"Produit restreint jusqu'au {date}",temporaryProductRestriction:"Votre période de restriction de produit durera jusqu'à {date} 23:59.",permanentProductRestriction:"Votre période de restriction de produit sera permanente.",confirmationModalTitle:"Confirmation",productRestrictionSuccess:"Restriction de produit active",confirmationModalTextPeriod:"Vous choisissez de vous restreindre des produits suivants jusqu'au {date} / pour {period}. </br> {product} </br> Cette action ne peut pas être annulée une fois confirmée </br> Veuillez confirmer que vous souhaitez continuer.",errorProductRestrictionCall:"Il y a eu un problème lors de la demande de restriction de produit.",generalError:"Il y a eu une erreur lors de la récupération de la restriction de produit.",InvalidSession:"La session a expiré."},ro:{titleProductRestriction:"Restricție de produs",productRestrictionText:"<p>În timpul restricției de produs, accesul la contul dvs. va fi complet restricționat.</br>Restricția de produs poate fi ridicată doar după ce perioada pe care ați selectat-o a trecut, prin comunicarea cu Suportul pentru Clienți, care va fi supusă unei revizuiri și unei perioade de răcire.</br>Alternativ, puteți alege să luați o 'pauză' (o pauză de până la 6 săptămâni) de la serviciile noastre prin opțiunea '<a href='{baseurl}/{lang}/account/timeout'>Pauză</a>'.</br>Dacă preferați doar să vă închideți contul, puteți alege să faceți acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br>Vă recomandăm, de asemenea, să citiți paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc responsabil</a>' pentru sfaturi suplimentare, dacă aveți nevoie.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Durată:",dateInstructions:"Pentru a introduce manual data, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de restricție",selectAPeriod:"Selectați o perioadă",Casino:"Cazinou",Sports:"Sporturi",Virtuals:"Virtuale","6Month":"6 Luni","1Year":"1 An","2Year":"2 Ani","5Year":"5 Ani",Until:"Până la",Permanent:"Permanent",deniedProductText:"Produs restricționat până la {date}",temporaryProductRestriction:"Perioada dvs. de restricție de produs va dura până la {date} 23:59.",permanentProductRestriction:"Perioada dvs. de restricție de produs va fi permanentă.",confirmationModalTitle:"Confirmare",productRestrictionSuccess:"Restricție de produs activă",confirmationModalTextPeriod:"Alegeți să vă restricționați de la următoarele produse până la {date} / pentru {period}. </br> {product} </br> Această acțiune nu poate fi inversată odată confirmată </br> Vă rugăm să confirmați că doriți să continuați.",errorProductRestrictionCall:"A apărut o problemă în timpul solicitării de restricție de produs.",generalError:"A apărut o eroare la preluarea restricției de produs.",InvalidSession:"Sesiunea a expirat."},es:{titleProductRestriction:"Restricción de producto",productRestrictionText:"<p>Mientras esté restringido por producto, el acceso a su cuenta estará completamente restringido.</br>La restricción de producto solo se puede levantar después de que haya pasado el período que seleccionó comunicándose con el Soporte al Cliente, lo cual estará sujeto a revisión y un período de enfriamiento.</br>Alternativamente, puede optar por tomarse un 'descanso' (una pausa de hasta 6 semanas) de nuestros servicios a través de la opción '<a href='{baseurl}/{lang}/account/timeout'>Descanso</a>'.</br>Si prefiere simplemente cerrar su cuenta, puede optar por hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de cuenta</a>'.</br>Le recomendamos que también lea nuestras páginas de ayuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.",productRestrictionEmailText:"Correo electrónico: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, use el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor seleccione un período de restricción",selectAPeriod:"Seleccione un período",Casino:"Casino",Sports:"Deportes",Virtuals:"Virtuales","6Month":"6 Meses","1Year":"1 Año","2Year":"2 Años","5Year":"5 Años",Until:"Hasta",Permanent:"Permanente",deniedProductText:"Producto restringido hasta {date}",temporaryProductRestriction:"Su período de restricción de producto durará hasta {date} 23:59.",permanentProductRestriction:"Su período de restricción de producto será permanente.",confirmationModalTitle:"Confirmación",productRestrictionSuccess:"Restricción de producto activa",confirmationModalTextPeriod:"Está eligiendo restringirse de los siguientes productos hasta {date} / por {period}. </br> {product} </br> Esta acción no se puede revertir una vez confirmada </br> Por favor confirme que desea continuar.",errorProductRestrictionCall:"Hubo un problema al realizar la solicitud de restricción de producto.",generalError:"Hubo un error al obtener la restricción de producto.",InvalidSession:"La sesión ha expirado."},pt:{titleProductRestriction:"Restrição de Produto",productRestrictionText:"<p>Enquanto estiver com restrição de produto, o acesso à sua conta será totalmente restrito.</br>A restrição de produto só pode ser levantada após o período que você selecionou ter passado, comunicando-se com o Suporte ao Cliente, o que estará sujeito a revisão e um período de reflexão.</br>Alternativamente, você pode optar por fazer uma 'pausa' (uma pausa de até 6 semanas) de nossos serviços através da opção '<a href='{baseurl}/{lang}/account/timeout'>Pausa</a>'.</br>Se você preferir apenas fechar sua conta, pode optar por fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br>Recomendamos que você também leia nossas páginas de ajuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, se precisar.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de restrição",selectAPeriod:"Selecione um período",Casino:"Cassino",Sports:"Esportes",Virtuals:"Virtuais","6Month":"6 Meses","1Year":"1 Ano","2Year":"2 Anos","5Year":"5 Anos",Until:"Até",Permanent:"Permanente",deniedProductText:"Produto restrito até {date}",temporaryProductRestriction:"Seu período de restrição de produto durará até {date} 23:59.",permanentProductRestriction:"Seu período de restrição de produto será permanente.",confirmationModalTitle:"Confirmação",productRestrictionSuccess:"Restrição de produto ativa",confirmationModalTextPeriod:"Você está escolhendo se restringir dos seguintes produtos até {date} / por {period}. </br> {product} </br> Esta ação não pode ser revertida uma vez confirmada </br> Por favor, confirme que deseja continuar.",errorProductRestrictionCall:"Houve um problema ao fazer a solicitação de restrição de produto.",generalError:"Houve um erro ao buscar a restrição de produto.",InvalidSession:"A sessão expirou."},hr:{titleProductRestriction:"Ograničenje proizvoda",productRestrictionText:"<p>Tijekom ograničenja proizvoda, pristup vašem računu bit će potpuno ograničen.</br>Ograničenje proizvoda može se ukinuti tek nakon što prođe razdoblje koje ste odabrali, komunikacijom s korisničkom podrškom, što će biti podložno pregledu i razdoblju hlađenja.</br>Alternativno, možete odabrati 'pauzu' (pauza do 6 tjedana) od naših usluga putem opcije '<a href='{baseurl}/{lang}/account/timeout'>Pauza</a>'.</br>Ako radije želite zatvoriti svoj račun, možete to učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br>Preporučujemo vam da također pročitate naše stranice pomoći '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za daljnje savjete ako vam je potrebno.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje ograničenja",selectAPeriod:"Odaberite razdoblje",Casino:"Kasino",Sports:"Sportovi",Virtuals:"Virtualni","6Month":"6 Mjeseci","1Year":"1 Godina","2Year":"2 Godine","5Year":"5 Godina",Until:"Do",Permanent:"Trajno",deniedProductText:"Ograničeni proizvod do {date}",temporaryProductRestriction:"Vaše razdoblje ograničenja proizvoda trajat će do {date} 23:59.",permanentProductRestriction:"Vaše razdoblje ograničenja proizvoda bit će trajno.",confirmationModalTitle:"Potvrda",productRestrictionSuccess:"Ograničenje proizvoda aktivno",confirmationModalTextPeriod:"Odabirete ograničiti se od sljedećih proizvoda do {date} / za {period}. </br> {product} </br> Ova radnja se ne može poništiti nakon potvrde </br> Molimo potvrdite da želite nastaviti.",errorProductRestrictionCall:"Došlo je do problema prilikom podnošenja zahtjeva za ograničenje proizvoda.",generalError:"Došlo je do pogreške prilikom dohvaćanja ograničenja proizvoda.",InvalidSession:"Sesija je istekla."},"pt-br":{titleProductRestriction:"Restrição de Produto",productRestrictionText:"<p>Enquanto estiver com restrição de produto, o acesso à sua conta será totalmente restrito.</br>A restrição de produto só pode ser levantada após o período que você selecionou ter passado, comunicando-se com o Suporte ao Cliente, o que estará sujeito a revisão e um período de reflexão.</br>Alternativamente, você pode optar por fazer uma 'pausa' (uma pausa de até 6 semanas) de nossos serviços através da opção '<a href='{baseurl}/{lang}/account/timeout'>Pausa</a>'.</br>Se você preferir apenas fechar sua conta, pode optar por fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br>Recomendamos que você também leia nossas páginas de ajuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, se precisar.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de restrição",selectAPeriod:"Selecione um período",Casino:"Cassino",Sports:"Esportes",Virtuals:"Virtuais","6Month":"6 Meses","1Year":"1 Ano","2Year":"2 Anos","5Year":"5 Anos",Until:"Até",Permanent:"Permanente",deniedProductText:"Produto restrito até {date}",temporaryProductRestriction:"Seu período de restrição de produto durará até {date} 23:59.",permanentProductRestriction:"Seu período de restrição de produto será permanente.",confirmationModalTitle:"Confirmação",productRestrictionSuccess:"Restrição de produto ativa",confirmationModalTextPeriod:"Você está escolhendo se restringir dos seguintes produtos até {date} / por {period}. </br> {product} </br> Esta ação não pode ser revertida uma vez confirmada </br> Por favor, confirme que deseja continuar.",errorProductRestrictionCall:"Houve um problema ao fazer a solicitação de restrição de produto.",generalError:"Houve um erro ao buscar a restrição de produto.",InvalidSession:"A sessão expirou."},"es-mx":{titleProductRestriction:"Restricción de producto",productRestrictionText:"<p>Mientras esté restringido por producto, el acceso a su cuenta estará completamente restringido.</br>La restricción de producto solo se puede levantar después de que haya pasado el período que seleccionó comunicándose con el Soporte al Cliente, lo cual estará sujeto a revisión y un período de enfriamiento.</br>Alternativamente, puede optar por tomarse un 'descanso' (una pausa de hasta 6 semanas) de nuestros servicios a través de la opción '<a href='{baseurl}/{lang}/account/timeout'>Descanso</a>'.</br>Si prefiere simplemente cerrar su cuenta, puede optar por hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de cuenta</a>'.</br>Le recomendamos que también lea nuestras páginas de ayuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.",productRestrictionEmailText:"Correo electrónico: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, use el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor seleccione un período de restricción",selectAPeriod:"Seleccione un período",Casino:"Casino",Sports:"Deportes",Virtuals:"Virtuales","6Month":"6 Meses","1Year":"1 Año","2Year":"2 Años","5Year":"5 Años",Until:"Hasta",Permanent:"Permanente",deniedProductText:"Producto restringido hasta {date}",temporaryProductRestriction:"Su período de restricción de producto durará hasta {date} 23:59.",permanentProductRestriction:"Su período de restricción de producto será permanente.",confirmationModalTitle:"Confirmación",productRestrictionSuccess:"Restricción de producto activa",confirmationModalTextPeriod:"Está eligiendo restringirse de los siguientes productos hasta {date} / por {period}. </br> {product} </br> Esta acción no se puede revertir una vez confirmada </br> Por favor confirme que desea continuar.",errorProductRestrictionCall:"Hubo un problema al realizar la solicitud de restricción de producto.",generalError:"Hubo un error al obtener la restricción de producto.",InvalidSession:"La sesión ha expirado."},tr:{titleProductRestriction:"Ürün Kısıtlaması",productRestrictionText:"<p>Ürün kısıtlaması sırasında, hesabınıza erişim tamamen kısıtlanacaktır.</br>Ürün kısıtlaması, yalnızca seçtiğiniz süre geçtikten sonra Müşteri Desteği ile iletişime geçerek kaldırılabilir, bu da inceleme ve soğuma süresine tabi olacaktır.</br>Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Zaman aşımı</a>' seçeneği aracılığıyla hizmetlerimizden 'zaman aşımı' (6 haftaya kadar bir ara) vermeyi seçebilirsiniz.</br>Hesabınızı kapatmayı tercih ederseniz, '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla bunu yapabilirsiniz.</br>İhtiyacınız olursa, daha fazla tavsiye için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Kumar</a>' yardım sayfalarımızı okumanızı öneririz.",productRestrictionEmailText:"E-posta: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için aşağıdaki formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kısıtlama süresi seçin",selectAPeriod:"Bir dönem seçin",Casino:"Kumarhane",Sports:"Sporlar",Virtuals:"Sanal","6Month":"6 Ay","1Year":"1 Yıl","2Year":"2 Yıl","5Year":"5 Yıl",Until:"Kadar",Permanent:"Kalıcı",deniedProductText:"Ürün {date} tarihine kadar kısıtlandı",temporaryProductRestriction:"Ürün kısıtlama süreniz {date} 23:59'a kadar sürecektir.",permanentProductRestriction:"Ürün kısıtlama süreniz kalıcı olacaktır.",confirmationModalTitle:"Onay",productRestrictionSuccess:"Ürün kısıtlaması aktif",confirmationModalTextPeriod:"Aşağıdaki ürünlerden {date} tarihine kadar / {period} süresince kendinizi kısıtlamayı seçiyorsunuz. </br> {product} </br> Bu işlem onaylandıktan sonra geri alınamaz </br> Lütfen devam etmek istediğinizi onaylayın.",errorProductRestrictionCall:"Ürün kısıtlama isteği yapılırken bir sorun oluştu.",generalError:"Ürün kısıtlaması alınırken bir hata oluştu.",InvalidSession:"Oturum süresi doldu."}};function bu(r){d.append_styles(r,"svelte-q8bsrd",'a{cursor:pointer;text-decoration:underline;font-weight:600}.ProductRestrictionContainer{border-radius:var(--emw--border-radius-medium, 10px);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));container-type:inline-size}.ProductRestrictionContainer .ProductRestrictionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));padding:50px;border-radius:var(--emw--border-radius-medium, 10px);max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper .PlayerProductRestrictionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription{color:var(--emw--color-gray-300, #58586b);line-height:24px;min-height:180px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription p{font-size:16px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper{width:50%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel p{margin:0;font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon.active{transform:rotateZ(0deg)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586b);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));border-radius:0px 0px var(--emw--border-radius-medium, 10px) var(--emw--border-radius-medium, 10px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transition:all 0.5s ease-in-out;font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown div:hover{color:var(--emw--color-white, #ffffff);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown.active{max-height:300px;opacity:1}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper{color:var(--emw--color-gray-300, #58586b);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper .ProductRestrictionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper .ProductRestrictionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #e6e6e6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification{color:var(--emw--color-gray-300, #58586b);line-height:24px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification .ProductRestrictionDescriptionText p{font-size:16px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification .ProductRestrictionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:5px;color:var(--emw--color-gray-300, #58586b);font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel .label{font-size:var(--emw--size-standard, 16px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel p{margin:0}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent{display:inherit;flex-direction:row;align-items:center;justify-content:center;background-color:transparent;border:none;cursor:pointer;gap:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox{width:20px;height:20px;padding:2px;margin:2px 0 2px 0;border-radius:100%;position:relative;border:1px solid var(--emw--color-gray-300, #666178)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox [type=checkbox]{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox::before{content:"";width:12.75px;height:12.75px;border-radius:100px;cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .toggleCheckbox{border:1px solid var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .toggleCheckbox::before{background-color:var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .label{color:var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons{margin-top:40px;width:50%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--color-primary, #23b04e);border-radius:var(--emw--border-radius-medium, 10px);padding:20px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #ffffff);cursor:pointer;border:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave:hover{filter:brightness(0.9)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave:disabled{opacity:0.5;cursor:default}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionError{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:var(--emw--font-weight-normal, 500)}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .MenuReturnButton{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .PlayerProductRestrictionTitle{display:block;width:30%;height:20px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionDescription{display:flex;flex-direction:column;gap:10px;width:75%}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionDescription ui-skeleton:last-child{margin-top:30px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionConfigWrapper{border:none}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionNotification{margin-bottom:30px}@container (max-width: 768px){.ProductRestrictionContainer .ProductRestrictionWrapper{padding:20px 15px;max-width:unset;border-radius:0}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton{display:inline-flex;align-items:center;color:var(--emw--color-gray-300, #58586b);border:none;background-color:transparent;column-gap:10px;margin-bottom:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton .PlayerProductRestrictionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .PlayerProductRestrictionTitle{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription .ProductRestrictionDescriptionText{color:var(--emw--color-gray-300, #58586b)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon{width:10px;height:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper{width:100%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons{width:100%;grid-template-columns:1fr 1fr}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .MenuReturnButton{display:block;width:200px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .PlayerProductRestrictionTitle{display:none}}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function os(r,e,t){const i=r.slice();return i[67]=e[t],i[69]=t,i}function ss(r,e,t){const i=r.slice();return i[70]=e[t],i}function yu(r,e,t){const i=r.slice();return i[62]=e[t],i}function xu(r,e,t){const i=r.slice();return i[62]=e[t],i}function wu(r){let e,t,i,o,s,n,a,l,c,h,u,f,p=r[25]("titleProductRestriction")+"",w,S,A,D=r[25]("titleProductRestriction")+"",$,H,N,K,R=r[25]("productRestrictionText",{values:{baseurl:r[1],lang:r[0]}})+"",xe,j,ae=r[25]("productRestrictionEmailText")+"",B,O,re,be,E=r[25](`${r[16]}`)+"",b,v,y,g,k,I,z,W,Y,q,Z,de,_e,he,X,G=r[25]("save")+"",le,ue,fe,Vt,Je,Xe,Ze,Ft,ke=d.ensure_array_like(r[9]),ee=[];for(let m=0;m<ke.length;m+=1)ee[m]=ns(ss(r,ke,m));let oe=r[20]&&as(r);function Bt(m,C){return m[19]?Au:m[15]?Pu:ku}let Qe=Bt(r),ve=Qe(r),De=d.ensure_array_like(r[11]),te=[];for(let m=0;m<De.length;m+=1)te[m]=ds(os(r,De,m));let se=r[24]&&cs(r),_=r[26]&&Eu(r);return{c(){e=d.element("div"),t=d.element("div"),i=d.element("button"),o=d.svg_element("svg"),s=d.svg_element("defs"),n=d.svg_element("style"),a=d.text(`.svgClass {
5637
5637
  fill: var(--emw--color-primary, #22b04e);
5638
5638
  }
5639
- `),l=d.svg_element("g"),c=d.svg_element("g"),h=d.svg_element("path"),u=d.space(),f=d.element("h2"),w=d.text(p),S=d.space(),A=d.element("h2"),$=d.text(D),H=d.space(),N=d.element("div"),K=d.element("p"),xe=d.space(),j=d.element("p"),B=d.space(),O=d.element("div"),re=d.element("div"),be=d.element("p"),b=d.text(E),v=d.space(),y=d.svg_element("svg"),g=d.svg_element("g"),k=d.svg_element("path"),I=d.space(),z=d.element("div");for(let _=0;_<ee.length;_+=1)ee[_].c();W=d.space(),oe&&oe.c(),Y=d.space(),q=d.element("div"),ve.c(),Z=d.space(),de=d.element("div");for(let _=0;_<te.length;_+=1)te[_].c();_e=d.space(),he=d.element("div"),X=d.element("button"),le=d.text(G),Ft=d.space(),se&&se.c(),Je=d.space(),m&&m.c(),Xe=d.empty(),d.attr(h,"class","svgClass"),d.attr(h,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),d.attr(h,"transform","translate(15 15) rotate(180)"),d.attr(c,"transform","translate(20 158)"),d.attr(l,"transform","translate(-20 -158)"),d.attr(o,"xmlns","http://www.w3.org/2000/svg"),d.attr(o,"width","15"),d.attr(o,"height","15"),d.attr(o,"viewBox","0 0 15 15"),d.attr(f,"class","PlayerProductRestrictionTitleMobile"),d.attr(i,"class","MenuReturnButton"),d.attr(A,"class","PlayerProductRestrictionTitle"),d.attr(K,"class","ProductRestrictionDescriptionText"),d.attr(j,"class","ProductRestrictionDescriptionText"),d.attr(N,"class","ProductRestrictionDescription"),d.attr(k,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),d.attr(k,"stroke-linecap","round"),d.attr(y,"xmlns","http://www.w3.org/2000/svg"),d.attr(y,"xmlns:xlink","http://www.w3.org/1999/xlink"),d.attr(y,"version","1.1"),d.attr(y,"viewBox","0 0 100 100"),d.attr(y,"xml:space","preserve"),d.attr(y,"class","ProductRestrictionConfigIcon"),d.toggle_class(y,"active",r[22]),d.attr(re,"class","ProductRestrictionConfigLabel"),d.attr(z,"class","ProductRestrictionDropDown"),d.toggle_class(z,"active",r[22]),d.attr(O,"class","ProductRestrictionConfigWrapper"),d.toggle_class(O,"active",r[22]),d.attr(q,"class","ProductRestrictionNotification"),d.attr(de,"class","ProductResitrctionTypes"),d.attr(X,"class",ue="ProductRestrictionSave "+(r[21]?"active":"")),X.disabled=fe=!r[21],d.attr(he,"class","ProductRestrictionActionButtons"),d.attr(t,"class","ProductRestrictionWrapper"),d.attr(e,"class","ProductRestrictionContainer")},m(_,C){d.insert(_,e,C),d.append(e,t),d.append(t,i),d.append(i,o),d.append(o,s),d.append(s,n),d.append(n,a),d.append(o,l),d.append(l,c),d.append(c,h),d.append(i,u),d.append(i,f),d.append(f,w),d.append(t,S),d.append(t,A),d.append(A,$),d.append(t,H),d.append(t,N),d.append(N,K),K.innerHTML=R,d.append(N,xe),d.append(N,j),j.innerHTML=ae,d.append(t,B),d.append(t,O),d.append(O,re),d.append(re,be),d.append(be,b),d.append(re,v),d.append(re,y),d.append(y,g),d.append(g,k),d.append(O,I),d.append(O,z);for(let T=0;T<ee.length;T+=1)ee[T]&&ee[T].m(z,null);d.append(t,W),oe&&oe.m(t,null),d.append(t,Y),d.append(t,q),ve.m(q,null),d.append(t,Z),d.append(t,de);for(let T=0;T<te.length;T+=1)te[T]&&te[T].m(de,null);d.append(t,_e),d.append(t,he),d.append(he,X),d.append(X,le),d.append(t,Ft),se&&se.m(t,null),d.insert(_,Je,C),m&&m.m(_,C),d.insert(_,Xe,C),Ze||(ut=[d.listen(i,"click",r[37]),d.listen(re,"click",r[38]),d.listen(X,"click",r[42])],Ze=!0)},p(_,C){if(C[0]&33554432&&p!==(p=_[25]("titleProductRestriction")+"")&&d.set_data(w,p),C[0]&33554432&&D!==(D=_[25]("titleProductRestriction")+"")&&d.set_data($,D),C[0]&33554435&&R!==(R=_[25]("productRestrictionText",{values:{baseurl:_[1],lang:_[0]}})+"")&&(K.innerHTML=R),C[0]&33554432&&ae!==(ae=_[25]("productRestrictionEmailText")+"")&&(j.innerHTML=ae),C[0]&33619968&&E!==(E=_[25](`${_[16]}`)+"")&&d.set_data(b,E),C[0]&4194304&&d.toggle_class(y,"active",_[22]),C[0]&536871424){ke=d.ensure_array_like(_[9]);let T;for(T=0;T<ke.length;T+=1){const Ae=ss(_,ke,T);ee[T]?ee[T].p(Ae,C):(ee[T]=ns(Ae),ee[T].c(),ee[T].m(z,null))}for(;T<ee.length;T+=1)ee[T].d(1);ee.length=ke.length}if(C[0]&4194304&&d.toggle_class(z,"active",_[22]),C[0]&4194304&&d.toggle_class(O,"active",_[22]),_[20]?oe?oe.p(_,C):(oe=as(_),oe.c(),oe.m(t,Y)):oe&&(oe.d(1),oe=null),Qe===(Qe=Bt(_))&&ve?ve.p(_,C):(ve.d(1),ve=Qe(_),ve&&(ve.c(),ve.m(q,null))),C[0]&167775232){De=d.ensure_array_like(_[11]);let T;for(T=0;T<De.length;T+=1){const Ae=os(_,De,T);te[T]?te[T].p(Ae,C):(te[T]=ds(Ae),te[T].c(),te[T].m(de,null))}for(;T<te.length;T+=1)te[T].d(1);te.length=De.length}C[0]&33554432&&G!==(G=_[25]("save")+"")&&d.set_data(le,G),C[0]&2097152&&ue!==(ue="ProductRestrictionSave "+(_[21]?"active":""))&&d.attr(X,"class",ue),C[0]&2097152&&fe!==(fe=!_[21])&&(X.disabled=fe),_[24]?se?se.p(_,C):(se=cs(_),se.c(),se.m(t,null)):se&&(se.d(1),se=null),_[26]&&m.p(_,C)},d(_){_&&(d.detach(e),d.detach(Je),d.detach(Xe)),d.destroy_each(ee,_),oe&&oe.d(),ve.d(),d.destroy_each(te,_),se&&se.d(),m&&m.d(_),Ze=!1,d.run_all(ut)}}}function Cu(r){let e,t,i,o,s,n,a,l,c,h,u,f,p,w,S,A,D,$=d.ensure_array_like({length:3}),H=[];for(let R=0;R<$.length;R+=1)H[R]=Iu(xu(r,$,R));let N=d.ensure_array_like({length:3}),K=[];for(let R=0;R<N.length;R+=1)K[R]=Su(yu(r,N,R));return{c(){e=d.element("div"),t=d.element("div"),i=d.element("div"),i.innerHTML='<ui-skeleton structure="title" width="auto" height="20px"></ui-skeleton>',o=d.space(),s=d.element("h2"),s.innerHTML='<ui-skeleton structure="title" width="auto" height="20px"></ui-skeleton>',n=d.space(),a=d.element("div");for(let R=0;R<H.length;R+=1)H[R].c();l=d.space(),c=d.element("ui-skeleton"),h=d.space(),u=d.element("div"),u.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton>',f=d.space(),p=d.element("div"),p.innerHTML='<ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton>',w=d.space(),S=d.element("div");for(let R=0;R<K.length;R+=1)K[R].c();A=d.space(),D=d.element("div"),D.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton>',d.attr(i,"class","MenuReturnButton"),d.attr(s,"class","PlayerProductRestrictionTitle"),d.set_custom_element_data(c,"structure","text"),d.set_custom_element_data(c,"width","auto"),d.set_custom_element_data(c,"height","10px"),d.attr(a,"class","ProductRestrictionDescription"),d.attr(u,"class","ProductRestrictionConfigWrapper"),d.attr(p,"class","ProductRestrictionNotification"),d.attr(S,"class","ProductResitrctionTypes"),d.attr(D,"class","ProductRestrictionActionButtons"),d.attr(t,"class","ProductRestrictionWrapper Skeleton"),d.attr(e,"class","ProductRestrictionContainer")},m(R,xe){d.insert(R,e,xe),d.append(e,t),d.append(t,i),d.append(t,o),d.append(t,s),d.append(t,n),d.append(t,a);for(let j=0;j<H.length;j+=1)H[j]&&H[j].m(a,null);d.append(a,l),d.append(a,c),d.append(t,h),d.append(t,u),d.append(t,f),d.append(t,p),d.append(t,w),d.append(t,S);for(let j=0;j<K.length;j+=1)K[j]&&K[j].m(S,null);d.append(t,A),d.append(t,D)},p:d.noop,d(R){R&&d.detach(e),d.destroy_each(H,R),d.destroy_each(K,R)}}}function ns(r){let e,t=r[70].text+"",i,o,s;function n(){return r[39](r[70])}return{c(){e=d.element("div"),i=d.text(t)},m(a,l){d.insert(a,e,l),d.append(e,i),o||(s=d.listen(e,"click",n),o=!0)},p(a,l){r=a,l[0]&512&&t!==(t=r[70].text+"")&&d.set_data(i,t)},d(a){a&&d.detach(e),o=!1,s()}}}function as(r){let e,t,i=r[25]("duration")+"",o,s,n,a=r[25]("dateInstructions")+"",l,c,h,u,f,p,w;return{c(){e=d.element("div"),t=d.element("label"),o=d.text(i),s=d.space(),n=d.element("span"),l=d.text(a),c=d.space(),h=d.element("strong"),u=d.text(r[3]),f=d.element("strong"),p=d.space(),w=d.element("vaadin-date-picker"),d.attr(t,"for","ProductRestrictionDate"),d.attr(n,"class","ProductRestrictionDateInstructions"),d.set_custom_element_data(w,"min",r[12]),d.set_custom_element_data(w,"max",r[13]),d.set_custom_element_data(w,"value",r[12]),d.attr(e,"class","ProductRestrictionDateWrapper")},m(S,A){d.insert(S,e,A),d.append(e,t),d.append(t,o),d.append(e,s),d.append(e,n),d.append(n,l),d.append(n,c),d.append(n,h),d.append(h,u),d.append(h,f),d.append(e,p),d.append(e,w),r[40](w)},p(S,A){A[0]&33554432&&i!==(i=S[25]("duration")+"")&&d.set_data(o,i),A[0]&33554432&&a!==(a=S[25]("dateInstructions")+"")&&d.set_data(l,a),A[0]&8&&d.set_data(u,S[3]),A[0]&4096&&d.set_custom_element_data(w,"min",S[12]),A[0]&8192&&d.set_custom_element_data(w,"max",S[13]),A[0]&4096&&d.set_custom_element_data(w,"value",S[12])},d(S){S&&d.detach(e),r[40](null)}}}function Pu(r){let e,t,i=r[25]("temporaryProductRestriction",{values:{date:r[14]}})+"",o;return{c(){e=d.element("p"),t=d.element("strong"),o=d.text(i),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,n){d.insert(s,e,n),d.append(e,t),d.append(t,o)},p(s,n){n[0]&33570816&&i!==(i=s[25]("temporaryProductRestriction",{values:{date:s[14]}})+"")&&d.set_data(o,i)},d(s){s&&d.detach(e)}}}function ku(r){let e,t,i=r[25]("noPeriodSelected")+"",o;return{c(){e=d.element("p"),t=d.element("strong"),o=d.text(i),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,n){d.insert(s,e,n),d.append(e,t),d.append(t,o)},p(s,n){n[0]&33554432&&i!==(i=s[25]("noPeriodSelected")+"")&&d.set_data(o,i)},d(s){s&&d.detach(e)}}}function Au(r){let e,t,i=r[25]("permanentProductRestriction")+"",o;return{c(){e=d.element("p"),t=d.element("strong"),o=d.text(i),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,n){d.insert(s,e,n),d.append(e,t),d.append(t,o)},p(s,n){n[0]&33554432&&i!==(i=s[25]("permanentProductRestriction")+"")&&d.set_data(o,i)},d(s){s&&d.detach(e)}}}function ls(r){let e,t=r[25]("deniedProductText",{values:{date:r[10][r[67].type]}})+"",i;return{c(){e=d.element("p"),i=d.text(t)},m(o,s){d.insert(o,e,s),d.append(e,i)},p(o,s){s[0]&33557504&&t!==(t=o[25]("deniedProductText",{values:{date:o[10][o[67].type]}})+"")&&d.set_data(i,t)},d(o){o&&d.detach(e)}}}function ds(r){let e,t,i,o,s,n=r[25](r[67].type)+"",a,l,c,h,u,f,p=r[67].restricted&&ls(r);function w(){return r[41](r[69])}return{c(){e=d.element("button"),t=d.element("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',i=d.space(),o=d.element("div"),s=d.element("p"),a=d.text(n),l=d.space(),p&&p.c(),c=d.space(),d.attr(t,"class","toggleCheckbox"),d.attr(s,"class","label"),d.attr(o,"class","ProductRestrictionLabel"),d.attr(e,"class",h="toggleContent "+(r[67].checked||r[67].restricted?"checked":""))},m(S,A){d.insert(S,e,A),d.append(e,t),d.append(e,i),d.append(e,o),d.append(o,s),d.append(s,a),d.append(o,l),p&&p.m(o,null),d.append(e,c),u||(f=d.listen(e,"click",w),u=!0)},p(S,A){r=S,A[0]&33556480&&n!==(n=r[25](r[67].type)+"")&&d.set_data(a,n),r[67].restricted?p?p.p(r,A):(p=ls(r),p.c(),p.m(o,null)):p&&(p.d(1),p=null),A[0]&2048&&h!==(h="toggleContent "+(r[67].checked||r[67].restricted?"checked":""))&&d.attr(e,"class",h)},d(S){S&&d.detach(e),p&&p.d(),u=!1,f()}}}function cs(r){let e,t,i;return{c(){e=d.element("div"),t=d.element("p"),i=d.text(r[18]),d.attr(e,"class","ProductRestrictionError")},m(o,s){d.insert(o,e,s),d.append(e,t),d.append(t,i)},p(o,s){s[0]&262144&&d.set_data(i,o[18])},d(o){o&&d.detach(e)}}}function Eu(r){let e,t,i,o;return{c(){e=d.element("player-account-modal"),t=d.element("player-account-general-confirmation-modal"),d.set_custom_element_data(t,"modaltitle",i=r[25]("confirmationModalTitle")),d.set_custom_element_data(t,"modaltext",r[17]),d.set_custom_element_data(t,"hascancelbutton",o=r[2]==="true"),d.set_custom_element_data(t,"modalconfirmevent",{type:"setProductRestriction"}),d.set_custom_element_data(t,"mbsource",r[6]),d.set_custom_element_data(t,"lang",r[0]),d.set_custom_element_data(e,"clientstyling",r[4]),d.set_custom_element_data(e,"clientstylingurl",r[5]),d.set_custom_element_data(e,"mbsource",r[6]),d.set_custom_element_data(e,"showmodaleventname","ShowProductRestrictionConfirmationModal")},m(s,n){d.insert(s,e,n),d.append(e,t)},p(s,n){n[0]&33554432&&i!==(i=s[25]("confirmationModalTitle"))&&d.set_custom_element_data(t,"modaltitle",i),n[0]&131072&&d.set_custom_element_data(t,"modaltext",s[17]),n[0]&4&&o!==(o=s[2]==="true")&&d.set_custom_element_data(t,"hascancelbutton",o),n[0]&64&&d.set_custom_element_data(t,"mbsource",s[6]),n[0]&1&&d.set_custom_element_data(t,"lang",s[0]),n[0]&16&&d.set_custom_element_data(e,"clientstyling",s[4]),n[0]&32&&d.set_custom_element_data(e,"clientstylingurl",s[5]),n[0]&64&&d.set_custom_element_data(e,"mbsource",s[6])},d(s){s&&d.detach(e)}}}function Iu(r){let e,t,i;return{c(){e=d.element("ui-skeleton"),t=d.space(),i=d.element("ui-skeleton"),d.set_custom_element_data(e,"structure","text"),d.set_custom_element_data(e,"width","auto"),d.set_custom_element_data(e,"height","10px"),d.set_custom_element_data(i,"structure","title"),d.set_custom_element_data(i,"width","auto"),d.set_custom_element_data(i,"height","10px")},m(o,s){d.insert(o,e,s),d.insert(o,t,s),d.insert(o,i,s)},p:d.noop,d(o){o&&(d.detach(e),d.detach(t),d.detach(i))}}}function Su(r){let e;return{c(){e=d.element("div"),e.innerHTML='<ui-skeleton structure="circle" size="20px"></ui-skeleton> <div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> ',d.attr(e,"class","toggleContent")},m(t,i){d.insert(t,e,i)},p:d.noop,d(t){t&&d.detach(e)}}}function Tu(r){let e;function t(s,n){return s[23]?Cu:wu}let i=t(r),o=i(r);return{c(){e=d.element("div"),o.c()},m(s,n){d.insert(s,e,n),o.m(e,null),r[43](e)},p(s,n){i===(i=t(s))&&o?o.p(s,n):(o.d(1),o=i(s),o&&(o.c(),o.m(e,null)))},i:d.noop,o:d.noop,d(s){s&&d.detach(e),o.d(),r[43](null)}}}function Du(r,e,t){let i;d.component_subscribe(r,d.$format,m=>t(25,i=m));let{endpoint:o=""}=e,{session:s=""}=e,{playerid:n=""}=e,{lang:a="en"}=e,{baseurl:l=""}=e,{hasconfirmationmodal:c="false"}=e,{hascancelbutton:h=""}=e,{dateformat:u="DD/MM/YYYY"}=e,{clientstyling:f=""}=e,{clientstylingurl:p=""}=e,{mbsource:w}=e,{translationurl:S=""}=e,A,D,$=[],H={},N=[],K=window.navigator.userAgent,R,xe,j="",ae="",B="selectAPeriod",O="",re="",be="",E=d.getDevice(K)!=="PC",b=!1,v=!1,y=!1,g=!1,k=c==="true",I=!0,z=!1;const W=()=>{fetch(S).then(_=>_.json()).then(_=>{Object.keys(_).forEach(C=>{is(C,_[C])})}).catch(_=>{console.log(_)})};Object.keys(rs).forEach(m=>{is(m,rs[m])});const Y=m=>{m.data.type==="setProductRestriction"&&ke()},q=m=>io(this,null,function*(){var _;if(m.status>=300)return t(24,z=!0),re=(_=(yield m.json()).thirdPartyResponse)==null?void 0:_.errorCode,t(18,be=i(re||"generalError")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:be}},window.location.href),Promise.reject(be);if(t(24,z=!1),m.headers.get("content-type")){let C=yield m.json();return Promise.resolve(C)}return Promise.resolve()}),Z=()=>{t(21,y=ae&&N.some(m=>m.checked)),k&&y&&Je()},de=m=>{t(11,N=Object.keys(m).map(_=>({type:_,checked:!1,restricted:!1})))},_e=m=>{t(9,$=m.map(_=>({key:(_.number||"")+_.unit,text:i((_.number||"")+_.unit)})))},he=m=>{N[m].restricted||(t(11,N[m].checked=!N[m].checked,N),Z())},X=()=>{t(22,g=!g)},G=m=>{switch(t(15,ae=m.text),t(16,B=m.key),t(22,g=!1),t(19,b=!1),t(20,v=!1),B){case"Until":t(20,v=!0),t(12,R=$e().add(6,"M").format("YYYY-MM-DD")),t(13,xe=$e().add(5,"y").format("YYYY-MM-DD")),t(14,j=R);break;case"Permanent":t(19,b=!b);break;default:const _=B.match(/\d+/g)[0],C=B.match(/[a-zA-Z]+/g)[0],T=C.includes("Day")?"days":C.includes("Month")?"months":C.includes("Year")?"years":null;if(!C)return;t(14,j=le($e().add(Number(_),T)));break}Z()},le=m=>$e(m).format(u),ue=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:E},window.location.href)},fe=m=>{t(14,j=m.target.value)},Ft=()=>{D.addEventListener("change",fe,!1);const m=C=>$e(new Date(C.year,C.month,C.day)).format(u),_=C=>{const T=$e(C,u);return{year:T.year(),month:T.month(),day:T.date()}};t(8,D.i18n=to(eo({},D.i18n),{formatDate:m,parseDate:_}),D)},Je=()=>{if(!k||!ae||!j){t(17,O="");return}let m="";N.forEach(_=>{!_.checked||_.restricted||(m=m?`${m}, ${i(_.type)}`:`${i(_.type)}`)}),t(17,O=v?i("confirmationModalTextUntil",{values:{date:j,product:m}}):i("confirmationModalTextPeriod",{values:{period:i(ae),product:m}}))},Xe=m=>{m.preventDefault(),k?window.postMessage({type:"ShowProductRestrictionConfirmationModal"},window.location.href):ke()},Ze=()=>{const m=new URL("/api/v1/gm/legislation/responsible-gambling/product-restrictions/metadata/",o);fetch(m,{method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}}).then(C=>q(C)).then(C=>{de(C.products),_e(C.periods)}).catch(C=>{console.error(C)}).finally(()=>{t(23,I=!1)})},ut=()=>{const m=new URL(`/api/v1/gm/legislation/responsible-gambling/user/${n}/deny-products/`,o);fetch(m,{method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}}).then(C=>q(C)).then(C=>{C.denyProductsRoles.forEach(T=>{let Ae=N.findIndex(Si=>T.productType===Si.type);t(11,N[Ae].restricted=!0,N),t(10,H[T.productType]=le(T.expirationDate),H)})}).catch(C=>{console.error(C)}).finally(()=>{t(23,I=!1)})},ke=()=>{t(23,I=!0);const m=new URL(`/api/v1/gm/legislation/responsible-gambling/user/${n}/deny-products/`,o);let _=B.match(/\d+/g)[0],C=B.match(/[a-zA-Z]+/g)[0],Ae=N.filter(Oe=>Oe.checked).map(Oe=>({productType:Oe.type,expirationPeriod:{unit:C,number:_}})),Si={method:"POST",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({denyProductsRoles:Ae})};fetch(m.href,Si).then(Oe=>q(Oe)).then(Oe=>{Ze(),ut(),window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("productRestrictionSuccess")}},window.location.href),t(21,y=!1)}).catch(Oe=>{console.error(i("errorProductRestrictionCall"),Oe)}).finally(()=>{t(23,I=!1)})};d.onMount(()=>(window.addEventListener("message",Y,!1),()=>{D&&D.removeEventListener("change",fe),window.removeEventListener("message",Y)}));const ee=()=>{gu(a)},oe=()=>ue(),Bt=()=>X(),Qe=m=>G(m);function ve(m){d.binding_callbacks[m?"unshift":"push"](()=>{D=m,t(8,D)})}const De=m=>he(m),te=m=>Xe(m);function se(m){d.binding_callbacks[m?"unshift":"push"](()=>{A=m,t(7,A)})}return r.$$set=m=>{"endpoint"in m&&t(32,o=m.endpoint),"session"in m&&t(33,s=m.session),"playerid"in m&&t(34,n=m.playerid),"lang"in m&&t(0,a=m.lang),"baseurl"in m&&t(1,l=m.baseurl),"hasconfirmationmodal"in m&&t(35,c=m.hasconfirmationmodal),"hascancelbutton"in m&&t(2,h=m.hascancelbutton),"dateformat"in m&&t(3,u=m.dateformat),"clientstyling"in m&&t(4,f=m.clientstyling),"clientstylingurl"in m&&t(5,p=m.clientstylingurl),"mbsource"in m&&t(6,w=m.mbsource),"translationurl"in m&&t(36,S=m.translationurl)},r.$$.update=()=>{r.$$.dirty[0]&1&&a&&ee(),r.$$.dirty[1]&6&&o&&s&&Ze(),r.$$.dirty[1]&14&&o&&s&&n&&ut(),r.$$.dirty[0]&256&&D&&Ft(),r.$$.dirty[0]&144&&f&&A&&d.setClientStyling(A,f),r.$$.dirty[0]&160&&p&&A&&d.setClientStylingURL(A,p),r.$$.dirty[0]&192&&w&&A&&d.setStreamStyling(A,`${w}.Style`),r.$$.dirty[1]&32&&S&&W()},k&&Je(),[a,l,h,u,f,p,w,A,D,$,H,N,R,xe,j,ae,B,O,be,b,v,y,g,I,z,i,k,he,X,G,ue,Xe,o,s,n,c,S,oe,Bt,Qe,ve,De,te,se]}class Xn extends d.SvelteComponent{constructor(e){super(),d.init(this,e,Du,Tu,d.safe_not_equal,{endpoint:32,session:33,playerid:34,lang:0,baseurl:1,hasconfirmationmodal:35,hascancelbutton:2,dateformat:3,clientstyling:4,clientstylingurl:5,mbsource:6,translationurl:36},bu,[-1,-1,-1])}get endpoint(){return this.$$.ctx[32]}set endpoint(e){this.$$set({endpoint:e}),d.flush()}get session(){return this.$$.ctx[33]}set session(e){this.$$set({session:e}),d.flush()}get playerid(){return this.$$.ctx[34]}set playerid(e){this.$$set({playerid:e}),d.flush()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),d.flush()}get baseurl(){return this.$$.ctx[1]}set baseurl(e){this.$$set({baseurl:e}),d.flush()}get hasconfirmationmodal(){return this.$$.ctx[35]}set hasconfirmationmodal(e){this.$$set({hasconfirmationmodal:e}),d.flush()}get hascancelbutton(){return this.$$.ctx[2]}set hascancelbutton(e){this.$$set({hascancelbutton:e}),d.flush()}get dateformat(){return this.$$.ctx[3]}set dateformat(e){this.$$set({dateformat:e}),d.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),d.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d.flush()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),d.flush()}get translationurl(){return this.$$.ctx[36]}set translationurl(e){this.$$set({translationurl:e}),d.flush()}}d.create_custom_element(Xn,{endpoint:{},session:{},playerid:{},lang:{},baseurl:{},hasconfirmationmodal:{},hascancelbutton:{},dateformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);const Ou=Object.freeze(Object.defineProperty({__proto__:null,default:Xn},Symbol.toStringTag,{value:"Module"}));exports.PlayerAccountProductRestriction_ce=Ou;exports.dayjs=$e;
5639
+ `),l=d.svg_element("g"),c=d.svg_element("g"),h=d.svg_element("path"),u=d.space(),f=d.element("h2"),w=d.text(p),S=d.space(),A=d.element("h2"),$=d.text(D),H=d.space(),N=d.element("div"),K=d.element("p"),xe=d.space(),j=d.element("p"),B=d.space(),O=d.element("div"),re=d.element("div"),be=d.element("p"),b=d.text(E),v=d.space(),y=d.svg_element("svg"),g=d.svg_element("g"),k=d.svg_element("path"),I=d.space(),z=d.element("div");for(let m=0;m<ee.length;m+=1)ee[m].c();W=d.space(),oe&&oe.c(),Y=d.space(),q=d.element("div"),ve.c(),Z=d.space(),de=d.element("div");for(let m=0;m<te.length;m+=1)te[m].c();_e=d.space(),he=d.element("div"),X=d.element("button"),le=d.text(G),Vt=d.space(),se&&se.c(),Je=d.space(),_&&_.c(),Xe=d.empty(),d.attr(h,"class","svgClass"),d.attr(h,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),d.attr(h,"transform","translate(15 15) rotate(180)"),d.attr(c,"transform","translate(20 158)"),d.attr(l,"transform","translate(-20 -158)"),d.attr(o,"xmlns","http://www.w3.org/2000/svg"),d.attr(o,"width","15"),d.attr(o,"height","15"),d.attr(o,"viewBox","0 0 15 15"),d.attr(f,"class","PlayerProductRestrictionTitleMobile"),d.attr(i,"class","MenuReturnButton"),d.attr(A,"class","PlayerProductRestrictionTitle"),d.attr(K,"class","ProductRestrictionDescriptionText"),d.attr(j,"class","ProductRestrictionDescriptionText"),d.attr(N,"class","ProductRestrictionDescription"),d.attr(k,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),d.attr(k,"stroke-linecap","round"),d.attr(y,"xmlns","http://www.w3.org/2000/svg"),d.attr(y,"xmlns:xlink","http://www.w3.org/1999/xlink"),d.attr(y,"version","1.1"),d.attr(y,"viewBox","0 0 100 100"),d.attr(y,"xml:space","preserve"),d.attr(y,"class","ProductRestrictionConfigIcon"),d.toggle_class(y,"active",r[22]),d.attr(re,"class","ProductRestrictionConfigLabel"),d.attr(z,"class","ProductRestrictionDropDown"),d.toggle_class(z,"active",r[22]),d.attr(O,"class","ProductRestrictionConfigWrapper"),d.toggle_class(O,"active",r[22]),d.attr(q,"class","ProductRestrictionNotification"),d.attr(de,"class","ProductResitrctionTypes"),d.attr(X,"class",ue="ProductRestrictionSave "+(r[21]?"active":"")),X.disabled=fe=!r[21],d.attr(he,"class","ProductRestrictionActionButtons"),d.attr(t,"class","ProductRestrictionWrapper"),d.attr(e,"class","ProductRestrictionContainer")},m(m,C){d.insert(m,e,C),d.append(e,t),d.append(t,i),d.append(i,o),d.append(o,s),d.append(s,n),d.append(n,a),d.append(o,l),d.append(l,c),d.append(c,h),d.append(i,u),d.append(i,f),d.append(f,w),d.append(t,S),d.append(t,A),d.append(A,$),d.append(t,H),d.append(t,N),d.append(N,K),K.innerHTML=R,d.append(N,xe),d.append(N,j),j.innerHTML=ae,d.append(t,B),d.append(t,O),d.append(O,re),d.append(re,be),d.append(be,b),d.append(re,v),d.append(re,y),d.append(y,g),d.append(g,k),d.append(O,I),d.append(O,z);for(let T=0;T<ee.length;T+=1)ee[T]&&ee[T].m(z,null);d.append(t,W),oe&&oe.m(t,null),d.append(t,Y),d.append(t,q),ve.m(q,null),d.append(t,Z),d.append(t,de);for(let T=0;T<te.length;T+=1)te[T]&&te[T].m(de,null);d.append(t,_e),d.append(t,he),d.append(he,X),d.append(X,le),d.append(t,Vt),se&&se.m(t,null),d.insert(m,Je,C),_&&_.m(m,C),d.insert(m,Xe,C),Ze||(Ft=[d.listen(i,"click",r[37]),d.listen(re,"click",r[38]),d.listen(X,"click",r[42])],Ze=!0)},p(m,C){if(C[0]&33554432&&p!==(p=m[25]("titleProductRestriction")+"")&&d.set_data(w,p),C[0]&33554432&&D!==(D=m[25]("titleProductRestriction")+"")&&d.set_data($,D),C[0]&33554435&&R!==(R=m[25]("productRestrictionText",{values:{baseurl:m[1],lang:m[0]}})+"")&&(K.innerHTML=R),C[0]&33554432&&ae!==(ae=m[25]("productRestrictionEmailText")+"")&&(j.innerHTML=ae),C[0]&33619968&&E!==(E=m[25](`${m[16]}`)+"")&&d.set_data(b,E),C[0]&4194304&&d.toggle_class(y,"active",m[22]),C[0]&536871424){ke=d.ensure_array_like(m[9]);let T;for(T=0;T<ke.length;T+=1){const Ae=ss(m,ke,T);ee[T]?ee[T].p(Ae,C):(ee[T]=ns(Ae),ee[T].c(),ee[T].m(z,null))}for(;T<ee.length;T+=1)ee[T].d(1);ee.length=ke.length}if(C[0]&4194304&&d.toggle_class(z,"active",m[22]),C[0]&4194304&&d.toggle_class(O,"active",m[22]),m[20]?oe?oe.p(m,C):(oe=as(m),oe.c(),oe.m(t,Y)):oe&&(oe.d(1),oe=null),Qe===(Qe=Bt(m))&&ve?ve.p(m,C):(ve.d(1),ve=Qe(m),ve&&(ve.c(),ve.m(q,null))),C[0]&167775232){De=d.ensure_array_like(m[11]);let T;for(T=0;T<De.length;T+=1){const Ae=os(m,De,T);te[T]?te[T].p(Ae,C):(te[T]=ds(Ae),te[T].c(),te[T].m(de,null))}for(;T<te.length;T+=1)te[T].d(1);te.length=De.length}C[0]&33554432&&G!==(G=m[25]("save")+"")&&d.set_data(le,G),C[0]&2097152&&ue!==(ue="ProductRestrictionSave "+(m[21]?"active":""))&&d.attr(X,"class",ue),C[0]&2097152&&fe!==(fe=!m[21])&&(X.disabled=fe),m[24]?se?se.p(m,C):(se=cs(m),se.c(),se.m(t,null)):se&&(se.d(1),se=null),m[26]&&_.p(m,C)},d(m){m&&(d.detach(e),d.detach(Je),d.detach(Xe)),d.destroy_each(ee,m),oe&&oe.d(),ve.d(),d.destroy_each(te,m),se&&se.d(),_&&_.d(m),Ze=!1,d.run_all(Ft)}}}function Cu(r){let e,t,i,o,s,n,a,l,c,h,u,f,p,w,S,A,D,$=d.ensure_array_like({length:3}),H=[];for(let R=0;R<$.length;R+=1)H[R]=Iu(xu(r,$,R));let N=d.ensure_array_like({length:3}),K=[];for(let R=0;R<N.length;R+=1)K[R]=Su(yu(r,N,R));return{c(){e=d.element("div"),t=d.element("div"),i=d.element("div"),i.innerHTML='<ui-skeleton structure="title" width="auto" height="20px"></ui-skeleton>',o=d.space(),s=d.element("h2"),s.innerHTML='<ui-skeleton structure="title" width="auto" height="20px"></ui-skeleton>',n=d.space(),a=d.element("div");for(let R=0;R<H.length;R+=1)H[R].c();l=d.space(),c=d.element("ui-skeleton"),h=d.space(),u=d.element("div"),u.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton>',f=d.space(),p=d.element("div"),p.innerHTML='<ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton>',w=d.space(),S=d.element("div");for(let R=0;R<K.length;R+=1)K[R].c();A=d.space(),D=d.element("div"),D.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton>',d.attr(i,"class","MenuReturnButton"),d.attr(s,"class","PlayerProductRestrictionTitle"),d.set_custom_element_data(c,"structure","text"),d.set_custom_element_data(c,"width","auto"),d.set_custom_element_data(c,"height","10px"),d.attr(a,"class","ProductRestrictionDescription"),d.attr(u,"class","ProductRestrictionConfigWrapper"),d.attr(p,"class","ProductRestrictionNotification"),d.attr(S,"class","ProductResitrctionTypes"),d.attr(D,"class","ProductRestrictionActionButtons"),d.attr(t,"class","ProductRestrictionWrapper Skeleton"),d.attr(e,"class","ProductRestrictionContainer")},m(R,xe){d.insert(R,e,xe),d.append(e,t),d.append(t,i),d.append(t,o),d.append(t,s),d.append(t,n),d.append(t,a);for(let j=0;j<H.length;j+=1)H[j]&&H[j].m(a,null);d.append(a,l),d.append(a,c),d.append(t,h),d.append(t,u),d.append(t,f),d.append(t,p),d.append(t,w),d.append(t,S);for(let j=0;j<K.length;j+=1)K[j]&&K[j].m(S,null);d.append(t,A),d.append(t,D)},p:d.noop,d(R){R&&d.detach(e),d.destroy_each(H,R),d.destroy_each(K,R)}}}function ns(r){let e,t=r[70].text+"",i,o,s;function n(){return r[39](r[70])}return{c(){e=d.element("div"),i=d.text(t)},m(a,l){d.insert(a,e,l),d.append(e,i),o||(s=d.listen(e,"click",n),o=!0)},p(a,l){r=a,l[0]&512&&t!==(t=r[70].text+"")&&d.set_data(i,t)},d(a){a&&d.detach(e),o=!1,s()}}}function as(r){let e,t,i=r[25]("duration")+"",o,s,n,a=r[25]("dateInstructions")+"",l,c,h,u,f,p,w;return{c(){e=d.element("div"),t=d.element("label"),o=d.text(i),s=d.space(),n=d.element("span"),l=d.text(a),c=d.space(),h=d.element("strong"),u=d.text(r[3]),f=d.element("strong"),p=d.space(),w=d.element("vaadin-date-picker"),d.attr(t,"for","ProductRestrictionDate"),d.attr(n,"class","ProductRestrictionDateInstructions"),d.set_custom_element_data(w,"min",r[12]),d.set_custom_element_data(w,"max",r[13]),d.set_custom_element_data(w,"value",r[12]),d.attr(e,"class","ProductRestrictionDateWrapper")},m(S,A){d.insert(S,e,A),d.append(e,t),d.append(t,o),d.append(e,s),d.append(e,n),d.append(n,l),d.append(n,c),d.append(n,h),d.append(h,u),d.append(h,f),d.append(e,p),d.append(e,w),r[40](w)},p(S,A){A[0]&33554432&&i!==(i=S[25]("duration")+"")&&d.set_data(o,i),A[0]&33554432&&a!==(a=S[25]("dateInstructions")+"")&&d.set_data(l,a),A[0]&8&&d.set_data(u,S[3]),A[0]&4096&&d.set_custom_element_data(w,"min",S[12]),A[0]&8192&&d.set_custom_element_data(w,"max",S[13]),A[0]&4096&&d.set_custom_element_data(w,"value",S[12])},d(S){S&&d.detach(e),r[40](null)}}}function Pu(r){let e,t,i=r[25]("temporaryProductRestriction",{values:{date:r[14]}})+"",o;return{c(){e=d.element("p"),t=d.element("strong"),o=d.text(i),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,n){d.insert(s,e,n),d.append(e,t),d.append(t,o)},p(s,n){n[0]&33570816&&i!==(i=s[25]("temporaryProductRestriction",{values:{date:s[14]}})+"")&&d.set_data(o,i)},d(s){s&&d.detach(e)}}}function ku(r){let e,t,i=r[25]("noPeriodSelected")+"",o;return{c(){e=d.element("p"),t=d.element("strong"),o=d.text(i),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,n){d.insert(s,e,n),d.append(e,t),d.append(t,o)},p(s,n){n[0]&33554432&&i!==(i=s[25]("noPeriodSelected")+"")&&d.set_data(o,i)},d(s){s&&d.detach(e)}}}function Au(r){let e,t,i=r[25]("permanentProductRestriction")+"",o;return{c(){e=d.element("p"),t=d.element("strong"),o=d.text(i),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,n){d.insert(s,e,n),d.append(e,t),d.append(t,o)},p(s,n){n[0]&33554432&&i!==(i=s[25]("permanentProductRestriction")+"")&&d.set_data(o,i)},d(s){s&&d.detach(e)}}}function ls(r){let e,t=r[25]("deniedProductText",{values:{date:r[10][r[67].type]}})+"",i;return{c(){e=d.element("p"),i=d.text(t)},m(o,s){d.insert(o,e,s),d.append(e,i)},p(o,s){s[0]&33557504&&t!==(t=o[25]("deniedProductText",{values:{date:o[10][o[67].type]}})+"")&&d.set_data(i,t)},d(o){o&&d.detach(e)}}}function ds(r){let e,t,i,o,s,n=r[25](r[67].type)+"",a,l,c,h,u,f,p=r[67].restricted&&ls(r);function w(){return r[41](r[69])}return{c(){e=d.element("button"),t=d.element("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',i=d.space(),o=d.element("div"),s=d.element("p"),a=d.text(n),l=d.space(),p&&p.c(),c=d.space(),d.attr(t,"class","toggleCheckbox"),d.attr(s,"class","label"),d.attr(o,"class","ProductRestrictionLabel"),d.attr(e,"class",h="toggleContent "+(r[67].checked||r[67].restricted?"checked":""))},m(S,A){d.insert(S,e,A),d.append(e,t),d.append(e,i),d.append(e,o),d.append(o,s),d.append(s,a),d.append(o,l),p&&p.m(o,null),d.append(e,c),u||(f=d.listen(e,"click",w),u=!0)},p(S,A){r=S,A[0]&33556480&&n!==(n=r[25](r[67].type)+"")&&d.set_data(a,n),r[67].restricted?p?p.p(r,A):(p=ls(r),p.c(),p.m(o,null)):p&&(p.d(1),p=null),A[0]&2048&&h!==(h="toggleContent "+(r[67].checked||r[67].restricted?"checked":""))&&d.attr(e,"class",h)},d(S){S&&d.detach(e),p&&p.d(),u=!1,f()}}}function cs(r){let e,t,i;return{c(){e=d.element("div"),t=d.element("p"),i=d.text(r[18]),d.attr(e,"class","ProductRestrictionError")},m(o,s){d.insert(o,e,s),d.append(e,t),d.append(t,i)},p(o,s){s[0]&262144&&d.set_data(i,o[18])},d(o){o&&d.detach(e)}}}function Eu(r){let e,t,i,o;return{c(){e=d.element("player-account-modal"),t=d.element("player-account-general-confirmation-modal"),d.set_custom_element_data(t,"modaltitle",i=r[25]("confirmationModalTitle")),d.set_custom_element_data(t,"modaltext",r[17]),d.set_custom_element_data(t,"hascancelbutton",o=r[2]==="true"),d.set_custom_element_data(t,"modalconfirmevent",{type:"setProductRestriction"}),d.set_custom_element_data(t,"mbsource",r[6]),d.set_custom_element_data(t,"lang",r[0]),d.set_custom_element_data(e,"clientstyling",r[4]),d.set_custom_element_data(e,"clientstylingurl",r[5]),d.set_custom_element_data(e,"mbsource",r[6]),d.set_custom_element_data(e,"showmodaleventname","ShowProductRestrictionConfirmationModal")},m(s,n){d.insert(s,e,n),d.append(e,t)},p(s,n){n[0]&33554432&&i!==(i=s[25]("confirmationModalTitle"))&&d.set_custom_element_data(t,"modaltitle",i),n[0]&131072&&d.set_custom_element_data(t,"modaltext",s[17]),n[0]&4&&o!==(o=s[2]==="true")&&d.set_custom_element_data(t,"hascancelbutton",o),n[0]&64&&d.set_custom_element_data(t,"mbsource",s[6]),n[0]&1&&d.set_custom_element_data(t,"lang",s[0]),n[0]&16&&d.set_custom_element_data(e,"clientstyling",s[4]),n[0]&32&&d.set_custom_element_data(e,"clientstylingurl",s[5]),n[0]&64&&d.set_custom_element_data(e,"mbsource",s[6])},d(s){s&&d.detach(e)}}}function Iu(r){let e,t,i;return{c(){e=d.element("ui-skeleton"),t=d.space(),i=d.element("ui-skeleton"),d.set_custom_element_data(e,"structure","text"),d.set_custom_element_data(e,"width","auto"),d.set_custom_element_data(e,"height","10px"),d.set_custom_element_data(i,"structure","title"),d.set_custom_element_data(i,"width","auto"),d.set_custom_element_data(i,"height","10px")},m(o,s){d.insert(o,e,s),d.insert(o,t,s),d.insert(o,i,s)},p:d.noop,d(o){o&&(d.detach(e),d.detach(t),d.detach(i))}}}function Su(r){let e;return{c(){e=d.element("div"),e.innerHTML='<ui-skeleton structure="circle" size="20px"></ui-skeleton> <div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> ',d.attr(e,"class","toggleContent")},m(t,i){d.insert(t,e,i)},p:d.noop,d(t){t&&d.detach(e)}}}function Tu(r){let e;function t(s,n){return s[23]?Cu:wu}let i=t(r),o=i(r);return{c(){e=d.element("div"),o.c()},m(s,n){d.insert(s,e,n),o.m(e,null),r[43](e)},p(s,n){i===(i=t(s))&&o?o.p(s,n):(o.d(1),o=i(s),o&&(o.c(),o.m(e,null)))},i:d.noop,o:d.noop,d(s){s&&d.detach(e),o.d(),r[43](null)}}}function Du(r,e,t){let i;d.component_subscribe(r,d.$format,_=>t(25,i=_));let{endpoint:o=""}=e,{session:s=""}=e,{playerid:n=""}=e,{lang:a="en"}=e,{baseurl:l=""}=e,{hasconfirmationmodal:c="false"}=e,{hascancelbutton:h=""}=e,{dateformat:u="DD/MM/YYYY"}=e,{clientstyling:f=""}=e,{clientstylingurl:p=""}=e,{mbsource:w}=e,{translationurl:S=""}=e,A,D,$=[],H={},N=[],K=window.navigator.userAgent,R,xe,j="",ae="",B="selectAPeriod",O="",re="",be="",E=d.getDevice(K)!=="PC",b=!1,v=!1,y=!1,g=!1,k=c==="true",I=!0,z=!1;const W=()=>{fetch(S).then(m=>m.json()).then(m=>{Object.keys(m).forEach(C=>{is(C,m[C])})}).catch(m=>{console.log(m)})};Object.keys(rs).forEach(_=>{is(_,rs[_])});const Y=_=>{_.data.type==="setProductRestriction"&&ke()},q=_=>io(this,null,function*(){var m;if(_.status>=300)return t(24,z=!0),re=(m=(yield _.json()).thirdPartyResponse)==null?void 0:m.errorCode,t(18,be=i(re||"generalError")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:be}},window.location.href),Promise.reject(be);if(t(24,z=!1),_.headers.get("content-type")){let C=yield _.json();return Promise.resolve(C)}return Promise.resolve()}),Z=()=>{t(21,y=ae&&N.some(_=>_.checked)),k&&y&&Je()},de=_=>{t(11,N=Object.keys(_).map(m=>({type:m,checked:!1,restricted:!1})))},_e=_=>{t(9,$=_.map(m=>({key:(m.number||"")+m.unit,text:i((m.number||"")+m.unit)})))},he=_=>{N[_].restricted||(t(11,N[_].checked=!N[_].checked,N),Z())},X=()=>{t(22,g=!g)},G=_=>{switch(t(15,ae=_.text),t(16,B=_.key),t(22,g=!1),t(19,b=!1),t(20,v=!1),B){case"Until":t(20,v=!0),t(12,R=$e().add(6,"M").format("YYYY-MM-DD")),t(13,xe=$e().add(5,"y").format("YYYY-MM-DD")),t(14,j=R);break;case"Permanent":t(19,b=!b);break;default:const m=B.match(/\d+/g)[0],C=B.match(/[a-zA-Z]+/g)[0],T=C.includes("Day")?"days":C.includes("Month")?"months":C.includes("Year")?"years":null;if(!C)return;t(14,j=le($e().add(Number(m),T)));break}Z()},le=_=>$e(_).format(u),ue=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:E},window.location.href)},fe=_=>{t(14,j=_.target.value)},Vt=()=>{D.addEventListener("change",fe,!1);const _=C=>$e(new Date(C.year,C.month,C.day)).format(u),m=C=>{const T=$e(C,u);return{year:T.year(),month:T.month(),day:T.date()}};t(8,D.i18n=to(eo({},D.i18n),{formatDate:_,parseDate:m}),D)},Je=()=>{if(!k||!ae||!j){t(17,O="");return}let _="";N.forEach(m=>{!m.checked||m.restricted||(_=_?`${_}, ${i(m.type)}`:`${i(m.type)}`)}),t(17,O=i("confirmationModalTextPeriod",{values:{period:i(ae),product:_,date:j}}))},Xe=_=>{_.preventDefault(),k?window.postMessage({type:"ShowProductRestrictionConfirmationModal"},window.location.href):ke()},Ze=()=>{const _=new URL("/api/v1/gm/legislation/responsible-gambling/product-restrictions/metadata/",o);fetch(_,{method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}}).then(C=>q(C)).then(C=>{de(C.products),_e(C.periods),Ft()}).catch(C=>{console.error(C)}).finally(()=>{t(23,I=!1)})},Ft=()=>{const _=new URL(`/api/v1/gm/legislation/responsible-gambling/user/${n}/deny-products/`,o);fetch(_,{method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}}).then(C=>q(C)).then(C=>{C.denyProductsRoles.forEach(T=>{let Ae=N.findIndex(Si=>T.productType===Si.type);t(11,N[Ae].restricted=!0,N),t(10,H[T.productType]=le(T.expirationDate),H)})}).catch(C=>{console.error(C)}).finally(()=>{t(23,I=!1)})},ke=()=>{t(23,I=!0);const _=new URL(`/api/v1/gm/legislation/responsible-gambling/user/${n}/deny-products/`,o);let m=B.match(/\d+/g)[0],C=B.match(/[a-zA-Z]+/g)[0],Ae=N.filter(Oe=>Oe.checked).map(Oe=>({productType:Oe.type,expirationPeriod:{unit:C,number:m}})),Si={method:"POST",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({denyProductsRoles:Ae})};fetch(_.href,Si).then(Oe=>q(Oe)).then(Oe=>{Ze(),window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("productRestrictionSuccess")}},window.location.href),t(21,y=!1)}).catch(Oe=>{console.error(i("errorProductRestrictionCall"),Oe)}).finally(()=>{t(23,I=!1)})};d.onMount(()=>(window.addEventListener("message",Y,!1),()=>{D&&D.removeEventListener("change",fe),window.removeEventListener("message",Y)}));const ee=()=>{gu(a)},oe=()=>ue(),Bt=()=>X(),Qe=_=>G(_);function ve(_){d.binding_callbacks[_?"unshift":"push"](()=>{D=_,t(8,D)})}const De=_=>he(_),te=_=>Xe(_);function se(_){d.binding_callbacks[_?"unshift":"push"](()=>{A=_,t(7,A)})}return r.$$set=_=>{"endpoint"in _&&t(32,o=_.endpoint),"session"in _&&t(33,s=_.session),"playerid"in _&&t(34,n=_.playerid),"lang"in _&&t(0,a=_.lang),"baseurl"in _&&t(1,l=_.baseurl),"hasconfirmationmodal"in _&&t(35,c=_.hasconfirmationmodal),"hascancelbutton"in _&&t(2,h=_.hascancelbutton),"dateformat"in _&&t(3,u=_.dateformat),"clientstyling"in _&&t(4,f=_.clientstyling),"clientstylingurl"in _&&t(5,p=_.clientstylingurl),"mbsource"in _&&t(6,w=_.mbsource),"translationurl"in _&&t(36,S=_.translationurl)},r.$$.update=()=>{r.$$.dirty[0]&1&&a&&ee(),r.$$.dirty[1]&14&&o&&s&&n&&Ze(),r.$$.dirty[0]&256&&D&&Vt(),r.$$.dirty[0]&144&&f&&A&&d.setClientStyling(A,f),r.$$.dirty[0]&160&&p&&A&&d.setClientStylingURL(A,p),r.$$.dirty[0]&192&&w&&A&&d.setStreamStyling(A,`${w}.Style`),r.$$.dirty[1]&32&&S&&W()},k&&Je(),[a,l,h,u,f,p,w,A,D,$,H,N,R,xe,j,ae,B,O,be,b,v,y,g,I,z,i,k,he,X,G,ue,Xe,o,s,n,c,S,oe,Bt,Qe,ve,De,te,se]}class Xn extends d.SvelteComponent{constructor(e){super(),d.init(this,e,Du,Tu,d.safe_not_equal,{endpoint:32,session:33,playerid:34,lang:0,baseurl:1,hasconfirmationmodal:35,hascancelbutton:2,dateformat:3,clientstyling:4,clientstylingurl:5,mbsource:6,translationurl:36},bu,[-1,-1,-1])}get endpoint(){return this.$$.ctx[32]}set endpoint(e){this.$$set({endpoint:e}),d.flush()}get session(){return this.$$.ctx[33]}set session(e){this.$$set({session:e}),d.flush()}get playerid(){return this.$$.ctx[34]}set playerid(e){this.$$set({playerid:e}),d.flush()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),d.flush()}get baseurl(){return this.$$.ctx[1]}set baseurl(e){this.$$set({baseurl:e}),d.flush()}get hasconfirmationmodal(){return this.$$.ctx[35]}set hasconfirmationmodal(e){this.$$set({hasconfirmationmodal:e}),d.flush()}get hascancelbutton(){return this.$$.ctx[2]}set hascancelbutton(e){this.$$set({hascancelbutton:e}),d.flush()}get dateformat(){return this.$$.ctx[3]}set dateformat(e){this.$$set({dateformat:e}),d.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),d.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d.flush()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),d.flush()}get translationurl(){return this.$$.ctx[36]}set translationurl(e){this.$$set({translationurl:e}),d.flush()}}d.create_custom_element(Xn,{endpoint:{},session:{},playerid:{},lang:{},baseurl:{},hasconfirmationmodal:{},hascancelbutton:{},dateformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);const Ou=Object.freeze(Object.defineProperty({__proto__:null,default:Xn},Symbol.toStringTag,{value:"Module"}));exports.PlayerAccountProductRestriction_ce=Ou;exports.dayjs=$e;