1523 lines
541 KiB
JavaScript
1523 lines
541 KiB
JavaScript
var e=function(t,i){return e=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])},e(t,i)};function t(t,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=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function n(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}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;var r,s,a=function(e,t){return l(t).format(e)},l=function(e){return new Intl.DateTimeFormat(e.language,{day:"numeric",month:"short"})};!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"}(r||(r={})),function(e){e.language="language",e.system="system",e.am_pm="12",e.twenty_four="24"}(s||(s={}));var d=function(e){if(e.time_format===s.language||e.time_format===s.system){var t=e.time_format===s.language?e.language:void 0,i=(new Date).toLocaleString(t);return i.includes("AM")||i.includes("PM")}return e.time_format===s.am_pm},c=function(e){return new Intl.DateTimeFormat(e.language,{hour:"numeric",minute:"2-digit",hour12:d(e)})};function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}var p=function(e,t,i){var n=t?function(e){switch(e.number_format){case r.comma_decimal:return["en-US","en"];case r.decimal_comma:return["de","es","it"];case r.space_comma:return["fr","sv","cs"];case r.system:return;default:return e.language}}(t):void 0;if(Number.isNaN=Number.isNaN||function e(t){return"number"==typeof t&&e(t)},(null==t?void 0:t.number_format)!==r.none&&!Number.isNaN(Number(e))&&Intl)try{return new Intl.NumberFormat(n,u(e,i)).format(Number(e))}catch(t){return console.error(t),new Intl.NumberFormat(void 0,u(e,i)).format(Number(e))}return"string"==typeof e?e:function(e,t){return void 0===t&&(t=2),Math.round(e*Math.pow(10,t))/Math.pow(10,t)}(e,null==i?void 0:i.maximumFractionDigits).toString()+("currency"===(null==i?void 0:i.style)?" "+i.currency:"")},u=function(e,t){var i=h({maximumFractionDigits:2},t);if("string"!=typeof e)return i;if(!t||!t.minimumFractionDigits&&!t.maximumFractionDigits){var n=e.indexOf(".")>-1?e.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},m=["closed","locked","off"],f=function(e,t,i,n){n=n||{},i=null==i?{}:i;var o=new Event(t,{bubbles:void 0===n.bubbles||n.bubbles,cancelable:Boolean(n.cancelable),composed:void 0===n.composed||n.composed});return o.detail=i,e.dispatchEvent(o),o},g=function(e){f(window,"haptic",e)},v=function(e,t,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(e){return e.user===t.user.id}))||(g("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&f(e,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&function(e,t,i){void 0===i&&(i=!1),i?history.replaceState(null,"",t):history.pushState(null,"",t),f(window,"location-changed",{replace:i})}(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(function(e,t){(function(e,t,i){void 0===i&&(i=!0);var n,o=function(e){return e.substr(0,e.indexOf("."))}(t),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}e.callService(r,n,{entity_id:t})})(e,t,m.includes(e.states[t].state))}(t,i.entity),g("success"));break;case"call-service":if(!n.service)return void g("failure");var o=n.service.split(".",2);t.callService(o[0],o[1],n.service_data,n.target),g("success");break;case"fire-dom-event":f(e,"ll-custom",n)}};function _(e){return void 0!==e&&"none"!==e.action}var b,y,x={},w={},A={},$={};function E(){if(y)return A;y=1,Object.defineProperty(A,"__esModule",{value:!0}),A.validateFunctionalRGB=void 0;var e=function(){if(b)return $;b=1;var e=$&&$.__read||function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,o,r=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return s};return Object.defineProperty($,"__esModule",{value:!0}),$.parseRGB=void 0,$.parseRGB=function(t){var i=t.replace(/((rgba)|(rgb))|\(|\)|\s/g,""),n=e(i.split(","),4),o=n[0],r=n[1],s=n[2],a=n[3];return{red:o,green:r,blue:s,alpha:null!=a?a:""}},$}();return A.validateFunctionalRGB=function(t){var i,n,o=t.replace(/((rgba)|(rgb))|\(|\)|\s/g,"").split(",").length,r=t.startsWith("rgba("),s=3===o||4===o;if(!t.startsWith(r?"rgba(":"rgb(")||!t.endsWith(")")||!s)return!1;var a=e.parseRGB(t),l=parseFloat(a.red),d=parseFloat(a.green),c=parseFloat(a.blue),h=[a.red,a.green,a.blue],p=h.every((function(e){return e.endsWith("%")})),u=h.every((function(e){var t;return(null===(t=e.match(/[0-9]|\./g))||void 0===t?void 0:t.length)===e.length}));if(!u&&!p)return!1;if(p){var m=!isNaN(l)&&l>=0&&l<=100,f=!isNaN(d)&&d>=0&&d<=100,g=!isNaN(c)&&c>=0&&c<=100;if(!m||!f||!g)return!1}else{if(!u)return!1;m=!isNaN(l)&&l>=0&&l<=255,f=!isNaN(d)&&d>=0&&d<=255,g=!isNaN(c)&&c>=0&&c<=255;if(!m||!f||!g)return!1}if(r&&a.alpha){var v=parseFloat(a.alpha);if(isNaN(v))return!1;if((null===(i=a.alpha)||void 0===i?void 0:i.endsWith("%"))&&(v<0||v>100))return!1;if(!(null===(n=a.alpha)||void 0===n?void 0:n.endsWith("%"))&&(v>1||v<0))return!1}return!0},A}var C,S,T={};function k(){if(S)return w;S=1,Object.defineProperty(w,"__esModule",{value:!0}),w.isValidRGB=void 0;var e=E(),t=function(){if(C)return T;C=1;var e=T&&T.__read||function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,o,r=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return s},t=T&&T.__spread||function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(e(arguments[i]));return t};return Object.defineProperty(T,"__esModule",{value:!0}),T.validateHexRGB=void 0,T.validateHexRGB=function(e){if(!e.startsWith("#"))return!1;if(6!==(e=e.toUpperCase().slice(1)).length&&3!==e.length)return!1;var i=t(e).every((function(e){return-1!==e.search(/[0-9A-F]/g)}));return!!i},T}();return w.isValidRGB=function(i){if("string"!=typeof i)throw new Error("'rgbString' must be a string");return i.startsWith("#")?t.validateHexRGB(i):e.validateFunctionalRGB(i)},w}var O,I,M={},N={};function R(){if(I)return M;I=1,Object.defineProperty(M,"__esModule",{value:!0}),M.isValidHSL=void 0;var e=function(){if(O)return N;O=1;var e=N&&N.__read||function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,o,r=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return s};return Object.defineProperty(N,"__esModule",{value:!0}),N.parseHSL=void 0,N.parseHSL=function(t){var i=t.replace(/((hsla)|(hsl))|\(|\)|\s/g,""),n=e(i.split(","),4),o=n[0],r=n[1],s=n[2],a=n[3];return{hue:o,saturation:r,lightness:s,alpha:null!=a?a:""}},N}();return M.isValidHSL=function(t){if("string"!=typeof t)throw new Error("'hslString' must be a string");var i=t.replace(/((hsla)|(hsl))|\(|\)|\s/g,"").split(",").length,n=t.startsWith("hsla("),o=3===i||4===i;if(!t.startsWith(n?"hsla(":"hsl(")||!t.endsWith(")")||!o)return!1;var r=e.parseHSL(t),s=r.hue,a=r.saturation,l=r.lightness,d=r.alpha,c=parseFloat(s);if(c>360||c<0)return!1;var h=parseFloat(a);if(h>100||h<0)return!1;var p=parseFloat(l);if(p>100||p<0)return!1;if(isNaN(parseFloat(s.replace(/(deg|rad|grad|turn)$/,""))))return!1;if(!a.endsWith("%")&&0!==h)return!1;if(isNaN(parseFloat(a.replace(/%$/,""))))return!1;if(!l.endsWith("%")&&0!==p)return!1;if(isNaN(parseFloat(l.replace(/%$/,""))))return!1;if(n&&d){var u=d,m=parseFloat(d);if(u.endsWith("%")){if(m>100||m<0)return!1}else if(m>1||m<0)return!1}return!0},M}var z,L,H,P={},D={};function V(){if(L)return P;L=1,Object.defineProperty(P,"__esModule",{value:!0}),P.isValidColorName=void 0;var e=(z||(z=1,Object.defineProperty(D,"__esModule",{value:!0}),D.validCSSColorNames=void 0,D.validCSSColorNames=["black","silver","gray","white","maroon","red","purple","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","fuchsia","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),D);return P.isValidColorName=function(t){if("string"!=typeof t)throw new Error("'colorName' must be a string");return!!t&&e.validCSSColorNames.includes(t.toLowerCase())},P}var F,B,U,j=(H||(H=1,F=x,B=x&&x.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),U=x&&x.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||B(t,e,i)},Object.defineProperty(F,"__esModule",{value:!0}),U(k(),F),U(R(),F),U(V(),F)),x);
|
||
/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/const W=globalThis,q=W.ShadowRoot&&(void 0===W.ShadyCSS||W.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,G=Symbol(),X=new WeakMap;class K{constructor(e,t,i){if(this._$cssResult$=!0,i!==G)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(q&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=X.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&X.set(t,e))}return e}toString(){return this.cssText}}const Y=q?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new K("string"==typeof e?e:e+"",void 0,G))(t)})(e):e
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/,{is:Z,defineProperty:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:ee,getOwnPropertySymbols:te,getPrototypeOf:ie}=Object,ne=globalThis,oe=ne.trustedTypes,re=oe?oe.emptyScript:"",se=ne.reactiveElementPolyfillSupport,ae=(e,t)=>e,le={toAttribute(e,t){switch(t){case Boolean:e=e?re: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}},de=(e,t)=>!Z(e,t),ce={attribute:!0,type:String,converter:le,reflect:!1,hasChanged:de};Symbol.metadata??=Symbol("metadata"),ne.litPropertyMetadata??=new WeakMap;class he extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ce){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&&J(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){const{get:n,set:o}=Q(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return n?.call(this)},set(t){const r=n?.call(this);o.call(this,t),this.requestUpdate(e,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ce}static _$Ei(){if(this.hasOwnProperty(ae("elementProperties")))return;const e=ie(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ae("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ae("properties"))){const e=this.properties,t=[...ee(e),...te(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(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(q)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const i of t){const t=document.createElement("style"),n=W.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=i.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){const i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(void 0!==n&&!0===i.reflect){const o=(void 0!==i.converter?.toAttribute?i.converter:le).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){const e=i.getPropertyOptions(n),o="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:le;this._$Em=n,this[n]=o.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,i){if(void 0!==e){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??de)(this[e],t))return;this.P(e,t,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}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.renderRoot??=this.createRenderRoot(),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.P(t,this[t],i)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}}he.elementStyles=[],he.shadowRootOptions={mode:"open"},he[ae("elementProperties")]=new Map,he[ae("finalized")]=new Map,se?.({ReactiveElement:he}),(ne.reactiveElementVersions??=[]).push("2.0.4");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
const pe=globalThis,ue=pe.trustedTypes,me=ue?ue.createPolicy("lit-html",{createHTML:e=>e}):void 0,fe="$lit$",ge=`lit$${Math.random().toFixed(9).slice(2)}$`,ve="?"+ge,_e=`<${ve}>`,be=document,ye=()=>be.createComment(""),xe=e=>null===e||"object"!=typeof e&&"function"!=typeof e,we=Array.isArray,Ae="[ \t\n\f\r]",$e=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ee=/-->/g,Ce=/>/g,Se=RegExp(`>|${Ae}(?:([^\\s"'>=/]+)(${Ae}*=${Ae}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Te=/'/g,ke=/"/g,Oe=/^(?:script|style|textarea|title)$/i,Ie=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),Me=Ie(1),Ne=Ie(2),Re=Symbol.for("lit-noChange"),ze=Symbol.for("lit-nothing"),Le=new WeakMap,He=be.createTreeWalker(be,129);function Pe(e,t){if(!we(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==me?me.createHTML(t):t}class De{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let o=0,r=0;const s=e.length-1,a=this.parts,[l,d]=((e,t)=>{const i=e.length-1,n=[];let o,r=2===t?"<svg>":3===t?"<math>":"",s=$e;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===$e?"!--"===l[1]?s=Ee:void 0!==l[1]?s=Ce:void 0!==l[2]?(Oe.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=Se):void 0!==l[3]&&(s=Se):s===Se?">"===l[0]?(s=o??$e,d=-1):void 0===l[1]?d=-2:(d=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Se:'"'===l[3]?ke:Te):s===ke||s===Te?s=Se:s===Ee||s===Ce?s=$e:(s=Se,o=void 0);const h=s===Se&&e[t+1].startsWith("/>")?" ":"";r+=s===$e?i+_e:d>=0?(n.push(a),i.slice(0,d)+fe+i.slice(d)+ge+h):i+ge+(-2===d?t:h)}return[Pe(e,r+(e[i]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),n]})(e,t);if(this.el=De.createElement(l,i),He.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=He.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes())for(const e of n.getAttributeNames())if(e.endsWith(fe)){const t=d[r++],i=n.getAttribute(e).split(ge),s=/([.?@])?(.*)/.exec(t);a.push({type:1,index:o,name:s[2],strings:i,ctor:"."===s[1]?je:"?"===s[1]?We:"@"===s[1]?qe:Ue}),n.removeAttribute(e)}else e.startsWith(ge)&&(a.push({type:6,index:o}),n.removeAttribute(e));if(Oe.test(n.tagName)){const e=n.textContent.split(ge),t=e.length-1;if(t>0){n.textContent=ue?ue.emptyScript:"";for(let i=0;i<t;i++)n.append(e[i],ye()),He.nextNode(),a.push({type:2,index:++o});n.append(e[t],ye())}}}else if(8===n.nodeType)if(n.data===ve)a.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(ge,e+1));)a.push({type:7,index:o}),e+=ge.length-1}o++}}static createElement(e,t){const i=be.createElement("template");return i.innerHTML=e,i}}function Ve(e,t,i=e,n){if(t===Re)return t;let o=void 0!==n?i._$Co?.[n]:i._$Cl;const r=xe(t)?void 0:t._$litDirective$;return o?.constructor!==r&&(o?._$AO?.(!1),void 0===r?o=void 0:(o=new r(e),o._$AT(e,i,n)),void 0!==n?(i._$Co??=[])[n]=o:i._$Cl=o),void 0!==o&&(t=Ve(e,o._$AS(e,t.values),o,n)),t}class Fe{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){const{el:{content:t},parts:i}=this._$AD,n=(e?.creationScope??be).importNode(t,!0);He.currentNode=n;let o=He.nextNode(),r=0,s=0,a=i[0];for(;void 0!==a;){if(r===a.index){let t;2===a.type?t=new Be(o,o.nextSibling,this,e):1===a.type?t=new a.ctor(o,a.name,a.strings,this,e):6===a.type&&(t=new Ge(o,this,e)),this._$AV.push(t),a=i[++s]}r!==a?.index&&(o=He.nextNode(),r++)}return He.currentNode=be,n}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 Be{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,n){this.type=2,this._$AH=ze,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ve(this,e,t),xe(e)?e===ze||null==e||""===e?(this._$AH!==ze&&this._$AR(),this._$AH=ze):e!==this._$AH&&e!==Re&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>we(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ze&&xe(this._$AH)?this._$AA.nextSibling.data=e:this.T(be.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:i}=e,n="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=De.createElement(Pe(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(t);else{const e=new Fe(n,this),i=e.u(this.options);e.p(t),this.T(i),this._$AH=e}}_$AC(e){let t=Le.get(e.strings);return void 0===t&&Le.set(e.strings,t=new De(e)),t}k(e){we(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const o of e)n===t.length?t.push(i=new Be(this.O(ye()),this.O(ye()),this,this.options)):i=t[n],i._$AI(o),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class Ue{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,n,o){this.type=1,this._$AH=ze,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ze}_$AI(e,t=this,i,n){const o=this.strings;let r=!1;if(void 0===o)e=Ve(this,e,t,0),r=!xe(e)||e!==this._$AH&&e!==Re,r&&(this._$AH=e);else{const n=e;let s,a;for(e=o[0],s=0;s<o.length-1;s++)a=Ve(this,n[i+s],t,s),a===Re&&(a=this._$AH[s]),r||=!xe(a)||a!==this._$AH[s],a===ze?e=ze:e!==ze&&(e+=(a??"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(e)}j(e){e===ze?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class je extends Ue{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ze?void 0:e}}class We extends Ue{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ze)}}class qe extends Ue{constructor(e,t,i,n,o){super(e,t,i,n,o),this.type=5}_$AI(e,t=this){if((e=Ve(this,e,t,0)??ze)===Re)return;const i=this._$AH,n=e===ze&&i!==ze||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==ze&&(i===ze||n);n&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class Ge{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){Ve(this,e)}}const Xe=pe.litHtmlPolyfillSupport;Xe?.(De,Be),(pe.litHtmlVersions??=[]).push("3.2.1");const Ke=globalThis,Ye=Ke.ShadowRoot&&(void 0===Ke.ShadyCSS||Ke.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ze=Symbol(),Je=new WeakMap;
|
||
/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/class Qe{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(Ye&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=Je.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Je.set(t,e))}return e}toString(){return this.cssText}}const et=e=>new Qe("string"==typeof e?e:e+"",void 0,Ze),tt=(e,...t)=>{const i=1===e.length?e[0]:t.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 Qe(i,e,Ze)},it=Ye?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return et(t)})(e):e
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/,{is:nt,defineProperty:ot,getOwnPropertyDescriptor:rt,getOwnPropertyNames:st,getOwnPropertySymbols:at,getPrototypeOf:lt}=Object,dt=globalThis,ct=dt.trustedTypes,ht=ct?ct.emptyScript:"",pt=dt.reactiveElementPolyfillSupport,ut=(e,t)=>e,mt={toAttribute(e,t){switch(t){case Boolean:e=e?ht: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}},ft=(e,t)=>!nt(e,t),gt={attribute:!0,type:String,converter:mt,reflect:!1,hasChanged:ft};Symbol.metadata??=Symbol("metadata"),dt.litPropertyMetadata??=new WeakMap;class vt extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=gt){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&&ot(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){const{get:n,set:o}=rt(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return n?.call(this)},set(t){const r=n?.call(this);o.call(this,t),this.requestUpdate(e,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??gt}static _$Ei(){if(this.hasOwnProperty(ut("elementProperties")))return;const e=lt(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ut("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ut("properties"))){const e=this.properties,t=[...st(e),...at(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(it(e))}else void 0!==e&&t.push(it(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(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(Ye)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const i of t){const t=document.createElement("style"),n=Ke.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=i.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){const i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(void 0!==n&&!0===i.reflect){const o=(void 0!==i.converter?.toAttribute?i.converter:mt).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){const e=i.getPropertyOptions(n),o="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:mt;this._$Em=n,this[n]=o.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,i){if(void 0!==e){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??ft)(this[e],t))return;this.P(e,t,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}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.renderRoot??=this.createRenderRoot(),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.P(t,this[t],i)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}}vt.elementStyles=[],vt.shadowRootOptions={mode:"open"},vt[ut("elementProperties")]=new Map,vt[ut("finalized")]=new Map,pt?.({ReactiveElement:vt}),(dt.reactiveElementVersions??=[]).push("2.0.4");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
class _t extends vt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{const n=i?.renderBefore??t;let o=n._$litPart$;if(void 0===o){const e=i?.renderBefore??null;n._$litPart$=o=new Be(t.insertBefore(ye(),e),e,void 0,i??{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Re}}_t._$litElement$=!0,_t.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:_t});const bt=globalThis.litElementPolyfillSupport;bt?.({LitElement:_t}),(globalThis.litElementVersions??=[]).push("4.1.1");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
const yt=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
|
||
*/,xt={attribute:!0,type:String,converter:le,reflect:!1,hasChanged:de},wt=(e=xt,t,i)=>{const{kind:n,metadata:o}=i;let r=globalThis.litPropertyMetadata.get(o);if(void 0===r&&globalThis.litPropertyMetadata.set(o,r=new Map),r.set(i.name,e),"accessor"===n){const{name:n}=i;return{set(i){const o=t.get.call(this);t.set.call(this,i),this.requestUpdate(n,o,e)},init(t){return void 0!==t&&this.P(n,void 0,e),t}}}if("setter"===n){const{name:n}=i;return function(i){const o=this[n];t.call(this,i),this.requestUpdate(n,o,e)}}throw Error("Unsupported decorator location: "+n)};function At(e){return(t,i)=>"object"==typeof i?wt(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 $t(e){return At({...e,state:!0,attribute:!1})}
|
||
/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/const Et=1,Ct=2,St=e=>(...t)=>({_$litDirective$:e,values:t});
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/class Tt{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 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/const kt=(e,t)=>{const i=e._$AN;if(void 0===i)return!1;for(const e of i)e._$AO?.(t,!1),kt(e,t);return!0},Ot=e=>{let t,i;do{if(void 0===(t=e._$AM))break;i=t._$AN,i.delete(e),e=t}while(0===i?.size)},It=e=>{for(let t;t=e._$AM;e=t){let i=t._$AN;if(void 0===i)t._$AN=i=new Set;else if(i.has(e))break;i.add(e),Rt(t)}};function Mt(e){void 0!==this._$AN?(Ot(this),this._$AM=e,It(this)):this._$AM=e}function Nt(e,t=!1,i=0){const n=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(n))for(let e=i;e<n.length;e++)kt(n[e],!1),Ot(n[e]);else null!=n&&(kt(n,!1),Ot(n));else kt(this,e)}const Rt=e=>{e.type==Ct&&(e._$AP??=Nt,e._$AQ??=Mt)};class zt extends Tt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),It(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(kt(this,e),Ot(this))}setValue(e){if((e=>void 0===e.strings)(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}
|
||
/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/class Lt{constructor(e){this.Y=e}disconnect(){this.Y=void 0}reconnect(e){this.Y=e}deref(){return this.Y}}class Ht{constructor(){this.Z=void 0,this.q=void 0}get(){return this.Z}pause(){this.Z??=new Promise((e=>this.q=e))}resume(){this.q?.(),this.Z=this.q=void 0}}
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/const Pt=e=>!(e=>null===e||"object"!=typeof e&&"function"!=typeof e)(e)&&"function"==typeof e.then,Dt=1073741823;const Vt=St(class extends zt{constructor(){super(...arguments),this._$Cwt=Dt,this._$Cbt=[],this._$CK=new Lt(this),this._$CX=new Ht}render(...e){return e.find((e=>!Pt(e)))??Re}update(e,t){const i=this._$Cbt;let n=i.length;this._$Cbt=t;const o=this._$CK,r=this._$CX;this.isConnected||this.disconnected();for(let e=0;e<t.length&&!(e>this._$Cwt);e++){const s=t[e];if(!Pt(s))return this._$Cwt=e,s;e<n&&s===i[e]||(this._$Cwt=Dt,n=0,Promise.resolve(s).then((async e=>{for(;r.get();)await r.get();const t=o.deref();if(void 0!==t){const i=t._$Cbt.indexOf(s);i>-1&&i<t._$Cwt&&(t._$Cwt=i,t.setValue(e))}})))}return Re}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}});const Ft="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.maxTouchPoints>0;class Bt extends HTMLElement{constructor(){super(),this.holdTime=500,this.held=!1,this.ripple=document.createElement("mwc-ripple")}connectedCallback(){Object.assign(this.style,{position:"absolute",width:Ft?"100px":"50px",height:Ft?"100px":"50px",transform:"translate(-50%, -50%)",pointerEvents:"none",zIndex:"999"}),this.appendChild(this.ripple),this.ripple.primary=!0,["touchcancel","mouseout","mouseup","touchmove","mousewheel","wheel","scroll"].forEach((e=>{document.addEventListener(e,(()=>{clearTimeout(this.timer),this.stopAnimation(),this.timer=void 0}),{passive:!0})}))}bind(e,t){if(e.actionHandler)return;e.actionHandler=!0,e.addEventListener("contextmenu",(e=>{const t=e||window.event;return t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0,t.returnValue=!1,!1}));const i=e=>{let t,i;this.held=!1,e.touches?(t=e.touches[0].pageX,i=e.touches[0].pageY):(t=e.pageX,i=e.pageY),this.timer=window.setTimeout((()=>{this.startAnimation(t,i),this.held=!0}),this.holdTime)},n=i=>{i.preventDefault(),["touchend","touchcancel"].includes(i.type)&&void 0===this.timer||(clearTimeout(this.timer),this.stopAnimation(),this.timer=void 0,this.held?f(e,"action",{action:"hold"}):t.hasDoubleClick?"click"===i.type&&i.detail<2||!this.dblClickTimeout?this.dblClickTimeout=window.setTimeout((()=>{this.dblClickTimeout=void 0,f(e,"action",{action:"tap"})}),250):(clearTimeout(this.dblClickTimeout),this.dblClickTimeout=void 0,f(e,"action",{action:"double_tap"})):f(e,"action",{action:"tap"}))};e.addEventListener("touchstart",i,{passive:!0}),e.addEventListener("touchend",n),e.addEventListener("touchcancel",n),e.addEventListener("mousedown",i,{passive:!0}),e.addEventListener("click",n),e.addEventListener("keyup",(e=>{13===e.keyCode&&n(e)}))}startAnimation(e,t){Object.assign(this.style,{left:`${e}px`,top:`${t}px`,display:null}),this.ripple.disabled=!1,this.ripple.active=!0,this.ripple.unbounded=!0}stopAnimation(){this.ripple.active=!1,this.ripple.disabled=!0,this.style.display="none"}}customElements.define("action-handler-hourly-weather",Bt);const Ut=(e,t)=>{const i=(()=>{const e=document.body;if(e.querySelector("action-handler-hourly-weather"))return e.querySelector("action-handler-hourly-weather");const t=document.createElement("action-handler-hourly-weather");return e.appendChild(t),t})();i&&i.bind(e,t)},jt=St(class extends Tt{update(e,[t]){return Ut(e.element,t),Re}render(e){}}),Wt={"clear-night":"conditions.clear",cloudy:"conditions.cloudy",fog:"conditions.fog",hail:"conditions.hail",lightning:"conditions.thunderstorm","lightning-rainy":"conditions.thunderstorm",partlycloudy:"conditions.partlyCloudy",pouring:"conditions.heavyRain",rainy:"conditions.rain",snowy:"conditions.snow","snowy-rainy":"conditions.mixedPrecip",sunny:"conditions.sunny",windy:"conditions.windy","windy-variant":"conditions.windy",exceptional:"conditions.clear"},qt={"clear-night":"weather-night",cloudy:"cloudy",fog:"fog",hail:"hail",lightning:"lightning","lightning-rainy":"lightning-rainy",partlycloudy:"weather-partly-cloudy",pouring:"pouring",rainy:"rainy",snowy:"snowy","snowy-rainy":"snowy-rainy",sunny:"sunny",windy:"windy","windy-variant":"windy-variant",exceptional:"alert-outline"},Gt={n:"direction.n",nne:"direction.nne",ne:"direction.ne",ene:"direction.ene",e:"direction.e",ese:"direction.ese",se:"direction.se",sse:"direction.sse",s:"direction.s",ssw:"direction.ssw",sw:"direction.sw",wsw:"direction.wsw",w:"direction.w",wnw:"direction.wnw",nw:"direction.nw",nnw:"direction.nnw"},Xt={n:0,nne:22.5,ne:45,ene:67.5,e:90,ese:112.5,se:135,sse:157.5,s:180,ssw:202.5,sw:225,wsw:247.5,w:270,wnw:292.5,nw:315,nnw:337.5};var Kt={version:"Версия",title:"Времето по часове",title_card:"Карта с времето по часове",description:"Карта, която визуализира почасово метеорологичните условия във вид на лента.",invalid_configuration:"Невалидна конфигурация"},Yt={entity:"Entity (Задължително)",name:"Име (Опционално)",segments_to_show:"Брой сегменти за визуализиране (Опционално)",offset:"Брой сегменти с които да се отмести началото (Опционално)",icons:"Показвай икони вместо текст",label_spacing:"Брой сегменти между етикетите за час и температура (Опционално)",show_wind:"Показвай посока и скорост на вятъра",show_date:"Показвай дати",show_precipitation_amounts:"Покажи количеството валежи",show_precipitation_probability:"Покажи вероятноста за валежи",none:"Няма",speed_and_direction:"Скорост и посока",speed_only:"Само скорост",direction_only:"Само посока",barb:"Като wind barb",barb_and_speed:"Като wind barb и скорост",barb_and_direction:"Като wind barb и посока",barb_speed_and_direction:"Като wind barb, скорост и посока",all:"Всички",on_day_boundaries:"На границите между дните"},Zt={missing_entity:"entity липсва в конфигурацията",too_many_segments_requested:"Задали сте твърде много сегменти с прогнози в num_segments. Трябва да бъдат <= от броя сегменти във forecast entity.",must_be_int:"Трябва да бъде четно число по-голямо или равно на 2",invalid_colors:"Следните цветове в конфигурацията Ви са невалидни:",must_be_positive_int:"Трябва да е положително число",offset_must_be_positive_int:"Отместването трябва да е положително число",forecast_not_available:"Не е налична прогноза",check_entity:"Проверете конфигурираното forecast entity.",invalid_value_icon_fill:"icon_fill трябва да бъде или положително цяло число, или едно от 'single' или 'full'"},Jt={clear:"Ясно",cloudy:"Облачно",fog:"Мъгла",hail:"Градушка",thunderstorm:"Гръмотевична буря",partlyCloudy:"Частична облачност",heavyRain:"Проливен дъжд",rain:"Дъжд",snow:"Сняг",mixedPrecip:"Смесен валеж",sunny:"Слънчево",windy:"Ветровито"},Qt={n:"С",nne:"ССИ",ne:"СИ",ene:"ИСИ",e:"И",ese:"ИЮИ",se:"ЮИ",sse:"ЮЮИ",s:"Ю",ssw:"ЮЮЗ",sw:"ЮЗ",wsw:"ЗЮЗ",w:"З",wnw:"ЗСЗ",nw:"СЗ",nnw:"ССЗ"},ei={chance_of_precipitation:"{0}% вероятност за валежи"},ti={common:Kt,editor:Yt,errors:Zt,conditions:Jt,direction:Qt,card:ei},ii={version:"Verze",title:"Hodinnová předpověď",title_card:"Karta Hodinnová předpověď",description:"Karta zobrazující hodinovou předpověď v řádku.",invalid_configuration:"Neplatná konfigurace"},ni={entity:"Entita (Povinné)",name:"Název (Nepovinné)",segments_to_show:"Počet dílků předpovědi k vykreslení (Nepovinné)",offset:"Počet dílků, které se přeskočí před začátkem (Nepovinné)",icons:"Zobrazit ikony namísto textových popisků",label_spacing:"Po kolika dílcích se vykreslí čas a teplota (Nepovinné)",show_wind:"Zobrazit rychlost a směr větru",show_date:"Zobrazit datumy",show_precipitation_amounts:"Zobrazit množství srážek",show_precipitation_probability:"Zobrazit pravdědpodobnost srážek",none:"Žádné",speed_and_direction:"Rychlost a směr",speed_only:"Jen rychlost",direction_only:"Jen směr",barb:"Jako šipku větru",barb_and_speed:"Jako šipku větru a rychlost",barb_and_direction:"Jako šipku větru a směr",barb_speed_and_direction:"Jako šipku větru, rychlost a směr",all:"Všechny",on_day_boundaries:"Při změně dne"},oi={missing_entity:"Hodnota 'entity' nebyla zadána",too_many_segments_requested:"Je nastaveno příliš mnoho dílků předpovědi v 'num_segments'. Hodnota musí být <= počtu hodnot v zadané entitě.",must_be_int:"Hodnota musí být kladné sudé celé číslo",invalid_colors:"Následující hodnoty v konfiguraci jsou neplatné:",must_be_positive_int:"Hodnota musí být kladné celé číslo",offset_must_be_positive_int:"Hodnota 'offset' musí být kladné celé číslo",forecast_not_available:"Předpověď není dostupná",check_entity:"Zkontrolujte zadanou entity předpovědi.",invalid_value_icon_fill:"icon_fill musí být buď kladné celé číslo, nebo jedno z 'single'; nebo 'full';"},ri={clear:"Jasno",cloudy:"Oblačno",fog:"Mlha",hail:"Kroupy",thunderstorm:"Bouřka",partlyCloudy:"Polojasno",heavyRain:"Silný déšť",rain:"Déšť",snow:"Sníh",mixedPrecip:"Smíšené srážky",sunny:"Slunečno",windy:"Větrno"},si={n:"S",nne:"SSV",ne:"SV",ene:"VSV",e:"V",ese:"VJV",se:"JV",sse:"JJV",s:"J",ssw:"JJZ",sw:"JZ",wsw:"ZJZ",w:"Z",wnw:"ZSZ",nw:"SZ",nnw:"SSZ"},ai={chance_of_precipitation:"{0}% šance srážek"},li={common:ii,editor:ni,errors:oi,conditions:ri,direction:si,card:ai},di={version:"Version",title:"Time Vejr",title_card:"Time Vejr Kort",description:"Et kort som viser vejret hver time som en linje.",invalid_configuration:"Ugyldig konfiguration"},ci={entity:"Entitet (Påkrævet)",name:"Navn (Valgfri)",segments_to_show:"Antal udsigtssegmenter der skal vises (Valgfri)",offset:"Antal udsigtssegmenter starten skal forskydes (Valgfri)",icons:"Vis ikoner i stedet for tekst",label_spacing:"Antal segmenter imellem tid og temperatur labels (Valgfri)",show_wind:"Vis vindhastighed og retning",show_precipitation_amounts:"Vis nedbørsmængde",show_precipitation_probability:"Vis nedbørssandsynlighed",none:"Ingen",speed_and_direction:"Hastighed og retning",speed_only:"Kun hastighed",direction_only:"Kun retning",barb:"Som vindrose",barb_and_speed:"Som vindrose og hastighed",barb_and_direction:"Som vindrose og retning",barb_speed_and_direction:"Som vindrose, hastighed, og retning",show_date:"Vis datoer",all:"Alle",on_day_boundaries:"På dagsgrænser"},hi={missing_entity:"entitet mangler i konfiguration",too_many_segments_requested:"For mange segmenter forespurgt i num_segments. Skal være mindre eller lig antal segmenter i vejrudsigtsentiteten.",must_be_int:"Skal være et heltal størrere end eller lig 2",invalid_colors:"Føglende farver i din konfiguration er ugyldige:",must_be_positive_int:"Skal være et positivt heltal",offset_must_be_positive_int:"offset skal være et positivt heltal",forecast_not_available:"Vejrudsigt ikke tilgængelig",check_entity:"Kontroller den definerede vejrudsigtsentitet.",invalid_value_icon_fill:"icon_fill skal enten være et positivt heltal eller et af 'single' eller 'full'"},pi={clear:"Klart",cloudy:"Skyet",fog:"Tåge",hail:"Hagl",thunderstorm:"Torden",partlyCloudy:"Delvist overskyet",heavyRain:"Kraftig regn",rain:"Regn",snow:"Sne",mixedPrecip:"Blandet nedbør",sunny:"Sol",windy:"Blæsende"},ui={n:"N",nne:"NNØ",ne:"NØ",ene:"ØNØ",e:"Ø",ese:"ØSØ",se:"SØ",sse:"SSØ",s:"S",ssw:"SSV",sw:"SV",wsw:"VSV",w:"V",wnw:"VNV",nw:"NV",nnw:"NNV"},mi={chance_of_precipitation:"{0}% risiko for nedbør"},fi={common:di,editor:ci,errors:hi,conditions:pi,direction:ui,card:mi},gi={version:"Version",title:"Stündliches Wetterbedingungen",title_card:"Stündliche Wetterbedingungen",description:"Diese Karte stellt stündliche Wetterbedingungen als Balken dar.",invalid_configuration:"Ungültige Konfiguration"},vi={entity:"Entität",name:"Bezeichnung (optional)",icons:"Zeigen Sie Symbole anstelle von Textbeschriftungen an",offset:"Anzahl der Prognosesegmente zum Versetzen beginnen um (optional)",segments_to_show:"Anzahl der anzuzeigenden Prognosesegmente (optional)",label_spacing:"Anzahl der Vorhersagesegmente für Raumzeit- und Temperaturbeschriftungen nach (optional)",show_wind:"Zeigt Windgeschwindigkeit und -richtung an",show_precipitation_amounts:"Niederschlagsmenge anzeigen",speed_only:"Nur Geschwindigkeit",direction_only:"Nur Richtung",barb:"Als Windbarbe",show_precipitation_probability:"Niederschlagswahrscheinlichkeit anzeigen",none:"Keiner",speed_and_direction:"Geschwindigkeit und Richtung",barb_and_speed:"Als Windwiderhaken und Geschwindigkeit",barb_and_direction:"Als Windwiderhaken und Richtung",barb_speed_and_direction:"Als Windwiderstand, Geschwindigkeit und Richtung",show_date:"Termine anzeigen",all:"Alle",on_day_boundaries:"An Tagesgrenzen"},_i={missing_entity:"Keine Wetter-Entität festgelegt",must_be_int:"Muss eine gerade ganze Zahl größer oder gleich 2 sein.",invalid_colors:"Die folgenden Farben in Ihrer Konfiguration sind ungültig:",must_be_positive_int:"Muss eine positive Ganzzahl sein",too_many_segments_requested:"Zu viele Prognosesegmente in num_segments angefordert. Muss <= Anzahl der Segmente in der Prognoseentität sein.",offset_must_be_positive_int:"offset muss eine positive Ganzzahl sein",forecast_not_available:"Prognose nicht verfügbar",check_entity:"Überprüfen Sie die konfigurierte Prognoseentität.",invalid_value_icon_fill:"icon_fill muss entweder eine positive Ganzzahl oder einer der Werte 'single' oder 'full' sein."},bi={clear:"Klar",cloudy:"Bewölkt",fog:"Nebel",hail:"Hagel",thunderstorm:"Gewitter",partlyCloudy:"Teilweise bewölkt",heavyRain:"Platzregen",rain:"Regen",snow:"Schnee",mixedPrecip:"Gemischter Niederschlag",sunny:"Sonnig",windy:"Windig"},yi={n:"N",nne:"NNO",ne:"NO",ene:"ONO",e:"O",ese:"OSO",se:"SO",sse:"SSO",s:"S",ssw:"SSW",sw:"SW",wsw:"WSW",w:"W",wnw:"WNW",nw:"NW",nnw:"NNW"},xi={chance_of_precipitation:"{0}% Niederschlagswahrscheinlichkeit"},wi={common:gi,editor:vi,errors:_i,conditions:bi,direction:yi,card:xi},Ai={version:"Version",title:"Hourly Weather",title_card:"Hourly Weather Card",description:"A card to render hourly weather conditions as a bar.",invalid_configuration:"Invalid configuration"},$i={entity:"Entity (Required)",name:"Name (Optional)",segments_to_show:"Number of forecast segments to show (Optional)",offset:"Number of forecast segments to offset start by (Optional)",icons:"Show icons instead of text labels",label_spacing:"Number of forecast segments to space time and temperature labels by (Optional)",show_wind:"Show wind speed and direction",show_date:"Show dates",show_precipitation_amounts:"Show precipitation amount",show_precipitation_probability:"Show precipitation probability",none:"None",speed_and_direction:"Speed and direction",speed_only:"Speed only",direction_only:"Direction only",barb:"As wind barb",barb_and_speed:"As wind barb and speed",barb_and_direction:"As wind barb and direction",barb_speed_and_direction:"As wind barb, speed, and direction",all:"All",on_day_boundaries:"On day boundaries"},Ei={missing_entity:"entity is missing in configuration",too_many_segments_requested:"Too many forecast segments requested in num_segments. Must be <= number of segments in forecast entity.",must_be_int:"Must be an even integer greater than or equal to 2",invalid_colors:"The following colors in your configuration are invalid:",must_be_positive_int:"Must be a positive integer",offset_must_be_positive_int:"offset must be a positive integer",forecast_not_available:"Forecast not available",check_entity:"Check the configured forecast entity.",invalid_value_icon_fill:"icon_fill must be either a positive integer or one of 'single' or 'full'"},Ci={clear:"Clear",cloudy:"Cloudy",fog:"Fog",hail:"Hail",thunderstorm:"Thunderstorm",partlyCloudy:"Partly cloudy",heavyRain:"Heavy rain",rain:"Rain",snow:"Snow",mixedPrecip:"Mixed precip",sunny:"Sunny",windy:"Windy"},Si={n:"N",nne:"NNE",ne:"NE",ene:"ENE",e:"E",ese:"ESE",se:"SE",sse:"SSE",s:"S",ssw:"SSW",sw:"SW",wsw:"WSW",w:"W",wnw:"WNW",nw:"NW",nnw:"NNW"},Ti={chance_of_precipitation:"{0}% chance of precipitation"},ki={common:Ai,editor:$i,errors:Ei,conditions:Ci,direction:Si,card:Ti},Oi={version:"Versión",title:"Tiempo por hora",title_card:"Tarjeta de Tiempo por hora",description:"Una tarjeta para mostrar las condiciones climáticas cada hora en una barra.",invalid_configuration:"Configuración inválida"},Ii={entity:"Entidad (Requerida)",name:"Nombre (Opcional)",icons:"Mostrar iconos en vez de texto",offset:"Número de segmentos de pronóstico para compensar el inicio por (Opcional)",segments_to_show:"Número de segmentos de pronóstico para mostrar (Opcional)",label_spacing:"Número de segmentos de pronóstico para etiquetas de temperatura y tiempo espacial por (Opcional)",show_wind:"Mostrar la velocidad y dirección del viento",show_precipitation_amounts:"Mostrar cantidad de precipitación",speed_only:"Solo velocidad",direction_only:"Solo dirección",barb:"Como púa de viento",show_precipitation_probability:"Mostrar probabilidad de precipitación",none:"Ninguno",speed_and_direction:"Velocidad y dirección",barb_and_speed:"Como púas de viento y velocidad",barb_and_direction:"Como púa de viento y dirección",barb_speed_and_direction:"Como púa de viento, velocidad y dirección",show_date:"Mostrar fechas",all:"Todo",on_day_boundaries:"En los límites del día"},Mi={missing_entity:"falta la entidad en la configuración",must_be_int:"Debe ser un entero mayor o igual a 2",invalid_colors:"Los siguientes colores en su configuración no son válidos:",must_be_positive_int:"Debe ser un entero positivo",too_many_segments_requested:"Se solicitaron demasiados segmentos de pronóstico en num_segments. Debe ser <= número de segmentos en la entidad de pronóstico.",offset_must_be_positive_int:"offset debe ser un número entero positivo",forecast_not_available:"Pronóstico no disponible",check_entity:"Verifique la entidad de pronóstico configurada.",invalid_value_icon_fill:"icon_fill debe ser un número entero positivo o uno de los valores 'single' o 'full'"},Ni={clear:"Despejado",cloudy:"Nublado",fog:"Niebla",hail:"Granizo",thunderstorm:"Tormenta electrica",partlyCloudy:"Parcialmente nublado",heavyRain:"Tormenta",rain:"Lluvia",snow:"Nieve",mixedPrecip:"Chaparrones dispersos",sunny:"Soleado",windy:"Ventoso"},Ri={n:"N",nne:"NNE",ne:"NE",ene:"ENE",e:"E",ese:"ESE",se:"SE",sse:"SSE",s:"S",ssw:"SSO",sw:"SO",wsw:"OSO",w:"O",wnw:"ONO",nw:"NO",nnw:"NNO"},zi={chance_of_precipitation:"{0}% probabilidad de precipitación"},Li={common:Oi,editor:Ii,errors:Mi,conditions:Ni,direction:Ri,card:zi},Hi={version:"Version",title:"Prévisions météo par heure",title_card:"Prévisions météo par heure",description:"Une carte pour afficher les prévisions météo par heure sur une ligne.",invalid_configuration:"Configuration invalide"},Pi={entity:"Entité (requis)",name:"Nom (facultatif)",icons:"Afficher des icônes à la place du texte",offset:"Décalage initial de segments de prévision (facultatif)",segments_to_show:"Nombre de segments de prévision à afficher (facultatif)",label_spacing:"Segments d'espacement entre les étiquettes d'heure et de température (facultatif)",show_wind:"Afficher la vitesse et la direction du vent",show_precipitation_amounts:"Afficher la quantité de précipitations",speed_only:"Vitesse uniquement",direction_only:"Sens uniquement",barb:"Comme barbillon de vent",show_precipitation_probability:"Afficher la probabilité de précipitation",none:"Aucun",speed_and_direction:"Vitesse et orientation",barb_and_speed:"Comme barbe de vent et vitesse",barb_and_direction:"Comme barbillon de vent et direction",barb_speed_and_direction:"Comme barbillon de vent, vitesse et direction",show_date:"Afficher les dates",all:"Tous",on_day_boundaries:"Aux limites du jour"},Di={missing_entity:"Entité manquante dans la configuration",must_be_int:"Doit être un nombre entier pair supérieur ou égal à 2",invalid_colors:"Les couleurs suivantes dans votre configuration ne sont pas valides :",must_be_positive_int:"Doit être un entier positif",too_many_segments_requested:"Trop de segments de prévision demandés dans num_segments. Doit être <= au nombre de segments de l'entité de prévision.",offset_must_be_positive_int:"offset doit être un entier positif",forecast_not_available:"Prévision non disponible",check_entity:"Vérifiez l'entité de prévision configurée.",invalid_value_icon_fill:"icon_fill doit être soit un entier positif, soit l'un des nombres 'single' ou 'full'"},Vi={clear:"Dégagé",cloudy:"Nuageux",fog:"Brouillard",hail:"Grêle",thunderstorm:"Orage",partlyCloudy:"Éclaircies",heavyRain:"Averses",rain:"Pluie",snow:"Neige",mixedPrecip:"Neigeux, pluvieux",sunny:"Ensoleillé",windy:"Venteux"},Fi={n:"N",nne:"NNE",ne:"NE",ene:"ENE",e:"E",ese:"ESE",se:"SE",sse:"SSE",s:"S",ssw:"SSO",sw:"SO",wsw:"OSO",w:"O",wnw:"ONO",nw:"NO",nnw:"NNO"},Bi={chance_of_precipitation:"{0}% probabilité de précipitations"},Ui={common:Hi,editor:Pi,errors:Di,conditions:Vi,direction:Fi,card:Bi},ji={version:"Verzió",title:"Óránkénti időjárás",title_card:"Óránkénti időjárás kártya",description:"Egy kártya, amely az óránkénti időjárási viszonyokat egy sávban jeleníti meg",invalid_configuration:"Érvénytelen konfiguráció"},Wi={entity:"Entitás (Kötelező)",name:"Név (Opcionális)",segments_to_show:"Megjelenítendő előrejelzési órák száma (Opcionális)",offset:"Az előrejelzett órák kezdő értékének eltolása (Opcionális)",icons:"Ikonok megjelenítése szövegek helyett",label_spacing:"Az idő- és hőmérsékleti címkékhez tartozó előrejelzési órák időköze (Opcionális)",show_wind:"Szélsebesség és irány megjelenítése",show_precipitation_amounts:"Csapadékmennyiség megjelenítése",show_precipitation_probability:"Csapadék valószínűségének megjelenítése",speed_only:"Sebesség",direction_only:"Irány",barb:"Irány nyílként",none:"Egyik sem",speed_and_direction:"Sebesség és irány",barb_and_speed:"Szélfogóként és sebességként",barb_and_direction:"Szellőként és irányként",barb_speed_and_direction:"Szélfogként, sebességként és irányként",show_date:"Dátumok megjelenítése",all:"Minden",on_day_boundaries:"A napok határain"},qi={missing_entity:"az entitás hiányzik a konfigurációból",too_many_segments_requested:"Túl sok előrejelzési órát adtak meg a num_segments-ben. <= az előrejelző egységben lévő órák száma.",must_be_int:"Páros egész számnak kell lennie, amely nagyobb vagy egyenlő 2-nél.",invalid_colors:"A konfigurációdban a következő színek érvénytelenek:",must_be_positive_int:"Pozitív egész szám kell legyen",offset_must_be_positive_int:"offset pozitív egész számnak kell lennie",forecast_not_available:"Előrejelzés nem elérhető",check_entity:"Ellenőrizze a beállított előrejelző egységet.",invalid_value_icon_fill:"Az ikon_kitöltésének pozitív egésznek vagy az 'single' vagy 'full'"},Gi={clear:"Tiszta",cloudy:"Felhős",fog:"Ködös",hail:"Jégeső",thunderstorm:"Vihar",partlyCloudy:"Részben felhős",heavyRain:"Heves eső",rain:"Esős",snow:"Havazás",mixedPrecip:"Havas eső",sunny:"Napos",windy:"Szeles"},Xi={n:"É",nne:"ÉÉK",ne:"ÉK",ene:"KÉK",e:"K",ese:"KDK",se:"DK",sse:"DDK",s:"D",ssw:"DDNy",sw:"DNy",wsw:"NyDNy",w:"Ny",wnw:"NyÉNy",nw:"ÉNy",nnw:"ÉÉNy"},Ki={chance_of_precipitation:"{0}% a csapadék valószínűsége"},Yi={common:ji,editor:Wi,errors:qi,conditions:Gi,direction:Xi,card:Ki},Zi={version:"Versione",title:"Previsione Meteo Oraria",title_card:"Scheda Meteo Oraria",description:"Una scheda per rappresentare le condizioni meteorologiche orarie come una barra.",invalid_configuration:"Configurazione Non Valida"},Ji={entity:"Entità (Richiesta)",name:"Nome (Facoltativo)",icons:"Mostra le icone invece delle etichette di testo",offset:"Numero di segmenti di previsione di cui compensare l'inizio (Facoltativo)",segments_to_show:"Numero di segmenti di previsione da mostrare (facoltativo)",label_spacing:"Numero di segmenti di previsione per spazio etichette tempo e temperatura per (facoltativo)",show_wind:"Mostra la velocità e la direzione del vento",show_precipitation_amounts:"Mostra la quantità di precipitazioni",speed_only:"Solo velocità",direction_only:"Solo direzione",barb:"Come una punta di vento",show_precipitation_probability:"Mostra la probabilità di precipitazioni",none:"Nessuno",speed_and_direction:"Velocità e direzione",barb_and_speed:"Come il vento tagliente e la velocità",barb_and_direction:"Come il vento e la direzione",barb_speed_and_direction:"Come la punta del vento, la velocità e la direzione",show_date:"Mostra date",all:"Tutto",on_day_boundaries:"Sui confini del giorno"},Qi={missing_entity:"entità mancante nella configurazione",must_be_int:"Deve essere un numero intero pari, maggiore o uguale a 2",invalid_colors:"I seguenti colori nella tua configurazione non sono validi:",must_be_positive_int:"Deve essere un numero intero positivo",too_many_segments_requested:"Troppi segmenti di previsione richiesti in num_segments. Deve essere <= numero di segmenti nell'entità di previsione.",offset_must_be_positive_int:"offset deve essere un numero intero positivo",forecast_not_available:"Previsione non disponibile",check_entity:"Controllare l'entità di previsione configurata.",invalid_value_icon_fill:"icon_fill deve essere un numero intero positivo o uno dei valori 'single' o 'full'"},en={clear:"Limpido",cloudy:"Nuvoloso",fog:"Nebbia",hail:"Grandine",thunderstorm:"Temporale",partlyCloudy:"Parzialmente Nuvoloso",heavyRain:"Acquazzone",rain:"Pioggia",snow:"Neve",mixedPrecip:"Precipitazioni Miste",sunny:"Soleggiato",windy:"Ventoso"},tn={n:"N",nne:"NNE",ne:"NE",ene:"ENE",e:"E",ese:"ESE",se:"SE",sse:"SSE",s:"S",ssw:"SSO",sw:"SO",wsw:"OSO",w:"O",wnw:"ONO",nw:"NO",nnw:"NNO"},nn={chance_of_precipitation:"{0}% possibilità di precipitazioni"},on={common:Zi,editor:Ji,errors:Qi,conditions:en,direction:tn,card:nn},rn={version:"Versjon",invalid_configuration:"Ikke gyldig konfiguration",title:"Timelig vær",title_card:"Timevis værkort",description:"Et kort for å gjengi værforhold hver time som en bar."},sn={icons:"Vis ikoner i stedet for tekstetiketter",entity:"Entitet (obligatorisk)",name:"Navn (valgfritt)",offset:"Antall prognosesegmenter å utligne start med (valgfritt)",segments_to_show:"Antall prognosesegmenter som skal vises (valgfritt)",label_spacing:"Antall prognosesegmenter til romtid og temperaturetiketter etter (valgfritt)",show_wind:"Vis vindhastighet og retning",show_precipitation_amounts:"Vis nedbørsmengde",speed_only:"Kun hastighet",direction_only:"Kun retning",barb:"Som vindmothak",show_precipitation_probability:"Vis nedbørssannsynlighet",none:"Ingen",speed_and_direction:"Fart og retning",barb_and_speed:"Som vindmottak og fart",barb_and_direction:"Som vindmottak og retning",barb_speed_and_direction:"Som vindmothak, hastighet og retning",show_date:"Vis datoer",all:"Alle",on_day_boundaries:"På dagsgrenser"},an={missing_entity:"entity mangler i konfigurasjonen",must_be_int:"Må være et jevnt heltall større enn eller lik 2",invalid_colors:"Følgende farger i konfigurasjonen din er ugyldige:",must_be_positive_int:"Må være et positivt heltall",too_many_segments_requested:"For mange prognosesegmenter er forespurt i num_segments. Må være <= antall segmenter i prognoseenheten.",offset_must_be_positive_int:"offset må være et positivt heltall",forecast_not_available:"Værvarsel er ikke tilgjengelig",check_entity:"Sjekk den konfigurerte prognoseenheten.",invalid_value_icon_fill:"icon_fill må enten være et positivt heltall eller et av 'single' eller 'full'"},ln={clear:"Klar",cloudy:"Skyet",fog:"Tåke",hail:"Hagl",thunderstorm:"Tordenvær",partlyCloudy:"Delvis skyet",heavyRain:"Mye regn",rain:"Regn",snow:"Snø",mixedPrecip:"Blandet nedbør",sunny:"Solfylt",windy:"Vindfullt"},dn={n:"N",nne:"NNØ",ne:"NE",ene:"ØNØ",e:"Ø",ese:"ØSØ",se:"SØ",sse:"SSØ",s:"S",ssw:"SSV",sw:"SV",wsw:"VSV",w:"V",wnw:"VNV",nw:"NV",nnw:"NNV"},cn={chance_of_precipitation:"{0}% sjanse for nedbør"},hn={common:rn,editor:sn,errors:an,conditions:ln,direction:dn,card:cn},pn={version:"Versjon",invalid_configuration:"Ikkje gyldeg konfiguasjon",title:"Timelig vær",title_card:"Timevis værkort",description:"Eit kort for å gjengje verforhold kvar time som ein bar."},un={icons:"Vis ikon i staden for tekstetikettar",entity:"Entitet (obligatorisk)",name:"Namn (valfritt)",offset:"Antall prognosesegment å utligne start med (valfritt)",segments_to_show:"Antall prognosesegment som skal synast (valfritt)",label_spacing:"Antall prognosesegment til romtid og temperaturetikettar etter (valfritt)",show_wind:"Vis vindhastigheit og retning",show_precipitation_amounts:"Vis nedbørsmengde",neither:"Ingen",both:"Både",speed_only:"Kun hastigheit",direction_only:"Kun retning",barb:"Som vindmothak",show_precipitation_probability:"Vis nedbørssannsyn",none:"Ingen",speed_and_direction:"Fart og retning",barb_and_speed:"Som vindmottak og fart",barb_and_direction:"Som vindmottak og retning",barb_speed_and_direction:"Som vindmothak, hastighet og retning",show_date:"Vis datoer",all:"Alle",on_day_boundaries:"På dagsgrenser"},mn={missing_entity:"entity manglar i konfigurasjonen",must_be_int:"Må være et jevnt heiltal større enn eller lik 2",invalid_colors:"Følgande fargar i konfigurasjonen din er ugyldege:",must_be_positive_int:"Må vere eit positivt heiltal",too_many_segments_requested:"For mange prognosesegment er førespurt i num_segments. Må vere <= antall segment i prognoseeininga.",offset_must_be_positive_int:"offset må vere eit positivt heiltal",forecast_not_available:"Vervarsel er ikkje tilgjengeleg",check_entity:"Sjekk den konfigurerte prognoseeininga.",invalid_value_icon_fill:"icon_fill må enten være et positivt heltall eller et av 'single' eller 'full'"},fn={clear:"Klart",cloudy:"Skya",fog:"Tåke",hail:"Hagl",thunderstorm:"Tordenvær",partlyCloudy:"Delvis skya",heavyRain:"Mykje regn",rain:"Regn",snow:"Snø",mixedPrecip:"Blanda nedbør",sunny:"Sol",windy:"Vindfullt"},gn={n:"N",nne:"NNØ",ne:"NE",ene:"ØNØ",e:"Ø",ese:"ØSØ",se:"SØ",sse:"SSØ",s:"S",ssw:"SSV",sw:"SV",wsw:"VSV",w:"V",wnw:"VNV",nw:"NV",nnw:"NNV"},vn={chance_of_precipitation:"{0}% sjanse for nedbør"},_n={common:pn,editor:un,errors:mn,conditions:fn,direction:gn,card:vn},bn={version:"Versie",title:"Weer per uur",title_card:"Weerkaart per uur",description:"Een kaart om de weersomstandigheden per uur weer te geven als een bar.",invalid_configuration:"Ongeldige configuratie"},yn={entity:"Entiteit (Verplicht)",name:"Naam: (Optioneel)",segments_to_show:"Aantal weer te geven prognosesegmenten (Optioneel)",offset:"Aantal prognosesegmenten om mee te compenseren (Optioneel)",icons:"Pictogrammen weergeven in plaats van tekstlabels",label_spacing:"Aantal prognosesegmenten naar ruimtetijd- en temperatuurlabels per (Optioneel)",show_wind:"Toon windsnelheid en richting",show_precipitation_amounts:"Toon hoeveelheid neerslag",speed_only:"Alleen snelheid",direction_only:"Alleen richting (tekst)",barb:"Alleen richting (pijl)",show_precipitation_probability:"Neerslagkans weergeven",none:"Geen",speed_and_direction:"Snelheid en richting",barb_and_speed:"Zoals wind weerhaak en snelheid",barb_and_direction:"Als windhaak en richting",barb_speed_and_direction:"Zoals wind weerhaak, snelheid en richting",show_date:"Datums weergeven",all:"Alle",on_day_boundaries:"Op daggrenzen"},xn={missing_entity:"entiteit ontbreekt in configuratie",too_many_segments_requested:"Te veel prognosesegmenten aangevraagd in num_segments. Moet <= aantal segmenten in prognose-entiteit zijn.",must_be_int:"Moet een even geheel getal zijn groter of gelijk aan 2",invalid_colors:"De volgende kleuren in uw configuratie zijn ongeldig:",must_be_positive_int:"Moet een positief geheel getal zijn",offset_must_be_positive_int:"offset moet een positief geheel getal zijn",forecast_not_available:"Prognose niet beschikbaar",check_entity:"Controleer de geconfigureerde prognose-entiteit.",invalid_value_icon_fill:"icon_fill moet een positief geheel getal zijn of een van de 'single'; of 'full'"},wn={clear:"Helder",cloudy:"Bewolkt",fog:"Mist",hail:"Hagel",thunderstorm:"Onweersbui",partlyCloudy:"Half bewolkt",heavyRain:"Zware regen",rain:"Regen",snow:"Sneeuw",mixedPrecip:"Gemengde neerslag",sunny:"Zonnig",windy:"Winderig"},An={n:"N",nne:"NNO",ne:"NO",ene:"ONO",e:"O",ese:"OZO",se:"ZO",sse:"ZZO",s:"Z",ssw:"ZZW",sw:"ZW",wsw:"WZW",w:"W",wnw:"WNW",nw:"NW",nnw:"NNW"},$n={chance_of_precipitation:"{0}% kans op neerslag"},En={common:bn,editor:yn,errors:xn,conditions:wn,direction:An,card:$n},Cn={version:"Wersja",title:"Pogoda godzinowa",title_card:"Pogoda godzinowa",description:"Karta w formie wykresu słupkowego dla pogody godzinowej",invalid_configuration:"Nieprawiłowa konfiguracja"},Sn={entity:"Encja",name:"Nazwa (opcjonalnie)",icons:"Pokaż ikony zamiast etykiet tekstowych",offset:"Liczba segmentów prognozy, o które należy skompensować początek (opcjonalnie)",segments_to_show:"Liczba segmentów prognozy do wyświetlenia (opcjonalnie)",label_spacing:"Liczba segmentów prognozy do etykiet czasoprzestrzeni i temperatury według (opcjonalnie)",show_wind:"Pokaż prędkość i kierunek wiatru",show_precipitation_amounts:"Pokaż ilość opadów",speed_only:"Tylko prędkość",direction_only:"Tylko kierunek",barb:"Jak kolce wiatru",show_precipitation_probability:"Pokaż prawdopodobieństwo opadów",none:"Nic",speed_and_direction:"Szybkość i kierunek",barb_and_speed:"Jak kolce wiatru i prędkość",barb_and_direction:"Jako zadzior i kierunek wiatru",barb_speed_and_direction:"Jak kolce wiatru, prędkość i kierunek",show_date:"Pokaż daty",all:"Wszystko",on_day_boundaries:"Na granicach dnia"},Tn={missing_entity:"encja nie istnieje",must_be_int:"Musi być parzystą liczbą całkowitą większą lub równą 2",invalid_colors:"Następujące kolory w Twojej konfiguracji są nieprawidłowe:",must_be_positive_int:"Musi być dodatnią liczbą całkowitą",too_many_segments_requested:"Zażądano zbyt wielu segmentów prognozy w num_segments. Musi wynosić <= liczba segmentów w elemencie prognozy.",offset_must_be_positive_int:"offset musi być dodatnią liczbą całkowitą",forecast_not_available:"Prognoza niedostępna",check_entity:"Sprawdź skonfigurowaną encję prognozy.",invalid_value_icon_fill:"icon_fill musi być dodatnią liczbą całkowitą lub jedną z wartości 'single' lub 'full'"},kn={clear:"Bezchmurnie",cloudy:"Pochmurnie",fog:"Mgła",hail:"Grad",thunderstorm:"Burza",partlyCloudy:"Częściowe zachmurzenie",heavyRain:"Ulewa",rain:"Deszcz",snow:"Śnieg",mixedPrecip:"Mieszane opady",sunny:"Słonecznie",windy:"Wietrznie"},On={n:"P",nne:"PPW",ne:"PW",ene:"WPW",e:"W",ese:"WPdW",se:"PdW",sse:"PdPdW",s:"Pd",ssw:"PdPdZ",sw:"PdZ",wsw:"ZPdZ",w:"Z",wnw:"ZPZ",nw:"PZ",nnw:"PPZ"},In={chance_of_precipitation:"{0}% szans na opady"},Mn={common:Cn,editor:Sn,errors:Tn,conditions:kn,direction:On,card:In},Nn={version:"Versão",title:"Tempo de hora em hora",title_card:"Tempo de hora em hora",description:"Um cartão para mostrar as condições meteorológicas de hora em hora como uma barra.",invalid_configuration:"Configuração Inválida"},Rn={entity:"Entidade",name:"Nome (opcional)",icons:"Mostrar ícones em vez de rótulos de texto",offset:"Número de segmentos de previsão para começar a compensar (opcional)",segments_to_show:"Número de segmentos de previsão a serem exibidos (opcional)",label_spacing:"Número de segmentos de previsão para rótulos de tempo e temperatura de espaço por (opcional)",show_wind:"Mostrar velocidade e direção do vento",show_precipitation_amounts:"Mostrar quantidade de precipitação",speed_only:"Apenas velocidade",direction_only:"Apenas direção",barb:"Como farpa de vento",show_precipitation_probability:"Mostrar probabilidade de precipitação",none:"Nenhum",speed_and_direction:"Velocidade e direção",barb_and_speed:"Como farpa de vento e velocidade",barb_and_direction:"Como farpa de vento e direção",barb_speed_and_direction:"Como farpa de vento, velocidade e direção",show_date:"Mostrar datas",all:"Todos",on_day_boundaries:"Nos limites do dia"},zn={missing_entity:"A entidade não existe na configuração",must_be_int:"Deve ser um número inteiro par maior ou igual a 2",invalid_colors:"As seguintes cores em sua configuração são inválidas:",must_be_positive_int:"Deve ser um número inteiro positivo",too_many_segments_requested:"Muitos segmentos de previsão solicitados em num_segments. Deve ser <= número de segmentos na entidade de previsão.",offset_must_be_positive_int:"offset deve ser um número inteiro positivo",forecast_not_available:"Previsão não disponível",check_entity:"Verifique a entidade de previsão configurada.",invalid_value_icon_fill:"icon_fill deve ser um número inteiro positivo ou um dos valores 'single' ou 'full'"},Ln={clear:"Limpo",cloudy:"Nublado",fog:"Nevoeiro",hail:"Granizo",thunderstorm:"Trovoada",partlyCloudy:"Pouco nublado",heavyRain:"Chuva forte",rain:"Chuva",snow:"Neve",mixedPrecip:"Precipitação mista",sunny:"Sol",windy:"Vento"},Hn={n:"N",nne:"NNE",ne:"NE",ene:"ENE",e:"E",ese:"ESE",se:"SE",sse:"SSE",s:"S",ssw:"SSO",sw:"SO",wsw:"OSO",w:"O",wnw:"ONO",nw:"NO",nnw:"NNO"},Pn={chance_of_precipitation:"{0}% chance de chuva"},Dn={common:Nn,editor:Rn,errors:zn,conditions:Ln,direction:Hn,card:Pn},Vn={version:"Versão",title:"Tempo de hora em hora",title_card:"Cartão meteorológico por hora",description:"Um cartão para renderizar as condições climáticas horárias como uma barra.",invalid_configuration:"Configuração inválida"},Fn={entity:"Entidade (obrigatório)",name:"Nome (opcional)",segments_to_show:"Número de segmentos de previsão a serem exibidos (opcional)",offset:"Número de segmentos de previsão para começar a compensar (opcional)",icons:"Mostrar ícones em vez de rótulos de texto",label_spacing:"Número de segmentos de previsão para rótulos de tempo e temperatura de espaço por (opcional)",show_wind:"Mostrar velocidade e direção do vento",show_precipitation_amounts:"Mostrar quantidade de precipitação",neither:"Nenhum",both:"Ambos",speed_only:"Apenas velocidade",direction_only:"Apenas direção",barb:"Como farpa de vento",show_precipitation_probability:"Mostrar probabilidade de precipitação",none:"Nenhum",speed_and_direction:"Velocidade e direção",barb_and_speed:"Como farpa de vento e velocidade",barb_and_direction:"Como farpa de vento e direção",barb_speed_and_direction:"Como farpa de vento, velocidade e direção",show_date:"Mostrar datas",all:"Todos",on_day_boundaries:"Nos limites do dia"},Bn={missing_entity:"entidade está faltando na configuração",too_many_segments_requested:"Muitos segmentos de previsão solicitados em num_segments. Deve ser <= número de segmentos na entidade de previsão.",must_be_int:"Deve ser um número inteiro par maior ou igual a 2",invalid_colors:"As seguintes cores em sua configuração são inválidas:",must_be_positive_int:"Deve ser um número inteiro positivo",offset_must_be_positive_int:"offset deve ser um número inteiro positivo",forecast_not_available:"Previsão não disponível",check_entity:"Verifique a entidade de previsão configurada.",invalid_value_icon_fill:"icon_fill deve ser um número inteiro positivo ou um dos valores 'single' ou 'full'"},Un={clear:"Claro",cloudy:"Nublado",fog:"Névoa",hail:"Granizo",thunderstorm:"Tempestade",partlyCloudy:"Parcialmente nublado",heavyRain:"Chuva pesada",rain:"Chuva",snow:"Neve",mixedPrecip:"Precipitação mista",sunny:"Ensolarado",windy:"Ventania"},jn={n:"N",nne:"NNE",ne:"NE",ene:"ENE",e:"E",ese:"ESE",se:"SE",sse:"SSE",s:"S",ssw:"SSO",sw:"SO",wsw:"OSO",w:"O",wnw:"ONO",nw:"NO",nnw:"NNO"},Wn={chance_of_precipitation:"{0}% chance de precipitação"},qn={common:Vn,editor:Fn,errors:Bn,conditions:Un,direction:jn,card:Wn},Gn={version:"Версия",title:"Почасовая погода",title_card:"Карточка почасовой погоды",description:"Карточка для отображения почасовых условий погоды в виде полосы.",invalid_configuration:"Недопустимая конфигурация"},Xn={entity:"Сущность (Обязательно)",name:"Название (По желанию)",segments_to_show:"Количество отображаемых сегментов (По желанию)",offset:"Количество сегментов для смещения (По желанию)",icons:"Отображать значки вместо текстовых меток",label_spacing:"Количество сегментов для размещения временных и температурных меток (По желанию)",show_wind:"Отображать скорость и направление ветра",show_date:"Отображать даты",show_precipitation_amounts:"Отображать количество осадков",show_precipitation_probability:"Отображать вероятность осадков",none:"Нет",speed_and_direction:"Скорость и направление",speed_only:"Только скорость",direction_only:"Только направление",barb:"Как ветровой флажок",barb_and_speed:"Как ветровой флажок и скорость",barb_and_direction:"Как ветровой флажок и направление",barb_speed_and_direction:"Как ветровой флажок, скорость и направление",all:"Все",on_day_boundaries:"На границах дня"},Kn={missing_entity:"Отсутствует сущность в конфигурации",too_many_segments_requested:"Запрошено слишком много сегментов в num_segments. Должно быть <= количества сегментов в сущности прогноза.",must_be_int:"Должно быть четным целым числом, большим или равным 2",invalid_colors:"Следующие цвета в вашей конфигурации недопустимы:",must_be_positive_int:"Должно быть положительным целым числом",offset_must_be_positive_int:"Смещение должно быть положительным целым числом",forecast_not_available:"Прогноз недоступен",check_entity:"Проверьте настроенную сущность прогноза.",invalid_value_icon_fill:"icon_fill должен быть либо положительным целым числом, либо одним из значений 'single' или 'full'"},Yn={clear:"Ясно",cloudy:"Облачно",fog:"Туман",hail:"Град",thunderstorm:"Гроза",partlyCloudy:"Частичная облачность",heavyRain:"Сильный дождь",rain:"Дождь",snow:"Снег",mixedPrecip:"Смешанные осадки",sunny:"Солнечно",windy:"Ветрено"},Zn={n:"С",nne:"ССВ",ne:"СВ",ene:"ВСВ",e:"В",ese:"ВЮВ",se:"ЮВ",sse:"ЮЮВ",s:"Ю",ssw:"ЮЮЗ",sw:"ЮЗ",wsw:"ЗЮЗ",w:"З",wnw:"ЗСЗ",nw:"СЗ",nnw:"ССЗ"},Jn={chance_of_precipitation:"Вероятность осадков: {0}%"},Qn={common:Gn,editor:Xn,errors:Kn,conditions:Yn,direction:Zn,card:Jn},eo={version:"Verzia",title:"Hodinové počasie",title_card:"Hodinové Weather Card",description:"Karta na vykreslenie hodinových poveternostných podmienok ako pruh.",invalid_configuration:"Neplatná konfigurácia"},to={entity:"Entita (požadovaná)",name:"Názov (voliteľné)",segments_to_show:"Počet segmentov prognózy, ktoré sa majú zobraziť (voliteľné)",offset:"Počet segmentov prognózy, o ktoré sa má začať kompenzácia (voliteľné)",icons:"Zobrazovať ikony namiesto textových štítkov",label_spacing:"Počet segmentov predpovede na štítky časopriestoru a teploty podľa (voliteľné)",show_wind:"Zobraziť rýchlosť a smer vetra",show_precipitation_amounts:"Zobraziť množstvo zrážok",show_precipitation_probability:"Zobraziť pravdepodobnosť zrážok",none:"Nič",speed_and_direction:"Rýchlosť a smer",speed_only:"Len rýchlosť",direction_only:"Len smer",barb:"Ako veterný osteň",barb_and_speed:"Ako veterný osteň a rýchlosť",barb_and_direction:"Ako veterný osteň a smer",barb_speed_and_direction:"Ako veterný osteň, rýchlosť a smer",show_date:"Zobraziť dátumy",all:"Všetky",on_day_boundaries:"Na hraniciach dňa"},io={missing_entity:"v konfigurácii chýba entita",too_many_segments_requested:"Príliš veľa segmentov prognózy požadovaných v num_segments. Musí byť <= počet segmentov v entite prognózy.",must_be_int:"Musí byť párne celé číslo väčšie alebo rovné 2",invalid_colors:"Nasledujúce farby vo vašej konfigurácii sú neplatné:",must_be_positive_int:"Musí to byť kladné celé číslo",offset_must_be_positive_int:"offset musí byť kladné celé číslo",forecast_not_available:"Predpoveď nie je k dispozícii",check_entity:"Skontrolujte nakonfigurovanú entitu predpovede.",invalid_value_icon_fill:"icon_fill musí byť buď kladné celé číslo alebo jedno z 'single'; alebo 'full';"},no={clear:"Čisté",cloudy:"Zamračené",fog:"Hmla",hail:"Ľadovec",thunderstorm:"Búrka",partlyCloudy:"Čiastočne zamračené",heavyRain:"Hustý dážď",rain:"Dážď",snow:"Sneh",mixedPrecip:"Zmiešené",sunny:"Slnečno",windy:"Veterno"},oo={n:"S",nne:"SSV",ne:"SV",ene:"VSV",e:"V",ese:"VJV",se:"JV",sse:"JJV",s:"J",ssw:"JJZ",sw:"JZ",wsw:"ZJZ",w:"Z",wnw:"ZSZ",nw:"SZ",nnw:"SSZ"},ro={chance_of_precipitation:"{0}% možnosť zrážok"},so={common:eo,editor:to,errors:io,conditions:no,direction:oo,card:ro},ao={version:"Sürüm",title:"Saatlik Hava Durumu",title_card:"Saatlik Hava Durumu Kartı",description:"Saatlik hava koşullarını çubuk grafik olarak gösteren bir kart.",invalid_configuration:"Geçersiz yapılandırma"},lo={entity:"Varlık (Zorunlu)",name:"Ad (İsteğe bağlı)",segments_to_show:"Gösterilecek tahmin dilimi sayısı (İsteğe bağlı)",offset:"Başlangıcı öteleme sayısı (İsteğe bağlı)",icons:"Metin etiketleri yerine simgeleri göster",label_spacing:"Zaman ve sıcaklık etiketlerinin aralık sayısı (İsteğe bağlı)",show_wind:"Rüzgar hızı ve yönünü göster",show_date:"Tarihleri göster",show_precipitation_amounts:"Yağış miktarını göster",show_precipitation_probability:"Yağış olasılığını göster",none:"Yok",speed_and_direction:"Hız ve yön",speed_only:"Sadece hız",direction_only:"Sadece yön",barb:"Rüzgar oku olarak",barb_and_speed:"Rüzgar oku ve hız olarak",barb_and_direction:"Rüzgar oku ve yön olarak",barb_speed_and_direction:"Rüzgar oku, hız ve yön olarak",all:"Tümü",on_day_boundaries:"Gün sınırlarında"},co={missing_entity:"Yapılandırmada varlık eksik",too_many_segments_requested:"İstenen tahmin dilimi sayısı çok fazla. num_segments değeri, tahmin varlığındaki dilim sayısından fazla olamaz.",must_be_int:"2 veya daha büyük çift bir tam sayı olmalı",invalid_colors:"Yapılandırmanızdaki geçersiz renkler:",must_be_positive_int:"Pozitif bir tam sayı olmalı",offset_must_be_positive_int:"offset pozitif bir tam sayı olmalı",forecast_not_available:"Tahmin mevcut değil",check_entity:"Yapılandırılmış tahmin varlığını kontrol edin.",invalid_value_icon_fill:"icon_fill değeri pozitif bir tam sayı ya da 'single' veya 'full' olmalıdır"},ho={clear:"Açık",cloudy:"Bulutlu",fog:"Sisli",hail:"Dolu",thunderstorm:"Gök gürültülü fırtına",partlyCloudy:"Parçalı bulutlu",heavyRain:"Şiddetli yağmur",rain:"Yağmur",snow:"Kar",mixedPrecip:"Karışık yağış",sunny:"Güneşli",windy:"Rüzgarlı"},po={n:"K",nne:"KKB",ne:"KB",ene:"DKB",e:"D",ese:"DGD",se:"GD",sse:"GGB",s:"G",ssw:"GGB",sw:"GB",wsw:"BGB",w:"B",wnw:"BKB",nw:"KB",nnw:"KKB"},uo={chance_of_precipitation:"%{0} yağış olasılığı"},mo={common:ao,editor:lo,errors:co,conditions:ho,direction:po,card:uo},fo={version:"Версія",title:"Погодинний прогноз погоди",title_card:"Картка погодинного прогнозу погоди",description:"Картка для відображення погодинних умов погоди у вигляді діаграми.",invalid_configuration:"Недійсна конфігурація"},go={entity:"Сутність (Обов'язково)",name:"Назва (Необов'язково)",segments_to_show:"Кількість сегментів прогнозу для показу (Необов'язково)",offset:"Кількість сегментів прогнозу для зміщення початку (Необов'язково)",icons:"Показувати іконки замість текстових міток",label_spacing:"Кількість сегментів прогнозу для інтервалу між мітками часу та температури (Необов'язково)",show_wind:"Показувати швидкість та напрямок вітру",show_date:"Показувати дати",show_precipitation_amounts:"Показувати кількість опадів",show_precipitation_probability:"Показувати ймовірність опадів",none:"Нічого",speed_and_direction:"Швидкість та напрямок",speed_only:"Тільки швидкість",direction_only:"Тільки напрямок",barb:"Як вітровий вимпел",barb_and_speed:"Як вітровий вимпел та швидкість",barb_and_direction:"Як вітровий вимпел та напрямок",barb_speed_and_direction:"Як вітровий вимпел, швидкість та напрямок",all:"Все",on_day_boundaries:"На межах днів"},vo={missing_entity:"відсутня сутність в конфігурації",too_many_segments_requested:"Запитано забагато сегментів прогнозу в num_segments. Має бути <= кількості сегментів в сутності прогнозу.",must_be_int:"Має бути парним цілим числом більшим або рівним 2",invalid_colors:"Наступні кольори у вашій конфігурації недійсні:",must_be_positive_int:"Має бути додатнім цілим числом",offset_must_be_positive_int:"offset має бути додатнім цілим числом",forecast_not_available:"Прогноз недоступний",check_entity:"Перевірте налаштовану сутність прогнозу.",invalid_value_icon_fill:"icon_fill має бути додатнім цілим числом або одним з 'single' чи 'full'"},_o={clear:"Ясно",cloudy:"Хмарно",fog:"Туман",hail:"Град",thunderstorm:"Гроза",partlyCloudy:"Частково хмарно",heavyRain:"Сильний дощ",rain:"Дощ",snow:"Сніг",mixedPrecip:"Змішані опади",sunny:"Сонячно",windy:"Вітряно"},bo={n:"Пн",nne:"ПнПнСх",ne:"ПнСх",ene:"СхПнСх",e:"Сх",ese:"СхПдСх",se:"ПдСх",sse:"ПдПдСх",s:"Пд",ssw:"ПдПдЗх",sw:"ПдЗх",wsw:"ЗхПдЗх",w:"Зх",wnw:"ЗхПнЗх",nw:"ПнЗх",nnw:"ПнПнЗх"},yo={chance_of_precipitation:"{0}% ймовірність опадів"},xo={common:fo,editor:go,errors:vo,conditions:_o,direction:bo,card:yo},wo={version:"版本",title:"逐小时天气",title_card:"逐小时天气卡片",description:"一个用于显示逐小时天气状况的卡片。",invalid_configuration:"无效的配置"},Ao={entity:"实体(必需)",name:"名称(可选)",segments_to_show:"显示的预测段数(可选)",offset:"开始的预测段偏移数(可选)",icons:"显示图标而非文字标签",label_spacing:"时间和温度标签的预测段间距数(可选)",show_wind:"显示风速和风向",show_date:"显示日期",show_precipitation_amounts:"显示降雨量",show_precipitation_probability:"显示降雨概率",none:"无",speed_and_direction:"速度和方向",speed_only:"仅速度",direction_only:"仅方向",barb:"风向图标",barb_and_speed:"风向图标和速度",barb_and_direction:"风向图标和方向",barb_speed_and_direction:"风向图标,速度和方向",all:"全部",on_day_boundaries:"在日边界上"},$o={missing_entity:"配置中缺少实体",too_many_segments_requested:"在num_segments中请求的预测段过多。必须 <= 预测实体中的段数。",must_be_int:"必须是大于或等于2的偶数",invalid_colors:"配置中的以下颜色无效:",must_be_positive_int:"必须是正整数",offset_must_be_positive_int:"偏移必须是正整数",forecast_not_available:"预测不可用",check_entity:"检查配置的预测实体。",invalid_value_icon_fill:"icon_fill 必须是正整数,或者是'single'或'full'之一"},Eo={clear:"晴朗",cloudy:"多云",fog:"雾",hail:"冰雹",thunderstorm:"雷暴",partlyCloudy:"局部多云",heavyRain:"大雨",rain:"雨",snow:"雪",mixedPrecip:"雨夹雪",sunny:"晴天",windy:"有风"},Co={n:"北",nne:"北偏东",ne:"东北",ene:"东偏北",e:"东",ese:"东偏南",se:"东南",sse:"南偏东",s:"南",ssw:"南偏西",sw:"西南",wsw:"西偏南",w:"西",wnw:"西偏北",nw:"西北",nnw:"北偏西"},So={chance_of_precipitation:"{0}%的降雨概率"},To={common:wo,editor:Ao,errors:$o,conditions:Eo,direction:Co,card:So};const ko={bg:Object.freeze({__proto__:null,common:Kt,editor:Yt,errors:Zt,conditions:Jt,direction:Qt,card:ei,default:ti}),cs:Object.freeze({__proto__:null,common:ii,editor:ni,errors:oi,conditions:ri,direction:si,card:ai,default:li}),da:Object.freeze({__proto__:null,common:di,editor:ci,errors:hi,conditions:pi,direction:ui,card:mi,default:fi}),de:Object.freeze({__proto__:null,common:gi,editor:vi,errors:_i,conditions:bi,direction:yi,card:xi,default:wi}),en:Object.freeze({__proto__:null,common:Ai,editor:$i,errors:Ei,conditions:Ci,direction:Si,card:Ti,default:ki}),es:Object.freeze({__proto__:null,common:Oi,editor:Ii,errors:Mi,conditions:Ni,direction:Ri,card:zi,default:Li}),fr:Object.freeze({__proto__:null,common:Hi,editor:Pi,errors:Di,conditions:Vi,direction:Fi,card:Bi,default:Ui}),hu:Object.freeze({__proto__:null,common:ji,editor:Wi,errors:qi,conditions:Gi,direction:Xi,card:Ki,default:Yi}),it:Object.freeze({__proto__:null,common:Zi,editor:Ji,errors:Qi,conditions:en,direction:tn,card:nn,default:on}),nb:Object.freeze({__proto__:null,common:rn,editor:sn,errors:an,conditions:ln,direction:dn,card:cn,default:hn}),nn_NO:Object.freeze({__proto__:null,common:pn,editor:un,errors:mn,conditions:fn,direction:gn,card:vn,default:_n}),nl:Object.freeze({__proto__:null,common:bn,editor:yn,errors:xn,conditions:wn,direction:An,card:$n,default:En}),pl:Object.freeze({__proto__:null,common:Cn,editor:Sn,errors:Tn,conditions:kn,direction:On,card:In,default:Mn}),pt:Object.freeze({__proto__:null,common:Nn,editor:Rn,errors:zn,conditions:Ln,direction:Hn,card:Pn,default:Dn}),pt_BR:Object.freeze({__proto__:null,common:Vn,editor:Fn,errors:Bn,conditions:Un,direction:jn,card:Wn,default:qn}),ru:Object.freeze({__proto__:null,common:Gn,editor:Xn,errors:Kn,conditions:Yn,direction:Zn,card:Jn,default:Qn}),sk:Object.freeze({__proto__:null,common:eo,editor:to,errors:io,conditions:no,direction:oo,card:ro,default:so}),tr:Object.freeze({__proto__:null,common:ao,editor:lo,errors:co,conditions:ho,direction:po,card:uo,default:mo}),uk:Object.freeze({__proto__:null,common:fo,editor:go,errors:vo,conditions:_o,direction:bo,card:yo,default:xo}),zh:Object.freeze({__proto__:null,common:wo,editor:Ao,errors:$o,conditions:Eo,direction:Co,card:So,default:To})};function Oo(e,t){return function(i,n="",o=""){const r=(e||localStorage.getItem("selectedLanguage")||t||"en").replace(/['"]+/g,"").replace("-","_");let s;try{s=i.split(".").reduce(((e,t)=>e[t]),ko[r])}catch(e){s=i.split(".").reduce(((e,t)=>e[t]),ko.en)}return void 0===s&&(s=i.split(".").reduce(((e,t)=>e[t]),ko.en)),""!==n&&""!==o&&(s=s.replace(n,o)),s}}
|
||
/**
|
||
* @license
|
||
* Copyright 2018 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/const Io="important",Mo=" !"+Io,No=St(class extends Tt{constructor(e){if(super(e),e.type!==Et||"style"!==e.name||e.strings?.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+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`}),"")}update(e,[t]){const{style:i}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(t)),this.render(t);for(const e of this.ft)null==t[e]&&(this.ft.delete(e),e.includes("-")?i.removeProperty(e):i[e]=null);for(const e in t){const n=t[e];if(null!=n){this.ft.add(e);const t="string"==typeof n&&n.endsWith(Mo);e.includes("-")||t?i.setProperty(e,t?n.slice(0,-11):n,t?Io:""):i[e]=n}}return Re}});var Ro="top",zo="bottom",Lo="right",Ho="left",Po="auto",Do=[Ro,zo,Lo,Ho],Vo="start",Fo="end",Bo="clippingParents",Uo="viewport",jo="popper",Wo="reference",qo=Do.reduce((function(e,t){return e.concat([t+"-"+Vo,t+"-"+Fo])}),[]),Go=[].concat(Do,[Po]).reduce((function(e,t){return e.concat([t,t+"-"+Vo,t+"-"+Fo])}),[]),Xo=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ko(e){return e?(e.nodeName||"").toLowerCase():null}function Yo(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zo(e){return e instanceof Yo(e).Element||e instanceof Element}function Jo(e){return e instanceof Yo(e).HTMLElement||e instanceof HTMLElement}function Qo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Yo(e).ShadowRoot||e instanceof ShadowRoot)}var er={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];Jo(o)&&Ko(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});Jo(n)&&Ko(n)&&(Object.assign(n.style,r),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};function tr(e){return e.split("-")[0]}var ir=Math.max,nr=Math.min,or=Math.round;function rr(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function sr(){return!/^((?!chrome|android).)*safari/i.test(rr())}function ar(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),o=1,r=1;t&&Jo(e)&&(o=e.offsetWidth>0&&or(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&or(n.height)/e.offsetHeight||1);var s=(Zo(e)?Yo(e):window).visualViewport,a=!sr()&&i,l=(n.left+(a&&s?s.offsetLeft:0))/o,d=(n.top+(a&&s?s.offsetTop:0))/r,c=n.width/o,h=n.height/r;return{width:c,height:h,top:d,right:l+c,bottom:d+h,left:l,x:l,y:d}}function lr(e){var t=ar(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function dr(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Qo(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function cr(e){return Yo(e).getComputedStyle(e)}function hr(e){return["table","td","th"].indexOf(Ko(e))>=0}function pr(e){return((Zo(e)?e.ownerDocument:e.document)||window.document).documentElement}function ur(e){return"html"===Ko(e)?e:e.assignedSlot||e.parentNode||(Qo(e)?e.host:null)||pr(e)}function mr(e){return Jo(e)&&"fixed"!==cr(e).position?e.offsetParent:null}function fr(e){for(var t=Yo(e),i=mr(e);i&&hr(i)&&"static"===cr(i).position;)i=mr(i);return i&&("html"===Ko(i)||"body"===Ko(i)&&"static"===cr(i).position)?t:i||function(e){var t=/firefox/i.test(rr());if(/Trident/i.test(rr())&&Jo(e)&&"fixed"===cr(e).position)return null;var i=ur(e);for(Qo(i)&&(i=i.host);Jo(i)&&["html","body"].indexOf(Ko(i))<0;){var n=cr(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}function gr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vr(e,t,i){return ir(e,nr(t,i))}function _r(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function br(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}var yr={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,o=e.options,r=i.elements.arrow,s=i.modifiersData.popperOffsets,a=tr(i.placement),l=gr(a),d=[Ho,Lo].indexOf(a)>=0?"height":"width";if(r&&s){var c=function(e,t){return _r("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:br(e,Do))}(o.padding,i),h=lr(r),p="y"===l?Ro:Ho,u="y"===l?zo:Lo,m=i.rects.reference[d]+i.rects.reference[l]-s[l]-i.rects.popper[d],f=s[l]-i.rects.reference[l],g=fr(r),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,_=m/2-f/2,b=c[p],y=v-h[d]-c[u],x=v/2-h[d]/2+_,w=vr(b,x,y),A=l;i.modifiersData[n]=((t={})[A]=w,t.centerOffset=w-x,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&dr(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xr(e){return e.split("-")[1]}var wr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ar(e){var t,i=e.popper,n=e.popperRect,o=e.placement,r=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,h=e.isFixed,p=s.x,u=void 0===p?0:p,m=s.y,f=void 0===m?0:m,g="function"==typeof c?c({x:u,y:f}):{x:u,y:f};u=g.x,f=g.y;var v=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),b=Ho,y=Ro,x=window;if(d){var w=fr(i),A="clientHeight",$="clientWidth";if(w===Yo(i)&&"static"!==cr(w=pr(i)).position&&"absolute"===a&&(A="scrollHeight",$="scrollWidth"),o===Ro||(o===Ho||o===Lo)&&r===Fo)y=zo,f-=(h&&w===x&&x.visualViewport?x.visualViewport.height:w[A])-n.height,f*=l?1:-1;if(o===Ho||(o===Ro||o===zo)&&r===Fo)b=Lo,u-=(h&&w===x&&x.visualViewport?x.visualViewport.width:w[$])-n.width,u*=l?1:-1}var E,C=Object.assign({position:a},d&&wr),S=!0===c?function(e,t){var i=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:or(i*o)/o||0,y:or(n*o)/o||0}}({x:u,y:f},Yo(i)):{x:u,y:f};return u=S.x,f=S.y,l?Object.assign({},C,((E={})[y]=_?"0":"",E[b]=v?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+u+"px, "+f+"px)":"translate3d("+u+"px, "+f+"px, 0)",E)):Object.assign({},C,((t={})[y]=_?f+"px":"",t[b]=v?u+"px":"",t.transform="",t))}var $r={passive:!0};var Er={left:"right",right:"left",bottom:"top",top:"bottom"};function Cr(e){return e.replace(/left|right|bottom|top/g,(function(e){return Er[e]}))}var Sr={start:"end",end:"start"};function Tr(e){return e.replace(/start|end/g,(function(e){return Sr[e]}))}function kr(e){var t=Yo(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Or(e){return ar(pr(e)).left+kr(e).scrollLeft}function Ir(e){var t=cr(e),i=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function Mr(e){return["html","body","#document"].indexOf(Ko(e))>=0?e.ownerDocument.body:Jo(e)&&Ir(e)?e:Mr(ur(e))}function Nr(e,t){var i;void 0===t&&(t=[]);var n=Mr(e),o=n===(null==(i=e.ownerDocument)?void 0:i.body),r=Yo(n),s=o?[r].concat(r.visualViewport||[],Ir(n)?n:[]):n,a=t.concat(s);return o?a:a.concat(Nr(ur(s)))}function Rr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zr(e,t,i){return t===Uo?Rr(function(e,t){var i=Yo(e),n=pr(e),o=i.visualViewport,r=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var d=sr();(d||!d&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+Or(e),y:l}}(e,i)):Zo(t)?function(e,t){var i=ar(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):Rr(function(e){var t,i=pr(e),n=kr(e),o=null==(t=e.ownerDocument)?void 0:t.body,r=ir(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ir(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Or(e),l=-n.scrollTop;return"rtl"===cr(o||i).direction&&(a+=ir(i.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(pr(e)))}function Lr(e,t,i,n){var o="clippingParents"===t?function(e){var t=Nr(ur(e)),i=["absolute","fixed"].indexOf(cr(e).position)>=0&&Jo(e)?fr(e):e;return Zo(i)?t.filter((function(e){return Zo(e)&&dr(e,i)&&"body"!==Ko(e)})):[]}(e):[].concat(t),r=[].concat(o,[i]),s=r[0],a=r.reduce((function(t,i){var o=zr(e,i,n);return t.top=ir(o.top,t.top),t.right=nr(o.right,t.right),t.bottom=nr(o.bottom,t.bottom),t.left=ir(o.left,t.left),t}),zr(e,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Hr(e){var t,i=e.reference,n=e.element,o=e.placement,r=o?tr(o):null,s=o?xr(o):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case Ro:t={x:a,y:i.y-n.height};break;case zo:t={x:a,y:i.y+i.height};break;case Lo:t={x:i.x+i.width,y:l};break;case Ho:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var d=r?gr(r):null;if(null!=d){var c="y"===d?"height":"width";switch(s){case Vo:t[d]=t[d]-(i[c]/2-n[c]/2);break;case Fo:t[d]=t[d]+(i[c]/2-n[c]/2)}}return t}function Pr(e,t){void 0===t&&(t={});var i=t,n=i.placement,o=void 0===n?e.placement:n,r=i.strategy,s=void 0===r?e.strategy:r,a=i.boundary,l=void 0===a?Bo:a,d=i.rootBoundary,c=void 0===d?Uo:d,h=i.elementContext,p=void 0===h?jo:h,u=i.altBoundary,m=void 0!==u&&u,f=i.padding,g=void 0===f?0:f,v=_r("number"!=typeof g?g:br(g,Do)),_=p===jo?Wo:jo,b=e.rects.popper,y=e.elements[m?_:p],x=Lr(Zo(y)?y:y.contextElement||pr(e.elements.popper),l,c,s),w=ar(e.elements.reference),A=Hr({reference:w,element:b,strategy:"absolute",placement:o}),$=Rr(Object.assign({},b,A)),E=p===jo?$:w,C={top:x.top-E.top+v.top,bottom:E.bottom-x.bottom+v.bottom,left:x.left-E.left+v.left,right:E.right-x.right+v.right},S=e.modifiersData.offset;if(p===jo&&S){var T=S[o];Object.keys(C).forEach((function(e){var t=[Lo,zo].indexOf(e)>=0?1:-1,i=[Ro,zo].indexOf(e)>=0?"y":"x";C[e]+=T[i]*t}))}return C}function Dr(e,t){void 0===t&&(t={});var i=t,n=i.placement,o=i.boundary,r=i.rootBoundary,s=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,d=void 0===l?Go:l,c=xr(n),h=c?a?qo:qo.filter((function(e){return xr(e)===c})):Do,p=h.filter((function(e){return d.indexOf(e)>=0}));0===p.length&&(p=h);var u=p.reduce((function(t,i){return t[i]=Pr(e,{placement:i,boundary:o,rootBoundary:r,padding:s})[tr(i)],t}),{});return Object.keys(u).sort((function(e,t){return u[e]-u[t]}))}var Vr={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=i.mainAxis,r=void 0===o||o,s=i.altAxis,a=void 0===s||s,l=i.fallbackPlacements,d=i.padding,c=i.boundary,h=i.rootBoundary,p=i.altBoundary,u=i.flipVariations,m=void 0===u||u,f=i.allowedAutoPlacements,g=t.options.placement,v=tr(g),_=l||(v===g||!m?[Cr(g)]:function(e){if(tr(e)===Po)return[];var t=Cr(e);return[Tr(e),t,Tr(t)]}(g)),b=[g].concat(_).reduce((function(e,i){return e.concat(tr(i)===Po?Dr(t,{placement:i,boundary:c,rootBoundary:h,padding:d,flipVariations:m,allowedAutoPlacements:f}):i)}),[]),y=t.rects.reference,x=t.rects.popper,w=new Map,A=!0,$=b[0],E=0;E<b.length;E++){var C=b[E],S=tr(C),T=xr(C)===Vo,k=[Ro,zo].indexOf(S)>=0,O=k?"width":"height",I=Pr(t,{placement:C,boundary:c,rootBoundary:h,altBoundary:p,padding:d}),M=k?T?Lo:Ho:T?zo:Ro;y[O]>x[O]&&(M=Cr(M));var N=Cr(M),R=[];if(r&&R.push(I[S]<=0),a&&R.push(I[M]<=0,I[N]<=0),R.every((function(e){return e}))){$=C,A=!1;break}w.set(C,R)}if(A)for(var z=function(e){var t=b.find((function(t){var i=w.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return $=t,"break"},L=m?3:1;L>0;L--){if("break"===z(L))break}t.placement!==$&&(t.modifiersData[n]._skip=!0,t.placement=$,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Fr(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Br(e){return[Ro,Lo,zo,Ho].some((function(t){return e[t]>=0}))}var Ur={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,o=i.offset,r=void 0===o?[0,0]:o,s=Go.reduce((function(e,i){return e[i]=function(e,t,i){var n=tr(e),o=[Ho,Ro].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign({},t,{placement:e})):i,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[Ho,Lo].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}(i,t.rects,r),e}),{}),a=s[t.placement],l=a.x,d=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=s}};var jr={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,o=i.mainAxis,r=void 0===o||o,s=i.altAxis,a=void 0!==s&&s,l=i.boundary,d=i.rootBoundary,c=i.altBoundary,h=i.padding,p=i.tether,u=void 0===p||p,m=i.tetherOffset,f=void 0===m?0:m,g=Pr(t,{boundary:l,rootBoundary:d,padding:h,altBoundary:c}),v=tr(t.placement),_=xr(t.placement),b=!_,y=gr(v),x="x"===y?"y":"x",w=t.modifiersData.popperOffsets,A=t.rects.reference,$=t.rects.popper,E="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,C="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(w){if(r){var k,O="y"===y?Ro:Ho,I="y"===y?zo:Lo,M="y"===y?"height":"width",N=w[y],R=N+g[O],z=N-g[I],L=u?-$[M]/2:0,H=_===Vo?A[M]:$[M],P=_===Vo?-$[M]:-A[M],D=t.elements.arrow,V=u&&D?lr(D):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=F[O],U=F[I],j=vr(0,A[M],V[M]),W=b?A[M]/2-L-j-B-C.mainAxis:H-j-B-C.mainAxis,q=b?-A[M]/2+L+j+U+C.mainAxis:P+j+U+C.mainAxis,G=t.elements.arrow&&fr(t.elements.arrow),X=G?"y"===y?G.clientTop||0:G.clientLeft||0:0,K=null!=(k=null==S?void 0:S[y])?k:0,Y=N+q-K,Z=vr(u?nr(R,N+W-K-X):R,N,u?ir(z,Y):z);w[y]=Z,T[y]=Z-N}if(a){var J,Q="x"===y?Ro:Ho,ee="x"===y?zo:Lo,te=w[x],ie="y"===x?"height":"width",ne=te+g[Q],oe=te-g[ee],re=-1!==[Ro,Ho].indexOf(v),se=null!=(J=null==S?void 0:S[x])?J:0,ae=re?ne:te-A[ie]-$[ie]-se+C.altAxis,le=re?te+A[ie]+$[ie]-se-C.altAxis:oe,de=u&&re?function(e,t,i){var n=vr(e,t,i);return n>i?i:n}(ae,te,le):vr(u?ae:ne,te,u?le:oe);w[x]=de,T[x]=de-te}t.modifiersData[n]=T}},requiresIfExists:["offset"]};function Wr(e,t,i){void 0===i&&(i=!1);var n,o,r=Jo(t),s=Jo(t)&&function(e){var t=e.getBoundingClientRect(),i=or(t.width)/e.offsetWidth||1,n=or(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),a=pr(t),l=ar(e,s,i),d={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!i)&&(("body"!==Ko(t)||Ir(a))&&(d=(n=t)!==Yo(n)&&Jo(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:kr(n)),Jo(t)?((c=ar(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Or(a))),{x:l.left+d.scrollLeft-c.x,y:l.top+d.scrollTop-c.y,width:l.width,height:l.height}}function qr(e){var t=new Map,i=new Set,n=[];function o(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||o(e)})),n}function Gr(e){var t;return function(){return t||(t=new Promise((function(i){Promise.resolve().then((function(){t=void 0,i(e())}))}))),t}}var Xr={placement:"bottom",modifiers:[],strategy:"absolute"};function Kr(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Yr(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,o=t.defaultOptions,r=void 0===o?Xr:o;return function(e,t,i){void 0===i&&(i=r);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xr,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],a=!1,l={state:o,setOptions:function(i){var a="function"==typeof i?i(o.options):i;d(),o.options=Object.assign({},r,o.options,a),o.scrollParents={reference:Zo(e)?Nr(e):e.contextElement?Nr(e.contextElement):[],popper:Nr(t)};var c,h,p=function(e){var t=qr(e);return Xo.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((c=[].concat(n,o.options.modifiers),h=c.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{}),Object.keys(h).map((function(e){return h[e]}))));return o.orderedModifiers=p.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,r=e.effect;if("function"==typeof r){var a=r({state:o,name:t,instance:l,options:n}),d=function(){};s.push(a||d)}})),l.update()},forceUpdate:function(){if(!a){var e=o.elements,t=e.reference,i=e.popper;if(Kr(t,i)){o.rects={reference:Wr(t,fr(i),"fixed"===o.options.strategy),popper:lr(i)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var r=o.orderedModifiers[n],s=r.fn,d=r.options,c=void 0===d?{}:d,h=r.name;"function"==typeof s&&(o=s({state:o,options:c,name:h,instance:l})||o)}else o.reset=!1,n=-1}}},update:Gr((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){d(),a=!0}};if(!Kr(e,t))return l;function d(){s.forEach((function(e){return e()})),s=[]}return l.setOptions(i).then((function(e){!a&&i.onFirstUpdate&&i.onFirstUpdate(e)})),l}}var Zr=Yr({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,o=n.scroll,r=void 0===o||o,s=n.resize,a=void 0===s||s,l=Yo(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&d.forEach((function(e){e.addEventListener("scroll",i.update,$r)})),a&&l.addEventListener("resize",i.update,$r),function(){r&&d.forEach((function(e){e.removeEventListener("scroll",i.update,$r)})),a&&l.removeEventListener("resize",i.update,$r)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Hr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,o=void 0===n||n,r=i.adaptive,s=void 0===r||r,a=i.roundOffsets,l=void 0===a||a,d={placement:tr(t.placement),variation:xr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ar(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ar(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},er,Ur,Vr,jr,yr,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,s=Pr(t,{elementContext:"reference"}),a=Pr(t,{altBoundary:!0}),l=Fr(s,n),d=Fr(a,o,r),c=Br(l),h=Br(d);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}}]}),Jr="tippy-content",Qr="tippy-backdrop",es="tippy-arrow",ts="tippy-svg-arrow",is={passive:!0,capture:!0},ns=function(){return document.body};function os(e,t,i){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(i)?i[t]:i:n}return e}function rs(e,t){var i={}.toString.call(e);return 0===i.indexOf("[object")&&i.indexOf(t+"]")>-1}function ss(e,t){return"function"==typeof e?e.apply(void 0,t):e}function as(e,t){return 0===t?e:function(n){clearTimeout(i),i=setTimeout((function(){e(n)}),t)};var i}function ls(e){return[].concat(e)}function ds(e,t){-1===e.indexOf(t)&&e.push(t)}function cs(e){return[].slice.call(e)}function hs(e){return Object.keys(e).reduce((function(t,i){return void 0!==e[i]&&(t[i]=e[i]),t}),{})}function ps(){return document.createElement("div")}function us(e){return["Element","Fragment"].some((function(t){return rs(e,t)}))}function ms(e){return us(e)?[e]:function(e){return rs(e,"NodeList")}(e)?cs(e):Array.isArray(e)?e:cs(document.querySelectorAll(e))}function fs(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function gs(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function vs(e,t,i){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[n](t,i)}))}function _s(e,t){for(var i=t;i;){var n;if(e.contains(i))return!0;i=null==i.getRootNode||null==(n=i.getRootNode())?void 0:n.host}return!1}var bs={isTouch:!1},ys=0;function xs(){bs.isTouch||(bs.isTouch=!0,window.performance&&document.addEventListener("mousemove",ws))}function ws(){var e=performance.now();e-ys<20&&(bs.isTouch=!1,document.removeEventListener("mousemove",ws)),ys=e}function As(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var i=t._tippy;t.blur&&!i.state.isVisible&&t.blur()}}var $s=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Es=Object.assign({appendTo:ns,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Cs=Object.keys(Es);function Ss(e){var t=(e.plugins||[]).reduce((function(t,i){var n,o=i.name,r=i.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(n=Es[o])?n:r);return t}),{});return Object.assign({},e,t)}function Ts(e,t){var i=Object.assign({},t,{content:ss(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Ss(Object.assign({},Es,{plugins:t}))):Cs).reduce((function(t,i){var n=(e.getAttribute("data-tippy-"+i)||"").trim();if(!n)return t;if("content"===i)t[i]=n;else try{t[i]=JSON.parse(n)}catch(e){t[i]=n}return t}),{})}(e,t.plugins));return i.aria=Object.assign({},Es.aria,i.aria),i.aria={expanded:"auto"===i.aria.expanded?t.interactive:i.aria.expanded,content:"auto"===i.aria.content?t.interactive?null:"describedby":i.aria.content},i}var ks=function(){return"innerHTML"};function Os(e,t){e[ks()]=t}function Is(e){var t=ps();return!0===e?t.className=es:(t.className=ts,us(e)?t.appendChild(e):Os(t,e)),t}function Ms(e,t){us(t.content)?(Os(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Os(e,t.content):e.textContent=t.content)}function Ns(e){var t=e.firstElementChild,i=cs(t.children);return{box:t,content:i.find((function(e){return e.classList.contains(Jr)})),arrow:i.find((function(e){return e.classList.contains(es)||e.classList.contains(ts)})),backdrop:i.find((function(e){return e.classList.contains(Qr)}))}}function Rs(e){var t=ps(),i=ps();i.className="tippy-box",i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var n=ps();function o(i,n){var o=Ns(t),r=o.box,s=o.content,a=o.arrow;n.theme?r.setAttribute("data-theme",n.theme):r.removeAttribute("data-theme"),"string"==typeof n.animation?r.setAttribute("data-animation",n.animation):r.removeAttribute("data-animation"),n.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?r.setAttribute("role",n.role):r.removeAttribute("role"),i.content===n.content&&i.allowHTML===n.allowHTML||Ms(s,e.props),n.arrow?a?i.arrow!==n.arrow&&(r.removeChild(a),r.appendChild(Is(n.arrow))):r.appendChild(Is(n.arrow)):a&&r.removeChild(a)}return n.className=Jr,n.setAttribute("data-state","hidden"),Ms(n,e.props),t.appendChild(i),i.appendChild(n),o(e.props,e.props),{popper:t,onUpdate:o}}Rs.$$tippy=!0;var zs=1,Ls=[],Hs=[];function Ps(e,t){var i,n,o,r,s,a,l,d,c=Ts(e,Object.assign({},Es,Ss(hs(t)))),h=!1,p=!1,u=!1,m=!1,f=[],g=as(G,c.interactiveDebounce),v=zs++,_=(d=c.plugins).filter((function(e,t){return d.indexOf(e)===t})),b={id:v,reference:e,popper:ps(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:_,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(n),cancelAnimationFrame(o)},setProps:function(t){if(b.state.isDestroyed)return;N("onBeforeUpdate",[b,t]),W();var i=b.props,n=Ts(e,Object.assign({},i,hs(t),{ignoreAttributes:!0}));b.props=n,j(),i.interactiveDebounce!==n.interactiveDebounce&&(L(),g=as(G,n.interactiveDebounce));i.triggerTarget&&!n.triggerTarget?ls(i.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):n.triggerTarget&&e.removeAttribute("aria-expanded");z(),M(),w&&w(i,n);b.popperInstance&&(Z(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));N("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){var e=b.state.isVisible,t=b.state.isDestroyed,i=!b.state.isEnabled,n=bs.isTouch&&!b.props.touch,o=os(b.props.duration,0,Es.duration);if(e||t||i||n)return;if(T().hasAttribute("disabled"))return;if(N("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,S()&&(x.style.visibility="visible");M(),V(),b.state.isMounted||(x.style.transition="none");if(S()){var r=O();fs([r.box,r.content],0)}a=function(){var e;if(b.state.isVisible&&!m){if(m=!0,x.offsetHeight,x.style.transition=b.props.moveTransition,S()&&b.props.animation){var t=O(),i=t.box,n=t.content;fs([i,n],o),gs([i,n],"visible")}R(),z(),ds(Hs,b),null==(e=b.popperInstance)||e.forceUpdate(),N("onMount",[b]),b.props.animation&&S()&&function(e,t){B(e,t)}(o,(function(){b.state.isShown=!0,N("onShown",[b])}))}},function(){var e,t=b.props.appendTo,i=T();e=b.props.interactive&&t===ns||"parent"===t?i.parentNode:ss(t,[i]);e.contains(x)||e.appendChild(x);b.state.isMounted=!0,Z()}()},hide:function(){var e=!b.state.isVisible,t=b.state.isDestroyed,i=!b.state.isEnabled,n=os(b.props.duration,1,Es.duration);if(e||t||i)return;if(N("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,m=!1,h=!1,S()&&(x.style.visibility="hidden");if(L(),F(),M(!0),S()){var o=O(),r=o.box,s=o.content;b.props.animation&&(fs([r,s],n),gs([r,s],"hidden"))}R(),z(),b.props.animation?S()&&function(e,t){B(e,(function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(n,b.unmount):b.unmount()},hideWithInteractivity:function(e){k().addEventListener("mousemove",g),ds(Ls,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide();if(!b.state.isMounted)return;J(),Q().forEach((function(e){e._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x);Hs=Hs.filter((function(e){return e!==b})),b.state.isMounted=!1,N("onHidden",[b])},destroy:function(){if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),W(),delete e._tippy,b.state.isDestroyed=!0,N("onDestroy",[b])}};if(!c.render)return b;var y=c.render(b),x=y.popper,w=y.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,e._tippy=b,x._tippy=b;var A=_.map((function(e){return e.fn(b)})),$=e.hasAttribute("aria-expanded");return j(),z(),M(),N("onCreate",[b]),c.showOnCreate&&ee(),x.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&k().addEventListener("mousemove",g)})),b;function E(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function C(){return"hold"===E()[0]}function S(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function T(){return l||e}function k(){var e,t,i=T().parentNode;return i?null!=(t=ls(i)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function O(){return Ns(x)}function I(e){return b.state.isMounted&&!b.state.isVisible||bs.isTouch||r&&"focus"===r.type?0:os(b.props.delay,e?0:1,Es.delay)}function M(e){void 0===e&&(e=!1),x.style.pointerEvents=b.props.interactive&&!e?"":"none",x.style.zIndex=""+b.props.zIndex}function N(e,t,i){var n;(void 0===i&&(i=!0),A.forEach((function(i){i[e]&&i[e].apply(i,t)})),i)&&(n=b.props)[e].apply(n,t)}function R(){var t=b.props.aria;if(t.content){var i="aria-"+t.content,n=x.id;ls(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(i);if(b.state.isVisible)e.setAttribute(i,t?t+" "+n:n);else{var o=t&&t.replace(n,"").trim();o?e.setAttribute(i,o):e.removeAttribute(i)}}))}}function z(){!$&&b.props.aria.expanded&&ls(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===T()?"true":"false"):e.removeAttribute("aria-expanded")}))}function L(){k().removeEventListener("mousemove",g),Ls=Ls.filter((function(e){return e!==g}))}function H(t){if(!bs.isTouch||!u&&"mousedown"!==t.type){var i=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!_s(x,i)){if(ls(b.props.triggerTarget||e).some((function(e){return _s(e,i)}))){if(bs.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else N("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),p=!0,setTimeout((function(){p=!1})),b.state.isMounted||F())}}}function P(){u=!0}function D(){u=!1}function V(){var e=k();e.addEventListener("mousedown",H,!0),e.addEventListener("touchend",H,is),e.addEventListener("touchstart",D,is),e.addEventListener("touchmove",P,is)}function F(){var e=k();e.removeEventListener("mousedown",H,!0),e.removeEventListener("touchend",H,is),e.removeEventListener("touchstart",D,is),e.removeEventListener("touchmove",P,is)}function B(e,t){var i=O().box;function n(e){e.target===i&&(vs(i,"remove",n),t())}if(0===e)return t();vs(i,"remove",s),vs(i,"add",n),s=n}function U(t,i,n){void 0===n&&(n=!1),ls(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,i,n),f.push({node:e,eventType:t,handler:i,options:n})}))}function j(){var e;C()&&(U("touchstart",q,{passive:!0}),U("touchend",X,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(U(e,q),e){case"mouseenter":U("mouseleave",X);break;case"focus":U($s?"focusout":"blur",K);break;case"focusin":U("focusout",K)}}))}function W(){f.forEach((function(e){var t=e.node,i=e.eventType,n=e.handler,o=e.options;t.removeEventListener(i,n,o)})),f=[]}function q(e){var t,i=!1;if(b.state.isEnabled&&!Y(e)&&!p){var n="focus"===(null==(t=r)?void 0:t.type);r=e,l=e.currentTarget,z(),!b.state.isVisible&&rs(e,"MouseEvent")&&Ls.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||h)&&!1!==b.props.hideOnClick&&b.state.isVisible?i=!0:ee(e),"click"===e.type&&(h=!i),i&&!n&&te(e)}}function G(e){var t=e.target,i=T().contains(t)||x.contains(t);if("mousemove"!==e.type||!i){var n=Q().concat(x).map((function(e){var t,i=null==(t=e._tippy.popperInstance)?void 0:t.state;return i?{popperRect:e.getBoundingClientRect(),popperState:i,props:c}:null})).filter(Boolean);(function(e,t){var i=t.clientX,n=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,r=e.props.interactiveBorder,s=o.placement.split("-")[0],a=o.modifiersData.offset;if(!a)return!0;var l="bottom"===s?a.top.y:0,d="top"===s?a.bottom.y:0,c="right"===s?a.left.x:0,h="left"===s?a.right.x:0,p=t.top-n+l>r,u=n-t.bottom-d>r,m=t.left-i+c>r,f=i-t.right-h>r;return p||u||m||f}))})(n,e)&&(L(),te(e))}}function X(e){Y(e)||b.props.trigger.indexOf("click")>=0&&h||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function K(e){b.props.trigger.indexOf("focusin")<0&&e.target!==T()||b.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function Y(e){return!!bs.isTouch&&C()!==e.type.indexOf("touch")>=0}function Z(){J();var t=b.props,i=t.popperOptions,n=t.placement,o=t.offset,r=t.getReferenceClientRect,s=t.moveTransition,l=S()?Ns(x).arrow:null,d=r?{getBoundingClientRect:r,contextElement:r.contextElement||T()}:e,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(S()){var i=O().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?i.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?i.setAttribute("data-"+e,""):i.removeAttribute("data-"+e)})),t.attributes.popper={}}}},h=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},c];S()&&l&&h.push({name:"arrow",options:{element:l,padding:3}}),h.push.apply(h,(null==i?void 0:i.modifiers)||[]),b.popperInstance=Zr(d,x,Object.assign({},i,{placement:n,onFirstUpdate:a,modifiers:h}))}function J(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return cs(x.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&N("onTrigger",[b,e]),V();var t=I(!0),n=E(),o=n[0],r=n[1];bs.isTouch&&"hold"===o&&r&&(t=r),t?i=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),N("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&h)){var t=I(!1);t?n=setTimeout((function(){b.state.isVisible&&b.hide()}),t):o=requestAnimationFrame((function(){b.hide()}))}}else F()}}function Ds(e,t){void 0===t&&(t={});var i=Es.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",xs,is),window.addEventListener("blur",As);var n=Object.assign({},t,{plugins:i}),o=ms(e).reduce((function(e,t){var i=t&&Ps(t,n);return i&&e.push(i),e}),[]);return us(e)?o[0]:o}Ds.defaultProps=Es,Ds.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Es[t]=e[t]}))},Ds.currentInput=bs,Object.assign({},er,{effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow)}}),Ds.setDefaultProps({render:Rs});const Vs=Ne`<path class="svg-wb-fill" d="M125,120c2.762,0,5,2.239,5,5c0,2.762-2.238,5-5,5c-2.761,0-5-2.238-5-5C120,122.239,122.239,120,125,120z"/><path fill="none" class="svg-wb-stroke" stroke-width="2" d="M125,115c5.523,0,10,4.477,10,10c0,5.523-4.477,10-10,10 c-5.523,0-10-4.477-10-10C115,119.477,119.477,115,125,115z "/>`,Fs=Ne`<path class="svg-wb" d="M125,112V76 M125,125l7-12.1h-14L125,125z"/>`,Bs=Ne`<path class="svg-wb" d="M125,112V76 M125,89l7-7 M125,125l7-12.1h-14L125,125z"/>`,Us=Ne`<path class="svg-wb" d="M125,112V89 M125,89l14-14 M125,125l7-12.1h-14L125,125z"/>`,js=Ne`<path class="svg-wb" d="M125,112V89 M125,89l14-14 M125,100l7-7 M125,125l7-12.1h-14L125,125z"/>`,Ws=Ne`<path class="svg-wb" d="M125,112V89 M125,89l14-14 M125,100l14-14 M125,125l7-12.1h-14L125,125z"/>`,qs=Ne`<path class="svg-wb" d="M125,112V79 M125,79l14-14 M125,90l14-14 M125,100l7-7 M125,125l7-12.1h-14L125,125z"/>`,Gs=Ne`<path class="svg-wb" d="M125,112V79 M125,79l14-14 M125,90l14-14 M125,100l14-14 M125,125l7-12.1h-14L125,125z"/>`,Xs=Ne`<path class="svg-wb" d="M125,112V69 M125,69l14-14 M125,80l14-14 M125,90l14-14 M125,100l7-7 M125,125l7-12.1h-14L125,125z"/>`,Ks=Ne`<path class="svg-wb" d="M125,112V69 M125,69l14-14 M125,80l14-14 M125,90l14-14 M125,100l14-14 M125,125l7-12.1h-14L125,125z"/>`,Ys=Ne`<path class="svg-wb" d="M125,112V59 M125,59l14-14 M125,70l14-14 M125,80l14-14 M125,90l14-14 M125,100l7-7 M125,125l7-12.1h-14 L125,125z"/>`,Zs=Ne`<path class="svg-wb" d="M125,112V76 M125,76h14l-14,14V76z M125,125l7-12.1h-14L125,125z"/>`,Js=Ne`<path class="svg-wb" d="M125,112V76 M125,76h14l-14,14V76z M125,100l7-7 M125,125l7-12.1h-14L125,125z"/>`,Qs=Ne`<path class="svg-wb" d="M125,112V76 M125,76h14l-14,14V76z M125,100l14-14 M125,125l7-12.1h-14L125,125z"/>`,ea=Ne`<path class="svg-wb" d="M125,112V66 M125,66h14l-14,14V66z M125,90l14-14 M125,100l7-7 M125,125l7-12.1h-14L125,125z"/>`,ta=Ne`<path class="svg-wb" d="M125,112V66 M125,66h14l-14,14V66z M125,90l14-14 M125,100l14-14 M125,125l7-12.1h-14L125,125z"/>`,ia=Ne`<path class="svg-wb" d="M125,112V56 M125,56h14l-14,14V56z M125,80l14-14 M125,90l14-14 M125,100l7-7 M125,125l7-12.1h-14L125,125z"/>`,na=Ne`<path class="svg-wb" d="M125,112V56 M125,56h14l-14,14V56z M125,80l14-14 M125,90l14-14 M125,100l14-14 M125,125l7-12.1h-14L125,125z"/>`,oa=Ne`<path class="svg-wb" d="M125,112V46 M125,46h14l-14,14V46z M125,70l14-14 M125,80l14-14 M125,90l14-14 M125,100l7-7 M125,125l7-12.1 h-14L125,125z"/>`,ra=Ne`<path class="svg-wb" d="M125,112V46 M125,46h14l-14,14V46z M125,70l14-14 M125,80l14-14 M125,90l14-14 M125,100l14-14 M125,125l7-12.1 h-14L125,125z"/>`,sa=Ne`<path class="svg-wb" d="M125,112V36 M125,36h14l-14,14V36z M125,60l14-14 M125,70l14-14 M125,80l14-14 M125,90l14-14 M125,100l7-7 M125,125l7-12.1h-14L125,125z"/>`,aa=Ne`<path class="svg-wb" d="M125,112V62 M125,62h14l-14,14V62z M125,76h14l-14,14V76z M125,125l7-12.1h-14L125,125z"/>`,la=Ne`<path class="svg-wb" d="M125,112V62 M125,62h14l-14,14V62z M125,76h14l-14,14V76z M125,100l7-7 M125,125l7-12.1h-14L125,125z"/>`,da=Ne`<path class="svg-wb" d="M125,112V62 M125,62h14l-14,14V62z M125,76h14l-14,14V76z M125,100l14-14 M125,125l7-12.1h-14L125,125z"/>`,ca=Ne`<path class="svg-wb" d="M125,112V52 M125,52h14l-14,14V52z M125,66h14l-14,14V66z M125,90l14-14 M125,100l7-7 M125,125l7-12.1h-14 L125,125z"/>`,ha=Ne`<path class="svg-wb" d="M125,112V52 M125,52h14l-14,14V52z M125,66h14l-14,14V66z M125,90l14-14 M125,100l14-14 M125,125l7-12.1h-14 L125,125z"/>`,pa=Ne`<path class="svg-wb" d="M125,112V42 M125,42h14l-14,14V42z M125,56h14l-14,14V56z M125,80l14-14 M125,90l14-14 M125,100l7-7 M125,125 l7-12.1h-14L125,125z"/>`,ua=Ne`<path class="svg-wb" d="M125,112V42 M125,42h14l-14,14V42z M125,56h14l-14,14V56z M125,80l14-14 M125,90l14-14 M125,100l14-14 M125,125 l7-12.1h-14L125,125z"/>`,ma=Ne`<path class="svg-wb" d="M125,112V32 M125,32h14l-14,14V32z M125,46h14l-14,14V46z M125,70l14-14 M125,80l14-14 M125,90l14-14 M125,100 l7-7 M125,125l7-12.1h-14L125,125z"/>`,fa=Ne`<path class="svg-wb" d="M125,112V32 M125,32h14l-14,14V32z M125,46h14l-14,14V46z M125,70l14-14 M125,80l14-14 M125,90l14-14 M125,100 l14-14 M125,125l7-12.1h-14L125,125z"/>`,ga=Ne`<path class="svg-wb" d="M125,112V22 M125,22h14l-14,14V22z M125,36h14l-14,14V36z M125,60l14-14 M125,70l14-14 M125,80l14-14 M125,90 l14-14 M125,100l7-7 M125,125l7-12.1h-14L125,125z"/>`,va=Ne`<path class="svg-wb" d="M125,112V48 M125,48h14l-14,14V48z M125,62h14l-14,14V62z M125,76h14l-14,14V76z M125,125l7-12.1h-14L125,125z"/>`,_a=Ne`<path class="svg-wb" d="M125,112V48 M125,48h14l-14,14V48z M125,62h14l-14,14V62z M125,76h14l-14,14V76z M125,100l7-7 M125,125l7-12.1 h-14L125,125z"/>`,ba=Ne`<path class="svg-wb" d="M125,112V48 M125,48h14l-14,14V48z M125,62h14l-14,14V62z M125,76h14l-14,14V76z M125,100l14-14 M125,125 l7-12.1h-14L125,125z"/>`,ya=Ne`<path class="svg-wb" d="M125,112V38 M125,38h14l-14,14V38z M125,52h14l-14,14V52z M125,66h14l-14,14V66z M125,90l14-14 M125,100l7-7 M125,125l7-12.1h-14L125,125z"/>`,xa=Ne`<path class="svg-wb" d="M125,112V38 M125,38h14l-14,14V38z M125,52h14l-14,14V52z M125,66h14l-14,14V66z M125,90l14-14 M125,100l14-14 M125,125l7-12.1h-14L125,125z"/>`,wa=Ne`<path class="svg-wb" d="M125,112V28 M125,28h14l-14,14V28z M125,42h14l-14,14V42z M125,56h14l-14,14V56z M125,80l14-14 M125,90l14-14 M125,100l7-7 M125,125l7-12.1h-14L125,125z"/>`,Aa=Ne`<path class="svg-wb" d="M125,112V28 M125,28h14l-14,14V28z M125,42h14l-14,14V42z M125,56h14l-14,14V56z M125,80l14-14 M125,90l14-14 M125,100l14-14 M125,125l7-12.1h-14L125,125z"/>`,$a=Ne`<path class="svg-wb" d="M125,112V18 M125,18h14l-14,14V18z M125,32h14l-14,14V32z M125,46h14l-14,14V46z M125,70l14-14 M125,80l14-14 M125,90l14-14 M125,100l7-7 M125,125l7-12.1h-14L125,125z"/>`,Ea=Ne`<path class="svg-wb" d="M125,112V18 M125,18h14l-14,14V18z M125,32h14l-14,14V32z M125,46h14l-14,14V46z M125,70l14-14 M125,80l14-14 M125,90l14-14 M125,100l14-14 M125,125l7-12.1h-14L125,125z"/>`;class Ca extends _t{constructor(){super(...arguments),this.conditions=[],this.temperatures=[],this.wind=[],this.precipitation=[],this.icons=!1,this.icon_map=void 0,this.colors=void 0,this.hide_hours=!1,this.hide_temperatures=!1,this.hide_bar=!1,this.icon_fill="single",this.show_wind="false",this.show_precipitation_amounts=!1,this.show_precipitation_probability=!1,this.show_date="false",this.label_spacing=2,this.labels=Wt,this.tips=[]}render(){var e,t;const i=[];let n=1;if(!this.hide_bar)for(const t of this.conditions){const o=this.labels[t[0]];let r=null===(e=this.icon_map)||void 0===e?void 0:e[t[0]];r||(r=qt[t[0]],r=r===t[0]?"mdi:weather-"+r:"mdi:"+r);const s=[];if(this.icons){let e;e=this.icon_fill&&"single"!==this.icon_fill?"full"===this.icon_fill?1:Math.max(Number(this.icon_fill)||0,1):t[1];let i=1;for(let n=0;n<t[1];n+=e){const t={gridColumnStart:String(i),gridColumnEnd:String(i+=2*e)};s.push(Me`<span class="condition-icon" style=${No(t)}><ha-icon icon=${r}></ha-icon></span>`)}}else s.push(Me`<span class="condition-label">${o}</span>`);const a={gridColumnStart:String(n),gridColumnEnd:String(n+=2*t[1])};i.push(Me`
|
||
<div class=${t[0]} style=${No(a)} data-tippy-content=${o}>
|
||
${s}
|
||
</div>
|
||
`)}const o=null!==(t=this.show_wind)&&void 0!==t?t:"",r=[];let s=null;for(let e=0;e<this.temperatures.length;e+=1){const t=e%this.label_spacing!=0,i=this.hide_hours||t,n=this.hide_temperatures||t,a=("true"===o||o.includes("speed"))&&!t,l=("true"===o||o.includes("direction"))&&!t,d=o.includes("barb")&&!t,c=this.show_precipitation_amounts&&!t,h=this.show_precipitation_probability&&!t,{hour:p,date:u,temperature:m}=this.temperatures[e];let f=null;!t&&this.show_date&&"false"!==this.show_date&&("all"===this.show_date?f=u:"boundary"===this.show_date&&(s!==u?(f=u,s=u):f=Me` `));const{windSpeed:g,windSpeedRawMS:v,windDirection:_,windDirectionRaw:b}=this.wind[e],y=[],x="number"==typeof b?b:Xt[null==b?void 0:b.toLowerCase()];d&&void 0!==x&&(y.push(Me`<span title=${`${g} ${_}`}>
|
||
${this.getWindBarb(v,x)}
|
||
</span>`),(a||l)&&y.push(Me`<br>`)),a&&y.push(Me`${g}`),a&&l&&y.push(Me`<br>`),l&&y.push(Me`${_}`);const{precipitationAmount:w,precipitationProbability:A,precipitationProbabilityText:$}=this.precipitation[e],E=[];c&&E.push(Me`${w}`),c&&h&&E.push(Me`<br>`),h&&E.push(Me`<span title=${$}>${A}</span>`),r.push(Me`
|
||
<div class="bar-block">
|
||
<div class="bar-block-left"></div>
|
||
<div class="bar-block-right"></div>
|
||
<div class="bar-block-bottom">
|
||
<div class="date">${f}</div>
|
||
<div class="hour">${i?null:p}</div>
|
||
<div class="temperature">${n?null:Me`${m}°`}</div>
|
||
<div class="wind">${y}</div>
|
||
<div class="precipitation">${E}</div>
|
||
</div>
|
||
</div>
|
||
`)}let a=null;return this.colors&&(a=this.getColorStyles(this.colors)),Me`
|
||
<div class="main">
|
||
${null!=a?a:null}
|
||
${this.hide_bar?null:Me`<div class="bar">${i}</div>`}
|
||
<div class="axes">${r}</div>
|
||
</div>
|
||
`}update(e){super.update(e),this.tips.forEach((e=>e.destroy())),this.tips=Ds(this.renderRoot.querySelectorAll(".bar > div"),{appendTo:this.renderRoot.firstElementChild||void 0,touch:"hold"})}getColorStyles(e){if(!e||0===e.size)return null;const t=[];for(const[i,n]of e.entries())n.background&&t.push(`--color-${i}: ${n.background};`),n.foreground&&t.push(`--color-${i}-foreground: ${n.foreground};`);return Me`<style>
|
||
.main > .bar {
|
||
${et(t.join(" "))}
|
||
}
|
||
</style>`}getWindBarb(e,t){return Me`<svg xmlns="http://www.w3.org/2000/svg" viewBox="70 40 120 120" class="barb" style=${No({transform:`rotate(${t}deg)`})}>
|
||
${i=e,i<=0||i<1?Vs:i<2.5?Fs:i<5?Bs:i<7.5?Us:i<10?js:i<12.5?Ws:i<15?qs:i<17.5?Gs:i<20?Xs:i<22.5?Ks:i<25?Ys:i<27.5?Zs:i<30?Js:i<32.5?Qs:i<35?ea:i<37.5?ta:i<40?ia:i<42.5?na:i<45?oa:i<47.5?ra:i<50?sa:i<52.5?aa:i<55?la:i<57.5?da:i<60?ca:i<62.5?ha:i<65?pa:i<67.5?ua:i<70?ma:i<72.5?fa:i<75?ga:i<77.5?va:i<80?_a:i<82.5?ba:i<85?ya:i<87.5?xa:i<90?wa:i<92.5?Aa:i<95?$a:i<97.5?Ea:Vs}
|
||
</svg>`;var i}}var Sa;Ca.styles=[et('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}'),tt`
|
||
.main {
|
||
--color-clear-night: #111;
|
||
--color-cloudy: #777777;
|
||
--color-fog: var(--color-cloudy);
|
||
--color-hail: #2b5174;
|
||
--color-lightning: var(--color-rainy);
|
||
--color-lightning-rainy: var(--color-rainy);
|
||
--color-partlycloudy: #b3dbff;
|
||
--color-pouring: var(--color-rainy);
|
||
--color-rainy: #44739d;
|
||
--color-snowy: white;
|
||
--color-snowy-rainy: var(--color-partlycloudy);
|
||
--color-sunny: #90cbff;
|
||
--color-windy: var(--color-sunny);
|
||
--color-windy-variant: var(--color-sunny);
|
||
--color-exceptional: #ff9d00;
|
||
}
|
||
.bar {
|
||
height: 30px;
|
||
width: 100%;
|
||
display: grid;
|
||
grid-auto-flow: column;
|
||
grid-auto-columns: 1fr;
|
||
}
|
||
.bar > div {
|
||
height: 30px;
|
||
text-align: center;
|
||
align-items: center;
|
||
display: grid;
|
||
}
|
||
.condition-label {
|
||
display: inline-block;
|
||
text-shadow: 1px 1px 2px var(--primary-background-color);
|
||
max-width: max(0px, calc((100% - 120px) * 999));
|
||
overflow: hidden;
|
||
}
|
||
.condition-icon {
|
||
display: inline-block;
|
||
max-width: max(0px, calc((100% - 40px) * 999));
|
||
overflow: hidden;
|
||
}
|
||
.condition-icon > ha-icon {
|
||
filter: drop-shadow(1px 1px 3px var(--primary-background-color));
|
||
}
|
||
.bar > div:first-child {
|
||
border-top-left-radius: 10px;
|
||
border-bottom-left-radius: 10px;
|
||
}
|
||
.bar > div:last-child {
|
||
border-top-right-radius: 10px;
|
||
border-bottom-right-radius: 10px;
|
||
}
|
||
.clear-night {
|
||
background-color: var(--color-clear-night);
|
||
color: var(--color-clear-night-foreground, var(--primary-text-color));
|
||
}
|
||
.cloudy {
|
||
background-color: var(--color-cloudy);
|
||
color: var(--color-cloudy-foreground, var(--primary-text-color));
|
||
}
|
||
.fog {
|
||
background-color: var(--color-fog);
|
||
color: var(--color-fog-foreground, var(--primary-text-color));
|
||
}
|
||
.hail {
|
||
background-color: var(--color-hail);
|
||
color: var(--color-hail-foreground, var(--primary-text-color));
|
||
}
|
||
.lightning {
|
||
background-color: var(--color-lightning);
|
||
color: var(--color-lightning-foreground, var(--primary-text-color));
|
||
}
|
||
.lightning-rainy {
|
||
background-color: var(--color-lightning-rainy);
|
||
color: var(--color-lightning-rainy-foreground, var(--primary-text-color));
|
||
}
|
||
.partlycloudy {
|
||
background-color: var(--color-partlycloudy);
|
||
color: var(--color-partlycloudy-foreground, var(--primary-text-color));
|
||
}
|
||
.pouring {
|
||
background-color: var(--color-pouring);
|
||
color: var(--color-pouring-foreground, var(--primary-text-color));
|
||
}
|
||
.rainy {
|
||
background-color: var(--color-rainy);
|
||
color: var(--color-rainy-foreground, var(--primary-text-color));
|
||
}
|
||
.snowy {
|
||
background-color: var(--color-snowy);
|
||
color: var(--color-snowy-foreground, var(--primary-text-color));
|
||
}
|
||
.snowy-rainy {
|
||
background-color: var(--color-snowy-rainy);
|
||
color: var(--color-snowy-rainy-foreground, var(--primary-text-color));
|
||
}
|
||
.sunny {
|
||
background-color: var(--color-sunny);
|
||
color: var(--color-sunny-foreground, var(--primary-text-color));
|
||
}
|
||
.windy {
|
||
background-color: var(--color-windy);
|
||
color: var(--color-windy-foreground, var(--primary-text-color));
|
||
}
|
||
.windy-variant {
|
||
background-color: var(--color-windy-variant);
|
||
color: var(--color-windy-variant-foreground, var(--primary-text-color));
|
||
}
|
||
.exceptional {
|
||
background-color: var(--color-exceptional);
|
||
color: var(--color-exceptional-foreground, var(--primary-text-color));
|
||
}
|
||
.axes {
|
||
display: grid;
|
||
grid-auto-flow: column;
|
||
grid-auto-columns: 1fr;
|
||
margin-top: 5px;
|
||
}
|
||
.bar-block {
|
||
display: inline-grid;
|
||
grid-template-areas:
|
||
'left right'
|
||
'bottom bottom';
|
||
grid-template-columns: 1fr 1fr;
|
||
grid-template-rows: 5px auto;
|
||
}
|
||
.bar-block-left {
|
||
grid-area: left;
|
||
border: 1px solid var(--divider-color, lightgray);
|
||
border-width: 0 1px 0 0;
|
||
}
|
||
.bar-block-right {
|
||
grid-area: right;
|
||
border: 1px solid var(--divider-color, lightgray);
|
||
border-width: 0 0 0 1px;
|
||
}
|
||
.bar-block-bottom {
|
||
text-align: center;
|
||
grid-area: bottom;
|
||
padding-top: 5px;
|
||
}
|
||
.date, .hour {
|
||
color: var(--secondary-text-color, gray);
|
||
font-size: 0.9rem;
|
||
white-space: nowrap;
|
||
}
|
||
.temperature {
|
||
font-size: 1.1rem;
|
||
}
|
||
.wind,
|
||
.precipitation {
|
||
font-size: 0.9rem;
|
||
line-height: 1.1rem;
|
||
padding-top: 0.1rem;
|
||
}
|
||
.barb {
|
||
transform-box: fill-box;
|
||
transform-origin: center;
|
||
height: 3rem;
|
||
}
|
||
.svg-wb, .svg-wb-fill {
|
||
fill: var(--primary-text-color, black);
|
||
}
|
||
.svg-wb, .svg-wb-stroke {
|
||
stroke: var(--primary-text-color, black);
|
||
}
|
||
.svg-wb {
|
||
stroke-width: 3;
|
||
stroke-linecap: round;
|
||
stroke-linejoin: round;
|
||
stroke-miterlimit: 10;
|
||
}
|
||
`],n([At({type:Array})],Ca.prototype,"conditions",void 0),n([At({type:Array})],Ca.prototype,"temperatures",void 0),n([At({type:Array})],Ca.prototype,"wind",void 0),n([At({type:Array})],Ca.prototype,"precipitation",void 0),n([At({type:Boolean})],Ca.prototype,"icons",void 0),n([At({type:Object})],Ca.prototype,"icon_map",void 0),n([At({attribute:!1})],Ca.prototype,"colors",void 0),n([At({type:Boolean})],Ca.prototype,"hide_hours",void 0),n([At({type:Boolean})],Ca.prototype,"hide_temperatures",void 0),n([At({type:Boolean})],Ca.prototype,"hide_bar",void 0),n([At({type:String})],Ca.prototype,"icon_fill",void 0),n([At({type:String})],Ca.prototype,"show_wind",void 0),n([At({type:Boolean})],Ca.prototype,"show_precipitation_amounts",void 0),n([At({type:Boolean})],Ca.prototype,"show_precipitation_probability",void 0),n([At({type:String})],Ca.prototype,"show_date",void 0),n([At({type:Number})],Ca.prototype,"label_spacing",void 0),n([At({type:Object})],Ca.prototype,"labels",void 0),customElements.define("weather-bar",Ca);const Ta=Oo(void 0,void 0);console.info(`%c HOURLY-WEATHER-CARD \n%c ${Ta("common.version")} 6.7.1 `,"color: orange; font-weight: bold; background: black","color: white; font-weight: bold; background: dimgray"),window.customCards=window.customCards||[],window.customCards.push({type:"hourly-weather",name:Ta("common.title_card"),description:Ta("common.description")});let ka=Sa=class extends _t{constructor(){super(...arguments),this.configRenderPending=!1,this.localizer=void 0,this.localizerLastSettings={configuredLanguage:void 0,haServerLanguage:void 0},this._labels=Wt,this.labelsLocalized=!1,this._directions=Object.keys(Gt),this.directionsLocalized=!1}static async getConfigElement(){return await Promise.resolve().then((function(){return f_})),document.createElement("hourly-weather-editor")}static getStubConfig(){return{}}localize(e,t="",i=""){var n,o,r,s,a,l;return this.localizer&&!this.localizerSettingsChanged||(this.localizer=Oo(null===(n=this.config)||void 0===n?void 0:n.language,null===(r=null===(o=this.hass)||void 0===o?void 0:o.locale)||void 0===r?void 0:r.language),this.localizerLastSettings.configuredLanguage=null===(s=this.config)||void 0===s?void 0:s.language,this.localizerLastSettings.haServerLanguage=null===(l=null===(a=this.hass)||void 0===a?void 0:a.locale)||void 0===l?void 0:l.language,this.labelsLocalized=!1,this.directionsLocalized=!1),this.localizer(e,t,i)}get localizerSettingsChanged(){var e,t,i;return this.localizerLastSettings.configuredLanguage!==(null===(e=this.config)||void 0===e?void 0:e.language)||this.localizerLastSettings.haServerLanguage!==(null===(i=null===(t=this.hass)||void 0===t?void 0:t.locale)||void 0===i?void 0:i.language)}get labels(){return this.labelsLocalized&&!this.localizerSettingsChanged||(this._labels=Object.fromEntries(Object.entries(Wt).map((([e,t])=>[e,this.localize(t)]))),this.labelsLocalized=!0),this._labels}get directions(){return this.directionsLocalized&&!this.localizerSettingsChanged||(this._directions=Object.values(Gt).map((e=>this.localize(e))),this._directions.push(this._directions[0]),this.directionsLocalized=!0),this._directions}unsubscribeForecastEvents(){this.subscribedToForecast&&(this.subscribedToForecast.then((e=>e())),this.subscribedToForecast=void 0)}async subscribeToForecastEvents(){if(this.unsubscribeForecastEvents(),!(this.isConnected&&this.hass&&this.config&&this.config.entity&&this.hassSupportsForecastEvents()&&this.config.entity.startsWith("weather.")))return;const e=this.getIdealForecastType();this.subscribedToForecast=this.hass.connection.subscribeMessage((e=>this.forecastEvent=e),{type:"weather/subscribe_forecast",forecast_type:e,entity_id:this.config.entity})}getIdealForecastType(){var e,t;if(null===(e=this.config)||void 0===e?void 0:e.forecast_type)return this.config.forecast_type;if(!(null===(t=this.config)||void 0===t?void 0:t.entity))return"hourly";const i=this.hass.states[this.config.entity];if(!i)return"hourly";const n=i.attributes.supported_features;return n?2&n?"hourly":4&n?"twice_daily":"daily":"hourly"}setConfig(e){if(!e)throw new Error(this.localize("common.invalid_configuration"));if(!e.entity)throw new Error(this.localize("errors.missing_entity"));if(e.label_spacing){const t=parseInt(e.label_spacing,10);if(!Number.isNaN(t)&&t<1)throw new Error(this.localize("errors.must_be_positive_int"))}e.test_gui&&function(){var e=document.querySelector("home-assistant");if(e=(e=(e=(e=(e=(e=(e=(e=e&&e.shadowRoot)&&e.querySelector("home-assistant-main"))&&e.shadowRoot)&&e.querySelector("app-drawer-layout partial-panel-resolver"))&&e.shadowRoot||e)&&e.querySelector("ha-panel-lovelace"))&&e.shadowRoot)&&e.querySelector("hui-root")){var t=e.lovelace;return t.current_view=e.___curView,t}return null}().setEditMode(!0),this.config=Object.assign({name:this.localize("common.title")},e),this.triggerConfigRender()}triggerConfigRender(){var e;(null===(e=this.hass)||void 0===e?void 0:e.connection)?this.renderedConfig=this.renderConfig():this.configRenderPending=!0}async renderConfig(){const{config:e}=this;if(!e)return e;return Object.assign(Object.assign({},e),{num_segments:await this.renderTemplate(null==e?void 0:e.num_segments),offset:await this.renderTemplate(null==e?void 0:e.offset),label_spacing:await this.renderTemplate(null==e?void 0:e.label_spacing),name:await this.renderTemplate(null==e?void 0:e.name)})}async renderTemplate(e){return e?"string"!=typeof e?e:e.includes("{{")?new Promise((t=>{this.hass.connection.subscribeMessage((e=>t(e.result)),{type:"render_template",template:e})})):e:e}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.subscribeToForecastEvents()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeForecastEvents()}shouldUpdate(e){if(!this.config)return!1;if(e.has("hass")){const t=e.get("hass");if(t&&this.hass&&JSON.stringify(t.locale)!==JSON.stringify(this.hass.locale))return!0}return function(e,t,i){if(t.has("config")||i)return!0;if(e.config.entity){var n=t.get("hass");return!n||n.states[e.config.entity]!==e.hass.states[e.config.entity]}return!1}(this,e,!1)}updated(e){var t,i,n;super.updated(e),(null===(t=this.hass)||void 0===t?void 0:t.connection)&&this.configRenderPending&&(this.configRenderPending=!1,this.triggerConfigRender()),(!this.subscribedToForecast||e.has("config")&&(null===(i=this.config)||void 0===i?void 0:i.entity)!==(null===(n=e.get("config"))||void 0===n?void 0:n.entity))&&this.subscribeToForecastEvents()}getForecast(){var e,t,i,n,o;const r=!(null===(e=this.forecastEvent)||void 0===e?void 0:e.forecast)&&this.hassSupportsForecastEvents();return{forecast:null!==(i=null===(t=this.forecastEvent)||void 0===t?void 0:t.forecast)&&void 0!==i?i:null===(o=null===(n=this.hass)||void 0===n?void 0:n.states[this.config.entity])||void 0===o?void 0:o.attributes.forecast,pending:r}}hassSupportsForecastEvents(){var e,t,i,n,o,r;return!!(null===(i=null===(t=null===(e=this.hass)||void 0===e?void 0:e.services)||void 0===t?void 0:t.weather)||void 0===i?void 0:i.get_forecasts)||!!(null===(r=null===(o=null===(n=this.hass)||void 0===n?void 0:n.services)||void 0===o?void 0:o.weather)||void 0===r?void 0:r.get_forecast)}render(){return Me`${Vt(this.renderCore(),Me``)}`}async renderCore(){var e,t,i,n,o,r;const s=await this.renderedConfig;if(!s)return;const a=s.entity,l=this.hass.states[a],{forecast:d,pending:c}=this.getForecast(),h=null!==(e=l.attributes.wind_speed_unit)&&void 0!==e?e:"",p=null!==(t=l.attributes.precipitation_unit)&&void 0!==t?t:"",u=parseInt(null!==(n=null!==(i=s.num_segments)&&void 0!==i?i:s.num_hours)&&void 0!==n?n:"12",10),m=parseInt(null!==(o=s.offset)&&void 0!==o?o:"0",10),f=parseInt(null!==(r=s.label_spacing)&&void 0!==r?r:"2",10),g=!d||!d.length,v=s.icon_fill,b=!!s.hide_minutes,y=!!s.round_temperatures;if(u<1)return await this._showError(this.localize("errors.offset_must_be_positive_int","offset","num_segments"));if(m<0)return await this._showError(this.localize("errors.offset_must_be_positive_int"));if(!g&&u>d.length-m){if(c)return;return await this._showError(this.localize("errors.too_many_segments_requested"))}if(f<1)return await this._showError(this.localize("errors.offset_must_be_positive_int","offset","label_spacing"));if(v){const e="full"===s.icon_fill,t="single"===s.icon_fill,i=Number(s.icon_fill),n=Number.isInteger(i)&&i>0;if(!e&&!t&&!n)return await this._showError(this.localize("errors.invalid_value_icon_fill"))}let x=s.show_wind;if("boolean"==typeof x&&(x=x?"true":"false"),g){if(c)return;return Me`
|
||
<ha-card
|
||
.header=${s.name}
|
||
@action=${this._handleAction}
|
||
.actionHandler=${jt({hasHold:_(s.hold_action),hasDoubleClick:_(s.double_tap_action)})}
|
||
tabindex="0"
|
||
.label=${`Hourly Weather: ${s.entity||"No Entity Defined"}`}
|
||
>
|
||
<div class="card-content">
|
||
<h3>${this.localize("errors.forecast_not_available")}</h3>
|
||
<p>${this.localize("errors.check_entity")}</p>
|
||
</div>
|
||
</ha-card>`}const w=this.getConditionListFromForecast(d,u,m),A=this.getTemperatures(d,u,m,b,y),$=this.getWind(d,u,m,h,b),E=this.getPrecipitation(d,u,m,p,b),C=this.getColorSettings(s.colors);return Me`
|
||
<ha-card
|
||
.header=${s.name}
|
||
@action=${this._handleAction}
|
||
.actionHandler=${jt({hasHold:_(s.hold_action),hasDoubleClick:_(s.double_tap_action)})}
|
||
tabindex="0"
|
||
.label=${`Hourly Weather: ${s.entity||"No Entity Defined"}`}
|
||
>
|
||
<div class="card-content">
|
||
${C.warnings.length?this._showWarning(this.localize("errors.invalid_colors")+" "+C.warnings.join(", ")):""}
|
||
<!-- @ts-ignore -->
|
||
<weather-bar
|
||
.conditions=${w}
|
||
.temperatures=${A}
|
||
.wind=${$}
|
||
.precipitation=${E}
|
||
.icons=${!!s.icons}
|
||
.icon_map=${s.icon_map}
|
||
.colors=${C.validColors}
|
||
.hide_hours=${!!s.hide_hours}
|
||
.hide_temperatures=${!!s.hide_temperatures}
|
||
.hide_bar=${!!s.hide_bar}
|
||
.icon_fill=${s.icon_fill}
|
||
.show_wind=${x}
|
||
.show_precipitation_amounts=${!!s.show_precipitation_amounts}
|
||
.show_precipitation_probability=${!!s.show_precipitation_probability}
|
||
.show_date=${s.show_date}
|
||
.label_spacing=${f}
|
||
.labels=${this.labels}></weather-bar>
|
||
</div>
|
||
</ha-card>
|
||
`}getConditionListFromForecast(e,t,i){let n=e[i].condition,o=0;const r=[[n,1]];for(let s=i+1;s<t+i;s++){const t=e[s].condition;t===n?r[o][1]++:(r.push([t,1]),o++,n=t)}return r}getTemperatures(e,t,i,n,o){const r=[];for(let s=i;s<t+i;s++){const t=e[s],i=new Date(t.datetime),l=o&&!Number.isNaN(t.temperature)?Math.round(t.temperature):t.temperature;r.push({date:a(i,this.hass.locale),hour:this.formatHour(i,this.hass.locale,n),temperature:p(l,this.hass.locale)})}return r}getPrecipitation(e,t,i,n,o){const r=[];for(let s=i;s<t+i;s++){const t=e[s];let i="";t.precipitation>0&&(i=`${p(t.precipitation,this.hass.locale)} ${n}`.trim());let a="",l="";t.precipitation_probability>0&&(a=`${p(t.precipitation_probability,this.hass.locale)}%`.trim(),l=this.localize("card.chance_of_precipitation","{0}",String(t.precipitation_probability))),r.push({hour:this.formatHour(new Date(t.datetime),this.hass.locale,o),precipitationAmount:i,precipitationProbability:a,precipitationProbabilityText:l})}return r}getWind(e,t,i,n,o){const r=[];for(let s=i;s<t+i;s++){const t=e[s];let i="-",a="";t.wind_speed>0&&(i=`${Math.round(t.wind_speed)} ${n}`.trim(),a=this.formatWindDir(t.wind_bearing)),r.push({hour:this.formatHour(new Date(t.datetime),this.hass.locale,o),windSpeed:i,windSpeedRawMS:this.getWindSpeedMS(t.wind_speed,n),windDirection:a,windDirectionRaw:t.wind_bearing})}return r}formatWindDir(e){if("string"==typeof e){const t=e.toLowerCase();return t in Gt?this.localize(Gt[t]):e}return this.directions[Math.floor((e+11.25)/22.5)]}getWindSpeedMS(e,t){switch(t){case"m/s":return e;case"mph":return.44704*e;case"km/h":return.27777777777778*e;case"ft/s":return.3048*e;case"kt":case"kn":return.51444444444444*e}return-1}formatHour(e,t,i){const n=function(e,t){return c(t).format(e)}(e,t);return i||n.includes("AM")||n.includes("PM")?n.replace(":00",""):n}getColorSettings(e){if(!e)return{validColors:void 0,warnings:[]};const t=new Map,i=[];return Object.entries(e).forEach((([e,n])=>{this.isValidColorDefinition(e,n)?t.set(e,Sa.toColorObject(n)):i.push(`${e}: ${JSON.stringify(n,null,2)}`)})),{validColors:t,warnings:i}}isValidColorDefinition(e,t){if(!(e in qt))return!1;if("string"==typeof t){if(!Sa.isValidColor(t))return!1}else{if(!t.background&&!t.foreground)return!1;if(t.background&&!Sa.isValidColor(t.background))return!1;if(t.foreground&&!Sa.isValidColor(t.foreground))return!1}return!0}static isValidColor(e){return!!(j.isValidRGB(e)||j.isValidColorName(e)||j.isValidHSL(e))}static toColorObject(e){return"string"==typeof e?{background:e}:e}_handleAction(e){this.hass&&this.config&&e.detail.action&&function(e,t,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),v(e,t,i,o)}(this,this.hass,this.config,e.detail.action)}_showWarning(e){return Me` <hui-warning>${e}</hui-warning> `}async _showError(e){await new Promise((e=>setTimeout(e,0)));const t=document.createElement("hui-error-card");return t.setConfig({type:"error",error:e,origConfig:this.config}),Me` ${t} `}static get styles(){return tt``}};n([At({attribute:!1})],ka.prototype,"hass",void 0),n([$t()],ka.prototype,"config",void 0),n([$t()],ka.prototype,"renderedConfig",void 0),n([$t()],ka.prototype,"forecastEvent",void 0),n([$t()],ka.prototype,"subscribedToForecast",void 0),ka=Sa=n([yt("hourly-weather")],ka);
|
||
/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
const Oa=window,Ia=Oa.ShadowRoot&&(void 0===Oa.ShadyCSS||Oa.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ma=Symbol(),Na=new WeakMap;class Ra{constructor(e,t,i){if(this._$cssResult$=!0,i!==Ma)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(Ia&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=Na.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Na.set(t,e))}return e}toString(){return this.cssText}}const za=(e,...t)=>{const i=1===e.length?e[0]:t.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 Ra(i,e,Ma)},La=(e,t)=>{Ia?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),n=Oa.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=t.cssText,e.appendChild(i)}))},Ha=Ia?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new Ra("string"==typeof e?e:e+"",void 0,Ma))(t)})(e):e
|
||
/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/;
|
||
/**
|
||
* @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 Pa,Da=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}(),Va={ROOT:"mdc-form-field"},Fa={LABEL_SELECTOR:".mdc-form-field > label"},Ba=function(e){function n(t){var o=e.call(this,i(i({},n.defaultAdapter),t))||this;return o.click=function(){o.handleClick()},o}return t(n,e),Object.defineProperty(n,"cssClasses",{get:function(){return Va},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return Fa},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),n.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},n.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},n.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame((function(){e.adapter.deactivateInputRipple()}))},n}(Da);
|
||
/**
|
||
* @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.
|
||
*/const Ua=window,ja=Ua.trustedTypes,Wa=ja?ja.emptyScript:"",qa=Ua.reactiveElementPolyfillSupport,Ga={toAttribute(e,t){switch(t){case Boolean:e=e?Wa: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}},Xa=(e,t)=>t!==e&&(t==t||e==e),Ka={attribute:!0,type:String,converter:Ga,reflect:!1,hasChanged:Xa},Ya="finalized";class Za extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const n=this._$Ep(i,t);void 0!==n&&(this._$Ev.set(n,i),e.push(n))})),e}static createProperty(e,t=Ka){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,n=this.getPropertyDescriptor(e,i,t);void 0!==n&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(n){const o=this[e];this[t]=n,this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Ka}static finalize(){if(this.hasOwnProperty(Ya))return!1;this[Ya]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}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(Ha(e))}else void 0!==e&&t.push(Ha(e));return t}static _$Ep(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||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)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return La(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.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,i=Ka){var n;const o=this.constructor._$Ep(e,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==(null===(n=i.converter)||void 0===n?void 0:n.toAttribute)?i.converter:Ga).toAttribute(t,i.type);this._$El=e,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(e,t){var i;const n=this.constructor,o=n._$Ev.get(e);if(void 0!==o&&this._$El!==o){const e=n.getPropertyOptions(o),r="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:Ga;this._$El=o,this[o]=r.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let n=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||Xa)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(i)}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)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
var Ja;Za[Ya]=!0,Za.elementProperties=new Map,Za.elementStyles=[],Za.shadowRootOptions={mode:"open"},null==qa||qa({ReactiveElement:Za}),(null!==(Pa=Ua.reactiveElementVersions)&&void 0!==Pa?Pa:Ua.reactiveElementVersions=[]).push("1.6.2");const Qa=window,el=Qa.trustedTypes,tl=el?el.createPolicy("lit-html",{createHTML:e=>e}):void 0,il="$lit$",nl=`lit$${(Math.random()+"").slice(9)}$`,ol="?"+nl,rl=`<${ol}>`,sl=document,al=()=>sl.createComment(""),ll=e=>null===e||"object"!=typeof e&&"function"!=typeof e,dl=Array.isArray,cl="[ \t\n\f\r]",hl=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pl=/-->/g,ul=/>/g,ml=RegExp(`>|${cl}(?:([^\\s"'>=/]+)(${cl}*=${cl}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),fl=/'/g,gl=/"/g,vl=/^(?:script|style|textarea|title)$/i,_l=Symbol.for("lit-noChange"),bl=Symbol.for("lit-nothing"),yl=new WeakMap,xl=sl.createTreeWalker(sl,129,null,!1);function wl(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==tl?tl.createHTML(t):t}class Al{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let o=0,r=0;const s=e.length-1,a=this.parts,[l,d]=((e,t)=>{const i=e.length-1,n=[];let o,r=2===t?"<svg>":"",s=hl;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===hl?"!--"===l[1]?s=pl:void 0!==l[1]?s=ul:void 0!==l[2]?(vl.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=ml):void 0!==l[3]&&(s=ml):s===ml?">"===l[0]?(s=null!=o?o:hl,d=-1):void 0===l[1]?d=-2:(d=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?ml:'"'===l[3]?gl:fl):s===gl||s===fl?s=ml:s===pl||s===ul?s=hl:(s=ml,o=void 0);const h=s===ml&&e[t+1].startsWith("/>")?" ":"";r+=s===hl?i+rl:d>=0?(n.push(a),i.slice(0,d)+il+i.slice(d)+nl+h):i+nl+(-2===d?(n.push(void 0),t):h)}return[wl(e,r+(e[i]||"<?>")+(2===t?"</svg>":"")),n]})(e,t);if(this.el=Al.createElement(l,i),xl.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=xl.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const e=[];for(const t of n.getAttributeNames())if(t.endsWith(il)||t.startsWith(nl)){const i=d[r++];if(e.push(t),void 0!==i){const e=n.getAttribute(i.toLowerCase()+il).split(nl),t=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:t[2],strings:e,ctor:"."===t[1]?Tl:"?"===t[1]?Ol:"@"===t[1]?Il:Sl})}else a.push({type:6,index:o})}for(const t of e)n.removeAttribute(t)}if(vl.test(n.tagName)){const e=n.textContent.split(nl),t=e.length-1;if(t>0){n.textContent=el?el.emptyScript:"";for(let i=0;i<t;i++)n.append(e[i],al()),xl.nextNode(),a.push({type:2,index:++o});n.append(e[t],al())}}}else if(8===n.nodeType)if(n.data===ol)a.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(nl,e+1));)a.push({type:7,index:o}),e+=nl.length-1}o++}}static createElement(e,t){const i=sl.createElement("template");return i.innerHTML=e,i}}function $l(e,t,i=e,n){var o,r,s,a;if(t===_l)return t;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const d=ll(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(t=$l(e,l._$AS(e,t.values),l,n)),t}class El{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,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:sl).importNode(i,!0);xl.currentNode=o;let r=xl.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let t;2===l.type?t=new Cl(r,r.nextSibling,this,e):1===l.type?t=new l.ctor(r,l.name,l.strings,this,e):6===l.type&&(t=new Ml(r,this,e)),this._$AV.push(t),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=xl.nextNode(),s++)}return xl.currentNode=sl,o}v(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 Cl{constructor(e,t,i,n){var o;this.type=2,this._$AH=bl,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=$l(this,e,t),ll(e)?e===bl||null==e||""===e?(this._$AH!==bl&&this._$AR(),this._$AH=bl):e!==this._$AH&&e!==_l&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>dl(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==bl&&ll(this._$AH)?this._$AA.nextSibling.data=e:this.$(sl.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:n}=e,o="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=Al.createElement(wl(n.h,n.h[0]),this.options)),n);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(i);else{const e=new El(o,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=yl.get(e.strings);return void 0===t&&yl.set(e.strings,t=new Al(e)),t}T(e){dl(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const o of e)n===t.length?t.push(i=new Cl(this.k(al()),this.k(al()),this,this.options)):i=t[n],i._$AI(o),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Sl{constructor(e,t,i,n,o){this.type=1,this._$AH=bl,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=bl}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const o=this.strings;let r=!1;if(void 0===o)e=$l(this,e,t,0),r=!ll(e)||e!==this._$AH&&e!==_l,r&&(this._$AH=e);else{const n=e;let s,a;for(e=o[0],s=0;s<o.length-1;s++)a=$l(this,n[i+s],t,s),a===_l&&(a=this._$AH[s]),r||(r=!ll(a)||a!==this._$AH[s]),a===bl?e=bl:e!==bl&&(e+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(e)}j(e){e===bl?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class Tl extends Sl{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===bl?void 0:e}}const kl=el?el.emptyScript:"";class Ol extends Sl{constructor(){super(...arguments),this.type=4}j(e){e&&e!==bl?this.element.setAttribute(this.name,kl):this.element.removeAttribute(this.name)}}class Il extends Sl{constructor(e,t,i,n,o){super(e,t,i,n,o),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=$l(this,e,t,0))&&void 0!==i?i:bl)===_l)return;const n=this._$AH,o=e===bl&&n!==bl||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,r=e!==bl&&(n===bl||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}}class Ml{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){$l(this,e)}}const Nl=Qa.litHtmlPolyfillSupport;null==Nl||Nl(Al,Cl),(null!==(Ja=Qa.litHtmlVersions)&&void 0!==Ja?Ja:Qa.litHtmlVersions=[]).push("2.8.0");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
var Rl,zl;class Ll extends Za{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.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,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:t;let s=r._$litPart$;if(void 0===s){const e=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new Cl(t.insertBefore(al(),e),e,void 0,null!=i?i:{})}return s._$AI(e),s})(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 _l}}Ll.finalized=!0,Ll._$litElement$=!0,null===(Rl=globalThis.litElementHydrateSupport)||void 0===Rl||Rl.call(globalThis,{LitElement:Ll});const Hl=globalThis.litElementPolyfillSupport;null==Hl||Hl({LitElement:Ll}),(null!==(zl=globalThis.litElementVersions)&&void 0!==zl?zl:globalThis.litElementVersions=[]).push("3.3.3");
|
||
/**
|
||
* @license
|
||
* Copyright 2018 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/
|
||
const Pl=e=>e.nodeType===Node.ELEMENT_NODE;function Dl(e){return{addClass:t=>{e.classList.add(t)},removeClass:t=>{e.classList.remove(t)},hasClass:t=>e.classList.contains(t)}}const Vl=()=>{},Fl={get passive(){return!1}};document.addEventListener("x",Vl,Fl),document.removeEventListener("x",Vl);const Bl=(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},Ul=e=>{const t=Bl();if(!t.length)return!1;const i=t[t.length-1],n=new Event("check-if-focused",{bubbles:!0,composed:!0});let o=[];const r=e=>{o=e.composedPath()};return document.body.addEventListener("check-if-focused",r),i.dispatchEvent(n),document.body.removeEventListener("check-if-focused",r),-1!==o.indexOf(e)};
|
||
/**
|
||
* @license
|
||
* Copyright 2018 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/
|
||
class jl extends Ll{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 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/const Wl=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}},ql=(e,t,i)=>{t.constructor.createProperty(i,e)};function Gl(e){return(t,i)=>void 0!==i?ql(e,t,i):Wl(e,t)
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/}function Xl(e){return Gl({...e,state:!0})}
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/const Kl=({finisher:e,descriptor:t})=>(i,n)=>{var o;if(void 0===n){const n=null!==(o=i.originalKey)&&void 0!==o?o:i.key,r=null!=t?{kind:"method",placement:"prototype",key:n,descriptor:t(i.key)}:{...i,key:n};return null!=e&&(r.finisher=function(t){e(t,n)}),r}{const o=i.constructor;void 0!==t&&Object.defineProperty(i,n,t(n)),null==e||e(o,n)}}
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/;function Yl(e){return Kl({finisher:(t,i)=>{Object.assign(t.prototype[i],e)}})}
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/function Zl(e,t){return Kl({descriptor:i=>{const n={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(t){const t="symbol"==typeof i?Symbol():"__"+i;n.get=function(){var i,n;return void 0===this[t]&&(this[t]=null!==(n=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(e))&&void 0!==n?n:null),this[t]}}return n}})}
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/function Jl(e){return Kl({descriptor:t=>({async get(){var t;return await this.updateComplete,null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e)},enumerable:!0,configurable:!0})})}
|
||
/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/var Ql;const ed=null!=(null===(Ql=window.HTMLSlotElement)||void 0===Ql?void 0:Ql.prototype.assignedElements)?(e,t)=>e.assignedElements(t):(e,t)=>e.assignedNodes(t).filter((e=>e.nodeType===Node.ELEMENT_NODE));
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
function td(e,t,i){let n,o=e;return"object"==typeof e?(o=e.slot,n=e):n={flatten:t},i?function(e){const{slot:t,selector:i}=null!=e?e:{};return Kl({descriptor:n=>({get(){var n;const o="slot"+(t?`[name=${t}]`:":not([name])"),r=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(o),s=null!=r?ed(r,e):[];return i?s.filter((e=>e.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:o,flatten:t,selector:i}):Kl({descriptor:e=>({get(){var e,t;const i="slot"+(o?`[name=${o}]`:":not([name])"),r=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(i);return null!==(t=null==r?void 0:r.assignedNodes(n))&&void 0!==t?t:[]},enumerable:!0,configurable:!0})})}
|
||
/**
|
||
* @license
|
||
* Copyright 2018 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/var id,nd;const od=null!==(nd=null===(id=window.ShadyDOM)||void 0===id?void 0:id.inUse)&&void 0!==nd&&nd;class rd extends jl{constructor(){super(...arguments),this.disabled=!1,this.containingForm=null,this.formDataListener=e=>{this.disabled||this.setFormData(e.formData)}}findFormElement(){if(!this.shadowRoot||od)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))}))}}rd.shadowRootOptions={mode:"open",delegatesFocus:!0},n([Gl({type:Boolean})],rd.prototype,"disabled",void 0);
|
||
/**
|
||
* @license
|
||
* Copyright 2018 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/
|
||
const sd=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
|
||
*/;var ad;const ld=window,dd=ld.trustedTypes,cd=dd?dd.createPolicy("lit-html",{createHTML:e=>e}):void 0,hd="$lit$",pd=`lit$${(Math.random()+"").slice(9)}$`,ud="?"+pd,md=`<${ud}>`,fd=document,gd=()=>fd.createComment(""),vd=e=>null===e||"object"!=typeof e&&"function"!=typeof e,_d=Array.isArray,bd="[ \t\n\f\r]",yd=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xd=/-->/g,wd=/>/g,Ad=RegExp(`>|${bd}(?:([^\\s"'>=/]+)(${bd}*=${bd}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),$d=/'/g,Ed=/"/g,Cd=/^(?:script|style|textarea|title)$/i,Sd=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),Td=Symbol.for("lit-noChange"),kd=Symbol.for("lit-nothing"),Od=new WeakMap,Id=fd.createTreeWalker(fd,129,null,!1);function Md(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==cd?cd.createHTML(t):t}class Nd{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let o=0,r=0;const s=e.length-1,a=this.parts,[l,d]=((e,t)=>{const i=e.length-1,n=[];let o,r=2===t?"<svg>":"",s=yd;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===yd?"!--"===l[1]?s=xd:void 0!==l[1]?s=wd:void 0!==l[2]?(Cd.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=Ad):void 0!==l[3]&&(s=Ad):s===Ad?">"===l[0]?(s=null!=o?o:yd,d=-1):void 0===l[1]?d=-2:(d=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Ad:'"'===l[3]?Ed:$d):s===Ed||s===$d?s=Ad:s===xd||s===wd?s=yd:(s=Ad,o=void 0);const h=s===Ad&&e[t+1].startsWith("/>")?" ":"";r+=s===yd?i+md:d>=0?(n.push(a),i.slice(0,d)+hd+i.slice(d)+pd+h):i+pd+(-2===d?(n.push(void 0),t):h)}return[Md(e,r+(e[i]||"<?>")+(2===t?"</svg>":"")),n]})(e,t);if(this.el=Nd.createElement(l,i),Id.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=Id.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const e=[];for(const t of n.getAttributeNames())if(t.endsWith(hd)||t.startsWith(pd)){const i=d[r++];if(e.push(t),void 0!==i){const e=n.getAttribute(i.toLowerCase()+hd).split(pd),t=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:t[2],strings:e,ctor:"."===t[1]?Pd:"?"===t[1]?Vd:"@"===t[1]?Fd:Hd})}else a.push({type:6,index:o})}for(const t of e)n.removeAttribute(t)}if(Cd.test(n.tagName)){const e=n.textContent.split(pd),t=e.length-1;if(t>0){n.textContent=dd?dd.emptyScript:"";for(let i=0;i<t;i++)n.append(e[i],gd()),Id.nextNode(),a.push({type:2,index:++o});n.append(e[t],gd())}}}else if(8===n.nodeType)if(n.data===ud)a.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(pd,e+1));)a.push({type:7,index:o}),e+=pd.length-1}o++}}static createElement(e,t){const i=fd.createElement("template");return i.innerHTML=e,i}}function Rd(e,t,i=e,n){var o,r,s,a;if(t===Td)return t;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const d=vd(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(t=Rd(e,l._$AS(e,t.values),l,n)),t}class zd{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,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:fd).importNode(i,!0);Id.currentNode=o;let r=Id.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let t;2===l.type?t=new Ld(r,r.nextSibling,this,e):1===l.type?t=new l.ctor(r,l.name,l.strings,this,e):6===l.type&&(t=new Bd(r,this,e)),this._$AV.push(t),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=Id.nextNode(),s++)}return Id.currentNode=fd,o}v(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 Ld{constructor(e,t,i,n){var o;this.type=2,this._$AH=kd,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Rd(this,e,t),vd(e)?e===kd||null==e||""===e?(this._$AH!==kd&&this._$AR(),this._$AH=kd):e!==this._$AH&&e!==Td&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>_d(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==kd&&vd(this._$AH)?this._$AA.nextSibling.data=e:this.$(fd.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:n}=e,o="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=Nd.createElement(Md(n.h,n.h[0]),this.options)),n);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(i);else{const e=new zd(o,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=Od.get(e.strings);return void 0===t&&Od.set(e.strings,t=new Nd(e)),t}T(e){_d(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const o of e)n===t.length?t.push(i=new Ld(this.k(gd()),this.k(gd()),this,this.options)):i=t[n],i._$AI(o),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Hd{constructor(e,t,i,n,o){this.type=1,this._$AH=kd,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=kd}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const o=this.strings;let r=!1;if(void 0===o)e=Rd(this,e,t,0),r=!vd(e)||e!==this._$AH&&e!==Td,r&&(this._$AH=e);else{const n=e;let s,a;for(e=o[0],s=0;s<o.length-1;s++)a=Rd(this,n[i+s],t,s),a===Td&&(a=this._$AH[s]),r||(r=!vd(a)||a!==this._$AH[s]),a===kd?e=kd:e!==kd&&(e+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(e)}j(e){e===kd?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class Pd extends Hd{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===kd?void 0:e}}const Dd=dd?dd.emptyScript:"";class Vd extends Hd{constructor(){super(...arguments),this.type=4}j(e){e&&e!==kd?this.element.setAttribute(this.name,Dd):this.element.removeAttribute(this.name)}}class Fd extends Hd{constructor(e,t,i,n,o){super(e,t,i,n,o),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=Rd(this,e,t,0))&&void 0!==i?i:kd)===Td)return;const n=this._$AH,o=e===kd&&n!==kd||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,r=e!==kd&&(n===kd||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}}class Bd{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){Rd(this,e)}}const Ud=ld.litHtmlPolyfillSupport;null==Ud||Ud(Nd,Ld),(null!==(ad=ld.litHtmlVersions)&&void 0!==ad?ad:ld.litHtmlVersions=[]).push("2.8.0");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
var jd,Wd;class qd extends Za{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.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,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:t;let s=r._$litPart$;if(void 0===s){const e=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new Ld(t.insertBefore(gd(),e),e,void 0,null!=i?i:{})}return s._$AI(e),s})(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 Td}}qd.finalized=!0,qd._$litElement$=!0,null===(jd=globalThis.litElementHydrateSupport)||void 0===jd||jd.call(globalThis,{LitElement:qd});const Gd=globalThis.litElementPolyfillSupport;null==Gd||Gd({LitElement:qd}),(null!==(Wd=globalThis.litElementVersions)&&void 0!==Wd?Wd:globalThis.litElementVersions=[]).push("3.3.3");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
const Xd=1;class Kd{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 Yd=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends Kd{constructor(e){var t;if(super(e),e.type!==Xd||"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]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const o=e.element.classList;this.it.forEach((e=>{e in t||(o.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(n=this.nt)||void 0===n?void 0:n.has(e))||(i?(o.add(e),this.it.add(e)):(o.remove(e),this.it.delete(e)))}return Td}});
|
||
/**
|
||
* @license
|
||
* Copyright 2018 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/class Zd extends jl{constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=Ba}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 rd){const t=await e.ripple;t&&t.startPress()}},deactivateInputRipple:async()=>{const e=this.input;if(e instanceof rd){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 Sd`
|
||
<div class="mdc-form-field ${Yd(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())}}n([Gl({type:Boolean})],Zd.prototype,"alignEnd",void 0),n([Gl({type:Boolean})],Zd.prototype,"spaceBetween",void 0),n([Gl({type:Boolean})],Zd.prototype,"nowrap",void 0),n([Gl({type:String}),sd((async function(e){var t;null===(t=this.input)||void 0===t||t.setAttribute("aria-label",e)}))],Zd.prototype,"label",void 0),n([Zl(".mdc-form-field")],Zd.prototype,"mdcRoot",void 0),n([td("",!0,"*")],Zd.prototype,"slottedInputs",void 0),n([Zl("label")],Zd.prototype,"labelEl",void 0);
|
||
/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
* SPDX-LIcense-Identifier: Apache-2.0
|
||
*/
|
||
const Jd=za`.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}`,Qd={"mwc-formfield":class extends Zd{static get styles(){return Jd}}};
|
||
/**
|
||
* @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 ec={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"},tc=new Set;tc.add(ec.BACKSPACE),tc.add(ec.ENTER),tc.add(ec.SPACEBAR),tc.add(ec.PAGE_UP),tc.add(ec.PAGE_DOWN),tc.add(ec.END),tc.add(ec.HOME),tc.add(ec.ARROW_LEFT),tc.add(ec.ARROW_UP),tc.add(ec.ARROW_RIGHT),tc.add(ec.ARROW_DOWN),tc.add(ec.DELETE),tc.add(ec.ESCAPE),tc.add(ec.TAB);var ic=8,nc=13,oc=32,rc=33,sc=34,ac=35,lc=36,dc=37,cc=38,hc=39,pc=40,uc=46,mc=27,fc=9,gc=new Map;gc.set(ic,ec.BACKSPACE),gc.set(nc,ec.ENTER),gc.set(oc,ec.SPACEBAR),gc.set(rc,ec.PAGE_UP),gc.set(sc,ec.PAGE_DOWN),gc.set(ac,ec.END),gc.set(lc,ec.HOME),gc.set(dc,ec.ARROW_LEFT),gc.set(cc,ec.ARROW_UP),gc.set(hc,ec.ARROW_RIGHT),gc.set(pc,ec.ARROW_DOWN),gc.set(uc,ec.DELETE),gc.set(mc,ec.ESCAPE),gc.set(fc,ec.TAB);var vc,_c,bc=new Set;function yc(e){var t=e.key;if(tc.has(t))return t;var i=gc.get(e.keyCode);return i||ec.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.
|
||
*/bc.add(ec.PAGE_UP),bc.add(ec.PAGE_DOWN),bc.add(ec.END),bc.add(ec.HOME),bc.add(ec.ARROW_LEFT),bc.add(ec.ARROW_UP),bc.add(ec.ARROW_RIGHT),bc.add(ec.ARROW_DOWN);var xc="mdc-list-item--activated",wc="mdc-list-item",Ac="mdc-list-item--disabled",$c="mdc-list-item--selected",Ec="mdc-list-item__text",Cc="mdc-list-item__primary-text",Sc="mdc-list";(vc={})[""+xc]="mdc-list-item--activated",vc[""+wc]="mdc-list-item",vc[""+Ac]="mdc-list-item--disabled",vc[""+$c]="mdc-list-item--selected",vc[""+Cc]="mdc-list-item__primary-text",vc[""+Sc]="mdc-list";var Tc=((_c={})[""+xc]="mdc-deprecated-list-item--activated",_c[""+wc]="mdc-deprecated-list-item",_c[""+Ac]="mdc-deprecated-list-item--disabled",_c[""+$c]="mdc-deprecated-list-item--selected",_c[""+Ec]="mdc-deprecated-list-item__text",_c[""+Cc]="mdc-deprecated-list-item__primary-text",_c[""+Sc]="mdc-deprecated-list",_c),kc={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 ."+wc+" button:not(:disabled),\n ."+wc+" a,\n ."+Tc[wc]+" button:not(:disabled),\n ."+Tc[wc]+" a\n ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n ."+wc+" button:not(:disabled),\n ."+wc+" a,\n ."+wc+' input[type="radio"]:not(:disabled),\n .'+wc+' input[type="checkbox"]:not(:disabled),\n .'+Tc[wc]+" button:not(:disabled),\n ."+Tc[wc]+" a,\n ."+Tc[wc]+' input[type="radio"]:not(:disabled),\n .'+Tc[wc]+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},Oc={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},Ic=["input","button","textarea","select"],Mc=function(e){var t=e.target;if(t){var i=(""+t.tagName).toLowerCase();-1===Ic.indexOf(i)&&e.preventDefault()}};function Nc(e,t){for(var i=new Map,n=0;n<e;n++){var o=t(n).trim();if(o){var r=o[0].toLowerCase();i.has(r)||i.set(r,[]),i.get(r).push({text:o.toLowerCase(),index:n})}}return i.forEach((function(e){e.sort((function(e,t){return e.index-t.index}))})),i}function Rc(e,t){var i,n=e.nextChar,o=e.focusItemAtIndex,r=e.sortedIndexByFirstChar,s=e.focusedItemIndex,a=e.skipFocus,l=e.isItemAtIndexDisabled;return clearTimeout(t.bufferClearTimeout),t.bufferClearTimeout=setTimeout((function(){!function(e){e.typeaheadBuffer=""}(t)}),Oc.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),t.typeaheadBuffer=t.typeaheadBuffer+n,i=1===t.typeaheadBuffer.length?function(e,t,i,n){var o=n.typeaheadBuffer[0],r=e.get(o);if(!r)return-1;if(o===n.currentFirstChar&&r[n.sortedIndexCursor].index===t){n.sortedIndexCursor=(n.sortedIndexCursor+1)%r.length;var s=r[n.sortedIndexCursor].index;if(!i(s))return s}n.currentFirstChar=o;var a,l=-1;for(a=0;a<r.length;a++)if(!i(r[a].index)){l=a;break}for(;a<r.length;a++)if(r[a].index>t&&!i(r[a].index)){l=a;break}if(-1!==l)return n.sortedIndexCursor=l,r[n.sortedIndexCursor].index;return-1}(r,s,l,t):function(e,t,i){var n=i.typeaheadBuffer[0],o=e.get(n);if(!o)return-1;var r=o[i.sortedIndexCursor];if(0===r.text.lastIndexOf(i.typeaheadBuffer,0)&&!t(r.index))return r.index;var s=(i.sortedIndexCursor+1)%o.length,a=-1;for(;s!==i.sortedIndexCursor;){var l=o[s],d=0===l.text.lastIndexOf(i.typeaheadBuffer,0),c=!t(l.index);if(d&&c){a=s;break}s=(s+1)%o.length}if(-1!==a)return i.sortedIndexCursor=a,o[i.sortedIndexCursor].index;return-1}(r,l,t),-1===i||a||o(i),i}function zc(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 Lc={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},Hc=function(e){function n(t){var o=e.call(this,i(i({},n.defaultAdapter),t))||this;return o.shakeAnimationEndHandler=function(){o.handleShakeAnimationEnd()},o}return t(n,e),Object.defineProperty(n,"cssClasses",{get:function(){return Lc},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),n.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},n.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},n.prototype.getWidth=function(){return this.adapter.getWidth()},n.prototype.shake=function(e){var t=n.cssClasses.LABEL_SHAKE;e?this.adapter.addClass(t):this.adapter.removeClass(t)},n.prototype.float=function(e){var t=n.cssClasses,i=t.LABEL_FLOAT_ABOVE,o=t.LABEL_SHAKE;e?this.adapter.addClass(i):(this.adapter.removeClass(i),this.adapter.removeClass(o))},n.prototype.setRequired=function(e){var t=n.cssClasses.LABEL_REQUIRED;e?this.adapter.addClass(t):this.adapter.removeClass(t)},n.prototype.handleShakeAnimationEnd=function(){var e=n.cssClasses.LABEL_SHAKE;this.adapter.removeClass(e)},n}(Da);
|
||
/**
|
||
* @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.
|
||
*/
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
const Pc=1,Dc=3;class Vc{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: Apache-2.0
|
||
*/const Fc=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends Vc{constructor(e){switch(super(e),this.foundation=null,this.previousPart=null,e.type){case Pc:case Dc: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 Hc(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 Bc={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},Uc=function(e){function n(t){var o=e.call(this,i(i({},n.defaultAdapter),t))||this;return o.transitionEndHandler=function(e){o.handleTransitionEnd(e)},o}return t(n,e),Object.defineProperty(n,"cssClasses",{get:function(){return Bc},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),n.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},n.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},n.prototype.activate=function(){this.adapter.removeClass(Bc.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(Bc.LINE_RIPPLE_ACTIVE)},n.prototype.setRippleCenter=function(e){this.adapter.setStyle("transform-origin",e+"px center")},n.prototype.deactivate=function(){this.adapter.addClass(Bc.LINE_RIPPLE_DEACTIVATING)},n.prototype.handleTransitionEnd=function(e){var t=this.adapter.hasClass(Bc.LINE_RIPPLE_DEACTIVATING);"opacity"===e.propertyName&&t&&(this.adapter.removeClass(Bc.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(Bc.LINE_RIPPLE_DEACTIVATING))},n}(Da);
|
||
/**
|
||
* @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 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
const jc=1,Wc=3;class qc{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 2019 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/const Gc=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends qc{constructor(e){switch(super(e),this.previousPart=null,this.foundation=null,e.type){case jc:case Wc: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 Uc(i),this.foundation.init()}return this.render()}render(){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 Xc,Kc,Yc={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"},Zc={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(", ")},Jc={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"}(Xc||(Xc={})),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"}(Kc||(Kc={}));
|
||
/**
|
||
* @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 Qc,eh={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"},th={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"},ih={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},nh=function(e){function n(t,o){void 0===o&&(o={});var r=e.call(this,i(i({},n.defaultAdapter),t))||this;return r.disabled=!1,r.isMenuOpen=!1,r.useDefaultValidation=!0,r.customValidity=!0,r.lastSelectedIndex=ih.UNSET_INDEX,r.clickDebounceTimeout=0,r.recentlyClicked=!1,r.leadingIcon=o.leadingIcon,r.helperText=o.helperText,r}return t(n,e),Object.defineProperty(n,"cssClasses",{get:function(){return eh},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return ih},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return th},enumerable:!1,configurable:!0}),Object.defineProperty(n,"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}),n.prototype.getSelectedIndex=function(){return this.adapter.getSelectedIndex()},n.prototype.setSelectedIndex=function(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1),e>=this.adapter.getMenuItemCount()||(e===ih.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)},n.prototype.setValue=function(e,t){void 0===t&&(t=!1);var i=this.adapter.getMenuItemValues().indexOf(e);this.setSelectedIndex(i,!1,t)},n.prototype.getValue=function(){var e=this.adapter.getSelectedIndex(),t=this.adapter.getMenuItemValues();return e!==ih.UNSET_INDEX?t[e]:""},n.prototype.getDisabled=function(){return this.disabled},n.prototype.setDisabled=function(e){this.disabled=e,this.disabled?(this.adapter.addClass(eh.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(eh.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())},n.prototype.openMenu=function(){this.adapter.addClass(eh.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},n.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},n.prototype.layout=function(){if(this.adapter.hasLabel()){var e=this.getValue().length>0,t=this.adapter.hasClass(eh.FOCUSED),i=e||t,n=this.adapter.hasClass(eh.REQUIRED);this.notchOutline(i),this.adapter.floatLabel(i),this.adapter.setLabelRequired(n)}},n.prototype.layoutOptions=function(){var e=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(e,!1,!0)},n.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var e=this.getSelectedIndex(),t=e>=0?e:0;this.adapter.focusMenuItemAtIndex(t)}},n.prototype.handleMenuClosing=function(){this.adapter.setSelectAnchorAttr("aria-expanded","false")},n.prototype.handleMenuClosed=function(){this.adapter.removeClass(eh.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused()||this.blur()},n.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(eh.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},n.prototype.handleMenuItemAction=function(e){this.setSelectedIndex(e,!0)},n.prototype.handleFocus=function(){this.adapter.addClass(eh.FOCUSED),this.layout(),this.adapter.activateBottomLine()},n.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},n.prototype.handleClick=function(e){this.disabled||this.recentlyClicked||(this.setClickDebounceTimeout(),this.isMenuOpen?this.adapter.closeMenu():(this.adapter.setRippleCenter(e),this.openMenu()))},n.prototype.handleKeydown=function(e){if(!this.isMenuOpen&&this.adapter.hasClass(eh.FOCUSED)){var t=yc(e)===ec.ENTER,i=yc(e)===ec.SPACEBAR,n=yc(e)===ec.ARROW_UP,o=yc(e)===ec.ARROW_DOWN;if(!(e.ctrlKey||e.metaKey)&&(!i&&e.key&&1===e.key.length||i&&this.adapter.isTypeaheadInProgress())){var r=i?" ":e.key,s=this.adapter.typeaheadMatchItem(r,this.getSelectedIndex());return s>=0&&this.setSelectedIndex(s),void e.preventDefault()}(t||i||n||o)&&(this.openMenu(),e.preventDefault())}},n.prototype.notchOutline=function(e){if(this.adapter.hasOutline()){var t=this.adapter.hasClass(eh.FOCUSED);if(e){var i=ih.LABEL_SCALE,n=this.adapter.getLabelWidth()*i;this.adapter.notchOutline(n)}else t||this.adapter.closeOutline()}},n.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},n.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},n.prototype.getUseDefaultValidation=function(){return this.useDefaultValidation},n.prototype.setUseDefaultValidation=function(e){this.useDefaultValidation=e},n.prototype.setValid=function(e){this.useDefaultValidation||(this.customValidity=e),this.adapter.setSelectAnchorAttr("aria-invalid",(!e).toString()),e?(this.adapter.removeClass(eh.INVALID),this.adapter.removeMenuClass(eh.MENU_INVALID)):(this.adapter.addClass(eh.INVALID),this.adapter.addMenuClass(eh.MENU_INVALID)),this.syncHelperTextValidity(e)},n.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(eh.REQUIRED)&&!this.adapter.hasClass(eh.DISABLED)?this.getSelectedIndex()!==ih.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},n.prototype.setRequired=function(e){e?this.adapter.addClass(eh.REQUIRED):this.adapter.removeClass(eh.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",e.toString()),this.adapter.setLabelRequired(e)},n.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},n.prototype.init=function(){var e=this.adapter.getAnchorElement();e&&(this.adapter.setMenuAnchorElement(e),this.adapter.setMenuAnchorCorner(Kc.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(eh.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(eh.INVALID)),this.layout(),this.layoutOptions()},n.prototype.blur=function(){this.adapter.removeClass(eh.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(eh.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},n.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(th.ARIA_DESCRIBEDBY,i):this.adapter.removeSelectAnchorAttr(th.ARIA_DESCRIBEDBY)}},n.prototype.setClickDebounceTimeout=function(){var e=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout((function(){e.recentlyClicked=!1}),ih.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},n}(Da);const oh=window,rh=oh.trustedTypes,sh=rh?rh.createPolicy("lit-html",{createHTML:e=>e}):void 0,ah="$lit$",lh=`lit$${(Math.random()+"").slice(9)}$`,dh="?"+lh,ch=`<${dh}>`,hh=document,ph=()=>hh.createComment(""),uh=e=>null===e||"object"!=typeof e&&"function"!=typeof e,mh=Array.isArray,fh="[ \t\n\f\r]",gh=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vh=/-->/g,_h=/>/g,bh=RegExp(`>|${fh}(?:([^\\s"'>=/]+)(${fh}*=${fh}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),yh=/'/g,xh=/"/g,wh=/^(?:script|style|textarea|title)$/i,Ah=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),$h=Symbol.for("lit-noChange"),Eh=Symbol.for("lit-nothing"),Ch=new WeakMap,Sh=hh.createTreeWalker(hh,129,null,!1);function Th(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==sh?sh.createHTML(t):t}class kh{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let o=0,r=0;const s=e.length-1,a=this.parts,[l,d]=((e,t)=>{const i=e.length-1,n=[];let o,r=2===t?"<svg>":"",s=gh;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===gh?"!--"===l[1]?s=vh:void 0!==l[1]?s=_h:void 0!==l[2]?(wh.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=bh):void 0!==l[3]&&(s=bh):s===bh?">"===l[0]?(s=null!=o?o:gh,d=-1):void 0===l[1]?d=-2:(d=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?bh:'"'===l[3]?xh:yh):s===xh||s===yh?s=bh:s===vh||s===_h?s=gh:(s=bh,o=void 0);const h=s===bh&&e[t+1].startsWith("/>")?" ":"";r+=s===gh?i+ch:d>=0?(n.push(a),i.slice(0,d)+ah+i.slice(d)+lh+h):i+lh+(-2===d?(n.push(void 0),t):h)}return[Th(e,r+(e[i]||"<?>")+(2===t?"</svg>":"")),n]})(e,t);if(this.el=kh.createElement(l,i),Sh.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=Sh.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const e=[];for(const t of n.getAttributeNames())if(t.endsWith(ah)||t.startsWith(lh)){const i=d[r++];if(e.push(t),void 0!==i){const e=n.getAttribute(i.toLowerCase()+ah).split(lh),t=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:t[2],strings:e,ctor:"."===t[1]?Rh:"?"===t[1]?Lh:"@"===t[1]?Hh:Nh})}else a.push({type:6,index:o})}for(const t of e)n.removeAttribute(t)}if(wh.test(n.tagName)){const e=n.textContent.split(lh),t=e.length-1;if(t>0){n.textContent=rh?rh.emptyScript:"";for(let i=0;i<t;i++)n.append(e[i],ph()),Sh.nextNode(),a.push({type:2,index:++o});n.append(e[t],ph())}}}else if(8===n.nodeType)if(n.data===dh)a.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(lh,e+1));)a.push({type:7,index:o}),e+=lh.length-1}o++}}static createElement(e,t){const i=hh.createElement("template");return i.innerHTML=e,i}}function Oh(e,t,i=e,n){var o,r,s,a;if(t===$h)return t;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const d=uh(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(t=Oh(e,l._$AS(e,t.values),l,n)),t}class Ih{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,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:hh).importNode(i,!0);Sh.currentNode=o;let r=Sh.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let t;2===l.type?t=new Mh(r,r.nextSibling,this,e):1===l.type?t=new l.ctor(r,l.name,l.strings,this,e):6===l.type&&(t=new Ph(r,this,e)),this._$AV.push(t),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=Sh.nextNode(),s++)}return Sh.currentNode=hh,o}v(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 Mh{constructor(e,t,i,n){var o;this.type=2,this._$AH=Eh,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Oh(this,e,t),uh(e)?e===Eh||null==e||""===e?(this._$AH!==Eh&&this._$AR(),this._$AH=Eh):e!==this._$AH&&e!==$h&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>mh(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Eh&&uh(this._$AH)?this._$AA.nextSibling.data=e:this.$(hh.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:n}=e,o="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=kh.createElement(Th(n.h,n.h[0]),this.options)),n);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(i);else{const e=new Ih(o,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=Ch.get(e.strings);return void 0===t&&Ch.set(e.strings,t=new kh(e)),t}T(e){mh(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const o of e)n===t.length?t.push(i=new Mh(this.k(ph()),this.k(ph()),this,this.options)):i=t[n],i._$AI(o),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Nh{constructor(e,t,i,n,o){this.type=1,this._$AH=Eh,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Eh}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const o=this.strings;let r=!1;if(void 0===o)e=Oh(this,e,t,0),r=!uh(e)||e!==this._$AH&&e!==$h,r&&(this._$AH=e);else{const n=e;let s,a;for(e=o[0],s=0;s<o.length-1;s++)a=Oh(this,n[i+s],t,s),a===$h&&(a=this._$AH[s]),r||(r=!uh(a)||a!==this._$AH[s]),a===Eh?e=Eh:e!==Eh&&(e+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(e)}j(e){e===Eh?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class Rh extends Nh{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Eh?void 0:e}}const zh=rh?rh.emptyScript:"";class Lh extends Nh{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Eh?this.element.setAttribute(this.name,zh):this.element.removeAttribute(this.name)}}class Hh extends Nh{constructor(e,t,i,n,o){super(e,t,i,n,o),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=Oh(this,e,t,0))&&void 0!==i?i:Eh)===$h)return;const n=this._$AH,o=e===Eh&&n!==Eh||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,r=e!==Eh&&(n===Eh||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}}class Ph{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){Oh(this,e)}}const Dh=oh.litHtmlPolyfillSupport;null==Dh||Dh(kh,Mh),(null!==(Qc=oh.litHtmlVersions)&&void 0!==Qc?Qc:oh.litHtmlVersions=[]).push("2.8.0");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
var Vh,Fh;class Bh extends Za{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.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,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:t;let s=r._$litPart$;if(void 0===s){const e=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new Mh(t.insertBefore(ph(),e),e,void 0,null!=i?i:{})}return s._$AI(e),s})(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 $h}}Bh.finalized=!0,Bh._$litElement$=!0,null===(Vh=globalThis.litElementHydrateSupport)||void 0===Vh||Vh.call(globalThis,{LitElement:Bh});const Uh=globalThis.litElementPolyfillSupport;null==Uh||Uh({LitElement:Bh}),(null!==(Fh=globalThis.litElementVersions)&&void 0!==Fh?Fh:globalThis.litElementVersions=[]).push("3.3.3");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
const jh=1;class Wh{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 qh=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends Wh{constructor(e){var t;if(super(e),e.type!==jh||"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]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const o=e.element.classList;this.it.forEach((e=>{e in t||(o.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(n=this.nt)||void 0===n?void 0:n.has(e))||(i?(o.add(e),this.it.add(e)):(o.remove(e),this.it.delete(e)))}return $h}}),Gh=e=>null!=e?e:Eh
|
||
/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/,Xh=(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 2018 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/class Kh extends rd{constructor(){super(...arguments),this.mdcFoundationClass=nh,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=Xh()}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 Ah`
|
||
<div
|
||
class="mdc-select ${qh(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=${Gh(t)}
|
||
aria-required=${this.required}
|
||
aria-describedby=${Gh(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 Ah`
|
||
<mwc-menu
|
||
innerRole="listbox"
|
||
wrapFocus
|
||
class=" ${qh(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 Ah`<slot></slot>`}renderRipple(){return this.outlined?Eh:Ah`
|
||
<span class="mdc-select__ripple"></span>
|
||
`}renderOutline(){return this.outlined?Ah`
|
||
<mwc-notched-outline
|
||
.width=${this.outlineWidth}
|
||
.open=${this.outlineOpen}
|
||
class="mdc-notched-outline">
|
||
${this.renderLabel()}
|
||
</mwc-notched-outline>`:Eh}renderLabel(){return this.label?Ah`
|
||
<span
|
||
.floatingLabelFoundation=${Fc(this.label)}
|
||
id="label">${this.label}</span>
|
||
`:Eh}renderLeadingIcon(){return this.icon?Ah`<mwc-icon class="mdc-select__icon"><div>${this.icon}</div></mwc-icon>`:Eh}renderLineRipple(){return this.outlined?Eh:Ah`
|
||
<span .lineRippleFoundation=${Gc()}></span>
|
||
`}renderHelperText(){if(!this.shouldRenderHelperText)return Eh;const e=this.validationMessage&&!this.isUiValid;return Ah`
|
||
<p
|
||
class="mdc-select-helper-text ${qh({"mdc-select-helper-text--validation-msg":e})}"
|
||
id="helper-text">${e?this.validationMessage:this.helper}</p>`}createAdapter(){return Object.assign(Object.assign({},Dl(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:()=>zc(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=Rc(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=Xh(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=Nc(this.items.length,(e=>this.items[e].text))}onItemsUpdated(){this.sortedIndexByFirstChar=Nc(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=yc(e)===ec.ARROW_UP,i=yc(e)===ec.ARROW_DOWN;if(i||t){const n=t&&this.index>0,o=i&&this.index<this.items.length-1;return n?this.select(this.index-1):o&&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=Pl(e.target)?e.target:null;!function(e,t){var i=e.event,n=e.isTargetListItem,o=e.focusedItemIndex,r=e.focusItemAtIndex,s=e.sortedIndexByFirstChar,a=e.isItemAtIndexDisabled,l="ArrowLeft"===yc(i),d="ArrowUp"===yc(i),c="ArrowRight"===yc(i),h="ArrowDown"===yc(i),p="Home"===yc(i),u="End"===yc(i),m="Enter"===yc(i),f="Spacebar"===yc(i);i.altKey||i.ctrlKey||i.metaKey||l||d||c||h||p||u||m||(f||1!==i.key.length?f&&(n&&Mc(i),n&&zc(t)&&Rc({focusItemAtIndex:r,focusedItemIndex:o,nextChar:" ",sortedIndexByFirstChar:s,skipFocus:!1,isItemAtIndexDisabled:a},t)):(Mc(i),Rc({focusItemAtIndex:r,focusedItemIndex:o,nextChar:i.key.toLowerCase(),sortedIndexByFirstChar:s,skipFocus:!1,isItemAtIndexDisabled:a},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 o=i.floatingLabelFoundation.getWidth();this.outlineOpen&&(this.outlineWidth=o)}async layoutOptions(){this.mdcFoundation&&this.mdcFoundation.layoutOptions()}}
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
var Yh;n([Zl(".mdc-select")],Kh.prototype,"mdcRoot",void 0),n([Zl(".formElement")],Kh.prototype,"formElement",void 0),n([Zl("slot")],Kh.prototype,"slotElement",void 0),n([Zl("select")],Kh.prototype,"nativeSelectElement",void 0),n([Zl("input")],Kh.prototype,"nativeInputElement",void 0),n([Zl(".mdc-line-ripple")],Kh.prototype,"lineRippleElement",void 0),n([Zl(".mdc-floating-label")],Kh.prototype,"labelElement",void 0),n([Zl("mwc-notched-outline")],Kh.prototype,"outlineElement",void 0),n([Zl(".mdc-menu")],Kh.prototype,"menuElement",void 0),n([Zl(".mdc-select__anchor")],Kh.prototype,"anchorElement",void 0),n([Gl({type:Boolean,attribute:"disabled",reflect:!0}),sd((function(e){this.mdcFoundation&&this.mdcFoundation.setDisabled(e)}))],Kh.prototype,"disabled",void 0),n([Gl({type:Boolean}),sd((function(e,t){void 0!==t&&this.outlined!==t&&this.layout(!1)}))],Kh.prototype,"outlined",void 0),n([Gl({type:String}),sd((function(e,t){void 0!==t&&this.label!==t&&this.layout(!1)}))],Kh.prototype,"label",void 0),n([Xl()],Kh.prototype,"outlineOpen",void 0),n([Xl()],Kh.prototype,"outlineWidth",void 0),n([Gl({type:String}),sd((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()}}))],Kh.prototype,"value",void 0),n([Gl()],Kh.prototype,"name",void 0),n([Xl()],Kh.prototype,"selectedText",void 0),n([Gl({type:String})],Kh.prototype,"icon",void 0),n([Xl()],Kh.prototype,"menuOpen",void 0),n([Gl({type:String})],Kh.prototype,"helper",void 0),n([Gl({type:Boolean})],Kh.prototype,"validateOnInitialRender",void 0),n([Gl({type:String})],Kh.prototype,"validationMessage",void 0),n([Gl({type:Boolean})],Kh.prototype,"required",void 0),n([Gl({type:Boolean})],Kh.prototype,"naturalMenuWidth",void 0),n([Xl()],Kh.prototype,"isUiValid",void 0),n([Gl({type:Boolean})],Kh.prototype,"fixedMenuPosition",void 0),n([Yl({capture:!0})],Kh.prototype,"handleTypeahead",null);const Zh=window,Jh=Zh.trustedTypes,Qh=Jh?Jh.createPolicy("lit-html",{createHTML:e=>e}):void 0,ep="$lit$",tp=`lit$${(Math.random()+"").slice(9)}$`,ip="?"+tp,np=`<${ip}>`,op=document,rp=()=>op.createComment(""),sp=e=>null===e||"object"!=typeof e&&"function"!=typeof e,ap=Array.isArray,lp="[ \t\n\f\r]",dp=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,cp=/-->/g,hp=/>/g,pp=RegExp(`>|${lp}(?:([^\\s"'>=/]+)(${lp}*=${lp}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),up=/'/g,mp=/"/g,fp=/^(?:script|style|textarea|title)$/i,gp=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),vp=Symbol.for("lit-noChange"),_p=Symbol.for("lit-nothing"),bp=new WeakMap,yp=op.createTreeWalker(op,129,null,!1);function xp(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Qh?Qh.createHTML(t):t}class wp{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let o=0,r=0;const s=e.length-1,a=this.parts,[l,d]=((e,t)=>{const i=e.length-1,n=[];let o,r=2===t?"<svg>":"",s=dp;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===dp?"!--"===l[1]?s=cp:void 0!==l[1]?s=hp:void 0!==l[2]?(fp.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=pp):void 0!==l[3]&&(s=pp):s===pp?">"===l[0]?(s=null!=o?o:dp,d=-1):void 0===l[1]?d=-2:(d=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?pp:'"'===l[3]?mp:up):s===mp||s===up?s=pp:s===cp||s===hp?s=dp:(s=pp,o=void 0);const h=s===pp&&e[t+1].startsWith("/>")?" ":"";r+=s===dp?i+np:d>=0?(n.push(a),i.slice(0,d)+ep+i.slice(d)+tp+h):i+tp+(-2===d?(n.push(void 0),t):h)}return[xp(e,r+(e[i]||"<?>")+(2===t?"</svg>":"")),n]})(e,t);if(this.el=wp.createElement(l,i),yp.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=yp.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const e=[];for(const t of n.getAttributeNames())if(t.endsWith(ep)||t.startsWith(tp)){const i=d[r++];if(e.push(t),void 0!==i){const e=n.getAttribute(i.toLowerCase()+ep).split(tp),t=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:t[2],strings:e,ctor:"."===t[1]?Sp:"?"===t[1]?kp:"@"===t[1]?Op:Cp})}else a.push({type:6,index:o})}for(const t of e)n.removeAttribute(t)}if(fp.test(n.tagName)){const e=n.textContent.split(tp),t=e.length-1;if(t>0){n.textContent=Jh?Jh.emptyScript:"";for(let i=0;i<t;i++)n.append(e[i],rp()),yp.nextNode(),a.push({type:2,index:++o});n.append(e[t],rp())}}}else if(8===n.nodeType)if(n.data===ip)a.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(tp,e+1));)a.push({type:7,index:o}),e+=tp.length-1}o++}}static createElement(e,t){const i=op.createElement("template");return i.innerHTML=e,i}}function Ap(e,t,i=e,n){var o,r,s,a;if(t===vp)return t;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const d=sp(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(t=Ap(e,l._$AS(e,t.values),l,n)),t}class $p{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,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:op).importNode(i,!0);yp.currentNode=o;let r=yp.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let t;2===l.type?t=new Ep(r,r.nextSibling,this,e):1===l.type?t=new l.ctor(r,l.name,l.strings,this,e):6===l.type&&(t=new Ip(r,this,e)),this._$AV.push(t),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=yp.nextNode(),s++)}return yp.currentNode=op,o}v(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 Ep{constructor(e,t,i,n){var o;this.type=2,this._$AH=_p,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ap(this,e,t),sp(e)?e===_p||null==e||""===e?(this._$AH!==_p&&this._$AR(),this._$AH=_p):e!==this._$AH&&e!==vp&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>ap(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==_p&&sp(this._$AH)?this._$AA.nextSibling.data=e:this.$(op.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:n}=e,o="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=wp.createElement(xp(n.h,n.h[0]),this.options)),n);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(i);else{const e=new $p(o,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=bp.get(e.strings);return void 0===t&&bp.set(e.strings,t=new wp(e)),t}T(e){ap(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const o of e)n===t.length?t.push(i=new Ep(this.k(rp()),this.k(rp()),this,this.options)):i=t[n],i._$AI(o),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Cp{constructor(e,t,i,n,o){this.type=1,this._$AH=_p,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_p}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const o=this.strings;let r=!1;if(void 0===o)e=Ap(this,e,t,0),r=!sp(e)||e!==this._$AH&&e!==vp,r&&(this._$AH=e);else{const n=e;let s,a;for(e=o[0],s=0;s<o.length-1;s++)a=Ap(this,n[i+s],t,s),a===vp&&(a=this._$AH[s]),r||(r=!sp(a)||a!==this._$AH[s]),a===_p?e=_p:e!==_p&&(e+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(e)}j(e){e===_p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class Sp extends Cp{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_p?void 0:e}}const Tp=Jh?Jh.emptyScript:"";class kp extends Cp{constructor(){super(...arguments),this.type=4}j(e){e&&e!==_p?this.element.setAttribute(this.name,Tp):this.element.removeAttribute(this.name)}}class Op extends Cp{constructor(e,t,i,n,o){super(e,t,i,n,o),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=Ap(this,e,t,0))&&void 0!==i?i:_p)===vp)return;const n=this._$AH,o=e===_p&&n!==_p||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,r=e!==_p&&(n===_p||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}}class Ip{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){Ap(this,e)}}const Mp=Zh.litHtmlPolyfillSupport;null==Mp||Mp(wp,Ep),(null!==(Yh=Zh.litHtmlVersions)&&void 0!==Yh?Yh:Zh.litHtmlVersions=[]).push("2.8.0");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
var Np,Rp;class zp extends Za{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.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,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:t;let s=r._$litPart$;if(void 0===s){const e=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new Ep(t.insertBefore(rp(),e),e,void 0,null!=i?i:{})}return s._$AI(e),s})(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 vp}}zp.finalized=!0,zp._$litElement$=!0,null===(Np=globalThis.litElementHydrateSupport)||void 0===Np||Np.call(globalThis,{LitElement:zp});const Lp=globalThis.litElementPolyfillSupport;null==Lp||Lp({LitElement:zp}),(null!==(Rp=globalThis.litElementVersions)&&void 0!==Rp?Rp:globalThis.litElementVersions=[]).push("3.3.3");
|
||
/**
|
||
* @license
|
||
* Copyright 2018 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
const Hp=e=>null!=e?e:_p
|
||
/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/,Pp=(e,t)=>e-t,Dp=["input","button","textarea","select"];function Vp(e){return e instanceof Set}const Fp=e=>{const t=e===Oc.UNSET_INDEX?new Set:e;return Vp(t)?new Set(t):new Set([t])};class Bp extends Da{constructor(e){super(Object.assign(Object.assign({},Bp.defaultAdapter),e)),this.isMulti_=!1,this.wrapFocus_=!1,this.isVertical_=!0,this.selectedIndex_=Oc.UNSET_INDEX,this.focusedItemIndex_=Oc.UNSET_INDEX,this.useActivatedClass_=!1,this.ariaCurrentAttrValue_=null}static get strings(){return kc}static get numbers(){return Oc}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(!Vp(t)){const e=t===Oc.UNSET_INDEX;this.selectedIndex_=e?new Set:new Set([t])}}else if(Vp(t))if(t.size){const e=Array.from(t).sort(Pp);this.selectedIndex_=e[0]}else this.selectedIndex_=Oc.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_(Fp(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"===yc(e),o="ArrowUp"===yc(e),r="ArrowRight"===yc(e),s="ArrowDown"===yc(e),a="Home"===yc(e),l="End"===yc(e),d="Enter"===yc(e),c="Spacebar"===yc(e);if(this.adapter.isRootFocused())return void(o||l?(e.preventDefault(),this.focusLastElement()):(s||a)&&(e.preventDefault(),this.focusFirstElement()));let h,p=this.adapter.getFocusedElementIndex();if(!(-1===p&&(p=i,p<0))){if(this.isVertical_&&s||!this.isVertical_&&r)this.preventDefaultEvent(e),h=this.focusNextElement(p);else if(this.isVertical_&&o||!this.isVertical_&&n)this.preventDefaultEvent(e),h=this.focusPrevElement(p);else if(a)this.preventDefaultEvent(e),h=this.focusFirstElement();else if(l)this.preventDefaultEvent(e),h=this.focusLastElement();else if((d||c)&&t){const t=e.target;if(t&&"A"===t.tagName&&d)return;this.preventDefaultEvent(e),this.setSelectedIndexOnAction_(p,!0)}this.focusedItemIndex_=p,void 0!==h&&(this.setTabindexAtIndex_(h),this.focusedItemIndex_=h)}}handleSingleSelection(e,t,i){e!==Oc.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===Dp.indexOf(t)&&e.preventDefault()}setSingleSelectionAtIndex_(e,t=!0){this.selectedIndex_!==e&&(this.selectedIndex_!==Oc.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),o={added:[],removed:[]},r=i.sort(Pp),s=n.sort(Pp);let a=0,l=0;for(;a<r.length||l<s.length;){const e=r[a],t=s[l];e!==t?void 0!==e&&(void 0===t||e<t)?(o.removed.push(e),a++):void 0!==t&&(void 0===e||t<e)&&(o.added.push(t),l++):(a++,l++)}return o})(Fp(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_===Oc.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(e,kc.ARIA_CURRENT));const t=null!==this.ariaCurrentAttrValue_,i=t?kc.ARIA_CURRENT:kc.ARIA_SELECTED;this.selectedIndex_!==Oc.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_===Oc.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_!==Oc.UNSET_INDEX?e=this.selectedIndex_:Vp(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===Oc.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_(Oc.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 o=Fp(this.selectedIndex_);n?o.add(e):o.delete(e),this.setMultiSelectionAtIndex_(o,i)}}
|
||
/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/const Up=e=>e.hasAttribute("mwc-list-item");function jp(){const e=this.itemsReadyResolver;this.itemsReady=new Promise((e=>this.itemsReadyResolver=e)),e()}class Wp extends jl{constructor(){super(),this.mdcAdapter=null,this.mdcFoundationClass=Bp,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)=>{jp.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)Up(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 o=new Event("items-updated",{bubbles:!0,composed:!0});this.dispatchEvent(o)}get selected(){const e=this.index;if(!Vp(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 gp`
|
||
<!-- @ts-ignore -->
|
||
<ul
|
||
tabindex=${i}
|
||
role="${Hp(e)}"
|
||
aria-label="${Hp(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?gp`
|
||
<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=Up(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(Pl(e)&&Up(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:()=>Ul(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=Bl();if(!e.length)return-1;for(let t=e.length-1;t>=0;t--){const i=e[t];if(Up(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()}}n([Gl({type:String})],Wp.prototype,"emptyMessage",void 0),n([Zl(".mdc-deprecated-list")],Wp.prototype,"mdcRoot",void 0),n([td("",!0,"*")],Wp.prototype,"assignedElements",void 0),n([td("",!0,'[tabindex="0"]')],Wp.prototype,"tabbableElements",void 0),n([Gl({type:Boolean}),sd((function(e){this.mdcFoundation&&this.mdcFoundation.setUseActivatedClass(e)}))],Wp.prototype,"activatable",void 0),n([Gl({type:Boolean}),sd((function(e,t){this.mdcFoundation&&this.mdcFoundation.setMulti(e),void 0!==t&&this.layout()}))],Wp.prototype,"multi",void 0),n([Gl({type:Boolean}),sd((function(e){this.mdcFoundation&&this.mdcFoundation.setWrapFocus(e)}))],Wp.prototype,"wrapFocus",void 0),n([Gl({type:String}),sd((function(e,t){void 0!==t&&this.updateItems()}))],Wp.prototype,"itemRoles",void 0),n([Gl({type:String})],Wp.prototype,"innerRole",void 0),n([Gl({type:String})],Wp.prototype,"innerAriaLabel",void 0),n([Gl({type:Boolean})],Wp.prototype,"rootTabbable",void 0),n([Gl({type:Boolean,reflect:!0}),sd((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)}))],Wp.prototype,"noninteractive",void 0);
|
||
/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/
|
||
class qp{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 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/const Gp=1;class Xp{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 Kp=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends Xp{constructor(e){var t;if(super(e),e.type!==Gp||"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]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const o=e.element.classList;this.it.forEach((e=>{e in t||(o.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(n=this.nt)||void 0===n?void 0:n.has(e))||(i?(o.add(e),this.it.add(e)):(o.remove(e),this.it.delete(e)))}return vp}});
|
||
/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/class Yp extends zp{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 qp((()=>(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():gp``,i=this.hasMeta?this.renderMeta():gp``;return gp`
|
||
${this.renderRipple()}
|
||
${t}
|
||
${e}
|
||
${i}`}renderRipple(){return this.shouldRenderRipple?gp`
|
||
<mwc-ripple
|
||
.activated=${this.activated}>
|
||
</mwc-ripple>`:this.activated?gp`<div class="fake-activated-ripple"></div>`:""}renderGraphic(){const e={multi:this.multipleGraphics};return gp`
|
||
<span class="mdc-deprecated-list-item__graphic material-icons ${Kp(e)}">
|
||
<slot name="graphic"></slot>
|
||
</span>`}renderMeta(){return gp`
|
||
<span class="mdc-deprecated-list-item__meta material-icons">
|
||
<slot name="meta"></slot>
|
||
</span>`}renderText(){const e=this.twoline?this.renderTwoline():this.renderSingleLine();return gp`
|
||
<span class="mdc-deprecated-list-item__text">
|
||
${e}
|
||
</span>`}renderSingleLine(){return gp`<slot></slot>`}renderTwoline(){return gp`
|
||
<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)}}n([Zl("slot")],Yp.prototype,"slotElement",void 0),n([Jl("mwc-ripple")],Yp.prototype,"ripple",void 0),n([Gl({type:String})],Yp.prototype,"value",void 0),n([Gl({type:String,reflect:!0})],Yp.prototype,"group",void 0),n([Gl({type:Number,reflect:!0})],Yp.prototype,"tabindex",void 0),n([Gl({type:Boolean,reflect:!0}),sd((function(e){e?this.setAttribute("aria-disabled","true"):this.setAttribute("aria-disabled","false")}))],Yp.prototype,"disabled",void 0),n([Gl({type:Boolean,reflect:!0})],Yp.prototype,"twoline",void 0),n([Gl({type:Boolean,reflect:!0})],Yp.prototype,"activated",void 0),n([Gl({type:String,reflect:!0})],Yp.prototype,"graphic",void 0),n([Gl({type:Boolean})],Yp.prototype,"multipleGraphics",void 0),n([Gl({type:Boolean})],Yp.prototype,"hasMeta",void 0),n([Gl({type:Boolean,reflect:!0}),sd((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","")}))],Yp.prototype,"noninteractive",void 0),n([Gl({type:Boolean,reflect:!0}),sd((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")}))],Yp.prototype,"selected",void 0),n([Xl()],Yp.prototype,"shouldRenderRipple",void 0),n([Xl()],Yp.prototype,"_managingList",void 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.
|
||
*/
|
||
var Zp,Jp={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},Qp={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"},eu={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"}(Zp||(Zp={}));
|
||
/**
|
||
* @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 tu,iu=function(e){function n(t){var o=e.call(this,i(i({},n.defaultAdapter),t))||this;return o.isSurfaceOpen=!1,o.isQuickOpen=!1,o.isHoistedElement=!1,o.isFixedPosition=!1,o.isHorizontallyCenteredOnViewport=!1,o.maxHeight=0,o.openBottomBias=0,o.openAnimationEndTimerId=0,o.closeAnimationEndTimerId=0,o.animationRequestId=0,o.anchorCorner=Kc.TOP_START,o.originCorner=Kc.TOP_START,o.anchorMargin={top:0,right:0,bottom:0,left:0},o.position={x:0,y:0},o}return t(n,e),Object.defineProperty(n,"cssClasses",{get:function(){return Yc},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return Zc},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return Jc},enumerable:!1,configurable:!0}),Object.defineProperty(n,"Corner",{get:function(){return Kc},enumerable:!1,configurable:!0}),Object.defineProperty(n,"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}),n.prototype.init=function(){var e=n.cssClasses,t=e.ROOT,i=e.OPEN;if(!this.adapter.hasClass(t))throw new Error(t+" class required in root element.");this.adapter.hasClass(i)&&(this.isSurfaceOpen=!0)},n.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},n.prototype.setAnchorCorner=function(e){this.anchorCorner=e},n.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^Xc.RIGHT},n.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},n.prototype.setIsHoisted=function(e){this.isHoistedElement=e},n.prototype.setFixedPosition=function(e){this.isFixedPosition=e},n.prototype.isFixed=function(){return this.isFixedPosition},n.prototype.setAbsolutePosition=function(e,t){this.position.x=this.isFinite(e)?e:0,this.position.y=this.isFinite(t)?t:0},n.prototype.setIsHorizontallyCenteredOnViewport=function(e){this.isHorizontallyCenteredOnViewport=e},n.prototype.setQuickOpen=function(e){this.isQuickOpen=e},n.prototype.setMaxHeight=function(e){this.maxHeight=e},n.prototype.setOpenBottomBias=function(e){this.openBottomBias=e},n.prototype.isOpen=function(){return this.isSurfaceOpen},n.prototype.open=function(){var e=this;this.isSurfaceOpen||(this.adapter.notifyOpening(),this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(n.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(n.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame((function(){e.dimensions=e.adapter.getInnerDimensions(),e.autoposition(),e.adapter.addClass(n.cssClasses.OPEN),e.openAnimationEndTimerId=setTimeout((function(){e.openAnimationEndTimerId=0,e.adapter.removeClass(n.cssClasses.ANIMATING_OPEN),e.adapter.notifyOpen()}),Jc.TRANSITION_OPEN_DURATION)})),this.isSurfaceOpen=!0))},n.prototype.close=function(e){var t=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(n.cssClasses.OPEN),this.adapter.removeClass(n.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(n.cssClasses.ANIMATING_CLOSED),requestAnimationFrame((function(){t.adapter.removeClass(n.cssClasses.OPEN),t.adapter.removeClass(n.cssClasses.IS_OPEN_BELOW),t.closeAnimationEndTimerId=setTimeout((function(){t.closeAnimationEndTimerId=0,t.adapter.removeClass(n.cssClasses.ANIMATING_CLOSED),t.adapter.notifyClose()}),Jc.TRANSITION_CLOSE_DURATION)})),this.isSurfaceOpen=!1,e||this.maybeRestoreFocus()}},n.prototype.handleBodyClick=function(e){var t=e.target;this.adapter.isElementInContainer(t)||this.close()},n.prototype.handleKeydown=function(e){var t=e.keyCode;("Escape"===e.key||27===t)&&this.close()},n.prototype.autoposition=function(){var e;this.measurements=this.getAutoLayoutmeasurements();var t=this.getoriginCorner(),i=this.getMenuSurfaceMaxHeight(t),o=this.hasBit(t,Xc.BOTTOM)?"bottom":"top",r=this.hasBit(t,Xc.RIGHT)?"right":"left",s=this.getHorizontalOriginOffset(t),a=this.getVerticalOriginOffset(t),l=this.measurements,d=l.anchorSize,c=l.surfaceSize,h=((e={})[r]=s,e[o]=a,e);d.width/c.width>Jc.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(r="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(h),this.adapter.setTransformOrigin(r+" "+o),this.adapter.setPosition(h),this.adapter.setMaxHeight(i?i+"px":""),this.hasBit(t,Xc.BOTTOM)||this.adapter.addClass(n.cssClasses.IS_OPEN_BELOW)},n.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}},n.prototype.getoriginCorner=function(){var e,t,i=this.originCorner,o=this.measurements,r=o.viewportDistance,s=o.anchorSize,a=o.surfaceSize,l=n.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,Xc.BOTTOM)?(e=r.top-l+this.anchorMargin.bottom,t=r.bottom-l-this.anchorMargin.bottom):(e=r.top-l+this.anchorMargin.top,t=r.bottom-l+s.height-this.anchorMargin.top),!(t-a.height>0)&&e>t+this.openBottomBias&&(i=this.setBit(i,Xc.BOTTOM));var d,c,h=this.adapter.isRtl(),p=this.hasBit(this.anchorCorner,Xc.FLIP_RTL),u=this.hasBit(this.anchorCorner,Xc.RIGHT)||this.hasBit(i,Xc.RIGHT),m=!1;(m=h&&p?!u:u)?(d=r.left+s.width+this.anchorMargin.right,c=r.right-this.anchorMargin.right):(d=r.left+this.anchorMargin.left,c=r.right+s.width-this.anchorMargin.left);var f=d-a.width>0,g=c-a.width>0,v=this.hasBit(i,Xc.FLIP_RTL)&&this.hasBit(i,Xc.RIGHT);return g&&v&&h||!f&&v?i=this.unsetBit(i,Xc.RIGHT):(f&&m&&h||f&&!m&&u||!g&&d>=c)&&(i=this.setBit(i,Xc.RIGHT)),i},n.prototype.getMenuSurfaceMaxHeight=function(e){if(this.maxHeight>0)return this.maxHeight;var t=this.measurements.viewportDistance,i=0,o=this.hasBit(e,Xc.BOTTOM),r=this.hasBit(this.anchorCorner,Xc.BOTTOM),s=n.numbers.MARGIN_TO_EDGE;return o?(i=t.top+this.anchorMargin.top-s,r||(i+=this.measurements.anchorSize.height)):(i=t.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-s,r&&(i-=this.measurements.anchorSize.height)),i},n.prototype.getHorizontalOriginOffset=function(e){var t=this.measurements.anchorSize,i=this.hasBit(e,Xc.RIGHT),n=this.hasBit(this.anchorCorner,Xc.RIGHT);if(i){var o=n?t.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?o-(this.measurements.viewportSize.width-this.measurements.bodySize.width):o}return n?t.width-this.anchorMargin.right:this.anchorMargin.left},n.prototype.getVerticalOriginOffset=function(e){var t=this.measurements.anchorSize,i=this.hasBit(e,Xc.BOTTOM),n=this.hasBit(this.anchorCorner,Xc.BOTTOM);return i?n?t.height-this.anchorMargin.top:-this.anchorMargin.bottom:n?t.height+this.anchorMargin.bottom:this.anchorMargin.top},n.prototype.adjustPositionForHoistedElement=function(e){var t,i,n=this.measurements,r=n.windowScroll,s=n.viewportDistance,a=n.surfaceSize,l=n.viewportSize,d=Object.keys(e);try{for(var c=o(d),h=c.next();!h.done;h=c.next()){var p=h.value,u=e[p]||0;!this.isHorizontallyCenteredOnViewport||"left"!==p&&"right"!==p?(u+=s[p],this.isFixedPosition||("top"===p?u+=r.y:"bottom"===p?u-=r.y:"left"===p?u+=r.x:u-=r.x),e[p]=u):e[p]=(l.width-a.width)/2}}catch(e){t={error:e}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}},n.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()}),Jc.TOUCH_EVENT_WAIT_MS)},n.prototype.hasBit=function(e,t){return Boolean(e&t)},n.prototype.setBit=function(e,t){return e|t},n.prototype.unsetBit=function(e,t){return e^t},n.prototype.isFinite=function(e){return"number"==typeof e&&isFinite(e)},n}(Da),nu=iu,ou=function(e){function n(t){var o=e.call(this,i(i({},n.defaultAdapter),t))||this;return o.closeAnimationEndTimerId=0,o.defaultFocusState=Zp.LIST_ROOT,o.selectedIndex=-1,o}return t(n,e),Object.defineProperty(n,"cssClasses",{get:function(){return Jp},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return Qp},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return eu},enumerable:!1,configurable:!0}),Object.defineProperty(n,"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}),n.prototype.destroy=function(){this.closeAnimationEndTimerId&&clearTimeout(this.closeAnimationEndTimerId),this.adapter.closeSurface()},n.prototype.handleKeydown=function(e){var t=e.key,i=e.keyCode;("Tab"===t||9===i)&&this.adapter.closeSurface(!0)},n.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,Qp.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)}),iu.numbers.TRANSITION_CLOSE_DURATION)}},n.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState){case Zp.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case Zp.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case Zp.NONE:break;default:this.adapter.focusListRoot()}},n.prototype.setDefaultFocusState=function(e){this.defaultFocusState=e},n.prototype.getSelectedIndex=function(){return this.selectedIndex},n.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,Qp.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(t,Jp.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(e,Jp.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(e,Qp.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=e},n.prototype.setEnabled=function(e,t){this.validatedIndex(e),t?(this.adapter.removeClassFromElementAtIndex(e,Ac),this.adapter.addAttributeToElementAtIndex(e,Qp.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(e,Ac),this.adapter.addAttributeToElementAtIndex(e,Qp.ARIA_DISABLED_ATTR,"true"))},n.prototype.validatedIndex=function(e){var t=this.adapter.getMenuItemCount();if(!(e>=0&&e<t))throw new Error("MDCMenuFoundation: No list item at specified index.")},n}(Da);const ru=window,su=ru.trustedTypes,au=su?su.createPolicy("lit-html",{createHTML:e=>e}):void 0,lu="$lit$",du=`lit$${(Math.random()+"").slice(9)}$`,cu="?"+du,hu=`<${cu}>`,pu=document,uu=()=>pu.createComment(""),mu=e=>null===e||"object"!=typeof e&&"function"!=typeof e,fu=Array.isArray,gu="[ \t\n\f\r]",vu=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_u=/-->/g,bu=/>/g,yu=RegExp(`>|${gu}(?:([^\\s"'>=/]+)(${gu}*=${gu}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),xu=/'/g,wu=/"/g,Au=/^(?:script|style|textarea|title)$/i,$u=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),Eu=Symbol.for("lit-noChange"),Cu=Symbol.for("lit-nothing"),Su=new WeakMap,Tu=pu.createTreeWalker(pu,129,null,!1);function ku(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==au?au.createHTML(t):t}class Ou{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let o=0,r=0;const s=e.length-1,a=this.parts,[l,d]=((e,t)=>{const i=e.length-1,n=[];let o,r=2===t?"<svg>":"",s=vu;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===vu?"!--"===l[1]?s=_u:void 0!==l[1]?s=bu:void 0!==l[2]?(Au.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=yu):void 0!==l[3]&&(s=yu):s===yu?">"===l[0]?(s=null!=o?o:vu,d=-1):void 0===l[1]?d=-2:(d=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?yu:'"'===l[3]?wu:xu):s===wu||s===xu?s=yu:s===_u||s===bu?s=vu:(s=yu,o=void 0);const h=s===yu&&e[t+1].startsWith("/>")?" ":"";r+=s===vu?i+hu:d>=0?(n.push(a),i.slice(0,d)+lu+i.slice(d)+du+h):i+du+(-2===d?(n.push(void 0),t):h)}return[ku(e,r+(e[i]||"<?>")+(2===t?"</svg>":"")),n]})(e,t);if(this.el=Ou.createElement(l,i),Tu.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=Tu.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const e=[];for(const t of n.getAttributeNames())if(t.endsWith(lu)||t.startsWith(du)){const i=d[r++];if(e.push(t),void 0!==i){const e=n.getAttribute(i.toLowerCase()+lu).split(du),t=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:t[2],strings:e,ctor:"."===t[1]?zu:"?"===t[1]?Hu:"@"===t[1]?Pu:Ru})}else a.push({type:6,index:o})}for(const t of e)n.removeAttribute(t)}if(Au.test(n.tagName)){const e=n.textContent.split(du),t=e.length-1;if(t>0){n.textContent=su?su.emptyScript:"";for(let i=0;i<t;i++)n.append(e[i],uu()),Tu.nextNode(),a.push({type:2,index:++o});n.append(e[t],uu())}}}else if(8===n.nodeType)if(n.data===cu)a.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(du,e+1));)a.push({type:7,index:o}),e+=du.length-1}o++}}static createElement(e,t){const i=pu.createElement("template");return i.innerHTML=e,i}}function Iu(e,t,i=e,n){var o,r,s,a;if(t===Eu)return t;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const d=mu(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(t=Iu(e,l._$AS(e,t.values),l,n)),t}class Mu{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,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:pu).importNode(i,!0);Tu.currentNode=o;let r=Tu.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let t;2===l.type?t=new Nu(r,r.nextSibling,this,e):1===l.type?t=new l.ctor(r,l.name,l.strings,this,e):6===l.type&&(t=new Du(r,this,e)),this._$AV.push(t),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=Tu.nextNode(),s++)}return Tu.currentNode=pu,o}v(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 Nu{constructor(e,t,i,n){var o;this.type=2,this._$AH=Cu,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Iu(this,e,t),mu(e)?e===Cu||null==e||""===e?(this._$AH!==Cu&&this._$AR(),this._$AH=Cu):e!==this._$AH&&e!==Eu&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>fu(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Cu&&mu(this._$AH)?this._$AA.nextSibling.data=e:this.$(pu.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:n}=e,o="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=Ou.createElement(ku(n.h,n.h[0]),this.options)),n);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(i);else{const e=new Mu(o,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=Su.get(e.strings);return void 0===t&&Su.set(e.strings,t=new Ou(e)),t}T(e){fu(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const o of e)n===t.length?t.push(i=new Nu(this.k(uu()),this.k(uu()),this,this.options)):i=t[n],i._$AI(o),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Ru{constructor(e,t,i,n,o){this.type=1,this._$AH=Cu,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Cu}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const o=this.strings;let r=!1;if(void 0===o)e=Iu(this,e,t,0),r=!mu(e)||e!==this._$AH&&e!==Eu,r&&(this._$AH=e);else{const n=e;let s,a;for(e=o[0],s=0;s<o.length-1;s++)a=Iu(this,n[i+s],t,s),a===Eu&&(a=this._$AH[s]),r||(r=!mu(a)||a!==this._$AH[s]),a===Cu?e=Cu:e!==Cu&&(e+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(e)}j(e){e===Cu?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class zu extends Ru{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Cu?void 0:e}}const Lu=su?su.emptyScript:"";class Hu extends Ru{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Cu?this.element.setAttribute(this.name,Lu):this.element.removeAttribute(this.name)}}class Pu extends Ru{constructor(e,t,i,n,o){super(e,t,i,n,o),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=Iu(this,e,t,0))&&void 0!==i?i:Cu)===Eu)return;const n=this._$AH,o=e===Cu&&n!==Cu||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,r=e!==Cu&&(n===Cu||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}}class Du{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){Iu(this,e)}}const Vu=ru.litHtmlPolyfillSupport;null==Vu||Vu(Ou,Nu),(null!==(tu=ru.litHtmlVersions)&&void 0!==tu?tu:ru.litHtmlVersions=[]).push("2.8.0");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
var Fu,Bu;class Uu extends Za{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.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,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:t;let s=r._$litPart$;if(void 0===s){const e=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new Nu(t.insertBefore(uu(),e),e,void 0,null!=i?i:{})}return s._$AI(e),s})(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 Eu}}Uu.finalized=!0,Uu._$litElement$=!0,null===(Fu=globalThis.litElementHydrateSupport)||void 0===Fu||Fu.call(globalThis,{LitElement:Uu});const ju=globalThis.litElementPolyfillSupport;null==ju||ju({LitElement:Uu}),(null!==(Bu=globalThis.litElementVersions)&&void 0!==Bu?Bu:globalThis.litElementVersions=[]).push("3.3.3");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
const Wu=1,qu=e=>(...t)=>({_$litDirective$:e,values:t});class Gu{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 Xu=qu(class extends Gu{constructor(e){var t;if(super(e),e.type!==Wu||"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]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const o=e.element.classList;this.it.forEach((e=>{e in t||(o.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(n=this.nt)||void 0===n?void 0:n.has(e))||(i?(o.add(e),this.it.add(e)):(o.remove(e),this.it.delete(e)))}return Eu}});
|
||
/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/class Ku extends jl{constructor(){super(...arguments),this.mdcFoundationClass=ou,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 $u`
|
||
<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=${Xu(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 $u`
|
||
<mwc-list
|
||
rootTabbable
|
||
.innerAriaLabel=${this.innerAriaLabel}
|
||
.innerRole=${this.innerRole}
|
||
.multi=${this.multi}
|
||
class=${Xu(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 o=n.items[e];o&&o.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 o=t.items[n];if(o.selected&&o.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)}}n([Zl(".mdc-menu")],Ku.prototype,"mdcRoot",void 0),n([Zl("slot")],Ku.prototype,"slotElement",void 0),n([Gl({type:Object})],Ku.prototype,"anchor",void 0),n([Gl({type:Boolean,reflect:!0})],Ku.prototype,"open",void 0),n([Gl({type:Boolean})],Ku.prototype,"quick",void 0),n([Gl({type:Boolean})],Ku.prototype,"wrapFocus",void 0),n([Gl({type:String})],Ku.prototype,"innerRole",void 0),n([Gl({type:String})],Ku.prototype,"innerAriaLabel",void 0),n([Gl({type:String})],Ku.prototype,"corner",void 0),n([Gl({type:Number})],Ku.prototype,"x",void 0),n([Gl({type:Number})],Ku.prototype,"y",void 0),n([Gl({type:Boolean})],Ku.prototype,"absolute",void 0),n([Gl({type:Boolean})],Ku.prototype,"multi",void 0),n([Gl({type:Boolean})],Ku.prototype,"activatable",void 0),n([Gl({type:Boolean})],Ku.prototype,"fixed",void 0),n([Gl({type:Boolean})],Ku.prototype,"forceGroupSelection",void 0),n([Gl({type:Boolean})],Ku.prototype,"fullwidth",void 0),n([Gl({type:String})],Ku.prototype,"menuCorner",void 0),n([Gl({type:Boolean})],Ku.prototype,"stayOpenOnBodyClick",void 0),n([Gl({type:String}),sd((function(e){this.mdcFoundation&&this.mdcFoundation.setDefaultFocusState(Zp[e])}))],Ku.prototype,"defaultFocus",void 0);
|
||
/**
|
||
* @license
|
||
* Copyright 2018 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
const Yu="important",Zu=" !"+Yu,Ju=qu(class extends Gu{constructor(e){var t;if(super(e),e.type!==Wu||"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+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`}),"")}update(e,[t]){const{style:i}=e.element;if(void 0===this.ht){this.ht=new Set;for(const e in t)this.ht.add(e);return this.render(t)}this.ht.forEach((e=>{null==t[e]&&(this.ht.delete(e),e.includes("-")?i.removeProperty(e):i[e]="")}));for(const e in t){const n=t[e];if(null!=n){this.ht.add(e);const t="string"==typeof n&&n.endsWith(Zu);e.includes("-")||t?i.setProperty(e,t?n.slice(0,-11):n,t?Yu:""):i[e]=n}}return Eu}}),Qu={TOP_LEFT:Kc.TOP_LEFT,TOP_RIGHT:Kc.TOP_RIGHT,BOTTOM_LEFT:Kc.BOTTOM_LEFT,BOTTOM_RIGHT:Kc.BOTTOM_RIGHT,TOP_START:Kc.TOP_START,TOP_END:Kc.TOP_END,BOTTOM_START:Kc.BOTTOM_START,BOTTOM_END:Kc.BOTTOM_END};
|
||
/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/class em extends jl{constructor(){super(...arguments),this.mdcFoundationClass=nu,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=Kc.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 $u`
|
||
<div
|
||
class=${Xu(e)}
|
||
style="${Ju(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 $u`<slot></slot>`}createAdapter(){return Object.assign(Object.assign({},Dl(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:()=>Ul(this),saveFocus:()=>{const e=Bl(),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}}n([Zl(".mdc-menu-surface")],em.prototype,"mdcRoot",void 0),n([Zl("slot")],em.prototype,"slotElement",void 0),n([Gl({type:Boolean}),sd((function(e){this.mdcFoundation&&!this.fixed&&this.mdcFoundation.setIsHoisted(e)}))],em.prototype,"absolute",void 0),n([Gl({type:Boolean})],em.prototype,"fullwidth",void 0),n([Gl({type:Boolean}),sd((function(e){this.mdcFoundation&&!this.absolute&&this.mdcFoundation.setFixedPosition(e)}))],em.prototype,"fixed",void 0),n([Gl({type:Number}),sd((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}))}))],em.prototype,"x",void 0),n([Gl({type:Number}),sd((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}))}))],em.prototype,"y",void 0),n([Gl({type:Boolean}),sd((function(e){this.mdcFoundation&&this.mdcFoundation.setQuickOpen(e)}))],em.prototype,"quick",void 0),n([Gl({type:Boolean,reflect:!0}),sd((function(e,t){this.onOpenChanged(e,t)}))],em.prototype,"open",void 0),n([Gl({type:Boolean})],em.prototype,"stayOpenOnBodyClick",void 0),n([Xl(),sd((function(e){this.mdcFoundation&&this.mdcFoundation.setAnchorCorner(e)}))],em.prototype,"bitwiseCorner",void 0),n([Gl({type:String}),sd((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^Xc.RIGHT,this.mdcFoundation.flipCornerHorizontally(),this.previousMenuCorner=e)}}))],em.prototype,"menuCorner",void 0),n([Gl({type:String}),sd((function(e){if(this.mdcFoundation&&e){let t=Qu[e];"END"===this.menuCorner&&(t^=Xc.RIGHT),this.bitwiseCorner=t}}))],em.prototype,"corner",void 0),n([Xl()],em.prototype,"styleTop",void 0),n([Xl()],em.prototype,"styleLeft",void 0),n([Xl()],em.prototype,"styleRight",void 0),n([Xl()],em.prototype,"styleBottom",void 0),n([Xl()],em.prototype,"styleMaxHeight",void 0),n([Xl()],em.prototype,"styleTransformOrigin",void 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 tm={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"},im={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"},nm={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 om,rm=["touchstart","pointerdown","mousedown","keydown"],sm=["touchend","pointerup","mouseup","contextmenu"],am=[],lm=function(e){function n(t){var o=e.call(this,i(i({},n.defaultAdapter),t))||this;return o.activationAnimationHasEnded=!1,o.activationTimer=0,o.fgDeactivationRemovalTimer=0,o.fgScale="0",o.frame={width:0,height:0},o.initialSize=0,o.layoutFrame=0,o.maxRadius=0,o.unboundedCoords={left:0,top:0},o.activationState=o.defaultActivationState(),o.activationTimerCallback=function(){o.activationAnimationHasEnded=!0,o.runDeactivationUXLogicIfReady()},o.activateHandler=function(e){o.activateImpl(e)},o.deactivateHandler=function(){o.deactivateImpl()},o.focusHandler=function(){o.handleFocus()},o.blurHandler=function(){o.handleBlur()},o.resizeHandler=function(){o.layout()},o}return t(n,e),Object.defineProperty(n,"cssClasses",{get:function(){return tm},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return im},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return nm},enumerable:!1,configurable:!0}),Object.defineProperty(n,"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}),n.prototype.init=function(){var e=this,t=this.supportsPressRipple();if(this.registerRootHandlers(t),t){var i=n.cssClasses,o=i.ROOT,r=i.UNBOUNDED;requestAnimationFrame((function(){e.adapter.addClass(o),e.adapter.isUnbounded()&&(e.adapter.addClass(r),e.layoutInternal())}))}},n.prototype.destroy=function(){var e=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(n.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(n.cssClasses.FG_DEACTIVATION));var t=n.cssClasses,i=t.ROOT,o=t.UNBOUNDED;requestAnimationFrame((function(){e.adapter.removeClass(i),e.adapter.removeClass(o),e.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},n.prototype.activate=function(e){this.activateImpl(e)},n.prototype.deactivate=function(){this.deactivateImpl()},n.prototype.layout=function(){var e=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){e.layoutInternal(),e.layoutFrame=0}))},n.prototype.setUnbounded=function(e){var t=n.cssClasses.UNBOUNDED;e?this.adapter.addClass(t):this.adapter.removeClass(t)},n.prototype.handleFocus=function(){var e=this;requestAnimationFrame((function(){return e.adapter.addClass(n.cssClasses.BG_FOCUSED)}))},n.prototype.handleBlur=function(){var e=this;requestAnimationFrame((function(){return e.adapter.removeClass(n.cssClasses.BG_FOCUSED)}))},n.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},n.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},n.prototype.registerRootHandlers=function(e){var t,i;if(e){try{for(var n=o(rm),r=n.next();!r.done;r=n.next()){var s=r.value;this.adapter.registerInteractionHandler(s,this.activateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.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)},n.prototype.registerDeactivationHandlers=function(e){var t,i;if("keydown"===e.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var n=o(sm),r=n.next();!r.done;r=n.next()){var s=r.value;this.adapter.registerDocumentInteractionHandler(s,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}},n.prototype.deregisterRootHandlers=function(){var e,t;try{for(var i=o(rm),n=i.next();!n.done;n=i.next()){var r=n.value;this.adapter.deregisterInteractionHandler(r,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)},n.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=o(sm),n=i.next();!n.done;n=i.next()){var r=n.value;this.adapter.deregisterDocumentInteractionHandler(r,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},n.prototype.removeCssVars=function(){var e=this,t=n.strings;Object.keys(t).forEach((function(i){0===i.indexOf("VAR_")&&e.adapter.updateCssVariable(t[i],null)}))},n.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&&am.length>0&&am.some((function(e){return t.adapter.containsEventTarget(e)}))?this.resetActivationState():(void 0!==e&&(am.push(e.target),this.registerDeactivationHandlers(e)),i.wasElementMadeActive=this.checkElementMadeActive(e),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){am=[],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())})))}}},n.prototype.checkElementMadeActive=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive()},n.prototype.animateActivation=function(){var e=this,t=n.strings,i=t.VAR_FG_TRANSLATE_START,o=t.VAR_FG_TRANSLATE_END,r=n.cssClasses,s=r.FG_DEACTIVATION,a=r.FG_ACTIVATION,l=n.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var d="",c="";if(!this.adapter.isUnbounded()){var h=this.getFgTranslationCoordinates(),p=h.startPoint,u=h.endPoint;d=p.x+"px, "+p.y+"px",c=u.x+"px, "+u.y+"px"}this.adapter.updateCssVariable(i,d),this.adapter.updateCssVariable(o,c),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(s),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout((function(){e.activationTimerCallback()}),l)},n.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,o,r=t.x,s=t.y,a=r+i.left,l=s+i.top;if("touchstart"===e.type){var d=e;n=d.changedTouches[0].pageX-a,o=d.changedTouches[0].pageY-l}else{var c=e;n=c.pageX-a,o=c.pageY-l}return{x:n,y:o}}(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}}},n.prototype.runDeactivationUXLogicIfReady=function(){var e=this,t=n.cssClasses.FG_DEACTIVATION,i=this.activationState,o=i.hasDeactivationUXRun,r=i.isActivated;(o||!r)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(t),this.fgDeactivationRemovalTimer=setTimeout((function(){e.adapter.removeClass(t)}),nm.FG_DEACTIVATION_MS))},n.prototype.rmBoundedActivationClasses=function(){var e=n.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},n.prototype.resetActivationState=function(){var e=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return e.previousActivationEvent=void 0}),n.numbers.TAP_DELAY_MS)},n.prototype.deactivateImpl=function(){var e=this,t=this.activationState;if(t.isActivated){var n=i({},t);t.isProgrammatic?(requestAnimationFrame((function(){e.animateDeactivation(n)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){e.activationState.hasDeactivationUXRun=!0,e.animateDeactivation(n),e.resetActivationState()})))}},n.prototype.animateDeactivation=function(e){var t=e.wasActivatedByPointer,i=e.wasElementMadeActive;(t||i)&&this.runDeactivationUXLogicIfReady()},n.prototype.layoutInternal=function(){var e=this;this.frame=this.adapter.computeBoundingRect();var t=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?t:Math.sqrt(Math.pow(e.frame.width,2)+Math.pow(e.frame.height,2))+n.numbers.PADDING;var i=Math.floor(t*n.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&i%2!=0?this.initialSize=i-1:this.initialSize=i,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},n.prototype.updateLayoutCssVars=function(){var e=n.strings,t=e.VAR_FG_SIZE,i=e.VAR_LEFT,o=e.VAR_TOP,r=e.VAR_FG_SCALE;this.adapter.updateCssVariable(t,this.initialSize+"px"),this.adapter.updateCssVariable(r,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(i,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},n}(Da),dm=lm;const cm=window,hm=cm.trustedTypes,pm=hm?hm.createPolicy("lit-html",{createHTML:e=>e}):void 0,um="$lit$",mm=`lit$${(Math.random()+"").slice(9)}$`,fm="?"+mm,gm=`<${fm}>`,vm=document,_m=()=>vm.createComment(""),bm=e=>null===e||"object"!=typeof e&&"function"!=typeof e,ym=Array.isArray,xm="[ \t\n\f\r]",wm=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Am=/-->/g,$m=/>/g,Em=RegExp(`>|${xm}(?:([^\\s"'>=/]+)(${xm}*=${xm}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Cm=/'/g,Sm=/"/g,Tm=/^(?:script|style|textarea|title)$/i,km=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),Om=Symbol.for("lit-noChange"),Im=Symbol.for("lit-nothing"),Mm=new WeakMap,Nm=vm.createTreeWalker(vm,129,null,!1);function Rm(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==pm?pm.createHTML(t):t}class zm{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let o=0,r=0;const s=e.length-1,a=this.parts,[l,d]=((e,t)=>{const i=e.length-1,n=[];let o,r=2===t?"<svg>":"",s=wm;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===wm?"!--"===l[1]?s=Am:void 0!==l[1]?s=$m:void 0!==l[2]?(Tm.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=Em):void 0!==l[3]&&(s=Em):s===Em?">"===l[0]?(s=null!=o?o:wm,d=-1):void 0===l[1]?d=-2:(d=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Em:'"'===l[3]?Sm:Cm):s===Sm||s===Cm?s=Em:s===Am||s===$m?s=wm:(s=Em,o=void 0);const h=s===Em&&e[t+1].startsWith("/>")?" ":"";r+=s===wm?i+gm:d>=0?(n.push(a),i.slice(0,d)+um+i.slice(d)+mm+h):i+mm+(-2===d?(n.push(void 0),t):h)}return[Rm(e,r+(e[i]||"<?>")+(2===t?"</svg>":"")),n]})(e,t);if(this.el=zm.createElement(l,i),Nm.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=Nm.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const e=[];for(const t of n.getAttributeNames())if(t.endsWith(um)||t.startsWith(mm)){const i=d[r++];if(e.push(t),void 0!==i){const e=n.getAttribute(i.toLowerCase()+um).split(mm),t=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:t[2],strings:e,ctor:"."===t[1]?Vm:"?"===t[1]?Bm:"@"===t[1]?Um:Dm})}else a.push({type:6,index:o})}for(const t of e)n.removeAttribute(t)}if(Tm.test(n.tagName)){const e=n.textContent.split(mm),t=e.length-1;if(t>0){n.textContent=hm?hm.emptyScript:"";for(let i=0;i<t;i++)n.append(e[i],_m()),Nm.nextNode(),a.push({type:2,index:++o});n.append(e[t],_m())}}}else if(8===n.nodeType)if(n.data===fm)a.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(mm,e+1));)a.push({type:7,index:o}),e+=mm.length-1}o++}}static createElement(e,t){const i=vm.createElement("template");return i.innerHTML=e,i}}function Lm(e,t,i=e,n){var o,r,s,a;if(t===Om)return t;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const d=bm(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(t=Lm(e,l._$AS(e,t.values),l,n)),t}class Hm{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,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:vm).importNode(i,!0);Nm.currentNode=o;let r=Nm.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let t;2===l.type?t=new Pm(r,r.nextSibling,this,e):1===l.type?t=new l.ctor(r,l.name,l.strings,this,e):6===l.type&&(t=new jm(r,this,e)),this._$AV.push(t),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=Nm.nextNode(),s++)}return Nm.currentNode=vm,o}v(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 Pm{constructor(e,t,i,n){var o;this.type=2,this._$AH=Im,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Lm(this,e,t),bm(e)?e===Im||null==e||""===e?(this._$AH!==Im&&this._$AR(),this._$AH=Im):e!==this._$AH&&e!==Om&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>ym(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Im&&bm(this._$AH)?this._$AA.nextSibling.data=e:this.$(vm.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:n}=e,o="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=zm.createElement(Rm(n.h,n.h[0]),this.options)),n);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(i);else{const e=new Hm(o,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=Mm.get(e.strings);return void 0===t&&Mm.set(e.strings,t=new zm(e)),t}T(e){ym(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const o of e)n===t.length?t.push(i=new Pm(this.k(_m()),this.k(_m()),this,this.options)):i=t[n],i._$AI(o),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Dm{constructor(e,t,i,n,o){this.type=1,this._$AH=Im,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Im}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const o=this.strings;let r=!1;if(void 0===o)e=Lm(this,e,t,0),r=!bm(e)||e!==this._$AH&&e!==Om,r&&(this._$AH=e);else{const n=e;let s,a;for(e=o[0],s=0;s<o.length-1;s++)a=Lm(this,n[i+s],t,s),a===Om&&(a=this._$AH[s]),r||(r=!bm(a)||a!==this._$AH[s]),a===Im?e=Im:e!==Im&&(e+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(e)}j(e){e===Im?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class Vm extends Dm{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Im?void 0:e}}const Fm=hm?hm.emptyScript:"";class Bm extends Dm{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Im?this.element.setAttribute(this.name,Fm):this.element.removeAttribute(this.name)}}class Um extends Dm{constructor(e,t,i,n,o){super(e,t,i,n,o),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=Lm(this,e,t,0))&&void 0!==i?i:Im)===Om)return;const n=this._$AH,o=e===Im&&n!==Im||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,r=e!==Im&&(n===Im||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}}class jm{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){Lm(this,e)}}const Wm=cm.litHtmlPolyfillSupport;null==Wm||Wm(zm,Pm),(null!==(om=cm.litHtmlVersions)&&void 0!==om?om:cm.litHtmlVersions=[]).push("2.8.0");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
var qm,Gm;class Xm extends Za{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.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,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:t;let s=r._$litPart$;if(void 0===s){const e=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new Pm(t.insertBefore(_m(),e),e,void 0,null!=i?i:{})}return s._$AI(e),s})(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 Om}}Xm.finalized=!0,Xm._$litElement$=!0,null===(qm=globalThis.litElementHydrateSupport)||void 0===qm||qm.call(globalThis,{LitElement:Xm});const Km=globalThis.litElementPolyfillSupport;null==Km||Km({LitElement:Xm}),(null!==(Gm=globalThis.litElementVersions)&&void 0!==Gm?Gm:globalThis.litElementVersions=[]).push("3.3.3");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
const Ym=1,Zm=e=>(...t)=>({_$litDirective$:e,values:t});class Jm{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 Qm=Zm(class extends Jm{constructor(e){var t;if(super(e),e.type!==Ym||"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]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const o=e.element.classList;this.it.forEach((e=>{e in t||(o.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(n=this.nt)||void 0===n?void 0:n.has(e))||(i?(o.add(e),this.it.add(e)):(o.remove(e),this.it.delete(e)))}return Om}}),ef="important",tf=" !"+ef,nf=Zm(class extends Jm{constructor(e){var t;if(super(e),e.type!==Ym||"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+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`}),"")}update(e,[t]){const{style:i}=e.element;if(void 0===this.ht){this.ht=new Set;for(const e in t)this.ht.add(e);return this.render(t)}this.ht.forEach((e=>{null==t[e]&&(this.ht.delete(e),e.includes("-")?i.removeProperty(e):i[e]="")}));for(const e in t){const n=t[e];if(null!=n){this.ht.add(e);const t="string"==typeof n&&n.endsWith(tf);e.includes("-")||t?i.setProperty(e,t?n.slice(0,-11):n,t?ef:""):i[e]=n}}return Om}});
|
||
/**
|
||
* @license
|
||
* Copyright 2018 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
/**
|
||
* @license
|
||
* Copyright 2018 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/
|
||
class of extends jl{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=dm}get isActive(){return e=this.parentElement||this,t=":active",(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t);
|
||
/**
|
||
* @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 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 km`
|
||
<div class="mdc-ripple-surface mdc-ripple-upgraded ${Qm(i)}"
|
||
style="${nf({"--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>`}}n([Zl(".mdc-ripple-surface")],of.prototype,"mdcRoot",void 0),n([Gl({type:Boolean})],of.prototype,"primary",void 0),n([Gl({type:Boolean})],of.prototype,"accent",void 0),n([Gl({type:Boolean})],of.prototype,"unbounded",void 0),n([Gl({type:Boolean})],of.prototype,"disabled",void 0),n([Gl({type:Boolean})],of.prototype,"activated",void 0),n([Gl({type:Boolean})],of.prototype,"selected",void 0),n([Gl({type:Boolean})],of.prototype,"internalUseStateLayerCustomProperties",void 0),n([Xl()],of.prototype,"hovering",void 0),n([Xl()],of.prototype,"bgFocused",void 0),n([Xl()],of.prototype,"fgActivation",void 0),n([Xl()],of.prototype,"fgDeactivation",void 0),n([Xl()],of.prototype,"fgScale",void 0),n([Xl()],of.prototype,"fgSize",void 0),n([Xl()],of.prototype,"translateStart",void 0),n([Xl()],of.prototype,"translateEnd",void 0),n([Xl()],of.prototype,"leftPos",void 0),n([Xl()],of.prototype,"topPos",void 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.
|
||
*/
|
||
var rf,sf={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},af={NOTCH_ELEMENT_PADDING:8},lf={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},df=function(e){function n(t){return e.call(this,i(i({},n.defaultAdapter),t))||this}return t(n,e),Object.defineProperty(n,"strings",{get:function(){return sf},enumerable:!1,configurable:!0}),Object.defineProperty(n,"cssClasses",{get:function(){return lf},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return af},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!1,configurable:!0}),n.prototype.notch=function(e){var t=n.cssClasses.OUTLINE_NOTCHED;e>0&&(e+=af.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(e),this.adapter.addClass(t)},n.prototype.closeNotch=function(){var e=n.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(e),this.adapter.removeNotchWidthProperty()},n}(Da);const cf=window,hf=cf.trustedTypes,pf=hf?hf.createPolicy("lit-html",{createHTML:e=>e}):void 0,uf="$lit$",mf=`lit$${(Math.random()+"").slice(9)}$`,ff="?"+mf,gf=`<${ff}>`,vf=document,_f=()=>vf.createComment(""),bf=e=>null===e||"object"!=typeof e&&"function"!=typeof e,yf=Array.isArray,xf="[ \t\n\f\r]",wf=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Af=/-->/g,$f=/>/g,Ef=RegExp(`>|${xf}(?:([^\\s"'>=/]+)(${xf}*=${xf}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Cf=/'/g,Sf=/"/g,Tf=/^(?:script|style|textarea|title)$/i,kf=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),Of=Symbol.for("lit-noChange"),If=Symbol.for("lit-nothing"),Mf=new WeakMap,Nf=vf.createTreeWalker(vf,129,null,!1);function Rf(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==pf?pf.createHTML(t):t}class zf{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let o=0,r=0;const s=e.length-1,a=this.parts,[l,d]=((e,t)=>{const i=e.length-1,n=[];let o,r=2===t?"<svg>":"",s=wf;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===wf?"!--"===l[1]?s=Af:void 0!==l[1]?s=$f:void 0!==l[2]?(Tf.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=Ef):void 0!==l[3]&&(s=Ef):s===Ef?">"===l[0]?(s=null!=o?o:wf,d=-1):void 0===l[1]?d=-2:(d=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Ef:'"'===l[3]?Sf:Cf):s===Sf||s===Cf?s=Ef:s===Af||s===$f?s=wf:(s=Ef,o=void 0);const h=s===Ef&&e[t+1].startsWith("/>")?" ":"";r+=s===wf?i+gf:d>=0?(n.push(a),i.slice(0,d)+uf+i.slice(d)+mf+h):i+mf+(-2===d?(n.push(void 0),t):h)}return[Rf(e,r+(e[i]||"<?>")+(2===t?"</svg>":"")),n]})(e,t);if(this.el=zf.createElement(l,i),Nf.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=Nf.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const e=[];for(const t of n.getAttributeNames())if(t.endsWith(uf)||t.startsWith(mf)){const i=d[r++];if(e.push(t),void 0!==i){const e=n.getAttribute(i.toLowerCase()+uf).split(mf),t=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:t[2],strings:e,ctor:"."===t[1]?Vf:"?"===t[1]?Bf:"@"===t[1]?Uf:Df})}else a.push({type:6,index:o})}for(const t of e)n.removeAttribute(t)}if(Tf.test(n.tagName)){const e=n.textContent.split(mf),t=e.length-1;if(t>0){n.textContent=hf?hf.emptyScript:"";for(let i=0;i<t;i++)n.append(e[i],_f()),Nf.nextNode(),a.push({type:2,index:++o});n.append(e[t],_f())}}}else if(8===n.nodeType)if(n.data===ff)a.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(mf,e+1));)a.push({type:7,index:o}),e+=mf.length-1}o++}}static createElement(e,t){const i=vf.createElement("template");return i.innerHTML=e,i}}function Lf(e,t,i=e,n){var o,r,s,a;if(t===Of)return t;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const d=bf(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(t=Lf(e,l._$AS(e,t.values),l,n)),t}class Hf{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,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:vf).importNode(i,!0);Nf.currentNode=o;let r=Nf.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let t;2===l.type?t=new Pf(r,r.nextSibling,this,e):1===l.type?t=new l.ctor(r,l.name,l.strings,this,e):6===l.type&&(t=new jf(r,this,e)),this._$AV.push(t),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=Nf.nextNode(),s++)}return Nf.currentNode=vf,o}v(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 Pf{constructor(e,t,i,n){var o;this.type=2,this._$AH=If,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Lf(this,e,t),bf(e)?e===If||null==e||""===e?(this._$AH!==If&&this._$AR(),this._$AH=If):e!==this._$AH&&e!==Of&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>yf(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==If&&bf(this._$AH)?this._$AA.nextSibling.data=e:this.$(vf.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:n}=e,o="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=zf.createElement(Rf(n.h,n.h[0]),this.options)),n);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(i);else{const e=new Hf(o,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=Mf.get(e.strings);return void 0===t&&Mf.set(e.strings,t=new zf(e)),t}T(e){yf(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const o of e)n===t.length?t.push(i=new Pf(this.k(_f()),this.k(_f()),this,this.options)):i=t[n],i._$AI(o),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Df{constructor(e,t,i,n,o){this.type=1,this._$AH=If,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=If}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const o=this.strings;let r=!1;if(void 0===o)e=Lf(this,e,t,0),r=!bf(e)||e!==this._$AH&&e!==Of,r&&(this._$AH=e);else{const n=e;let s,a;for(e=o[0],s=0;s<o.length-1;s++)a=Lf(this,n[i+s],t,s),a===Of&&(a=this._$AH[s]),r||(r=!bf(a)||a!==this._$AH[s]),a===If?e=If:e!==If&&(e+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(e)}j(e){e===If?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class Vf extends Df{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===If?void 0:e}}const Ff=hf?hf.emptyScript:"";class Bf extends Df{constructor(){super(...arguments),this.type=4}j(e){e&&e!==If?this.element.setAttribute(this.name,Ff):this.element.removeAttribute(this.name)}}class Uf extends Df{constructor(e,t,i,n,o){super(e,t,i,n,o),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=Lf(this,e,t,0))&&void 0!==i?i:If)===Of)return;const n=this._$AH,o=e===If&&n!==If||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,r=e!==If&&(n===If||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}}class jf{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){Lf(this,e)}}const Wf=cf.litHtmlPolyfillSupport;null==Wf||Wf(zf,Pf),(null!==(rf=cf.litHtmlVersions)&&void 0!==rf?rf:cf.litHtmlVersions=[]).push("2.8.0");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
var qf,Gf;class Xf extends Za{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.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,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:t;let s=r._$litPart$;if(void 0===s){const e=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new Pf(t.insertBefore(_f(),e),e,void 0,null!=i?i:{})}return s._$AI(e),s})(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 Of}}Xf.finalized=!0,Xf._$litElement$=!0,null===(qf=globalThis.litElementHydrateSupport)||void 0===qf||qf.call(globalThis,{LitElement:Xf});const Kf=globalThis.litElementPolyfillSupport;null==Kf||Kf({LitElement:Xf}),(null!==(Gf=globalThis.litElementVersions)&&void 0!==Gf?Gf:globalThis.litElementVersions=[]).push("3.3.3");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
const Yf=1;class Zf{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 Jf=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends Zf{constructor(e){var t;if(super(e),e.type!==Yf||"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]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const o=e.element.classList;this.it.forEach((e=>{e in t||(o.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(n=this.nt)||void 0===n?void 0:n.has(e))||(i?(o.add(e),this.it.add(e)):(o.remove(e),this.it.delete(e)))}return Of}});
|
||
/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/class Qf extends jl{constructor(){super(...arguments),this.mdcFoundationClass=df,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=Jf({"mdc-notched-outline--notched":this.open});return kf`
|
||
<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>`}}n([Zl(".mdc-notched-outline")],Qf.prototype,"mdcRoot",void 0),n([Gl({type:Number})],Qf.prototype,"width",void 0),n([Gl({type:Boolean,reflect:!0})],Qf.prototype,"open",void 0),n([Zl(".mdc-notched-outline__notch")],Qf.prototype,"notchElement",void 0);
|
||
/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
* SPDX-LIcense-Identifier: Apache-2.0
|
||
*/
|
||
const eg=za`.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))}`
|
||
/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
* SPDX-LIcense-Identifier: Apache-2.0
|
||
*/,tg=za`@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 2021 Google LLC
|
||
* SPDX-LIcense-Identifier: Apache-2.0
|
||
*/,ig=za`: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 2021 Google LLC
|
||
* SPDX-LIcense-Identifier: Apache-2.0
|
||
*/,ng=za`.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 2021 Google LLC
|
||
* SPDX-LIcense-Identifier: Apache-2.0
|
||
*/,og=za`mwc-list ::slotted([mwc-list-item]:not([twoline])),mwc-list ::slotted([noninteractive]:not([twoline])){height:var(--mdc-menu-item-height, 48px)}`
|
||
/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
* SPDX-LIcense-Identifier: Apache-2.0
|
||
*/,rg=za`.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
|
||
*/,sg=za`.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)}`,ag={"mwc-select":class extends Kh{static get styles(){return eg}},"mwc-list":class extends Wp{static get styles(){return tg}},"mwc-list-item":class extends Yp{static get styles(){return ig}},"mwc-ripple":class extends of{static get styles(){return ng}},"mwc-menu":class extends Ku{static get styles(){return og}},"mwc-menu-surface":class extends em{static get styles(){return rg}},"mwc-notched-outline":class extends Qf{static get styles(){return sg}}};function lg(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 o=i;let r="";if(!o.set)throw new Error(`@ariaProperty requires a setter for ${t}`);if(e.dispatchWizEvent)return i;const s={configurable:!0,enumerable:!0,set(e){if(""===r){const e=n.getPropertyOptions(t);r="string"==typeof e.attribute?e.attribute:t}this.hasAttribute(r)&&this.removeAttribute(r),o.set.call(this,e)}};return o.get&&(s.get=function(){return o.get.call(this)}),s}(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 dg,cg={CHECKED:"mdc-switch--checked",DISABLED:"mdc-switch--disabled"},hg={ARIA_CHECKED_ATTR:"aria-checked",NATIVE_CONTROL_SELECTOR:".mdc-switch__native-control",RIPPLE_SURFACE_SELECTOR:".mdc-switch__thumb-underlay"},pg=function(e){function n(t){return e.call(this,i(i({},n.defaultAdapter),t))||this}return t(n,e),Object.defineProperty(n,"strings",{get:function(){return hg},enumerable:!1,configurable:!0}),Object.defineProperty(n,"cssClasses",{get:function(){return cg},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlChecked:function(){},setNativeControlDisabled:function(){},setNativeControlAttr:function(){}}},enumerable:!1,configurable:!0}),n.prototype.setChecked=function(e){this.adapter.setNativeControlChecked(e),this.updateAriaChecked(e),this.updateCheckedStyling(e)},n.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(cg.DISABLED):this.adapter.removeClass(cg.DISABLED)},n.prototype.handleChange=function(e){var t=e.target;this.updateAriaChecked(t.checked),this.updateCheckedStyling(t.checked)},n.prototype.updateCheckedStyling=function(e){e?this.adapter.addClass(cg.CHECKED):this.adapter.removeClass(cg.CHECKED)},n.prototype.updateAriaChecked=function(e){this.adapter.setNativeControlAttr(hg.ARIA_CHECKED_ATTR,""+!!e)},n}(Da);const ug=window,mg=ug.trustedTypes,fg=mg?mg.createPolicy("lit-html",{createHTML:e=>e}):void 0,gg="$lit$",vg=`lit$${(Math.random()+"").slice(9)}$`,_g="?"+vg,bg=`<${_g}>`,yg=document,xg=()=>yg.createComment(""),wg=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Ag=Array.isArray,$g="[ \t\n\f\r]",Eg=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Cg=/-->/g,Sg=/>/g,Tg=RegExp(`>|${$g}(?:([^\\s"'>=/]+)(${$g}*=${$g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),kg=/'/g,Og=/"/g,Ig=/^(?:script|style|textarea|title)$/i,Mg=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),Ng=Symbol.for("lit-noChange"),Rg=Symbol.for("lit-nothing"),zg=new WeakMap,Lg=yg.createTreeWalker(yg,129,null,!1);function Hg(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==fg?fg.createHTML(t):t}class Pg{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let o=0,r=0;const s=e.length-1,a=this.parts,[l,d]=((e,t)=>{const i=e.length-1,n=[];let o,r=2===t?"<svg>":"",s=Eg;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===Eg?"!--"===l[1]?s=Cg:void 0!==l[1]?s=Sg:void 0!==l[2]?(Ig.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=Tg):void 0!==l[3]&&(s=Tg):s===Tg?">"===l[0]?(s=null!=o?o:Eg,d=-1):void 0===l[1]?d=-2:(d=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Tg:'"'===l[3]?Og:kg):s===Og||s===kg?s=Tg:s===Cg||s===Sg?s=Eg:(s=Tg,o=void 0);const h=s===Tg&&e[t+1].startsWith("/>")?" ":"";r+=s===Eg?i+bg:d>=0?(n.push(a),i.slice(0,d)+gg+i.slice(d)+vg+h):i+vg+(-2===d?(n.push(void 0),t):h)}return[Hg(e,r+(e[i]||"<?>")+(2===t?"</svg>":"")),n]})(e,t);if(this.el=Pg.createElement(l,i),Lg.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=Lg.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const e=[];for(const t of n.getAttributeNames())if(t.endsWith(gg)||t.startsWith(vg)){const i=d[r++];if(e.push(t),void 0!==i){const e=n.getAttribute(i.toLowerCase()+gg).split(vg),t=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:t[2],strings:e,ctor:"."===t[1]?Ug:"?"===t[1]?Wg:"@"===t[1]?qg:Bg})}else a.push({type:6,index:o})}for(const t of e)n.removeAttribute(t)}if(Ig.test(n.tagName)){const e=n.textContent.split(vg),t=e.length-1;if(t>0){n.textContent=mg?mg.emptyScript:"";for(let i=0;i<t;i++)n.append(e[i],xg()),Lg.nextNode(),a.push({type:2,index:++o});n.append(e[t],xg())}}}else if(8===n.nodeType)if(n.data===_g)a.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(vg,e+1));)a.push({type:7,index:o}),e+=vg.length-1}o++}}static createElement(e,t){const i=yg.createElement("template");return i.innerHTML=e,i}}function Dg(e,t,i=e,n){var o,r,s,a;if(t===Ng)return t;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const d=wg(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(t=Dg(e,l._$AS(e,t.values),l,n)),t}class Vg{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,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:yg).importNode(i,!0);Lg.currentNode=o;let r=Lg.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let t;2===l.type?t=new Fg(r,r.nextSibling,this,e):1===l.type?t=new l.ctor(r,l.name,l.strings,this,e):6===l.type&&(t=new Gg(r,this,e)),this._$AV.push(t),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=Lg.nextNode(),s++)}return Lg.currentNode=yg,o}v(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 Fg{constructor(e,t,i,n){var o;this.type=2,this._$AH=Rg,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Dg(this,e,t),wg(e)?e===Rg||null==e||""===e?(this._$AH!==Rg&&this._$AR(),this._$AH=Rg):e!==this._$AH&&e!==Ng&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>Ag(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Rg&&wg(this._$AH)?this._$AA.nextSibling.data=e:this.$(yg.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:n}=e,o="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=Pg.createElement(Hg(n.h,n.h[0]),this.options)),n);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(i);else{const e=new Vg(o,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=zg.get(e.strings);return void 0===t&&zg.set(e.strings,t=new Pg(e)),t}T(e){Ag(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const o of e)n===t.length?t.push(i=new Fg(this.k(xg()),this.k(xg()),this,this.options)):i=t[n],i._$AI(o),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Bg{constructor(e,t,i,n,o){this.type=1,this._$AH=Rg,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Rg}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const o=this.strings;let r=!1;if(void 0===o)e=Dg(this,e,t,0),r=!wg(e)||e!==this._$AH&&e!==Ng,r&&(this._$AH=e);else{const n=e;let s,a;for(e=o[0],s=0;s<o.length-1;s++)a=Dg(this,n[i+s],t,s),a===Ng&&(a=this._$AH[s]),r||(r=!wg(a)||a!==this._$AH[s]),a===Rg?e=Rg:e!==Rg&&(e+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(e)}j(e){e===Rg?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class Ug extends Bg{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Rg?void 0:e}}const jg=mg?mg.emptyScript:"";class Wg extends Bg{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Rg?this.element.setAttribute(this.name,jg):this.element.removeAttribute(this.name)}}class qg extends Bg{constructor(e,t,i,n,o){super(e,t,i,n,o),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=Dg(this,e,t,0))&&void 0!==i?i:Rg)===Ng)return;const n=this._$AH,o=e===Rg&&n!==Rg||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,r=e!==Rg&&(n===Rg||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}}class Gg{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){Dg(this,e)}}const Xg=ug.litHtmlPolyfillSupport;null==Xg||Xg(Pg,Fg),(null!==(dg=ug.litHtmlVersions)&&void 0!==dg?dg:ug.litHtmlVersions=[]).push("2.8.0");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
var Kg,Yg;class Zg extends Za{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.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,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:t;let s=r._$litPart$;if(void 0===s){const e=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new Fg(t.insertBefore(xg(),e),e,void 0,null!=i?i:{})}return s._$AI(e),s})(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 Ng}}Zg.finalized=!0,Zg._$litElement$=!0,null===(Kg=globalThis.litElementHydrateSupport)||void 0===Kg||Kg.call(globalThis,{LitElement:Zg});const Jg=globalThis.litElementPolyfillSupport;null==Jg||Jg({LitElement:Zg}),(null!==(Yg=globalThis.litElementVersions)&&void 0!==Yg?Yg:globalThis.litElementVersions=[]).push("3.3.3");
|
||
/**
|
||
* @license
|
||
* Copyright 2018 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
const Qg=e=>null!=e?e:Rg
|
||
/**
|
||
* @license
|
||
* Copyright 2018 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/;class ev extends jl{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.shouldRenderRipple=!1,this.mdcFoundationClass=pg,this.rippleHandlers=new qp((()=>(this.shouldRenderRipple=!0,this.ripple)))}changeHandler(e){this.mdcFoundation.handleChange(e),this.checked=this.formElement.checked}createAdapter(){return Object.assign(Object.assign({},Dl(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?Mg`
|
||
<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 Mg`
|
||
<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="${Qg(this.ariaLabel)}"
|
||
aria-labelledby="${Qg(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()}}n([Gl({type:Boolean}),sd((function(e){this.mdcFoundation.setChecked(e)}))],ev.prototype,"checked",void 0),n([Gl({type:Boolean}),sd((function(e){this.mdcFoundation.setDisabled(e)}))],ev.prototype,"disabled",void 0),n([lg,Gl({attribute:"aria-label"})],ev.prototype,"ariaLabel",void 0),n([lg,Gl({attribute:"aria-labelledby"})],ev.prototype,"ariaLabelledBy",void 0),n([Zl(".mdc-switch")],ev.prototype,"mdcRoot",void 0),n([Zl("input")],ev.prototype,"formElement",void 0),n([Jl("mwc-ripple")],ev.prototype,"ripple",void 0),n([Xl()],ev.prototype,"shouldRenderRipple",void 0),n([Yl({passive:!0})],ev.prototype,"handleRippleMouseDown",null),n([Yl({passive:!0})],ev.prototype,"handleRippleTouchStart",null);
|
||
/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
* SPDX-LIcense-Identifier: Apache-2.0
|
||
*/
|
||
const tv=za`.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}`,iv={"mwc-switch":class extends ev{static get styles(){return tv}},"mwc-ripple":class extends of{static get styles(){return ng}}};
|
||
/**
|
||
* @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 nv,ov={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"},rv={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"},sv={LABEL_SCALE:.75},av=["pattern","min","max","required","step","minlength","maxlength"],lv=["color","date","datetime-local","month","range","time","week"],dv=["mousedown","touchstart"],cv=["click","keydown"],hv=function(e){function n(t,o){void 0===o&&(o={});var r=e.call(this,i(i({},n.defaultAdapter),t))||this;return r.isFocused=!1,r.receivedUserInput=!1,r.valid=!0,r.useNativeValidation=!0,r.validateOnValueChange=!0,r.helperText=o.helperText,r.characterCounter=o.characterCounter,r.leadingIcon=o.leadingIcon,r.trailingIcon=o.trailingIcon,r.inputFocusHandler=function(){r.activateFocus()},r.inputBlurHandler=function(){r.deactivateFocus()},r.inputInputHandler=function(){r.handleInput()},r.setPointerXOffset=function(e){r.setTransformOrigin(e)},r.textFieldInteractionHandler=function(){r.handleTextFieldInteraction()},r.validationAttributeChangeHandler=function(e){r.handleValidationAttributeChange(e)},r}return t(n,e),Object.defineProperty(n,"cssClasses",{get:function(){return rv},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return ov},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return sv},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"shouldAlwaysFloat",{get:function(){var e=this.getNativeInput().type;return lv.indexOf(e)>=0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat||this.isFocused||!!this.getValue()||this.isBadInput()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"shouldShake",{get:function(){return!this.isFocused&&!this.isValid()&&!!this.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(n,"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}),n.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 r=o(dv),s=r.next();!s.done;s=r.next()){var a=s.value;this.adapter.registerInputInteractionHandler(a,this.setPointerXOffset)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}try{for(var l=o(cv),d=l.next();!d.done;d=l.next()){a=d.value;this.adapter.registerTextFieldInteractionHandler(a,this.textFieldInteractionHandler)}}catch(e){i={error:e}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}this.validationObserver=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler),this.setcharacterCounter(this.getValue().length)},n.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 r=o(dv),s=r.next();!s.done;s=r.next()){var a=s.value;this.adapter.deregisterInputInteractionHandler(a,this.setPointerXOffset)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}try{for(var l=o(cv),d=l.next();!d.done;d=l.next()){a=d.value;this.adapter.deregisterTextFieldInteractionHandler(a,this.textFieldInteractionHandler)}}catch(e){i={error:e}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver)},n.prototype.handleTextFieldInteraction=function(){var e=this.adapter.getNativeInput();e&&e.disabled||(this.receivedUserInput=!0)},n.prototype.handleValidationAttributeChange=function(e){var t=this;e.some((function(e){return av.indexOf(e)>-1&&(t.styleValidity(!0),t.adapter.setLabelRequired(t.getNativeInput().required),!0)})),e.indexOf("maxlength")>-1&&this.setcharacterCounter(this.getValue().length)},n.prototype.notchOutline=function(e){if(this.adapter.hasOutline()&&this.adapter.hasLabel())if(e){var t=this.adapter.getLabelWidth()*sv.LABEL_SCALE;this.adapter.notchOutline(t)}else this.adapter.closeOutline()},n.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()},n.prototype.setTransformOrigin=function(e){if(!this.isDisabled()&&!this.adapter.hasOutline()){var t=e.touches,i=t?t[0]:e,n=i.target.getBoundingClientRect(),o=i.clientX-n.left;this.adapter.setLineRippleTransformOrigin(o)}},n.prototype.handleInput=function(){this.autoCompleteFocus(),this.setcharacterCounter(this.getValue().length)},n.prototype.autoCompleteFocus=function(){this.receivedUserInput||this.activateFocus()},n.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)},n.prototype.getValue=function(){return this.getNativeInput().value},n.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))},n.prototype.isValid=function(){return this.useNativeValidation?this.isNativeInputValid():this.valid},n.prototype.setValid=function(e){this.valid=e,this.styleValidity(e);var t=!e&&!this.isFocused&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(t)},n.prototype.setValidateOnValueChange=function(e){this.validateOnValueChange=e},n.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange},n.prototype.setUseNativeValidation=function(e){this.useNativeValidation=e},n.prototype.isDisabled=function(){return this.getNativeInput().disabled},n.prototype.setDisabled=function(e){this.getNativeInput().disabled=e,this.styleDisabled(e)},n.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},n.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},n.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},n.prototype.setTrailingIconAriaLabel=function(e){this.trailingIcon&&this.trailingIcon.setAriaLabel(e)},n.prototype.setTrailingIconContent=function(e){this.trailingIcon&&this.trailingIcon.setContent(e)},n.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)}},n.prototype.isBadInput=function(){return this.getNativeInput().validity.badInput||!1},n.prototype.isNativeInputValid=function(){return this.getNativeInput().validity.valid},n.prototype.styleValidity=function(e){var t=n.cssClasses.INVALID;if(e?this.adapter.removeClass(t):this.adapter.addClass(t),this.helperText){if(this.helperText.setValidity(e),!this.helperText.isValidation())return;var i=this.helperText.isVisible(),o=this.helperText.getId();i&&o?this.adapter.setInputAttr(ov.ARIA_DESCRIBEDBY,o):this.adapter.removeInputAttr(ov.ARIA_DESCRIBEDBY)}},n.prototype.styleFocused=function(e){var t=n.cssClasses.FOCUSED;e?this.adapter.addClass(t):this.adapter.removeClass(t)},n.prototype.styleDisabled=function(e){var t=n.cssClasses,i=t.DISABLED,o=t.INVALID;e?(this.adapter.addClass(i),this.adapter.removeClass(o)):this.adapter.removeClass(i),this.leadingIcon&&this.leadingIcon.setDisabled(e),this.trailingIcon&&this.trailingIcon.setDisabled(e)},n.prototype.styleFloating=function(e){var t=n.cssClasses.LABEL_FLOATING;e?this.adapter.addClass(t):this.adapter.removeClass(t)},n.prototype.getNativeInput=function(){return(this.adapter?this.adapter.getNativeInput():null)||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},n}(Da),pv=hv;const uv=window,mv=uv.trustedTypes,fv=mv?mv.createPolicy("lit-html",{createHTML:e=>e}):void 0,gv="$lit$",vv=`lit$${(Math.random()+"").slice(9)}$`,_v="?"+vv,bv=`<${_v}>`,yv=document,xv=()=>yv.createComment(""),wv=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Av=Array.isArray,$v="[ \t\n\f\r]",Ev=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Cv=/-->/g,Sv=/>/g,Tv=RegExp(`>|${$v}(?:([^\\s"'>=/]+)(${$v}*=${$v}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),kv=/'/g,Ov=/"/g,Iv=/^(?:script|style|textarea|title)$/i,Mv=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),Nv=Symbol.for("lit-noChange"),Rv=Symbol.for("lit-nothing"),zv=new WeakMap,Lv=yv.createTreeWalker(yv,129,null,!1);function Hv(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==fv?fv.createHTML(t):t}const Pv=(e,t)=>{const i=e.length-1,n=[];let o,r=2===t?"<svg>":"",s=Ev;for(let t=0;t<i;t++){const i=e[t];let a,l,d=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===Ev?"!--"===l[1]?s=Cv:void 0!==l[1]?s=Sv:void 0!==l[2]?(Iv.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=Tv):void 0!==l[3]&&(s=Tv):s===Tv?">"===l[0]?(s=null!=o?o:Ev,d=-1):void 0===l[1]?d=-2:(d=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Tv:'"'===l[3]?Ov:kv):s===Ov||s===kv?s=Tv:s===Cv||s===Sv?s=Ev:(s=Tv,o=void 0);const h=s===Tv&&e[t+1].startsWith("/>")?" ":"";r+=s===Ev?i+bv:d>=0?(n.push(a),i.slice(0,d)+gv+i.slice(d)+vv+h):i+vv+(-2===d?(n.push(void 0),t):h)}return[Hv(e,r+(e[i]||"<?>")+(2===t?"</svg>":"")),n]};class Dv{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let o=0,r=0;const s=e.length-1,a=this.parts,[l,d]=Pv(e,t);if(this.el=Dv.createElement(l,i),Lv.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=Lv.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const e=[];for(const t of n.getAttributeNames())if(t.endsWith(gv)||t.startsWith(vv)){const i=d[r++];if(e.push(t),void 0!==i){const e=n.getAttribute(i.toLowerCase()+gv).split(vv),t=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:t[2],strings:e,ctor:"."===t[1]?jv:"?"===t[1]?qv:"@"===t[1]?Gv:Uv})}else a.push({type:6,index:o})}for(const t of e)n.removeAttribute(t)}if(Iv.test(n.tagName)){const e=n.textContent.split(vv),t=e.length-1;if(t>0){n.textContent=mv?mv.emptyScript:"";for(let i=0;i<t;i++)n.append(e[i],xv()),Lv.nextNode(),a.push({type:2,index:++o});n.append(e[t],xv())}}}else if(8===n.nodeType)if(n.data===_v)a.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(vv,e+1));)a.push({type:7,index:o}),e+=vv.length-1}o++}}static createElement(e,t){const i=yv.createElement("template");return i.innerHTML=e,i}}function Vv(e,t,i=e,n){var o,r,s,a;if(t===Nv)return t;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const d=wv(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===d?l=void 0:(l=new d(e),l._$AT(e,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(t=Vv(e,l._$AS(e,t.values),l,n)),t}class Fv{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,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:yv).importNode(i,!0);Lv.currentNode=o;let r=Lv.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let t;2===l.type?t=new Bv(r,r.nextSibling,this,e):1===l.type?t=new l.ctor(r,l.name,l.strings,this,e):6===l.type&&(t=new Xv(r,this,e)),this._$AV.push(t),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=Lv.nextNode(),s++)}return Lv.currentNode=yv,o}v(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 Bv{constructor(e,t,i,n){var o;this.type=2,this._$AH=Rv,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Vv(this,e,t),wv(e)?e===Rv||null==e||""===e?(this._$AH!==Rv&&this._$AR(),this._$AH=Rv):e!==this._$AH&&e!==Nv&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>Av(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Rv&&wv(this._$AH)?this._$AA.nextSibling.data=e:this.$(yv.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:n}=e,o="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=Dv.createElement(Hv(n.h,n.h[0]),this.options)),n);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(i);else{const e=new Fv(o,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=zv.get(e.strings);return void 0===t&&zv.set(e.strings,t=new Dv(e)),t}T(e){Av(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const o of e)n===t.length?t.push(i=new Bv(this.k(xv()),this.k(xv()),this,this.options)):i=t[n],i._$AI(o),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Uv{constructor(e,t,i,n,o){this.type=1,this._$AH=Rv,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Rv}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const o=this.strings;let r=!1;if(void 0===o)e=Vv(this,e,t,0),r=!wv(e)||e!==this._$AH&&e!==Nv,r&&(this._$AH=e);else{const n=e;let s,a;for(e=o[0],s=0;s<o.length-1;s++)a=Vv(this,n[i+s],t,s),a===Nv&&(a=this._$AH[s]),r||(r=!wv(a)||a!==this._$AH[s]),a===Rv?e=Rv:e!==Rv&&(e+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(e)}j(e){e===Rv?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class jv extends Uv{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Rv?void 0:e}}const Wv=mv?mv.emptyScript:"";class qv extends Uv{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Rv?this.element.setAttribute(this.name,Wv):this.element.removeAttribute(this.name)}}class Gv extends Uv{constructor(e,t,i,n,o){super(e,t,i,n,o),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=Vv(this,e,t,0))&&void 0!==i?i:Rv)===Nv)return;const n=this._$AH,o=e===Rv&&n!==Rv||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,r=e!==Rv&&(n===Rv||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}}class Xv{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){Vv(this,e)}}const Kv=uv.litHtmlPolyfillSupport;null==Kv||Kv(Dv,Bv),(null!==(nv=uv.litHtmlVersions)&&void 0!==nv?nv:uv.litHtmlVersions=[]).push("2.8.0");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
var Yv,Zv;class Jv extends Za{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.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,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:t;let s=r._$litPart$;if(void 0===s){const e=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new Bv(t.insertBefore(xv(),e),e,void 0,null!=i?i:{})}return s._$AI(e),s})(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 Nv}}Jv.finalized=!0,Jv._$litElement$=!0,null===(Yv=globalThis.litElementHydrateSupport)||void 0===Yv||Yv.call(globalThis,{LitElement:Jv});const Qv=globalThis.litElementPolyfillSupport;null==Qv||Qv({LitElement:Jv}),(null!==(Zv=globalThis.litElementVersions)&&void 0!==Zv?Zv:globalThis.litElementVersions=[]).push("3.3.3");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
const e_=1,t_=3,i_=4,n_=e=>(...t)=>({_$litDirective$:e,values:t});class o_{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 r_=n_(class extends o_{constructor(e){var t;if(super(e),e.type!==e_||"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]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(e))&&this.it.add(e);return this.render(t)}const o=e.element.classList;this.it.forEach((e=>{e in t||(o.remove(e),this.it.delete(e))}));for(const e in t){const i=!!t[e];i===this.it.has(e)||(null===(n=this.nt)||void 0===n?void 0:n.has(e))||(i?(o.add(e),this.it.add(e)):(o.remove(e),this.it.delete(e)))}return Nv}}),s_=e=>null!=e?e:Rv
|
||
/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/,a_={},l_=n_(class extends o_{constructor(e){if(super(e),e.type!==t_&&e.type!==e_&&e.type!==i_)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]){if(t===Nv||t===Rv)return t;const i=e.element,n=e.name;if(e.type===t_){if(t===i[n])return Nv}else if(e.type===i_){if(!!t===i.hasAttribute(n))return Nv}else if(e.type===e_&&i.getAttribute(n)===t+"")return Nv;return((e,t=a_)=>{e._$AH=t;
|
||
/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/})(e),t}}),d_=["touchstart","touchmove","scroll","mousewheel"],c_=(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 2018 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/class h_ extends rd{constructor(){super(...arguments),this.mdcFoundationClass=pv,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=c_(),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 Mv`
|
||
<label class="mdc-text-field ${r_(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?"":Mv`
|
||
<span class="mdc-text-field__ripple"></span>
|
||
`}renderOutline(){return this.outlined?Mv`
|
||
<mwc-notched-outline
|
||
.width=${this.outlineWidth}
|
||
.open=${this.outlineOpen}
|
||
class="mdc-notched-outline">
|
||
${this.renderLabel()}
|
||
</mwc-notched-outline>`:""}renderLabel(){return this.label?Mv`
|
||
<span
|
||
.floatingLabelFoundation=${Fc(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 Mv`<i class="material-icons mdc-text-field__icon ${r_({"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 Mv`<span class="mdc-text-field__affix ${r_({"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,o=this.validationMessage&&!this.isUiValid,r=this.label?"label":void 0,s=e?"helper-text":void 0,a=this.focused||this.helperPersistent||o?"helper-text":void 0;return Mv`
|
||
<input
|
||
aria-labelledby=${s_(r)}
|
||
aria-controls="${s_(s)}"
|
||
aria-describedby="${s_(a)}"
|
||
class="mdc-text-field__input"
|
||
type="${this.type}"
|
||
.value="${l_(this.value)}"
|
||
?disabled="${this.disabled}"
|
||
placeholder="${this.placeholder}"
|
||
?required="${this.required}"
|
||
?readonly="${this.readOnly}"
|
||
minlength="${s_(t)}"
|
||
maxlength="${s_(i)}"
|
||
pattern="${s_(this.pattern?this.pattern:void 0)}"
|
||
min="${s_(""===this.min?void 0:this.min)}"
|
||
max="${s_(""===this.max?void 0:this.max)}"
|
||
step="${s_(null===this.step?void 0:this.step)}"
|
||
size="${s_(null===this.size?void 0:this.size)}"
|
||
name="${s_(""===this.name?void 0:this.name)}"
|
||
inputmode="${s_(this.inputMode)}"
|
||
autocapitalize="${s_(n)}"
|
||
@input="${this.handleInputChange}"
|
||
@focus="${this.onInputFocus}"
|
||
@blur="${this.onInputBlur}">`}renderLineRipple(){return this.outlined?"":Mv`
|
||
<span .lineRippleFoundation=${Gc()}></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},o=this.focused||this.helperPersistent||i?void 0:"true",r=i?this.validationMessage:this.helper;return e?Mv`
|
||
<div class="mdc-text-field-helper-line">
|
||
<div id="helper-text"
|
||
aria-hidden="${s_(o)}"
|
||
class="mdc-text-field-helper-text ${r_(n)}"
|
||
>${r}</div>
|
||
${this.renderCharCounter(t)}
|
||
</div>`:""}renderCharCounter(e){const t=Math.min(this.value.length,this.maxLength);return e?Mv`
|
||
<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=c_(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()},Dl(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 d_}),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)}}n([Zl(".mdc-text-field")],h_.prototype,"mdcRoot",void 0),n([Zl("input")],h_.prototype,"formElement",void 0),n([Zl(".mdc-floating-label")],h_.prototype,"labelElement",void 0),n([Zl(".mdc-line-ripple")],h_.prototype,"lineRippleElement",void 0),n([Zl("mwc-notched-outline")],h_.prototype,"outlineElement",void 0),n([Zl(".mdc-notched-outline__notch")],h_.prototype,"notchElement",void 0),n([Gl({type:String})],h_.prototype,"value",void 0),n([Gl({type:String})],h_.prototype,"type",void 0),n([Gl({type:String})],h_.prototype,"placeholder",void 0),n([Gl({type:String}),sd((function(e,t){void 0!==t&&this.label!==t&&this.layout()}))],h_.prototype,"label",void 0),n([Gl({type:String})],h_.prototype,"icon",void 0),n([Gl({type:String})],h_.prototype,"iconTrailing",void 0),n([Gl({type:Boolean,reflect:!0})],h_.prototype,"disabled",void 0),n([Gl({type:Boolean})],h_.prototype,"required",void 0),n([Gl({type:Number})],h_.prototype,"minLength",void 0),n([Gl({type:Number})],h_.prototype,"maxLength",void 0),n([Gl({type:Boolean,reflect:!0}),sd((function(e,t){void 0!==t&&this.outlined!==t&&this.layout()}))],h_.prototype,"outlined",void 0),n([Gl({type:String})],h_.prototype,"helper",void 0),n([Gl({type:Boolean})],h_.prototype,"validateOnInitialRender",void 0),n([Gl({type:String})],h_.prototype,"validationMessage",void 0),n([Gl({type:Boolean})],h_.prototype,"autoValidate",void 0),n([Gl({type:String})],h_.prototype,"pattern",void 0),n([Gl({type:String})],h_.prototype,"min",void 0),n([Gl({type:String})],h_.prototype,"max",void 0),n([Gl({type:String})],h_.prototype,"step",void 0),n([Gl({type:Number})],h_.prototype,"size",void 0),n([Gl({type:Boolean})],h_.prototype,"helperPersistent",void 0),n([Gl({type:Boolean})],h_.prototype,"charCounter",void 0),n([Gl({type:Boolean})],h_.prototype,"endAligned",void 0),n([Gl({type:String})],h_.prototype,"prefix",void 0),n([Gl({type:String})],h_.prototype,"suffix",void 0),n([Gl({type:String})],h_.prototype,"name",void 0),n([Gl({type:String})],h_.prototype,"inputMode",void 0),n([Gl({type:Boolean})],h_.prototype,"readOnly",void 0),n([Gl({type:String})],h_.prototype,"autocapitalize",void 0),n([Xl()],h_.prototype,"outlineOpen",void 0),n([Xl()],h_.prototype,"outlineWidth",void 0),n([Xl()],h_.prototype,"isUiValid",void 0),n([Xl()],h_.prototype,"focused",void 0),n([Yl({passive:!0})],h_.prototype,"handleInputChange",null);
|
||
/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
* SPDX-LIcense-Identifier: Apache-2.0
|
||
*/
|
||
const p_=za`.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))}`,u_={"mwc-textfield":class extends h_{static get styles(){return p_}},"mwc-notched-outline":class extends Qf{static get styles(){return sg}}};let m_=class extends(function(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 o=this.renderOptions.creationScope=this.attachShadow({...n,customElements:e.registry});return La(o,this.constructor.elementStyles),o}}}(_t)){constructor(){super(...arguments),this._initialized=!1}setConfig(e){this._config=e,this.loadCardHelpers()}shouldUpdate(){return this._initialized||this._initialize(),!0}get _name(){var e;return(null===(e=this._config)||void 0===e?void 0:e.name)||""}get _entity(){var e;return(null===(e=this._config)||void 0===e?void 0:e.entity)||""}get _numSegments(){var e,t,i,n;return null!==(n=null!==(t=null===(e=this._config)||void 0===e?void 0:e.num_segments)&&void 0!==t?t:null===(i=this._config)||void 0===i?void 0:i.num_hours)&&void 0!==n?n:"12"}get _icons(){var e,t;return null!==(t=null===(e=this._config)||void 0===e?void 0:e.icons)&&void 0!==t&&t}get _show_wind(){var e;const t=null===(e=this._config)||void 0===e?void 0:e.show_wind;return"boolean"==typeof t?t?"true":"false":null!=t?t:"false"}get _show_precipitation_amounts(){var e,t;return null!==(t=null===(e=this._config)||void 0===e?void 0:e.show_precipitation_amounts)&&void 0!==t&&t}get _show_precipitation_probability(){var e,t;return null!==(t=null===(e=this._config)||void 0===e?void 0:e.show_precipitation_probability)&&void 0!==t&&t}get _offset(){var e,t;return null!==(t=null===(e=this._config)||void 0===e?void 0:e.offset)&&void 0!==t?t:"0"}get _labelSpacing(){var e,t;return null!==(t=null===(e=this._config)||void 0===e?void 0:e.label_spacing)&&void 0!==t?t:"2"}get _show_date(){var e,t;return null!==(t=null===(e=this._config)||void 0===e?void 0:e.show_date)&&void 0!==t?t:"false"}render(){var e,t,i;if(!this.hass||!this._helpers)return Me``;const n=Object.keys(this.hass.states).filter((e=>e.startsWith("weather."))),o=Oo(null===(e=this._config)||void 0===e?void 0:e.language,null===(i=null===(t=this.hass)||void 0===t?void 0:t.locale)||void 0===i?void 0:i.language);return Me`
|
||
<mwc-select
|
||
naturalMenuWidth
|
||
fixedMenuPosition
|
||
label=${o("editor.entity")}
|
||
.configValue=${"entity"}
|
||
.value=${this._entity}
|
||
@selected=${this._valueChanged}
|
||
@closed=${e=>e.stopPropagation()}
|
||
>
|
||
${n.map((e=>Me`<mwc-list-item .value=${e}>${e}</mwc-list-item>`))}
|
||
</mwc-select>
|
||
<mwc-textfield
|
||
label=${o("editor.name")}
|
||
.value=${this._name}
|
||
.configValue=${"name"}
|
||
@input=${this._valueChanged}
|
||
></mwc-textfield>
|
||
<mwc-textfield
|
||
label=${o("editor.segments_to_show")}
|
||
.value=${this._numSegments}
|
||
.configValue=${"num_segments"}
|
||
@input=${this._valueChanged}
|
||
.type=${"number"}
|
||
.min=${1}
|
||
.step=${1}
|
||
.pattern=${"[1-9][0-9]*"}
|
||
.autoValidate=${!0}
|
||
validationMessage=${o("errors.must_be_positive_int")}
|
||
></mwc-textfield>
|
||
<mwc-textfield
|
||
label=${o("editor.offset")}
|
||
.value=${this._offset}
|
||
.configValue=${"offset"}
|
||
@input=${this._valueChanged}
|
||
.type=${"number"}
|
||
.min=${0}
|
||
.autoValidate=${!0}
|
||
validationMessage=${o("errors.must_be_positive_int")}
|
||
></mwc-textfield>
|
||
<mwc-textfield
|
||
label=${o("editor.label_spacing")}
|
||
.value=${this._labelSpacing}
|
||
.configValue=${"label_spacing"}
|
||
@input=${this._valueChanged}
|
||
.type=${"number"}
|
||
.min=${1}
|
||
.step=${1}
|
||
.pattern=${"[1-9][0-9]*"}
|
||
.autoValidate=${!0}
|
||
validationMessage=${o("errors.must_be_positive_int")}
|
||
></mwc-textfield>
|
||
<mwc-formfield .label=${o("editor.icons")}>
|
||
<mwc-switch
|
||
.checked=${!0===this._icons}
|
||
.configValue=${"icons"}
|
||
@change=${this._valueChanged}
|
||
></mwc-switch>
|
||
</mwc-formfield>
|
||
<mwc-select
|
||
naturalMenuWidth
|
||
fixedMenuPosition
|
||
label=${o("editor.show_wind")}
|
||
.configValue=${"show_wind"}
|
||
.value=${this._show_wind}
|
||
@selected=${this._valueChanged}
|
||
@closed=${e=>e.stopPropagation()}
|
||
>
|
||
<mwc-list-item></mwc-list-item>
|
||
<mwc-list-item value="false">${o("editor.none")}</mwc-list-item>
|
||
<mwc-list-item value="true">${o("editor.speed_and_direction")}</mwc-list-item>
|
||
<mwc-list-item value="speed">${o("editor.speed_only")}</mwc-list-item>
|
||
<mwc-list-item value="direction">${o("editor.direction_only")}</mwc-list-item>
|
||
<mwc-list-item value="barb">${o("editor.barb")}</mwc-list-item>
|
||
<mwc-list-item value="barb-and-speed">${o("editor.barb_and_speed")}</mwc-list-item>
|
||
<mwc-list-item value="barb-and-direction">${o("editor.barb_and_direction")}</mwc-list-item>
|
||
<mwc-list-item value="barb-speed-and-direction">${o("editor.barb_speed_and_direction")}</mwc-list-item>
|
||
</mwc-select>
|
||
<mwc-select
|
||
naturalMenuWidth
|
||
fixedMenuPosition
|
||
label=${o("editor.show_date")}
|
||
.configValue=${"show_date"}
|
||
.value=${this._show_date}
|
||
@selected=${this._valueChanged}
|
||
@closed=${e=>e.stopPropagation()}
|
||
>
|
||
<mwc-list-item></mwc-list-item>
|
||
<mwc-list-item value="false">${o("editor.none")}</mwc-list-item>
|
||
<mwc-list-item value="all">${o("editor.all")}</mwc-list-item>
|
||
<mwc-list-item value="boundary">${o("editor.on_day_boundaries")}</mwc-list-item>
|
||
</mwc-select>
|
||
<mwc-formfield .label=${o("editor.show_precipitation_amounts")}>
|
||
<mwc-switch
|
||
.checked=${!0===this._show_precipitation_amounts}
|
||
.configValue=${"show_precipitation_amounts"}
|
||
@change=${this._valueChanged}
|
||
></mwc-switch>
|
||
</mwc-formfield>
|
||
<mwc-formfield .label=${o("editor.show_precipitation_probability")}>
|
||
<mwc-switch
|
||
.checked=${!0===this._show_precipitation_probability}
|
||
.configValue=${"show_precipitation_probability"}
|
||
@change=${this._valueChanged}
|
||
></mwc-switch>
|
||
</mwc-formfield>
|
||
`}_initialize(){void 0!==this.hass&&void 0!==this._config&&void 0!==this._helpers&&(this._initialized=!0)}async loadCardHelpers(){this._helpers=await window.loadCardHelpers()}_valueChanged(e){if(!this._config||!this.hass)return;const t=e.target;if(this[`_${t.configValue}`]!==t.value){if(t.configValue)if(""===t.value){const e=Object.assign({},this._config);delete e[t.configValue],this._config=e}else this._config=Object.assign(Object.assign({},this._config),{[t.configValue]:void 0!==t.checked?t.checked:t.value});if("num_hours"in this._config&&"num_segments"in this._config){const e=Object.assign({},this._config);delete e.num_hours,this._config=e}f(this,"config-changed",{config:this._config})}}};m_.elementDefinitions=Object.assign(Object.assign(Object.assign(Object.assign({},u_),ag),iv),Qd),m_.styles=tt`
|
||
mwc-select,
|
||
mwc-textfield {
|
||
margin-bottom: 16px;
|
||
display: block;
|
||
}
|
||
mwc-formfield {
|
||
padding-bottom: 8px;
|
||
}
|
||
mwc-switch {
|
||
--mdc-theme-secondary: var(--switch-checked-color);
|
||
}
|
||
`,n([At({attribute:!1})],m_.prototype,"hass",void 0),n([$t()],m_.prototype,"_config",void 0),n([$t()],m_.prototype,"_helpers",void 0),m_=n([yt("hourly-weather-editor")],m_);var f_=Object.freeze({__proto__:null,get HourlyWeatherCardEditor(){return m_}});export{ka as HourlyWeatherCard};
|