Files
rikku-home-assistant/ansible/app-configs/homeassistant/www/community/atomic-calendar-revive/atomic-calendar-revive.js
T
Trez.One ef1ccd530e
Home Assistant & Miscellaneous Deployment / Home Assistant Configuration Check (push) Has been cancelled
Home Assistant & Miscellaneous Deployment / Generate list of added/modified/deleted services (push) Has been cancelled
Home Assistant & Miscellaneous Deployment / Docker Compose Dry Run (push) Has been cancelled
Home Assistant & Miscellaneous Deployment / Check and Create PR (push) Has been cancelled
Home Assistant & Miscellaneous Deployment / PR Merge (push) Has been cancelled
Home Assistant & Miscellaneous Deployment / Docker Compose Deployment (push) Has been cancelled
Ansible dirs.
2025-08-26 09:30:25 -04:00

1880 lines
509 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).AtomicCalendarRevive={})}(this,(function(e){"use strict";var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},t(e,i)};function i(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}var n=function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};function a(e,t,i,n){var a,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(r=(o<3?a(r):o>3?a(t,i,r):a(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}function o(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}"function"==typeof SuppressedError&&SuppressedError;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s,d={exports:{}};function l(){return s||(s=1,function(e,t){e.exports=function(){var e=1e3,t=6e4,i=36e5,n="millisecond",a="second",o="minute",r="hour",s="day",d="week",l="month",c="quarter",m="year",h="date",u="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|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,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 t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}},v=function(e,t,i){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(i)+e},_={s:v,z:function(e){var t=-e.utcOffset(),i=Math.abs(t),n=Math.floor(i/60),a=i%60;return(t<=0?"+":"-")+v(n,2,"0")+":"+v(a,2,"0")},m:function e(t,i){if(t.date()<i.date())return-e(i,t);var n=12*(i.year()-t.year())+(i.month()-t.month()),a=t.clone().add(n,l),o=i-a<0,r=t.clone().add(n+(o?-1:1),l);return+(-(n+(i-a)/(o?a-r:r-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:m,w:d,d:s,D:h,h:r,m:o,s:a,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",b={};b[y]=g;var x="$isDayjsObject",w=function(e){return e instanceof T||!(!e||!e[x])},k=function e(t,i,n){var a;if(!t)return y;if("string"==typeof t){var o=t.toLowerCase();b[o]&&(a=o),i&&(b[o]=i,a=o);var r=t.split("-");if(!a&&r.length>1)return e(r[0])}else{var s=t.name;b[s]=t,a=s}return!n&&a&&(y=a),a||!n&&y},M=function(e,t){if(w(e))return e.clone();var i="object"==typeof t?t:{};return i.date=e,i.args=arguments,new T(i)},E=_;E.l=k,E.i=w,E.w=function(e,t){return M(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function g(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,i=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(p);if(n){var a=n[2]-1||0,o=(n[7]||"0").substring(0,3);return i?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return!(this.$d.toString()===u)},v.isSame=function(e,t){var i=M(e);return this.startOf(t)<=i&&i<=this.endOf(t)},v.isAfter=function(e,t){return M(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<M(e)},v.$g=function(e,t,i){return E.u(e)?this[t]:this.set(i,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var i=this,n=!!E.u(t)||t,c=E.p(e),u=function(e,t){var a=E.w(i.$u?Date.UTC(i.$y,t,e):new Date(i.$y,t,e),i);return n?a:a.endOf(s)},p=function(e,t){return E.w(i.toDate()[e].apply(i.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),i)},f=this.$W,g=this.$M,v=this.$D,_="set"+(this.$u?"UTC":"");switch(c){case m:return n?u(1,0):u(31,11);case l:return n?u(1,g):u(0,g+1);case d:var y=this.$locale().weekStart||0,b=(f<y?f+7:f)-y;return u(n?v-b:v+(6-b),g);case s:case h:return p(_+"Hours",0);case r:return p(_+"Minutes",1);case o:return p(_+"Seconds",2);case a:return p(_+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var i,d=E.p(e),c="set"+(this.$u?"UTC":""),u=(i={},i[s]=c+"Date",i[h]=c+"Date",i[l]=c+"Month",i[m]=c+"FullYear",i[r]=c+"Hours",i[o]=c+"Minutes",i[a]=c+"Seconds",i[n]=c+"Milliseconds",i)[d],p=d===s?this.$D+(t-this.$W):t;if(d===l||d===m){var f=this.clone().set(h,1);f.$d[u](p),f.init(),this.$d=f.set(h,Math.min(this.$D,f.daysInMonth())).$d}else u&&this.$d[u](p);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[E.p(e)]()},v.add=function(n,c){var h,u=this;n=Number(n);var p=E.p(c),f=function(e){var t=M(u);return E.w(t.date(t.date()+Math.round(e*n)),u)};if(p===l)return this.set(l,this.$M+n);if(p===m)return this.set(m,this.$y+n);if(p===s)return f(1);if(p===d)return f(7);var g=(h={},h[o]=t,h[r]=i,h[a]=e,h)[p]||1,v=this.$d.getTime()+n*g;return E.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,i=this.$locale();if(!this.isValid())return i.invalidDate||u;var n=e||"YYYY-MM-DDTHH:mm:ssZ",a=E.z(this),o=this.$H,r=this.$m,s=this.$M,d=i.weekdays,l=i.months,c=i.meridiem,m=function(e,i,a,o){return e&&(e[i]||e(t,n))||a[i].slice(0,o)},h=function(e){return E.s(o%12||12,e,"0")},p=c||function(e,t,i){var n=e<12?"AM":"PM";return i?n.toLowerCase():n};return n.replace(f,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return s+1;case"MM":return E.s(s+1,2,"0");case"MMM":return m(i.monthsShort,s,l,3);case"MMMM":return m(l,s);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return m(i.weekdaysMin,t.$W,d,2);case"ddd":return m(i.weekdaysShort,t.$W,d,3);case"dddd":return d[t.$W];case"H":return String(o);case"HH":return E.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return p(o,r,!0);case"A":return p(o,r,!1);case"m":return String(r);case"mm":return E.s(r,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,h,u){var p,f=this,g=E.p(h),v=M(n),_=(v.utcOffset()-this.utcOffset())*t,y=this-v,b=function(){return E.m(f,v)};switch(g){case m:p=b()/12;break;case l:p=b();break;case c:p=b()/3;break;case d:p=(y-_)/6048e5;break;case s:p=(y-_)/864e5;break;case r:p=y/i;break;case o:p=y/t;break;case a:p=y/e;break;default:p=y}return u?p:E.a(p)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return b[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var i=this.clone(),n=k(e,t,!0);return n&&(i.$L=n),i},v.clone=function(){return E.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),D=T.prototype;return M.prototype=D,[["$ms",n],["$s",a],["$m",o],["$H",r],["$W",s],["$M",l],["$y",m],["$D",h]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),M.extend=function(e,t){return e.$i||(e(t,T,M),e.$i=!0),M},M.locale=k,M.isDayjs=w,M.unix=function(e){return M(1e3*e)},M.en=b[y],M.Ls=b,M.p={},M}()}(d)),d.exports}var c=r(l()),m={exports:{}};!function(e,t){e.exports=function(){var e,t,i=1e3,n=6e4,a=36e5,o=864e5,r=/\[([^\]]+)]|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,s=31536e6,d=2628e6,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,c={years:s,months:d,days:o,hours:a,minutes:n,seconds:i,milliseconds:1,weeks:6048e5},m=function(e){return e instanceof _},h=function(e,t,i){return new _(e,i,t.$l)},u=function(e){return t.p(e)+"s"},p=function(e){return e<0},f=function(e){return p(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},v=function(e,t){return e?p(e)?{negative:!0,format:""+g(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},_=function(){function p(e,t,i){var n=this;if(this.$d={},this.$l=i,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return h(e*c[u(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){n.$d[u(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var a=e.match(l);if(a){var o=a.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var g=p.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,i){return t+(e.$d[i]||0)*c[i]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=f(e/s),e%=s,this.$d.months=f(e/d),e%=d,this.$d.days=f(e/o),e%=o,this.$d.hours=f(e/a),e%=a,this.$d.minutes=f(e/n),e%=n,this.$d.seconds=f(e/i),e%=i,this.$d.milliseconds=e},g.toISOString=function(){var e=v(this.$d.years,"Y"),t=v(this.$d.months,"M"),i=+this.$d.days||0;this.$d.weeks&&(i+=7*this.$d.weeks);var n=v(i,"D"),a=v(this.$d.hours,"H"),o=v(this.$d.minutes,"M"),r=this.$d.seconds||0;this.$d.milliseconds&&(r+=this.$d.milliseconds/1e3,r=Math.round(1e3*r)/1e3);var s=v(r,"S"),d=e.negative||t.negative||n.negative||a.negative||o.negative||s.negative,l=a.format||o.format||s.format?"T":"",c=(d?"-":"")+"P"+e.format+t.format+n.format+l+a.format+o.format+s.format;return"P"===c||"-P"===c?"P0D":c},g.toJSON=function(){return this.toISOString()},g.format=function(e){var i=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return i.replace(r,(function(e,t){return t||String(n[e])}))},g.as=function(e){return this.$ms/c[u(e)]},g.get=function(e){var t=this.$ms,i=u(e);return"milliseconds"===i?t%=1e3:t="weeks"===i?f(t/c[i]):this.$d[i],t||0},g.add=function(e,t,i){var n;return n=t?e*c[u(t)]:m(e)?e.$ms:h(e,this).$ms,h(this.$ms+n*(i?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return h(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},p}(),y=function(e,t,i){return e.add(t.years()*i,"y").add(t.months()*i,"M").add(t.days()*i,"d").add(t.hours()*i,"h").add(t.minutes()*i,"m").add(t.seconds()*i,"s").add(t.milliseconds()*i,"ms")};return function(i,n,a){e=a,t=a().$utils(),a.duration=function(e,t){var i=a.locale();return h(e,{$l:i},t)},a.isDuration=m;var o=n.prototype.add,r=n.prototype.subtract;n.prototype.add=function(e,t){return m(e)?y(this,e,1):o.bind(this)(e,t)},n.prototype.subtract=function(e,t){return m(e)?y(this,e,-1):r.bind(this)(e,t)}}}()}(m);var h=r(m.exports),u={exports:{}};!function(e,t){e.exports=function(){var e="day";return function(t,i,n){var a=function(t){return t.add(4-t.isoWeekday(),e)},o=i.prototype;o.isoWeekYear=function(){return a(this).year()},o.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var i,o,r,s=a(this),d=(i=this.isoWeekYear(),r=4-(o=(this.$u?n.utc:n)().year(i).startOf("year")).isoWeekday(),o.isoWeekday()>4&&(r+=7),o.add(r,e));return s.diff(d,"week")+1},o.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var r=o.startOf;o.startOf=function(e,t){var i=this.$utils(),n=!!i.u(t)||t;return"isoweek"===i.p(e)?n?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):r.bind(this)(e,t)}}}()}(u);var p=r(u.exports),f={exports:{}};!function(e,t){e.exports=function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}(f);var g=r(f.exports),v={exports:{}};!function(e,t){e.exports=function(e,t,i){var n=t.prototype,a=function(e){return e&&(e.indexOf?e:e.s)},o=function(e,t,i,n,o){var r=e.name?e:e.$locale(),s=a(r[t]),d=a(r[i]),l=s||d.map((function(e){return e.slice(0,n)}));if(!o)return l;var c=r.weekStart;return l.map((function(e,t){return l[(t+(c||0))%7]}))},r=function(){return i.Ls[i.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,i){return t||i.slice(1)}))}(e.formats[t.toUpperCase()])},d=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):o(e,"months")},monthsShort:function(t){return t?t.format("MMM"):o(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):o(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):o(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):o(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};n.localeData=function(){return d.bind(this)()},i.localeData=function(){var e=r();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},i.months=function(){return o(r(),"months")},i.monthsShort=function(){return o(r(),"monthsShort","months",3)},i.weekdays=function(e){return o(r(),"weekdays",null,null,e)},i.weekdaysShort=function(e){return o(r(),"weekdaysShort","weekdays",3,e)},i.weekdaysMin=function(e){return o(r(),"weekdaysMin","weekdays",2,e)}}}(v);var _=r(v.exports),y={exports:{}};!function(e,t){e.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,i,n){var a=i.prototype,o=a.format;n.en.formats=e,a.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var i=this.$locale().formats,n=function(t,i){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,a){var o=a&&a.toUpperCase();return n||i[a]||e[a]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,i){return t||i.slice(1)}))}))}(t,void 0===i?{}:i);return o.call(this,n)}}}()}(y);var b=r(y.exports),x={exports:{}};!function(e,t){e.exports=function(e,t,i){e=e||{};var n=t.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,i,a){return n.fromToBase(e,t,i,a)}i.en.relativeTime=a,n.fromToBase=function(t,n,o,r,s){for(var d,l,c,m=o.$locale().relativeTime||a,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],u=h.length,p=0;p<u;p+=1){var f=h[p];f.d&&(d=r?i(t).diff(o,f.d,!0):o.diff(t,f.d,!0));var g=(e.rounding||Math.round)(Math.abs(d));if(c=d>0,g<=f.r||!f.r){g<=1&&p>0&&(f=h[p-1]);var v=m[f.l];s&&(g=s(""+g)),l="string"==typeof v?v.replace("%d",g):v(g,n,f.l,c);break}}if(n)return l;var _=c?m.future:m.past;return"function"==typeof _?_(l):_.replace("%s",l)},n.to=function(e,t){return o(e,t,this,!0)},n.from=function(e,t){return o(e,t,this)};var r=function(e){return e.$u?i.utc():i()};n.toNow=function(e){return this.to(r(this),e)},n.fromNow=function(e){return this.from(r(this),e)}}}(x);var w=r(x.exports),k={exports:{}};!function(e,t){e.exports=function(){var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(i,n,a){var o,r=function(e,i,n){void 0===n&&(n={});var a=new Date(e),o=function(e,i){void 0===i&&(i={});var n=i.timeZoneName||"short",a=e+"|"+n,o=t[a];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),t[a]=o),o}(i,n);return o.formatToParts(a)},s=function(t,i){for(var n=r(t,i),o=[],s=0;s<n.length;s+=1){var d=n[s],l=d.type,c=d.value,m=e[l];m>=0&&(o[m]=parseInt(c,10))}var h=o[3],u=24===h?0:h,p=o[0]+"-"+o[1]+"-"+o[2]+" "+u+":"+o[4]+":"+o[5]+":000",f=+t;return(a.utc(p).valueOf()-(f-=f%1e3))/6e4},d=n.prototype;d.tz=function(e,t){void 0===e&&(e=o);var i=this.utcOffset(),n=this.toDate(),r=n.toLocaleString("en-US",{timeZone:e}),s=Math.round((n-new Date(r))/1e3/60),d=a(r,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(n.getTimezoneOffset()/15)-s,!0);if(t){var l=d.utcOffset();d=d.add(i-l,"minute")}return d.$x.$timezone=e,d},d.offsetName=function(e){var t=this.$x.$timezone||a.tz.guess(),i=r(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return i&&i.value};var l=d.startOf;d.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return l.call(this,e,t);var i=a(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(i,e,t).tz(this.$x.$timezone,!0)},a.tz=function(e,t,i){var n=i&&t,r=i||t||o,d=s(+a(),r);if("string"!=typeof e)return a(e).tz(r);var l=function(e,t,i){var n=e-60*t*1e3,a=s(n,i);if(t===a)return[n,t];var o=s(n-=60*(a-t)*1e3,i);return a===o?[n,a]:[e-60*Math.min(a,o)*1e3,Math.max(a,o)]}(a.utc(e,n).valueOf(),d,r),c=l[0],m=l[1],h=a(c).utcOffset(m);return h.$x.$timezone=r,h},a.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},a.tz.setDefault=function(e){o=e}}}()}(k);var M=r(k.exports),E={exports:{}};!function(e,t){e.exports=function(e,t,i){i.updateLocale=function(e,t){var n=i.Ls[e];if(n)return(t?Object.keys(t):[]).forEach((function(e){n[e]=t[e]})),n}}}(E);var T=r(E.exports),D={exports:{}};!function(e,t){e.exports=function(){var e="week",t="year";return function(i,n,a){var o=n.prototype;o.week=function(i){if(void 0===i&&(i=null),null!==i)return this.add(7*(i-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=a(this).startOf(t).add(1,t).date(n),r=a(this).endOf(e);if(o.isBefore(r))return 1}var s=a(this).startOf(t).date(n).startOf(e).subtract(1,"millisecond"),d=this.diff(s,e,!0);return d<0?a(this).startOf("week").week():Math.ceil(d)},o.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()}(D);var L=r(D.exports);
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const S=globalThis,A=S.ShadowRoot&&(void 0===S.ShadyCSS||S.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,C=Symbol(),I=new WeakMap;let O=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==C)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(A&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=I.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&I.set(t,e))}return e}toString(){return this.cssText}};const Y=A?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new O("string"==typeof e?e:e+"",void 0,C))(t)})(e):e;var $,F,H;
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const{is:z,defineProperty:R,getOwnPropertyDescriptor:N,getOwnPropertyNames:j,getOwnPropertySymbols:P,getPrototypeOf:B}=Object,V=globalThis,U=V.trustedTypes,W=U?U.emptyScript:"",q=V.reactiveElementPolyfillSupport,G=(e,t)=>e,K={toAttribute(e,t){switch(t){case Boolean:e=e?W:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},J=(e,t)=>!z(e,t),X={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:J};null!==($=Symbol.metadata)&&void 0!==$||(Symbol.metadata=Symbol("metadata")),null!==(F=V.litPropertyMetadata)&&void 0!==F||(V.litPropertyMetadata=new WeakMap);let Z=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),(null!==(t=this.l)&&void 0!==t?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X;if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),n=this.getPropertyDescriptor(e,i,t);void 0!==n&&R(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){var n;const{get:a,set:o}=null!==(n=N(this.prototype,e))&&void 0!==n?n:{get(){return this[t]},set(e){this[t]=e}};return{get(){return null==a?void 0:a.call(this)},set(t){const n=null==a?void 0:a.call(this);o.call(this,t),this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return null!==(t=this.elementProperties.get(e))&&void 0!==t?t:X}static _$Ei(){if(this.hasOwnProperty(G("elementProperties")))return;const e=B(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(G("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(G("properties"))){const e=this.properties,t=[...j(e),...P(e)];for(const i of t)this.createProperty(i,e[i])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const i=this._$Eu(e,t);void 0!==i&&this._$Eh.set(i,e)}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 e of i)t.unshift(Y(e))}else void 0!==e&&t.push(Y(e));return t}static _$Eu(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?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._$Eg=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),null===(e=this.constructor.l)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$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=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(A)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const i of t){const t=document.createElement("style"),n=S.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=i.cssText,e.appendChild(t)}})(t,this.constructor.elementStyles),t}connectedCallback(){var e,t;null!==(e=this.renderRoot)&&void 0!==e||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t){const i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(void 0!==n&&!0===i.reflect){var a;const o=(void 0!==(null===(a=i.converter)||void 0===a?void 0:a.toAttribute)?i.converter:K).toAttribute(t,i.type);this._$Em=e,null==o?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(e,t){const i=this.constructor,n=i._$Eh.get(e);if(void 0!==n&&this._$Em!==n){var a;const e=i.getPropertyOptions(n),o="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(a=e.converter)||void 0===a?void 0:a.fromAttribute)?e.converter:K;this._$Em=n,this[n]=o.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4?arguments[4]:void 0;if(void 0!==e){var o,r;if(null!==(o=i)&&void 0!==o||(i=this.constructor.getPropertyOptions(e)),!(null!==(r=i.hasChanged)&&void 0!==r?r:J)(n?a:this[e],t))return;this.C(e,t,i)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(e,t,i){var n;this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$Em!==e&&(null!==(n=this._$Ej)&&void 0!==n?n:this._$Ej=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,i]of e)!0!==i.wrapped||this._$AL.has(t)||void 0===this[t]||this.C(t,this[t],i)}let e=!1;const t=this._$AL;try{var i;e=this.shouldUpdate(t),e?(this.willUpdate(t),null!==(i=this._$ES)&&void 0!==i&&i.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(t)):this._$ET()}catch(t){throw e=!1,this._$ET(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;null!==(t=this._$ES)&&void 0!==t&&t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach((e=>this._$EO(e,this[e])))),this._$ET()}updated(e){}firstUpdated(e){}};var Q;
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/Z.elementStyles=[],Z.shadowRootOptions={mode:"open"},Z[G("elementProperties")]=new Map,Z[G("finalized")]=new Map,null!=q&&q({ReactiveElement:Z}),(null!==(H=V.reactiveElementVersions)&&void 0!==H?H:V.reactiveElementVersions=[]).push("2.0.1");const ee=globalThis,te=ee.trustedTypes,ie=te?te.createPolicy("lit-html",{createHTML:e=>e}):void 0,ne="$lit$",ae="lit$".concat(Math.random().toFixed(9).slice(2),"$"),oe="?"+ae,re="<".concat(oe,">"),se=document,de=()=>se.createComment(""),le=e=>null===e||"object"!=typeof e&&"function"!=typeof e,ce=Array.isArray,me="[ \t\n\f\r]",he=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ue=/-->/g,pe=/>/g,fe=RegExp(">|".concat(me,"(?:([^\\s\"'>=/]+)(").concat(me,"*=").concat(me,"*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),ge=/'/g,ve=/"/g,_e=/^(?:script|style|textarea|title)$/i,ye=(e=>function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),a=1;a<i;a++)n[a-1]=arguments[a];return{_$litType$:e,strings:t,values:n}})(1),be=Symbol.for("lit-noChange"),xe=Symbol.for("lit-nothing"),we=new WeakMap,ke=se.createTreeWalker(se,129);function Me(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==ie?ie.createHTML(t):t}const Ee=(e,t)=>{const i=e.length-1,n=[];let a,o=2===t?"<svg>":"",r=he;for(let t=0;t<i;t++){const i=e[t];let d,l,c=-1,m=0;for(;m<i.length&&(r.lastIndex=m,l=r.exec(i),null!==l);){var s;m=r.lastIndex,r===he?"!--"===l[1]?r=ue:void 0!==l[1]?r=pe:void 0!==l[2]?(_e.test(l[2])&&(a=RegExp("</"+l[2],"g")),r=fe):void 0!==l[3]&&(r=fe):r===fe?">"===l[0]?(r=null!==(s=a)&&void 0!==s?s:he,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,d=l[1],r=void 0===l[3]?fe:'"'===l[3]?ve:ge):r===ve||r===ge?r=fe:r===ue||r===pe?r=he:(r=fe,a=void 0)}const h=r===fe&&e[t+1].startsWith("/>")?" ":"";o+=r===he?i+re:c>=0?(n.push(d),i.slice(0,c)+ne+i.slice(c)+ae+h):i+ae+(-2===c?t:h)}return[Me(e,o+(e[i]||"<?>")+(2===t?"</svg>":"")),n]};class Te{constructor(e,t){let i,{strings:n,_$litType$:a}=e;this.parts=[];let o=0,r=0;const s=n.length-1,d=this.parts,[l,c]=Ee(n,a);if(this.el=Te.createElement(l,t),ke.currentNode=this.el.content,2===a){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=ke.nextNode())&&d.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(ne)){const t=c[r++],n=i.getAttribute(e).split(ae),a=/([.?@])?(.*)/.exec(t);d.push({type:1,index:o,name:a[2],strings:n,ctor:"."===a[1]?Ce:"?"===a[1]?Ie:"@"===a[1]?Oe:Ae}),i.removeAttribute(e)}else e.startsWith(ae)&&(d.push({type:6,index:o}),i.removeAttribute(e));if(_e.test(i.tagName)){const e=i.textContent.split(ae),t=e.length-1;if(t>0){i.textContent=te?te.emptyScript:"";for(let n=0;n<t;n++)i.append(e[n],de()),ke.nextNode(),d.push({type:2,index:++o});i.append(e[t],de())}}}else if(8===i.nodeType)if(i.data===oe)d.push({type:2,index:o});else{let e=-1;for(;-1!==(e=i.data.indexOf(ae,e+1));)d.push({type:7,index:o}),e+=ae.length-1}o++}}static createElement(e,t){const i=se.createElement("template");return i.innerHTML=e,i}}function De(e,t){var i,n,a,o,r;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,d=arguments.length>3?arguments[3]:void 0;if(t===be)return t;let l=void 0!==d?null===(i=s._$Co)||void 0===i?void 0:i[d]:s._$Cl;const c=le(t)?void 0:t._$litDirective$;return(null===(n=l)||void 0===n?void 0:n.constructor)!==c&&(null!==(a=l)&&void 0!==a&&null!==(o=a._$AO)&&void 0!==o&&o.call(a,!1),void 0===c?l=void 0:(l=new c(e),l._$AT(e,s,d)),void 0!==d?(null!==(r=s._$Co)&&void 0!==r?r:s._$Co=[])[d]=l:s._$Cl=l),void 0!==l&&(t=De(e,l._$AS(e,t.values),l,d)),t}let Le=class{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:n}=this._$AD,a=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:se).importNode(i,!0);ke.currentNode=a;let o=ke.nextNode(),r=0,s=0,d=n[0];for(;void 0!==d;){var l;if(r===d.index){let t;2===d.type?t=new Se(o,o.nextSibling,this,e):1===d.type?t=new d.ctor(o,d.name,d.strings,this,e):6===d.type&&(t=new Ye(o,this,e)),this._$AV.push(t),d=n[++s]}r!==(null===(l=d)||void 0===l?void 0:l.index)&&(o=ke.nextNode(),r++)}return ke.currentNode=se,a}p(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}};class Se{get _$AU(){var e,t;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cv}constructor(e,t,i,n){var a;this.type=2,this._$AH=xe,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cv=null===(a=null==n?void 0:n.isConnected)||void 0===a||a}get parentNode(){var e;let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null===(e=t)||void 0===e?void 0:e.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e){e=De(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),le(e)?e===xe||null==e||""===e?(this._$AH!==xe&&this._$AR(),this._$AH=xe):e!==this._$AH&&e!==be&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>ce(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==xe&&le(this._$AH)?this._$AA.nextSibling.data=e:this.T(se.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:n}=e,a="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=Te.createElement(Me(n.h,n.h[0]),this.options)),n);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===a)this._$AH.p(i);else{const e=new Le(a,this),t=e.u(this.options);e.p(i),this.T(t),this._$AH=e}}_$AC(e){let t=we.get(e.strings);return void 0===t&&we.set(e.strings,t=new Te(e)),t}k(e){ce(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const a of e)n===t.length?t.push(i=new Se(this.S(de()),this.S(de()),this,this.options)):i=t[n],i._$AI(a),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,t=arguments.length>1?arguments[1]:void 0;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){var i;const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cv=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Ae{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,n,a){this.type=1,this._$AH=xe,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=xe}_$AI(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;const a=this.strings;let o=!1;if(void 0===a)e=De(this,e,t,0),o=!le(e)||e!==this._$AH&&e!==be,o&&(this._$AH=e);else{const n=e;let s,d;for(e=a[0],s=0;s<a.length-1;s++){var r;d=De(this,n[i+s],t,s),d===be&&(d=this._$AH[s]),o||(o=!le(d)||d!==this._$AH[s]),d===xe?e=xe:e!==xe&&(e+=(null!==(r=d)&&void 0!==r?r:"")+a[s+1]),this._$AH[s]=d}}o&&!n&&this.j(e)}j(e){e===xe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class Ce extends Ae{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===xe?void 0:e}}class Ie extends Ae{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==xe)}}class Oe extends Ae{constructor(e,t,i,n,a){super(e,t,i,n,a),this.type=5}_$AI(e){var t;if((e=null!==(t=De(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==t?t:xe)===be)return;const i=this._$AH,n=e===xe&&i!==xe||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==xe&&(i===xe||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(t=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==t?t:this.element,e):this._$AH.handleEvent(e)}}class Ye{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){De(this,e)}}const $e=ee.litHtmlPolyfillSupport;null!=$e&&$e(Te,Se),(null!==(Q=ee.litHtmlVersions)&&void 0!==Q?Q:ee.litHtmlVersions=[]).push("3.1.4");const Fe=globalThis,He=Fe.ShadowRoot&&(void 0===Fe.ShadyCSS||Fe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ze=Symbol(),Re=new WeakMap;
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/let Ne=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==ze)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(He&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=Re.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Re.set(t,e))}return e}toString(){return this.cssText}};const je=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];const a=1===e.length?e[0]:i.reduce(((t,i,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[n+1]),e[0]);return new Ne(a,e,ze)},Pe=He?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new Ne("string"==typeof e?e:e+"",void 0,ze))(t)})(e):e;var Be,Ve,Ue;
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const{is:We,defineProperty:qe,getOwnPropertyDescriptor:Ge,getOwnPropertyNames:Ke,getOwnPropertySymbols:Je,getPrototypeOf:Xe}=Object,Ze=globalThis,Qe=Ze.trustedTypes,et=Qe?Qe.emptyScript:"",tt=Ze.reactiveElementPolyfillSupport,it=(e,t)=>e,nt={toAttribute(e,t){switch(t){case Boolean:e=e?et:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},at=(e,t)=>!We(e,t),ot={attribute:!0,type:String,converter:nt,reflect:!1,hasChanged:at};null!==(Be=Symbol.metadata)&&void 0!==Be||(Symbol.metadata=Symbol("metadata")),null!==(Ve=Ze.litPropertyMetadata)&&void 0!==Ve||(Ze.litPropertyMetadata=new WeakMap);class rt extends HTMLElement{static addInitializer(e){var t;this._$Ei(),(null!==(t=this.l)&&void 0!==t?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ot;if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),n=this.getPropertyDescriptor(e,i,t);void 0!==n&&qe(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){var n;const{get:a,set:o}=null!==(n=Ge(this.prototype,e))&&void 0!==n?n:{get(){return this[t]},set(e){this[t]=e}};return{get(){return null==a?void 0:a.call(this)},set(t){const n=null==a?void 0:a.call(this);o.call(this,t),this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return null!==(t=this.elementProperties.get(e))&&void 0!==t?t:ot}static _$Ei(){if(this.hasOwnProperty(it("elementProperties")))return;const e=Xe(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(it("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(it("properties"))){const e=this.properties,t=[...Ke(e),...Je(e)];for(const i of t)this.createProperty(i,e[i])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const i=this._$Eu(e,t);void 0!==i&&this._$Eh.set(i,e)}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 e of i)t.unshift(Pe(e))}else void 0!==e&&t.push(Pe(e));return t}static _$Eu(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?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._$Eg=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),null===(e=this.constructor.l)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$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=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(He)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const i of t){const t=document.createElement("style"),n=Fe.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=i.cssText,e.appendChild(t)}})(t,this.constructor.elementStyles),t}connectedCallback(){var e,t;null!==(e=this.renderRoot)&&void 0!==e||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t){const i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(void 0!==n&&!0===i.reflect){var a;const o=(void 0!==(null===(a=i.converter)||void 0===a?void 0:a.toAttribute)?i.converter:nt).toAttribute(t,i.type);this._$Em=e,null==o?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(e,t){const i=this.constructor,n=i._$Eh.get(e);if(void 0!==n&&this._$Em!==n){var a;const e=i.getPropertyOptions(n),o="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(a=e.converter)||void 0===a?void 0:a.fromAttribute)?e.converter:nt;this._$Em=n,this[n]=o.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4?arguments[4]:void 0;if(void 0!==e){var o,r;if(null!==(o=i)&&void 0!==o||(i=this.constructor.getPropertyOptions(e)),!(null!==(r=i.hasChanged)&&void 0!==r?r:at)(n?a:this[e],t))return;this.C(e,t,i)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(e,t,i){var n;this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$Em!==e&&(null!==(n=this._$Ej)&&void 0!==n?n:this._$Ej=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,i]of e)!0!==i.wrapped||this._$AL.has(t)||void 0===this[t]||this.C(t,this[t],i)}let e=!1;const t=this._$AL;try{var i;e=this.shouldUpdate(t),e?(this.willUpdate(t),null!==(i=this._$ES)&&void 0!==i&&i.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(t)):this._$ET()}catch(t){throw e=!1,this._$ET(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;null!==(t=this._$ES)&&void 0!==t&&t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach((e=>this._$EO(e,this[e])))),this._$ET()}updated(e){}firstUpdated(e){}}var st,dt;
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/rt.elementStyles=[],rt.shadowRootOptions={mode:"open"},rt[it("elementProperties")]=new Map,rt[it("finalized")]=new Map,null!=tt&&tt({ReactiveElement:rt}),(null!==(Ue=Ze.reactiveElementVersions)&&void 0!==Ue?Ue:Ze.reactiveElementVersions=[]).push("2.0.1");class lt extends rt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var n;const a=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:t;let o=a._$litPart$;if(void 0===o){var r;const e=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;a._$litPart$=o=new Se(t.insertBefore(de(),e),e,void 0,null!=i?i:{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return be}}lt._$litElement$=!0,lt.finalized=!0,null===(st=globalThis.litElementHydrateSupport)||void 0===st||st.call(globalThis,{LitElement:lt});const ct=globalThis.litElementPolyfillSupport;null==ct||ct({LitElement:lt}),(null!==(dt=globalThis.litElementVersions)&&void 0!==dt?dt:globalThis.litElementVersions=[]).push("4.0.6");
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const mt=e=>(t,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/,ht={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:J},ut=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ht,t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;const{kind:n,metadata:a}=i;let o=globalThis.litPropertyMetadata.get(a);if(void 0===o&&globalThis.litPropertyMetadata.set(a,o=new Map),o.set(i.name,e),"accessor"===n){const{name:n}=i;return{set(i){const a=t.get.call(this);t.set.call(this,i),this.requestUpdate(n,a,e)},init(t){return void 0!==t&&this.C(n,void 0,e),t}}}if("setter"===n){const{name:n}=i;return function(i){const a=this[n];t.call(this,i),this.requestUpdate(n,a,e)}}throw Error("Unsupported decorator location: "+n)};function pt(e){return(t,i)=>"object"==typeof i?ut(e,t,i):((e,t,i)=>{const n=t.hasOwnProperty(i);return t.constructor.createProperty(i,n?{...e,wrapped:!0}:e),n?Object.getOwnPropertyDescriptor(t,i):void 0})(e,t,i)}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/function ft(e){return pt({...e,state:!0,attribute:!1})}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/function gt(e){return(t,i)=>{const n="function"==typeof t?t:t[i];Object.assign(n,e)}}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const vt=(e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,i),i)
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/;function _t(e,t){return(t,i,n)=>vt(t,i,{get(){return(t=>{var i,n;return null!==(i=null===(n=t.renderRoot)||void 0===n?void 0:n.querySelector(e))&&void 0!==i?i:null})(this)}})}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/function yt(e){return(t,i)=>vt(t,i,{async get(){var t,i;return await this.updateComplete,null!==(t=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(e))&&void 0!==t?t:null}})}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/function bt(e){return(t,i)=>{const{slot:n}=e,a="slot"+(n?"[name=".concat(n,"]"):":not([name])");return vt(t,i,{get(){var t,i;const n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(a);return null!==(i=null==n?void 0:n.assignedNodes(e))&&void 0!==i?i:[]}})}}!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"ca",weekdays:"Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte".split("_"),weekdaysShort:"Dg._Dl._Dt._Dc._Dj._Dv._Ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),months:"Gener_Febrer_Març_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre".split("_"),monthsShort:"Gen._Febr._Març_Abr._Maig_Juny_Jul._Ag._Set._Oct._Nov._Des.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",ll:"D MMM YYYY",lll:"D MMM YYYY, H:mm",llll:"ddd D MMM YYYY, H:mm"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinal:function(e){return e+(1===e||3===e?"r":2===e?"n":4===e?"t":"è")}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e);function n(e){return e>1&&e<5&&1!=~~(e/10)}function a(e,t,i,a){var o=e+" ";switch(i){case"s":return t||a?"pár sekund":"pár sekundami";case"m":return t?"minuta":a?"minutu":"minutou";case"mm":return t||a?o+(n(e)?"minuty":"minut"):o+"minutami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?o+(n(e)?"hodiny":"hodin"):o+"hodinami";case"d":return t||a?"den":"dnem";case"dd":return t||a?o+(n(e)?"dny":"dní"):o+"dny";case"M":return t||a?"měsíc":"měsícem";case"MM":return t||a?o+(n(e)?"měsíce":"měsíců"):o+"měsíci";case"y":return t||a?"rok":"rokem";case"yy":return t||a?o+(n(e)?"roky":"let"):o+"lety"}}var o={name:"cs",weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),months:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),monthsShort:"led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"před %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a}};return i.default.locale(o,null,!0),o}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"da",weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn._man._tirs._ons._tors._fre._lør.".split("_"),weekdaysMin:"sø._ma._ti._on._to._fr._lø.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function a(e,t,i){var a=n[i];return Array.isArray(a)&&(a=a[t?0:1]),a.replace("%d",e)}var o={name:"de-at",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a}};return i.default.locale(o,null,!0),o}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function a(e,t,i){var a=n[i];return Array.isArray(a)&&(a=a[t?0:1]),a.replace("%d",e)}var o={name:"de-ch",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a}};return i.default.locale(o,null,!0),o}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function a(e,t,i){var a=n[i];return Array.isArray(a)&&(a=a[t?0:1]),a.replace("%d",e)}var o={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a}};return i.default.locale(o,null,!0),o}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"en-au",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"en-ca",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"en-gb",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"en-ie",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"en-il",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"en-in",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"en-nz",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"en-sg",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"en-tt",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports={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 t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}}}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"es-do",weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekStart:1,relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(e){return e+"º"},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"es-pr",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(e){return e+"º"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"es-us",weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(e){return e+"º"},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(e){return e+"º"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e);function n(e,t,i,n){var a={s:"muutama sekunti",m:"minuutti",mm:"%d minuuttia",h:"tunti",hh:"%d tuntia",d:"päivä",dd:"%d päivää",M:"kuukausi",MM:"%d kuukautta",y:"vuosi",yy:"%d vuotta",numbers:"nolla_yksi_kaksi_kolme_neljä_viisi_kuusi_seitsemän_kahdeksan_yhdeksän".split("_")},o={s:"muutaman sekunnin",m:"minuutin",mm:"%d minuutin",h:"tunnin",hh:"%d tunnin",d:"päivän",dd:"%d päivän",M:"kuukauden",MM:"%d kuukauden",y:"vuoden",yy:"%d vuoden",numbers:"nollan_yhden_kahden_kolmen_neljän_viiden_kuuden_seitsemän_kahdeksan_yhdeksän".split("_")},r=n&&!t?o:a,s=r[i];return e<10?s.replace("%d",r.numbers[e]):s.replace("%d",e)}var a={name:"fi",weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,relativeTime:{future:"%s päästä",past:"%s sitten",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM[ta] YYYY",LLL:"D. MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, D. MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [klo] HH.mm",llll:"ddd, D. MMM YYYY, [klo] HH.mm"}};return i.default.locale(a,null,!0),a}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"fr-ca",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"fr-ch",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),weekStart:1,weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){return e+(1===e?"er":"")}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:"%d שעות",hh2:"שעתיים",d:"יום",dd:"%d ימים",dd2:"יומיים",M:"חודש",MM:"%d חודשים",MM2:"חודשיים",y:"שנה",yy:"%d שנים",yy2:"שנתיים"};function a(e,t,i){return(n[i+(2===e?"2":"")]||n[i]).replace("%d",e)}var o={name:"he",weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א׳_ב׳_ג׳_ד׳_ה׳_ו_ש׳".split("_"),months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו_פבר_מרץ_אפר_מאי_יונ_יול_אוג_ספט_אוק_נוב_דצמ".split("_"),relativeTime:{future:"בעוד %s",past:"לפני %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},ordinal:function(e){return e},format:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"}};return i.default.locale(o,null,!0),o}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(e,t,i,n){return"néhány másodperc"+(n||t?"":"e")},m:function(e,t,i,n){return"egy perc"+(n||t?"":"e")},mm:function(e,t,i,n){return e+" perc"+(n||t?"":"e")},h:function(e,t,i,n){return"egy "+(n||t?"óra":"órája")},hh:function(e,t,i,n){return e+" "+(n||t?"óra":"órája")},d:function(e,t,i,n){return"egy "+(n||t?"nap":"napja")},dd:function(e,t,i,n){return e+" "+(n||t?"nap":"napja")},M:function(e,t,i,n){return"egy "+(n||t?"hónap":"hónapja")},MM:function(e,t,i,n){return e+" "+(n||t?"hónap":"hónapja")},y:function(e,t,i,n){return"egy "+(n||t?"év":"éve")},yy:function(e,t,i,n){return e+" "+(n||t?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"it-ch",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(e){return e+"º"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e){return e+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(e){return e<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"nb",weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"ne",weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मे_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),relativeTime:{future:"%s पछि",past:"%s अघि",s:"सेकेन्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"घन्टा",hh:"%d घन्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक वर्ष",yy:"%d वर्ष"},ordinal:function(e){return(""+e).replace(/\d/g,(function(e){return"०१२३४५६७८९"[e]}))},formats:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"nl-be",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),weekStart:1,weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(e){return"["+e+(1===e||8===e||e>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e);function n(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function a(e,t,i){var a=e+" ";switch(i){case"m":return t?"minuta":"minutę";case"mm":return a+(n(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return a+(n(e)?"godziny":"godzin");case"MM":return a+(n(e)?"miesiące":"miesięcy");case"yy":return a+(n(e)?"lata":"lat")}}var o="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),r="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),s=/D MMMM/,d=function(e,t){return s.test(t)?o[e.month()]:r[e.month()]};d.s=r,d.f=o;var l={name:"pl",weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),months:d,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:a,mm:a,h:a,hh:a,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:a,y:"rok",yy:a},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return i.default.locale(l,null,!0),l}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"pt-br",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"º"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"pt",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"º"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),a="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),o="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),r="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),s=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function d(e,t,i){var n,a;return"m"===i?t?"минута":"минуту":e+" "+(n=+e,a={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[i].split("_"),n%10==1&&n%100!=11?a[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?a[1]:a[2])}var l=function(e,t){return s.test(t)?n[e.month()]:a[e.month()]};l.s=a,l.f=n;var c=function(e,t){return s.test(t)?o[e.month()]:r[e.month()]};c.s=r,c.f=o;var m={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:l,monthsShort:c,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:d,mm:d,h:"час",hh:d,d:"день",dd:d,M:"месяц",MM:d,y:"год",yy:d},ordinal:function(e){return e},meridiem:function(e){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"}};return i.default.locale(m,null,!0),m}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e);function n(e){return e%100==2}function a(e){return e%100==3||e%100==4}function o(e,t,i,o){var r=e+" ";switch(i){case"s":return t||o?"nekaj sekund":"nekaj sekundami";case"m":return t?"ena minuta":"eno minuto";case"mm":return n(e)?r+(t||o?"minuti":"minutama"):a(e)?r+(t||o?"minute":"minutami"):r+(t||o?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return n(e)?r+(t||o?"uri":"urama"):a(e)?r+(t||o?"ure":"urami"):r+(t||o?"ur":"urami");case"d":return t||o?"en dan":"enim dnem";case"dd":return n(e)?r+(t||o?"dneva":"dnevoma"):r+(t||o?"dni":"dnevi");case"M":return t||o?"en mesec":"enim mesecem";case"MM":return n(e)?r+(t||o?"meseca":"mesecema"):a(e)?r+(t||o?"mesece":"meseci"):r+(t||o?"mesecev":"meseci");case"y":return t||o?"eno leto":"enim letom";case"yy":return n(e)?r+(t||o?"leti":"letoma"):a(e)?r+(t||o?"leta":"leti"):r+(t||o?"let":"leti")}}var r={name:"sl",weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),weekStart:1,weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"čez %s",past:"pred %s",s:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o}};return i.default.locale(r,null,!0),r}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n={name:"sv",weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){var t=e%10;return"["+e+(1===t||2===t?"a":"e")+"]"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"}};return i.default.locale(n,null,!0),n}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e);function n(e){return e>1&&e<5&&1!=~~(e/10)}function a(e,t,i,a){var o=e+" ";switch(i){case"s":return t||a?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":a?"minútu":"minútou";case"mm":return t||a?o+(n(e)?"minúty":"minút"):o+"minútami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?o+(n(e)?"hodiny":"hodín"):o+"hodinami";case"d":return t||a?"deň":"dňom";case"dd":return t||a?o+(n(e)?"dni":"dní"):o+"dňami";case"M":return t||a?"mesiac":"mesiacom";case"MM":return t||a?o+(n(e)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return t||a?"rok":"rokom";case"yy":return t||a?o+(n(e)?"roky":"rokov"):o+"rokmi"}}var o={name:"sk",weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),months:"január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),monthsShort:"jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"pred %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a}};return i.default.locale(o,null,!0),o}(l())}({exports:{}});!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),n="січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),a="січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),o=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function r(e,t,i){var n,a;return"m"===i?t?"хвилина":"хвилину":"h"===i?t?"година":"годину":e+" "+(n=+e,a={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[i].split("_"),n%10==1&&n%100!=11?a[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?a[1]:a[2])}var s=function(e,t){return o.test(t)?n[e.month()]:a[e.month()]};s.s=a,s.f=n;var d={name:"uk",weekdays:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),weekdaysShort:"ндл_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:s,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekStart:1,relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:r,mm:r,h:r,hh:r,d:"день",dd:r,M:"місяць",MM:r,y:"рік",yy:r},ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"}};return i.default.locale(d,null,!0),d}(l())}({exports:{}});
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const xt=globalThis,wt=xt.ShadowRoot&&(void 0===xt.ShadyCSS||xt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
function kt(e){return class extends e{createRenderRoot(){const e=this.constructor,{registry:t,elementDefinitions:i,shadowRootOptions:n}=e;i&&!t&&(e.registry=new CustomElementRegistry,Object.entries(i).forEach((([t,i])=>e.registry.define(t,i))));const a=this.renderOptions.creationScope=this.attachShadow({...n,customElements:e.registry});return((e,t)=>{if(wt)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const i of t){const t=document.createElement("style"),n=xt.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=i.cssText,e.appendChild(t)}})(a,this.constructor.elementStyles),a}}}const Mt=(e,t,i,n)=>{n=n||{},i=null==i?{}:i;const a=new Event(t,{bubbles:void 0===n.bubbles||n.bubbles,cancelable:Boolean(n.cancelable),composed:void 0===n.composed||n.composed});return a.detail=i,e.dispatchEvent(a),a};var Et={cardHeight:"100%",maxDaysToShow:7,maxEventCount:0,showLoader:!0,showLocation:!0,showMonth:!1,fullTextTime:!0,showCurrentEventLine:!1,showDate:!1,dateFormat:"LL",startDaysAhead:0,showLastCalendarWeek:!1,sortBy:"start",allDayBottom:!1,disableEventLink:!1,disableLocationLink:!1,disableCalLocationLink:!1,disableCalMonthLink:!1,linkTarget:"_blank",showDeclined:!0,showPrivate:!0,showHiddenText:!0,showCalendarName:!1,nameColor:"var(--primary-text-color)",descColor:"var(--primary-text-color)",descSize:80,showNoEventsForToday:!1,showNoEventDays:!1,showHours:!0,showRelativeTime:!0,eventTitleColor:"var(--primary-text-color)",locationIconColor:"rgb(--primary-text-color)",locationTextSize:90,hideFinishedEvents:!1,dimFinishedEvents:!0,finishedEventOpacity:.6,finishedEventFilter:"grayscale(80%)",eventBarColor:"var(--primary-color)",eventCalNameColor:"var(--primary-text-color)",eventCalNameSize:90,showProgressBar:!0,showFullDayProgress:!1,progressBarColor:"var(--primary-color)",progressBarBackgroundColor:"#555",enableModeChange:!1,defaultMode:"Event",calGridColor:"rgba(86, 86, 86, .35)",calDayColor:"var(--primary-text-color)",calWeekDayColor:"var(--primary-text-color)",calDateColor:"var(--primary-text-color)",defaultCalColor:"var(--primary-text-color)",calEventBackgroundColor:"rgba(86, 100, 86, .35)",calActiveEventBackgroundColor:"rgba(86, 128, 86, .35)",calEventTime:!1,firstDayOfWeek:1,refreshInterval:60,showEventIcon:!1,eventDateFormat:"ddd D MMM",hideDuplicates:!1,showMultiDay:!1,showMultiDayEventParts:!1,showWeekNumber:!1,showDescription:!1,showEventDate:!0,showDatePerEvent:!1,showAllDayHours:!0,showAllDayEvents:!0,offsetHeaderDate:!1,titleLength:0,descLength:0},Tt={version:"Versió",show_warning:"Mostrar alerta",error:"Error",description:"Una targeta de calendari avançada per a Home Assistant amb Lovelace.",fullDayEventText:"Tot el dia",untilText:"Fins",noEventText:"Sense esdeveniments",noEventsForNextDaysText:"Sense esdeveniments en els propers dies",hiddenEventText:"esdeveniments ocults"},Dt={common:{previous:"Anterior",next:"Següent",week:"Setmana"}},Lt={invalid_configuration:"Configuració incorrecte",update_card:"No es pot carregar el calendari des del component de Home Assistant",no_entities:"No has especificat cap entitat"},St={name:"Requerit",secondary:"Opcions requerides per al funcionament d'aquesta targeta"},At={name:"Opcions Principals",secondary:"Opcions aplicades globalment",fields:{name:"Nom",showColors:"Mostrar Colors",maxDaysToShow:"Màxim de dies a mostrar",showLocation:"Mostrar icona de localització",showLoader:"Mostrar animació de càrrega",showDate:"Mostrar data a la targeta",showDeclined:"Mostrar esdeveniments declinats",sortBy:"Ordena per",allDayBottom:"Mostrar esdeveniments de tot el dia al final",hideFinishedEvents:"Ocultar esdeveniments finalitzats",dateFormat:"Format de data",defaultMode:"Modalitat per defecte",linkTarget:"Enllaçar destí",refreshInterval:"Interval de refresc",showRelativeTime:"Mostrar tems relatiu",firstDayOfWeek:"Primer dia de la setmana 0-6",cardHeight:"Alçada targeta",hideDuplicates:"Oculta duplicats",showMultiDay:"Divideix esdeveniments multi-dia",showMultiDayEventParts:"Mostrar parts d'esdeveniments multi-dia",eventTitle:"Estableix títol d'esdeveniment en blanc",compactMode:"Habilitar mode compacte",titleLength:"Màxima longitut del títol (0 per il·limitat)",descLength:"Màxima longitut de la descripció (0 per il·limitat)",showAllDayEvents:"Mostrat esdeveniments de tot el dia",offsetHeaderDate:"Compensació de la data de la capçalera",startDaysAhead:"Esdeveniments que comencen `x` dies a partir d'ara"}},Ct={name:"Mode Esdeveniment",secondary:"Opcions específiques del Mode Esdeveniment",fields:{showCurrentEventLine:"Mostrar línia abans de l'esdeveniment?",showProgressBar:"Mostrar barra de progrés?",showMonth:"Mostrar mes?",showDescription:"Mostrar descripció?",disableEventLink:"Desactivar enllaços al títol de l'esdeveniment?",disableLocationLink:"Desactivar enllaços a la localització?",showNoEventsForToday:"Mostrar No hi ha esdeveniments avui?",showFullDayProgress:"Mostrar progres dels esdeveniments de tot el dia?",untilText:"Text fins:",noEventText:"Text No hi ha esdeveniments avui:",noEventsForNextDaysText:"Text No hi ha esdeveniments els propers dies:",fullDayEventText:"Text Esdeveniment de tot el dia:",showEventIcon:"Mostrar icona d'esdeveniment",showHiddenText:"Mostrar text dels esdeveniments ocults?",hiddenEventText:"Text per als esdeveniments ocults:",showCalendarName:"Mostrar nom del calendari",showWeekNumber:"Mostrar número de la setmana",showEventDate:"Mostrar data als dels esdeveniments",showDatePerEvent:"Mostrar data al costat de cada esdeveniment",showTimeRemaining:"Mostrar temps restant",showAllDayHours:"Mostrar text d'esdeveniment de tot el dia",hoursOnSameLine:"Mostrar hores a la línia de l'esdeveniment",eventDateFormat:"Format de data de l'esdeveniment"}},It={name:"Mode Calendari",secondary:"Opcions específiques del Mode Calendari",fields:{showLastCalendarWeek:"Mostrar última setmana del calendari",disableCalEventLink:"Desactivar enllaços als esdeveniments del calendari",disableCalLocationLink:"Desactivar enllaços a la localització en el calendari",calShowDescription:"Mostrar descripció",disableCalLink:"Desactivar enllaç al calendari"}},Ot={name:"Aparença",secondary:"Pesonalitzar els colors etc.",main:{name:"Principal",secondary:"Ajust del color global"},fields:{dimFinishedEvents:"Atenuar esdeveniments finalitzats?"}},Yt={common:Tt,ui:Dt,errors:Lt,required:St,main:At,event:Ct,calendar:It,appearance:Ot},$t=Object.freeze({__proto__:null,appearance:Ot,calendar:It,common:Tt,default:Yt,errors:Lt,event:Ct,main:At,required:St,ui:Dt}),Ft={version:"Verze",show_warning:"Zobrazit varování",error:"Chyba",description:"Karta pokročilého kalendáře pro Home Assistant s Lovelace.",fullDayEventText:"Celý den",untilText:"Do",noEventText:"Žádné události",noEventsForNextDaysText:"Žádné události v následujících dnech",hiddenEventText:"události jsou skyty"},Ht={common:{previous:"Předchozí",next:"Následující",week:"Týden"}},zt={invalid_configuration:"Neplatná konfigurace",update_card:"Nelze načíst kalendář Home Assistant komponentou",no_entities:"Nejsou specifikovány žádné entity"},Rt={name:"Vyžadováno",secondary:"Vyžadovaný parametr pro správné fungování"},Nt={name:"Hlavní nastavení",secondary:"Globálně aplikovaná nastavení",fields:{name:"Název",showColors:"Zobrazit barvy",maxDaysToShow:"Max. počet dní k zobrazení",showLocation:"Zobrazit ikonu umístění",showLoader:"Zobrazit animaci načítání",showDate:"Zobrazit datum na kartě",showDeclined:"Zobrazit zrušené události",sortByStartTime:"Seřadit podle počátečních časů",hideFinishedEvents:"Skrýt dokončené události",dateFormat:"Formát data",defaultMode:"Výchozí režim",linkTarget:"Cíl odkazu",refreshInterval:"Interval obnovení",showRelativeTime:"Zobrazit relativní čas",firstDayOfWeek:"První den v týdnu 0-6",cardHeight:"Výška karty",hideDuplicates:"Skrýt duplicity",showMultiDay:"Spojit vícedenní události",showMultiDayEventParts:"Zobrazit části vícedenních událostí"}},jt={name:"Režim událostí",secondary:"Nastavení pro režim událostí",fields:{showCurrentEventLine:"Zobrazit řádek před událostí",showProgressBar:"Zobrazit průběh",showMonth:"Zobrazit měsíc",showDescription:"Zobrazit popisek",disableEventLink:"Zakázat odkazy v titulku události",disableLocationLink:"Zakázat odkazy na lokace",showNoEventsForToday:"Zobrazit text pro žádné události",showFullDayProgress:"Zobrazit průběh u celodenních událostí",untilText:"do textu:",noEventText:"Text pro žádné události:",noEventsForNextDaysText:"Text pro žádné události následující dny:",fullDayEventText:"Text celodenní události:",showEventIcon:"Zobrazit ikonu události",showHiddenText:"Zobrazit text skryté události",hiddenEventText:"Text pro skryté události:",showCalendarName:"Zobrazit název kalendáře",showWeekNumber:"Zobrazit číslo týdne",showEventDate:"Zobrazit datum události",showDatePerEvent:"Zobrazit datum u každé události",eventDateFormat:"Formát data události"}},Pt={name:"Režim kalendáře",secondary:"Nastavení pro režim kalendáře",fields:{showLastCalendarWeek:"Zobrazit poslední týden kalendáře",disableCalEventLink:"Zakázat odkazy na události",disableCalLocationLink:"Zakázat odkazy na lokace",calShowDescription:"Zobrazit popisek",disableCalLink:"Zakázat odkaz na kalendář"}},Bt={name:"Nastavení zobrazení",secondary:"Přizpůsobení barev atd.",main:{name:"Hlavní",secondary:"Globální nastavení barev"},fields:{locationLinkColor:"Barva odkazu na lokaci:",dimFinishedEvents:"Ztlumit jas dokončené události"}},Vt={common:Ft,ui:Ht,errors:zt,required:Rt,main:Nt,event:jt,calendar:Pt,appearance:Bt},Ut=Object.freeze({__proto__:null,appearance:Bt,calendar:Pt,common:Ft,default:Vt,errors:zt,event:jt,main:Nt,required:Rt,ui:Ht}),Wt={version:"Version",show_warning:"Vis Advarsel",error:"Fejl",description:"Et avanceret kalender kort til Home Assistant.",fullDayEventText:"Hele dagen",untilText:"Indtil",noEventText:"Ingen aftaler",noEventsForNextDaysText:"Ingen aftaler de næste få dage",hiddenEventText:"Aftaler er skjulte"},qt={common:{previous:"Forrige",next:"Næste",week:"Uge"}},Gt={invalid_configuration:"Konfiguration er ikke korrekt",update_card:"Kalender kan ikke blive indlæste fra Home Assistant atomic-calendar-revive",no_entities:"Der er ikke valgt nogen entiteter"},Kt={name:"Påkrævet",secondary:"Valg er påkrævet for at atomic-calendar-revive skal virke"},Jt={name:"Hoved muligheder",secondary:"Muligheder der virker globalt",fields:{name:"Navn",showColors:"Vis Farver",maxDaysToShow:"Antal max dage at vise",showLocation:"Vis placerings ikon",showLoader:"Vis animeret indlæsning",showDate:"Vis dato på kort",showDeclined:"Vis afviste aftaler",sortBy:"Sorter på",allDayBottom:"Vis heldagsbegivenheder nederst",hideFinishedEvents:"Skjul overståede aftaler",dateFormat:"Dato format",defaultMode:"Default mode",linkTarget:"Link mål",refreshInterval:"Opdaterings interval",showRelativeTime:"Vis den relative tid",firstDayOfWeek:"Første dag i ugen 0-6",cardHeight:"Højde på kort",hideDuplicates:"Skjul dubletter",showMultiDay:"Opdelt flerdages begivenheder",showMultiDayEventParts:"Vis flere dages begivenhedsdele",eventTitle:"Indstil tom begivenhedstitel",compactMode:"Aktiver kompakt tilstand",titleLength:"Max titellængde (0 for ubegrænset)",descLength:"Max beskrivelseslængde (0 for ubegrænset)",showAllDayEvents:"Vis heldagsbegivenheder",offsetHeaderDate:"Forskudt overskriftsdato",startDaysAhead:"Begivenheder starter `x` dage fra i dag"}},Xt={name:"Tilstand for aftaler",secondary:"Tilstand for specifikke muligheder",fields:{showCurrentEventLine:"Vis en linie før aftale?",showProgressBar:"Vis status bar?",showMonth:"Vis måned?",showDescription:"Vis beskrivelse?",disableEventLink:"Fjern link i titel på aftale?",disableLocationLink:"Fjern link på placering?",showNoEventsForToday:"Vis Ingen aftaler i dag?",showFullDayProgress:"Vis fremskridt på hel dags aftaler?",untilText:"Indtil næste gang:",noEventText:"Hvis ingen aftale, vis tekst:",noEventsForNextDaysText:"Tekst der vises, Ingen aftaler de næste dage:",fullDayEventText:"Hel dags tekst:",showEventIcon:"Vis aftale ikon",showHiddenText:"Vis skjulte aftaler tekst?",hiddenEventText:"Tekst til skjulte aftaler:",showCalendarName:"Vis kalendernavn",showWeekNumber:"Vis ugenumre",showEventDate:"Vis dato for arrangementer",showDatePerEvent:"Vis dato ud for hver begivenhed",showTimeRemaining:"Vis resterende tid",showAllDayHours:"Vis Heldagsbegivenhedstekst",hoursOnSameLine:"Vis timer på begivenhedslinjen",eventDateFormat:"Begivenhedsdatoformat"}},Zt={name:"Tilstand for kalender",secondary:"Specifikke kalender tilstande muligheder",fields:{showLastCalendarWeek:"Vis sidste kalender uge",disableCalEventLink:"Fjern kalender aftale link",disableCalLocationLink:"Fjern kalender lokation link",calShowDescription:"Vis beskrivelse",disableCalLink:"Fjern kalender link"}},Qt={name:"Appearance",secondary:"Tilpas farver etc.",main:{name:"Main",secondary:"Global indstillinger for farver"},fields:{dimFinishedEvents:"Nedtone overståede aftaler?"}},ei={common:Wt,ui:qt,errors:Gt,required:Kt,main:Jt,event:Xt,calendar:Zt,appearance:Qt},ti=Object.freeze({__proto__:null,appearance:Qt,calendar:Zt,common:Wt,default:ei,errors:Gt,event:Xt,main:Jt,required:Kt,ui:qt}),ii={version:"Version",show_warning:"Warnung anzeigen",error:"Fehler",description:"Erweiterte Kalenderkarte für Home Assistant Lovelace",fullDayEventText:"Ganztägig",untilText:"Bis",noEventText:"Keine Einträge",noEventsForNextDaysText:"Keine Einträge in den nächsten Tagen",hiddenEventText:"Einträge sind ausgeblendet."},ni={common:{previous:"Zurück",next:"Vor",week:"Woche"}},ai={invalid_configuration:"Ungültige Konfiguration",update_card:"Der Kalender kann von der Home Assistant-Komponente nicht geladen werden!",no_entities:"Sie haben keine Entitäten festgelegt!"},oi={name:"Benötigt",secondary:"Folgende Optionen sind notwendig, damit die Lovelace Karte angezeigt werden kann:"},ri={name:"Haupteinstellungen",secondary:"Global geltende Optionen",fields:{name:"Name",showColors:"Farben anzeigen",maxDaysToShow:"Maximal angezeigte Tage",showLocation:"Ortssymbol anzeigen",showLoader:"Ladeanimation anzeigen",showDate:"Datum mitanzeigen",showDeclined:"Abgelehnte Einträge anzeigen",sortBy:"Sortiere nach",allDayBottom:"Ganztägige Ereignisse unten anzeigen",hideFinishedEvents:"Beendete Einträge ausblenden",dateFormat:"Datumsformat",defaultMode:"Standardmodus",linkTarget:"Verknüpfungsziel",refreshInterval:"Aktualisierungsintervall",showRelativeTime:"Relative Zeit anzeigen",firstDayOfWeek:"Erster Wochentag 0-6",cardHeight:"Kartenhöhe",hideDuplicates:"Duplikate ausblenden",showMultiDay:"Mehrtägige Ereignisse aufteilen",showMultiDayEventParts:"Mehrtägige Ereignisteile anzeigen",eventTitle:"Leeren Ereignistitel setzen",compactMode:"Kompaktmodus einschalten",titleLength:"Maximale Titellänge (0 für unbegrenzt)",descLength:"Maximale Länge der Beschreibung (0 für unbegrenzt)",showAllDayEvents:"Alle Tagesereignisse anzeigen",offsetHeaderDate:"Kopfdatum verschieben",startDaysAhead:"Ereignisse, die in `x` Tagen von heute an beginnen"}},si={name:"Ereignismodus",secondary:"Ereignismodus-spezifische Optionen",fields:{showCurrentEventLine:"Linie vor einem Eintrag anzeigen?",showProgressBar:"Fortschrittsbalken anzeigen?",showMonth:"Monat anzeigen?",showDescription:"Beschreibung anzeigen?",disableEventLink:"Links im Ereignistitel deaktivieren?",disableLocationLink:"Links zum Ort deaktivieren?",showNoEventsForToday:"'Keine Einträge heute' anzeigen?",showFullDayProgress:"Ganztägigen Fortschritt der Einträge anzeigen?",untilText:"Text für 'bis':",noEventText:"Text für 'Keine Einträge heute':",noEventsForNextDaysText:"Text für 'Keine Einträge in den nächsten Tagen':",fullDayEventText:"Text für 'Ganztägiger Eintrag':",showEventIcon:"Ereignis-Symbol anzeigen?",showHiddenText:"Versteckten Ereignistext anzeigen?",hiddenEventText:"Text für versteckte Ereignisse",showCalendarName:"Kalendername anzeigen?",showWeekNumber:"Kalenderwochen anzeigen?",showEventDate:"Datum für Ereignisse anzeigen?",showDatePerEvent:"Datum neben dem jeweiligen Ereignis anzeigen?",showTimeRemaining:"Verbleibende Zeit anzeigen?",showAllDayHours:"Ganztägigen Ereignistext anzeigen?",hoursOnSameLine:"Stunden auf der Ereigniszeile anzeigen?",eventDateFormat:"Ereignisdatumsformat"}},di={name:"Kalendermodus",secondary:"Kalendermodus: Spezifische Optionen",fields:{showLastCalendarWeek:"Letzte Kalenderwoche anzeigen?",disableCalEventLink:"Links für Kalendereinträge deaktivieren?",disableCalLocationLink:"Links für Ortsangaben in Kalendereinträgen deaktivieren?",calShowDescription:"Beschreibung anzeigen?",disableCalLink:"Kalenderlinks deaktivieren?"}},li={name:"Erscheinungsbild",secondary:"Farbanpassungen usw.",main:{name:"Globale Einstellungen",secondary:"Globale Farbeinstellungen"},fields:{dimFinishedEvents:"Erledigte Einträge blasser anzeigen?"}},ci={common:ii,ui:ni,errors:ai,required:oi,main:ri,event:si,calendar:di,appearance:li},mi=Object.freeze({__proto__:null,appearance:li,calendar:di,common:ii,default:ci,errors:ai,event:si,main:ri,required:oi,ui:ni}),hi={version:"Version",show_warning:"Show Warning",error:"Error",description:"An advanced calendar card for Home Assistant with Lovelace.",fullDayEventText:"All Day",untilText:"Until",noEventText:"No events",noEventsForNextDaysText:"No events in the next few days",hiddenEventText:"events are hidden"},ui={common:{previous:"Previous",next:"Next",week:"Week"}},pi={invalid_configuration:"Invalid Configuration",update_card:"The calendar can't be loaded from Home Assistant component",no_entities:"You have not specified any entities"},fi={name:"Required",secondary:"Required options for this card to function"},gi={name:"Main Options",secondary:"Options that apply globally",fields:{name:"Name",showColors:"Show Colors",maxDaysToShow:"Max days to show",showLocation:"Show location icon",showLoader:"Show loader animation",showDate:"Show date on card",showDeclined:"Show declined events",sortBy:"Sort by",allDayBottom:"Show all day events at the bottom",hideFinishedEvents:"Hide finished events",dateFormat:"Date format",defaultMode:"Default mode",linkTarget:"Link target",refreshInterval:"Refresh Interval",showRelativeTime:"Show Relative Time",firstDayOfWeek:"First Day of Week 0-6",cardHeight:"Card Height",hideDuplicates:"Hide duplicates",showMultiDay:"Split Multi-Day Events",showMultiDayEventParts:"Show Multi-Day Event Parts",eventTitle:"Set blank event title",compactMode:"Enable compact mode",titleLength:"Max title length (0 for unlimited)",descLength:"Max description length (0 for unlimited)",showAllDayEvents:"Show all day events",offsetHeaderDate:"Offset header date",startDaysAhead:"Events starting `x` days from today"}},vi={name:"Event Mode",secondary:"Event Mode specific options",fields:{showCurrentEventLine:"Show line before event?",showProgressBar:"Show progress bar?",showMonth:"Show month?",showDescription:"Show Description?",disableEventLink:"Disable links in event title?",disableLocationLink:"Disable links to location?",showNoEventsForToday:"Show No Events Today?",showFullDayProgress:"Show full day event progress?",untilText:"until text:",noEventText:"No events today text:",noEventsForNextDaysText:"No events in the next few days text:",fullDayEventText:"Full day event text:",showEventIcon:"Show Event Icon",showHiddenText:"Show hidden event text?",hiddenEventText:"Text for hidden events:",showCalendarName:"Show calendar name",showWeekNumber:"Show week numbers",showEventDate:"Show date for events",showDatePerEvent:"Show date next to each event",showTimeRemaining:"Show time remaining",showAllDayHours:"Show All Day event text",hoursOnSameLine:"Show hours on the event line",eventDateFormat:"Event date format"}},_i={name:"Calendar Mode",secondary:"Calendar Mode specific options",fields:{showLastCalendarWeek:"Show last calendar week",disableCalEventLink:"Disable calendar event link",disableCalLocationLink:"Disable calendar location link",calShowDescription:"Show Description",disableCalLink:"Disable calendar link"}},yi={name:"Appearance",secondary:"Customize the colors etc.",main:{name:"Main",secondary:"Global Color Settings"},fields:{dimFinishedEvents:"Dim finished events?"}},bi={common:hi,ui:ui,errors:pi,required:fi,main:gi,event:vi,calendar:_i,appearance:yi},xi=Object.freeze({__proto__:null,appearance:yi,calendar:_i,common:hi,default:bi,errors:pi,event:vi,main:gi,required:fi,ui:ui}),wi={version:"Versión",show_warning:"Mostrar Advertencia",error:"Error",description:"Una tarjeta de calendario avanzada para Home Assistant con Lovelace.",fullDayEventText:"Todo el Día",untilText:"Hasta",noEventText:"Sin eventos",noEventsForNextDaysText:"Sin eventos en los próximos días",hiddenEventText:"eventos están ocultos"},ki={common:{previous:"Anterior",next:"Siguiente",week:"Semana"}},Mi={invalid_configuration:"Configuración Inválida",update_card:"No se puede cargar el calendario desde el componente de Home Assistant",no_entities:"No ha especificado ninguna entidad"},Ei={name:"Requerido",secondary:"Opciones requeridas para que esta tarjeta funcione"},Ti={name:"Opciones Principales",secondary:"Opciones que se aplican globalmente",fields:{name:"Nombre",showColors:"Mostrar Colores",maxDaysToShow:"Máximo de días a mostrar",showLocation:"Mostrar icono de ubicación",showLoader:"Mostrar animación de carga",showDate:"Mostrar fecha en la tarjeta",showDeclined:"Mostrar eventos rechazados",sortBy:"Ordenar por",allDayBottom:"Mostrar eventos de todo el día al final",hideFinishedEvents:"Ocultar eventos finalizados",dateFormat:"Formato de fecha",defaultMode:"Modo predeterminado",linkTarget:"Objetivo del enlace",refreshInterval:"Intervalo de actualización",showRelativeTime:"Mostrar Tiempo Relativo",firstDayOfWeek:"Primer día de la semana 0-6",cardHeight:"Altura de la tarjeta",hideDuplicates:"Ocultar duplicados",showMultiDay:"Dividir Eventos de Varios Días",showMultiDayEventParts:"Mostrar Partes de Eventos de Varios Días",eventTitle:"Establecer título de evento en blanco",compactMode:"Activar modo compacto",titleLength:"Longitud máxima del título (0 para ilimitado)",descLength:"Longitud máxima de la descripción (0 para ilimitado)",showAllDayEvents:"Mostrar eventos de todo el día",offsetHeaderDate:"Fecha de encabezado de compensación",startDaysAhead:"Eventos que comienzan `x` días desde hoy"}},Di={name:"Modo de Evento",secondary:"Opciones específicas del Modo de Evento",fields:{showCurrentEventLine:"¿Mostrar línea antes del evento?",showProgressBar:"¿Mostrar barra de progreso?",showMonth:"¿Mostrar mes?",showDescription:"¿Mostrar descripción?",disableEventLink:"¿Desactivar enlaces en el título del evento?",disableLocationLink:"¿Desactivar enlaces a la ubicación?",showNoEventsForToday:"¿Mostrar No Hay Eventos Hoy?",showFullDayProgress:"¿Mostrar progreso de eventos de todo el día?",untilText:"texto de hasta:",noEventText:"Texto de No hay eventos hoy:",noEventsForNextDaysText:"Texto de No hay eventos en los próximos días:",fullDayEventText:"Texto de evento de todo el día:",showEventIcon:"¿Mostrar ícono de evento?",showHiddenText:"¿Mostrar texto de evento oculto?",hiddenEventText:"Texto para eventos ocultos:",showCalendarName:"¿Mostrar nombre del calendario?",showWeekNumber:"¿Mostrar números de semana?",showEventDate:"¿Mostrar fecha para eventos?",showDatePerEvent:"¿Mostrar fecha junto a cada evento?",showTimeRemaining:"¿Mostrar tiempo restante?",showAllDayHours:"¿Mostrar texto de evento de todo el día?",hoursOnSameLine:"¿Mostrar horas en la línea de evento?",eventDateFormat:"Formato de fecha del evento"}},Li={name:"Modo de Calendario",secondary:"Opciones específicas del Modo de Calendario",fields:{showLastCalendarWeek:"¿Mostrar la última semana del calendario?",disableCalEventLink:"¿Desactivar enlace de evento del calendario?",disableCalLocationLink:"¿Desactivar enlace de ubicación del calendario?",calShowDescription:"¿Mostrar descripción del calendario?",disableCalLink:"¿Desactivar enlace del calendario?"}},Si={name:"Apariencia",secondary:"Personalizar los colores, etc.",main:{name:"Principal",secondary:"Configuración de color global"},fields:{dimFinishedEvents:"¿Atenuar eventos finalizados?"}},Ai={common:wi,ui:ki,errors:Mi,required:Ei,main:Ti,event:Di,calendar:Li,appearance:Si},Ci={version:"Versioon",show_warning:"Näita hoiatusi",error:"Viga",description:"Lisa mugandatav kalender kasutajaliidesesse.",fullDayEventText:"Terve päev",untilText:"Kuni",noEventText:"üritusi pole",noEventsForNextDaysText:"Paari järgmise päeva sündmusi pole",hiddenEventText:"Sündmused on varjatud"},Ii={common:{previous:"Eelmine",next:"Järgmine",week:"Nädal"}},Oi={invalid_configuration:"Sätetes on viga",update_card:"Kalendri laadimine nurjus"},Yi={name:"Vajalikud",secondary:"Selle kaardi toimiseks oluline teave"},$i={name:"Üleüldised valikud",secondary:"Valikud kõigi kaardi olemite jaoks",fields:{name:"Pealkiri",showColors:"Kasuta värve",maxDaysToShow:"Mitu päeva kuvada",showLocation:"Kuva asukoha ikooni",showLoader:"Kuva laadimisel animatsiooni",showDate:"Kuva tänane kuupäev",showDeclined:"Kuva summutatud sündmused",sortBy:"Sorteerima",allDayBottom:"Kuva allosas kogu päeva sündmused",hideFinishedEvents:"Peida lõppenud sündmused",dateFormat:"Kuupäeva vorming",defaultMode:"Vaikerežiim",linkTarget:"Viite tüüp",refreshInterval:"Värskendussagedus",showRelativeTime:"Kuva suhtelist aega",firstDayOfWeek:"Nädala esimene päev (0-6)",cardHeight:"kaardi kõrgus",hideDuplicates:"peida duplikaadid",showMultiDay:"Jagatud mitmepäevased üritused",showMultiDayEventParts:"Näita mitmepäevaste sündmuste osi",eventTitle:"Määra tühi sündmuse pealkiri",compactMode:"Kompaktrežiimi lubamine",titleLength:"Pealkirja maksimaalne pikkus (0 piiramatu jaoks)",descLength:"Kirjelduse maksimaalne pikkus (0 piiramatu puhul)",showAllDayEvents:"Näita kogu päeva sündmusi",offsetHeaderDate:"Nihke päise kuupäev",startDaysAhead:"Sündmused alates tänasest `x` päeva pärast"}},Fi={name:"Sündmuste vaade",secondary:"Sündmuste vaate valikud",fields:{showCurrentEventLine:"Kas kuvada sündmuse ees eraldaja",showProgressBar:"Kas kuvada edenemise riba?",showMonth:"Kas kuvada kuu?",showDescription:"Kas kuvada kirjeldust?",disableEventLink:"Kas keelata viited sündmuse päises?",disableLocationLink:"Kas keelata asukoha viited?",showNoEventsForToday:"Kas kuvada tänaste sündmuste puudumist?",showFullDayProgress:"Kas kuvada terve päeva sündmuste edenemist?",untilText:"Kestab kuni tekst:",noEventText:"Tänased sündmused puuduvad tekst:",noEventsForNextDaysText:"Paaril järgmisel päeval pole sündmusi tekst:",fullDayEventText:"Kogu päeva kestev sündmus tekst:",showEventIcon:"Kuva sündmuse ikooni",showHiddenText:"Kas näidata summutatud teksti?",showCalendarName:"Kuva kalendri nimi",showWeekNumber:"Näita nädala numbreid",showEventDate:"Näita sündmuste kuupäeva",showDatePerEvent:"Kuva kuupäev iga sündmuse kõrval",showTimeRemaining:"Näita järelejäänud aega",showAllDayHours:"Näita kogu päeva sündmuse teksti",hoursOnSameLine:"Näidake sündmuse reale tundi",eventDateFormat:"Sündmuse kuupäeva vorming"}},Hi={name:"Kalendrivaade",secondary:"Kalendrivaate valikud",fields:{showLastCalendarWeek:"Kuva kalendri viimane nädal",disableCalEventLink:"Keela kalendrisündmuse viide",disableCalLocationLink:"Keela sündmuse asukoha viide",calShowDescription:"Kirjelduse kuvamine",disableCalLink:"Peida kalendri viide"}},zi={name:"Välimus",secondary:"Muganda värve jms.",main:{name:"Peamine",secondary:"Üldised värvuse sätted"},fields:{dimFinishedEvents:"Kas tumendada lõppenud sündmused?"}},Ri={common:Ci,ui:Ii,errors:Oi,required:Yi,main:$i,event:Fi,calendar:Hi,appearance:zi},Ni={version:"Versio",show_warning:"Näytä varoitus",error:"Virhe",description:"Edistyksellinen kalenterikortti Home Assistantille Lovelacen kanssa.",fullDayEventText:"Koko päivä",untilText:"Asti",noEventText:"Ei tapahtumia",noEventsForNextDaysText:"Ei tapahtumia lähipäivinä",hiddenEventText:"tapahtumaa on piilotettu"},ji={common:{previous:"Edellinen",next:"Seuraava",week:"Viikko"}},Pi={invalid_configuration:"Virheelliset asetukset",update_card:"Kalenteria ei voi ladata Home Assistant -komponentista",no_entities:"Et ole määrittänyt yhtään entiteettiä"},Bi={name:"Vaadittu",secondary:"Tämän kortin toiminnan edellyttämät vaihtoehdot"},Vi={name:"Päävaihtoehdot",secondary:"Vaihtoehdot, jotka ovat voimassa kaikkialla",fields:{name:"Nimi",showColors:"Näytä värit",maxDaysToShow:"Enintään näytettävät päivät",showLocation:"Näytä sijainnin kuvake",showLoader:"Näytä latausanimaatio",showDate:"Näytä päivämäärä kortissa",showDeclined:"Näytä hylätyt tapahtumat",sortBy:"Järjestä",allDayBottom:"Näytä koko päivän tapahtumat alareunassa",hideFinishedEvents:"Piilota valmiit tapahtumat",dateFormat:"Päivämäärämuoto",defaultMode:"Oletustila",linkTarget:"Linkin kohde",refreshInterval:"Päivitysväli",showRelativeTime:"Näytä suhteellinen aika",firstDayOfWeek:"Viikon ensimmäinen päivä 0-6",cardHeight:"Kortin korkeus",hideDuplicates:"Piilota kaksoiskappaleet",showMultiDay:"Jaa monipäiväiset tapahtumat",showMultiDayEventParts:"Näytä usean päivän tapahtuman osat",eventTitle:"Aseta tyhjä tapahtuman otsikko",compactMode:"Ota kompakti tila käyttöön",titleLength:"Otsikon enimmäispituus (0 rajattomasti)",descLength:"Kuvauksen enimmäispituus (0 rajattomasti)",showAllDayEvents:"Näytä koko päivän tapahtumat",offsetHeaderDate:"Offset otsikon päivämäärä",startDaysAhead:"Tapahtumat alkavat `x` päivän kuluttua tästä päivästä"}},Ui={name:"Tapahtumatila",secondary:"Tapahtumatilan erityisasetukset",fields:{showCurrentEventLine:"Näytetäänkö viiva ennen tapahtumaa?",showProgressBar:"Näytetäänkö edistymispalkki?",showMonth:"Näytä kuukausi?",showDescription:"Näytä kuvaus?",disableEventLink:"Poistetaanko linkit käytöstä tapahtuman otsikossa?",disableLocationLink:"Poistetaanko sijaintilinkit käytöstä?",showNoEventsForToday:"Näytä ei tapahtumia tänään?",showFullDayProgress:"Näytetäänkö koko päivän tapahtuman edistyminen?",untilText:"asti -teksti:",noEventText:"Ei tapahtumia tänään -teksti:",noEventsForNextDaysText:"Ei tapahtumia lähipäivinä -teksti:",fullDayEventText:"Koko päivän tapahtuma -teksti:",showEventIcon:"Näytä tapahtumakuvake",showHiddenText:"Näytetäänkö piilotetun tapahtuman teksti?",hiddenEventText:"Teksti piilotetuille tapahtumille:",showCalendarName:"Näytä kalenterin nimi",showWeekNumber:"Näytä viikkonumerot",showEventDate:"Näytä tapahtumien päivämäärä",showDatePerEvent:"Näytä päivämäärä jokaisen tapahtuman vieressä",showTimeRemaining:"Näytä jäljellä oleva aika",showAllDayHours:"Näytä koko päivän tapahtuman teksti",hoursOnSameLine:"Näytä tunnit tapahtumarivillä",eventDateFormat:"Tapahtuman päivämäärän muoto"}},Wi={name:"Kalenteritila",secondary:"Kalenteritilan erityisasetukset",fields:{showLastCalendarWeek:"Näytä viimeinen kalenteriviikko",disableCalEventLink:"Poista kalenterin tapahtumalinkki käytöstä",disableCalLocationLink:"Poista kalenterin sijaintilinkki käytöstä",calShowDescription:"Näytä kuvaus",disableCalLink:"Poista kalenterilinkki käytöstä"}},qi={name:"Ulkomuoto",secondary:"Mukauta värejä jne.",main:{name:"Pää",secondary:"Yleiset väriasetukset"},fields:{dimFinishedEvents:"Himmennä päättyneet tapahtumat?"}},Gi={common:Ni,ui:ji,errors:Pi,required:Bi,main:Vi,event:Ui,calendar:Wi,appearance:qi},Ki={version:"Version",show_warning:"Afficher l'avertissement",error:"Erreur",description:"Une carte avancée pour le calendrier dans Home Assistant avec Lovelace.",fullDayEventText:"Toute la journée",untilText:"Jusqu'au",noEventText:"pas d'événements",noEventsForNextDaysText:"Aucun événement dans les prochains jours",hiddenEventText:"les événements sont masqués"},Ji={common:{previous:"Précédent",next:"Suivant",week:"Semaine"}},Xi={invalid_configuration:"Configuration invalide",update_card:"Le calendrier ne peut pas être chargé depuis le composant Home Assistant",no_entities:"Vous n'avez pas specifier d'entitées"},Zi={name:"Requis",secondary:"Options requises pour que la carte fonctionne"},Qi={name:"Options principales",secondary:"Options appliquées globalement",fields:{name:"Nom",showColors:"Afficher les couleurs",maxDaysToShow:"Max jours affichés",showLocation:"Afficher l'icone de lieu",showLoader:"Afficher l'animation de chargement",showDate:"Afficher la date sur la carte",showDeclined:"Afficher les événements déclinés",sortBy:"Trier par",allDayBottom:"Afficher les événements de la journée en bas",hideFinishedEvents:"Cacher les événements terminés",dateFormat:"Format de date",defaultMode:"Mode par défaut",linkTarget:"Lien cible",refreshInterval:"Interval de raffraîchissement",showRelativeTime:"Afficher l'heure relative",firstDayOfWeek:"Premier jour de la semaine 0-6",cardHeight:"hauteur de la carte",hideDuplicates:"masquer les doublons",showMultiDay:"Séparer les événements de plusieurs jours",showMultiDayEventParts:"Afficher les parties de l'événement sur plusieurs jours",eventTitle:"Définir un titre d'événement vide",compactMode:"Activer le mode compact",titleLength:"Longueur maximale du titre (0 pour illimité)",descLength:"Longueur maximale de la description (0 pour illimité)",showAllDayEvents:"Afficher les événements de la journée",offsetHeaderDate:"Date d'en-tête décalée",startDaysAhead:"Événements commençant `x` jours à partir daujourdhui"}},en={name:"Mode événement",secondary:"Options spécifiques du mode événement",fields:{showCurrentEventLine:"Afficher une ligne avant l'événement?",showProgressBar:"Afficher la barre de progression?",showMonth:"Afficher le mois?",showDescription:"Afficher la description?",disableEventLink:"Désactiver les liens dans les titres d'événements?",disableLocationLink:"Désactiver les liens vers le lieu?",showNoEventsForToday:"Afficher Aucun événement aujourd'hui?",showFullDayProgress:"Afficher la progression des événements sur une journée?",untilText:"Texte Jusqu'au:",noEventText:"Texte Aucun événement aujourd'hui:",noEventsForNextDaysText:"Texte Aucun événement dans les prochains jours:",fullDayEventText:"Texte Toute la journée:",showEventIcon:"Afficher l'icone d'événement",showHiddenText:"Afficher le texte de l'événement masqué",hiddenEventText:"Texte pour les événements masqués:",showCalendarName:"Afficher le nom du calendrier",showWeekNumber:"Afficher les numéros de semaine",showEventDate:"Afficher la date des événements",showDatePerEvent:"Afficher la date à côté de chaque événement",showTimeRemaining:"Afficher le temps restant",showAllDayHours:"Afficher le texte de l'événement toute la journée",hoursOnSameLine:"Afficher les heures sur la ligne de l'événement",eventDateFormat:"Format de la date de l'événement"}},tn={name:"Mode calendrier",secondary:"Options spécifiques du mode calendrier",fields:{showLastCalendarWeek:"Afficher la dernière semaine du calendrier",disableCalEventLink:"Désactiver les liens sur les événements du calendrier",disableCalLocationLink:"Désactiver les liens sur les lieux du calendrier",calShowDescription:"Afficher la description",disableCalLink:"Désactiver les liens calendar"}},nn={name:"Apparence",secondary:"Customiser les couleurs etc.",main:{name:"Principal",secondary:"Paramètres globaux de couleur"},fields:{dimFinishedEvents:"Diminuer la visibilité des événements terminés?"}},an={common:Ki,ui:Ji,errors:Xi,required:Zi,main:Qi,event:en,calendar:tn,appearance:nn},on={version:"Verzió",show_warning:"Figyelmeztetés megjelenítése",error:"Hiba",description:"Egy fejlett naptár kártya a Home Assistanthoz Lovelace-al.",fullDayEventText:"Egész nap",untilText:"Amíg",noEventText:"Nincs esemény",noEventsForNextDaysText:"Nincsenek események a következő napokra",hiddenEventText:"az események elrejtve"},rn={common:{previous:"Előző",next:"Következő",week:"hét"}},sn={invalid_configuration:"Érvénytelen konfiguráció",update_card:"A naptárat nem lehet Home Assistant komponensből betölteni",no_entities:"Nem adtál meg egyetlen entitást sem"},dn={name:"Szükséges",secondary:"A kártya működéséhez szükséges beállítások"},ln={name:"Általános beállítások",secondary:"Globálisan alkalmazott beállítások",fields:{name:"Név",showColors:"Színek mutatása",maxDaysToShow:"Max megjelenített napok",showLocation:"Hely ikon megjelenítése",showLoader:"Betöltő animáció megjelenítése",showDate:"Dátum megjelenítése a kártyán",showDeclined:"Elutasított események megjelenítése",sortBy:"Rendezés",allDayBottom:"Az egész napos események megjelenítése legalul",hideFinishedEvents:"Befejezett események elrejtése",dateFormat:"Dátum formátum",defaultMode:"Alapértelmezett mód",linkTarget:"Link cél",refreshInterval:"Frissítési időköz",showRelativeTime:"Relatív idő megjelenítése",firstDayOfWeek:"A hét első napja 0-6",cardHeight:"Kártya magassága",hideDuplicates:"Ismétlődések elrejtése",showMultiDay:"Többnapos események szétválasztása",showMultiDayEventParts:"Többnapos esemény részeinek megjelenítése",eventTitle:"Üres esemény címének meghatározása",compactMode:"Kompakt mód engedélyezése",titleLength:"Cím max hossza (0: végtelen)",descLength:"Leírás max hossza (0: végtelen)",showAllDayEvents:"Egész napos események megjelenítése",offsetHeaderDate:"Fejléc dátum eltolás",startDaysAhead:" Az x nap múlva kezdődő események"}},cn={name:"Esemény mód",secondary:"Esemény módhoz tartozó beállítások",fields:{showCurrentEventLine:"Mutassunk vonalat az esemény előtt?",showProgressBar:"Mutassuk a folyamatjelzőt?",showMonth:"Mutassuk a hónapot?",showDescription:"Mutassuk a leírást?",disableEventLink:"Az esemény címén lévő link letiltása?",disableLocationLink:"A helyhez kapcsolódó link letiltása?",showNoEventsForToday:"Jelezzük, hogy ma nincs esemény?",showFullDayProgress:"Mutassuk az egész napos esemény folyamatát?",untilText:"amíg szövege:",noEventText:"Ma nincs esemény szövege:",noEventsForNextDaysText:"A következő napokon nincs esemény szövege:",fullDayEventText:"Egész napos esemény szövege:",showEventIcon:"Esemény ikonjának megjelenítése",showHiddenText:"Mutassuk a rejtett esemény szöveget?",hiddenEventText:"Rejtett esemény szövege:",showCalendarName:"Naptár nevének megjelenítése",showWeekNumber:"Hét számának megjelenítése",showEventDate:"Esemény dátumának megjelenítése",showDatePerEvent:"Dátum megjelenítése az események mellett",showTimeRemaining:"Hátralévő idő megjelenítése",showAllDayHours:"Egész napos esemény szöveg megjelenítése",hoursOnSameLine:"Az idő megjelenítése az esemény sorában",eventDateFormat:"Esemény dátumának formátuma"}},mn={name:"Naptár mód",secondary:"Naptár módhoz tartozó beállítások",fields:{showLastCalendarWeek:"Az utolsó naptári hét megjelenítése",disableCalEventLink:"Naptár esemény linkjének letiltása",disableCalLocationLink:"Naptár hely linkjének letiltása",calShowDescription:"Leírás megjelenítése",disableCalLink:"Naptár link letiltása"}},hn={name:"Kinézet",secondary:"Színek és egyéb testreszabása",main:{name:"Alap",secondary:"Globális szín beállítások"},fields:{dimFinishedEvents:"Befejezett események elhalványítása?"}},un={common:on,ui:rn,errors:sn,required:dn,main:ln,event:cn,calendar:mn,appearance:hn},pn={version:"Versjon",show_warning:"Vis Advarsel",error:"Feil",description:"Et avansert kalenderkort for Home Assistant med Lovelace",fullDayEventText:"Hele dagen",untilText:"Inntil",noEventText:"Ingen hendelser",noEventsForNextDaysText:"Ingen hendelser de nærmeste dager",hiddenEventText:"hendelser er skjulte"},fn={common:{previous:"Forrige",next:"Neste",week:"Uke"}},gn={invalid_configuration:"Ugyldig konfigurasjon",update_card:"Kalenderen kan ikke bli hentet fra Home Assistant komponenten",no_entities:"Du har ikke valgt noen entiteter"},vn={name:"Obligatorisk",secondary:"Obligatoriske valg for at atomic-calendar-revive skal virke"},_n={name:"Hovedvalg",secondary:"Valg som virker globalt",fields:{name:"Navn",showColors:"Vis Farger",maxDaysToShow:"Maksimum antall dager å vise",showLocation:"Vis lokasjonsikon",showLoader:"Vis animasjon ved innlasting",showDate:"Vis dato på kort",showDeclined:"Vis avviste hendelser",sortBy:"Sorter efter",allDayBottom:"Vis heldagshendelser nederst",hideFinishedEvents:"Skjul avsluttede hendelser",dateFormat:"Datoformat",defaultMode:"Standardmodus",linkTarget:"Lenkemål",refreshInterval:"Oppdateringsintervall",showRelativeTime:"Vis den relative tiden",firstDayOfWeek:"Første dag i uken 0-6",cardHeight:"Høyde på kort",hideDuplicates:"Skjul duplikater",showMultiDay:"Delte flerdagers arrangementer",showMultiDayEventParts:"Vis flerdagers arrangementsdeler",eventTitle:"Angi en tom hendelsestittel",compactMode:"Aktiver kompakt modus",titleLength:"Maks tittellengde (0 for ubegrenset)",descLength:"Maks beskrivelseslengde (0 for ubegrenset)",showAllDayEvents:"Vis heldagsbegivenheter",offsetHeaderDate:"Offset overskriftsdato",startDaysAhead:"Arrangementer som starter `x` dager fra i dag"}},yn={name:"Hendelsesmodus",secondary:"Innstillinger for hendelsesmodus",fields:{showCurrentEventLine:"Vis en linje før hendelse?",showProgressBar:"Vis fremdriftsindikator?",showMonth:"Vis måned?",showDescription:"Vis beskrivelse?",disableEventLink:"Fjern lenke i hendelsestittel?",disableLocationLink:"Fjern lenke til plassering?",showNoEventsForToday:"Vis Ingen hendelser i dag?",showFullDayProgress:"Vis fremdrift på heldagshendelse?",untilText:"Inntil tekst:",noEventText:"Hvis ingen hendelse, vis tekst:",noEventsForNextDaysText:"Ingen hendelser de nærmeste dager tekst:",fullDayEventText:"Heldagshendelse tekst:",showEventIcon:"Vis hendelsesikon",showHiddenText:"Vis skjult hendelsestekst?",hiddenEventText:"Tekst for skjulte hendelser:",showCalendarName:"Vis kalendernavn",showWeekNumber:"Vis ukenummer",showEventDate:"Vis dato for arrangementer",showDatePerEvent:"Vis dato ved siden av hvert arrangement",showTimeRemaining:"Vis gjenværende tid",showAllDayHours:"Vis tekst for hele dagen",hoursOnSameLine:"Vis timer på arrangementslinjen",eventDateFormat:"Datoformat for hendelsen"}},bn={name:"Kalendermodus",secondary:"Innstillinger for kalendermodus",fields:{showLastCalendarWeek:"Vis forrige uke",disableCalEventLink:"Fjern kalenderhendelseslenke",disableCalLocationLink:"Fjern kalenderposisjonslenke",calShowDescription:"Vis beskrivelse",disableCalLink:"Fjern kalenderlenke"}},xn={name:"Utseende",secondary:"Personlige farger, osv.",main:{name:"Hovedvalg",secondary:"Valg som virker globalt"},fields:{dimFinishedEvents:"Tone ned avsluttede hendelser?"}},wn={common:pn,ui:fn,errors:gn,required:vn,main:_n,event:yn,calendar:bn,appearance:xn},kn={version:"Versie",show_warning:"Toon Waarschuwing",error:"Fout",description:"Een geavanceerde kalenderkaart voor Home Assistant met Lovelace.",fullDayEventText:"Hele Dag",untilText:"Tot",noEventText:"Geen evenementen",noEventsForNextDaysText:"Geen evenementen in de komende dagen",hiddenEventText:"evenementen zijn verborgen"},Mn={common:{previous:"Vorige",next:"Volgende",week:"Week"}},En={invalid_configuration:"Ongeldige Configuratie",update_card:"De kalender kan niet worden geladen vanuit de Home Assistant component",no_entities:"Je hebt geen entiteiten gespecificeerd"},Tn={name:"Vereist",secondary:"Vereiste opties voor deze kaart om te functioneren"},Dn={name:"Hoofdopties",secondary:"Opties die globaal van toepassing zijn",fields:{name:"Naam",showColors:"Toon Kleuren",maxDaysToShow:"Max dagen om te tonen",showLocation:"Toon locatie-icoon",showLoader:"Toon laadanimatie",showDate:"Toon datum op kaart",showDeclined:"Toon afgewezen evenementen",sortBy:"Sorteer op",allDayBottom:"Toon hele dag evenementen onderaan",hideFinishedEvents:"Verberg voltooide evenementen",dateFormat:"Datumformaat",hoursFormat:"Urenformaat",defaultMode:"Standaardmodus",linkTarget:"Linkdoel",refreshInterval:"Verversingsinterval",showRelativeTime:"Toon Relatieve Tijd",firstDayOfWeek:"Eerste Dag van de Week 0-6",cardHeight:"Kaarthoogte",hideDuplicates:"Verberg duplicaten",showMultiDay:"Splits Meerdaagse Evenementen",showMultiDayEventParts:"Toon Onderdelen van Meerdaagse Evenementen",eventTitle:"Stel lege evenementstitel in",compactMode:"Compacte modus inschakelen",titleLength:"Max titellengte (0 voor onbeperkt)",descLength:"Max beschrijvingslengte (0 voor onbeperkt)",showAllDayEvents:"Toon hele dag evenementen",offsetHeaderDate:"Datum van koptekst verschuiven",startDaysAhead:"Evenementen die `x` dagen vanaf vandaag beginnen"}},Ln={name:"Evenementmodus",secondary:"Specifieke opties voor evenementmodus",fields:{showCurrentEventLine:"Toon lijn voor evenement?",showProgressBar:"Toon voortgangsbalk?",showMonth:"Toon maand?",showDescription:"Toon Beschrijving?",disableEventLink:"Schakel links in evenementstitel uit?",disableLocationLink:"Schakel links naar locatie uit?",showNoEventsForToday:"Toon Geen Evenementen Vandaag?",showFullDayProgress:"Toon voortgang hele dag evenement?",untilText:"tot tekst:",noEventText:"Geen evenementen vandaag tekst:",noEventsForNextDaysText:"Geen evenementen in de komende dagen tekst:",fullDayEventText:"Tekst voor hele dag evenement:",showEventIcon:"Toon Evenementicoon",showHiddenText:"Toon tekst voor verborgen evenementen?",hiddenEventText:"Tekst voor verborgen evenementen:",showCalendarName:"Toon kalendernaam",showWeekNumber:"Toon weeknummers",showEventDate:"Toon datum voor evenementen",showDatePerEvent:"Toon datum naast elk evenement",showTimeRemaining:"Toon resterende tijd",showAllDayHours:"Toon tekst voor hele dag evenementen",hoursOnSameLine:"Toon uren op de evenementlijn",eventDateFormat:"Datumformaat evenement"},calendar:{name:"Kalendermodus",secondary:"Specifieke opties voor kalendermodus",fields:{showLastCalendarWeek:"Toon de laatste kalenderweek",disableCalEventLink:"Schakel kalenderevenementlink uit",disableCalLocationLink:"Schakel kalenderlocatielink uit",calShowDescription:"Toon Beschrijving",disableCalLink:"Schakel kalenderlink uit"}},appearance:{name:"Uiterlijk",secondary:"Pas de kleuren etc. aan",main:{name:"Hoofd",secondary:"Globale Kleurinstellingen"},fields:{dimFinishedEvents:"Dim voltooide evenementen?"}}},Sn={common:kn,ui:Mn,errors:En,required:Tn,main:Dn,event:Ln},An={version:"Versão",show_warning:"Mostrar alerta",error:"Erro",description:"Um cartão de calendário avançado para o Home Assistant com Lovelace.",fullDayEventText:"Todo o dia",untilText:"Até",noEventText:"Sem eventos",noEventsForNextDaysText:"Sem eventos nos próximos dias",hiddenEventText:"eventos escondidos"},Cn={common:{previous:"Anterior",next:"Próximo",week:"Semana"}},In={invalid_configuration:"Configuração inválida",update_card:"O calendário não pode ser carregado pelo componente do Home Assistant",no_entities:"Não configurou nenhuma entidade"},On={name:"Obrigatório",secondary:"Opções obrigatórias para que este cartão funcione"},Yn={name:"Opções principais",secondary:"Opções globais",fields:{name:"Nome",showColors:"Mostrar cores",maxDaysToShow:"Máximo de dias a mostrar",showLocation:"Mostrar icon localização",showLoader:"Mostrar animação carregamento",showDate:"Mostrar data no cartão",showDeclined:"Mostrar convites rejeitados",sortBy:"Ordenar por",allDayBottom:"Mostrar eventos dia completo no final",hideFinishedEvents:"Esconder eventos concluídos",dateFormat:"Formato data",defaultMode:"Modo por default",linkTarget:"Destino link",refreshInterval:"Intervalo atualização",showRelativeTime:"Mostrar tempo relativo",firstDayOfWeek:"Primeiro dia da semana 0-6",cardHeight:"Altura cartão",hideDuplicates:"Esconder duplicados",showMultiDay:"Dividir eventos de mutiplos dias",showMultiDayEventParts:"Mostrar partes de eventos de multiplos dias",eventTitle:"Nome para eventos sem titulo",compactMode:"Ativar modo compacto",titleLength:"Tamanho máximo titulo (0 para ilimitado)",descLength:"Tamanho máximo descrição (0 para ilimitado)",showAllDayEvents:"Mostrar eventos dia completo",offsetHeaderDate:"Desfasamento data cabeçalho",startDaysAhead:"Eventos a iniciar a `x` dias desde hoje"}},$n={name:"Modo evento",secondary:"Opções do modo evento",fields:{showCurrentEventLine:"Mostrar linha antes do evento?",showProgressBar:"Mostrar linha de progresso?",showMonth:"Mostrar mês?",showDescription:"Mostrar descrição?",disableEventLink:"Desativar links no titulo do evento?",disableLocationLink:"Desativar links para localização?",showNoEventsForToday:"Mostrar mensagem sem eventos hoje?",showFullDayProgress:"Mostrar progresso eventos dia completo?",untilText:"até texto:",noEventText:"Texto mensagem sem eventos hoje:",noEventsForNextDaysText:"Texto mensagem sem eventos nos próximos dias:",fullDayEventText:"Texto evento dia completo:",showEventIcon:"Mostrar icon do evento",showHiddenText:"Mostrar texto de evento oculto?",hiddenEventText:"Texto para eventos ocultos:",showCalendarName:"Mostrar nome calendário",showWeekNumber:"Mostrar números de semana",showEventDate:"Mostrar data dos eventos",showDatePerEvent:"Mostrar data junto a cada evento",showTimeRemaining:"Mostrar tempo restante",showAllDayHours:"Mostrar texto evento dia completo",hoursOnSameLine:"Mostrar horas na linha do evento",eventDateFormat:"Formato de data do evento"}},Fn={name:"Modo calendário",secondary:"Opções do modo calendário",fields:{showLastCalendarWeek:"Mostrar última semana de calendário",disableCalEventLink:"Desativar link para evento calendário",disableCalLocationLink:"Desativar link para localização",calShowDescription:"Mostrar descrição",disableCalLink:"Desativar link calendário"}},Hn={name:"Aparência",secondary:"Personalizar cores, etc.",main:{name:"Main",secondary:"Configuração global de cores"},fields:{dimFinishedEvents:"Colocar eventos concluidos a cinzento?"}},zn={common:An,ui:Cn,errors:In,required:On,main:Yn,event:$n,calendar:Fn,appearance:Hn},Rn={version:"Версия",show_warning:"Показать предупреждение",error:"Ошибка",description:"Продвинутая карта календаря для Home Assistant с Lovelace.",fullDayEventText:"Весь день",untilText:"До",noEventText:"Нет событий",noEventsForNextDaysText:"Нет событий в ближайшие дни",hiddenEventText:"события скрыты"},Nn={common:{previous:"Предыдущий",next:"Следующий",week:"Неделя"}},jn={invalid_configuration:"Неверная конфигурация",update_card:"Календарь не может быть загружен из компонента Home Assistant",no_entities:"Вы не указали никакие сущности"},Pn={name:"Обязательно",secondary:"Обязательные параметры для работы этой карты"},Bn={name:"Основные параметры",secondary:"Параметры, действующие глобально",fields:{name:"Название",showColors:"Показать цвета",maxDaysToShow:"Максимальное количество дней для отображения",showLocation:"Показать значок местоположения",showLoader:"Показать анимацию загрузки",showDate:"Показать дату на карте",showDeclined:"Показать отклоненные события",sortBy:"Сортировать по",allDayBottom:"Показать события на весь день внизу",hideFinishedEvents:"Скрыть завершенные события",dateFormat:"Формат даты",defaultMode:"Режим по умолчанию",linkTarget:"Цель ссылки",refreshInterval:"Интервал обновления",showRelativeTime:"Показать относительное время",firstDayOfWeek:"Первый день недели 0-6",cardHeight:"Высота карты",hideDuplicates:"Скрыть дубликаты",showMultiDay:"Разделить многодневные события",showMultiDayEventParts:"Показать части многодневных событий",eventTitle:"Установить пустой заголовок события",compactMode:"Включить компактный режим",titleLength:"Максимальная длина заголовка (0 для неограниченной",descLength:"Максимальная длина описания (0 для неограниченной)",showAllDayEvents:"Показать события на весь день",offsetHeaderDate:"Смещение заголовка даты",startDaysAhead:"События, начинающиеся через x дней сегодня"}},Vn={name:"Режим события",secondary:"Специфические параметры режима события",fields:{showCurrentEventLine:"Показать линию перед событием?",showProgressBar:"Показать полосу прогресса?",showMonth:"Показать месяц?",showDescription:"Показать описание?",disableEventLink:"Отключить ссылки в заголовке события?",disableLocationLink:"Отключить ссылки на местоположение?",showNoEventsForToday:"Показать сообщение 'Нет событий сегодня'?",showFullDayProgress:"Показать полосу прогресса для событий на весь день?",untilText:"текст 'до':",noEventText:"Текст 'Нет событий сегодня':",noEventsForNextDaysText:"Текст 'Нет событий в ближайшие дни':",fullDayEventText:"Текст для событий на весь день:",showEventIcon:"Показать значок события",showHiddenText:"Показать текст скрытых событий?",hiddenEventText:"Текст для скрытых событий:",showCalendarName:"Показать название календаря",showWeekNumber:"Показать номер недели",showEventDate:"Показать дату для событий",showDatePerEvent:"Показать дату рядом с каждым событием",showTimeRemaining:"Показать оставшееся время",showAllDayHours:"Показать текст события на весь день",hoursOnSameLine:"Показать часы на строке события",eventDateFormat:"Формат даты события"}},Un={name:"Режим календаря",secondary:"Специфические параметры режима календаря",fields:{showLastCalendarWeek:"Показать последнюю неделю календаря",disableCalEventLink:"Отключить ссылку на событие календаря",disableCalLocationLink:"Отключить ссылку на местоположение календаря",calShowDescription:"Показать описание",disableCalLink:"Отключить ссылку на календарь"}},Wn={name:"Внешний вид",secondary:"Настроить цвета и т. д.",main:{name:"Основной",secondary:"Глобальные настройки цвета"},fields:{dimFinishedEvents:"Затемнить завершенные события?"}},qn={common:Rn,ui:Nn,errors:jn,required:Pn,main:Bn,event:Vn,calendar:Un,appearance:Wn},Gn={version:"Verzia",show_warning:"Zobraziť upozornenie",error:"Error",description:"Pokročilá karta kalendára pre domáceho asistenta s Lovelace.",fullDayEventText:"Všetky dni",untilText:"Dokiaľ",noEventText:"Žiadne udalosti",noEventsForNextDaysText:"Žiadne udalosti v najbližších dňoch",hiddenEventText:"udalosti sú skryté"},Kn={common:{previous:"Predchádzajúci",next:"Nasledujúci",week:"Týždeň"}},Jn={invalid_configuration:"Neplatná konfigurácia",update_card:"Kalendár sa nedá načítať z komponentu Home Assistant",no_entities:"Nezadali ste žiadne udalosti"},Xn={name:"Požadované",secondary:"Požadované možnosti pre fungovanie tejto karty"},Zn={name:"Hlavné možnosti",secondary:"Možnosti, ktoré platia globálne",fields:{name:"Názov",showColors:"Zobraziť farby",maxDaysToShow:"Maximálny počet dní na zobrazenie",showLocation:"Zobraziť ikonu polohy",showLoader:"Zobraziť animáciu nakladača",showDate:"Zobraziť dátum na karte",showDeclined:"Zobraziť odmietnuté udalosti",sortBy:"Triediť podľa",allDayBottom:"Zobraziť celodenné udalosti v dolnej časti",hideFinishedEvents:"Skryť dokončené udalosti",dateFormat:"Formát dátumu",defaultMode:"Predvolený režim",linkTarget:"Cieľ odkazu",refreshInterval:"Interval obnovenia",showRelativeTime:"Zobraziť relatívny čas",firstDayOfWeek:"Prvý deň v týždni 0-6",cardHeight:"Výška karty",hideDuplicates:"Skryť duplikáty",showMultiDay:"Rozdelené viacdňové podujatia",showMultiDayEventParts:"Zobraziť časti viacdňovej udalosti",eventTitle:"Nastavte prázdny názov udalosti",compactMode:"Povoliť kompaktný režim",titleLength:"Maximálna dĺžka názvu (0 pre neobmedzené)",descLength:"Maximálna dĺžka popisu (0 pre neobmedzené)",showAllDayEvents:"Zobraziť celodenné udalosti",offsetHeaderDate:"Dátum posunutia hlavičky",startDaysAhead:"Udalosti začínajúce `x` dní odo dneška"}},Qn={name:"Režim udalosti",secondary:"Špecifické možnosti režimu udalosti",fields:{showCurrentEventLine:"Zobraziť riadok pred udalosťou?",showProgressBar:"Zobraziť indikátor priebehu?",showMonth:"Zobraziť mesiac?",showDescription:"Zobraziť popis?",disableEventLink:"Zakázať odkazy v názve udalosti?",disableLocationLink:"Zakázať odkazy na polohu?",showNoEventsForToday:"Zobraziť dnes žiadne udalosti?",showFullDayProgress:"Zobraziť priebeh celodennej udalosti?",untilText:"do textu:",noEventText:"Žiadne dnešné udalosti text:",noEventsForNextDaysText:"Žiadne udalosti v najbližších dňoch text:",fullDayEventText:"Text celodenného podujatia:",showEventIcon:"Zobraziť ikonu udalosti",showHiddenText:"Zobraziť skrytý text udalosti?",hiddenEventText:"Text pre skryté udalosti:",showCalendarName:"Zobraziť názov kalendára",showWeekNumber:"Zobraziť čísla týždňov",showEventDate:"Zobraziť dátumy udalostí",showDatePerEvent:"Zobraziť dátum vedľa každej udalosti",showTimeRemaining:"Zobraziť zostávajúci čas",showAllDayHours:"Zobraziť text celodennej udalosti",hoursOnSameLine:"Zobraziť hodiny na riadku udalosti",eventDateFormat:"Formát dátumu udalosti"}},ea={name:"Režim kalendára",secondary:"Špecifické možnosti režimu kalendára",fields:{showLastCalendarWeek:"Zobraziť posledný kalendárny týždeň",disableCalEventLink:"Zakázať odkaz na udalosť kalendára",disableCalLocationLink:"Zakázať odkaz na umiestnenie kalendára",calShowDescription:"Zobraziť popis",disableCalLink:"Zakázať odkaz na kalendár"}},ta={name:"Vzhľad",secondary:"Prispôsobte farby atď.",main:{name:"Hlavná",secondary:"Globálne nastavenia farieb"},fields:{dimFinishedEvents:"Stlmiť dokončené udalosti?"}},ia={common:Gn,ui:Kn,errors:Jn,required:Xn,main:Zn,event:Qn,calendar:ea,appearance:ta},na={version:"Verzija",show_warning:"Prikaži opozorilo",error:"Napaka",description:"Napreden koledar za Home Assistant z Lovelace vmesnikom.",fullDayEventText:"Ves dan",untilText:"Do",noEventText:"Ni dogodkov",noEventsForNextDaysText:"Ni dogodkov v naslednjih nekaj dneh",hiddenEventText:"dogodki so skriti"},aa={common:{previous:"Prejšnji",next:"Naslednji",week:"Teden"}},oa={invalid_configuration:"Nepravilna konfiguracija",update_card:"Koledarja ni mogoče naložiti iz komponente Home Assistant",no_entities:"Niste določili nobene entitete"},ra={name:"Zahtevano",secondary:"Zahtevane možnosti za delovanje te kartice"},sa={name:"Glavne možnosti",secondary:"Nastavitve za celotno kartico",fields:{name:"Naziv",showColors:"Prikaži barve",maxDaysToShow:"Največje število dni za prikaz",showLocation:"Pokaži ikono lokacije",showLoader:"Pokaži animacijo nalagalnika",showDate:"Prikaži datum na kartici",showDeclined:"Prikaži zavrnjene dogodke",sortBy:"Razvrsti po",allDayBottom:"Pokaži celodnevne dogodke na dnu",hideFinishedEvents:"Skrij končane dogodke",dateFormat:"Format datuma",defaultMode:"Privzeti način",linkTarget:"Cilj povezave",refreshInterval:"Osvežitveni interval",showRelativeTime:"Pokaži relativni čas",firstDayOfWeek:"Prvi dan v tednu 0-6",cardHeight:"Višina kartice",hideDuplicates:"skrij dvojnike",showMultiDay:"Razdeljeni večdnevni dogodki",showMultiDayEventParts:"Prikaži dele večdnevnega dogodka",eventTitle:"Nastavite prazen naslov dogodka",compactMode:"Omogoči kompaktni način",titleLength:"Največja dolžina naslova (0 za neomejeno)",descLength:"Največja dolžina opisa (0 za neomejeno)",showAllDayEvents:"Pokaži celodnevne dogodke",offsetHeaderDate:"Datum zamika glave",startDaysAhead:"Dogodki, ki se začnejo `x` dni od danes"}},da={name:"Način dogodka",secondary:"Posebne možnosti za način dogodka",fields:{showCurrentEventLine:"Prikaži vrstico pred dogodkom?",showProgressBar:"Prikaži vrstico napredka?",showMonth:"Prikaži mesec?",showDescription:"Prikaži opis?",disableEventLink:"Onemogoči povezave v naslovu dogodka?",disableLocationLink:"Onemogoči povezave do lokacije?",showNoEventsForToday:"Prikaži danes ni dogodka?",showFullDayProgress:"Pokaži celodnevni napredek dogodka?",untilText:"do besedila:",noEventText:"Besedilo danes ni dogodka:",noEventsForNextDaysText:"Besedilo v naslednjih dneh ni nobenega dogodka:",fullDayEventText:"Celodnevno besedilo dogodka:",showEventIcon:"Pokaži ikono dogodka",showHiddenText:"Pokaži skrito besedilo dogodka?",hiddenEventText:"Besedilo za skrite dogodke:",showCalendarName:"Pokaži ime koledarja",showWeekNumber:"Prikaži številke tednov",showEventDate:"Pokaži datum za dogodke",showDatePerEvent:"Prikažite datum poleg vsakega dogodka",showTimeRemaining:"Pokaži preostali čas",showAllDayHours:"Prikaži besedilo celodnevnega dogodka",hoursOnSameLine:"Prikaži ure na vrstici dogodkov",eventDateFormat:"Oblika datuma dogodka"}},la={name:"Način koledarja",secondary:"Možnosti za način koledarja",fields:{showLastCalendarWeek:"Pokaži zadnji koledarski teden",disableCalEventLink:"Onemogoči povezavo do dogodka v koledarju",disableCalLocationLink:"Onemogoči povezavo do lokacije koledarja",calShowDescription:"Prikaži opis",disableCalLink:"Onemogoči povezavo do koledarja"}},ca={name:"Videz",secondary:"Prilagodite barve itd.",main:{name:"Osnovni",secondary:"Glavne barvne nastavitve"},fields:{dimFinishedEvents:"Zatemniti končane dogodke?"}},ma={common:na,ui:aa,errors:oa,required:ra,main:sa,event:da,calendar:la,appearance:ca},ha={version:"Version",show_warning:"Visa varning",error:"Fel",description:"Ett avancerat kalenderkort för Home Assistant med Lovelace",fullDayEventText:"Heldag",untilText:"Tills",noEventText:"Inga händelser",noEventsForNextDaysText:"Inga händelser de närmaste dagarna",hiddenEventText:"händelser är dolda"},ua={common:{previous:"Föregående",next:"Nästa",week:"Vecka"}},pa={invalid_configuration:"Ogiltig konfiguration",update_card:"Kalendern kan inte laddas från Home Assistant-komponenten"},fa={name:"Nödvändig",secondary:"Nödvändiga optioner för att detta kort ska fungera"},ga={name:"Huvud-ptioner",secondary:"Globala Optioner",fields:{name:"Namn",showColors:"Visa färger",maxDaysToShow:"Max antal dagar att visa",showLocation:"Visa plats-ikon",showLoader:"Visa animation för laddning",showDate:"Visa datum på kortet",showDeclined:"Visa nekade händelser",sortBy:"Sortera efter",allDayBottom:"Visa heldagshändelser längst ner",hideFinishedEvents:"Hide finished events Dölj avslutade händelser",dateFormat:"Datumformat",defaultMode:"Standard-mode",linkTarget:"Länkmål",refreshInterval:"Refresh Interval",showRelativeTime:"Show Relative Time",firstDayOfWeek:"First Day of Week 0-6",cardHeight:"kortets höjd",hideDuplicates:"dölja dubbletter",showMultiDay:"Dela flerdagarsevenemang",showMultiDayEventParts:"Visa flerdagarsevenemangsdelar",eventTitle:"Ange tom händelsetitel",compactMode:"Aktivera kompakt läge",titleLength:"Max titellängd (0 för obegränsat)",descLength:"Max beskrivningslängd (0 för obegränsat)",showAllDayEvents:"Visa heldagshändelser",offsetHeaderDate:"Offset rubrikdatum",startDaysAhead:"Händelser som börjar `x` dagar från och med idag"}},va={name:"Händelse-mode",secondary:"Optioner för händelse-mode",fields:{showCurrentEventLine:"Visa länk före händelsen?",showProgressBar:"Visa förlopp?",showMonth:"Visa månad?",showDescription:"Visa beskrivning?",disableEventLink:"Inaktivera länkar i händelsetitel?",disableLocationLink:"Inaktivera länkar till plats?",showNoEventsForToday:"Visa inga händelser idag?",showFullDayProgress:"Visa förlopp för heldagshändelser?",untilText:"Text för Tills:",noEventText:"Text för INga händelser idag:",noEventsForNextDaysText:"Text för Inga händelser för följande dagar:",fullDayEventText:"Text för Heldagshändelse:",showEventIcon:"Show Event Icon",showHiddenText:"Visa dold händelsetext",hiddenEventText:"Text för dolda händelser:",showCalendarName:"Visa kalendernamn",showWeekNumber:"Visa veckonummer",showEventDate:"Visa datum för evenemang",showDatePerEvent:"Visa datum bredvid varje evenemang",showTimeRemaining:"Visa återstående tid",showAllDayHours:"Visa heldagshändelsetext",hoursOnSameLine:"Visa öppettider på evenemangsraden",eventDateFormat:"Händelsedatumformat"}},_a={name:"Kalender-mode",secondary:"Optioner för kalender-mode",fields:{showLastCalendarWeek:"Visa sista veckan",disableCalEventLink:"Inaktivera länk till händelse",disableCalLocationLink:"Inaktivera länk till plats",calShowDescription:"Visa beskrivning?"}},ya={name:"Utseende",secondary:"Personliga färger etc.",main:{name:"Huvid",secondary:"Globala färginställningar"},fields:{dimFinishedEvents:"Dimma slutförda händelser?"}},ba={common:ha,ui:ua,errors:pa,required:fa,main:ga,event:va,calendar:_a,appearance:ya},xa={version:"Версія",show_warning:"Показати попередження",error:"Помилка",description:"Розширена картка календаря для Home Assistant з Lovelace.",fullDayEventText:"Увесь день",untilText:"До",noEventText:"Немає подій",noEventsForNextDaysText:"Немає подій на найближчі дні",hiddenEventText:"події приховані"},wa={common:{previous:"Попередній",next:"Наступний",week:"Тиждень"}},ka={invalid_configuration:"Невірна конфігурація",update_card:"Неможливо завантажити календар з компоненту Home Assistant",no_entities:"Ви не вказали жодних сутностей"},Ma={name:"Обов'язково",secondary:"Обов'язкові налаштування для функціонування цієї картки"},Ea={name:"Основні налаштування",secondary:"Налаштування, які застосовуються глобально",fields:{name:"Назва",showColors:"Показувати кольори",maxDaysToShow:"Макс. днів для показу",showLocation:"Показувати значок місцезнаходження",showLoader:"Показувати анімацію завантаження",showDate:"Показувати дату на картці",showDeclined:"Показувати відхилені події",sortBy:"Сортувати за",allDayBottom:"Показувати цілоденні події внизу",hideFinishedEvents:"Приховати завершені події",dateFormat:"Формат дати",defaultMode:"Стандартний режим",linkTarget:"Ціль посилання",refreshInterval:"Інтервал оновлення",showRelativeTime:"Показувати час до початку події",firstDayOfWeek:"Перший день тижня 0-6",cardHeight:"Висота картки",hideDuplicates:"Приховати дублікати",showMultiDay:"Розділити багатоденні події",showMultiDayEventParts:"Показувати частини багатоденних подій",eventTitle:"Встановити заголовок порожніх подій",compactMode:"Увімкнути компактний режим",titleLength:"Макс. довжина заголовка (0 для необмеженої)",descLength:"Макс. довжина опису (0 для необмеженої)",showAllDayEvents:"Показувати цілоденні події",offsetHeaderDate:"Змістити дату в заголовку",startDaysAhead:"Події, що починаються `х` днів від сьогодні"}},Ta={name:"Режим подій",secondary:"Специфічні налаштування режиму подій",fields:{showCurrentEventLine:"Показати лінію перед подією?",showProgressBar:"Показувати індикатор прогресу?",showMonth:"Показувати місяць?",showDescription:"Показувати опис?",disableEventLink:"Вимкнути посилання в заголовку події?",disableLocationLink:"Вимкнути посилання на місцезнаходження?",showNoEventsForToday:"Показати, що сьогодні немає подій?",showFullDayProgress:"Показувати прогрес цілоденних подій?",untilText:"текст до:",noEventText:"Текст за відсутності подій сьогодні:",noEventsForNextDaysText:"Текст за відсутності подій на найближчі дні:",fullDayEventText:"Текст цілоденної події:",showEventIcon:"Показувати значок події",showHiddenText:"Показувати текст прихованих подій?",hiddenEventText:"Текст для прихованих подій:",showCalendarName:"Показувати назву календаря",showWeekNumber:"Показувати номер тижня",showEventDate:"Показувати дату події",showDatePerEvent:"Показувати дату поруч з кожною подією",showTimeRemaining:"Показувати залишок часу",showAllDayHours:"Показувати текст цілоденних подій",hoursOnSameLine:"Показувати години на лінії події",eventDateFormat:"Формат дати події"}},Da={name:"Режим календаря",secondary:"Специфічні налаштування режиму календаря",fields:{showLastCalendarWeek:"Показувати останній тиждень календаря",disableCalEventLink:"Вимкнути посилання на подію календаря",disableCalLocationLink:"Вимкнути посилання на місцезнаходження в календарі",calShowDescription:"Показувати опис",disableCalLink:"Вимкнути посилання календаря"}},La={name:"Зовнішній вигляд",secondary:"Налаштування кольорів тощо.",main:{name:"Основне",secondary:"Глобальні налаштування кольорів"},fields:{dimFinishedEvents:"Зменшити яскравість завершених подій?"}},Sa={common:xa,ui:wa,errors:ka,required:Ma,main:Ea,event:Ta,calendar:Da,appearance:La};const Aa="https://github.com/totaldebug/atomic-calendar-revive/discussions/new?category=feature-requests",Ca={hass:null};function Ia(e){Ca.hass=e}const Oa={ca:$t,cs:Ut,da:ti,de:mi,en:xi,"en-GB":xi,es:Object.freeze({__proto__:null,appearance:Si,calendar:Li,common:wi,default:Ai,errors:Mi,event:Di,main:Ti,required:Ei,ui:ki}),et:Object.freeze({__proto__:null,appearance:zi,calendar:Hi,common:Ci,default:Ri,errors:Oi,event:Fi,main:$i,required:Yi,ui:Ii}),fi:Object.freeze({__proto__:null,appearance:qi,calendar:Wi,common:Ni,default:Gi,errors:Pi,event:Ui,main:Vi,required:Bi,ui:ji}),fr:Object.freeze({__proto__:null,appearance:nn,calendar:tn,common:Ki,default:an,errors:Xi,event:en,main:Qi,required:Zi,ui:Ji}),hu:Object.freeze({__proto__:null,appearance:hn,calendar:mn,common:on,default:un,errors:sn,event:cn,main:ln,required:dn,ui:rn}),nb:Object.freeze({__proto__:null,appearance:xn,calendar:bn,common:pn,default:wn,errors:gn,event:yn,main:_n,required:vn,ui:fn}),nl:Object.freeze({__proto__:null,common:kn,default:Sn,errors:En,event:Ln,main:Dn,required:Tn,ui:Mn}),pt:Object.freeze({__proto__:null,appearance:Hn,calendar:Fn,common:An,default:zn,errors:In,event:$n,main:Yn,required:On,ui:Cn}),ru:Object.freeze({__proto__:null,appearance:Wn,calendar:Un,common:Rn,default:qn,errors:jn,event:Vn,main:Bn,required:Pn,ui:Nn}),sk:Object.freeze({__proto__:null,appearance:ta,calendar:ea,common:Gn,default:ia,errors:Jn,event:Qn,main:Zn,required:Xn,ui:Kn}),sl:Object.freeze({__proto__:null,appearance:ca,calendar:la,common:na,default:ma,errors:oa,event:da,main:sa,required:ra,ui:aa}),sv:Object.freeze({__proto__:null,appearance:ya,calendar:_a,common:ha,default:ba,errors:pa,event:va,main:ga,required:fa,ui:ua}),uk:Object.freeze({__proto__:null,appearance:La,calendar:Da,common:xa,default:Sa,errors:ka,event:Ta,main:Ea,required:Ma,ui:wa})},Ya="en";function $a(e,t){try{return e.split(".").reduce(((e,t)=>e[t]),Oa[t])}catch(i){return void console.error(`Error translating key "${e}" in language "${t}":`,i)}}let Fa=!1;function Ha(e){var t,i,n,a;const o=null!==(a=(null===(i=null===(t=Ca.hass)||void 0===t?void 0:t.locale)||void 0===i?void 0:i.language)||(null===(n=Ca.hass)||void 0===n?void 0:n.language)||localStorage.getItem("selectedLanguage"))&&void 0!==a?a:Ya;if(Oa[o])var r=$a(e,o);else r=$a(e,Ya),Fa||(console.warn(`Language "${o}" not supported by Atomic Calendar, request it ${Aa}`),Fa=!0);return null!=r?r:e}const za=je`
.option {
padding: 4px 0px 4px;
cursor: pointer;
}
.row {
display: flex;
pointer-events: none;
}
.title {
padding-left: 16px;
margin-top: -6px;
pointer-events: none;
}
.secondary {
padding-left: 40px;
color: var(--secondary-text-color);
pointer-events: none;
}
.values {
padding: 16px;
background: var(--secondary-background-color);
}
.entity-box {
margin-top: 5px;
padding: 8px;
background-image: repeating-linear-gradient(
27deg,
#333333,
#333333 11px,
transparent 11px,
transparent 14px,
#333333 14px
),
repeating-linear-gradient(117deg, #333333, #333333 11px, transparent 11px, transparent 14px, #333333 14px),
repeating-linear-gradient(207deg, #333333, #333333 11px, transparent 11px, transparent 14px, #333333 14px),
repeating-linear-gradient(297deg, #333333, #333333 11px, transparent 11px, transparent 14px, #333333 14px);
background-size:
3px 100%,
100% 3px,
3px 100%,
100% 3px;
background-position:
0 0,
0 0,
100% 0,
0 100%;
background-repeat: no-repeat;
}
.entity-options {
padding: 16px;
}
.side-by-side {
display: flex;
}
.side-by-side > * {
flex: 1;
padding-right: 4px;
}
.origin-calendar {
width: 50%;
margin-left: 35px;
}
.icon {
--mdc-icon-size: 10px;
width: 10px;
height: 10px;
padding-top: 0px;
margin-top: -10px;
margin-right: -1px;
margin-left: -1px;
}
.mwc-text-field {
width: 97%;
}
.sponsor {
margin: 5px;
padding: 8px;
background-image: repeating-linear-gradient(
27deg,
#333333,
#333333 11px,
transparent 11px,
transparent 14px,
#333333 14px
),
repeating-linear-gradient(117deg, #333333, #333333 11px, transparent 11px, transparent 14px, #333333 14px),
repeating-linear-gradient(207deg, #333333, #333333 11px, transparent 11px, transparent 14px, #333333 14px),
repeating-linear-gradient(297deg, #333333, #333333 11px, transparent 11px, transparent 14px, #333333 14px);
background-size:
3px 100%,
100% 3px,
3px 100%,
100% 3px;
background-position:
0 0,
0 0,
100% 0,
0 100%;
background-repeat: no-repeat;
position: relative;
}
.badge {
position: absolute;
top: 0px;
right: 0px;
}
`
/**
* @license
* Copyright 2016 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/;var Ra=function(){function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}(),Na={ROOT:"mdc-form-field"},ja={LABEL_SELECTOR:".mdc-form-field > label"},Pa=function(e){function t(i){var a=e.call(this,n(n({},t.defaultAdapter),i))||this;return a.click=function(){a.handleClick()},a}return i(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return Na},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return ja},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},t.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame((function(){e.adapter.deactivateInputRipple()}))},t}(Ra);
/**
* @license
* Copyright 2017 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
const Ba=e=>e.nodeType===Node.ELEMENT_NODE;function Va(e){return{addClass:t=>{e.classList.add(t)},removeClass:t=>{e.classList.remove(t)},hasClass:t=>e.classList.contains(t)}}const Ua=()=>{},Wa={get passive(){return!1}};document.addEventListener("x",Ua,Wa),document.removeEventListener("x",Ua);const qa=(e=window.document)=>{let t=e.activeElement;const i=[];if(!t)return i;for(;t&&(i.push(t),t.shadowRoot);)t=t.shadowRoot.activeElement;return i},Ga=e=>{const t=qa();if(!t.length)return!1;const i=t[t.length-1],n=new Event("check-if-focused",{bubbles:!0,composed:!0});let a=[];const o=e=>{a=e.composedPath()};return document.body.addEventListener("check-if-focused",o),i.dispatchEvent(n),document.body.removeEventListener("check-if-focused",o),-1!==a.indexOf(e)};
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
class Ka extends lt{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/var Ja,Xa;const Za=null!==(Xa=null===(Ja=window.ShadyDOM)||void 0===Ja?void 0:Ja.inUse)&&void 0!==Xa&&Xa;class Qa extends Ka{constructor(){super(...arguments),this.disabled=!1,this.containingForm=null,this.formDataListener=e=>{this.disabled||this.setFormData(e.formData)}}findFormElement(){if(!this.shadowRoot||Za)return null;const e=this.getRootNode().querySelectorAll("form");for(const t of Array.from(e))if(t.contains(this))return t;return null}connectedCallback(){var e;super.connectedCallback(),this.containingForm=this.findFormElement(),null===(e=this.containingForm)||void 0===e||e.addEventListener("formdata",this.formDataListener)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.containingForm)||void 0===e||e.removeEventListener("formdata",this.formDataListener),this.containingForm=null}click(){this.formElement&&!this.disabled&&(this.formElement.focus(),this.formElement.click())}firstUpdated(){super.firstUpdated(),this.shadowRoot&&this.mdcRoot.addEventListener("change",(e=>{this.dispatchEvent(new Event("change",e))}))}}Qa.shadowRootOptions={mode:"open",delegatesFocus:!0},a([pt({type:Boolean})],Qa.prototype,"disabled",void 0);
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
const eo=e=>(t,i)=>{if(t.constructor._observers){if(!t.constructor.hasOwnProperty("_observers")){const e=t.constructor._observers;t.constructor._observers=new Map,e.forEach(((e,i)=>t.constructor._observers.set(i,e)))}}else{t.constructor._observers=new Map;const e=t.updated;t.updated=function(t){e.call(this,t),t.forEach(((e,t)=>{const i=this.constructor._observers.get(t);void 0!==i&&i.call(this,this[t],e)}))}}t.constructor._observers.set(i,e)}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/,to=1,io=2,no=3,ao=4,oo=e=>function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return{_$litDirective$:e,values:i}};let ro=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const so=oo(class extends ro{constructor(e){var t;if(super(e),e.type!==to||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,t){let[i]=t;if(void 0===this.st){this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in i){var n;i[e]&&(null===(n=this.nt)||void 0===n||!n.has(e))&&this.st.add(e)}return this.render(i)}const a=e.element.classList;for(const e of this.st)e in i||(a.remove(e),this.st.delete(e));for(const e in i){var o;const t=!!i[e];t===this.st.has(e)||(null===(o=this.nt)||void 0===o?void 0:o.has(e))||(t?(a.add(e),this.st.add(e)):(a.remove(e),this.st.delete(e)))}return be}});
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/class lo extends Ka{constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=Pa}createAdapter(){return{registerInteractionHandler:(e,t)=>{this.labelEl.addEventListener(e,t)},deregisterInteractionHandler:(e,t)=>{this.labelEl.removeEventListener(e,t)},activateInputRipple:async()=>{const e=this.input;if(e instanceof Qa){const t=await e.ripple;t&&t.startPress()}},deactivateInputRipple:async()=>{const e=this.input;if(e instanceof Qa){const t=await e.ripple;t&&t.endPress()}}}}get input(){var e,t;return null!==(t=null===(e=this.slottedInputs)||void 0===e?void 0:e[0])&&void 0!==t?t:null}render(){const e={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return ye`
<div class="mdc-form-field ${so(e)}">
<slot></slot>
<label class="mdc-label"
@click="${this._labelClick}">${this.label}</label>
</div>`}click(){this._labelClick()}_labelClick(){const e=this.input;e&&(e.focus(),e.click())}}a([pt({type:Boolean})],lo.prototype,"alignEnd",void 0),a([pt({type:Boolean})],lo.prototype,"spaceBetween",void 0),a([pt({type:Boolean})],lo.prototype,"nowrap",void 0),a([pt({type:String}),eo((async function(e){var t;null===(t=this.input)||void 0===t||t.setAttribute("aria-label",e)}))],lo.prototype,"label",void 0),a([_t(".mdc-form-field")],lo.prototype,"mdcRoot",void 0),a([bt("")],lo.prototype,"slottedInputs",void 0),a([_t("label")],lo.prototype,"labelEl",void 0);
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
*/
const co=je`.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}:host{display:inline-flex}.mdc-form-field{width:100%}::slotted(*){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}::slotted(mwc-switch){margin-right:10px}[dir=rtl] ::slotted(mwc-switch),::slotted(mwc-switch[dir=rtl]){margin-left:10px}`,mo={"mwc-formfield":class extends lo{static get styles(){return co}}},ho=je`:host{cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;height:48px;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mdc-list-side-padding, 16px);padding-right:var(--mdc-list-side-padding, 16px);outline:none;height:48px;color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host:focus{outline:none}:host([activated]){color:#6200ee;color:var(--mdc-theme-primary, #6200ee);--mdc-ripple-color: var( --mdc-theme-primary, #6200ee )}:host([activated]) .mdc-deprecated-list-item__graphic{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host([activated]) .fake-activated-ripple::before{position:absolute;display:block;top:0;bottom:0;left:0;right:0;width:100%;height:100%;pointer-events:none;z-index:1;content:"";opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12);background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-deprecated-list-item__graphic{flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;display:inline-flex}.mdc-deprecated-list-item__graphic ::slotted(*){flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;width:100%;height:100%;text-align:center}.mdc-deprecated-list-item__meta{width:var(--mdc-list-item-meta-size, 24px);height:var(--mdc-list-item-meta-size, 24px);margin-left:auto;margin-right:0;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-item__meta.multi{width:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:var(--mdc-list-item-meta-size, 24px);line-height:var(--mdc-list-item-meta-size, 24px)}.mdc-deprecated-list-item__meta ::slotted(.material-icons),.mdc-deprecated-list-item__meta ::slotted(mwc-icon){line-height:var(--mdc-list-item-meta-size, 24px) !important}.mdc-deprecated-list-item__meta ::slotted(:not(.material-icons):not(mwc-icon)){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}[dir=rtl] .mdc-deprecated-list-item__meta,.mdc-deprecated-list-item__meta[dir=rtl]{margin-left:0;margin-right:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:100%;height:100%}.mdc-deprecated-list-item__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-deprecated-list-item__text ::slotted([for]),.mdc-deprecated-list-item__text[for]{pointer-events:none}.mdc-deprecated-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;margin-bottom:-20px;display:block}.mdc-deprecated-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-deprecated-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-deprecated-list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;display:block}.mdc-deprecated-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-deprecated-list--dense .mdc-deprecated-list-item__secondary-text{font-size:inherit}* ::slotted(a),a{color:inherit;text-decoration:none}:host([twoline]){height:72px}:host([twoline]) .mdc-deprecated-list-item__text{align-self:flex-start}:host([disabled]),:host([noninteractive]){cursor:default;pointer-events:none}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*){opacity:.38}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__primary-text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__secondary-text ::slotted(*){color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-deprecated-list-item__secondary-text ::slotted(*){color:rgba(0, 0, 0, 0.54);color:var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54))}.mdc-deprecated-list-item__graphic ::slotted(*){background-color:transparent;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-group__subheader ::slotted(*){color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 40px);height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 40px);line-height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 40px) !important}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){border-radius:50%}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic,:host([graphic=medium]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic,:host([graphic=control]) .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 16px)}[dir=rtl] :host([graphic=avatar]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=medium]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=large]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=control]) .mdc-deprecated-list-item__graphic,:host([graphic=avatar]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=medium]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=large]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=control]) .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:var(--mdc-list-item-graphic-margin, 16px);margin-right:0}:host([graphic=icon]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 24px);height:var(--mdc-list-item-graphic-size, 24px);margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 32px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 24px);line-height:var(--mdc-list-item-graphic-size, 24px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 24px) !important}[dir=rtl] :host([graphic=icon]) .mdc-deprecated-list-item__graphic,:host([graphic=icon]) .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:var(--mdc-list-item-graphic-margin, 32px);margin-right:0}:host([graphic=avatar]:not([twoLine])),:host([graphic=icon]:not([twoLine])){height:56px}:host([graphic=medium]:not([twoLine])),:host([graphic=large]:not([twoLine])){height:72px}:host([graphic=medium]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 56px);height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-deprecated-list-item__graphic.multi,:host([graphic=large]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(*),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 56px);line-height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 56px) !important}:host([graphic=large]){padding-left:0px}`
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/,uo=e=>null!=e?e:xe
/**
* @license
* Copyright 2020 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/;var po={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"},fo=new Set;fo.add(po.BACKSPACE),fo.add(po.ENTER),fo.add(po.SPACEBAR),fo.add(po.PAGE_UP),fo.add(po.PAGE_DOWN),fo.add(po.END),fo.add(po.HOME),fo.add(po.ARROW_LEFT),fo.add(po.ARROW_UP),fo.add(po.ARROW_RIGHT),fo.add(po.ARROW_DOWN),fo.add(po.DELETE),fo.add(po.ESCAPE),fo.add(po.TAB);var go=8,vo=13,_o=32,yo=33,bo=34,xo=35,wo=36,ko=37,Mo=38,Eo=39,To=40,Do=46,Lo=27,So=9,Ao=new Map;Ao.set(go,po.BACKSPACE),Ao.set(vo,po.ENTER),Ao.set(_o,po.SPACEBAR),Ao.set(yo,po.PAGE_UP),Ao.set(bo,po.PAGE_DOWN),Ao.set(xo,po.END),Ao.set(wo,po.HOME),Ao.set(ko,po.ARROW_LEFT),Ao.set(Mo,po.ARROW_UP),Ao.set(Eo,po.ARROW_RIGHT),Ao.set(To,po.ARROW_DOWN),Ao.set(Do,po.DELETE),Ao.set(Lo,po.ESCAPE),Ao.set(So,po.TAB);var Co,Io,Oo=new Set;function Yo(e){var t=e.key;if(fo.has(t))return t;var i=Ao.get(e.keyCode);return i||po.UNKNOWN}
/**
* @license
* Copyright 2018 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/Oo.add(po.PAGE_UP),Oo.add(po.PAGE_DOWN),Oo.add(po.END),Oo.add(po.HOME),Oo.add(po.ARROW_LEFT),Oo.add(po.ARROW_UP),Oo.add(po.ARROW_RIGHT),Oo.add(po.ARROW_DOWN);var $o="mdc-list-item--activated",Fo="mdc-list-item",Ho="mdc-list-item--disabled",zo="mdc-list-item--selected",Ro="mdc-list-item__text",No="mdc-list-item__primary-text",jo="mdc-list";(Co={})[""+$o]="mdc-list-item--activated",Co[""+Fo]="mdc-list-item",Co[""+Ho]="mdc-list-item--disabled",Co[""+zo]="mdc-list-item--selected",Co[""+No]="mdc-list-item__primary-text",Co[""+jo]="mdc-list";var Po=((Io={})[""+$o]="mdc-deprecated-list-item--activated",Io[""+Fo]="mdc-deprecated-list-item",Io[""+Ho]="mdc-deprecated-list-item--disabled",Io[""+zo]="mdc-deprecated-list-item--selected",Io[""+Ro]="mdc-deprecated-list-item__text",Io[""+No]="mdc-deprecated-list-item__primary-text",Io[""+jo]="mdc-deprecated-list",Io),Bo={ACTION_EVENT:"MDCList:action",SELECTION_CHANGE_EVENT:"MDCList:selectionChange",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+Fo+" button:not(:disabled),\n ."+Fo+" a,\n ."+Po[Fo]+" button:not(:disabled),\n ."+Po[Fo]+" a\n ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n ."+Fo+" button:not(:disabled),\n ."+Fo+" a,\n ."+Fo+' input[type="radio"]:not(:disabled),\n .'+Fo+' input[type="checkbox"]:not(:disabled),\n .'+Po[Fo]+" button:not(:disabled),\n ."+Po[Fo]+" a,\n ."+Po[Fo]+' input[type="radio"]:not(:disabled),\n .'+Po[Fo]+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},Vo={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300};
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
const Uo=(e,t)=>e-t,Wo=["input","button","textarea","select"];function qo(e){return e instanceof Set}const Go=e=>{const t=e===Vo.UNSET_INDEX?new Set:e;return qo(t)?new Set(t):new Set([t])};class Ko extends Ra{constructor(e){super(Object.assign(Object.assign({},Ko.defaultAdapter),e)),this.isMulti_=!1,this.wrapFocus_=!1,this.isVertical_=!0,this.selectedIndex_=Vo.UNSET_INDEX,this.focusedItemIndex_=Vo.UNSET_INDEX,this.useActivatedClass_=!1,this.ariaCurrentAttrValue_=null}static get strings(){return Bo}static get numbers(){return Vo}static get defaultAdapter(){return{focusItemAtIndex:()=>{},getFocusedElementIndex:()=>0,getListItemCount:()=>0,isFocusInsideList:()=>!1,isRootFocused:()=>!1,notifyAction:()=>{},notifySelected:()=>{},getSelectedStateForElementIndex:()=>!1,setDisabledStateForElementIndex:()=>{},getDisabledStateForElementIndex:()=>!1,setSelectedStateForElementIndex:()=>{},setActivatedStateForElementIndex:()=>{},setTabIndexForElementIndex:()=>{},setAttributeForElementIndex:()=>{},getAttributeForElementIndex:()=>null}}setWrapFocus(e){this.wrapFocus_=e}setMulti(e){this.isMulti_=e;const t=this.selectedIndex_;if(e){if(!qo(t)){const e=t===Vo.UNSET_INDEX;this.selectedIndex_=e?new Set:new Set([t])}}else if(qo(t))if(t.size){const e=Array.from(t).sort(Uo);this.selectedIndex_=e[0]}else this.selectedIndex_=Vo.UNSET_INDEX}setVerticalOrientation(e){this.isVertical_=e}setUseActivatedClass(e){this.useActivatedClass_=e}getSelectedIndex(){return this.selectedIndex_}setSelectedIndex(e){this.isIndexValid_(e)&&(this.isMulti_?this.setMultiSelectionAtIndex_(Go(e)):this.setSingleSelectionAtIndex_(e))}handleFocusIn(e,t){t>=0&&this.adapter.setTabIndexForElementIndex(t,0)}handleFocusOut(e,t){t>=0&&this.adapter.setTabIndexForElementIndex(t,-1),setTimeout((()=>{this.adapter.isFocusInsideList()||this.setTabindexToFirstSelectedItem_()}),0)}handleKeydown(e,t,i){const n="ArrowLeft"===Yo(e),a="ArrowUp"===Yo(e),o="ArrowRight"===Yo(e),r="ArrowDown"===Yo(e),s="Home"===Yo(e),d="End"===Yo(e),l="Enter"===Yo(e),c="Spacebar"===Yo(e);if(this.adapter.isRootFocused())return void(a||d?(e.preventDefault(),this.focusLastElement()):(r||s)&&(e.preventDefault(),this.focusFirstElement()));let m,h=this.adapter.getFocusedElementIndex();if(!(-1===h&&(h=i,h<0))){if(this.isVertical_&&r||!this.isVertical_&&o)this.preventDefaultEvent(e),m=this.focusNextElement(h);else if(this.isVertical_&&a||!this.isVertical_&&n)this.preventDefaultEvent(e),m=this.focusPrevElement(h);else if(s)this.preventDefaultEvent(e),m=this.focusFirstElement();else if(d)this.preventDefaultEvent(e),m=this.focusLastElement();else if((l||c)&&t){const t=e.target;if(t&&"A"===t.tagName&&l)return;this.preventDefaultEvent(e),this.setSelectedIndexOnAction_(h,!0)}this.focusedItemIndex_=h,void 0!==m&&(this.setTabindexAtIndex_(m),this.focusedItemIndex_=m)}}handleSingleSelection(e,t,i){e!==Vo.UNSET_INDEX&&(this.setSelectedIndexOnAction_(e,t,i),this.setTabindexAtIndex_(e),this.focusedItemIndex_=e)}focusNextElement(e){let t=e+1;if(t>=this.adapter.getListItemCount()){if(!this.wrapFocus_)return e;t=0}return this.adapter.focusItemAtIndex(t),t}focusPrevElement(e){let t=e-1;if(t<0){if(!this.wrapFocus_)return e;t=this.adapter.getListItemCount()-1}return this.adapter.focusItemAtIndex(t),t}focusFirstElement(){return this.adapter.focusItemAtIndex(0),0}focusLastElement(){const e=this.adapter.getListItemCount()-1;return this.adapter.focusItemAtIndex(e),e}setEnabled(e,t){this.isIndexValid_(e)&&this.adapter.setDisabledStateForElementIndex(e,!t)}preventDefaultEvent(e){const t=`${e.target.tagName}`.toLowerCase();-1===Wo.indexOf(t)&&e.preventDefault()}setSingleSelectionAtIndex_(e,t=!0){this.selectedIndex_!==e&&(this.selectedIndex_!==Vo.UNSET_INDEX&&(this.adapter.setSelectedStateForElementIndex(this.selectedIndex_,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(this.selectedIndex_,!1)),t&&this.adapter.setSelectedStateForElementIndex(e,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(e,!0),this.setAriaForSingleSelectionAtIndex_(e),this.selectedIndex_=e,this.adapter.notifySelected(e))}setMultiSelectionAtIndex_(e,t=!0){const i=((e,t)=>{const i=Array.from(e),n=Array.from(t),a={added:[],removed:[]},o=i.sort(Uo),r=n.sort(Uo);let s=0,d=0;for(;s<o.length||d<r.length;){const e=o[s],t=r[d];e!==t?void 0!==e&&(void 0===t||e<t)?(a.removed.push(e),s++):void 0!==t&&(void 0===e||t<e)&&(a.added.push(t),d++):(s++,d++)}return a})(Go(this.selectedIndex_),e);if(i.removed.length||i.added.length){for(const e of i.removed)t&&this.adapter.setSelectedStateForElementIndex(e,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(e,!1);for(const e of i.added)t&&this.adapter.setSelectedStateForElementIndex(e,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(e,!0);this.selectedIndex_=e,this.adapter.notifySelected(e,i)}}setAriaForSingleSelectionAtIndex_(e){this.selectedIndex_===Vo.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(e,Bo.ARIA_CURRENT));const t=null!==this.ariaCurrentAttrValue_,i=t?Bo.ARIA_CURRENT:Bo.ARIA_SELECTED;this.selectedIndex_!==Vo.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,i,"false");const n=t?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(e,i,n)}setTabindexAtIndex_(e){this.focusedItemIndex_===Vo.UNSET_INDEX&&0!==e?this.adapter.setTabIndexForElementIndex(0,-1):this.focusedItemIndex_>=0&&this.focusedItemIndex_!==e&&this.adapter.setTabIndexForElementIndex(this.focusedItemIndex_,-1),this.adapter.setTabIndexForElementIndex(e,0)}setTabindexToFirstSelectedItem_(){let e=0;"number"==typeof this.selectedIndex_&&this.selectedIndex_!==Vo.UNSET_INDEX?e=this.selectedIndex_:qo(this.selectedIndex_)&&this.selectedIndex_.size>0&&(e=Math.min(...this.selectedIndex_)),this.setTabindexAtIndex_(e)}isIndexValid_(e){if(e instanceof Set){if(!this.isMulti_)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");if(0===e.size)return!0;{let t=!1;for(const i of e)if(t=this.isIndexInRange_(i),t)break;return t}}if("number"==typeof e){if(this.isMulti_)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+e);return e===Vo.UNSET_INDEX||this.isIndexInRange_(e)}return!1}isIndexInRange_(e){const t=this.adapter.getListItemCount();return e>=0&&e<t}setSelectedIndexOnAction_(e,t,i){if(this.adapter.getDisabledStateForElementIndex(e))return;let n=e;if(this.isMulti_&&(n=new Set([e])),this.isIndexValid_(n)){if(this.isMulti_)this.toggleMultiAtIndex(e,i,t);else if(t||i)this.setSingleSelectionAtIndex_(e,t);else{this.selectedIndex_===e&&this.setSingleSelectionAtIndex_(Vo.UNSET_INDEX)}t&&this.adapter.notifyAction(e)}}toggleMultiAtIndex(e,t,i=!0){let n=!1;n=void 0===t?!this.adapter.getSelectedStateForElementIndex(e):t;const a=Go(this.selectedIndex_);n?a.add(e):a.delete(e),this.setMultiSelectionAtIndex_(a,i)}}
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/const Jo=e=>e.hasAttribute("mwc-list-item");function Xo(){const e=this.itemsReadyResolver;this.itemsReady=new Promise((e=>this.itemsReadyResolver=e)),e()}class Zo extends Ka{constructor(){super(),this.mdcAdapter=null,this.mdcFoundationClass=Ko,this.activatable=!1,this.multi=!1,this.wrapFocus=!1,this.itemRoles=null,this.innerRole=null,this.innerAriaLabel=null,this.rootTabbable=!1,this.previousTabindex=null,this.noninteractive=!1,this.itemsReadyResolver=()=>{},this.itemsReady=Promise.resolve([]),this.items_=[];const e=function(e,t=50){let i;return function(n=!0){clearTimeout(i),i=setTimeout((()=>{e(n)}),t)}}(this.layout.bind(this));this.debouncedLayout=(t=!0)=>{Xo.call(this),e(t)}}async getUpdateComplete(){const e=await super.getUpdateComplete();return await this.itemsReady,e}get items(){return this.items_}updateItems(){var e;const t=null!==(e=this.assignedElements)&&void 0!==e?e:[],i=[];for(const e of t)Jo(e)&&(i.push(e),e._managingList=this),e.hasAttribute("divider")&&!e.hasAttribute("role")&&e.setAttribute("role","separator");this.items_=i;const n=new Set;if(this.items_.forEach(((e,t)=>{this.itemRoles?e.setAttribute("role",this.itemRoles):e.removeAttribute("role"),e.selected&&n.add(t)})),this.multi)this.select(n);else{const e=n.size?n.entries().next().value[1]:-1;this.select(e)}const a=new Event("items-updated",{bubbles:!0,composed:!0});this.dispatchEvent(a)}get selected(){const e=this.index;if(!qo(e))return-1===e?null:this.items[e];const t=[];for(const i of e)t.push(this.items[i]);return t}get index(){return this.mdcFoundation?this.mdcFoundation.getSelectedIndex():-1}render(){const e=null===this.innerRole?void 0:this.innerRole,t=null===this.innerAriaLabel?void 0:this.innerAriaLabel,i=this.rootTabbable?"0":"-1";return ye`
<!-- @ts-ignore -->
<ul
tabindex=${i}
role="${uo(e)}"
aria-label="${uo(t)}"
class="mdc-deprecated-list"
@keydown=${this.onKeydown}
@focusin=${this.onFocusIn}
@focusout=${this.onFocusOut}
@request-selected=${this.onRequestSelected}
@list-item-rendered=${this.onListItemConnected}>
<slot></slot>
${this.renderPlaceholder()}
</ul>
`}renderPlaceholder(){var e;const t=null!==(e=this.assignedElements)&&void 0!==e?e:[];return void 0!==this.emptyMessage&&0===t.length?ye`
<mwc-list-item noninteractive>${this.emptyMessage}</mwc-list-item>
`:null}firstUpdated(){super.firstUpdated(),this.items.length||(this.mdcFoundation.setMulti(this.multi),this.layout())}onFocusIn(e){if(this.mdcFoundation&&this.mdcRoot){const t=this.getIndexOfTarget(e);this.mdcFoundation.handleFocusIn(e,t)}}onFocusOut(e){if(this.mdcFoundation&&this.mdcRoot){const t=this.getIndexOfTarget(e);this.mdcFoundation.handleFocusOut(e,t)}}onKeydown(e){if(this.mdcFoundation&&this.mdcRoot){const t=this.getIndexOfTarget(e),i=e.target,n=Jo(i);this.mdcFoundation.handleKeydown(e,n,t)}}onRequestSelected(e){if(this.mdcFoundation){let t=this.getIndexOfTarget(e);if(-1===t&&(this.layout(),t=this.getIndexOfTarget(e),-1===t))return;if(this.items[t].disabled)return;const i=e.detail.selected,n=e.detail.source;this.mdcFoundation.handleSingleSelection(t,"interaction"===n,i),e.stopPropagation()}}getIndexOfTarget(e){const t=this.items,i=e.composedPath();for(const e of i){let i=-1;if(Ba(e)&&Jo(e)&&(i=t.indexOf(e)),-1!==i)return i}return-1}createAdapter(){return this.mdcAdapter={getListItemCount:()=>this.mdcRoot?this.items.length:0,getFocusedElementIndex:this.getFocusedItemIndex,getAttributeForElementIndex:(e,t)=>{if(!this.mdcRoot)return"";const i=this.items[e];return i?i.getAttribute(t):""},setAttributeForElementIndex:(e,t,i)=>{if(!this.mdcRoot)return;const n=this.items[e];n&&n.setAttribute(t,i)},focusItemAtIndex:e=>{const t=this.items[e];t&&t.focus()},setTabIndexForElementIndex:(e,t)=>{const i=this.items[e];i&&(i.tabindex=t)},notifyAction:e=>{const t={bubbles:!0,composed:!0};t.detail={index:e};const i=new CustomEvent("action",t);this.dispatchEvent(i)},notifySelected:(e,t)=>{const i={bubbles:!0,composed:!0};i.detail={index:e,diff:t};const n=new CustomEvent("selected",i);this.dispatchEvent(n)},isFocusInsideList:()=>Ga(this),isRootFocused:()=>{const e=this.mdcRoot;return e.getRootNode().activeElement===e},setDisabledStateForElementIndex:(e,t)=>{const i=this.items[e];i&&(i.disabled=t)},getDisabledStateForElementIndex:e=>{const t=this.items[e];return!!t&&t.disabled},setSelectedStateForElementIndex:(e,t)=>{const i=this.items[e];i&&(i.selected=t)},getSelectedStateForElementIndex:e=>{const t=this.items[e];return!!t&&t.selected},setActivatedStateForElementIndex:(e,t)=>{const i=this.items[e];i&&(i.activated=t)}},this.mdcAdapter}selectUi(e,t=!1){const i=this.items[e];i&&(i.selected=!0,i.activated=t)}deselectUi(e){const t=this.items[e];t&&(t.selected=!1,t.activated=!1)}select(e){this.mdcFoundation&&this.mdcFoundation.setSelectedIndex(e)}toggle(e,t){this.multi&&this.mdcFoundation.toggleMultiAtIndex(e,t)}onListItemConnected(e){const t=e.target;this.layout(-1===this.items.indexOf(t))}layout(e=!0){e&&this.updateItems();const t=this.items[0];for(const e of this.items)e.tabindex=-1;t&&(this.noninteractive?this.previousTabindex||(this.previousTabindex=t):t.tabindex=0),this.itemsReadyResolver()}getFocusedItemIndex(){if(!this.mdcRoot)return-1;if(!this.items.length)return-1;const e=qa();if(!e.length)return-1;for(let t=e.length-1;t>=0;t--){const i=e[t];if(Jo(i))return this.items.indexOf(i)}return-1}focusItemAtIndex(e){for(const e of this.items)if(0===e.tabindex){e.tabindex=-1;break}this.items[e].tabindex=0,this.items[e].focus()}focus(){const e=this.mdcRoot;e&&e.focus()}blur(){const e=this.mdcRoot;e&&e.blur()}}a([pt({type:String})],Zo.prototype,"emptyMessage",void 0),a([_t(".mdc-deprecated-list")],Zo.prototype,"mdcRoot",void 0),a([bt("")],Zo.prototype,"assignedElements",void 0),a([bt("")],Zo.prototype,"tabbableElements",void 0),a([pt({type:Boolean}),eo((function(e){this.mdcFoundation&&this.mdcFoundation.setUseActivatedClass(e)}))],Zo.prototype,"activatable",void 0),a([pt({type:Boolean}),eo((function(e,t){this.mdcFoundation&&this.mdcFoundation.setMulti(e),void 0!==t&&this.layout()}))],Zo.prototype,"multi",void 0),a([pt({type:Boolean}),eo((function(e){this.mdcFoundation&&this.mdcFoundation.setWrapFocus(e)}))],Zo.prototype,"wrapFocus",void 0),a([pt({type:String}),eo((function(e,t){void 0!==t&&this.updateItems()}))],Zo.prototype,"itemRoles",void 0),a([pt({type:String})],Zo.prototype,"innerRole",void 0),a([pt({type:String})],Zo.prototype,"innerAriaLabel",void 0),a([pt({type:Boolean})],Zo.prototype,"rootTabbable",void 0),a([pt({type:Boolean,reflect:!0}),eo((function(e){var t,i;if(e){const e=null!==(i=null===(t=this.tabbableElements)||void 0===t?void 0:t[0])&&void 0!==i?i:null;this.previousTabindex=e,e&&e.setAttribute("tabindex","-1")}else!e&&this.previousTabindex&&(this.previousTabindex.setAttribute("tabindex","0"),this.previousTabindex=null)}))],Zo.prototype,"noninteractive",void 0);
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
class Qo{constructor(e){this.startPress=t=>{e().then((e=>{e&&e.startPress(t)}))},this.endPress=()=>{e().then((e=>{e&&e.endPress()}))},this.startFocus=()=>{e().then((e=>{e&&e.startFocus()}))},this.endFocus=()=>{e().then((e=>{e&&e.endFocus()}))},this.startHover=()=>{e().then((e=>{e&&e.startHover()}))},this.endHover=()=>{e().then((e=>{e&&e.endHover()}))}}}
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/class er extends lt{constructor(){super(...arguments),this.value="",this.group=null,this.tabindex=-1,this.disabled=!1,this.twoline=!1,this.activated=!1,this.graphic=null,this.multipleGraphics=!1,this.hasMeta=!1,this.noninteractive=!1,this.selected=!1,this.shouldRenderRipple=!1,this._managingList=null,this.boundOnClick=this.onClick.bind(this),this._firstChanged=!0,this._skipPropRequest=!1,this.rippleHandlers=new Qo((()=>(this.shouldRenderRipple=!0,this.ripple))),this.listeners=[{target:this,eventNames:["click"],cb:()=>{this.onClick()}},{target:this,eventNames:["mouseenter"],cb:this.rippleHandlers.startHover},{target:this,eventNames:["mouseleave"],cb:this.rippleHandlers.endHover},{target:this,eventNames:["focus"],cb:this.rippleHandlers.startFocus},{target:this,eventNames:["blur"],cb:this.rippleHandlers.endFocus},{target:this,eventNames:["mousedown","touchstart"],cb:e=>{const t=e.type;this.onDown("mousedown"===t?"mouseup":"touchend",e)}}]}get text(){const e=this.textContent;return e?e.trim():""}render(){const e=this.renderText(),t=this.graphic?this.renderGraphic():ye``,i=this.hasMeta?this.renderMeta():ye``;return ye`
${this.renderRipple()}
${t}
${e}
${i}`}renderRipple(){return this.shouldRenderRipple?ye`
<mwc-ripple
.activated=${this.activated}>
</mwc-ripple>`:this.activated?ye`<div class="fake-activated-ripple"></div>`:""}renderGraphic(){const e={multi:this.multipleGraphics};return ye`
<span class="mdc-deprecated-list-item__graphic material-icons ${so(e)}">
<slot name="graphic"></slot>
</span>`}renderMeta(){return ye`
<span class="mdc-deprecated-list-item__meta material-icons">
<slot name="meta"></slot>
</span>`}renderText(){const e=this.twoline?this.renderTwoline():this.renderSingleLine();return ye`
<span class="mdc-deprecated-list-item__text">
${e}
</span>`}renderSingleLine(){return ye`<slot></slot>`}renderTwoline(){return ye`
<span class="mdc-deprecated-list-item__primary-text">
<slot></slot>
</span>
<span class="mdc-deprecated-list-item__secondary-text">
<slot name="secondary"></slot>
</span>
`}onClick(){this.fireRequestSelected(!this.selected,"interaction")}onDown(e,t){const i=()=>{window.removeEventListener(e,i),this.rippleHandlers.endPress()};window.addEventListener(e,i),this.rippleHandlers.startPress(t)}fireRequestSelected(e,t){if(this.noninteractive)return;const i=new CustomEvent("request-selected",{bubbles:!0,composed:!0,detail:{source:t,selected:e}});this.dispatchEvent(i)}connectedCallback(){super.connectedCallback(),this.noninteractive||this.setAttribute("mwc-list-item","");for(const e of this.listeners)for(const t of e.eventNames)e.target.addEventListener(t,e.cb,{passive:!0})}disconnectedCallback(){super.disconnectedCallback();for(const e of this.listeners)for(const t of e.eventNames)e.target.removeEventListener(t,e.cb);this._managingList&&(this._managingList.debouncedLayout?this._managingList.debouncedLayout(!0):this._managingList.layout(!0))}firstUpdated(){const e=new Event("list-item-rendered",{bubbles:!0,composed:!0});this.dispatchEvent(e)}}a([_t("slot")],er.prototype,"slotElement",void 0),a([yt("mwc-ripple")],er.prototype,"ripple",void 0),a([pt({type:String})],er.prototype,"value",void 0),a([pt({type:String,reflect:!0})],er.prototype,"group",void 0),a([pt({type:Number,reflect:!0})],er.prototype,"tabindex",void 0),a([pt({type:Boolean,reflect:!0}),eo((function(e){e?this.setAttribute("aria-disabled","true"):this.setAttribute("aria-disabled","false")}))],er.prototype,"disabled",void 0),a([pt({type:Boolean,reflect:!0})],er.prototype,"twoline",void 0),a([pt({type:Boolean,reflect:!0})],er.prototype,"activated",void 0),a([pt({type:String,reflect:!0})],er.prototype,"graphic",void 0),a([pt({type:Boolean})],er.prototype,"multipleGraphics",void 0),a([pt({type:Boolean})],er.prototype,"hasMeta",void 0),a([pt({type:Boolean,reflect:!0}),eo((function(e){e?(this.removeAttribute("aria-checked"),this.removeAttribute("mwc-list-item"),this.selected=!1,this.activated=!1,this.tabIndex=-1):this.setAttribute("mwc-list-item","")}))],er.prototype,"noninteractive",void 0),a([pt({type:Boolean,reflect:!0}),eo((function(e){const t=this.getAttribute("role"),i="gridcell"===t||"option"===t||"row"===t||"tab"===t;i&&e?this.setAttribute("aria-selected","true"):i&&this.setAttribute("aria-selected","false"),this._firstChanged?this._firstChanged=!1:this._skipPropRequest||this.fireRequestSelected(e,"property")}))],er.prototype,"selected",void 0),a([ft()],er.prototype,"shouldRenderRipple",void 0),a([ft()],er.prototype,"_managingList",void 0);
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
*/
const tr=je`@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{display:block}.mdc-deprecated-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);line-height:1.5rem;margin:0;padding:8px 0;list-style-type:none;color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));padding:var(--mdc-list-vertical-padding, 8px) 0}.mdc-deprecated-list:focus{outline:none}.mdc-deprecated-list-item{height:48px}.mdc-deprecated-list--dense{padding-top:4px;padding-bottom:4px;font-size:.812rem}.mdc-deprecated-list ::slotted([divider]){height:0;margin:0;border:none;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgba(0, 0, 0, 0.12)}.mdc-deprecated-list ::slotted([divider][padded]){margin:0 var(--mdc-list-side-padding, 16px)}.mdc-deprecated-list ::slotted([divider][inset]){margin-left:var(--mdc-list-inset-margin, 72px);margin-right:0;width:calc( 100% - var(--mdc-list-inset-margin, 72px) )}[dir=rtl] .mdc-deprecated-list ::slotted([divider][inset]),.mdc-deprecated-list ::slotted([divider][inset][dir=rtl]){margin-left:0;margin-right:var(--mdc-list-inset-margin, 72px)}.mdc-deprecated-list ::slotted([divider][inset][padded]){width:calc( 100% - var(--mdc-list-inset-margin, 72px) - var(--mdc-list-side-padding, 16px) )}.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:40px}.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 20px}.mdc-deprecated-list--two-line.mdc-deprecated-list--dense ::slotted([mwc-list-item]),.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:60px}.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 36px}:host([noninteractive]){pointer-events:none;cursor:default}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text){display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}`
/**
* @license
* Copyright 2018 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/;var ir,nr={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},ar={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",SELECTED_EVENT:"MDCMenu:selected",SKIP_RESTORE_FOCUS:"data-menu-item-skip-restore-focus"},or={FOCUS_ROOT_INDEX:-1};!function(e){e[e.NONE=0]="NONE",e[e.LIST_ROOT=1]="LIST_ROOT",e[e.FIRST_ITEM=2]="FIRST_ITEM",e[e.LAST_ITEM=3]="LAST_ITEM"}(ir||(ir={}));
/**
* @license
* Copyright 2018 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
var rr,sr,dr={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},lr={CLOSED_EVENT:"MDCMenuSurface:closed",CLOSING_EVENT:"MDCMenuSurface:closing",OPENED_EVENT:"MDCMenuSurface:opened",OPENING_EVENT:"MDCMenuSurface:opening",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},cr={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67,TOUCH_EVENT_WAIT_MS:30};!function(e){e[e.BOTTOM=1]="BOTTOM",e[e.CENTER=2]="CENTER",e[e.RIGHT=4]="RIGHT",e[e.FLIP_RTL=8]="FLIP_RTL"}(rr||(rr={})),function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=4]="TOP_RIGHT",e[e.BOTTOM_LEFT=1]="BOTTOM_LEFT",e[e.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",e[e.TOP_START=8]="TOP_START",e[e.TOP_END=12]="TOP_END",e[e.BOTTOM_START=9]="BOTTOM_START",e[e.BOTTOM_END=13]="BOTTOM_END"}(sr||(sr={}));
/**
* @license
* Copyright 2018 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
var mr=function(e){function t(i){var a=e.call(this,n(n({},t.defaultAdapter),i))||this;return a.isSurfaceOpen=!1,a.isQuickOpen=!1,a.isHoistedElement=!1,a.isFixedPosition=!1,a.isHorizontallyCenteredOnViewport=!1,a.maxHeight=0,a.openBottomBias=0,a.openAnimationEndTimerId=0,a.closeAnimationEndTimerId=0,a.animationRequestId=0,a.anchorCorner=sr.TOP_START,a.originCorner=sr.TOP_START,a.anchorMargin={top:0,right:0,bottom:0,left:0},a.position={x:0,y:0},a}return i(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return dr},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return lr},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return cr},enumerable:!1,configurable:!0}),Object.defineProperty(t,"Corner",{get:function(){return sr},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyClosing:function(){},notifyOpen:function(){},notifyOpening:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=t.cssClasses,i=e.ROOT,n=e.OPEN;if(!this.adapter.hasClass(i))throw new Error(i+" class required in root element.");this.adapter.hasClass(n)&&(this.isSurfaceOpen=!0)},t.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},t.prototype.setAnchorCorner=function(e){this.anchorCorner=e},t.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^rr.RIGHT},t.prototype.setAnchorMargin=function(e){this.anchorMargin.top=e.top||0,this.anchorMargin.right=e.right||0,this.anchorMargin.bottom=e.bottom||0,this.anchorMargin.left=e.left||0},t.prototype.setIsHoisted=function(e){this.isHoistedElement=e},t.prototype.setFixedPosition=function(e){this.isFixedPosition=e},t.prototype.isFixed=function(){return this.isFixedPosition},t.prototype.setAbsolutePosition=function(e,t){this.position.x=this.isFinite(e)?e:0,this.position.y=this.isFinite(t)?t:0},t.prototype.setIsHorizontallyCenteredOnViewport=function(e){this.isHorizontallyCenteredOnViewport=e},t.prototype.setQuickOpen=function(e){this.isQuickOpen=e},t.prototype.setMaxHeight=function(e){this.maxHeight=e},t.prototype.setOpenBottomBias=function(e){this.openBottomBias=e},t.prototype.isOpen=function(){return this.isSurfaceOpen},t.prototype.open=function(){var e=this;this.isSurfaceOpen||(this.adapter.notifyOpening(),this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(t.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(t.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame((function(){e.dimensions=e.adapter.getInnerDimensions(),e.autoposition(),e.adapter.addClass(t.cssClasses.OPEN),e.openAnimationEndTimerId=setTimeout((function(){e.openAnimationEndTimerId=0,e.adapter.removeClass(t.cssClasses.ANIMATING_OPEN),e.adapter.notifyOpen()}),cr.TRANSITION_OPEN_DURATION)})),this.isSurfaceOpen=!0))},t.prototype.close=function(e){var i=this;if(void 0===e&&(e=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen)return this.isSurfaceOpen=!1,e||this.maybeRestoreFocus(),this.adapter.removeClass(t.cssClasses.OPEN),this.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(t.cssClasses.ANIMATING_CLOSED),requestAnimationFrame((function(){i.adapter.removeClass(t.cssClasses.OPEN),i.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),i.closeAnimationEndTimerId=setTimeout((function(){i.closeAnimationEndTimerId=0,i.adapter.removeClass(t.cssClasses.ANIMATING_CLOSED),i.adapter.notifyClose()}),cr.TRANSITION_CLOSE_DURATION)})),this.isSurfaceOpen=!1,e||this.maybeRestoreFocus()}},t.prototype.handleBodyClick=function(e){var t=e.target;this.adapter.isElementInContainer(t)||this.close()},t.prototype.handleKeydown=function(e){var t=e.keyCode;("Escape"===e.key||27===t)&&this.close()},t.prototype.autoposition=function(){var e;this.measurements=this.getAutoLayoutmeasurements();var i=this.getoriginCorner(),n=this.getMenuSurfaceMaxHeight(i),a=this.hasBit(i,rr.BOTTOM)?"bottom":"top",o=this.hasBit(i,rr.RIGHT)?"right":"left",r=this.getHorizontalOriginOffset(i),s=this.getVerticalOriginOffset(i),d=this.measurements,l=d.anchorSize,c=d.surfaceSize,m=((e={})[o]=r,e[a]=s,e);l.width/c.width>cr.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(o="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(m),this.adapter.setTransformOrigin(o+" "+a),this.adapter.setPosition(m),this.adapter.setMaxHeight(n?n+"px":""),this.hasBit(i,rr.BOTTOM)||this.adapter.addClass(t.cssClasses.IS_OPEN_BELOW)},t.prototype.getAutoLayoutmeasurements=function(){var e=this.adapter.getAnchorDimensions(),t=this.adapter.getBodyDimensions(),i=this.adapter.getWindowDimensions(),n=this.adapter.getWindowScroll();return e||(e={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:e,bodySize:t,surfaceSize:this.dimensions,viewportDistance:{top:e.top,right:i.width-e.right,bottom:i.height-e.bottom,left:e.left},viewportSize:i,windowScroll:n}},t.prototype.getoriginCorner=function(){var e,i,n=this.originCorner,a=this.measurements,o=a.viewportDistance,r=a.anchorSize,s=a.surfaceSize,d=t.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,rr.BOTTOM)?(e=o.top-d+this.anchorMargin.bottom,i=o.bottom-d-this.anchorMargin.bottom):(e=o.top-d+this.anchorMargin.top,i=o.bottom-d+r.height-this.anchorMargin.top),!(i-s.height>0)&&e>i+this.openBottomBias&&(n=this.setBit(n,rr.BOTTOM));var l,c,m=this.adapter.isRtl(),h=this.hasBit(this.anchorCorner,rr.FLIP_RTL),u=this.hasBit(this.anchorCorner,rr.RIGHT)||this.hasBit(n,rr.RIGHT),p=!1;(p=m&&h?!u:u)?(l=o.left+r.width+this.anchorMargin.right,c=o.right-this.anchorMargin.right):(l=o.left+this.anchorMargin.left,c=o.right+r.width-this.anchorMargin.left);var f=l-s.width>0,g=c-s.width>0,v=this.hasBit(n,rr.FLIP_RTL)&&this.hasBit(n,rr.RIGHT);return g&&v&&m||!f&&v?n=this.unsetBit(n,rr.RIGHT):(f&&p&&m||f&&!p&&u||!g&&l>=c)&&(n=this.setBit(n,rr.RIGHT)),n},t.prototype.getMenuSurfaceMaxHeight=function(e){if(this.maxHeight>0)return this.maxHeight;var i=this.measurements.viewportDistance,n=0,a=this.hasBit(e,rr.BOTTOM),o=this.hasBit(this.anchorCorner,rr.BOTTOM),r=t.numbers.MARGIN_TO_EDGE;return a?(n=i.top+this.anchorMargin.top-r,o||(n+=this.measurements.anchorSize.height)):(n=i.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-r,o&&(n-=this.measurements.anchorSize.height)),n},t.prototype.getHorizontalOriginOffset=function(e){var t=this.measurements.anchorSize,i=this.hasBit(e,rr.RIGHT),n=this.hasBit(this.anchorCorner,rr.RIGHT);if(i){var a=n?t.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?a-(this.measurements.viewportSize.width-this.measurements.bodySize.width):a}return n?t.width-this.anchorMargin.right:this.anchorMargin.left},t.prototype.getVerticalOriginOffset=function(e){var t=this.measurements.anchorSize,i=this.hasBit(e,rr.BOTTOM),n=this.hasBit(this.anchorCorner,rr.BOTTOM);return i?n?t.height-this.anchorMargin.top:-this.anchorMargin.bottom:n?t.height+this.anchorMargin.bottom:this.anchorMargin.top},t.prototype.adjustPositionForHoistedElement=function(e){var t,i,n=this.measurements,a=n.windowScroll,r=n.viewportDistance,s=n.surfaceSize,d=n.viewportSize,l=Object.keys(e);try{for(var c=o(l),m=c.next();!m.done;m=c.next()){var h=m.value,u=e[h]||0;!this.isHorizontallyCenteredOnViewport||"left"!==h&&"right"!==h?(u+=r[h],this.isFixedPosition||("top"===h?u+=a.y:"bottom"===h?u-=a.y:"left"===h?u+=a.x:u-=a.x),e[h]=u):e[h]=(d.width-s.width)/2}}catch(e){t={error:e}}finally{try{m&&!m.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}},t.prototype.maybeRestoreFocus=function(){var e=this,t=this.adapter.isFocused(),i=this.adapter.getOwnerDocument?this.adapter.getOwnerDocument():document,n=i.activeElement&&this.adapter.isElementInContainer(i.activeElement);(t||n)&&setTimeout((function(){e.adapter.restoreFocus()}),cr.TOUCH_EVENT_WAIT_MS)},t.prototype.hasBit=function(e,t){return Boolean(e&t)},t.prototype.setBit=function(e,t){return e|t},t.prototype.unsetBit=function(e,t){return e^t},t.prototype.isFinite=function(e){return"number"==typeof e&&isFinite(e)},t}(Ra),hr=function(e){function t(i){var a=e.call(this,n(n({},t.defaultAdapter),i))||this;return a.closeAnimationEndTimerId=0,a.defaultFocusState=ir.LIST_ROOT,a.selectedIndex=-1,a}return i(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return nr},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return ar},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return or},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},getAttributeFromElementAtIndex:function(){return null},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return-1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return-1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.closeAnimationEndTimerId&&clearTimeout(this.closeAnimationEndTimerId),this.adapter.closeSurface()},t.prototype.handleKeydown=function(e){var t=e.key,i=e.keyCode;("Tab"===t||9===i)&&this.adapter.closeSurface(!0)},t.prototype.handleItemAction=function(e){var t=this,i=this.adapter.getElementIndex(e);if(!(i<0)){this.adapter.notifySelected({index:i});var n="true"===this.adapter.getAttributeFromElementAtIndex(i,ar.SKIP_RESTORE_FOCUS);this.adapter.closeSurface(n),this.closeAnimationEndTimerId=setTimeout((function(){var i=t.adapter.getElementIndex(e);i>=0&&t.adapter.isSelectableItemAtIndex(i)&&t.setSelectedIndex(i)}),mr.numbers.TRANSITION_CLOSE_DURATION)}},t.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState){case ir.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case ir.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case ir.NONE:break;default:this.adapter.focusListRoot()}},t.prototype.setDefaultFocusState=function(e){this.defaultFocusState=e},t.prototype.getSelectedIndex=function(){return this.selectedIndex},t.prototype.setSelectedIndex=function(e){if(this.validatedIndex(e),!this.adapter.isSelectableItemAtIndex(e))throw new Error("MDCMenuFoundation: No selection group at specified index.");var t=this.adapter.getSelectedSiblingOfItemAtIndex(e);t>=0&&(this.adapter.removeAttributeFromElementAtIndex(t,ar.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(t,nr.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(e,nr.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(e,ar.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=e},t.prototype.setEnabled=function(e,t){this.validatedIndex(e),t?(this.adapter.removeClassFromElementAtIndex(e,Ho),this.adapter.addAttributeToElementAtIndex(e,ar.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(e,Ho),this.adapter.addAttributeToElementAtIndex(e,ar.ARIA_DISABLED_ATTR,"true"))},t.prototype.validatedIndex=function(e){var t=this.adapter.getMenuItemCount();if(!(e>=0&&e<t))throw new Error("MDCMenuFoundation: No list item at specified index.")},t}(Ra);
/**
* @license
* Copyright 2018 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
class ur extends Ka{constructor(){super(...arguments),this.mdcFoundationClass=hr,this.listElement_=null,this.anchor=null,this.open=!1,this.quick=!1,this.wrapFocus=!1,this.innerRole="menu",this.innerAriaLabel=null,this.corner="TOP_START",this.x=null,this.y=null,this.absolute=!1,this.multi=!1,this.activatable=!1,this.fixed=!1,this.forceGroupSelection=!1,this.fullwidth=!1,this.menuCorner="START",this.stayOpenOnBodyClick=!1,this.defaultFocus="LIST_ROOT",this._listUpdateComplete=null}get listElement(){return this.listElement_||(this.listElement_=this.renderRoot.querySelector("mwc-list")),this.listElement_}get items(){const e=this.listElement;return e?e.items:[]}get index(){const e=this.listElement;return e?e.index:-1}get selected(){const e=this.listElement;return e?e.selected:null}render(){return this.renderSurface()}renderSurface(){const e=this.getSurfaceClasses();return ye`
<mwc-menu-surface
?hidden=${!this.open}
.anchor=${this.anchor}
.open=${this.open}
.quick=${this.quick}
.corner=${this.corner}
.x=${this.x}
.y=${this.y}
.absolute=${this.absolute}
.fixed=${this.fixed}
.fullwidth=${this.fullwidth}
.menuCorner=${this.menuCorner}
?stayOpenOnBodyClick=${this.stayOpenOnBodyClick}
class=${so(e)}
@closed=${this.onClosed}
@opened=${this.onOpened}
@keydown=${this.onKeydown}>
${this.renderList()}
</mwc-menu-surface>`}getSurfaceClasses(){return{"mdc-menu":!0,"mdc-menu-surface":!0}}renderList(){const e="menu"===this.innerRole?"menuitem":"option",t=this.renderListClasses();return ye`
<mwc-list
rootTabbable
.innerAriaLabel=${this.innerAriaLabel}
.innerRole=${this.innerRole}
.multi=${this.multi}
class=${so(t)}
.itemRoles=${e}
.wrapFocus=${this.wrapFocus}
.activatable=${this.activatable}
@action=${this.onAction}>
<slot></slot>
</mwc-list>`}renderListClasses(){return{"mdc-deprecated-list":!0}}createAdapter(){return{addClassToElementAtIndex:(e,t)=>{const i=this.listElement;if(!i)return;const n=i.items[e];n&&("mdc-menu-item--selected"===t?this.forceGroupSelection&&!n.selected&&i.toggle(e,!0):n.classList.add(t))},removeClassFromElementAtIndex:(e,t)=>{const i=this.listElement;if(!i)return;const n=i.items[e];n&&("mdc-menu-item--selected"===t?n.selected&&i.toggle(e,!1):n.classList.remove(t))},addAttributeToElementAtIndex:(e,t,i)=>{const n=this.listElement;if(!n)return;const a=n.items[e];a&&a.setAttribute(t,i)},removeAttributeFromElementAtIndex:(e,t)=>{const i=this.listElement;if(!i)return;const n=i.items[e];n&&n.removeAttribute(t)},getAttributeFromElementAtIndex:(e,t)=>{const i=this.listElement;if(!i)return null;const n=i.items[e];return n?n.getAttribute(t):null},elementContainsClass:(e,t)=>e.classList.contains(t),closeSurface:()=>{this.open=!1},getElementIndex:e=>{const t=this.listElement;return t?t.items.indexOf(e):-1},notifySelected:()=>{},getMenuItemCount:()=>{const e=this.listElement;return e?e.items.length:0},focusItemAtIndex:e=>{const t=this.listElement;if(!t)return;const i=t.items[e];i&&i.focus()},focusListRoot:()=>{this.listElement&&this.listElement.focus()},getSelectedSiblingOfItemAtIndex:e=>{const t=this.listElement;if(!t)return-1;const i=t.items[e];if(!i||!i.group)return-1;for(let n=0;n<t.items.length;n++){if(n===e)continue;const a=t.items[n];if(a.selected&&a.group===i.group)return n}return-1},isSelectableItemAtIndex:e=>{const t=this.listElement;if(!t)return!1;const i=t.items[e];return!!i&&i.hasAttribute("group")}}}onKeydown(e){this.mdcFoundation&&this.mdcFoundation.handleKeydown(e)}onAction(e){const t=this.listElement;if(this.mdcFoundation&&t){const i=e.detail.index,n=t.items[i];n&&this.mdcFoundation.handleItemAction(n)}}onOpened(){this.open=!0,this.mdcFoundation&&this.mdcFoundation.handleMenuSurfaceOpened()}onClosed(){this.open=!1}async getUpdateComplete(){await this._listUpdateComplete;return await super.getUpdateComplete()}async firstUpdated(){super.firstUpdated();const e=this.listElement;e&&(this._listUpdateComplete=e.updateComplete,await this._listUpdateComplete)}select(e){const t=this.listElement;t&&t.select(e)}close(){this.open=!1}show(){this.open=!0}getFocusedItemIndex(){const e=this.listElement;return e?e.getFocusedItemIndex():-1}focusItemAtIndex(e){const t=this.listElement;t&&t.focusItemAtIndex(e)}layout(e=!0){const t=this.listElement;t&&t.layout(e)}}a([_t(".mdc-menu")],ur.prototype,"mdcRoot",void 0),a([_t("slot")],ur.prototype,"slotElement",void 0),a([pt({type:Object})],ur.prototype,"anchor",void 0),a([pt({type:Boolean,reflect:!0})],ur.prototype,"open",void 0),a([pt({type:Boolean})],ur.prototype,"quick",void 0),a([pt({type:Boolean})],ur.prototype,"wrapFocus",void 0),a([pt({type:String})],ur.prototype,"innerRole",void 0),a([pt({type:String})],ur.prototype,"innerAriaLabel",void 0),a([pt({type:String})],ur.prototype,"corner",void 0),a([pt({type:Number})],ur.prototype,"x",void 0),a([pt({type:Number})],ur.prototype,"y",void 0),a([pt({type:Boolean})],ur.prototype,"absolute",void 0),a([pt({type:Boolean})],ur.prototype,"multi",void 0),a([pt({type:Boolean})],ur.prototype,"activatable",void 0),a([pt({type:Boolean})],ur.prototype,"fixed",void 0),a([pt({type:Boolean})],ur.prototype,"forceGroupSelection",void 0),a([pt({type:Boolean})],ur.prototype,"fullwidth",void 0),a([pt({type:String})],ur.prototype,"menuCorner",void 0),a([pt({type:Boolean})],ur.prototype,"stayOpenOnBodyClick",void 0),a([pt({type:String}),eo((function(e){this.mdcFoundation&&this.mdcFoundation.setDefaultFocusState(ir[e])}))],ur.prototype,"defaultFocus",void 0);
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const pr="important",fr=" !"+pr,gr=oo(class extends ro{constructor(e){var t;if(super(e),e.type!==to||"style"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,i)=>{const n=e[i];return null==n?t:t+"".concat(i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(n,";")}),"")}update(e,t){let[i]=t;const{style:n}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(i)),this.render(i);for(const e of this.ft)null==i[e]&&(this.ft.delete(e),e.includes("-")?n.removeProperty(e):n[e]=null);for(const e in i){const t=i[e];if(null!=t){this.ft.add(e);const i="string"==typeof t&&t.endsWith(fr);e.includes("-")||i?n.setProperty(e,i?t.slice(0,-11):t,i?pr:""):n[e]=t}}return be}}),vr={TOP_LEFT:sr.TOP_LEFT,TOP_RIGHT:sr.TOP_RIGHT,BOTTOM_LEFT:sr.BOTTOM_LEFT,BOTTOM_RIGHT:sr.BOTTOM_RIGHT,TOP_START:sr.TOP_START,TOP_END:sr.TOP_END,BOTTOM_START:sr.BOTTOM_START,BOTTOM_END:sr.BOTTOM_END};
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/class _r extends Ka{constructor(){super(...arguments),this.mdcFoundationClass=mr,this.absolute=!1,this.fullwidth=!1,this.fixed=!1,this.x=null,this.y=null,this.quick=!1,this.open=!1,this.stayOpenOnBodyClick=!1,this.bitwiseCorner=sr.TOP_START,this.previousMenuCorner=null,this.menuCorner="START",this.corner="TOP_START",this.styleTop="",this.styleLeft="",this.styleRight="",this.styleBottom="",this.styleMaxHeight="",this.styleTransformOrigin="",this.anchor=null,this.previouslyFocused=null,this.previousAnchor=null,this.onBodyClickBound=()=>{}}render(){return this.renderSurface()}renderSurface(){const e=this.getRootClasses(),t=this.getRootStyles();return ye`
<div
class=${so(e)}
style="${gr(t)}"
@keydown=${this.onKeydown}
@opened=${this.registerBodyClick}
@closed=${this.deregisterBodyClick}>
${this.renderContent()}
</div>`}getRootClasses(){return{"mdc-menu-surface":!0,"mdc-menu-surface--fixed":this.fixed,"mdc-menu-surface--fullwidth":this.fullwidth}}getRootStyles(){return{top:this.styleTop,left:this.styleLeft,right:this.styleRight,bottom:this.styleBottom,"max-height":this.styleMaxHeight,"transform-origin":this.styleTransformOrigin}}renderContent(){return ye`<slot></slot>`}createAdapter(){return Object.assign(Object.assign({},Va(this.mdcRoot)),{hasAnchor:()=>!!this.anchor,notifyClose:()=>{const e=new CustomEvent("closed",{bubbles:!0,composed:!0});this.open=!1,this.mdcRoot.dispatchEvent(e)},notifyClosing:()=>{const e=new CustomEvent("closing",{bubbles:!0,composed:!0});this.mdcRoot.dispatchEvent(e)},notifyOpen:()=>{const e=new CustomEvent("opened",{bubbles:!0,composed:!0});this.open=!0,this.mdcRoot.dispatchEvent(e)},notifyOpening:()=>{const e=new CustomEvent("opening",{bubbles:!0,composed:!0});this.mdcRoot.dispatchEvent(e)},isElementInContainer:()=>!1,isRtl:()=>!!this.mdcRoot&&"rtl"===getComputedStyle(this.mdcRoot).direction,setTransformOrigin:e=>{this.mdcRoot&&(this.styleTransformOrigin=e)},isFocused:()=>Ga(this),saveFocus:()=>{const e=qa(),t=e.length;t||(this.previouslyFocused=null),this.previouslyFocused=e[t-1]},restoreFocus:()=>{this.previouslyFocused&&"focus"in this.previouslyFocused&&this.previouslyFocused.focus()},getInnerDimensions:()=>{const e=this.mdcRoot;return e?{width:e.offsetWidth,height:e.offsetHeight}:{width:0,height:0}},getAnchorDimensions:()=>{const e=this.anchor;return e?e.getBoundingClientRect():null},getBodyDimensions:()=>({width:document.body.clientWidth,height:document.body.clientHeight}),getWindowDimensions:()=>({width:window.innerWidth,height:window.innerHeight}),getWindowScroll:()=>({x:window.pageXOffset,y:window.pageYOffset}),setPosition:e=>{this.mdcRoot&&(this.styleLeft="left"in e?`${e.left}px`:"",this.styleRight="right"in e?`${e.right}px`:"",this.styleTop="top"in e?`${e.top}px`:"",this.styleBottom="bottom"in e?`${e.bottom}px`:"")},setMaxHeight:async e=>{this.mdcRoot&&(this.styleMaxHeight=e,await this.updateComplete,this.styleMaxHeight=`var(--mdc-menu-max-height, ${e})`)}})}onKeydown(e){this.mdcFoundation&&this.mdcFoundation.handleKeydown(e)}onBodyClick(e){if(this.stayOpenOnBodyClick)return;-1===e.composedPath().indexOf(this)&&this.close()}registerBodyClick(){this.onBodyClickBound=this.onBodyClick.bind(this),document.body.addEventListener("click",this.onBodyClickBound,{passive:!0,capture:!0})}deregisterBodyClick(){document.body.removeEventListener("click",this.onBodyClickBound,{capture:!0})}onOpenChanged(e,t){this.mdcFoundation&&(e?this.mdcFoundation.open():void 0!==t&&this.mdcFoundation.close())}close(){this.open=!1}show(){this.open=!0}}a([_t(".mdc-menu-surface")],_r.prototype,"mdcRoot",void 0),a([_t("slot")],_r.prototype,"slotElement",void 0),a([pt({type:Boolean}),eo((function(e){this.mdcFoundation&&!this.fixed&&this.mdcFoundation.setIsHoisted(e)}))],_r.prototype,"absolute",void 0),a([pt({type:Boolean})],_r.prototype,"fullwidth",void 0),a([pt({type:Boolean}),eo((function(e){this.mdcFoundation&&!this.absolute&&this.mdcFoundation.setFixedPosition(e)}))],_r.prototype,"fixed",void 0),a([pt({type:Number}),eo((function(e){this.mdcFoundation&&null!==this.y&&null!==e&&(this.mdcFoundation.setAbsolutePosition(e,this.y),this.mdcFoundation.setAnchorMargin({left:e,top:this.y,right:-e,bottom:this.y}))}))],_r.prototype,"x",void 0),a([pt({type:Number}),eo((function(e){this.mdcFoundation&&null!==this.x&&null!==e&&(this.mdcFoundation.setAbsolutePosition(this.x,e),this.mdcFoundation.setAnchorMargin({left:this.x,top:e,right:-this.x,bottom:e}))}))],_r.prototype,"y",void 0),a([pt({type:Boolean}),eo((function(e){this.mdcFoundation&&this.mdcFoundation.setQuickOpen(e)}))],_r.prototype,"quick",void 0),a([pt({type:Boolean,reflect:!0}),eo((function(e,t){this.onOpenChanged(e,t)}))],_r.prototype,"open",void 0),a([pt({type:Boolean})],_r.prototype,"stayOpenOnBodyClick",void 0),a([ft(),eo((function(e){this.mdcFoundation&&this.mdcFoundation.setAnchorCorner(e)}))],_r.prototype,"bitwiseCorner",void 0),a([pt({type:String}),eo((function(e){if(this.mdcFoundation){const t="START"===e||"END"===e,i=null===this.previousMenuCorner,n=!i&&e!==this.previousMenuCorner;t&&(n||i&&"END"===e)&&(this.bitwiseCorner=this.bitwiseCorner^rr.RIGHT,this.mdcFoundation.flipCornerHorizontally(),this.previousMenuCorner=e)}}))],_r.prototype,"menuCorner",void 0),a([pt({type:String}),eo((function(e){if(this.mdcFoundation&&e){let t=vr[e];"END"===this.menuCorner&&(t^=rr.RIGHT),this.bitwiseCorner=t}}))],_r.prototype,"corner",void 0),a([ft()],_r.prototype,"styleTop",void 0),a([ft()],_r.prototype,"styleLeft",void 0),a([ft()],_r.prototype,"styleRight",void 0),a([ft()],_r.prototype,"styleBottom",void 0),a([ft()],_r.prototype,"styleMaxHeight",void 0),a([ft()],_r.prototype,"styleTransformOrigin",void 0);
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
*/
const yr=je`.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;transition:opacity .03s linear,transform .12s cubic-bezier(0, 0, 0.2, 1),height 250ms cubic-bezier(0, 0, 0.2, 1);box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2),0px 8px 10px 1px rgba(0, 0, 0, 0.14),0px 3px 14px 2px rgba(0,0,0,.12);background-color:#fff;background-color:var(--mdc-theme-surface, #fff);color:#000;color:var(--mdc-theme-on-surface, #000);border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0;transition:opacity .075s linear}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}:host(:not([open])){display:none}.mdc-menu-surface{z-index:8;z-index:var(--mdc-menu-z-index, 8);min-width:112px;min-width:var(--mdc-menu-min-width, 112px)}`
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
*/,br=je`mwc-list ::slotted([mwc-list-item]:not([twoline])),mwc-list ::slotted([noninteractive]:not([twoline])){height:var(--mdc-menu-item-height, 48px)}`
/**
* @license
* Copyright 2018 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/;var xr={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},wr={NOTCH_ELEMENT_PADDING:8},kr={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},Mr=function(e){function t(i){return e.call(this,n(n({},t.defaultAdapter),i))||this}return i(t,e),Object.defineProperty(t,"strings",{get:function(){return xr},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return kr},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return wr},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!1,configurable:!0}),t.prototype.notch=function(e){var i=t.cssClasses.OUTLINE_NOTCHED;e>0&&(e+=wr.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(e),this.adapter.addClass(i)},t.prototype.closeNotch=function(){var e=t.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(e),this.adapter.removeNotchWidthProperty()},t}(Ra);
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
class Er extends Ka{constructor(){super(...arguments),this.mdcFoundationClass=Mr,this.width=0,this.open=!1,this.lastOpen=this.open}createAdapter(){return{addClass:e=>this.mdcRoot.classList.add(e),removeClass:e=>this.mdcRoot.classList.remove(e),setNotchWidthProperty:e=>this.notchElement.style.setProperty("width",`${e}px`),removeNotchWidthProperty:()=>this.notchElement.style.removeProperty("width")}}openOrClose(e,t){this.mdcFoundation&&(e&&void 0!==t?this.mdcFoundation.notch(t):this.mdcFoundation.closeNotch())}render(){this.openOrClose(this.open,this.width);const e=so({"mdc-notched-outline--notched":this.open});return ye`
<span class="mdc-notched-outline ${e}">
<span class="mdc-notched-outline__leading"></span>
<span class="mdc-notched-outline__notch">
<slot></slot>
</span>
<span class="mdc-notched-outline__trailing"></span>
</span>`}}a([_t(".mdc-notched-outline")],Er.prototype,"mdcRoot",void 0),a([pt({type:Number})],Er.prototype,"width",void 0),a([pt({type:Boolean,reflect:!0})],Er.prototype,"open",void 0),a([_t(".mdc-notched-outline__notch")],Er.prototype,"notchElement",void 0);
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
*/
const Tr=je`.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}:host{display:block;position:absolute;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] :host,:host([dir=rtl]){text-align:right}::slotted(.mdc-floating-label){display:inline-block;position:relative;top:17px;bottom:auto;max-width:100%}::slotted(.mdc-floating-label--float-above){text-overflow:clip}.mdc-notched-outline--upgraded ::slotted(.mdc-floating-label--float-above){max-width:calc(100% / 0.75)}.mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-notched-outline .mdc-notched-outline__leading,.mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-color:var(--mdc-notched-outline-border-color, var(--mdc-theme-primary, #6200ee));border-width:1px;border-width:var(--mdc-notched-outline-stroke-width, 1px)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0;padding-top:var(--mdc-notched-outline-notch-offset, 0)}`
/**
* @license
* Copyright 2018 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/;
/**
* @license
* Copyright 2016 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
var Dr={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},Lr={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},Sr={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
/**
* @license
* Copyright 2016 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
var Ar=["touchstart","pointerdown","mousedown","keydown"],Cr=["touchend","pointerup","mouseup","contextmenu"],Ir=[],Or=function(e){function t(i){var a=e.call(this,n(n({},t.defaultAdapter),i))||this;return a.activationAnimationHasEnded=!1,a.activationTimer=0,a.fgDeactivationRemovalTimer=0,a.fgScale="0",a.frame={width:0,height:0},a.initialSize=0,a.layoutFrame=0,a.maxRadius=0,a.unboundedCoords={left:0,top:0},a.activationState=a.defaultActivationState(),a.activationTimerCallback=function(){a.activationAnimationHasEnded=!0,a.runDeactivationUXLogicIfReady()},a.activateHandler=function(e){a.activateImpl(e)},a.deactivateHandler=function(){a.deactivateImpl()},a.focusHandler=function(){a.handleFocus()},a.blurHandler=function(){a.handleBlur()},a.resizeHandler=function(){a.layout()},a}return i(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return Dr},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return Lr},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return Sr},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var n=t.cssClasses,a=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame((function(){e.adapter.addClass(a),e.adapter.isUnbounded()&&(e.adapter.addClass(o),e.layoutInternal())}))}},t.prototype.destroy=function(){var e=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(t.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(t.cssClasses.FG_DEACTIVATION));var i=t.cssClasses,n=i.ROOT,a=i.UNBOUNDED;requestAnimationFrame((function(){e.adapter.removeClass(n),e.adapter.removeClass(a),e.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},t.prototype.activate=function(e){this.activateImpl(e)},t.prototype.deactivate=function(){this.deactivateImpl()},t.prototype.layout=function(){var e=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){e.layoutInternal(),e.layoutFrame=0}))},t.prototype.setUnbounded=function(e){var i=t.cssClasses.UNBOUNDED;e?this.adapter.addClass(i):this.adapter.removeClass(i)},t.prototype.handleFocus=function(){var e=this;requestAnimationFrame((function(){return e.adapter.addClass(t.cssClasses.BG_FOCUSED)}))},t.prototype.handleBlur=function(){var e=this;requestAnimationFrame((function(){return e.adapter.removeClass(t.cssClasses.BG_FOCUSED)}))},t.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},t.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},t.prototype.registerRootHandlers=function(e){var t,i;if(e){try{for(var n=o(Ar),a=n.next();!a.done;a=n.next()){var r=a.value;this.adapter.registerInteractionHandler(r,this.activateHandler)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},t.prototype.registerDeactivationHandlers=function(e){var t,i;if("keydown"===e.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var n=o(Cr),a=n.next();!a.done;a=n.next()){var r=a.value;this.adapter.registerDocumentInteractionHandler(r,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}},t.prototype.deregisterRootHandlers=function(){var e,t;try{for(var i=o(Ar),n=i.next();!n.done;n=i.next()){var a=n.value;this.adapter.deregisterInteractionHandler(a,this.activateHandler)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},t.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=o(Cr),n=i.next();!n.done;n=i.next()){var a=n.value;this.adapter.deregisterDocumentInteractionHandler(a,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},t.prototype.removeCssVars=function(){var e=this,i=t.strings;Object.keys(i).forEach((function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(i[t],null)}))},t.prototype.activateImpl=function(e){var t=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var n=this.previousActivationEvent;if(!(n&&void 0!==e&&n.type!==e.type))i.isActivated=!0,i.isProgrammatic=void 0===e,i.activationEvent=e,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==e&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type)),void 0!==e&&Ir.length>0&&Ir.some((function(e){return t.adapter.containsEventTarget(e)}))?this.resetActivationState():(void 0!==e&&(Ir.push(e.target),this.registerDeactivationHandlers(e)),i.wasElementMadeActive=this.checkElementMadeActive(e),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){Ir=[],i.wasElementMadeActive||void 0===e||" "!==e.key&&32!==e.keyCode||(i.wasElementMadeActive=t.checkElementMadeActive(e),i.wasElementMadeActive&&t.animateActivation()),i.wasElementMadeActive||(t.activationState=t.defaultActivationState())})))}}},t.prototype.checkElementMadeActive=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive()},t.prototype.animateActivation=function(){var e=this,i=t.strings,n=i.VAR_FG_TRANSLATE_START,a=i.VAR_FG_TRANSLATE_END,o=t.cssClasses,r=o.FG_DEACTIVATION,s=o.FG_ACTIVATION,d=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var l="",c="";if(!this.adapter.isUnbounded()){var m=this.getFgTranslationCoordinates(),h=m.startPoint,u=m.endPoint;l=h.x+"px, "+h.y+"px",c=u.x+"px, "+u.y+"px"}this.adapter.updateCssVariable(n,l),this.adapter.updateCssVariable(a,c),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(r),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout((function(){e.activationTimerCallback()}),d)},t.prototype.getFgTranslationCoordinates=function(){var e,t=this.activationState,i=t.activationEvent;return e=t.wasActivatedByPointer?function(e,t,i){if(!e)return{x:0,y:0};var n,a,o=t.x,r=t.y,s=o+i.left,d=r+i.top;if("touchstart"===e.type){var l=e;n=l.changedTouches[0].pageX-s,a=l.changedTouches[0].pageY-d}else{var c=e;n=c.pageX-s,a=c.pageY-d}return{x:n,y:a}}(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2},{startPoint:e={x:e.x-this.initialSize/2,y:e.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},t.prototype.runDeactivationUXLogicIfReady=function(){var e=this,i=t.cssClasses.FG_DEACTIVATION,n=this.activationState,a=n.hasDeactivationUXRun,o=n.isActivated;(a||!o)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){e.adapter.removeClass(i)}),Sr.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses=function(){var e=t.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},t.prototype.resetActivationState=function(){var e=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return e.previousActivationEvent=void 0}),t.numbers.TAP_DELAY_MS)},t.prototype.deactivateImpl=function(){var e=this,t=this.activationState;if(t.isActivated){var i=n({},t);t.isProgrammatic?(requestAnimationFrame((function(){e.animateDeactivation(i)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){e.activationState.hasDeactivationUXRun=!0,e.animateDeactivation(i),e.resetActivationState()})))}},t.prototype.animateDeactivation=function(e){var t=e.wasActivatedByPointer,i=e.wasElementMadeActive;(t||i)&&this.runDeactivationUXLogicIfReady()},t.prototype.layoutInternal=function(){var e=this;this.frame=this.adapter.computeBoundingRect();var i=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?i:Math.sqrt(Math.pow(e.frame.width,2)+Math.pow(e.frame.height,2))+t.numbers.PADDING;var n=Math.floor(i*t.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&n%2!=0?this.initialSize=n-1:this.initialSize=n,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},t.prototype.updateLayoutCssVars=function(){var e=t.strings,i=e.VAR_FG_SIZE,n=e.VAR_LEFT,a=e.VAR_TOP,o=e.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(o,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(a,this.unboundedCoords.top+"px"))},t}(Ra);
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
class Yr extends Ka{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=Or}get isActive(){return e=this.parentElement||this,t=":active",(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t);var e,t}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:e=>{switch(e){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:e=>{switch(e){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(e,t)=>{switch(e){case"--mdc-ripple-fg-scale":this.fgScale=t;break;case"--mdc-ripple-fg-size":this.fgSize=t;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=t;break;case"--mdc-ripple-fg-translate-start":this.translateStart=t;break;case"--mdc-ripple-left":this.leftPos=t;break;case"--mdc-ripple-top":this.topPos=t}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(e){this.waitForFoundation((()=>{this.mdcFoundation.activate(e)}))}endPress(){this.waitForFoundation((()=>{this.mdcFoundation.deactivate()}))}startFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleFocus()}))}endFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleBlur()}))}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(e){this.mdcFoundation?e():this.updateComplete.then(e)}update(e){e.has("disabled")&&this.disabled&&this.endHover(),super.update(e)}render(){const e=this.activated&&(this.primary||!this.accent),t=this.selected&&(this.primary||!this.accent),i={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":e,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":t,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return ye`
<div class="mdc-ripple-surface mdc-ripple-upgraded ${so(i)}"
style="${gr({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos})}"></div>`}}a([_t(".mdc-ripple-surface")],Yr.prototype,"mdcRoot",void 0),a([pt({type:Boolean})],Yr.prototype,"primary",void 0),a([pt({type:Boolean})],Yr.prototype,"accent",void 0),a([pt({type:Boolean})],Yr.prototype,"unbounded",void 0),a([pt({type:Boolean})],Yr.prototype,"disabled",void 0),a([pt({type:Boolean})],Yr.prototype,"activated",void 0),a([pt({type:Boolean})],Yr.prototype,"selected",void 0),a([pt({type:Boolean})],Yr.prototype,"internalUseStateLayerCustomProperties",void 0),a([ft()],Yr.prototype,"hovering",void 0),a([ft()],Yr.prototype,"bgFocused",void 0),a([ft()],Yr.prototype,"fgActivation",void 0),a([ft()],Yr.prototype,"fgDeactivation",void 0),a([ft()],Yr.prototype,"fgScale",void 0),a([ft()],Yr.prototype,"fgSize",void 0),a([ft()],Yr.prototype,"translateStart",void 0),a([ft()],Yr.prototype,"translateEnd",void 0),a([ft()],Yr.prototype,"leftPos",void 0),a([ft()],Yr.prototype,"topPos",void 0);
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
*/
const $r=je`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`
/**
* @license
* Copyright 2020 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/;var Fr=["input","button","textarea","select"],Hr=function(e){var t=e.target;if(t){var i=(""+t.tagName).toLowerCase();-1===Fr.indexOf(i)&&e.preventDefault()}};function zr(e,t){for(var i=new Map,n=0;n<e;n++){var a=t(n).trim();if(a){var o=a[0].toLowerCase();i.has(o)||i.set(o,[]),i.get(o).push({text:a.toLowerCase(),index:n})}}return i.forEach((function(e){e.sort((function(e,t){return e.index-t.index}))})),i}function Rr(e,t){var i,n=e.nextChar,a=e.focusItemAtIndex,o=e.sortedIndexByFirstChar,r=e.focusedItemIndex,s=e.skipFocus,d=e.isItemAtIndexDisabled;return clearTimeout(t.bufferClearTimeout),t.bufferClearTimeout=setTimeout((function(){!function(e){e.typeaheadBuffer=""}(t)}),Vo.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),t.typeaheadBuffer=t.typeaheadBuffer+n,i=1===t.typeaheadBuffer.length?function(e,t,i,n){var a=n.typeaheadBuffer[0],o=e.get(a);if(!o)return-1;if(a===n.currentFirstChar&&o[n.sortedIndexCursor].index===t){n.sortedIndexCursor=(n.sortedIndexCursor+1)%o.length;var r=o[n.sortedIndexCursor].index;if(!i(r))return r}n.currentFirstChar=a;var s,d=-1;for(s=0;s<o.length;s++)if(!i(o[s].index)){d=s;break}for(;s<o.length;s++)if(o[s].index>t&&!i(o[s].index)){d=s;break}if(-1!==d)return n.sortedIndexCursor=d,o[n.sortedIndexCursor].index;return-1}(o,r,d,t):function(e,t,i){var n=i.typeaheadBuffer[0],a=e.get(n);if(!a)return-1;var o=a[i.sortedIndexCursor];if(0===o.text.lastIndexOf(i.typeaheadBuffer,0)&&!t(o.index))return o.index;var r=(i.sortedIndexCursor+1)%a.length,s=-1;for(;r!==i.sortedIndexCursor;){var d=a[r],l=0===d.text.lastIndexOf(i.typeaheadBuffer,0),c=!t(d.index);if(l&&c){s=r;break}r=(r+1)%a.length}if(-1!==s)return i.sortedIndexCursor=s,a[i.sortedIndexCursor].index;return-1}(o,d,t),-1===i||s||a(i),i}function Nr(e){return e.typeaheadBuffer.length>0}
/**
* @license
* Copyright 2016 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
var jr={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},Pr=function(e){function t(i){var a=e.call(this,n(n({},t.defaultAdapter),i))||this;return a.shakeAnimationEndHandler=function(){a.handleShakeAnimationEnd()},a}return i(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return jr},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},t.prototype.getWidth=function(){return this.adapter.getWidth()},t.prototype.shake=function(e){var i=t.cssClasses.LABEL_SHAKE;e?this.adapter.addClass(i):this.adapter.removeClass(i)},t.prototype.float=function(e){var i=t.cssClasses,n=i.LABEL_FLOAT_ABOVE,a=i.LABEL_SHAKE;e?this.adapter.addClass(n):(this.adapter.removeClass(n),this.adapter.removeClass(a))},t.prototype.setRequired=function(e){var i=t.cssClasses.LABEL_REQUIRED;e?this.adapter.addClass(i):this.adapter.removeClass(i)},t.prototype.handleShakeAnimationEnd=function(){var e=t.cssClasses.LABEL_SHAKE;this.adapter.removeClass(e)},t}(Ra);
/**
* @license
* Copyright 2016 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/const Br=oo(class extends ro{constructor(e){switch(super(e),this.foundation=null,this.previousPart=null,e.type){case to:case no:break;default:throw new Error("FloatingLabel directive only support attribute and property parts")}}update(e,[t]){if(e!==this.previousPart){this.foundation&&this.foundation.destroy(),this.previousPart=e;const t=e.element;t.classList.add("mdc-floating-label");const i=(e=>({addClass:t=>e.classList.add(t),removeClass:t=>e.classList.remove(t),getWidth:()=>e.scrollWidth,registerInteractionHandler:(t,i)=>{e.addEventListener(t,i)},deregisterInteractionHandler:(t,i)=>{e.removeEventListener(t,i)}}))(t);this.foundation=new Pr(i),this.foundation.init()}return this.render(t)}render(e){return this.foundation}});
/**
* @license
* Copyright 2018 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/var Vr={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},Ur=function(e){function t(i){var a=e.call(this,n(n({},t.defaultAdapter),i))||this;return a.transitionEndHandler=function(e){a.handleTransitionEnd(e)},a}return i(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return Vr},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},t.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},t.prototype.activate=function(){this.adapter.removeClass(Vr.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(Vr.LINE_RIPPLE_ACTIVE)},t.prototype.setRippleCenter=function(e){this.adapter.setStyle("transform-origin",e+"px center")},t.prototype.deactivate=function(){this.adapter.addClass(Vr.LINE_RIPPLE_DEACTIVATING)},t.prototype.handleTransitionEnd=function(e){var t=this.adapter.hasClass(Vr.LINE_RIPPLE_DEACTIVATING);"opacity"===e.propertyName&&t&&(this.adapter.removeClass(Vr.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(Vr.LINE_RIPPLE_DEACTIVATING))},t}(Ra);
/**
* @license
* Copyright 2018 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/const Wr=oo(class extends ro{constructor(e){switch(super(e),this.previousPart=null,this.foundation=null,e.type){case to:case no:return;default:throw new Error("LineRipple only support attribute and property parts.")}}update(e,t){if(this.previousPart!==e){this.foundation&&this.foundation.destroy(),this.previousPart=e;const t=e.element;t.classList.add("mdc-line-ripple");const i=(e=>({addClass:t=>e.classList.add(t),removeClass:t=>e.classList.remove(t),hasClass:t=>e.classList.contains(t),setStyle:(t,i)=>e.style.setProperty(t,i),registerEventHandler:(t,i)=>{e.addEventListener(t,i)},deregisterEventHandler:(t,i)=>{e.removeEventListener(t,i)}}))(t);this.foundation=new Ur(i),this.foundation.init()}return this.render()}render(){return this.foundation}});
/**
* @license
* Copyright 2016 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/var qr={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",MENU_INVALID:"mdc-select__menu--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},Gr={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",HIDDEN_INPUT_SELECTOR:'input[type="hidden"]',LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},Kr={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},Jr=function(e){function t(i,a){void 0===a&&(a={});var o=e.call(this,n(n({},t.defaultAdapter),i))||this;return o.disabled=!1,o.isMenuOpen=!1,o.useDefaultValidation=!0,o.customValidity=!0,o.lastSelectedIndex=Kr.UNSET_INDEX,o.clickDebounceTimeout=0,o.recentlyClicked=!1,o.leadingIcon=a.leadingIcon,o.helperText=a.helperText,o}return i(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return qr},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return Kr},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return Gr},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getSelectedIndex:function(){return-1},setSelectedIndex:function(){},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){return 0},setLabelRequired:function(){},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){},setRippleCenter:function(){},notifyChange:function(){},setSelectedText:function(){},isSelectAnchorFocused:function(){return!1},getSelectAnchorAttr:function(){return""},setSelectAnchorAttr:function(){},removeSelectAnchorAttr:function(){},addMenuClass:function(){},removeMenuClass:function(){},openMenu:function(){},closeMenu:function(){},getAnchorElement:function(){return null},setMenuAnchorElement:function(){},setMenuAnchorCorner:function(){},setMenuWrapFocus:function(){},focusMenuItemAtIndex:function(){},getMenuItemCount:function(){return 0},getMenuItemValues:function(){return[]},getMenuItemTextAtIndex:function(){return""},isTypeaheadInProgress:function(){return!1},typeaheadMatchItem:function(){return-1}}},enumerable:!1,configurable:!0}),t.prototype.getSelectedIndex=function(){return this.adapter.getSelectedIndex()},t.prototype.setSelectedIndex=function(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1),e>=this.adapter.getMenuItemCount()||(e===Kr.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(e).trim()),this.adapter.setSelectedIndex(e),t&&this.adapter.closeMenu(),i||this.lastSelectedIndex===e||this.handleChange(),this.lastSelectedIndex=e)},t.prototype.setValue=function(e,t){void 0===t&&(t=!1);var i=this.adapter.getMenuItemValues().indexOf(e);this.setSelectedIndex(i,!1,t)},t.prototype.getValue=function(){var e=this.adapter.getSelectedIndex(),t=this.adapter.getMenuItemValues();return e!==Kr.UNSET_INDEX?t[e]:""},t.prototype.getDisabled=function(){return this.disabled},t.prototype.setDisabled=function(e){this.disabled=e,this.disabled?(this.adapter.addClass(qr.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(qr.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},t.prototype.openMenu=function(){this.adapter.addClass(qr.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},t.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},t.prototype.layout=function(){if(this.adapter.hasLabel()){var e=this.getValue().length>0,t=this.adapter.hasClass(qr.FOCUSED),i=e||t,n=this.adapter.hasClass(qr.REQUIRED);this.notchOutline(i),this.adapter.floatLabel(i),this.adapter.setLabelRequired(n)}},t.prototype.layoutOptions=function(){var e=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(e,!1,!0)},t.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var e=this.getSelectedIndex(),t=e>=0?e:0;this.adapter.focusMenuItemAtIndex(t)}},t.prototype.handleMenuClosing=function(){this.adapter.setSelectAnchorAttr("aria-expanded","false")},t.prototype.handleMenuClosed=function(){this.adapter.removeClass(qr.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused()||this.blur()},t.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(qr.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.handleMenuItemAction=function(e){this.setSelectedIndex(e,!0)},t.prototype.handleFocus=function(){this.adapter.addClass(qr.FOCUSED),this.layout(),this.adapter.activateBottomLine()},t.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},t.prototype.handleClick=function(e){this.disabled||this.recentlyClicked||(this.setClickDebounceTimeout(),this.isMenuOpen?this.adapter.closeMenu():(this.adapter.setRippleCenter(e),this.openMenu()))},t.prototype.handleKeydown=function(e){if(!this.isMenuOpen&&this.adapter.hasClass(qr.FOCUSED)){var t=Yo(e)===po.ENTER,i=Yo(e)===po.SPACEBAR,n=Yo(e)===po.ARROW_UP,a=Yo(e)===po.ARROW_DOWN;if(!(e.ctrlKey||e.metaKey)&&(!i&&e.key&&1===e.key.length||i&&this.adapter.isTypeaheadInProgress())){var o=i?" ":e.key,r=this.adapter.typeaheadMatchItem(o,this.getSelectedIndex());return r>=0&&this.setSelectedIndex(r),void e.preventDefault()}(t||i||n||a)&&(this.openMenu(),e.preventDefault())}},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()){var t=this.adapter.hasClass(qr.FOCUSED);if(e){var i=Kr.LABEL_SCALE,n=this.adapter.getLabelWidth()*i;this.adapter.notchOutline(n)}else t||this.adapter.closeOutline()}},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},t.prototype.getUseDefaultValidation=function(){return this.useDefaultValidation},t.prototype.setUseDefaultValidation=function(e){this.useDefaultValidation=e},t.prototype.setValid=function(e){this.useDefaultValidation||(this.customValidity=e),this.adapter.setSelectAnchorAttr("aria-invalid",(!e).toString()),e?(this.adapter.removeClass(qr.INVALID),this.adapter.removeMenuClass(qr.MENU_INVALID)):(this.adapter.addClass(qr.INVALID),this.adapter.addMenuClass(qr.MENU_INVALID)),this.syncHelperTextValidity(e)},t.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(qr.REQUIRED)&&!this.adapter.hasClass(qr.DISABLED)?this.getSelectedIndex()!==Kr.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},t.prototype.setRequired=function(e){e?this.adapter.addClass(qr.REQUIRED):this.adapter.removeClass(qr.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",e.toString()),this.adapter.setLabelRequired(e)},t.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},t.prototype.init=function(){var e=this.adapter.getAnchorElement();e&&(this.adapter.setMenuAnchorElement(e),this.adapter.setMenuAnchorCorner(sr.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(qr.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(qr.INVALID)),this.layout(),this.layoutOptions()},t.prototype.blur=function(){this.adapter.removeClass(qr.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(qr.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.syncHelperTextValidity=function(e){if(this.helperText){this.helperText.setValidity(e);var t=this.helperText.isVisible(),i=this.helperText.getId();t&&i?this.adapter.setSelectAnchorAttr(Gr.ARIA_DESCRIBEDBY,i):this.adapter.removeSelectAnchorAttr(Gr.ARIA_DESCRIBEDBY)}},t.prototype.setClickDebounceTimeout=function(){var e=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout((function(){e.recentlyClicked=!1}),Kr.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},t}(Ra);
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
const Xr=(e={})=>{const t={};for(const i in e)t[i]=e[i];return Object.assign({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1},t)};class Zr extends Qa{constructor(){super(...arguments),this.mdcFoundationClass=Jr,this.disabled=!1,this.outlined=!1,this.label="",this.outlineOpen=!1,this.outlineWidth=0,this.value="",this.name="",this.selectedText="",this.icon="",this.menuOpen=!1,this.helper="",this.validateOnInitialRender=!1,this.validationMessage="",this.required=!1,this.naturalMenuWidth=!1,this.isUiValid=!0,this.fixedMenuPosition=!1,this.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},this.sortedIndexByFirstChar=new Map,this.menuElement_=null,this.listeners=[],this.onBodyClickBound=()=>{},this._menuUpdateComplete=null,this.valueSetDirectly=!1,this.validityTransform=null,this._validity=Xr()}get items(){return this.menuElement_||(this.menuElement_=this.menuElement),this.menuElement_?this.menuElement_.items:[]}get selected(){const e=this.menuElement;return e?e.selected:null}get index(){const e=this.menuElement;return e?e.index:-1}get shouldRenderHelperText(){return!!this.helper||!!this.validationMessage}get validity(){return this._checkValidity(this.value),this._validity}render(){const e={"mdc-select--disabled":this.disabled,"mdc-select--no-label":!this.label,"mdc-select--filled":!this.outlined,"mdc-select--outlined":this.outlined,"mdc-select--with-leading-icon":!!this.icon,"mdc-select--required":this.required,"mdc-select--invalid":!this.isUiValid},t=this.label?"label":void 0,i=this.shouldRenderHelperText?"helper-text":void 0;return ye`
<div
class="mdc-select ${so(e)}">
<input
class="formElement"
name="${this.name}"
.value="${this.value}"
hidden
?disabled="${this.disabled}"
?required=${this.required}>
<!-- @ts-ignore -->
<div class="mdc-select__anchor"
aria-autocomplete="none"
role="combobox"
aria-expanded=${this.menuOpen}
aria-invalid=${!this.isUiValid}
aria-haspopup="listbox"
aria-labelledby=${uo(t)}
aria-required=${this.required}
aria-describedby=${uo(i)}
@click=${this.onClick}
@focus=${this.onFocus}
@blur=${this.onBlur}
@keydown=${this.onKeydown}>
${this.renderRipple()}
${this.outlined?this.renderOutline():this.renderLabel()}
${this.renderLeadingIcon()}
<span class="mdc-select__selected-text-container">
<span class="mdc-select__selected-text">${this.selectedText}</span>
</span>
<span class="mdc-select__dropdown-icon">
<svg
class="mdc-select__dropdown-icon-graphic"
viewBox="7 10 10 5"
focusable="false">
<polygon
class="mdc-select__dropdown-icon-inactive"
stroke="none"
fill-rule="evenodd"
points="7 10 12 15 17 10">
</polygon>
<polygon
class="mdc-select__dropdown-icon-active"
stroke="none"
fill-rule="evenodd"
points="7 15 12 10 17 15">
</polygon>
</svg>
</span>
${this.renderLineRipple()}
</div>
${this.renderMenu()}
</div>
${this.renderHelperText()}`}renderMenu(){const e=this.getMenuClasses();return ye`
<mwc-menu
innerRole="listbox"
wrapFocus
class=" ${so(e)}"
activatable
.fullwidth=${!this.fixedMenuPosition&&!this.naturalMenuWidth}
.open=${this.menuOpen}
.anchor=${this.anchorElement}
.fixed=${this.fixedMenuPosition}
@selected=${this.onSelected}
@opened=${this.onOpened}
@closed=${this.onClosed}
@items-updated=${this.onItemsUpdated}
@keydown=${this.handleTypeahead}>
${this.renderMenuContent()}
</mwc-menu>`}getMenuClasses(){return{"mdc-select__menu":!0,"mdc-menu":!0,"mdc-menu-surface":!0,"mdc-select__menu--invalid":!this.isUiValid}}renderMenuContent(){return ye`<slot></slot>`}renderRipple(){return this.outlined?xe:ye`
<span class="mdc-select__ripple"></span>
`}renderOutline(){return this.outlined?ye`
<mwc-notched-outline
.width=${this.outlineWidth}
.open=${this.outlineOpen}
class="mdc-notched-outline">
${this.renderLabel()}
</mwc-notched-outline>`:xe}renderLabel(){return this.label?ye`
<span
.floatingLabelFoundation=${Br(this.label)}
id="label">${this.label}</span>
`:xe}renderLeadingIcon(){return this.icon?ye`<mwc-icon class="mdc-select__icon"><div>${this.icon}</div></mwc-icon>`:xe}renderLineRipple(){return this.outlined?xe:ye`
<span .lineRippleFoundation=${Wr()}></span>
`}renderHelperText(){if(!this.shouldRenderHelperText)return xe;const e=this.validationMessage&&!this.isUiValid;return ye`
<p
class="mdc-select-helper-text ${so({"mdc-select-helper-text--validation-msg":e})}"
id="helper-text">${e?this.validationMessage:this.helper}</p>`}createAdapter(){return Object.assign(Object.assign({},Va(this.mdcRoot)),{activateBottomLine:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.activate()},deactivateBottomLine:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.deactivate()},hasLabel:()=>!!this.label,floatLabel:e=>{this.labelElement&&this.labelElement.floatingLabelFoundation.float(e)},getLabelWidth:()=>this.labelElement?this.labelElement.floatingLabelFoundation.getWidth():0,setLabelRequired:e=>{this.labelElement&&this.labelElement.floatingLabelFoundation.setRequired(e)},hasOutline:()=>this.outlined,notchOutline:e=>{this.outlineElement&&!this.outlineOpen&&(this.outlineWidth=e,this.outlineOpen=!0)},closeOutline:()=>{this.outlineElement&&(this.outlineOpen=!1)},setRippleCenter:e=>{if(this.lineRippleElement){this.lineRippleElement.lineRippleFoundation.setRippleCenter(e)}},notifyChange:async e=>{if(!this.valueSetDirectly&&e===this.value)return;this.valueSetDirectly=!1,this.value=e,await this.updateComplete;const t=new Event("change",{bubbles:!0});this.dispatchEvent(t)},setSelectedText:e=>this.selectedText=e,isSelectAnchorFocused:()=>{const e=this.anchorElement;if(!e)return!1;return e.getRootNode().activeElement===e},getSelectAnchorAttr:e=>{const t=this.anchorElement;return t?t.getAttribute(e):null},setSelectAnchorAttr:(e,t)=>{const i=this.anchorElement;i&&i.setAttribute(e,t)},removeSelectAnchorAttr:e=>{const t=this.anchorElement;t&&t.removeAttribute(e)},openMenu:()=>{this.menuOpen=!0},closeMenu:()=>{this.menuOpen=!1},addMenuClass:()=>{},removeMenuClass:()=>{},getAnchorElement:()=>this.anchorElement,setMenuAnchorElement:()=>{},setMenuAnchorCorner:()=>{const e=this.menuElement;e&&(e.corner="BOTTOM_START")},setMenuWrapFocus:e=>{const t=this.menuElement;t&&(t.wrapFocus=e)},focusMenuItemAtIndex:e=>{const t=this.menuElement;if(!t)return;const i=t.items[e];i&&i.focus()},getMenuItemCount:()=>{const e=this.menuElement;return e?e.items.length:0},getMenuItemValues:()=>{const e=this.menuElement;if(!e)return[];return e.items.map((e=>e.value))},getMenuItemTextAtIndex:e=>{const t=this.menuElement;if(!t)return"";const i=t.items[e];return i?i.text:""},getSelectedIndex:()=>this.index,setSelectedIndex:()=>{},isTypeaheadInProgress:()=>Nr(this.typeaheadState),typeaheadMatchItem:(e,t)=>{if(!this.menuElement)return-1;const i={focusItemAtIndex:e=>{this.menuElement.focusItemAtIndex(e)},focusedItemIndex:t||this.menuElement.getFocusedItemIndex(),nextChar:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:!1,isItemAtIndexDisabled:e=>this.items[e].disabled},n=Rr(i,this.typeaheadState);return-1!==n&&this.select(n),n}})}checkValidity(){const e=this._checkValidity(this.value);if(!e){const e=new Event("invalid",{bubbles:!1,cancelable:!0});this.dispatchEvent(e)}return e}reportValidity(){const e=this.checkValidity();return this.isUiValid=e,e}_checkValidity(e){const t=this.formElement.validity;let i=Xr(t);if(this.validityTransform){const t=this.validityTransform(e,i);i=Object.assign(Object.assign({},i),t)}return this._validity=i,this._validity.valid}setCustomValidity(e){this.validationMessage=e,this.formElement.setCustomValidity(e)}async getUpdateComplete(){await this._menuUpdateComplete;return await super.getUpdateComplete()}async firstUpdated(){const e=this.menuElement;if(e&&(this._menuUpdateComplete=e.updateComplete,await this._menuUpdateComplete),super.firstUpdated(),this.mdcFoundation.isValid=()=>!0,this.mdcFoundation.setValid=()=>{},this.mdcFoundation.setDisabled(this.disabled),this.validateOnInitialRender&&this.reportValidity(),!this.selected){!this.items.length&&this.slotElement&&this.slotElement.assignedNodes({flatten:!0}).length&&(await new Promise((e=>requestAnimationFrame(e))),await this.layout());const e=this.items.length&&""===this.items[0].value;if(!this.value&&e)return void this.select(0);this.selectByValue(this.value)}this.sortedIndexByFirstChar=zr(this.items.length,(e=>this.items[e].text))}onItemsUpdated(){this.sortedIndexByFirstChar=zr(this.items.length,(e=>this.items[e].text))}select(e){const t=this.menuElement;t&&t.select(e)}selectByValue(e){let t=-1;for(let i=0;i<this.items.length;i++){if(this.items[i].value===e){t=i;break}}this.valueSetDirectly=!0,this.select(t),this.mdcFoundation.handleChange()}disconnectedCallback(){super.disconnectedCallback();for(const e of this.listeners)e.target.removeEventListener(e.name,e.cb)}focus(){const e=new CustomEvent("focus"),t=this.anchorElement;t&&(t.dispatchEvent(e),t.focus())}blur(){const e=new CustomEvent("blur"),t=this.anchorElement;t&&(t.dispatchEvent(e),t.blur())}onFocus(){this.mdcFoundation&&this.mdcFoundation.handleFocus()}onBlur(){this.mdcFoundation&&this.mdcFoundation.handleBlur();const e=this.menuElement;e&&!e.open&&this.reportValidity()}onClick(e){if(this.mdcFoundation){this.focus();const t=e.target.getBoundingClientRect();let i=0;i="touches"in e?e.touches[0].clientX:e.clientX;const n=i-t.left;this.mdcFoundation.handleClick(n)}}onKeydown(e){const t=Yo(e)===po.ARROW_UP,i=Yo(e)===po.ARROW_DOWN;if(i||t){const n=t&&this.index>0,a=i&&this.index<this.items.length-1;return n?this.select(this.index-1):a&&this.select(this.index+1),e.preventDefault(),void this.mdcFoundation.openMenu()}this.mdcFoundation.handleKeydown(e)}handleTypeahead(e){if(!this.menuElement)return;const t=this.menuElement.getFocusedItemIndex(),i=Ba(e.target)?e.target:null;!function(e,t){var i=e.event,n=e.isTargetListItem,a=e.focusedItemIndex,o=e.focusItemAtIndex,r=e.sortedIndexByFirstChar,s=e.isItemAtIndexDisabled,d="ArrowLeft"===Yo(i),l="ArrowUp"===Yo(i),c="ArrowRight"===Yo(i),m="ArrowDown"===Yo(i),h="Home"===Yo(i),u="End"===Yo(i),p="Enter"===Yo(i),f="Spacebar"===Yo(i);i.altKey||i.ctrlKey||i.metaKey||d||l||c||m||h||u||p||(f||1!==i.key.length?f&&(n&&Hr(i),n&&Nr(t)&&Rr({focusItemAtIndex:o,focusedItemIndex:a,nextChar:" ",sortedIndexByFirstChar:r,skipFocus:!1,isItemAtIndexDisabled:s},t)):(Hr(i),Rr({focusItemAtIndex:o,focusedItemIndex:a,nextChar:i.key.toLowerCase(),sortedIndexByFirstChar:r,skipFocus:!1,isItemAtIndexDisabled:s},t)))}({event:e,focusItemAtIndex:e=>{this.menuElement.focusItemAtIndex(e)},focusedItemIndex:t,isTargetListItem:!!i&&i.hasAttribute("mwc-list-item"),sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:e=>this.items[e].disabled},this.typeaheadState)}async onSelected(e){this.mdcFoundation||await this.updateComplete,this.mdcFoundation.handleMenuItemAction(e.detail.index);const t=this.items[e.detail.index];t&&(this.value=t.value)}onOpened(){this.mdcFoundation&&(this.menuOpen=!0,this.mdcFoundation.handleMenuOpened())}onClosed(){this.mdcFoundation&&(this.menuOpen=!1,this.mdcFoundation.handleMenuClosed())}setFormData(e){this.name&&null!==this.selected&&e.append(this.name,this.value)}async layout(e=!0){this.mdcFoundation&&this.mdcFoundation.layout(),await this.updateComplete;const t=this.menuElement;t&&t.layout(e);const i=this.labelElement;if(!i)return void(this.outlineOpen=!1);const n=!!this.label&&!!this.value;if(i.floatingLabelFoundation.float(n),!this.outlined)return;this.outlineOpen=n,await this.updateComplete;const a=i.floatingLabelFoundation.getWidth();this.outlineOpen&&(this.outlineWidth=a)}async layoutOptions(){this.mdcFoundation&&this.mdcFoundation.layoutOptions()}}a([_t(".mdc-select")],Zr.prototype,"mdcRoot",void 0),a([_t(".formElement")],Zr.prototype,"formElement",void 0),a([_t("slot")],Zr.prototype,"slotElement",void 0),a([_t("select")],Zr.prototype,"nativeSelectElement",void 0),a([_t("input")],Zr.prototype,"nativeInputElement",void 0),a([_t(".mdc-line-ripple")],Zr.prototype,"lineRippleElement",void 0),a([_t(".mdc-floating-label")],Zr.prototype,"labelElement",void 0),a([_t("mwc-notched-outline")],Zr.prototype,"outlineElement",void 0),a([_t(".mdc-menu")],Zr.prototype,"menuElement",void 0),a([_t(".mdc-select__anchor")],Zr.prototype,"anchorElement",void 0),a([pt({type:Boolean,attribute:"disabled",reflect:!0}),eo((function(e){this.mdcFoundation&&this.mdcFoundation.setDisabled(e)}))],Zr.prototype,"disabled",void 0),a([pt({type:Boolean}),eo((function(e,t){void 0!==t&&this.outlined!==t&&this.layout(!1)}))],Zr.prototype,"outlined",void 0),a([pt({type:String}),eo((function(e,t){void 0!==t&&this.label!==t&&this.layout(!1)}))],Zr.prototype,"label",void 0),a([ft()],Zr.prototype,"outlineOpen",void 0),a([ft()],Zr.prototype,"outlineWidth",void 0),a([pt({type:String}),eo((function(e){if(this.mdcFoundation){const t=null===this.selected&&!!e,i=this.selected&&this.selected.value!==e;(t||i)&&this.selectByValue(e),this.reportValidity()}}))],Zr.prototype,"value",void 0),a([pt()],Zr.prototype,"name",void 0),a([ft()],Zr.prototype,"selectedText",void 0),a([pt({type:String})],Zr.prototype,"icon",void 0),a([ft()],Zr.prototype,"menuOpen",void 0),a([pt({type:String})],Zr.prototype,"helper",void 0),a([pt({type:Boolean})],Zr.prototype,"validateOnInitialRender",void 0),a([pt({type:String})],Zr.prototype,"validationMessage",void 0),a([pt({type:Boolean})],Zr.prototype,"required",void 0),a([pt({type:Boolean})],Zr.prototype,"naturalMenuWidth",void 0),a([ft()],Zr.prototype,"isUiValid",void 0),a([pt({type:Boolean})],Zr.prototype,"fixedMenuPosition",void 0),a([gt({capture:!0})],Zr.prototype,"handleTypeahead",null);
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
*/
const Qr=je`.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform;transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required::after,.mdc-floating-label--required[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);border-bottom-width:2px;opacity:0;z-index:2}.mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-select{display:inline-flex;position:relative}.mdc-select:not(.mdc-select--disabled) .mdc-select__selected-text{color:rgba(0, 0, 0, 0.87)}.mdc-select.mdc-select--disabled .mdc-select__selected-text{color:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled) .mdc-floating-label{color:rgba(0, 0, 0, 0.6)}.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label{color:rgba(98, 0, 238, 0.87)}.mdc-select.mdc-select--disabled .mdc-floating-label{color:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled) .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.54)}.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-select__dropdown-icon{fill:#6200ee;fill:var(--mdc-theme-primary, #6200ee)}.mdc-select.mdc-select--disabled .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled)+.mdc-select-helper-text{color:rgba(0, 0, 0, 0.6)}.mdc-select.mdc-select--disabled+.mdc-select-helper-text{color:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled) .mdc-select__icon{color:rgba(0, 0, 0, 0.54)}.mdc-select.mdc-select--disabled .mdc-select__icon{color:rgba(0, 0, 0, 0.38)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-select.mdc-select--disabled .mdc-select__selected-text{color:GrayText}.mdc-select.mdc-select--disabled .mdc-select__dropdown-icon{fill:red}.mdc-select.mdc-select--disabled .mdc-floating-label{color:GrayText}.mdc-select.mdc-select--disabled .mdc-line-ripple::before{border-bottom-color:GrayText}.mdc-select.mdc-select--disabled .mdc-notched-outline__leading,.mdc-select.mdc-select--disabled .mdc-notched-outline__notch,.mdc-select.mdc-select--disabled .mdc-notched-outline__trailing{border-color:GrayText}.mdc-select.mdc-select--disabled .mdc-select__icon{color:GrayText}.mdc-select.mdc-select--disabled+.mdc-select-helper-text{color:GrayText}}.mdc-select .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-select .mdc-select__anchor{padding-left:16px;padding-right:0}[dir=rtl] .mdc-select .mdc-select__anchor,.mdc-select .mdc-select__anchor[dir=rtl]{padding-left:0;padding-right:16px}.mdc-select.mdc-select--with-leading-icon .mdc-select__anchor{padding-left:0;padding-right:0}[dir=rtl] .mdc-select.mdc-select--with-leading-icon .mdc-select__anchor,.mdc-select.mdc-select--with-leading-icon .mdc-select__anchor[dir=rtl]{padding-left:0;padding-right:0}.mdc-select .mdc-select__icon{width:24px;height:24px;font-size:24px}.mdc-select .mdc-select__dropdown-icon{width:24px;height:24px}.mdc-select .mdc-select__menu .mdc-deprecated-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-select .mdc-select__menu .mdc-deprecated-list-item,.mdc-select .mdc-select__menu .mdc-deprecated-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-select .mdc-select__menu .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:12px}[dir=rtl] .mdc-select .mdc-select__menu .mdc-deprecated-list-item__graphic,.mdc-select .mdc-select__menu .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:12px;margin-right:0}.mdc-select__dropdown-icon{margin-left:12px;margin-right:12px;display:inline-flex;position:relative;align-self:center;align-items:center;justify-content:center;flex-shrink:0;pointer-events:none}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-active,.mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive{position:absolute;top:0;left:0}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-graphic{width:41.6666666667%;height:20.8333333333%}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive{opacity:1;transition:opacity 75ms linear 75ms}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-active{opacity:0;transition:opacity 75ms linear}[dir=rtl] .mdc-select__dropdown-icon,.mdc-select__dropdown-icon[dir=rtl]{margin-left:12px;margin-right:12px}.mdc-select--activated .mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive{opacity:0;transition:opacity 49.5ms linear}.mdc-select--activated .mdc-select__dropdown-icon .mdc-select__dropdown-icon-active{opacity:1;transition:opacity 100.5ms linear 49.5ms}.mdc-select__anchor{width:200px;min-width:0;flex:1 1 auto;position:relative;box-sizing:border-box;overflow:hidden;outline:none;cursor:pointer}.mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-select__selected-text-container{display:flex;appearance:none;pointer-events:none;box-sizing:border-box;width:auto;min-width:0;flex-grow:1;height:28px;border:none;outline:none;padding:0;background-color:transparent;color:inherit}.mdc-select__selected-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;width:100%;text-align:left}[dir=rtl] .mdc-select__selected-text,.mdc-select__selected-text[dir=rtl]{text-align:right}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--invalid+.mdc-select-helper-text--validation-msg{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-select__dropdown-icon{fill:#b00020;fill:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-select__dropdown-icon{fill:#b00020;fill:var(--mdc-theme-error, #b00020)}.mdc-select--disabled{cursor:default;pointer-events:none}.mdc-select--with-leading-icon .mdc-select__menu .mdc-deprecated-list-item{padding-left:12px;padding-right:12px}[dir=rtl] .mdc-select--with-leading-icon .mdc-select__menu .mdc-deprecated-list-item,.mdc-select--with-leading-icon .mdc-select__menu .mdc-deprecated-list-item[dir=rtl]{padding-left:12px;padding-right:12px}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-select__menu::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}}@media screen and (forced-colors: active)and (forced-colors: active),screen and (-ms-high-contrast: active)and (forced-colors: active){.mdc-select__menu::before{border-color:CanvasText}}.mdc-select__menu .mdc-deprecated-list .mdc-select__icon,.mdc-select__menu .mdc-list .mdc-select__icon{margin-left:0;margin-right:0}[dir=rtl] .mdc-select__menu .mdc-deprecated-list .mdc-select__icon,[dir=rtl] .mdc-select__menu .mdc-list .mdc-select__icon,.mdc-select__menu .mdc-deprecated-list .mdc-select__icon[dir=rtl],.mdc-select__menu .mdc-list .mdc-select__icon[dir=rtl]{margin-left:0;margin-right:0}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--activated,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--selected,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--activated{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__graphic,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--activated .mdc-deprecated-list-item__graphic,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__graphic,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--activated .mdc-deprecated-list-item__graphic{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-select__menu .mdc-list-item__start{display:inline-flex;align-items:center}.mdc-select__option{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-select__option,.mdc-select__option[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-select__one-line-option.mdc-list-item--with-one-line{height:48px}.mdc-select__two-line-option.mdc-list-item--with-two-lines{height:64px}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__start{margin-top:20px}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-select__two-line-option.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-select__two-line-option.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:36px;content:"";vertical-align:0}.mdc-select__option-with-leading-content{padding-left:0;padding-right:12px}.mdc-select__option-with-leading-content.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-select__option-with-leading-content.mdc-list-item,.mdc-select__option-with-leading-content.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-select__option-with-leading-content .mdc-list-item__start{margin-left:12px;margin-right:0}[dir=rtl] .mdc-select__option-with-leading-content .mdc-list-item__start,.mdc-select__option-with-leading-content .mdc-list-item__start[dir=rtl]{margin-left:0;margin-right:12px}.mdc-select__option-with-leading-content .mdc-list-item__start{width:36px;height:24px}[dir=rtl] .mdc-select__option-with-leading-content,.mdc-select__option-with-leading-content[dir=rtl]{padding-left:12px;padding-right:0}.mdc-select__option-with-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-select__option-with-meta.mdc-list-item,.mdc-select__option-with-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-select__option-with-meta .mdc-list-item__end{margin-left:12px;margin-right:12px}[dir=rtl] .mdc-select__option-with-meta .mdc-list-item__end,.mdc-select__option-with-meta .mdc-list-item__end[dir=rtl]{margin-left:12px;margin-right:12px}.mdc-select--filled .mdc-select__anchor{height:56px;display:flex;align-items:baseline}.mdc-select--filled .mdc-select__anchor::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-select--filled.mdc-select--no-label .mdc-select__anchor .mdc-select__selected-text::before{content:""}.mdc-select--filled.mdc-select--no-label .mdc-select__anchor .mdc-select__selected-text-container{height:100%;display:inline-flex;align-items:center}.mdc-select--filled.mdc-select--no-label .mdc-select__anchor::before{display:none}.mdc-select--filled .mdc-select__anchor{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-select--filled:not(.mdc-select--disabled) .mdc-select__anchor{background-color:whitesmoke}.mdc-select--filled.mdc-select--disabled .mdc-select__anchor{background-color:#fafafa}.mdc-select--filled:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42)}.mdc-select--filled:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87)}.mdc-select--filled:not(.mdc-select--disabled) .mdc-line-ripple::after{border-bottom-color:#6200ee;border-bottom-color:var(--mdc-theme-primary, #6200ee)}.mdc-select--filled.mdc-select--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06)}.mdc-select--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-select--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-select--filled .mdc-menu-surface--is-open-below{border-top-left-radius:0px;border-top-right-radius:0px}.mdc-select--filled.mdc-select--focused.mdc-line-ripple::after{transform:scale(1, 2);opacity:1}.mdc-select--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-select--filled .mdc-floating-label,.mdc-select--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label{left:48px;right:initial}[dir=rtl] .mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label,.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-line-ripple::after{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined{border:none}.mdc-select--outlined .mdc-select__anchor{height:56px}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-56px 250ms 1}@keyframes mdc-floating-label-shake-float-above-select-outlined-56px{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-select--outlined .mdc-select__anchor{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-select--outlined .mdc-select__anchor,.mdc-select--outlined .mdc-select__anchor[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-select--outlined .mdc-select__anchor,.mdc-select--outlined .mdc-select__anchor[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-select--outlined+.mdc-select-helper-text{margin-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-select--outlined+.mdc-select-helper-text,.mdc-select--outlined+.mdc-select-helper-text[dir=rtl]{margin-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-select--outlined+.mdc-select-helper-text,.mdc-select--outlined+.mdc-select-helper-text[dir=rtl]{margin-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-select--outlined:not(.mdc-select--disabled) .mdc-select__anchor{background-color:transparent}.mdc-select--outlined.mdc-select--disabled .mdc-select__anchor{background-color:transparent}.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.38)}.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.87)}.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:2px}.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.06)}.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-select--outlined .mdc-select__anchor{display:flex;align-items:baseline;overflow:visible}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined 250ms 1}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-select--outlined .mdc-select__anchor .mdc-select__selected-text::before{content:""}.mdc-select--outlined .mdc-select__anchor .mdc-select__selected-text-container{height:100%;display:inline-flex;align-items:center}.mdc-select--outlined .mdc-select__anchor::before{display:none}.mdc-select--outlined .mdc-select__selected-text-container{display:flex;border:none;z-index:1;background-color:transparent}.mdc-select--outlined .mdc-select__icon{z-index:2}.mdc-select--outlined .mdc-floating-label{line-height:1.15rem;left:4px;right:initial}[dir=rtl] .mdc-select--outlined .mdc-floating-label,.mdc-select--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-select--outlined.mdc-select--focused .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:2px}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above{font-size:.75rem}.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px 250ms 1}@keyframes mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--shake,.mdc-select--outlined.mdc-select--with-leading-icon[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px 250ms 1}@keyframes mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 96px)}.mdc-select--outlined .mdc-menu-surface{margin-bottom:8px}.mdc-select--outlined.mdc-select--no-label .mdc-menu-surface,.mdc-select--outlined .mdc-menu-surface--is-open-below{margin-bottom:0}.mdc-select__anchor{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-select__anchor .mdc-select__ripple::before,.mdc-select__anchor .mdc-select__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-select__anchor .mdc-select__ripple::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-select__anchor .mdc-select__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-select__anchor.mdc-ripple-upgraded--unbounded .mdc-select__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-select__anchor.mdc-ripple-upgraded--foreground-activation .mdc-select__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-select__anchor.mdc-ripple-upgraded--foreground-deactivation .mdc-select__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-select__anchor .mdc-select__ripple::before,.mdc-select__anchor .mdc-select__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-select__anchor .mdc-select__ripple::before,.mdc-select__anchor .mdc-select__ripple::after{background-color:rgba(0, 0, 0, 0.87);background-color:var(--mdc-ripple-color, rgba(0, 0, 0, 0.87))}.mdc-select__anchor:hover .mdc-select__ripple::before,.mdc-select__anchor.mdc-ripple-surface--hover .mdc-select__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-select__anchor.mdc-ripple-upgraded--background-focused .mdc-select__ripple::before,.mdc-select__anchor:not(.mdc-ripple-upgraded):focus .mdc-select__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-select__anchor .mdc-select__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:hover .mdc-deprecated-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-surface--hover .mdc-deprecated-list-item__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-deprecated-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-deprecated-list-item__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded) .mdc-deprecated-list-item__ripple::after{transition:opacity 150ms linear}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-deprecated-list-item__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-list-item__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:hover .mdc-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-surface--hover .mdc-list-item__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded) .mdc-list-item__ripple::after{transition:opacity 150ms linear}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select-helper-text{margin:0;margin-left:16px;margin-right:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block;margin-top:0;line-height:normal}[dir=rtl] .mdc-select-helper-text,.mdc-select-helper-text[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-select-helper-text::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.mdc-select-helper-text--validation-msg{opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-select--invalid+.mdc-select-helper-text--validation-msg,.mdc-select-helper-text--validation-msg-persistent{opacity:1}.mdc-select--with-leading-icon .mdc-select__icon{display:inline-block;box-sizing:border-box;border:none;text-decoration:none;cursor:pointer;user-select:none;flex-shrink:0;align-self:center;background-color:transparent;fill:currentColor}.mdc-select--with-leading-icon .mdc-select__icon{margin-left:12px;margin-right:12px}[dir=rtl] .mdc-select--with-leading-icon .mdc-select__icon,.mdc-select--with-leading-icon .mdc-select__icon[dir=rtl]{margin-left:12px;margin-right:12px}.mdc-select__icon:not([tabindex]),.mdc-select__icon[tabindex="-1"]{cursor:default;pointer-events:none}.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}:host{display:inline-block;vertical-align:top;outline:none}.mdc-select{width:100%}[hidden]{display:none}.mdc-select__icon{z-index:2}.mdc-select--with-leading-icon{--mdc-list-item-graphic-margin: calc( 48px - var(--mdc-list-item-graphic-size, 24px) - var(--mdc-list-side-padding, 16px) )}.mdc-select .mdc-select__anchor .mdc-select__selected-text{overflow:hidden}.mdc-select .mdc-select__anchor *{display:inline-flex}.mdc-select .mdc-select__anchor .mdc-floating-label{display:inline-block}mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-outlined-idle-border-color, rgba(0, 0, 0, 0.38) );--mdc-notched-outline-notch-offset: 1px}:host(:not([disabled]):hover) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-outlined-hover-border-color, rgba(0, 0, 0, 0.87) )}:host(:not([disabled])) .mdc-select:not(.mdc-select--disabled) .mdc-select__selected-text{color:rgba(0, 0, 0, 0.87);color:var(--mdc-select-ink-color, rgba(0, 0, 0, 0.87))}:host(:not([disabled])) .mdc-select:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42);border-bottom-color:var(--mdc-select-idle-line-color, rgba(0, 0, 0, 0.42))}:host(:not([disabled])) .mdc-select:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87);border-bottom-color:var(--mdc-select-hover-line-color, rgba(0, 0, 0, 0.87))}:host(:not([disabled])) .mdc-select:not(.mdc-select--outlined):not(.mdc-select--disabled) .mdc-select__anchor{background-color:whitesmoke;background-color:var(--mdc-select-fill-color, whitesmoke)}:host(:not([disabled])) .mdc-select.mdc-select--invalid .mdc-select__dropdown-icon{fill:var(--mdc-select-error-dropdown-icon-color, var(--mdc-select-error-color, var(--mdc-theme-error, #b00020)))}:host(:not([disabled])) .mdc-select.mdc-select--invalid .mdc-floating-label,:host(:not([disabled])) .mdc-select.mdc-select--invalid .mdc-floating-label::after{color:var(--mdc-select-error-color, var(--mdc-theme-error, #b00020))}:host(:not([disabled])) .mdc-select.mdc-select--invalid mwc-notched-outline{--mdc-notched-outline-border-color: var(--mdc-select-error-color, var(--mdc-theme-error, #b00020))}.mdc-select__menu--invalid{--mdc-theme-primary: var(--mdc-select-error-color, var(--mdc-theme-error, #b00020))}:host(:not([disabled])) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label,:host(:not([disabled])) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label::after{color:rgba(0, 0, 0, 0.6);color:var(--mdc-select-label-ink-color, rgba(0, 0, 0, 0.6))}:host(:not([disabled])) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.54);fill:var(--mdc-select-dropdown-icon-color, rgba(0, 0, 0, 0.54))}:host(:not([disabled])) .mdc-select.mdc-select--focused mwc-notched-outline{--mdc-notched-outline-stroke-width: 2px;--mdc-notched-outline-notch-offset: 2px}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-focused-label-color, var(--mdc-theme-primary, rgba(98, 0, 238, 0.87)) )}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) .mdc-select__dropdown-icon{fill:rgba(98,0,238,.87);fill:var(--mdc-select-focused-dropdown-icon-color, var(--mdc-theme-primary, rgba(98, 0, 238, 0.87)))}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) .mdc-floating-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) .mdc-floating-label::after{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host(:not([disabled])) .mdc-select-helper-text:not(.mdc-select-helper-text--validation-msg){color:var(--mdc-select-label-ink-color, rgba(0, 0, 0, 0.6))}:host([disabled]){pointer-events:none}:host([disabled]) .mdc-select:not(.mdc-select--outlined).mdc-select--disabled .mdc-select__anchor{background-color:#fafafa;background-color:var(--mdc-select-disabled-fill-color, #fafafa)}:host([disabled]) .mdc-select.mdc-select--outlined mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-outlined-disabled-border-color, rgba(0, 0, 0, 0.06) )}:host([disabled]) .mdc-select .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.38);fill:var(--mdc-select-disabled-dropdown-icon-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label,:host([disabled]) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label::after{color:rgba(0, 0, 0, 0.38);color:var(--mdc-select-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-select-helper-text{color:rgba(0, 0, 0, 0.38);color:var(--mdc-select-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-select__selected-text{color:rgba(0, 0, 0, 0.38);color:var(--mdc-select-disabled-ink-color, rgba(0, 0, 0, 0.38))}`,es={"mwc-select":class extends Zr{static get styles(){return Qr}},"mwc-list":class extends Zo{static get styles(){return tr}},"mwc-list-item":class extends er{static get styles(){return ho}},"mwc-ripple":class extends Yr{static get styles(){return $r}},"mwc-menu":class extends ur{static get styles(){return br}},"mwc-menu-surface":class extends _r{static get styles(){return yr}},"mwc-notched-outline":class extends Er{static get styles(){return Tr}}};function ts(e,t,i){if(void 0!==t)
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
return function(e,t,i){const n=e.constructor;if(!i){const e=`__${t}`;if(!(i=n.getPropertyDescriptor(t,e)))throw new Error("@ariaProperty must be used after a @property decorator")}const a=i;let o="";if(!a.set)throw new Error(`@ariaProperty requires a setter for ${t}`);if(e.dispatchWizEvent)return i;const r={configurable:!0,enumerable:!0,set(e){if(""===o){const e=n.getPropertyOptions(t);o="string"==typeof e.attribute?e.attribute:t}this.hasAttribute(o)&&this.removeAttribute(o),a.set.call(this,e)}};return a.get&&(r.get=function(){return a.get.call(this)}),r}(e,t,i);throw new Error("@ariaProperty only supports TypeScript Decorators")}
/**
* @license
* Copyright 2018 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/var is={CHECKED:"mdc-switch--checked",DISABLED:"mdc-switch--disabled"},ns={ARIA_CHECKED_ATTR:"aria-checked",NATIVE_CONTROL_SELECTOR:".mdc-switch__native-control",RIPPLE_SURFACE_SELECTOR:".mdc-switch__thumb-underlay"},as=function(e){function t(i){return e.call(this,n(n({},t.defaultAdapter),i))||this}return i(t,e),Object.defineProperty(t,"strings",{get:function(){return ns},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return is},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlChecked:function(){},setNativeControlDisabled:function(){},setNativeControlAttr:function(){}}},enumerable:!1,configurable:!0}),t.prototype.setChecked=function(e){this.adapter.setNativeControlChecked(e),this.updateAriaChecked(e),this.updateCheckedStyling(e)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(is.DISABLED):this.adapter.removeClass(is.DISABLED)},t.prototype.handleChange=function(e){var t=e.target;this.updateAriaChecked(t.checked),this.updateCheckedStyling(t.checked)},t.prototype.updateCheckedStyling=function(e){e?this.adapter.addClass(is.CHECKED):this.adapter.removeClass(is.CHECKED)},t.prototype.updateAriaChecked=function(e){this.adapter.setNativeControlAttr(ns.ARIA_CHECKED_ATTR,""+!!e)},t}(Ra);
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
class os extends Ka{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.shouldRenderRipple=!1,this.mdcFoundationClass=as,this.rippleHandlers=new Qo((()=>(this.shouldRenderRipple=!0,this.ripple)))}changeHandler(e){this.mdcFoundation.handleChange(e),this.checked=this.formElement.checked}createAdapter(){return Object.assign(Object.assign({},Va(this.mdcRoot)),{setNativeControlChecked:e=>{this.formElement.checked=e},setNativeControlDisabled:e=>{this.formElement.disabled=e},setNativeControlAttr:(e,t)=>{this.formElement.setAttribute(e,t)}})}renderRipple(){return this.shouldRenderRipple?ye`
<mwc-ripple
.accent="${this.checked}"
.disabled="${this.disabled}"
unbounded>
</mwc-ripple>`:""}focus(){const e=this.formElement;e&&(this.rippleHandlers.startFocus(),e.focus())}blur(){const e=this.formElement;e&&(this.rippleHandlers.endFocus(),e.blur())}click(){this.formElement&&!this.disabled&&(this.formElement.focus(),this.formElement.click())}firstUpdated(){super.firstUpdated(),this.shadowRoot&&this.mdcRoot.addEventListener("change",(e=>{this.dispatchEvent(new Event("change",e))}))}render(){return ye`
<div class="mdc-switch">
<div class="mdc-switch__track"></div>
<div class="mdc-switch__thumb-underlay">
${this.renderRipple()}
<div class="mdc-switch__thumb">
<input
type="checkbox"
id="basic-switch"
class="mdc-switch__native-control"
role="switch"
aria-label="${uo(this.ariaLabel)}"
aria-labelledby="${uo(this.ariaLabelledBy)}"
@change="${this.changeHandler}"
@focus="${this.handleRippleFocus}"
@blur="${this.handleRippleBlur}"
@mousedown="${this.handleRippleMouseDown}"
@mouseenter="${this.handleRippleMouseEnter}"
@mouseleave="${this.handleRippleMouseLeave}"
@touchstart="${this.handleRippleTouchStart}"
@touchend="${this.handleRippleDeactivate}"
@touchcancel="${this.handleRippleDeactivate}">
</div>
</div>
</div>`}handleRippleMouseDown(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}a([pt({type:Boolean}),eo((function(e){this.mdcFoundation.setChecked(e)}))],os.prototype,"checked",void 0),a([pt({type:Boolean}),eo((function(e){this.mdcFoundation.setDisabled(e)}))],os.prototype,"disabled",void 0),a([ts,pt({attribute:"aria-label"})],os.prototype,"ariaLabel",void 0),a([ts,pt({attribute:"aria-labelledby"})],os.prototype,"ariaLabelledBy",void 0),a([_t(".mdc-switch")],os.prototype,"mdcRoot",void 0),a([_t("input")],os.prototype,"formElement",void 0),a([yt("mwc-ripple")],os.prototype,"ripple",void 0),a([ft()],os.prototype,"shouldRenderRipple",void 0),a([gt({passive:!0})],os.prototype,"handleRippleMouseDown",null),a([gt({passive:!0})],os.prototype,"handleRippleTouchStart",null);
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
*/
const rs=je`.mdc-switch__thumb-underlay{left:-14px;right:initial;top:-17px;width:48px;height:48px}[dir=rtl] .mdc-switch__thumb-underlay,.mdc-switch__thumb-underlay[dir=rtl]{left:initial;right:-14px}.mdc-switch__native-control{width:64px;height:48px}.mdc-switch{display:inline-block;position:relative;outline:none;user-select:none}.mdc-switch.mdc-switch--checked .mdc-switch__track{background-color:#018786;background-color:var(--mdc-theme-secondary, #018786)}.mdc-switch.mdc-switch--checked .mdc-switch__thumb{background-color:#018786;background-color:var(--mdc-theme-secondary, #018786);border-color:#018786;border-color:var(--mdc-theme-secondary, #018786)}.mdc-switch:not(.mdc-switch--checked) .mdc-switch__track{background-color:#000;background-color:var(--mdc-theme-on-surface, #000)}.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb{background-color:#fff;background-color:var(--mdc-theme-surface, #fff);border-color:#fff;border-color:var(--mdc-theme-surface, #fff)}.mdc-switch__native-control{left:0;right:initial;position:absolute;top:0;margin:0;opacity:0;cursor:pointer;pointer-events:auto;transition:transform 90ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-switch__native-control,.mdc-switch__native-control[dir=rtl]{left:initial;right:0}.mdc-switch__track{box-sizing:border-box;width:36px;height:14px;border:1px solid transparent;border-radius:7px;opacity:.38;transition:opacity 90ms cubic-bezier(0.4, 0, 0.2, 1),background-color 90ms cubic-bezier(0.4, 0, 0.2, 1),border-color 90ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch__thumb-underlay{display:flex;position:absolute;align-items:center;justify-content:center;transform:translateX(0);transition:transform 90ms cubic-bezier(0.4, 0, 0.2, 1),background-color 90ms cubic-bezier(0.4, 0, 0.2, 1),border-color 90ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch__thumb{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0,0,0,.12);box-sizing:border-box;width:20px;height:20px;border:10px solid;border-radius:50%;pointer-events:none;z-index:1}.mdc-switch--checked .mdc-switch__track{opacity:.54}.mdc-switch--checked .mdc-switch__thumb-underlay{transform:translateX(16px)}[dir=rtl] .mdc-switch--checked .mdc-switch__thumb-underlay,.mdc-switch--checked .mdc-switch__thumb-underlay[dir=rtl]{transform:translateX(-16px)}.mdc-switch--checked .mdc-switch__native-control{transform:translateX(-16px)}[dir=rtl] .mdc-switch--checked .mdc-switch__native-control,.mdc-switch--checked .mdc-switch__native-control[dir=rtl]{transform:translateX(16px)}.mdc-switch--disabled{opacity:.38;pointer-events:none}.mdc-switch--disabled .mdc-switch__thumb{border-width:1px}.mdc-switch--disabled .mdc-switch__native-control{cursor:default;pointer-events:none}:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:transparent}`,ss={"mwc-switch":class extends os{static get styles(){return rs}},"mwc-ripple":class extends Yr{static get styles(){return $r}}};
/**
* @license
* Copyright 2016 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
var ds={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-text-field__icon--leading",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",OUTLINE_SELECTOR:".mdc-notched-outline",PREFIX_SELECTOR:".mdc-text-field__affix--prefix",SUFFIX_SELECTOR:".mdc-text-field__affix--suffix",TRAILING_ICON_SELECTOR:".mdc-text-field__icon--trailing"},ls={DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",HELPER_LINE:"mdc-text-field-helper-line",INVALID:"mdc-text-field--invalid",LABEL_FLOATING:"mdc-text-field--label-floating",NO_LABEL:"mdc-text-field--no-label",OUTLINED:"mdc-text-field--outlined",ROOT:"mdc-text-field",TEXTAREA:"mdc-text-field--textarea",WITH_LEADING_ICON:"mdc-text-field--with-leading-icon",WITH_TRAILING_ICON:"mdc-text-field--with-trailing-icon",WITH_INTERNAL_COUNTER:"mdc-text-field--with-internal-counter"},cs={LABEL_SCALE:.75},ms=["pattern","min","max","required","step","minlength","maxlength"],hs=["color","date","datetime-local","month","range","time","week"],us=["mousedown","touchstart"],ps=["click","keydown"],fs=function(e){function t(i,a){void 0===a&&(a={});var o=e.call(this,n(n({},t.defaultAdapter),i))||this;return o.isFocused=!1,o.receivedUserInput=!1,o.valid=!0,o.useNativeValidation=!0,o.validateOnValueChange=!0,o.helperText=a.helperText,o.characterCounter=a.characterCounter,o.leadingIcon=a.leadingIcon,o.trailingIcon=a.trailingIcon,o.inputFocusHandler=function(){o.activateFocus()},o.inputBlurHandler=function(){o.deactivateFocus()},o.inputInputHandler=function(){o.handleInput()},o.setPointerXOffset=function(e){o.setTransformOrigin(e)},o.textFieldInteractionHandler=function(){o.handleTextFieldInteraction()},o.validationAttributeChangeHandler=function(e){o.handleValidationAttributeChange(e)},o}return i(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ls},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return ds},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return cs},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldAlwaysFloat",{get:function(){var e=this.getNativeInput().type;return hs.indexOf(e)>=0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat||this.isFocused||!!this.getValue()||this.isBadInput()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldShake",{get:function(){return!this.isFocused&&!this.isValid()&&!!this.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},setInputAttr:function(){},removeInputAttr:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver((function(){}))},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},setLabelRequired:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e,t,i,n;this.adapter.hasLabel()&&this.getNativeInput().required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused()?this.inputFocusHandler():this.adapter.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler);try{for(var a=o(us),r=a.next();!r.done;r=a.next()){var s=r.value;this.adapter.registerInputInteractionHandler(s,this.setPointerXOffset)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}try{for(var d=o(ps),l=d.next();!l.done;l=d.next()){s=l.value;this.adapter.registerTextFieldInteractionHandler(s,this.textFieldInteractionHandler)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(n=d.return)&&n.call(d)}finally{if(i)throw i.error}}this.validationObserver=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler),this.setcharacterCounter(this.getValue().length)},t.prototype.destroy=function(){var e,t,i,n;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler);try{for(var a=o(us),r=a.next();!r.done;r=a.next()){var s=r.value;this.adapter.deregisterInputInteractionHandler(s,this.setPointerXOffset)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}try{for(var d=o(ps),l=d.next();!l.done;l=d.next()){s=l.value;this.adapter.deregisterTextFieldInteractionHandler(s,this.textFieldInteractionHandler)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(n=d.return)&&n.call(d)}finally{if(i)throw i.error}}this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver)},t.prototype.handleTextFieldInteraction=function(){var e=this.adapter.getNativeInput();e&&e.disabled||(this.receivedUserInput=!0)},t.prototype.handleValidationAttributeChange=function(e){var t=this;e.some((function(e){return ms.indexOf(e)>-1&&(t.styleValidity(!0),t.adapter.setLabelRequired(t.getNativeInput().required),!0)})),e.indexOf("maxlength")>-1&&this.setcharacterCounter(this.getValue().length)},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()&&this.adapter.hasLabel())if(e){var t=this.adapter.getLabelWidth()*cs.LABEL_SCALE;this.adapter.notchOutline(t)}else this.adapter.closeOutline()},t.prototype.activateFocus=function(){this.isFocused=!0,this.styleFocused(this.isFocused),this.adapter.activateLineRipple(),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),!this.helperText||!this.helperText.isPersistent()&&this.helperText.isValidation()&&this.valid||this.helperText.showToScreenReader()},t.prototype.setTransformOrigin=function(e){if(!this.isDisabled()&&!this.adapter.hasOutline()){var t=e.touches,i=t?t[0]:e,n=i.target.getBoundingClientRect(),a=i.clientX-n.left;this.adapter.setLineRippleTransformOrigin(a)}},t.prototype.handleInput=function(){this.autoCompleteFocus(),this.setcharacterCounter(this.getValue().length)},t.prototype.autoCompleteFocus=function(){this.receivedUserInput||this.activateFocus()},t.prototype.deactivateFocus=function(){this.isFocused=!1,this.adapter.deactivateLineRipple();var e=this.isValid();this.styleValidity(e),this.styleFocused(this.isFocused),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput=!1)},t.prototype.getValue=function(){return this.getNativeInput().value},t.prototype.setValue=function(e){if(this.getValue()!==e&&(this.getNativeInput().value=e),this.setcharacterCounter(e.length),this.validateOnValueChange){var t=this.isValid();this.styleValidity(t)}this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.validateOnValueChange&&this.adapter.shakeLabel(this.shouldShake))},t.prototype.isValid=function(){return this.useNativeValidation?this.isNativeInputValid():this.valid},t.prototype.setValid=function(e){this.valid=e,this.styleValidity(e);var t=!e&&!this.isFocused&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(t)},t.prototype.setValidateOnValueChange=function(e){this.validateOnValueChange=e},t.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange},t.prototype.setUseNativeValidation=function(e){this.useNativeValidation=e},t.prototype.isDisabled=function(){return this.getNativeInput().disabled},t.prototype.setDisabled=function(e){this.getNativeInput().disabled=e,this.styleDisabled(e)},t.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},t.prototype.setTrailingIconAriaLabel=function(e){this.trailingIcon&&this.trailingIcon.setAriaLabel(e)},t.prototype.setTrailingIconContent=function(e){this.trailingIcon&&this.trailingIcon.setContent(e)},t.prototype.setcharacterCounter=function(e){if(this.characterCounter){var t=this.getNativeInput().maxLength;if(-1===t)throw new Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter.setCounterValue(e,t)}},t.prototype.isBadInput=function(){return this.getNativeInput().validity.badInput||!1},t.prototype.isNativeInputValid=function(){return this.getNativeInput().validity.valid},t.prototype.styleValidity=function(e){var i=t.cssClasses.INVALID;if(e?this.adapter.removeClass(i):this.adapter.addClass(i),this.helperText){if(this.helperText.setValidity(e),!this.helperText.isValidation())return;var n=this.helperText.isVisible(),a=this.helperText.getId();n&&a?this.adapter.setInputAttr(ds.ARIA_DESCRIBEDBY,a):this.adapter.removeInputAttr(ds.ARIA_DESCRIBEDBY)}},t.prototype.styleFocused=function(e){var i=t.cssClasses.FOCUSED;e?this.adapter.addClass(i):this.adapter.removeClass(i)},t.prototype.styleDisabled=function(e){var i=t.cssClasses,n=i.DISABLED,a=i.INVALID;e?(this.adapter.addClass(n),this.adapter.removeClass(a)):this.adapter.removeClass(n),this.leadingIcon&&this.leadingIcon.setDisabled(e),this.trailingIcon&&this.trailingIcon.setDisabled(e)},t.prototype.styleFloating=function(e){var i=t.cssClasses.LABEL_FLOATING;e?this.adapter.addClass(i):this.adapter.removeClass(i)},t.prototype.getNativeInput=function(){return(this.adapter?this.adapter.getNativeInput():null)||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},t}(Ra);
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const gs={},vs=oo(class extends ro{constructor(e){if(super(e),e.type!==no&&e.type!==to&&e.type!==ao)throw Error("The `live` directive is not allowed on child or event bindings");if(!(e=>void 0===e.strings)(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,t){let[i]=t;if(i===be||i===xe)return i;const n=e.element,a=e.name;if(e.type===no){if(i===n[a])return be}else if(e.type===ao){if(!!i===n.hasAttribute(a))return be}else if(e.type===to&&n.getAttribute(a)===i+"")return be;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gs;e._$AH=t}(e),i}}),_s=["touchstart","touchmove","scroll","mousewheel"],ys=(e={})=>{const t={};for(const i in e)t[i]=e[i];return Object.assign({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1},t)};
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/class bs extends Qa{constructor(){super(...arguments),this.mdcFoundationClass=fs,this.value="",this.type="text",this.placeholder="",this.label="",this.icon="",this.iconTrailing="",this.disabled=!1,this.required=!1,this.minLength=-1,this.maxLength=-1,this.outlined=!1,this.helper="",this.validateOnInitialRender=!1,this.validationMessage="",this.autoValidate=!1,this.pattern="",this.min="",this.max="",this.step=null,this.size=null,this.helperPersistent=!1,this.charCounter=!1,this.endAligned=!1,this.prefix="",this.suffix="",this.name="",this.readOnly=!1,this.autocapitalize="",this.outlineOpen=!1,this.outlineWidth=0,this.isUiValid=!0,this.focused=!1,this._validity=ys(),this.validityTransform=null}get validity(){return this._checkValidity(this.value),this._validity}get willValidate(){return this.formElement.willValidate}get selectionStart(){return this.formElement.selectionStart}get selectionEnd(){return this.formElement.selectionEnd}focus(){const e=new CustomEvent("focus");this.formElement.dispatchEvent(e),this.formElement.focus()}blur(){const e=new CustomEvent("blur");this.formElement.dispatchEvent(e),this.formElement.blur()}select(){this.formElement.select()}setSelectionRange(e,t,i){this.formElement.setSelectionRange(e,t,i)}update(e){e.has("autoValidate")&&this.mdcFoundation&&this.mdcFoundation.setValidateOnValueChange(this.autoValidate),e.has("value")&&"string"!=typeof this.value&&(this.value=`${this.value}`),super.update(e)}setFormData(e){this.name&&e.append(this.name,this.value)}render(){const e=this.charCounter&&-1!==this.maxLength,t=!!this.helper||!!this.validationMessage||e,i={"mdc-text-field--disabled":this.disabled,"mdc-text-field--no-label":!this.label,"mdc-text-field--filled":!this.outlined,"mdc-text-field--outlined":this.outlined,"mdc-text-field--with-leading-icon":this.icon,"mdc-text-field--with-trailing-icon":this.iconTrailing,"mdc-text-field--end-aligned":this.endAligned};return ye`
<label class="mdc-text-field ${so(i)}">
${this.renderRipple()}
${this.outlined?this.renderOutline():this.renderLabel()}
${this.renderLeadingIcon()}
${this.renderPrefix()}
${this.renderInput(t)}
${this.renderSuffix()}
${this.renderTrailingIcon()}
${this.renderLineRipple()}
</label>
${this.renderHelperText(t,e)}
`}updated(e){e.has("value")&&void 0!==e.get("value")&&(this.mdcFoundation.setValue(this.value),this.autoValidate&&this.reportValidity())}renderRipple(){return this.outlined?"":ye`
<span class="mdc-text-field__ripple"></span>
`}renderOutline(){return this.outlined?ye`
<mwc-notched-outline
.width=${this.outlineWidth}
.open=${this.outlineOpen}
class="mdc-notched-outline">
${this.renderLabel()}
</mwc-notched-outline>`:""}renderLabel(){return this.label?ye`
<span
.floatingLabelFoundation=${Br(this.label)}
id="label">${this.label}</span>
`:""}renderLeadingIcon(){return this.icon?this.renderIcon(this.icon):""}renderTrailingIcon(){return this.iconTrailing?this.renderIcon(this.iconTrailing,!0):""}renderIcon(e,t=!1){return ye`<i class="material-icons mdc-text-field__icon ${so({"mdc-text-field__icon--leading":!t,"mdc-text-field__icon--trailing":t})}">${e}</i>`}renderPrefix(){return this.prefix?this.renderAffix(this.prefix):""}renderSuffix(){return this.suffix?this.renderAffix(this.suffix,!0):""}renderAffix(e,t=!1){return ye`<span class="mdc-text-field__affix ${so({"mdc-text-field__affix--prefix":!t,"mdc-text-field__affix--suffix":t})}">
${e}</span>`}renderInput(e){const t=-1===this.minLength?void 0:this.minLength,i=-1===this.maxLength?void 0:this.maxLength,n=this.autocapitalize?this.autocapitalize:void 0,a=this.validationMessage&&!this.isUiValid,o=this.label?"label":void 0,r=e?"helper-text":void 0,s=this.focused||this.helperPersistent||a?"helper-text":void 0;return ye`
<input
aria-labelledby=${uo(o)}
aria-controls="${uo(r)}"
aria-describedby="${uo(s)}"
class="mdc-text-field__input"
type="${this.type}"
.value="${vs(this.value)}"
?disabled="${this.disabled}"
placeholder="${this.placeholder}"
?required="${this.required}"
?readonly="${this.readOnly}"
minlength="${uo(t)}"
maxlength="${uo(i)}"
pattern="${uo(this.pattern?this.pattern:void 0)}"
min="${uo(""===this.min?void 0:this.min)}"
max="${uo(""===this.max?void 0:this.max)}"
step="${uo(null===this.step?void 0:this.step)}"
size="${uo(null===this.size?void 0:this.size)}"
name="${uo(""===this.name?void 0:this.name)}"
inputmode="${uo(this.inputMode)}"
autocapitalize="${uo(n)}"
@input="${this.handleInputChange}"
@focus="${this.onInputFocus}"
@blur="${this.onInputBlur}">`}renderLineRipple(){return this.outlined?"":ye`
<span .lineRippleFoundation=${Wr()}></span>
`}renderHelperText(e,t){const i=this.validationMessage&&!this.isUiValid,n={"mdc-text-field-helper-text--persistent":this.helperPersistent,"mdc-text-field-helper-text--validation-msg":i},a=this.focused||this.helperPersistent||i?void 0:"true",o=i?this.validationMessage:this.helper;return e?ye`
<div class="mdc-text-field-helper-line">
<div id="helper-text"
aria-hidden="${uo(a)}"
class="mdc-text-field-helper-text ${so(n)}"
>${o}</div>
${this.renderCharCounter(t)}
</div>`:""}renderCharCounter(e){const t=Math.min(this.value.length,this.maxLength);return e?ye`
<span class="mdc-text-field-character-counter"
>${t} / ${this.maxLength}</span>`:""}onInputFocus(){this.focused=!0}onInputBlur(){this.focused=!1,this.reportValidity()}checkValidity(){const e=this._checkValidity(this.value);if(!e){const e=new Event("invalid",{bubbles:!1,cancelable:!0});this.dispatchEvent(e)}return e}reportValidity(){const e=this.checkValidity();return this.mdcFoundation.setValid(e),this.isUiValid=e,e}_checkValidity(e){const t=this.formElement.validity;let i=ys(t);if(this.validityTransform){const t=this.validityTransform(e,i);i=Object.assign(Object.assign({},i),t),this.mdcFoundation.setUseNativeValidation(!1)}else this.mdcFoundation.setUseNativeValidation(!0);return this._validity=i,this._validity.valid}setCustomValidity(e){this.validationMessage=e,this.formElement.setCustomValidity(e)}handleInputChange(){this.value=this.formElement.value}createAdapter(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.getRootAdapterMethods()),this.getInputAdapterMethods()),this.getLabelAdapterMethods()),this.getLineRippleAdapterMethods()),this.getOutlineAdapterMethods())}getRootAdapterMethods(){return Object.assign({registerTextFieldInteractionHandler:(e,t)=>this.addEventListener(e,t),deregisterTextFieldInteractionHandler:(e,t)=>this.removeEventListener(e,t),registerValidationAttributeChangeHandler:e=>{const t=new MutationObserver((t=>{e((e=>e.map((e=>e.attributeName)).filter((e=>e)))(t))}));return t.observe(this.formElement,{attributes:!0}),t},deregisterValidationAttributeChangeHandler:e=>e.disconnect()},Va(this.mdcRoot))}getInputAdapterMethods(){return{getNativeInput:()=>this.formElement,setInputAttr:()=>{},removeInputAttr:()=>{},isFocused:()=>!!this.shadowRoot&&this.shadowRoot.activeElement===this.formElement,registerInputInteractionHandler:(e,t)=>this.formElement.addEventListener(e,t,{passive:e in _s}),deregisterInputInteractionHandler:(e,t)=>this.formElement.removeEventListener(e,t)}}getLabelAdapterMethods(){return{floatLabel:e=>this.labelElement&&this.labelElement.floatingLabelFoundation.float(e),getLabelWidth:()=>this.labelElement?this.labelElement.floatingLabelFoundation.getWidth():0,hasLabel:()=>Boolean(this.labelElement),shakeLabel:e=>this.labelElement&&this.labelElement.floatingLabelFoundation.shake(e),setLabelRequired:e=>{this.labelElement&&this.labelElement.floatingLabelFoundation.setRequired(e)}}}getLineRippleAdapterMethods(){return{activateLineRipple:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.activate()},deactivateLineRipple:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.deactivate()},setLineRippleTransformOrigin:e=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.setRippleCenter(e)}}}async getUpdateComplete(){var e;const t=await super.getUpdateComplete();return await(null===(e=this.outlineElement)||void 0===e?void 0:e.updateComplete),t}firstUpdated(){var e;super.firstUpdated(),this.mdcFoundation.setValidateOnValueChange(this.autoValidate),this.validateOnInitialRender&&this.reportValidity(),null===(e=this.outlineElement)||void 0===e||e.updateComplete.then((()=>{var e;this.outlineWidth=(null===(e=this.labelElement)||void 0===e?void 0:e.floatingLabelFoundation.getWidth())||0}))}getOutlineAdapterMethods(){return{closeOutline:()=>this.outlineElement&&(this.outlineOpen=!1),hasOutline:()=>Boolean(this.outlineElement),notchOutline:e=>{this.outlineElement&&!this.outlineOpen&&(this.outlineWidth=e,this.outlineOpen=!0)}}}async layout(){await this.updateComplete;const e=this.labelElement;if(!e)return void(this.outlineOpen=!1);const t=!!this.label&&!!this.value;if(e.floatingLabelFoundation.float(t),!this.outlined)return;this.outlineOpen=t,await this.updateComplete;const i=e.floatingLabelFoundation.getWidth();this.outlineOpen&&(this.outlineWidth=i,await this.updateComplete)}}a([_t(".mdc-text-field")],bs.prototype,"mdcRoot",void 0),a([_t("input")],bs.prototype,"formElement",void 0),a([_t(".mdc-floating-label")],bs.prototype,"labelElement",void 0),a([_t(".mdc-line-ripple")],bs.prototype,"lineRippleElement",void 0),a([_t("mwc-notched-outline")],bs.prototype,"outlineElement",void 0),a([_t(".mdc-notched-outline__notch")],bs.prototype,"notchElement",void 0),a([pt({type:String})],bs.prototype,"value",void 0),a([pt({type:String})],bs.prototype,"type",void 0),a([pt({type:String})],bs.prototype,"placeholder",void 0),a([pt({type:String}),eo((function(e,t){void 0!==t&&this.label!==t&&this.layout()}))],bs.prototype,"label",void 0),a([pt({type:String})],bs.prototype,"icon",void 0),a([pt({type:String})],bs.prototype,"iconTrailing",void 0),a([pt({type:Boolean,reflect:!0})],bs.prototype,"disabled",void 0),a([pt({type:Boolean})],bs.prototype,"required",void 0),a([pt({type:Number})],bs.prototype,"minLength",void 0),a([pt({type:Number})],bs.prototype,"maxLength",void 0),a([pt({type:Boolean,reflect:!0}),eo((function(e,t){void 0!==t&&this.outlined!==t&&this.layout()}))],bs.prototype,"outlined",void 0),a([pt({type:String})],bs.prototype,"helper",void 0),a([pt({type:Boolean})],bs.prototype,"validateOnInitialRender",void 0),a([pt({type:String})],bs.prototype,"validationMessage",void 0),a([pt({type:Boolean})],bs.prototype,"autoValidate",void 0),a([pt({type:String})],bs.prototype,"pattern",void 0),a([pt({type:String})],bs.prototype,"min",void 0),a([pt({type:String})],bs.prototype,"max",void 0),a([pt({type:String})],bs.prototype,"step",void 0),a([pt({type:Number})],bs.prototype,"size",void 0),a([pt({type:Boolean})],bs.prototype,"helperPersistent",void 0),a([pt({type:Boolean})],bs.prototype,"charCounter",void 0),a([pt({type:Boolean})],bs.prototype,"endAligned",void 0),a([pt({type:String})],bs.prototype,"prefix",void 0),a([pt({type:String})],bs.prototype,"suffix",void 0),a([pt({type:String})],bs.prototype,"name",void 0),a([pt({type:String})],bs.prototype,"inputMode",void 0),a([pt({type:Boolean})],bs.prototype,"readOnly",void 0),a([pt({type:String})],bs.prototype,"autocapitalize",void 0),a([ft()],bs.prototype,"outlineOpen",void 0),a([ft()],bs.prototype,"outlineWidth",void 0),a([ft()],bs.prototype,"isUiValid",void 0),a([ft()],bs.prototype,"focused",void 0),a([gt({passive:!0})],bs.prototype,"handleInputChange",null);
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
*/
const xs=je`.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform;transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required::after,.mdc-floating-label--required[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);border-bottom-width:2px;opacity:0;z-index:2}.mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-text-field--filled{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-text-field--filled .mdc-text-field__ripple::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-text-field--filled .mdc-text-field__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-text-field--filled.mdc-ripple-upgraded--unbounded .mdc-text-field__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-text-field--filled.mdc-ripple-upgraded--foreground-activation .mdc-text-field__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-text-field--filled.mdc-ripple-upgraded--foreground-deactivation .mdc-text-field__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-text-field__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input{color:rgba(0, 0, 0, 0.87)}@media all{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:rgba(0, 0, 0, 0.54)}}@media all{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:rgba(0, 0, 0, 0.54)}}.mdc-text-field .mdc-text-field__input{caret-color:#6200ee;caret-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field-character-counter,.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--leading{color:rgba(0, 0, 0, 0.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:rgba(0, 0, 0, 0.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--prefix{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--suffix{color:rgba(0, 0, 0, 0.6)}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);height:28px;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}}.mdc-text-field__affix{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);height:28px;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{background-color:rgba(0, 0, 0, 0.87);background-color:var(--mdc-ripple-color, rgba(0, 0, 0, 0.87))}.mdc-text-field--filled:hover .mdc-text-field__ripple::before,.mdc-text-field--filled.mdc-ripple-surface--hover .mdc-text-field__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:whitesmoke}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42)}.mdc-text-field--filled:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-color:#6200ee;border-bottom-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.38)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.87)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-text-field__ripple::before,.mdc-text-field--outlined .mdc-text-field__ripple::after{background-color:transparent;background-color:var(--mdc-ripple-color, transparent)}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:transparent}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0;transition:none}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px;line-height:1.5rem}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(98, 0, 238, 0.87)}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid .mdc-text-field__input{caret-color:#b00020;caret-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}.mdc-text-field--disabled .mdc-text-field__input{color:rgba(0, 0, 0, 0.38)}@media all{.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:rgba(0, 0, 0, 0.38)}}@media all{.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:rgba(0, 0, 0, 0.38)}}.mdc-text-field--disabled .mdc-floating-label{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field__icon--leading{color:rgba(0, 0, 0, 0.3)}.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:rgba(0, 0, 0, 0.3)}.mdc-text-field--disabled .mdc-text-field__affix--prefix{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06)}.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.06)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-floating-label{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__icon--leading{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__affix--prefix{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:GrayText}}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled{background-color:#fafafa}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-text-field-helper-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block;margin-top:0;line-height:normal;margin:0;opacity:0;will-change:opacity;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-text-field-helper-text::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.mdc-text-field-helper-text--persistent{transition:none;opacity:1;will-change:initial}.mdc-text-field-character-counter{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block;margin-top:0;line-height:normal;margin-left:auto;margin-right:0;padding-left:16px;padding-right:0;white-space:nowrap}.mdc-text-field-character-counter::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}[dir=rtl] .mdc-text-field-character-counter,.mdc-text-field-character-counter[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-text-field-character-counter,.mdc-text-field-character-counter[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field__icon{align-self:center;cursor:pointer}.mdc-text-field__icon:not([tabindex]),.mdc-text-field__icon[tabindex="-1"]{cursor:default;pointer-events:none}.mdc-text-field__icon svg{display:block}.mdc-text-field__icon--leading{margin-left:16px;margin-right:8px}[dir=rtl] .mdc-text-field__icon--leading,.mdc-text-field__icon--leading[dir=rtl]{margin-left:8px;margin-right:16px}.mdc-text-field__icon--trailing{padding:12px;margin-left:0px;margin-right:0px}[dir=rtl] .mdc-text-field__icon--trailing,.mdc-text-field__icon--trailing[dir=rtl]{margin-left:0px;margin-right:0px}.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}:host{display:inline-flex;flex-direction:column;outline:none}.mdc-text-field{width:100%}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42);border-bottom-color:var(--mdc-text-field-idle-line-color, rgba(0, 0, 0, 0.42))}.mdc-text-field:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87);border-bottom-color:var(--mdc-text-field-hover-line-color, rgba(0, 0, 0, 0.87))}.mdc-text-field.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06);border-bottom-color:var(--mdc-text-field-disabled-line-color, rgba(0, 0, 0, 0.06))}.mdc-text-field.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field__input{direction:inherit}mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-outlined-idle-border-color, rgba(0, 0, 0, 0.38) )}:host(:not([disabled]):hover) :not(.mdc-text-field--invalid):not(.mdc-text-field--focused) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-outlined-hover-border-color, rgba(0, 0, 0, 0.87) )}:host(:not([disabled])) .mdc-text-field:not(.mdc-text-field--outlined){background-color:var(--mdc-text-field-fill-color, whitesmoke)}:host(:not([disabled])) .mdc-text-field.mdc-text-field--invalid mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-error-color, var(--mdc-theme-error, #b00020) )}:host(:not([disabled])) .mdc-text-field.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-character-counter,:host(:not([disabled])) .mdc-text-field.mdc-text-field--invalid .mdc-text-field__icon{color:var(--mdc-text-field-error-color, var(--mdc-theme-error, #b00020))}:host(:not([disabled])) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label,:host(:not([disabled])) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label::after{color:var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6))}:host(:not([disabled])) .mdc-text-field.mdc-text-field--focused mwc-notched-outline{--mdc-notched-outline-stroke-width: 2px}:host(:not([disabled])) .mdc-text-field.mdc-text-field--focused:not(.mdc-text-field--invalid) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-focused-label-color, var(--mdc-theme-primary, rgba(98, 0, 238, 0.87)) )}:host(:not([disabled])) .mdc-text-field.mdc-text-field--focused:not(.mdc-text-field--invalid) .mdc-floating-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host(:not([disabled])) .mdc-text-field .mdc-text-field__input{color:var(--mdc-text-field-ink-color, rgba(0, 0, 0, 0.87))}:host(:not([disabled])) .mdc-text-field .mdc-text-field__input::placeholder{color:var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6))}:host(:not([disabled])) .mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg),:host(:not([disabled])) .mdc-text-field-helper-line:not(.mdc-text-field--invalid) .mdc-text-field-character-counter{color:var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6))}:host([disabled]) .mdc-text-field:not(.mdc-text-field--outlined){background-color:var(--mdc-text-field-disabled-fill-color, #fafafa)}:host([disabled]) .mdc-text-field.mdc-text-field--outlined mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-outlined-disabled-border-color, rgba(0, 0, 0, 0.06) )}:host([disabled]) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label,:host([disabled]) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label::after{color:var(--mdc-text-field-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-text-field .mdc-text-field__input,:host([disabled]) .mdc-text-field .mdc-text-field__input::placeholder{color:var(--mdc-text-field-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-text-field-helper-line .mdc-text-field-helper-text,:host([disabled]) .mdc-text-field-helper-line .mdc-text-field-character-counter{color:var(--mdc-text-field-disabled-ink-color, rgba(0, 0, 0, 0.38))}`,ws={"mwc-textfield":class extends bs{static get styles(){return xs}},"mwc-notched-outline":class extends Er{static get styles(){return Tr}}};let ks=class extends(kt(lt)){constructor(){super(...arguments),this._initialized=!1}static get styles(){return za}setConfig(e){const t=JSON.parse(JSON.stringify(e));this._config=Object.assign({},t),this.loadCardHelpers()}shouldUpdate(){return this._initialized||this._initialize(),!0}render(){return this.hass&&this._helpers&&this.options?ye`
<div class="card-config">
<div class="sponsor">
<div>
Please consider sponsoring this project. <br />
This will help keep the project alive and continue development.
</div>
<div class="badge">
<a href="https://github.com/sponsors/marksie1988" target="_blank">
<img
src="https://img.shields.io/badge/sponsor-000?style=for-the-badge&logo=githubsponsors&logoColor=red"
/>
</a>
</div>
</div>
${Object.entries(this.options).map((e=>this.renderOption(e[0],e[1])))}
</div>
`:ye``}renderOption(e,t){return ye`
<div class="option" @click=${this._toggleOption} .option=${e}>
<div class="row">
<span>
<ha-icon icon="mdi:${t.icon}" class="icon" style="color: white;"></ha-icon>
</span>
<div class="title">${t.name}</div>
</div>
<div class="secondary">${t.description}</div>
</div>
${t.show?"entities"===e?this.renderEntities():ye` <div class="values">${t.properties.map((e=>this.renderProperty(e)))}</div>`:""}
`}renderProperty(e){return"text"==e.type?this.renderTextProperty(e):"number"==e.type?this.renderNumberProperty(e):"dropdown"==e.type?this.renderDropdownProperty(e):"switch"==e.type?this.renderSwitchProperty(e):ye``}renderTextProperty(e){return ye`
<br />
<mwc-textfield
class="mwc-text-field"
label=${e.label}
.value=${this.getPropertyValue(e)||e.default||""}
.configValue=${e.name}
@input=${this._valueChanged}
></mwc-textfield>
`}renderNumberProperty(e){return ye`
<br />
<mwc-textfield
class="mwc-text-field"
label=${e.label}
type="number"
.value=${this.getPropertyValue(e)||e.default}
.configValue=${e.name}
.number=${!0}
@input=${this._valueChanged}
min=${e.min}
max=${e.max}
></mwc-textfield>
`}renderSwitchProperty(e){const t=this.getPropertyValue(e);return ye`
<br />
<mwc-switch
.checked=${null!=t?t:null!=e.default&&e.default}
.configValue=${e.name}
@change=${this._valueChanged}
></mwc-switch>
<label class="mdc-label">${e.label}</label>
`}renderDropdownProperty(e){return ye`
<br />
<mwc-select
naturalMenuWidth
fixedMenuPosition
label=${e.label}
.configValue=${e.name}
.value=${this.getPropertyValue(e)||e.default||""}
@selected=${this._valueChanged}
@closed=${e=>e.stopPropagation()}
>
${e.items.map((e=>ye` <mwc-list-item .value=${e}>${e}</mwc-list-item> `))}
</mwc-select>
`}getPropertyValue(e){if(null==this._config)return;const t=e.section?this._config[e.section]:this._config;return null!=t?t[e.name]:void 0}_initialize(){if(void 0===this.hass)return;if(void 0===this._config)return;if(void 0===this._helpers)return;this._initialized=!0;const e=["_blank","_self","_parent","_top"],t=["Event","Calendar"],i=["start","milestone","none"];this.options={entities:{icon:"tune",name:Ha("required.name"),description:Ha("required.secondary"),show:!1,properties:[]},main:{icon:"eye-settings",name:Ha("main.name"),description:Ha("main.secondary"),show:!1,properties:[{type:"text",name:"name",label:Ha("main.fields.name")},{type:"number",name:"titleLength",label:Ha("main.fields.titleLength"),min:0,max:99999999999,default:Et.titleLength},{type:"number",name:"descLength",label:Ha("main.fields.descLength"),min:0,max:99999999999,default:Et.descLength},{type:"number",name:"firstDayOfWeek",label:Ha("main.fields.firstDayOfWeek"),min:0,max:6,default:Et.firstDayOfWeek},{type:"number",name:"maxDaysToShow",label:Ha("main.fields.maxDaysToShow"),min:0,max:99999999999,default:Et.maxDaysToShow},{type:"number",name:"startDaysAhead",label:Ha("main.fields.startDaysAhead"),min:0,max:999,default:Et.startDaysAhead},{type:"number",name:"refreshInterval",label:Ha("main.fields.refreshInterval"),min:60,max:99999999999,default:Et.refreshInterval},{type:"text",name:"dateFormat",label:Ha("main.fields.dateFormat"),default:Et.dateFormat},{type:"text",name:"eventTitle",label:Ha("main.fields.eventTitle")},{type:"dropdown",items:t,name:"defaultMode",section:"main",label:Ha("main.fields.defaultMode"),selected:t.indexOf(this._config.defaultMode||Et.defaultMode)},{type:"dropdown",items:e,name:"linkTarget",section:"main",label:Ha("main.fields.linkTarget"),selected:e.indexOf(this._config.linkTarget||Et.linkTarget)},{type:"dropdown",items:i,name:"sortBy",section:"main",label:Ha("main.fields.sortBy"),selected:i.indexOf(this._config.sortBy||Et.sortBy)},{type:"text",name:"cardHeight",label:Ha("main.fields.cardHeight"),default:Et.cardHeight},{type:"switch",name:"showLoader",label:Ha("main.fields.showLoader"),default:Et.showLoader},{type:"switch",name:"showDate",label:Ha("main.fields.showDate"),default:Et.showDate},{type:"switch",name:"showDeclined",label:Ha("main.fields.showDeclined")},{type:"switch",name:"hideFinishedEvents",label:Ha("main.fields.hideFinishedEvents"),default:Et.hideFinishedEvents},{type:"switch",name:"showLocation",label:Ha("main.fields.showLocation"),default:Et.showLocation},{type:"switch",name:"showRelativeTime",label:Ha("main.fields.showRelativeTime"),default:Et.showRelativeTime},{type:"switch",name:"hideDuplicates",label:Ha("main.fields.hideDuplicates"),default:Et.hideDuplicates},{type:"switch",name:"showMultiDay",label:Ha("main.fields.showMultiDay"),default:Et.showMultiDay},{type:"switch",name:"showMultiDayEventParts",label:Ha("main.fields.showMultiDayEventParts"),default:Et.showMultiDayEventParts},{type:"switch",name:"compactMode",label:Ha("main.fields.compactMode")},{type:"switch",name:"showAllDayEvents",label:Ha("main.fields.showAllDayEvents"),default:Et.showAllDayEvents},{type:"switch",name:"offsetHeaderDate",label:Ha("main.fields.offsetHeaderDate"),default:Et.offsetHeaderDate},{type:"switch",name:"allDayBottom",label:Ha("main.fields.allDayBottom"),default:Et.allDayBottom}]},event:{icon:"calendar-check",name:Ha("event.name"),description:Ha("event.secondary"),show:!1,properties:[{type:"text",name:"untilText",label:Ha("event.fields.untilText")},{type:"text",name:"noEventsForNextDaysText",label:Ha("event.fields.noEventsForNextDaysText")},{type:"text",name:"noEventText",label:Ha("event.fields.noEventText")},{type:"text",name:"hiddenEventText",label:Ha("event.fields.hiddenEventText")},{type:"text",name:"eventDateFormat",label:Ha("event.fields.eventDateFormat"),default:Et.eventDateFormat},{type:"switch",name:"showCurrentEventLine",label:Ha("event.fields.showCurrentEventLine"),default:Et.showCurrentEventLine},{type:"switch",name:"showProgressBar",label:Ha("event.fields.showProgressBar"),default:Et.showProgressBar},{type:"switch",name:"showMonth",label:Ha("event.fields.showMonth"),default:Et.showMonth},{type:"switch",name:"showDescription",label:Ha("event.fields.showDescription"),default:Et.showDescription},{type:"switch",name:"disableEventLink",label:Ha("event.fields.disableEventLink"),default:Et.disableEventLink},{type:"switch",name:"disableLocationLink",label:Ha("event.fields.disableLocationLink"),default:Et.disableLocationLink},{type:"switch",name:"showNoEventsForToday",label:Ha("event.fields.showNoEventsForToday"),default:Et.showNoEventsForToday},{type:"switch",name:"showFullDayProgress",label:Ha("event.fields.showFullDayProgress"),default:Et.showFullDayProgress},{type:"switch",name:"showEventIcon",label:Ha("event.fields.showEventIcon"),default:Et.showEventIcon},{type:"switch",name:"showHiddenText",label:Ha("event.fields.showHiddenText"),default:Et.showHiddenText},{type:"switch",name:"showCalendarName",label:Ha("event.fields.showCalendarName"),default:Et.showCalendarName},{type:"switch",name:"showWeekNumber",label:Ha("event.fields.showWeekNumber"),default:Et.showWeekNumber},{type:"switch",name:"showEventDate",label:Ha("event.fields.showEventDate"),default:Et.showEventDate},{type:"switch",name:"showDatePerEvent",label:Ha("event.fields.showDatePerEvent"),default:Et.showDatePerEvent},{type:"switch",name:"showTimeRemaining",label:Ha("event.fields.showTimeRemaining")},{type:"switch",name:"showAllDayHours",label:Ha("event.fields.showAllDayHours"),default:Et.showAllDayHours},{type:"switch",name:"hoursOnSameLine",label:Ha("event.fields.hoursOnSameLine")}]},calendar:{icon:"calendar-month-outline",name:Ha("calendar.name"),description:Ha("calendar.secondary"),show:!1,properties:[{type:"switch",name:"calShowDescription",label:Ha("calendar.fields.calShowDescription")},{type:"switch",name:"showLastCalendarWeek",label:Ha("calendar.fields.showLastCalendarWeek"),default:Et.showLastCalendarWeek},{type:"switch",name:"disableCalEventLink",label:Ha("calendar.fields.disableCalEventLink")},{type:"switch",name:"disableCalLocationLink",label:Ha("calendar.fields.disableCalLocationLink")},{type:"switch",name:"disableCalLink",label:Ha("calendar.fields.disableCalLink")}]},appearance:{icon:"palette",name:Ha("appearance.name"),description:Ha("appearance.secondary"),show:!1,properties:[{type:"switch",name:"dimFinishedEvents",label:Ha("appearance.fields.dimFinishedEvents"),default:Et.dimFinishedEvents}]}}}async loadCardHelpers(){this._helpers=await window.loadCardHelpers()}_toggleOption(e){if(null==this.options)return;const t=!this.options[e.target.option].show;for(const[e]of Object.entries(this.options))this.options[e].show=!1;this.options[e.target.option].show=t,this._toggle=!this._toggle}_valueChanged(e){if(!this._config||!this.hass)return;const{target:t}=e,i=t.configSection,n=Object.assign({},this._config),a=(i?Object.assign({},n[i]):n)||{};if(t.configValue)if(void 0===t.value&&void 0===t.checked||""===t.value)delete a[t.configValue],this._config=i?Object.assign(Object.assign({},n),{[i]:a}):Object.assign({},a);else{const e=t.configValue,a=void 0!==t.checked?t.checked:t.value,o=t.number?parseFloat(a):a;this._config=i?Object.assign(Object.assign({},n),{[i]:Object.assign(Object.assign({},n[i]),{[e]:o})}):Object.assign(Object.assign({},n),{[e]:o})}Mt(this,"config-changed",{config:this._config})}get _entityOptions(){var e,t;const i=Object.keys(this.hass.states).filter((e=>"calendar"===e.substr(0,e.indexOf("."))));let n;return n="undefined"!=(null===(e=this._config)||void 0===e?void 0:e.entities)||"null"!=(null===(t=this._config)||void 0===t?void 0:t.entities)?i.map((e=>{var t;let i=null===(t=this._config)||void 0===t?void 0:t.entities.find((t=>(t&&t.entity||t)===e));const n=this.hass.states[e];return void 0===i?i={entity:e,name:n.attributes.friendly_name||e,entityChecked:!!i}:("name"in i||(i=Object.assign(Object.assign({},i),{name:i&&i.name||n.attributes.friendly_name||e})),i=Object.assign(Object.assign({},i),{entityChecked:!!i})),i})):i.map((e=>({entity:e,name:this.hass.states[e].attributes.friendly_name||e,entityChecked:!1}))),n}renderEntities(){return ye`<div class="values">
${this._entityOptions.map((e=>ye`
<div class="entity-box">
<mwc-switch
.checked=${e.entityChecked}
.entityId=${e.entity}
@change="${this._entityChanged}"
></mwc-switch>
<label class="mdc-label">${e.entity}</label>
${e.entityChecked?ye` <div class="entity-options">
<div class="side-by-side">
<div>
<mwc-textfield
label="Name"
.value="${e.name}"
.configValue=${"name"}
.entityId="${e.entity}"
@input="${this._entityValueChanged}"
></mwc-textfield>
</div>
<div>
<mwc-textfield
label="Icon"
.value="${void 0===e.icon?"":e.icon}"
.configValue=${"icon"}
.entityId="${e.entity}"
@input="${this._entityValueChanged}"
></mwc-textfield>
</div>
</div>
<div class="side-by-side">
<div>
<mwc-textfield
label="startTimeFilter"
.value="${void 0===e.startTimeFilter?"":e.startTimeFilter}"
.configValue=${"startTimeFilter"}
.entityId="${e.entity}"
@input="${this._entityValueChanged}"
></mwc-textfield>
</div>
<div>
<mwc-textfield
label="endTimeFilter"
.value="${void 0===e.endTimeFilter?"":e.endTimeFilter}"
.configValue=${"endTimeFilter"}
.entityId="${e.entity}"
@input="${this._entityValueChanged}"
></mwc-textfield>
</div>
</div>
<div class="side-by-side">
<div>
<mwc-textfield
label="maxDaysToShow"
.value="${void 0===e.maxDaysToShow?"":e.maxDaysToShow}"
.configValue=${"maxDaysToShow"}
.entityId="${e.entity}"
type="number"
@input="${this._entityValueChanged}"
></mwc-textfield>
</div>
<div></div>
</div>
<div class="side-by-side">
<div>
<mwc-textfield
label="blocklist"
.value="${void 0===e.blocklist?"":e.blocklist}"
.configValue=${"blocklist"}
.entityId="${e.entity}"
@input="${this._entityValueChanged}"
></mwc-textfield>
</div>
<div>
<mwc-textfield
label="blocklistLocation"
.value="${void 0===e.blocklistLocation?"":e.blocklistLocation}"
.configValue=${"blocklistLocation"}
.entityId="${e.entity}"
@input="${this._entityValueChanged}"
></mwc-textfield>
</div>
</div>
<div class="side-by-side">
<div>
<mwc-textfield
label="allowlist"
.value="${void 0===e.allowlist?"":e.allowlist}"
.configValue=${"allowlist"}
.entityId="${e.entity}"
@input="${this._entityValueChanged}"
></mwc-textfield>
</div>
<div>
<mwc-textfield
label="allowlistLocation"
.value="${void 0===e.allowlistLocation?"":e.allowlistLocation}"
.configValue=${"allowlistLocation"}
.entityId="${e.entity}"
@input="${this._entityValueChanged}"
></mwc-textfield>
</div>
</div>
<div class="side-by-side">
<div>
<mwc-textfield
label="eventTitle"
.value="${void 0===e.eventTitle?"":e.eventTitle}"
.configValue=${"eventTitle"}
.entityId="${e.entity}"
@input="${this._entityValueChanged}"
></mwc-textfield>
</div>
<div></div>
</div>
<div class="side-by-side">
<div>
<mwc-switch
.checked=${!1!==e.showMultiDay}
.configValue=${"showMultiDay"}
.entityId="${e.entity}"
@change=${this._entityValueChanged}
></mwc-switch>
<label class="mdc-label">showMultiDay</label>
</div>
</div>
</div>`:ye``}
</div>
`))}
</div> `}get entities(){return[...this._config.entities||[]].map((e=>e.entity?e:{entity:e,name:e}))}_entityValueChanged(e){if(this.cantFireEvent)return;const{target:t}=e;let i=[...this.entities];i=i.map((e=>{if(e.entity===t.entityId&&t.configValue){if(void 0===t.value&&void 0===t.checked||""===t.value)return delete e[t.configValue],e;{const i=t.configValue,n=void 0!==t.checked?t.checked:isNaN(t.value)?t.value:parseInt(t.value),a=t.number?parseFloat(n):n;e=Object.assign(Object.assign({},e),{[i]:a})}}return e})),this._config=Object.assign({},this._config,{entities:i}),Mt(this,"config-changed",{config:this._config})}_entityChanged(e){const{target:t}=e;if(this.cantFireEvent)return;let i=[...this.entities];if(t.checked){const e=this.hass.states[t.entityId];i.push({entity:t.entityId,name:e.attributes.friendly_name||t.entityId})}else i=i.filter((e=>e.entity!==t.entityId));this._config=Object.assign({},this._config,{entities:i}),Mt(this,"config-changed",{config:this._config})}get cantFireEvent(){return!this._config||!this.hass}};ks.elementDefinitions=Object.assign(Object.assign(Object.assign(Object.assign({},ws),mo),ss),es),a([pt({attribute:!1})],ks.prototype,"hass",void 0),a([ft()],ks.prototype,"_config",void 0),a([ft()],ks.prototype,"_toggle",void 0),a([ft()],ks.prototype,"_helpers",void 0),a([ft()],ks.prototype,"options",void 0),ks=a([mt("atomic-calendar-revive-editor")],ks);
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
class Ms extends ro{constructor(e){if(super(e),this.it=xe,e.type!==io)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===xe||null==e)return this._t=void 0,this.it=e;if(e===be)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Ms.directiveName="unsafeHTML",Ms.resultType=1;const Es=oo(Ms);class Ts{constructor(e,t){this._eventClass=e,this._globalConfig=t,this.isEmpty=!1}get rawEvent(){return this._eventClass}get id(){return(this.rawEvent.id||this.rawEvent.uid)+this.title}get originCalendar(){return this.rawEvent.originCalendar}get entity(){return this._eventClass.hassEntity||{}}get entityConfig(){return this._eventClass.entity||{}}set originName(e){this._customOriginName=e}get originName(){if(void 0!==this._customOriginName)return this._customOriginName;const{originCalendar:e}=this;if(e&&e.name)return e.name;const{entity:t}=this;return t&&t.attributes&&t.attributes.friendly_name?t.attributes.friendly_name:e&&e.entity?e.entity:t&&t.entity||t||"Unknown"}get startDateTime(){return void 0===this._startDateTime&&(this.rawEvent.start.date?this._startDateTime=this._processDate(c(this.rawEvent.start.date,"YYYY-MM-DD").startOf("day")):this._startDateTime=this._processDate(c(this.rawEvent.start.dateTime))),this._startDateTime.clone()}get endDateTime(){return void 0===this._endDateTime&&(this.rawEvent.end.date?this._endDateTime=this._processDate(c(this.rawEvent.end.date,"YYYY-MM-DD").subtract(1,"day").endOf("day"),!0):this._endDateTime=this._processDate(c(this.rawEvent.end.dateTime),!0)),this._endDateTime.clone()}get addDays(){return void 0!==this.rawEvent.addDays&&this.rawEvent.addDays}get daysLong(){if(this._globalConfig.showMultiDay)return this.rawEvent.daysLong;{const e=Math.round(this.endDateTime.subtract(1,"minutes").endOf("day").diff(this.startDateTime.startOf("day"),"hours")/24);return e>1?e:void 0}}get isFirstDay(){return this.rawEvent._isFirstDay}get isLastDay(){return this.rawEvent._isLastDay}_processDate(e,t=!1){return!1!==this.addDays&&(!t&&this.addDays&&(e=e.add(this.addDays,"days")),!this.isLastDay&&t?e=this.startDateTime.endOf("day"):this.isFirstDay||t||(e=e.startOf("day"))),e}get isRecurring(){return!!this.rawEvent.recurringEventId}get isDeclined(){return 0!==(this.rawEvent.attendees||[]).filter((e=>e.self&&"declined"===e.responseStatus)).length}get isRunning(){return this.startDateTime.isBefore(c())&&this.endDateTime.isAfter(c())}get isFinished(){return this.endDateTime.isBefore(c())}get htmlLink(){return this.rawEvent.htmlLink||void 0}get sourceUrl(){return this.rawEvent.source&&this.rawEvent.source.url||""}get isMultiDay(){if(this.endDateTime.diff(this.startDateTime,"hours")>24)return!0;const e=Math.abs(this.startDateTime.date()-this.endDateTime.subtract(1,"minute").date());return(1!==e||0!==this.endDateTime.hour()||0!==this.endDateTime.minute())&&!!e}get isAllDayEvent(){return!(!this.rawEvent.start.date||!this.rawEvent.end.date)||(!(this.isFirstDay||this.isLastDay||!this.daysLong||!this._globalConfig.showMultiDay)||(!this.rawEvent.start.dateTime||!this.rawEvent.end.dateTime)&&void 0)}splitIntoMultiDay(e,t){const i=[];let n=2;const a=Math.round(this.endDateTime.subtract(1,"minutes").endOf("day").diff(this.startDateTime.startOf("day"),"hours")/24);a&&(n=a);for(let a=0;a<n;a++){const o=JSON.parse(JSON.stringify(e.rawEvent));o.addDays=a,o.daysLong=n,o._isFirstDay=0===a,o._isLastDay=a===n-1&&a>0;const r=new Ts(o,this._globalConfig);c().startOf("day").add(this._globalConfig.maxDaysToShow,"days").isAfter(r.startDateTime)&&c().startOf("day").subtract(1,"minute").isBefore(r.startDateTime)&&"Event"===t&&i.push(r),"Calendar"===t&&i.push(r)}return i}get titleColor(){return this.entityConfig.eventTitleColor?this.entityConfig.eventTitleColor:"var(--primary-text-color)"}get title(){return this.rawEvent.summary?this.rawEvent.summary:this.entityConfig.eventTitle?this.entityConfig.eventTitle:this._globalConfig.eventTitle}get description(){return new RegExp("^Observance","i").test(this.rawEvent.description)?"":this.rawEvent.description}get startTimeToShow(){const e=this.startDateTime;return!c(e).isBefore(c().startOf("day"))||this._globalConfig.startDaysAhead<0?e:c().startOf("day")}get daysToSort(){return this.startTimeToShow.format("YYYYMMDD")}get location(){return this.rawEvent.location?this.rawEvent.location.split(" ").join("+"):""}get address(){return this.rawEvent.location?this.rawEvent.location.split(",")[0]:""}get visibility(){return this.rawEvent.visibility}}function Ds(e,t){const i=t.states[e];return void 0===e?null:i&&i.attributes.icon||"mdi:circle"}function Ls(e,t,i){const n=void 0!==t.entityConfig.color?t.entityConfig.color:e.eventTitleColor;let{icon:a}=t.entityConfig;return a&&"undefined"!==a||(a=Ds(t.entityConfig.entity,i)),e.showEventIcon&&null!==a?ye`<ha-icon class="event-icon" style="color: ${n};" icon="${a}"></ha-icon>`:ye``}function Ss(e){return e.format("LL").replace(e.format("YYYY"),"").replace(/\s\s+/g," ").trim().replace(/[??]\./,"").replace(/de$/,"").replace(/b\.$/,"").trim().replace(/,$/g,"")}function As(e,t){if(!0!=!e.showMultiDayEventParts&&(!1!==t.addDays||void 0!==t.daysLong)){if(!0===e.showMultiDayEventParts&&!1!==t.addDays&&t.daysLong)return ye`(${t.addDays+1}/${t.daysLong})`;if(!0===e.showMultiDayEventParts&&!1===t.addDays&&t.daysLong){const e=c(t.startTimeToShow).diff(t.startDateTime,"day");return ye`(${e+1}/${t.daysLong})`}return ye``}}function Cs(e){return/<[a-z]+\d?(\s+[\w-]+=("[^"]*"|'[^']*'))*\s*\/?>|&#?\w+;/i.test(e)}function Is(e,t,i,n){const a=void 0!==t.entityConfig.color?t.entityConfig.color:e.eventTitleColor,o=t.isRunning?"running":"",r=t.isDeclined?"line-through":"none";let{title:s}=t;return!Cs(t.title)&&e.titleLength&&t.title.length>e.titleLength&&(s=t.title.slice(0,e.titleLength)+"..."),e.disableEventLink||void 0===t.htmlLink||null===t.htmlLink?ye`
<div
class="event-title ${o} ${n}"
style="text-decoration: ${r};color: ${a}"
>
${Ls(e,t,i)} ${s} ${As(e,t)}
</div>
`:ye`
<a href="${t.htmlLink}" style="text-decoration: ${r};" target="${e.linkTarget}">
<div class="event-title ${o} ${n}" style="color: ${a}">
${Ls(e,t,i)} <span>${s} ${As(e,t)} </span>
</div>
</a>
`}function Os(e,t){if(t.description){let{description:i}=t;return Cs(t.description)&&(i=Es(t.description)),!Cs(t.description)&&e.descLength&&t.description.length>e.descLength&&(i=t.description.slice(0,e.descLength)),ye`<div
class="calDescription"
style="--description-color: ${e.descColor}; --description-size: ${e.descSize}%"
>
- ${i}
</div>`}return ye`;`}function Ys(e,t){if(t.location&&e.showLocation&&!e.disableCalLocationLink){const i=t.location,n=i.startsWith("http")?i:"https://maps.google.com/?q="+i;return ye`
<a
href=${n}
target="${e.linkTarget}"
class="location-link"
style="--location-link-size: ${e.locationTextSize}%"
>
<ha-icon
class="event-location-icon"
style="--location-icon-color: ${e.locationIconColor}"
icon="mdi:map-marker"
></ha-icon
>&nbsp;
</a>
`}return ye``}c.extend(p);var $s={exports:{}};!function(e,t){e.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,n=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},r=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),i=60*t[1]+(+t[2]||0);return 0===i?0:"+"===t[0]?-i:i}(e)}],l=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},c=function(e,t){var i,n=o.meridiem;if(n){for(var a=1;a<=24;a+=1)if(e.indexOf(n(a,0,t))>-1){i=a>12;break}}else i=e===(t?"pm":"PM");return i},m={A:[a,function(e){this.afternoon=c(e,!1)}],a:[a,function(e){this.afternoon=c(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[i,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[n,s("seconds")],ss:[n,s("seconds")],m:[n,s("minutes")],mm:[n,s("minutes")],H:[n,s("hours")],h:[n,s("hours")],HH:[n,s("hours")],hh:[n,s("hours")],D:[n,s("day")],DD:[i,s("day")],Do:[a,function(e){var t=o.ordinal,i=e.match(/\d+/);if(this.day=i[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],M:[n,s("month")],MM:[i,s("month")],MMM:[a,function(e){var t=l("months"),i=(l("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(i<1)throw new Error;this.month=i%12||i}],MMMM:[a,function(e){var t=l("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[i,function(e){this.year=r(e)}],YYYY:[/\d{4}/,s("year")],Z:d,ZZ:d};function h(i){var n,a;n=i,a=o&&o.formats;for(var r=(i=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,i,n){var o=n&&n.toUpperCase();return i||a[n]||e[n]||a[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,i){return t||i.slice(1)}))}))).match(t),s=r.length,d=0;d<s;d+=1){var l=r[d],c=m[l],h=c&&c[0],u=c&&c[1];r[d]=u?{regex:h,parser:u}:l.replace(/^\[|\]$/g,"")}return function(e){for(var t={},i=0,n=0;i<s;i+=1){var a=r[i];if("string"==typeof a)n+=a.length;else{var o=a.regex,d=a.parser,l=e.slice(n),c=o.exec(l)[0];d.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var i=e.hours;t?i<12&&(e.hours+=12):12===i&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,i){i.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(r=e.parseTwoDigitYear);var n=t.prototype,a=n.parse;n.parse=function(e){var t=e.date,n=e.utc,r=e.args;this.$u=n;var s=r[1];if("string"==typeof s){var d=!0===r[2],l=!0===r[3],c=d||l,m=r[2];l&&(m=r[2]),o=this.$locale(),!d&&m&&(o=i.Ls[m]),this.$d=function(e,t,i){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var n=h(t)(e),a=n.year,o=n.month,r=n.day,s=n.hours,d=n.minutes,l=n.seconds,c=n.milliseconds,m=n.zone,u=new Date,p=r||(a||o?1:u.getDate()),f=a||u.getFullYear(),g=0;a&&!o||(g=o>0?o-1:u.getMonth());var v=s||0,_=d||0,y=l||0,b=c||0;return m?new Date(Date.UTC(f,g,p,v,_,y,b+60*m.offset*1e3)):i?new Date(Date.UTC(f,g,p,v,_,y,b)):new Date(f,g,p,v,_,y,b)}catch(e){return new Date("")}}(t,s,n),this.init(),m&&!0!==m&&(this.$L=this.locale(m).$L),c&&t!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var u=s.length,p=1;p<=u;p+=1){r[1]=s[p-1];var f=i.apply(this,r);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}p===u&&(this.$d=new Date(""))}else a.call(this,e)}}}()}($s);var Fs=r($s.exports),Hs={exports:{}};!function(e,t){e.exports=function(e,t,i){t.prototype.isBetween=function(e,t,n,a){var o=i(e),r=i(t),s="("===(a=a||"()")[0],d=")"===a[1];return(s?this.isAfter(o,n):!this.isBefore(o,n))&&(d?this.isBefore(r,n):!this.isAfter(r,n))||(s?this.isBefore(o,n):!this.isAfter(o,n))&&(d?this.isAfter(r,n):!this.isBefore(r,n))}}}(Hs);var zs=r(Hs.exports);class Rs{constructor(e,t){this.calendarDay=e,this._lp=t,this.ymd=c(e).format("YYYY-MM-DD"),this._allEvents=[]}get date(){return c(this.calendarDay)}set allEvents(e){this._allEvents=e}get allEvents(){return this._allEvents}}async function Ns(e,t,i){const n=function(e,t){const i=t.startOf("month"),n=i.day(),a=[];let o=0;o=n-e.firstDayOfWeek>=0?0:7;for(let t=e.firstDayOfWeek-n-o;t<42-n+e.firstDayOfWeek-o;t++)a.push(new Rs(i.add(t,"day"),t));return a}(e,i),{events:a}=await js(n[0].date,n[41].date,e,t,"Calendar");return n.map((e=>(a[0].map((t=>{t.startDateTime.isSame(e.date,"day")&&e.allEvents.push(t)})),e))),n}async function js(e,t,i,n,a){const o="YYYY-MM-DDTHH:mm:ss",r=e.startOf("day").format(o),s=[],d=[],l=[];return i.entities.map((i=>{const a=i&&i.entity||i,c=0==i.maxDaysToShow?i.maxDaysToShow:i.maxDaysToShow-1,m=void 0===i.maxDaysToShow?t.endOf("day").format(o):e.endOf("day").add(c,"day").format(o),h=`calendars/${i.entity}?start=${r}&end=${m}`;l.push(n.callApi("GET",h).then((e=>(e.map((e=>{e.entity=i,e.calendarEntity=a,e.hassEntity=n.states[a]})),e))).then((e=>{s.push(...e)})).catch((e=>{d.push({name:i.name||a,error:e})})))})),await Promise.all(l),{failedEvents:d,events:Ps(s,i,a)}}function Ps(e,t,i){let n=0,a=e.reduce(((e,n)=>{n.originCalendar=t.entities.find((e=>e.entity===n.entity.entity));const a=new Ts(n,t);if(a.isAllDayEvent&&a.endDateTime.isBefore(c().add(t.startDaysAhead,"day")))return e;if(!t.showDeclined&&a.isDeclined)return e;if(!1===t.showAllDayEvents&&a.isAllDayEvent)return e;if(a.entityConfig.blocklist&&a.title){if(new RegExp(a.entityConfig.blocklist,"i").test(a.title))return e}if(a.entityConfig.blocklistLocation&&a.location){if(new RegExp(a.entityConfig.blocklistLocation,"i").test(a.location))return e}if(a.entityConfig.allowlist&&a.title){if(!new RegExp(a.entityConfig.allowlist,"i").test(a.title))return e}if(a.entityConfig.allowlistLocation&&a.location){if(!new RegExp(a.entityConfig.allowlistLocation,"i").test(a.location))return e}if(a.entityConfig.startTimeFilter&&a.entityConfig.endTimeFilter&&!function(e,t,i){const n=t.split(":",1)[0],a=t.split(":",2)[1],o=e.startDateTime.set("hour",n).set("minutes",a),r=i.split(":",1)[0],s=i.split(":",2)[1],d=e.startDateTime.set("hour",r).set("minutes",s);return e.startDateTime.isBetween(o,d,"minute","[]")}(a,a.entityConfig.startTimeFilter,a.entityConfig.endTimeFilter))return e;if(t.showMultiDay&&a.isMultiDay){const t=a.splitIntoMultiDay(a,i);e=e.concat(t)}else e.push(a);return e}),[]);if(t.hideFinishedEvents&&(a=a.filter((function(e){return 0==e.isFinished}))),t.hideDuplicates){const e={},t=[];a.forEach((i=>{const n=i.title+"|"+i.startDateTime+"|"+i.endDateTime;e[n]?e[n].calendars.push(i.originName):(e[n]={event:i,calendars:[i.originName]},t.push(i))})),t.forEach((t=>{const i=t.title+"|"+t.startDateTime+"|"+t.endDateTime;e[i]&&(t.originName=e[i].calendars.join(", "))})),a=t}return a=function(e,t){const i=c(),n=[...e].sort(((e,t)=>e.startDateTime.diff(t.startDateTime))),a={};return n.forEach((e=>{const t=c(e.startDateTime).format("YYYY-MM-DD");a[t]||(a[t]=[]),a[t].push(e)})),Object.values(a).forEach((e=>{const n=e.filter((e=>e.isAllDayEvent));n.sort(((e,i)=>t.allDayBottom?e.title.localeCompare(i.title):-e.title.localeCompare(i.title))),"start"===t.sortBy&&e.filter((e=>!e.isAllDayEvent)).sort(((e,t)=>e.startDateTime.diff(t.startDateTime))),"milestone"===t.sortBy&&(e.filter((e=>!e.isAllDayEvent)).sort(((e,t)=>{const n=i.isBetween(e.startDateTime,e.endDateTime),a=i.isBetween(t.startDateTime,t.endDateTime);return n&&!a?-1:!n&&a?1:Math.min(Math.abs(e.startDateTime.diff(i)),Math.abs(e.endDateTime.diff(i)))-Math.min(Math.abs(t.startDateTime.diff(i)),Math.abs(t.endDateTime.diff(i)))})),e.filter((e=>!e.isAllDayEvent)).sort(((e,t)=>e.isFinished!==t.isFinished?e.isFinished?1:-1:e.isFinished?c(e.endDateTime).isBefore(t.endDateTime)?-1:1:0)));const o=t.allDayBottom?[...e.filter((e=>!e.isAllDayEvent)),...n]:[...n,...e.filter((e=>!e.isAllDayEvent))];a[c(e[0].startDateTime).format("YYYY-MM-DD")]=o})),Object.values(a).reduce(((e,t)=>[...e,...t]),[])}(a,t),t.maxEventCount&&(!t.softLimit&&t.maxEventCount<a.length||t.softLimit&&a.length>t.maxEventCount+t.softLimit)&&(n=a.length-t.maxEventCount,a.length=t.maxEventCount),[a,n]}c.extend(Fs),c.extend(zs);const Bs=je`
.cal-card {
cursor: default;
padding: 16px;
height: var(--card-height);
overflow: auto;
}
/* START HEADER */
.header {
display: flex;
flex-direction: row;
justify-content: space-between;
vertical-align: middle;
align-items: center;
margin: 0 8px 0 2px;
}
.header-name {
font-family: var(--paper-font-headline_-_font-family);
-webkit-font-smoothing: var(--paper-font-headline_-_-webkit-font-smoothing);
font-size: var(--paper-font-headline_-_font-size);
font-weight: var(--paper-font-headline_-_font-weight);
letter-spacing: var(--paper-font-headline_-_letter-spacing);
line-height: var(--paper-font-headline_-_line-height);
text-rendering: var(--paper-font-common-expensive-kerning_-_text-rendering);
opacity: var(--dark-primary-opacity);
padding: 4px 8px 12px 0px;
float: left;
}
.header-date {
font-size: var(--paper-font-headline_-_font-size);
font-size: 1.3rem;
font-weight: 400;
color: var(--primary-text-color);
padding: 4px 8px 12px 0px;
line-height: var(--paper-font-headline_-_line-height);
float: right;
}
.header-name.compact,
.header.compact,
.header-date.compact {
font-size: 1rem;
padding: 1px !important;
}
/* END HEADER */
/* START EVENT MODE */
.single-event-container {
display: grid;
grid-template-columns: 0.5fr 2fr;
grid-gap: 10px;
}
.event-left,
.event-right {
grid-row: 1;
}
.event-left {
grid-column: 1;
justify-content: center;
color: var(--primary-text-color);
display: flex;
flex-direction: row;
}
.event-date-day,
.event-date-month,
.event-date-week-day {
margin-right: 4px;
}
.week-number {
color: var(--primary-color);
-webkit-border-radius: 5px;
border-radius: 5px;
border: 2px solid;
margin: 5px 0;
width: 6em;
text-align: center;
}
.event-right {
grid-column: 2;
color: var(--primary-text-color);
display: flex;
flex-direction: column;
justify-content: space-between;
}
.event-right-top,
.event-right-bottom {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.event-title {
user-select: text;
}
.event-title.running {
user-select: text;
}
.event-title.Calendar {
display: inline-block;
}
.event-location {
text-align: right;
display: inline-block;
vertical-align: top;
user-select: text;
overflow-wrap: anywhere;
}
.event-location-icon {
--mdc-icon-size: 15px;
color: var(--location-icon-color);
height: 15px;
width: 15px;
margin-top: -2px;
}
.location-link {
text-decoration: none;
color: var(--accent-color);
font-size: var(--location-link-size);
user-select: text;
}
.hours {
color: var(--time-color);
font-size: var(--time-size);
display: inline-block;
}
.relative-time {
color: var(--time-color);
font-size: var(--time-size);
float: right;
padding-left: 5px;
}
.event-description {
display: flex;
justify-content: space-between;
padding: 0px 5px 0 5px;
color: var(--description-color);
font-size: var(--description-size);
overflow-wrap: anywhere;
user-select: text;
}
.hidden-events {
color: var(--primary-text-color);
}
.daywrap {
padding: 2px 0 4px 0;
border-top: 1px solid;
}
.daywrap > td {
padding-top: 8px;
}
.hide-date {
grid-template-columns: 0 1fr !important;
}
.compact {
padding: 1px 1px 1px 1px;
vertical-align: top;
}
/* END EVENT MODE */
hr.event {
color: var(--event-bar-color);
margin: -8px 0px 2px 0px;
border-width: 2px 0 0 0;
}
.event-cal-name-icon {
--mdc-icon-size: 15px;
}
.eventBar {
margin-top: -10px;
margin-bottom: 0px;
}
progress {
border-radius: 2px;
width: 100%;
height: 3px;
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}
progress::-webkit-progress-bar {
background-color: var(--progress-bar-bg);
border-radius: 2px;
}
progress::-webkit-progress-value {
background-color: var(--progress-bar);
border-radius: 2px;
}
ha-button-toggle-group {
color: var(--primary-color);
}
.calTitleContainer {
padding: 0px 8px 8px 8px;
}
.calIconSelector {
--mdc-icon-button-size: var(--button-toggle-size, 48px);
--mdc-icon-size: var(--button-toggle-icon-size, 24px);
border-radius: 4px 4px 4px 4px;
border: 1px solid var(--primary-color);
float: right;
display: inline-flex;
text-align: center;
}
.calDateSelector {
--mdc-icon-button-size: var(--button-toggle-size, 48px);
--mdc-icon-size: var(--button-toggle-icon-size, 24px);
display: inline-flex;
text-align: center;
}
div.calIconSelector ha-icon-button,
div.calDateSelector ha-icon-button {
color: var(--primary-color);
}
div.calDateSelector .prev {
border: 1px solid var(--primary-color);
border-radius: 3px 0px 0px 3px;
}
div.calDateSelector .date {
border: 1px solid var(--primary-color);
border-radius: 0px 0px 0px 0px;
padding: 4px 2px 2px 4px;
}
div.calDateSelector .next {
border: 1px solid var(--primary-color);
border-radius: 0px 4px 4px 0px;
}
ha-icon-button {
--mdc-icon-size: 20px;
--mdc-icon-button-size: 25px;
}
table.cal {
margin-left: 0px;
margin-right: 0px;
border-spacing: 10px 5px;
border-collapse: collapse;
width: 100%;
table-layout: fixed;
}
thead th.cal {
color: var(--secondary-text-color);
border: 1px solid --cal-border-color;
font-size: 11px;
font-weight: 400;
text-transform: uppercase;
}
td.cal {
padding: 5px 5px 5px 5px;
border: 1px solid var(--cal-grid-color);
text-align: center;
vertical-align: middle;
width: 100%;
color: var(--cal-day-color);
}
.calDay {
height: 38px;
font-size: 95%;
max-width: 38px;
margin: auto;
}
.currentDay {
position: relative;
width: 20px;
height: 20px;
background-color: var(--primary-color);
color: var(--text-primary-color) !important;
text-align: center;
line-height: 20px;
border-radius: 50%;
display: inline-block;
}
.weekendSat {
background-color: rgba(255, 255, 255, 0.05);
}
.weekendSun {
background-color: rgba(255, 255, 255, 0.15);
}
.differentMonth {
opacity: 0.35;
}
tr.cal {
width: 100%;
}
.calTableContainer {
width: 100%;
}
.summary-div {
font-size: 90%;
}
.summary-event-div {
padding-top: 3px;
}
.bullet-event-div-accepted {
-webkit-border-radius: 8px;
border-radius: 8px;
border: 4px solid;
height: 0;
width: 0;
display: inline-block;
vertical-align: middle;
}
.bullet-event-div-declined {
-webkit-border-radius: 8px;
border-radius: 8px;
border: 1px solid;
height: 6px;
width: 6px;
display: inline-block;
vertical-align: middle;
}
.bullet-event-span {
overflow: hidden;
white-space: nowrap;
display: inline-block;
vertical-align: middle;
margin: 0 5px;
text-decoration: none !important;
}
.summary-fullday-div-accepted {
-webkit-border-radius: 5px;
border-radius: 5px;
border: 2px solid;
border-left: 7px solid;
padding: 0 4px;
margin: 5px 0;
line-height: 16px;
}
.summary-fullday-div-declined {
-webkit-border-radius: 5px;
border-radius: 5px;
border: 1px solid;
padding: 0 4px;
margin: 5px 0;
height: 18px;
line-height: 16px;
}
.calDescription {
display: flex;
justify-content: space-between;
padding: 0px 5px 0 5px;
color: var(--description-color);
font-size: var(--description-size);
}
.calMain {
flex-direction: row nowrap;
display: inline-block;
vertical-align: top;
}
.calIcon {
--mdc-icon-size: 10px;
width: 10px;
height: 10px;
padding-top: 0px;
margin-top: -10px;
margin-right: -1px;
margin-left: -1px;
}
.event-icon {
--mdc-icon-size: 15px !important;
padding-top: 0px;
margin-top: -10px;
margin-right: -1px;
margin-left: -1px;
}
.loader {
border: 4px solid #f3f3f3;
border-top: 4px solid grey;
border-radius: 50%;
width: 14px;
height: 14px;
animation: spin 2s linear infinite;
float: left;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
`;var Vs,Us,Ws,qs,Gs;!function(e){e.language="language",e.system="system",e.comma_decimal="comma_decimal",e.decimal_comma="decimal_comma",e.space_comma="space_comma",e.none="none"}(Vs||(Vs={})),function(e){e.language="language",e.system="system",e.am_pm="12",e.twenty_four="24"}(Us||(Us={})),function(e){e.local="local",e.server="server"}(Ws||(Ws={})),function(e){e.language="language",e.system="system",e.DMY="DMY",e.MDY="MDY",e.YMD="YMD"}(qs||(qs={})),function(e){e.language="language",e.monday="monday",e.tuesday="tuesday",e.wednesday="wednesday",e.thursday="thursday",e.friday="friday",e.saturday="saturday",e.sunday="sunday"}(Gs||(Gs={})),c.extend(T),c.extend(w),c.extend(p),c.extend(_),c.extend(b),c.extend(g),c.extend(L),c.extend(h),c.extend(M),e.AtomicCalendarRevive=class extends lt{constructor(){super(),this.lastCalendarUpdateTime,this.lastEventsUpdateTime,this.lastHTMLUpdateTime,this.events,this.failedEvents,this.content=ye``,this.shouldUpdateHtml=!0,this.errorMessage=ye``,this.modeToggle="",this.selectedMonth=c(),this.refreshCalEvents=!0,this.monthToGet=c().format("MM"),this.month,this.showLoader=!1,this.eventSummary=ye`&nbsp;`,this.firstrun=!0,this.isUpdating=!1,this.language="",this.hiddenEvents=0}static async getConfigElement(){return document.createElement("atomic-calendar-revive-editor")}static getStubConfig(e){return function(e){var t,i,n,a,o,r;const s=Object.keys(e.states).map((t=>({entity_id:t,stateObj:e.states[t]}))).filter((e=>{const{stateObj:t}=e;return t.state&&t.attributes&&"calendar"===t.attributes.device_class||t.entity_id.includes("calendar")}));return{type:"custom:atomic-calendar-revive",name:"Calendar",enableModeChange:!0,entities:[{entity:null!==(i=null===(t=s[0])||void 0===t?void 0:t.entity_id)&&void 0!==i?i:"",icon:null!==(r=null===(o=null===(a=null===(n=s[0])||void 0===n?void 0:n.stateObj)||void 0===a?void 0:a.attributes)||void 0===o?void 0:o.icon)&&void 0!==r?r:""}]}}(e)}setConfig(e){if(Ia(this.hass),!e)throw new Error(Ha("errors.invalid_configuration"));if(!e.entities||!e.entities.length)throw new Error(Ha("errors.no_entities"));const t=JSON.parse(JSON.stringify(e));this._config=Object.assign(Object.assign({},Et),t),this.modeToggle=this._config.defaultMode,"string"==typeof this._config.entities&&(this._config.entities=[{entity:e.entities}]),this._config.entities.forEach(((e,t)=>{"string"==typeof e&&(this._config.entities[t]={entity:e})}))}render(){var e,t;if(Ia(this.hass),this.firstrun){this.language=void 0!==this._config.language?this._config.language:this.hass.locale?this.hass.locale.language.toLowerCase():this.hass.language.toLowerCase(),c.locale(this.language);const i=(null===(e=this.hass.locale)||void 0===e?void 0:e.time_format)==Us.am_pm?"hh:mma":(null===(t=this.hass.locale)||void 0===t?void 0:t.time_format)==Us.twenty_four?"HH:mm":c().localeData().longDateFormat("LT");c.updateLocale(this.language,{weekStart:this._config.firstDayOfWeek,formats:{LT:i}}),console.groupCollapsed(`%c atomic-calendar-revive %c ${Ha("common.version")}: 10.0.0`,"color: white; background: #484848; font-weight: 700;","color: white; background: #cc5500; font-weight: 700;"),console.log("'Language:'",`${this.language}`),console.log("'HASS Timezone:'",`${this.hass.config.time_zone}`),console.log("'DayJS Timezone:'",`${c.tz.guess()}`),console.groupEnd(),this.selectedMonth=c(),this.monthToGet=c().format("MM")}if(!this._config||!this.hass)return ye``;this.updateCard();const i=this._config.compactMode?"compact":"";return ye`<ha-card
class="cal-card"
style="${this._config.compactMode?"line-height: 80%;":""} --card-height: ${this._config.cardHeight}"
>
${this._config.name||this._config.showDate||this.showLoader&&this._config.showLoader?ye` <div class="header ${i}">
${this._config.name?ye`<div class="header-name ${i}" @click="${()=>this.handleToggle()}">
${this._config.name}
</div>`:""}
${this.showLoader&&this._config.showLoader?ye`<div class="loader"></div>`:""}
${this._config.showDate?ye`<div class="header-date ${i}">${function(e){let t=c().format(e.dateFormat);return e.startDaysAhead&&e.offsetHeaderDate&&(t=c().add(e.startDaysAhead,"day").format(e.dateFormat)),ye`${t}`}(this._config)}</div>`:""}
</div>`:""}
<div class="cal-eventContainer" style="padding-top: 4px;">${this.content}</div>
</ha-card>`}async updateCard(){if(this.firstrun=!1,!this.isUpdating&&"Event"==this.modeToggle&&(!this.lastEventsUpdateTime||c().diff(this.lastEventsUpdateTime,"seconds")>this._config.refreshInterval)){this.showLoader=!0,this.hiddenEvents=0,this.isUpdating=!0;try{const{events:e,failedEvents:t}=await async function(e,t){const i=0==e.maxDaysToShow?e.maxDaysToShow:e.maxDaysToShow-1,n=c().startOf("day").add(e.startDaysAhead,"day"),a=n.endOf("day").add(i,"day");return await js(n,a,e,t,"Event")}(this._config,this.hass);this.events=e[0],this.hiddenEvents=e[1],this.failedEvents=t,this._config.showNoEventDays&&(this.events=function(e,t){const i=0==e.maxDaysToShow?e.maxDaysToShow:e.maxDaysToShow-1,n=c().add(e.startDaysAhead,"day").startOf("day"),a=c().add(i+e.startDaysAhead,"day").endOf("day"),o=[];for(let e=n;e.isBefore(a,"day");e=e.add(1,"day"))o.push(e);return o.map((i=>{let n=!1;for(let e=0;e<t.length;e++)t[e].startDateTime.isSame(i,"day")&&(n=!0);if(!n){const a={eventClass:"",config:"",start:{dateTime:i.endOf("day")},end:{dateTime:i.endOf("day")},summary:e.noEventText,isFinished:!1},o=new Ts(a,e);o.isEmpty=!0,t.push(o),n=!1}})),t}(this._config,this.events)),this.events=function(e){const t=[].concat(...e).reduce((function(e,t){return e[t.daysToSort]=e[t.daysToSort]||[],e[t.daysToSort].push(t),e}),{});return Object.keys(t).map((function(e){return t[e]}))}(this.events)}catch(e){console.log(e),this.errorMessage=ye`${Ha("errors.update_card")}
<a
href="https://docs.totaldebug.uk/atomic-calendar-revive/overview/faq.html"
target="${this._config.linkTarget}"
>See Here</a
>`,this.showLoader=!1}this.lastEventsUpdateTime=c(),this.updateEventsHTML(this.events),this.isUpdating=!1,this.showLoader=!1}"Event"==this.modeToggle?this.updateEventsHTML(this.events):await this.updateCalendarHTML()}handleToggle(){this._config.enableModeChange&&("Event"==this.modeToggle?this.modeToggle="Calendar":this.modeToggle="Event",this.requestUpdate())}static get styles(){return Bs}getCardSize(){return this._config.entities.length+1}_toggle(e){this.hass.callService("homeassistant","toggle",{entity_id:e.entity_id})}updateEventsHTML(e){var t,i,n,a;let o="";if(!e)return void(this.content=this.errorMessage);if(0===e.length&&(1==this._config.maxDaysToShow||0==this._config.maxDaysToShow))return void(this.content=null!==(t=this._config.noEventText)&&void 0!==t?t:Ha("common.noEventText"));if(0===e.length)return void(this.content=null!==(i=this._config.noEventsForNextDaysText)&&void 0!==i?i:Ha("common.noEventsForNextDaysText"));if(c(e[0][0]).isSame(c(),"day")&&e[0].length>1){let t=1;for(;t<e[0].length;)e[0][t].isFinished&&!e[0][t-1].isFinished?([e[0][t],e[0][t-1]]=[e[0][t-1],e[0][t]],t>1&&t--):t++}if(this._config.showNoEventsForToday&&e[0][0].startDateTime.isAfter(c().add(this._config.startDaysAhead,"day").startOf("day"),"day")&&e[0].length>0){const t={eventClass:"",config:"",start:{dateTime:c().endOf("day")},end:{dateTime:c().endOf("day")},summary:null!==(n=this._config.noEventText)&&void 0!==n?n:Ha("common.noEventText"),isFinished:!1},i=new Ts(t,this._config);i.isEmpty=!0;const a=[];a.push(i),e.unshift(a)}let r=54;o=e.map(((e,t)=>{const i=function(e,t){let i=ye``;return t!=e[0].startDateTime.isoWeek()?(t=e[0].startDateTime.isBefore(c())?c().isoWeek():e[0].startDateTime.isoWeek(),i=ye`<div class="week-number">${Ha("ui.common.week")} ${t.toString()}</div>`,{currentWeekHTML:i,currentWeek:t}):{currentWeekHTML:i,currentWeek:t}}(e,r);r=i.currentWeek;const n=e.map(((e,i,n)=>{const a=0==i&&t>0?"daywrap":"",o=!(0!=t||!e.startDateTime.isAfter(c())||0!=i&&n[i-1].startDateTime.isAfter(c())),r=this._config.showCurrentEventLine&&o?ye`<div class="eventBar">
<hr class="event" style="--event-bar-color: ${this._config.eventBarColor} " />
</div>`:"",s=void 0!==e.entityConfig.color?e.entityConfig.color:this._config.defaultCalColor,d=e.entityConfig.name&&this._config.showCalendarName?ye`<div class="event-cal-name" style="color: ${s};">
<ha-icon icon="mdi:calendar" class="event-cal-name-icon"></ha-icon>&nbsp;${e.originName}
</div>`:"";let l=ye``;if(0==t&&(e.isRunning&&this._config.showFullDayProgress&&e.isAllDayEvent||e.isRunning&&!e.isAllDayEvent&&this._config.showProgressBar)){const t=e.endDateTime.diff(e.startDateTime,"minutes"),i=100*c().diff(e.startDateTime,"minutes")/t/100;l=ye`<progress
style="--progress-bar: ${this._config.progressBarColor}; --progress-bar-bg: ${this._config.progressBarBackgroundColor};"
value="${i}"
max="1"
></progress>`}const m=e.isFinished&&this._config.dimFinishedEvents?"opacity: "+this._config.finishedEventOpacity+"; filter: "+this._config.finishedEventFilter+";":"",h=this._config.showHours?ye`<div class="hours">${function(e,t){var i,n,a,o,r,s,d,l;const m=c();return t.isEmpty?ye`<div>&nbsp;</div>`:!e.showAllDayHours&&t.isAllDayEvent?ye``:t.isAllDayEvent&&t.isMultiDay&&t.startDateTime.isAfter(m,"day")?ye`
${null!==(i=e.fullDayEventText)&&void 0!==i?i:Ha("common.fullDayEventText")},
${(null!==(n=e.untilText)&&void 0!==n?n:Ha("common.untilText")).toLowerCase()} ${Ss(t.endDateTime)}
`:t.isAllDayEvent&&t.isMultiDay&&(t.startDateTime.isBefore(m,"day")||t.endDateTime.isAfter(m,"day"))?ye`
${null!==(a=e.fullDayEventText)&&void 0!==a?a:Ha("common.fullDayEventText")},
${(null!==(o=e.untilText)&&void 0!==o?o:Ha("common.untilText")).toLowerCase()} ${Ss(t.endDateTime)}
`:t.isAllDayEvent?ye`${null!==(r=e.fullDayEventText)&&void 0!==r?r:Ha("common.fullDayEventText")}`:t.startDateTime.isBefore(m,"day")&&t.endDateTime.isAfter(m,"day")?ye`${null!==(s=e.untilText)&&void 0!==s?s:Ha("common.untilText")} ${Ss(t.endDateTime)}`:t.startDateTime.isBefore(m,"day")&&t.endDateTime.isSame(m,"day")||t.isLastDay&&t.endDateTime.isSame(m,"day")?ye`${null!==(d=e.untilText)&&void 0!==d?d:Ha("common.untilText")} ${t.endDateTime.format("LT")} `:!t.startDateTime.isBefore(m,"day")&&t.endDateTime.isAfter(t.startDateTime,"day")?ye`${t.startDateTime.format("LT")},
${(null!==(l=e.untilText)&&void 0!==l?l:Ha("common.untilText")).toLowerCase()} ${Ss(t.endDateTime)}
${t.endDateTime.format("HH:mm")}`:ye`${t.startDateTime.format("LT")} - ${t.endDateTime.format("LT")} `}(this._config,e)}</div>`:ye``;let u;if(this._config.showRelativeTime||this._config.showTimeRemaining){const t=c();u=ye`<div class="relative-time time-remaining">
${this._config.showRelativeTime&&e.startDateTime.isAfter(t,"minutes")?`(${e.startDateTime.fromNow()})`:this._config.showTimeRemaining&&e.startDateTime.isBefore(t,"minutes")&&e.endDateTime.isAfter(t,"minutes")?`${c.duration(e.endDateTime.diff(t)).humanize()}`:""}
</div>`}else u=ye``;const p=this._config.compactMode||i!=n.length-1?"":"padding-bottom: 8px;",f=!!this._config.showDatePerEvent||!(0!==i)?ye`<div class="event-date-day">${e.startTimeToShow.format(this._config.eventDateFormat)}</div>`:ye``,g=e.startTimeToShow.isSame(c(),"day")?"current-day":"",v=this._config.compactMode?"compact":"",_=this._config.showEventDate?"":"hide-date",y=!0===this._config.showEventDate?ye`<div class="event-left ${g}">
<!--Show the event date, see eventDateFormat-->
${f}
</div>`:ye``;return ye`<div class="single-event-container ${v} ${a} ${_}" style="${p}">
${y}
<div class="event-right" style="${m}">
${r}
<div class="event-right-top">
${Is(this._config,e,this.hass,this.modeToggle)}
<div class="event-location">
${function(e,t){if(t.location&&e.showLocation){if(e.disableLocationLink)return ye`<ha-icon
class="event-location-icon"
style="--location-icon-color: ${e.locationIconColor}"
icon="mdi:map-marker"
></ha-icon
>&nbsp;${t.address}`;{const i=t.location,n=i.startsWith("http")?i:"https://maps.google.com/?q="+i;return ye`<a
href=${n}
target="${e.linkTarget}"
class="location-link"
style="--location-link-size: ${e.locationTextSize}%"
>
<ha-icon
class="event-location-icon"
style="--location-icon-color: ${e.locationIconColor}"
icon="mdi:map-marker"
>
</ha-icon
>&nbsp;${t.address}
</a>`}}return ye``}(this._config,e)} ${d} ${this._config.hoursOnSameLine?h:""}
</div>
</div>
<div class="event-right-bottom">${this._config.hoursOnSameLine?"":h} ${u}</div>
${function(e,t){if(e.showDescription&&t.description){let{description:i}=t;return Cs(t.description)&&(i=Es(t.description)),!Cs(t.description)&&e.descLength&&t.description.length>=e.descLength&&(i=ye`${t.description.slice(0,e.descLength)}`),ye`<div class="event-right">
<div class="event-main">
<div
class="event-description"
style="--description-color: ${e.descColor}; --description-size: ${e.descSize}%"
>
${i}
</div>
</div>
</div>`}return ye``}(this._config,e)} ${l}
</div>
</div>`}));return ye`${this._config.showWeekNumber?i.currentWeekHTML:""}${n}`}));const s=this._config.showHiddenText&&this.hiddenEvents>0?this.hiddenEvents+" "+(null!==(a=this._config.hiddenEventText)&&void 0!==a?a:Ha("common.hiddenEventText")):"";this.content=ye`${o} <span class="hidden-events">${s}</span>`}handleMonthChange(e){this.selectedMonth=this.selectedMonth.add(e,"month"),this.monthToGet=this.selectedMonth.format("M"),this.eventSummary=ye`&nbsp;`,this.refreshCalEvents=!0}getCalendarHeaderHTML(){return ye`<div class="calDateSelector">
<ha-icon-button
class="prev"
style="--mdc-icon-color: ${this._config.calDateColor}"
.path=${"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"}
.label=${this.hass.localize("ui.common.previous")}
@click="${()=>this.handleMonthChange(-1)}"
>
</ha-icon-button>
<span class="date" style="text-decoration: none; color: ${this._config.calDateColor};">
${this.selectedMonth.format("MMMM")} ${this.selectedMonth.format("YYYY")}
</span>
<ha-icon-button
class="next"
style="--mdc-icon-color: ${this._config.calDateColor}"
.path=${"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"}
.label=${this.hass.localize("ui.common.next")}
@click="${()=>this.handleMonthChange(1)}"
>
</ha-icon-button>
</div>`}handleCalendarEventSummary(e,t){t&&(this.clickedDate=e.date);const i=e.allEvents;this.eventSummary=i.map((e=>{const t=void 0!==e.entityConfig.color?e.entityConfig.color:this._config.defaultCalColor,i=e.isFinished&&this._config.dimFinishedEvents?"opacity: "+this._config.finishedEventOpacity+"; filter: "+this._config.finishedEventFilter+";":"";if(e.isAllDayEvent){const n=e.isDeclined?"summary-fullday-div-declined":"summary-fullday-div-accepted";return ye`<div class="${n}" style="border-color: ${t}; ${i}">
<div aria-hidden="true">
${Is(this._config,e,this.hass,this.modeToggle)}
${Ys(this._config,e)}
${this._config.calShowDescription?Os(this._config,e):""}
</div>
</div>`}{const n=this._config.showHours?ye`<div class="hours">${e.startDateTime.format("LT")}-${e.endDateTime.format("LT")}</div>`:"",a=e.isDeclined?"bullet-event-div-declined":"bullet-event-div-accepted";return ye`
<div class="summary-event-div" style="color: ${t}; ${i}">
<div class="${a}" style="border-color: ${t}"></div>
${n} - ${Is(this._config,e,this.hass,this.modeToggle)}
${Ys(this._config,e)}
${this._config.calShowDescription?Os(this._config,e):""}
</div>
`}})),this.requestUpdate()}getCalendarDaysHTML(e){let t=!0;return this._config.showLastCalendarWeek||c(e[35].date).isSame(this.selectedMonth,"month")||(t=!1),e.map(((e,i)=>{const n=c(e.date),a=n.isSame(this.selectedMonth,"month")?"":"differentMonth",o=n.isSame(c(),"day")?"currentDay":"",r=6==n.isoWeekday()?"weekendSat":"",s=7==n.isoWeekday()?"weekendSun":"",d=n.isSame(c(this.clickedDate),"day")?`background-color: ${this._config.calActiveEventBackgroundColor};`:"";return n.isSame(c(),"day")&&!this.clickedDate&&this.handleCalendarEventSummary(e,!1),i<35||t?ye`
${i%7==0?ye`<tr class="cal"></tr>`:""}
<td
@click="${()=>this.handleCalendarEventSummary(e,!0)}"
class="cal ${r} ${s} ${a}"
style="${d} --cal-grid-color: ${this._config.calGridColor}; --cal-day-color: ${this._config.calDayColor}"
>
<div class="calDay">
<div class="${o}" style="position: relative; top: 5%;">${e.date.date()}</div>
<div>${function(e,t){const i=[],n=[];return e.allEvents.map((e=>{let{icon:i}=e.entityConfig;i&&0!==i.length||(i=Ds(e.entity.entity_id,t));const a=n.findIndex((t=>t.icon===i&&t.color===e.entityConfig.color));-1===a&&n.push({icon:i,color:e.entityConfig.color})})),n.sort(((e,t)=>e.icon.localeCompare(t.icon))),n.map((e=>{const t=ye`<span>
<ha-icon icon="${e.icon}" class="calIcon" style="color: ${e.color};"></ha-icon>
</span>`;i.push(t)})),i}(e,this.hass)}</div>
</div>
</td>
${i&&i%6==0?ye`</tr>`:""}
`:ye``}))}async updateCalendarHTML(){(this.refreshCalEvents||!this.lastCalendarUpdateTime||c().diff(c(this.lastCalendarUpdateTime),"second")>this._config.refreshInterval)&&(this.lastCalendarUpdateTime=c(),this.showLoader=!0,this.month=await Ns(this._config,this.hass,this.selectedMonth),this.refreshCalEvents=!1,this.showLoader=!1,this.hiddenEvents=0);const{month:e}=this,t=c.weekdaysMin(!0).map((e=>ye`<th class="cal" style="color: ${this._config.calWeekDayColor};">${e}</th>`));var i,n;this.content=ye`
<div class="calTitleContainer">
${this.getCalendarHeaderHTML()}${i=this._config,n=this.selectedMonth,i.disableCalLink?ye``:ye`<div class="calIconSelector">
<ha-icon-button
.path=${"M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1M17,12H12V17H17V12Z"}
style="--mdc-icon-color: ${i.calDateColor}"
onClick="window.open('https://calendar.google.com/calendar/r/month/${n.format("YYYY")}/${n.format("MM")}/1'), '${i.linkTarget}'"
>
</ha-icon-button>
</div>`}
</div>
<div class="calTableContainer">
<table
class="cal"
style="color: ${this._config.eventTitleColor};--cal-border-color:${this._config.calGridColor}"
>
<thead>
<tr>
${t}
</tr>
</thead>
<tbody>
${this.getCalendarDaysHTML(e)}
</tbody>
</table>
</div>
<div class="summary-div">${this.eventSummary}</div>
`}},a([pt()],e.AtomicCalendarRevive.prototype,"hass",void 0),a([pt()],e.AtomicCalendarRevive.prototype,"_config",void 0),a([pt()],e.AtomicCalendarRevive.prototype,"content",void 0),a([pt()],e.AtomicCalendarRevive.prototype,"selectedMonth",void 0),e.AtomicCalendarRevive=a([mt("atomic-calendar-revive")],e.AtomicCalendarRevive),function(e){const t=window;t.customCards=t.customCards||[],t.customCards.push(Object.assign(Object.assign({},e),{preview:!0,documentationURL:"https://github.com/totaldebug/atomic-calendar-revive/"}))}({type:"atomic-calendar-revive",name:"Atomic Calendar Revive",description:"An advanced calendar card for Home Assistant with Lovelace."})}));