diff --git a/home-assistant-polymer b/home-assistant-polymer index 066a0771b..910cd98a3 160000 --- a/home-assistant-polymer +++ b/home-assistant-polymer @@ -1 +1 @@ -Subproject commit 066a0771b37241af79bcdfad72a414441dff4688 +Subproject commit 910cd98a3816cf25388f8d5978cecc2975a94309 diff --git a/supervisor/api/panel/entrypoint.js b/supervisor/api/panel/entrypoint.js index a717e4b40..84ab851b1 100644 --- a/supervisor/api/panel/entrypoint.js +++ b/supervisor/api/panel/entrypoint.js @@ -1,14 +1,14 @@ function loadES5() { var el = document.createElement('script'); - el.src = '/api/hassio/app/frontend_es5/entrypoint.6ba12ae1.js'; + el.src = '/api/hassio/app/frontend_es5/entrypoint.4bb3aeeb.js'; document.body.appendChild(el); } if (/.*Version\/(?:11|12)(?:\.\d+)*.*Safari\//.test(navigator.userAgent)) { loadES5(); } else { try { - new Function("import('/api/hassio/app/frontend_latest/entrypoint.6a1c9a14.js')")(); + new Function("import('/api/hassio/app/frontend_latest/entrypoint.9dbee840.js')")(); } catch (err) { loadES5(); } diff --git a/supervisor/api/panel/entrypoint.js.gz b/supervisor/api/panel/entrypoint.js.gz index 3c5601005..3fbe6513d 100644 Binary files a/supervisor/api/panel/entrypoint.js.gz and b/supervisor/api/panel/entrypoint.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/07205acd.js.gz b/supervisor/api/panel/frontend_es5/07205acd.js.gz deleted file mode 100644 index fd18b67be..000000000 Binary files a/supervisor/api/panel/frontend_es5/07205acd.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/b3d3e583.js b/supervisor/api/panel/frontend_es5/0989d194.js similarity index 51% rename from supervisor/api/panel/frontend_es5/b3d3e583.js rename to supervisor/api/panel/frontend_es5/0989d194.js index 80896ff32..b2ed1249d 100644 --- a/supervisor/api/panel/frontend_es5/b3d3e583.js +++ b/supervisor/api/panel/frontend_es5/0989d194.js @@ -1,2 +1,2 @@ -/*! For license information please see b3d3e583.js.LICENSE.txt */ -(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[151],{49075:function(e,n,t){"use strict";t.d(n,{S:function(){return o},B:function(){return s}});t(67034);var i=t(51644),r=t(26110),a=t(84938),o={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(e){e&&this.ensureRipple(),this.hasRipple()&&(this._ripple.holdDown=e)},_createRipple:function(){var e=a.o._createRipple();return e.id="ink",e.setAttribute("center",""),e.classList.add("circle"),e}},s=[i.P,r.a,a.o,o]},84938:function(e,n,t){"use strict";t.d(n,{o:function(){return a}});t(67034),t(60748);var i=t(51644),r=t(18149),a={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},_downHandler:function(e){i.$._downHandler.call(this,e),this.pressed&&this.ensureRipple(e)},ensureRipple:function(e){if(!this.hasRipple()){this._ripple=this._createRipple(),this._ripple.noink=this.noink;var n=this._rippleContainer||this.root;if(n&&(0,r.vz)(n).appendChild(this._ripple),e){var t=(0,r.vz)(this._rippleContainer||this),i=(0,r.vz)(e).rootTarget;t.deepContains(i)&&this._ripple.uiDownAction(e)}}},getRipple:function(){return this.ensureRipple(),this._ripple},hasRipple:function(){return Boolean(this._ripple)},_createRipple:function(){return document.createElement("paper-ripple")},_noinkChanged:function(e){this.hasRipple()&&(this._ripple.noink=e)}}},76480:function(e,n,t){"use strict";t(67034);var i,r=t(21006),a=t(98235),o={properties:{checked:{type:Boolean,value:!1,reflectToAttribute:!0,notify:!0,observer:"_checkedChanged"},toggles:{type:Boolean,value:!0,reflectToAttribute:!0},value:{type:String,value:"on",observer:"_valueChanged"}},observers:["_requiredChanged(required)"],created:function(){this._hasIronCheckedElementBehavior=!0},_getValidity:function(e){return this.disabled||!this.required||this.checked},_requiredChanged:function(){this.required?this.setAttribute("aria-required","true"):this.removeAttribute("aria-required")},_checkedChanged:function(){this.active=this.checked,this.fire("iron-change")},_valueChanged:function(){void 0!==this.value&&null!==this.value||(this.value="on")}},s=[r.V,a.x,o],l=t(49075),c=t(84938),d={_checkedChanged:function(){o._checkedChanged.call(this),this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},_buttonStateChanged:function(){c.o._buttonStateChanged.call(this),this.disabled||this.isAttached&&(this.checked=this.active)}},p=[l.B,s,d],u=t(67139),h=t(50856),f=t(87529);var m,g,b=(0,h.d)(i||(m=['\n\n
\n
\n
\n
\n
\n\n
'],(g=['\n\n
\n
\n
\n
\n
\n\n
'])||(g=m.slice(0)),i=Object.freeze(Object.defineProperties(m,{raw:{value:Object.freeze(g)}}))));b.setAttribute("strip-whitespace",""),(0,u.k)({_template:b,is:"paper-checkbox",behaviors:[p],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){(0,f.T8)(this,(function(){if("-1px"===this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()){var e=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),n="px",t=e.match(/[A-Za-z]+$/);null!==t&&(n=t[0]);var i=parseFloat(e),r=8/3*i;"px"===n&&(r=Math.floor(r))%2!=i%2&&r++,this.updateStyles({"--paper-checkbox-ink-size":r+n})}}))},_computeCheckboxClass:function(e,n){var t="";return e&&(t+="checked "),n&&(t+="invalid"),t},_computeCheckmarkClass:function(e){return e?"":"hidden"},_createRipple:function(){return this._rippleContainer=this.$.checkboxContainer,l.S._createRipple.call(this)}})},25782:function(e,n,t){"use strict";t(67034),t(65660),t(70019),t(97968);var i,r,a,o=t(67139),s=t(50856),l=t(33760);(0,o.k)({_template:(0,s.d)(i||(r=['\n \n \n\n
\n \n
\n \n'],a||(a=r.slice(0)),i=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(a)}})))),is:"paper-icon-item",behaviors:[l.U]})},1548:function(e,n,t){"use strict";t(65660),t(77956);var i,r,a,o=t(67034),s={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(e){return(this._clampValue(e)-this.min)/(this.max-this.min)},_clampValue:function(e){return Math.min(this.max,Math.max(this.min,this._calcStep(e)))},_calcStep:function(e){if(e=parseFloat(e),!this.step)return e;var n=Math.round((e-this.min)/this.step);return this.step<1?n/(1/this.step)+this.min:n*this.step+this.min},_validateValue:function(){var e=this._clampValue(this.value);return this.value=this.oldValue=isNaN(e)?this.oldValue:e,this.value!==e},_update:function(){this._validateValue(),this._setRatio(100*this._calcRatio(this.value))}},l=t(67139),c=t(50856);(0,l.k)({_template:(0,c.d)(i||(r=['\n \n\n
\n
\n
\n
\n'],a=['\n \n\n
\n
\n
\n
\n'],a||(a=r.slice(0)),i=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(a)}})))),is:"paper-progress",behaviors:[s],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(e){this.toggleClass("indeterminate",e,this.$.primaryProgress)},_transformProgress:function(e,n){var t="scaleX("+n/100+")";e.style.transform=e.style.webkitTransform=t},_mainRatioChanged:function(e){this._transformProgress(this.$.primaryProgress,e)},_progressChanged:function(e,n,t,i,r){e=this._clampValue(e),n=this._clampValue(n);var a=100*this._calcRatio(e),o=100*this._calcRatio(n);this._setSecondaryRatio(a),this._transformProgress(this.$.secondaryProgress,a),this._transformProgress(this.$.primaryProgress,o),this.secondaryProgress=e,r?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",n),this.setAttribute("aria-valuemin",t),this.setAttribute("aria-valuemax",i)},_disabledChanged:function(e){this.setAttribute("aria-disabled",e?"true":"false")},_hideSecondaryProgress:function(e){return 0===e}});var d,p=t(8621),u=t(21006),h=t(49075),f=t(81668);var m=(0,o.dy)(d||(d=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(['\n \n\n
\n
\n \n
\n\n \n\n
\n
\n
\n
\n\n \n'],['\n \n\n
\n
\n \n
\n\n \n\n
\n
\n
\n
\n\n \n'])));m.setAttribute("strip-whitespace",""),(0,l.k)({_template:m,is:"paper-slider",behaviors:[p.G,u.V,h.B,s],properties:{value:{type:Number,value:0},snaps:{type:Boolean,value:!1,notify:!0},pin:{type:Boolean,value:!1,notify:!0},secondaryProgress:{type:Number,value:0,notify:!0,observer:"_secondaryProgressChanged"},editable:{type:Boolean,value:!1},immediateValue:{type:Number,value:0,readOnly:!0,notify:!0},maxMarkers:{type:Number,value:0,notify:!0},expand:{type:Boolean,value:!1,readOnly:!0},ignoreBarTouch:{type:Boolean,value:!1},dragging:{type:Boolean,value:!1,readOnly:!0,notify:!0},transiting:{type:Boolean,value:!1,readOnly:!0},markers:{type:Array,readOnly:!0,value:function(){return[]}}},observers:["_updateKnob(value, min, max, snaps, step)","_valueChanged(value)","_immediateValueChanged(immediateValue)","_updateMarkers(maxMarkers, min, max, snaps)"],hostAttributes:{role:"slider",tabindex:0},keyBindings:{left:"_leftKey",right:"_rightKey","down pagedown home":"_decrementKey","up pageup end":"_incrementKey"},ready:function(){this.ignoreBarTouch&&(0,f.BP)(this.$.sliderBar,"auto")},increment:function(){this.value=this._clampValue(this.value+this.step)},decrement:function(){this.value=this._clampValue(this.value-this.step)},_updateKnob:function(e,n,t,i,r){this.setAttribute("aria-valuemin",n),this.setAttribute("aria-valuemax",t),this.setAttribute("aria-valuenow",e),this._positionKnob(100*this._calcRatio(e))},_valueChanged:function(){this.fire("value-change",{composed:!0})},_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},_expandKnob:function(){this._setExpand(!0)},_resetKnob:function(){this.cancelDebouncer("expandKnob"),this._setExpand(!1)},_positionKnob:function(e){this._setImmediateValue(this._calcStep(this._calcKnobPosition(e))),this._setRatio(100*this._calcRatio(this.immediateValue)),this.$.sliderKnob.style.left=this.ratio+"%",this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},_calcKnobPosition:function(e){return(this.max-this.min)*e/100+this.min},_onTrack:function(e){switch(e.stopPropagation(),e.detail.state){case"start":this._trackStart(e);break;case"track":this._trackX(e);break;case"end":this._trackEnd()}},_trackStart:function(e){this._setTransiting(!1),this._w=this.$.sliderBar.offsetWidth,this._x=this.ratio*this._w/100,this._startx=this._x,this._knobstartx=this._startx,this._minx=-this._startx,this._maxx=this._w-this._startx,this.$.sliderKnob.classList.add("dragging"),this._setDragging(!0)},_trackX:function(e){this.dragging||this._trackStart(e);var n=this._isRTL?-1:1,t=Math.min(this._maxx,Math.max(this._minx,e.detail.dx*n));this._x=this._startx+t;var i=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(i);var r=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(r+"px",0,0,this.$.sliderKnob)},_trackEnd:function(){var e=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging"),this._setDragging(!1),this._resetKnob(),this.value=this.immediateValue,e.transform=e.webkitTransform="",this.fire("change",{composed:!0})},_knobdown:function(e){this._expandKnob(),e.preventDefault(),this.focus()},_bartrack:function(e){this._allowBarEvent(e)&&this._onTrack(e)},_barclick:function(e){this._w=this.$.sliderBar.offsetWidth;var n=this.$.sliderBar.getBoundingClientRect(),t=(e.detail.x-n.left)/this._w*100;this._isRTL&&(t=100-t);var i=this.ratio;this._setTransiting(!0),this._positionKnob(t),i===this.ratio&&this._setTransiting(!1),this.async((function(){this.fire("change",{composed:!0})})),e.preventDefault(),this.focus()},_bardown:function(e){this._allowBarEvent(e)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(e))},_knobTransitionEnd:function(e){e.target===this.$.sliderKnob&&this._setTransiting(!1)},_updateMarkers:function(e,n,t,i){i||this._setMarkers([]);var r=Math.round((t-n)/this.step);r>e&&(r=e),(r<0||!isFinite(r))&&(r=0),this._setMarkers(new Array(r))},_mergeClasses:function(e){return Object.keys(e).filter((function(n){return e[n]})).join(" ")},_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},_allowBarEvent:function(e){return!this.ignoreBarTouch||e.detail.sourceEvent instanceof MouseEvent},get _isRTL(){return void 0===this.__isRTL&&(this.__isRTL="rtl"===window.getComputedStyle(this).direction),this.__isRTL},_leftKey:function(e){this._isRTL?this._incrementKey(e):this._decrementKey(e)},_rightKey:function(e){this._isRTL?this._decrementKey(e):this._incrementKey(e)},_incrementKey:function(e){this.disabled||("end"===e.detail.key?this.value=this.max:this.increment(),this.fire("change"),e.preventDefault())},_decrementKey:function(e){this.disabled||("home"===e.detail.key?this.value=this.min:this.decrement(),this.fire("change"),e.preventDefault())},_changeValue:function(e){this.value=e.target.value,this.fire("change",{composed:!0})},_inputKeyDown:function(e){e.stopPropagation()},_createRipple:function(){return this._rippleContainer=this.$.sliderKnob,h.S._createRipple.call(this)},_focusedChanged:function(e){e&&this.ensureRipple(),this.hasRipple()&&(this._ripple.style.display=e?"":"none",this._ripple.holdDown=e)}})},21560:function(e,n,t){"use strict";t.d(n,{ZH:function(){return d},MT:function(){return o},U2:function(){return l},RV:function(){return a},t8:function(){return c}});var i,r=function(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(n){var t=function(){return indexedDB.databases().finally(n)};e=setInterval(t,100),t()})).finally((function(){return clearInterval(e)})):Promise.resolve()};function a(e){return new Promise((function(n,t){e.oncomplete=e.onsuccess=function(){return n(e.result)},e.onabort=e.onerror=function(){return t(e.error)}}))}function o(e,n){var t=r().then((function(){var t=indexedDB.open(e);return t.onupgradeneeded=function(){return t.result.createObjectStore(n)},a(t)}));return function(e,i){return t.then((function(t){return i(t.transaction(n,e).objectStore(n))}))}}function s(){return i||(i=o("keyval-store","keyval")),i}function l(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s();return n("readonly",(function(n){return a(n.get(e))}))}function c(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s();return t("readwrite",(function(t){return t.put(n,e),a(t.transaction)}))}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s();return e("readwrite",(function(e){return e.clear(),a(e.transaction)}))}},61740:function(){var e,n,t;n={},t={},function(e,n){function t(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=u}function i(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function r(n,i,r){var a=new t;return i&&(a.fill="both",a.duration="auto"),"number"!=typeof n||isNaN(n)?void 0!==n&&Object.getOwnPropertyNames(n).forEach((function(t){if("auto"!=n[t]){if(("number"==typeof a[t]||"duration"==t)&&("number"!=typeof n[t]||isNaN(n[t])))return;if("fill"==t&&-1==d.indexOf(n[t]))return;if("direction"==t&&-1==p.indexOf(n[t]))return;if("playbackRate"==t&&1!==n[t]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;a[t]=n[t]}})):a.duration=n,a}function a(e,n,t,i){return e<0||e>1||t<0||t>1?u:function(r){function a(e,n,t){return 3*e*(1-t)*(1-t)*t+3*n*(1-t)*t*t+t*t*t}if(r<=0){var o=0;return e>0?o=n/e:!n&&t>0&&(o=i/t),o*r}if(r>=1){var s=0;return t<1?s=(i-1)/(t-1):1==t&&e<1&&(s=(n-1)/(e-1)),1+s*(r-1)}for(var l=0,c=1;l=1)return 1;var i=1/e;return(t+=n*i)-t%i}}function s(e){b||(b=document.createElement("div").style),b.animationTimingFunction="",b.animationTimingFunction=e;var n=b.animationTimingFunction;if(""==n&&i())throw new TypeError(e+" is not a valid value for easing");return n}function l(e){if("linear"==e)return u;var n=_.exec(e);if(n)return a.apply(this,n.slice(1).map(Number));var t=k.exec(e);if(t)return o(Number(t[1]),m);var i=y.exec(e);return i?o(Number(i[1]),{start:h,middle:f,end:m}[i[2]]):g[e]||u}function c(e,n,t){if(null==n)return x;var i=t.delay+e+t.endDelay;return n=Math.min(t.delay+e,i)?T:P}var d="backwards|forwards|both|none".split("|"),p="reverse|alternate|alternate-reverse".split("|"),u=function(e){return e};t.prototype={_setMember:function(n,t){this["_"+n]=t,this._effect&&(this._effect._timingInput[n]=t,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&i())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&i())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=l(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&i())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var h=1,f=.5,m=0,g={ease:a(.25,.1,.25,1),"ease-in":a(.42,0,1,1),"ease-out":a(0,0,.58,1),"ease-in-out":a(.42,0,.58,1),"step-start":o(1,h),"step-middle":o(1,f),"step-end":o(1,m)},b=null,v="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",_=new RegExp("cubic-bezier\\("+v+","+v+","+v+","+v+"\\)"),k=/steps\(\s*(\d+)\s*\)/,y=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,x=0,w=1,T=2,P=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var n={};for(var t in e)n[t]=e[t];return n},e.makeTiming=r,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(n,t){return r(n=e.numericTimingToObject(n),t)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,n,t){var i=c(e,n,t),r=function(e,n,t,i,r){switch(i){case w:return"backwards"==n||"both"==n?0:null;case P:return t-r;case T:return"forwards"==n||"both"==n?e:null;case x:return null}}(e,t.fill,n,i,t.delay);if(null===r)return null;var a=function(e,n,t,i,r){var a=r;return 0===e?n!==w&&(a+=t):a+=i/e,a}(t.duration,i,t.iterations,r,t.iterationStart),o=function(e,n,t,i,r,a){var o=e===1/0?n%1:e%1;return 0!==o||t!==T||0===i||0===r&&0!==a||(o=1),o}(a,t.iterationStart,i,t.iterations,r,t.duration),s=function(e,n,t,i){return e===T&&n===1/0?1/0:1===t?Math.floor(i)-1:Math.floor(i)}(i,t.iterations,o,a),l=function(e,n,t){var i=e;if("normal"!==e&&"reverse"!==e){var r=n;"alternate-reverse"===e&&(r+=1),i="normal",r!==1/0&&r%2!=0&&(i="reverse")}return"normal"===i?t:1-t}(t.direction,s,o);return t._easingFunction(l)},e.calculatePhase=c,e.normalizeEasing=s,e.parseEasingFunction=l}(e={}),function(e,n){function t(e,n){return e in l&&l[e][n]||n}function i(e,n,i){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var r=a[e];if(r)for(var s in o.style[e]=n,r){var l=r[s],c=o.style[l];i[l]=t(l,c)}else i[e]=t(e,n)}}function r(e){var n=[];for(var t in e)if(!(t in["easing","offset","composite"])){var i=e[t];Array.isArray(i)||(i=[i]);for(var r,a=i.length,o=0;o1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==r){if("add"==a||"accumulate"==a)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=a)throw new TypeError("Invalid composite mode "+a+".")}else a="easing"==r?e.normalizeEasing(a):""+a;i(r,a,t)}return null==t.offset&&(t.offset=null),null==t.easing&&(t.easing="linear"),t})),a=!0,o=-1/0,s=0;s=0&&e.offset<=1})),a||function(){var e=t.length;null==t[e-1].offset&&(t[e-1].offset=1),e>1&&null==t[0].offset&&(t[0].offset=0);for(var n=0,i=t[0].offset,r=1;r=e.applyFrom&&t0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(n.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),n.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),n.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var t=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),n.applyDirtiedAnimation(this)),null!=t&&(this.currentTime=t)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),n.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,n.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),n.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,n){"function"==typeof n&&"finish"==e&&this._finishHandlers.push(n)},removeEventListener:function(e,n){if("finish"==e){var t=this._finishHandlers.indexOf(n);t>=0&&this._finishHandlers.splice(t,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var n=new i(this,this._currentTime,e),t=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){t.forEach((function(e){e.call(n.target,n)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,n){this._idle||this._paused||(null==this._startTime?n&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),n&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),n=e.indexOf(this);-1!==n&&e.splice(n,1)}}}(e,n),function(e,n,t){function i(e){var n=c;c=[],ei?t%=i:i%=t;return e*n/(t+i)}(i.length,r.length),c=0;c=1?n:"visible"}]}),["visibility"])}(n),function(e,n){function t(e){e=e.trim(),a.fillStyle="#000",a.fillStyle=e;var n=a.fillStyle;if(a.fillStyle="#fff",a.fillStyle=e,n==a.fillStyle){a.fillRect(0,0,1,1);var t=a.getImageData(0,0,1,1).data;a.clearRect(0,0,1,1);var i=t[3]/255;return[t[0]*i,t[1]*i,t[2]*i,i]}}function i(n,t){return[n,t,function(n){function t(e){return Math.max(0,Math.min(255,e))}if(n[3])for(var i=0;i<3;i++)n[i]=Math.round(t(n[i]/n[3]));return n[3]=e.numberToString(e.clamp(0,1,n[3])),"rgba("+n.join(",")+")"}]}var r=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");r.width=r.height=1;var a=r.getContext("2d");e.addPropertiesHandler(t,i,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,t),e.mergeColors=i}(n),function(e,n){function t(e){function n(){var n=o.exec(e);a=n?n[0]:void 0}function t(){if("("!==a)return function(){var e=Number(a);return n(),e}();n();var e=r();return")"!==a?NaN:(n(),e)}function i(){for(var e=t();"*"===a||"/"===a;){var i=a;n();var r=t();"*"===i?e*=r:e/=r}return e}function r(){for(var e=i();"+"===a||"-"===a;){var t=a;n();var r=i();"+"===t?e+=r:e-=r}return e}var a,o=/([\+\-\w\.]+|[\(\)\*\/])/g;return n(),r()}function i(e,n){if("0"==(n=n.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(n)){n=n.replace(/calc\(/g,"(");var i={};n=n.replace(e,(function(e){return i[e]=null,"U"+e}));for(var r="U("+e.source+")",a=n.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+r,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),o=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s1?"calc("+t+")":t}]}var o="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=i.bind(null,new RegExp(o,"g")),l=i.bind(null,new RegExp(o+"|%","g")),c=i.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=l,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,l),e.parseAngle=c,e.mergeDimensions=a;var d=e.consumeParenthesised.bind(null,s),p=e.consumeRepeated.bind(void 0,d,/^/),u=e.consumeRepeated.bind(void 0,p,/^,/);e.consumeSizePairList=u;var h=e.mergeNestedRepeated.bind(void 0,r," "),f=e.mergeNestedRepeated.bind(void 0,h,",");e.mergeNonNegativeSizePair=h,e.addPropertiesHandler((function(e){var n=u(e);if(n&&""==n[1])return n[0]}),f,["background-size"]),e.addPropertiesHandler(l,r,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(l,a,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(n),function(e,n){function t(n){return e.consumeLengthOrPercent(n)||e.consumeToken(/^auto/,n)}function i(n){var i=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,t,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],n);if(i&&4==i[0].length)return i[0]}var r=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(n,t){return"auto"==n||"auto"==t?[!0,!1,function(i){var r=i?n:t;if("auto"==r)return"auto";var a=e.mergeDimensions(r,r);return a[2](a[0])}]:e.mergeDimensions(n,t)}),", ");e.parseBox=i,e.mergeBoxes=r,e.addPropertiesHandler(i,r,["clip"])}(n),function(e,n){function t(e){return function(n){var t=0;return e.map((function(e){return e===c?n[t++]:e}))}}function i(e){return e}function r(n){if("none"==(n=n.toLowerCase().trim()))return[];for(var t,i=/\s*(\w+)\(([^)]*)\)/g,r=[],a=0;t=i.exec(n);){if(t.index!=a)return;a=t.index+t[0].length;var o=t[1],s=u[o];if(!s)return;var l=t[2].split(","),c=s[0];if(c.length=0&&this._cancelHandlers.splice(t,1)}else l.call(this,e,n)},a}}}(),function(e){var n=document.documentElement,t=null,i=!1;try{var r="0"==getComputedStyle(n).getPropertyValue("opacity")?"1":"0";(t=n.animate({opacity:[r,r]},{duration:1})).currentTime=0,i=getComputedStyle(n).getPropertyValue("opacity")==r}catch(e){}finally{t&&t.cancel()}if(!i){var a=window.Element.prototype.animate;window.Element.prototype.animate=function(n,t){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&n[Symbol.iterator]&&(n=Array.from(n)),Array.isArray(n)||null===n||(n=e.convertToArrayForm(n)),a.call(this,n,t)}}}(e),function(e,n,t){function i(e){var t=n.timeline;t.currentTime=e,t._discardAnimations(),0==t._animations.length?a=!1:requestAnimationFrame(i)}var r=window.requestAnimationFrame;window.requestAnimationFrame=function(e){return r((function(t){n.timeline._updateAnimationsPromises(),e(t),n.timeline._updateAnimationsPromises()}))},n.AnimationTimeline=function(){this._animations=[],this.currentTime=void 0},n.AnimationTimeline.prototype={getAnimations:function(){return this._discardAnimations(),this._animations.slice()},_updateAnimationsPromises:function(){n.animationsWithPromises=n.animationsWithPromises.filter((function(e){return e._updatePromises()}))},_discardAnimations:function(){this._updateAnimationsPromises(),this._animations=this._animations.filter((function(e){return"finished"!=e.playState&&"idle"!=e.playState}))},_play:function(e){var t=new n.Animation(e,this);return this._animations.push(t),n.restartWebAnimationsNextTick(),t._updatePromises(),t._animation.play(),t._updatePromises(),t},play:function(e){return e&&e.remove(),this._play(e)}};var a=!1;n.restartWebAnimationsNextTick=function(){a||(a=!0,requestAnimationFrame(i))};var o=new n.AnimationTimeline;n.timeline=o;try{Object.defineProperty(window.document,"timeline",{configurable:!0,get:function(){return o}})}catch(e){}try{window.document.timeline=o}catch(e){}}(0,t),function(e,n,t){n.animationsWithPromises=[],n.Animation=function(n,t){if(this.id="",n&&n._id&&(this.id=n._id),this.effect=n,n&&(n._animation=this),!t)throw new Error("Animation with null timeline is not supported");this._timeline=t,this._sequenceNumber=e.sequenceNumber++,this._holdTime=0,this._paused=!1,this._isGroup=!1,this._animation=null,this._childAnimations=[],this._callback=null,this._oldPlayState="idle",this._rebuildUnderlyingAnimation(),this._animation.cancel(),this._updatePromises()},n.Animation.prototype={_updatePromises:function(){var e=this._oldPlayState,n=this.playState;return this._readyPromise&&n!==e&&("idle"==n?(this._rejectReadyPromise(),this._readyPromise=void 0):"pending"==e?this._resolveReadyPromise():"pending"==n&&(this._readyPromise=void 0)),this._finishedPromise&&n!==e&&("idle"==n?(this._rejectFinishedPromise(),this._finishedPromise=void 0):"finished"==n?this._resolveFinishedPromise():"finished"==e&&(this._finishedPromise=void 0)),this._oldPlayState=this.playState,this._readyPromise||this._finishedPromise},_rebuildUnderlyingAnimation:function(){this._updatePromises();var e,t,i,r,a=!!this._animation;a&&(e=this.playbackRate,t=this._paused,i=this.startTime,r=this.currentTime,this._animation.cancel(),this._animation._wrapper=null,this._animation=null),(!this.effect||this.effect instanceof window.KeyframeEffect)&&(this._animation=n.newUnderlyingAnimationForKeyframeEffect(this.effect),n.bindAnimationForKeyframeEffect(this)),(this.effect instanceof window.SequenceEffect||this.effect instanceof window.GroupEffect)&&(this._animation=n.newUnderlyingAnimationForGroup(this.effect),n.bindAnimationForGroup(this)),this.effect&&this.effect._onsample&&n.bindAnimationForCustomEffect(this),a&&(1!=e&&(this.playbackRate=e),null!==i?this.startTime=i:null!==r?this.currentTime=r:null!==this._holdTime&&(this.currentTime=this._holdTime),t&&this.pause()),this._updatePromises()},_updateChildren:function(){if(this.effect&&"idle"!=this.playState){var e=this.effect._timing.delay;this._childAnimations.forEach(function(t){this._arrangeChildren(t,e),this.effect instanceof window.SequenceEffect&&(e+=n.groupChildDuration(t.effect))}.bind(this))}},_setExternalAnimation:function(e){if(this.effect&&this._isGroup)for(var n=0;n\n :host {\n display: inline-block;\n white-space: nowrap;\n cursor: pointer;\n --calculated-paper-checkbox-size: var(--paper-checkbox-size, 18px);\n /* -1px is a sentinel for the default and is replaced in `attached`. */\n --calculated-paper-checkbox-ink-size: var(--paper-checkbox-ink-size, -1px);\n @apply --paper-font-common-base;\n line-height: 0;\n -webkit-tap-highlight-color: transparent;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n\n :host(:focus) {\n outline: none;\n }\n\n .hidden {\n display: none;\n }\n\n #checkboxContainer {\n display: inline-block;\n position: relative;\n width: var(--calculated-paper-checkbox-size);\n height: var(--calculated-paper-checkbox-size);\n min-width: var(--calculated-paper-checkbox-size);\n margin: var(--paper-checkbox-margin, initial);\n vertical-align: var(--paper-checkbox-vertical-align, middle);\n background-color: var(--paper-checkbox-unchecked-background-color, transparent);\n }\n\n #ink {\n position: absolute;\n\n /* Center the ripple in the checkbox by negative offsetting it by\n * (inkWidth - rippleWidth) / 2 */\n top: calc(0px - (var(--calculated-paper-checkbox-ink-size) - var(--calculated-paper-checkbox-size)) / 2);\n left: calc(0px - (var(--calculated-paper-checkbox-ink-size) - var(--calculated-paper-checkbox-size)) / 2);\n width: var(--calculated-paper-checkbox-ink-size);\n height: var(--calculated-paper-checkbox-ink-size);\n color: var(--paper-checkbox-unchecked-ink-color, var(--primary-text-color));\n opacity: 0.6;\n pointer-events: none;\n }\n\n #ink:dir(rtl) {\n right: calc(0px - (var(--calculated-paper-checkbox-ink-size) - var(--calculated-paper-checkbox-size)) / 2);\n left: auto;\n }\n\n #ink[checked] {\n color: var(--paper-checkbox-checked-ink-color, var(--primary-color));\n }\n\n #checkbox {\n position: relative;\n box-sizing: border-box;\n height: 100%;\n border: solid 2px;\n border-color: var(--paper-checkbox-unchecked-color, var(--primary-text-color));\n border-radius: 2px;\n pointer-events: none;\n -webkit-transition: background-color 140ms, border-color 140ms;\n transition: background-color 140ms, border-color 140ms;\n\n -webkit-transition-duration: var(--paper-checkbox-animation-duration, 140ms);\n transition-duration: var(--paper-checkbox-animation-duration, 140ms);\n }\n\n /* checkbox checked animations */\n #checkbox.checked #checkmark {\n -webkit-animation: checkmark-expand 140ms ease-out forwards;\n animation: checkmark-expand 140ms ease-out forwards;\n\n -webkit-animation-duration: var(--paper-checkbox-animation-duration, 140ms);\n animation-duration: var(--paper-checkbox-animation-duration, 140ms);\n }\n\n @-webkit-keyframes checkmark-expand {\n 0% {\n -webkit-transform: scale(0, 0) rotate(45deg);\n }\n 100% {\n -webkit-transform: scale(1, 1) rotate(45deg);\n }\n }\n\n @keyframes checkmark-expand {\n 0% {\n transform: scale(0, 0) rotate(45deg);\n }\n 100% {\n transform: scale(1, 1) rotate(45deg);\n }\n }\n\n #checkbox.checked {\n background-color: var(--paper-checkbox-checked-color, var(--primary-color));\n border-color: var(--paper-checkbox-checked-color, var(--primary-color));\n }\n\n #checkmark {\n position: absolute;\n width: 36%;\n height: 70%;\n border-style: solid;\n border-top: none;\n border-left: none;\n border-right-width: calc(2/15 * var(--calculated-paper-checkbox-size));\n border-bottom-width: calc(2/15 * var(--calculated-paper-checkbox-size));\n border-color: var(--paper-checkbox-checkmark-color, white);\n -webkit-transform-origin: 97% 86%;\n transform-origin: 97% 86%;\n box-sizing: content-box; /* protect against page-level box-sizing */\n }\n\n #checkmark:dir(rtl) {\n -webkit-transform-origin: 50% 14%;\n transform-origin: 50% 14%;\n }\n\n /* label */\n #checkboxLabel {\n position: relative;\n display: inline-block;\n vertical-align: middle;\n padding-left: var(--paper-checkbox-label-spacing, 8px);\n white-space: normal;\n line-height: normal;\n color: var(--paper-checkbox-label-color, var(--primary-text-color));\n @apply --paper-checkbox-label;\n }\n\n :host([checked]) #checkboxLabel {\n color: var(--paper-checkbox-label-checked-color, var(--paper-checkbox-label-color, var(--primary-text-color)));\n @apply --paper-checkbox-label-checked;\n }\n\n #checkboxLabel:dir(rtl) {\n padding-right: var(--paper-checkbox-label-spacing, 8px);\n padding-left: 0;\n }\n\n #checkboxLabel[hidden] {\n display: none;\n }\n\n /* disabled state */\n\n :host([disabled]) #checkbox {\n opacity: 0.5;\n border-color: var(--paper-checkbox-unchecked-color, var(--primary-text-color));\n }\n\n :host([disabled][checked]) #checkbox {\n background-color: var(--paper-checkbox-unchecked-color, var(--primary-text-color));\n opacity: 0.5;\n }\n\n :host([disabled]) #checkboxLabel {\n opacity: 0.65;\n }\n\n /* invalid state */\n #checkbox.invalid:not(.checked) {\n border-color: var(--paper-checkbox-error-color, var(--error-color));\n }\n\n\n
\n
\n
\n
\n
\n\n
'],(g=['\n\n
\n
\n
\n
\n
\n\n
'])||(g=m.slice(0)),i=Object.freeze(Object.defineProperties(m,{raw:{value:Object.freeze(g)}}))));b.setAttribute("strip-whitespace",""),(0,u.k)({_template:b,is:"paper-checkbox",behaviors:[p],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){(0,f.T8)(this,(function(){if("-1px"===this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()){var e=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),n="px",t=e.match(/[A-Za-z]+$/);null!==t&&(n=t[0]);var i=parseFloat(e),r=8/3*i;"px"===n&&(r=Math.floor(r))%2!=i%2&&r++,this.updateStyles({"--paper-checkbox-ink-size":r+n})}}))},_computeCheckboxClass:function(e,n){var t="";return e&&(t+="checked "),n&&(t+="invalid"),t},_computeCheckmarkClass:function(e){return e?"":"hidden"},_createRipple:function(){return this._rippleContainer=this.$.checkboxContainer,l.S._createRipple.call(this)}})},25782:function(e,n,t){"use strict";t(67034),t(65660),t(70019),t(97968);var i,r,a,o=t(67139),s=t(50856),l=t(33760);(0,o.k)({_template:(0,s.d)(i||(r=['\n \n \n\n
\n \n
\n \n'],a||(a=r.slice(0)),i=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(a)}})))),is:"paper-icon-item",behaviors:[l.U]})},1548:function(e,n,t){"use strict";t(65660),t(77956);var i,r,a,o=t(67034),s={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(e){return(this._clampValue(e)-this.min)/(this.max-this.min)},_clampValue:function(e){return Math.min(this.max,Math.max(this.min,this._calcStep(e)))},_calcStep:function(e){if(e=parseFloat(e),!this.step)return e;var n=Math.round((e-this.min)/this.step);return this.step<1?n/(1/this.step)+this.min:n*this.step+this.min},_validateValue:function(){var e=this._clampValue(this.value);return this.value=this.oldValue=isNaN(e)?this.oldValue:e,this.value!==e},_update:function(){this._validateValue(),this._setRatio(100*this._calcRatio(this.value))}},l=t(67139),c=t(50856);(0,l.k)({_template:(0,c.d)(i||(r=['\n \n\n
\n
\n
\n
\n'],a=['\n \n\n
\n
\n
\n
\n'],a||(a=r.slice(0)),i=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(a)}})))),is:"paper-progress",behaviors:[s],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(e){this.toggleClass("indeterminate",e,this.$.primaryProgress)},_transformProgress:function(e,n){var t="scaleX("+n/100+")";e.style.transform=e.style.webkitTransform=t},_mainRatioChanged:function(e){this._transformProgress(this.$.primaryProgress,e)},_progressChanged:function(e,n,t,i,r){e=this._clampValue(e),n=this._clampValue(n);var a=100*this._calcRatio(e),o=100*this._calcRatio(n);this._setSecondaryRatio(a),this._transformProgress(this.$.secondaryProgress,a),this._transformProgress(this.$.primaryProgress,o),this.secondaryProgress=e,r?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",n),this.setAttribute("aria-valuemin",t),this.setAttribute("aria-valuemax",i)},_disabledChanged:function(e){this.setAttribute("aria-disabled",e?"true":"false")},_hideSecondaryProgress:function(e){return 0===e}});var d,p=t(8621),u=t(21006),h=t(49075),f=t(81668);var m=(0,o.dy)(d||(d=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(['\n \n\n
\n
\n \n
\n\n \n\n
\n
\n
\n
\n\n \n'],['\n \n\n
\n
\n \n
\n\n \n\n
\n
\n
\n
\n\n \n'])));m.setAttribute("strip-whitespace",""),(0,l.k)({_template:m,is:"paper-slider",behaviors:[p.G,u.V,h.B,s],properties:{value:{type:Number,value:0},snaps:{type:Boolean,value:!1,notify:!0},pin:{type:Boolean,value:!1,notify:!0},secondaryProgress:{type:Number,value:0,notify:!0,observer:"_secondaryProgressChanged"},editable:{type:Boolean,value:!1},immediateValue:{type:Number,value:0,readOnly:!0,notify:!0},maxMarkers:{type:Number,value:0,notify:!0},expand:{type:Boolean,value:!1,readOnly:!0},ignoreBarTouch:{type:Boolean,value:!1},dragging:{type:Boolean,value:!1,readOnly:!0,notify:!0},transiting:{type:Boolean,value:!1,readOnly:!0},markers:{type:Array,readOnly:!0,value:function(){return[]}}},observers:["_updateKnob(value, min, max, snaps, step)","_valueChanged(value)","_immediateValueChanged(immediateValue)","_updateMarkers(maxMarkers, min, max, snaps)"],hostAttributes:{role:"slider",tabindex:0},keyBindings:{left:"_leftKey",right:"_rightKey","down pagedown home":"_decrementKey","up pageup end":"_incrementKey"},ready:function(){this.ignoreBarTouch&&(0,f.BP)(this.$.sliderBar,"auto")},increment:function(){this.value=this._clampValue(this.value+this.step)},decrement:function(){this.value=this._clampValue(this.value-this.step)},_updateKnob:function(e,n,t,i,r){this.setAttribute("aria-valuemin",n),this.setAttribute("aria-valuemax",t),this.setAttribute("aria-valuenow",e),this._positionKnob(100*this._calcRatio(e))},_valueChanged:function(){this.fire("value-change",{composed:!0})},_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},_expandKnob:function(){this._setExpand(!0)},_resetKnob:function(){this.cancelDebouncer("expandKnob"),this._setExpand(!1)},_positionKnob:function(e){this._setImmediateValue(this._calcStep(this._calcKnobPosition(e))),this._setRatio(100*this._calcRatio(this.immediateValue)),this.$.sliderKnob.style.left=this.ratio+"%",this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},_calcKnobPosition:function(e){return(this.max-this.min)*e/100+this.min},_onTrack:function(e){switch(e.stopPropagation(),e.detail.state){case"start":this._trackStart(e);break;case"track":this._trackX(e);break;case"end":this._trackEnd()}},_trackStart:function(e){this._setTransiting(!1),this._w=this.$.sliderBar.offsetWidth,this._x=this.ratio*this._w/100,this._startx=this._x,this._knobstartx=this._startx,this._minx=-this._startx,this._maxx=this._w-this._startx,this.$.sliderKnob.classList.add("dragging"),this._setDragging(!0)},_trackX:function(e){this.dragging||this._trackStart(e);var n=this._isRTL?-1:1,t=Math.min(this._maxx,Math.max(this._minx,e.detail.dx*n));this._x=this._startx+t;var i=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(i);var r=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(r+"px",0,0,this.$.sliderKnob)},_trackEnd:function(){var e=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging"),this._setDragging(!1),this._resetKnob(),this.value=this.immediateValue,e.transform=e.webkitTransform="",this.fire("change",{composed:!0})},_knobdown:function(e){this._expandKnob(),e.preventDefault(),this.focus()},_bartrack:function(e){this._allowBarEvent(e)&&this._onTrack(e)},_barclick:function(e){this._w=this.$.sliderBar.offsetWidth;var n=this.$.sliderBar.getBoundingClientRect(),t=(e.detail.x-n.left)/this._w*100;this._isRTL&&(t=100-t);var i=this.ratio;this._setTransiting(!0),this._positionKnob(t),i===this.ratio&&this._setTransiting(!1),this.async((function(){this.fire("change",{composed:!0})})),e.preventDefault(),this.focus()},_bardown:function(e){this._allowBarEvent(e)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(e))},_knobTransitionEnd:function(e){e.target===this.$.sliderKnob&&this._setTransiting(!1)},_updateMarkers:function(e,n,t,i){i||this._setMarkers([]);var r=Math.round((t-n)/this.step);r>e&&(r=e),(r<0||!isFinite(r))&&(r=0),this._setMarkers(new Array(r))},_mergeClasses:function(e){return Object.keys(e).filter((function(n){return e[n]})).join(" ")},_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},_allowBarEvent:function(e){return!this.ignoreBarTouch||e.detail.sourceEvent instanceof MouseEvent},get _isRTL(){return void 0===this.__isRTL&&(this.__isRTL="rtl"===window.getComputedStyle(this).direction),this.__isRTL},_leftKey:function(e){this._isRTL?this._incrementKey(e):this._decrementKey(e)},_rightKey:function(e){this._isRTL?this._decrementKey(e):this._incrementKey(e)},_incrementKey:function(e){this.disabled||("end"===e.detail.key?this.value=this.max:this.increment(),this.fire("change"),e.preventDefault())},_decrementKey:function(e){this.disabled||("home"===e.detail.key?this.value=this.min:this.decrement(),this.fire("change"),e.preventDefault())},_changeValue:function(e){this.value=e.target.value,this.fire("change",{composed:!0})},_inputKeyDown:function(e){e.stopPropagation()},_createRipple:function(){return this._rippleContainer=this.$.sliderKnob,h.S._createRipple.call(this)},_focusedChanged:function(e){e&&this.ensureRipple(),this.hasRipple()&&(this._ripple.style.display=e?"":"none",this._ripple.holdDown=e)}})},61740:function(){var e,n,t;n={},t={},function(e,n){function t(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=u}function i(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function r(n,i,r){var a=new t;return i&&(a.fill="both",a.duration="auto"),"number"!=typeof n||isNaN(n)?void 0!==n&&Object.getOwnPropertyNames(n).forEach((function(t){if("auto"!=n[t]){if(("number"==typeof a[t]||"duration"==t)&&("number"!=typeof n[t]||isNaN(n[t])))return;if("fill"==t&&-1==d.indexOf(n[t]))return;if("direction"==t&&-1==p.indexOf(n[t]))return;if("playbackRate"==t&&1!==n[t]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;a[t]=n[t]}})):a.duration=n,a}function a(e,n,t,i){return e<0||e>1||t<0||t>1?u:function(r){function a(e,n,t){return 3*e*(1-t)*(1-t)*t+3*n*(1-t)*t*t+t*t*t}if(r<=0){var o=0;return e>0?o=n/e:!n&&t>0&&(o=i/t),o*r}if(r>=1){var s=0;return t<1?s=(i-1)/(t-1):1==t&&e<1&&(s=(n-1)/(e-1)),1+s*(r-1)}for(var l=0,c=1;l=1)return 1;var i=1/e;return(t+=n*i)-t%i}}function s(e){b||(b=document.createElement("div").style),b.animationTimingFunction="",b.animationTimingFunction=e;var n=b.animationTimingFunction;if(""==n&&i())throw new TypeError(e+" is not a valid value for easing");return n}function l(e){if("linear"==e)return u;var n=_.exec(e);if(n)return a.apply(this,n.slice(1).map(Number));var t=k.exec(e);if(t)return o(Number(t[1]),m);var i=y.exec(e);return i?o(Number(i[1]),{start:h,middle:f,end:m}[i[2]]):g[e]||u}function c(e,n,t){if(null==n)return x;var i=t.delay+e+t.endDelay;return n=Math.min(t.delay+e,i)?T:P}var d="backwards|forwards|both|none".split("|"),p="reverse|alternate|alternate-reverse".split("|"),u=function(e){return e};t.prototype={_setMember:function(n,t){this["_"+n]=t,this._effect&&(this._effect._timingInput[n]=t,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&i())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&i())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=l(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&i())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var h=1,f=.5,m=0,g={ease:a(.25,.1,.25,1),"ease-in":a(.42,0,1,1),"ease-out":a(0,0,.58,1),"ease-in-out":a(.42,0,.58,1),"step-start":o(1,h),"step-middle":o(1,f),"step-end":o(1,m)},b=null,v="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",_=new RegExp("cubic-bezier\\("+v+","+v+","+v+","+v+"\\)"),k=/steps\(\s*(\d+)\s*\)/,y=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,x=0,w=1,T=2,P=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var n={};for(var t in e)n[t]=e[t];return n},e.makeTiming=r,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(n,t){return r(n=e.numericTimingToObject(n),t)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,n,t){var i=c(e,n,t),r=function(e,n,t,i,r){switch(i){case w:return"backwards"==n||"both"==n?0:null;case P:return t-r;case T:return"forwards"==n||"both"==n?e:null;case x:return null}}(e,t.fill,n,i,t.delay);if(null===r)return null;var a=function(e,n,t,i,r){var a=r;return 0===e?n!==w&&(a+=t):a+=i/e,a}(t.duration,i,t.iterations,r,t.iterationStart),o=function(e,n,t,i,r,a){var o=e===1/0?n%1:e%1;return 0!==o||t!==T||0===i||0===r&&0!==a||(o=1),o}(a,t.iterationStart,i,t.iterations,r,t.duration),s=function(e,n,t,i){return e===T&&n===1/0?1/0:1===t?Math.floor(i)-1:Math.floor(i)}(i,t.iterations,o,a),l=function(e,n,t){var i=e;if("normal"!==e&&"reverse"!==e){var r=n;"alternate-reverse"===e&&(r+=1),i="normal",r!==1/0&&r%2!=0&&(i="reverse")}return"normal"===i?t:1-t}(t.direction,s,o);return t._easingFunction(l)},e.calculatePhase=c,e.normalizeEasing=s,e.parseEasingFunction=l}(e={}),function(e,n){function t(e,n){return e in l&&l[e][n]||n}function i(e,n,i){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var r=a[e];if(r)for(var s in o.style[e]=n,r){var l=r[s],c=o.style[l];i[l]=t(l,c)}else i[e]=t(e,n)}}function r(e){var n=[];for(var t in e)if(!(t in["easing","offset","composite"])){var i=e[t];Array.isArray(i)||(i=[i]);for(var r,a=i.length,o=0;o1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==r){if("add"==a||"accumulate"==a)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=a)throw new TypeError("Invalid composite mode "+a+".")}else a="easing"==r?e.normalizeEasing(a):""+a;i(r,a,t)}return null==t.offset&&(t.offset=null),null==t.easing&&(t.easing="linear"),t})),a=!0,o=-1/0,s=0;s=0&&e.offset<=1})),a||function(){var e=t.length;null==t[e-1].offset&&(t[e-1].offset=1),e>1&&null==t[0].offset&&(t[0].offset=0);for(var n=0,i=t[0].offset,r=1;r=e.applyFrom&&t0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(n.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),n.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),n.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var t=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),n.applyDirtiedAnimation(this)),null!=t&&(this.currentTime=t)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),n.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,n.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),n.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,n){"function"==typeof n&&"finish"==e&&this._finishHandlers.push(n)},removeEventListener:function(e,n){if("finish"==e){var t=this._finishHandlers.indexOf(n);t>=0&&this._finishHandlers.splice(t,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var n=new i(this,this._currentTime,e),t=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){t.forEach((function(e){e.call(n.target,n)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,n){this._idle||this._paused||(null==this._startTime?n&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),n&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),n=e.indexOf(this);-1!==n&&e.splice(n,1)}}}(e,n),function(e,n,t){function i(e){var n=c;c=[],ei?t%=i:i%=t;return e*n/(t+i)}(i.length,r.length),c=0;c=1?n:"visible"}]}),["visibility"])}(n),function(e,n){function t(e){e=e.trim(),a.fillStyle="#000",a.fillStyle=e;var n=a.fillStyle;if(a.fillStyle="#fff",a.fillStyle=e,n==a.fillStyle){a.fillRect(0,0,1,1);var t=a.getImageData(0,0,1,1).data;a.clearRect(0,0,1,1);var i=t[3]/255;return[t[0]*i,t[1]*i,t[2]*i,i]}}function i(n,t){return[n,t,function(n){function t(e){return Math.max(0,Math.min(255,e))}if(n[3])for(var i=0;i<3;i++)n[i]=Math.round(t(n[i]/n[3]));return n[3]=e.numberToString(e.clamp(0,1,n[3])),"rgba("+n.join(",")+")"}]}var r=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");r.width=r.height=1;var a=r.getContext("2d");e.addPropertiesHandler(t,i,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,t),e.mergeColors=i}(n),function(e,n){function t(e){function n(){var n=o.exec(e);a=n?n[0]:void 0}function t(){if("("!==a)return function(){var e=Number(a);return n(),e}();n();var e=r();return")"!==a?NaN:(n(),e)}function i(){for(var e=t();"*"===a||"/"===a;){var i=a;n();var r=t();"*"===i?e*=r:e/=r}return e}function r(){for(var e=i();"+"===a||"-"===a;){var t=a;n();var r=i();"+"===t?e+=r:e-=r}return e}var a,o=/([\+\-\w\.]+|[\(\)\*\/])/g;return n(),r()}function i(e,n){if("0"==(n=n.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(n)){n=n.replace(/calc\(/g,"(");var i={};n=n.replace(e,(function(e){return i[e]=null,"U"+e}));for(var r="U("+e.source+")",a=n.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+r,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),o=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s1?"calc("+t+")":t}]}var o="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=i.bind(null,new RegExp(o,"g")),l=i.bind(null,new RegExp(o+"|%","g")),c=i.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=l,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,l),e.parseAngle=c,e.mergeDimensions=a;var d=e.consumeParenthesised.bind(null,s),p=e.consumeRepeated.bind(void 0,d,/^/),u=e.consumeRepeated.bind(void 0,p,/^,/);e.consumeSizePairList=u;var h=e.mergeNestedRepeated.bind(void 0,r," "),f=e.mergeNestedRepeated.bind(void 0,h,",");e.mergeNonNegativeSizePair=h,e.addPropertiesHandler((function(e){var n=u(e);if(n&&""==n[1])return n[0]}),f,["background-size"]),e.addPropertiesHandler(l,r,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(l,a,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(n),function(e,n){function t(n){return e.consumeLengthOrPercent(n)||e.consumeToken(/^auto/,n)}function i(n){var i=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,t,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],n);if(i&&4==i[0].length)return i[0]}var r=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(n,t){return"auto"==n||"auto"==t?[!0,!1,function(i){var r=i?n:t;if("auto"==r)return"auto";var a=e.mergeDimensions(r,r);return a[2](a[0])}]:e.mergeDimensions(n,t)}),", ");e.parseBox=i,e.mergeBoxes=r,e.addPropertiesHandler(i,r,["clip"])}(n),function(e,n){function t(e){return function(n){var t=0;return e.map((function(e){return e===c?n[t++]:e}))}}function i(e){return e}function r(n){if("none"==(n=n.toLowerCase().trim()))return[];for(var t,i=/\s*(\w+)\(([^)]*)\)/g,r=[],a=0;t=i.exec(n);){if(t.index!=a)return;a=t.index+t[0].length;var o=t[1],s=u[o];if(!s)return;var l=t[2].split(","),c=s[0];if(c.length=0&&this._cancelHandlers.splice(t,1)}else l.call(this,e,n)},a}}}(),function(e){var n=document.documentElement,t=null,i=!1;try{var r="0"==getComputedStyle(n).getPropertyValue("opacity")?"1":"0";(t=n.animate({opacity:[r,r]},{duration:1})).currentTime=0,i=getComputedStyle(n).getPropertyValue("opacity")==r}catch(e){}finally{t&&t.cancel()}if(!i){var a=window.Element.prototype.animate;window.Element.prototype.animate=function(n,t){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&n[Symbol.iterator]&&(n=Array.from(n)),Array.isArray(n)||null===n||(n=e.convertToArrayForm(n)),a.call(this,n,t)}}}(e),function(e,n,t){function i(e){var t=n.timeline;t.currentTime=e,t._discardAnimations(),0==t._animations.length?a=!1:requestAnimationFrame(i)}var r=window.requestAnimationFrame;window.requestAnimationFrame=function(e){return r((function(t){n.timeline._updateAnimationsPromises(),e(t),n.timeline._updateAnimationsPromises()}))},n.AnimationTimeline=function(){this._animations=[],this.currentTime=void 0},n.AnimationTimeline.prototype={getAnimations:function(){return this._discardAnimations(),this._animations.slice()},_updateAnimationsPromises:function(){n.animationsWithPromises=n.animationsWithPromises.filter((function(e){return e._updatePromises()}))},_discardAnimations:function(){this._updateAnimationsPromises(),this._animations=this._animations.filter((function(e){return"finished"!=e.playState&&"idle"!=e.playState}))},_play:function(e){var t=new n.Animation(e,this);return this._animations.push(t),n.restartWebAnimationsNextTick(),t._updatePromises(),t._animation.play(),t._updatePromises(),t},play:function(e){return e&&e.remove(),this._play(e)}};var a=!1;n.restartWebAnimationsNextTick=function(){a||(a=!0,requestAnimationFrame(i))};var o=new n.AnimationTimeline;n.timeline=o;try{Object.defineProperty(window.document,"timeline",{configurable:!0,get:function(){return o}})}catch(e){}try{window.document.timeline=o}catch(e){}}(0,t),function(e,n,t){n.animationsWithPromises=[],n.Animation=function(n,t){if(this.id="",n&&n._id&&(this.id=n._id),this.effect=n,n&&(n._animation=this),!t)throw new Error("Animation with null timeline is not supported");this._timeline=t,this._sequenceNumber=e.sequenceNumber++,this._holdTime=0,this._paused=!1,this._isGroup=!1,this._animation=null,this._childAnimations=[],this._callback=null,this._oldPlayState="idle",this._rebuildUnderlyingAnimation(),this._animation.cancel(),this._updatePromises()},n.Animation.prototype={_updatePromises:function(){var e=this._oldPlayState,n=this.playState;return this._readyPromise&&n!==e&&("idle"==n?(this._rejectReadyPromise(),this._readyPromise=void 0):"pending"==e?this._resolveReadyPromise():"pending"==n&&(this._readyPromise=void 0)),this._finishedPromise&&n!==e&&("idle"==n?(this._rejectFinishedPromise(),this._finishedPromise=void 0):"finished"==n?this._resolveFinishedPromise():"finished"==e&&(this._finishedPromise=void 0)),this._oldPlayState=this.playState,this._readyPromise||this._finishedPromise},_rebuildUnderlyingAnimation:function(){this._updatePromises();var e,t,i,r,a=!!this._animation;a&&(e=this.playbackRate,t=this._paused,i=this.startTime,r=this.currentTime,this._animation.cancel(),this._animation._wrapper=null,this._animation=null),(!this.effect||this.effect instanceof window.KeyframeEffect)&&(this._animation=n.newUnderlyingAnimationForKeyframeEffect(this.effect),n.bindAnimationForKeyframeEffect(this)),(this.effect instanceof window.SequenceEffect||this.effect instanceof window.GroupEffect)&&(this._animation=n.newUnderlyingAnimationForGroup(this.effect),n.bindAnimationForGroup(this)),this.effect&&this.effect._onsample&&n.bindAnimationForCustomEffect(this),a&&(1!=e&&(this.playbackRate=e),null!==i?this.startTime=i:null!==r?this.currentTime=r:null!==this._holdTime&&(this.currentTime=this._holdTime),t&&this.pause()),this._updatePromises()},_updateChildren:function(){if(this.effect&&"idle"!=this.playState){var e=this.effect._timing.delay;this._childAnimations.forEach(function(t){this._arrangeChildren(t,e),this.effect instanceof window.SequenceEffect&&(e+=n.groupChildDuration(t.effect))}.bind(this))}},_setExternalAnimation:function(e){if(this.effect&&this._isGroup)for(var n=0;n=0;o--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,n[o])(a)||a);e=c.element,this.addElementPlacement(e,t),c.finisher&&i.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;i--){var n=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[i])(n)||n);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;se.length)&&(t=e.length);for(var r=0,i=new Array(t);r\n ","\n \n "])),this.moving?this.dialogParams.supervisor.localize("dialog.datadisk_move.moving"):this.dialogParams.supervisor.localize("dialog.datadisk_move.title"),this.closeDialog,this.moving,this.moving?(0,d.dy)(o||(o=E([' \n \n

\n ',"\n

"])),this.dialogParams.supervisor.localize("dialog.datadisk_move.moving_desc")):(0,d.dy)(s||(s=E([" ",'\n\n \n \n ',"\n \n \n "])),this.dialogParams.supervisor.localize("dialog.datadisk_move.description",{current_path:this.dialogParams.supervisor.os.data_disk,time:M(this.dialogParams.supervisor)}),this.dialogParams.supervisor.localize("dialog.datadisk_move.select_device"),this._select_device,this.devices.map((function(e){return(0,d.dy)(c||(c=E(["",""])),e)}))):void 0===this.devices?this.dialogParams.supervisor.localize("dialog.datadisk_move.loading_devices"):this.dialogParams.supervisor.localize("dialog.datadisk_move.no_devices"),this.closeDialog,this.dialogParams.supervisor.localize("dialog.datadisk_move.cancel"),!this.selectedDevice,this._moveDatadisk,this.dialogParams.supervisor.localize("dialog.datadisk_move.move"))):(0,d.dy)(i||(i=E([""])))}},{kind:"method",key:"_select_device",value:function(e){this.selectedDevice=e.detail.value}},{kind:"method",key:"_moveDatadisk",value:(r=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.moving=!0,e.prev=1,e.next=4,(0,y.Sx)(this.hass,this.selectedDevice);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),this.hass.connection.connected&&!(0,v.yz)(e.t0)&&((0,g.Ys)(this,{title:this.dialogParams.supervisor.localize("system.host.failed_to_move"),text:(0,v.js)(e.t0)}),this.closeDialog());case 9:case"end":return e.stop()}}),e,this,[[1,6]])})),u=function(){var e=this,t=arguments;return new Promise((function(i,n){var o=r.apply(e,t);function s(e){w(o,i,n,s,a,"next",e)}function a(e){w(o,i,n,s,a,"throw",e)}s(void 0)}))},function(){return u.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[k.Qx,k.yu,(0,d.iv)(l||(l=E(["\n paper-dropdown-menu {\n width: 100%;\n }\n ha-circular-progress {\n display: block;\n margin: 32px;\n text-align: center;\n }\n\n .progress-text {\n text-align: center;\n }\n "])))]}}]}}),d.oi)}}]); \ No newline at end of file +"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[708],{52708:function(e,t,r){r.r(t);r(73449),r(53973),r(11488);var i,n,o,s,a,c,l,d=r(7599),u=r(26767),f=r(5701),p=r(17717),h=r(14516),m=r(47181),v=(r(34552),r(93546),r(41682)),y=r(35460),g=r(26765),k=r(11654);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function w(e,t,r,i,n,o,s){try{var a=e[o](s),c=a.value}catch(l){return void r(l)}a.done?t(c):Promise.resolve(c).then(i,n)}function E(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,i=S(e);if(t){var n=S(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return x(this,r)}}function x(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return z(e)}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function A(){A=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(i){t.forEach((function(t){var n=t.placement;if(t.kind===i&&("static"===n||"prototype"===n)){var o="static"===n?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var i=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===i?void 0:i.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],i=[],n={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,n)}),this),e.forEach((function(e){if(!j(e))return r.push(e);var t=this.decorateElement(e,n);r.push(t.element),r.push.apply(r,t.extras),i.push.apply(i,t.finishers)}),this),!t)return{elements:r,finishers:i};var o=this.decorateConstructor(r,t);return i.push.apply(i,o.finishers),o.finishers=i,o},addElementPlacement:function(e,t,r){var i=t[e.placement];if(!r&&-1!==i.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,t){for(var r=[],i=[],n=e.decorators,o=n.length-1;o>=0;o--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,n[o])(a)||a);e=c.element,this.addElementPlacement(e,t),c.finisher&&i.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;i--){var n=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[i])(n)||n);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;se.length)&&(t=e.length);for(var r=0,i=new Array(t);r\n ","\n \n "])),this.moving?this.dialogParams.supervisor.localize("dialog.datadisk_move.moving"):this.dialogParams.supervisor.localize("dialog.datadisk_move.title"),this.closeDialog,this.moving,this.moving?(0,d.dy)(o||(o=E([' \n \n

\n ',"\n

"])),this.dialogParams.supervisor.localize("dialog.datadisk_move.moving_desc")):(0,d.dy)(s||(s=E([" ",'\n\n \n \n ',"\n \n \n "])),this.dialogParams.supervisor.localize("dialog.datadisk_move.description",{current_path:this.dialogParams.supervisor.os.data_disk,time:M(this.dialogParams.supervisor)}),this.dialogParams.supervisor.localize("dialog.datadisk_move.select_device"),this._select_device,this.devices.map((function(e){return(0,d.dy)(c||(c=E(["",""])),e)}))):void 0===this.devices?this.dialogParams.supervisor.localize("dialog.datadisk_move.loading_devices"):this.dialogParams.supervisor.localize("dialog.datadisk_move.no_devices"),this.closeDialog,this.dialogParams.supervisor.localize("dialog.datadisk_move.cancel"),!this.selectedDevice,this._moveDatadisk,this.dialogParams.supervisor.localize("dialog.datadisk_move.move"))):(0,d.dy)(i||(i=E([""])))}},{kind:"method",key:"_select_device",value:function(e){this.selectedDevice=e.detail.value}},{kind:"method",key:"_moveDatadisk",value:(r=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.moving=!0,e.prev=1,e.next=4,(0,y.Sx)(this.hass,this.selectedDevice);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),this.hass.connection.connected&&!(0,v.yz)(e.t0)&&((0,g.Ys)(this,{title:this.dialogParams.supervisor.localize("system.host.failed_to_move"),text:(0,v.js)(e.t0)}),this.closeDialog());case 9:case"end":return e.stop()}}),e,this,[[1,6]])})),u=function(){var e=this,t=arguments;return new Promise((function(i,n){var o=r.apply(e,t);function s(e){w(o,i,n,s,a,"next",e)}function a(e){w(o,i,n,s,a,"throw",e)}s(void 0)}))},function(){return u.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[k.Qx,k.yu,(0,d.iv)(l||(l=E(["\n paper-dropdown-menu {\n width: 100%;\n }\n ha-circular-progress {\n display: block;\n margin: 32px;\n text-align: center;\n }\n\n .progress-text {\n text-align: center;\n }\n "])))]}}]}}),d.oi)}}]); \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/28fc574d.js.gz b/supervisor/api/panel/frontend_es5/28fc574d.js.gz new file mode 100644 index 000000000..fc59c4fb7 Binary files /dev/null and b/supervisor/api/panel/frontend_es5/28fc574d.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/07205acd.js b/supervisor/api/panel/frontend_es5/37f808e6.js similarity index 62% rename from supervisor/api/panel/frontend_es5/07205acd.js rename to supervisor/api/panel/frontend_es5/37f808e6.js index 8c22b46ec..2b9096e3f 100644 --- a/supervisor/api/panel/frontend_es5/07205acd.js +++ b/supervisor/api/panel/frontend_es5/37f808e6.js @@ -1 +1 @@ -"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[658],{34658:function(e,t,r){r.r(t);var n=r(7599),i=r(26767),o=r(5701),a=r(17717),s=r(14516),c=r(47181),l=r(83849),d=r(15493),u=(r(34552),r(34154)),f=r(41682),p=(r(48811),r(21625),r(50054),r(11654)),h=r(55677),m=(r(89579),r(34178),r(53973),r(11488),r(61740),r(98762),r(9381),r(22098),r(20258)),y=r(26765);function v(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}var b,w,g,k,E,_=function(){var e,t=(e=regeneratorRuntime.mark((function e(t,r,n,i){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.g7)(t,{title:n.localize("common.restart_name","name",i.name),text:n.localize("dialog.restart_addon.text"),confirmText:n.localize("dialog.restart_addon.confirm_text"),dismissText:n.localize("common.cancel")});case 2:if(!e.sent){e.next=12;break}return e.prev=4,e.next=7,(0,u.P$)(r,i.slug);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(4),(0,y.Ys)(t,{title:n.localize("common.failed_to_restart_name","name",i.name),text:(0,f.js)(e.t0)});case 12:case"end":return e.stop()}}),e,null,[[4,9]])})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){v(o,n,i,a,s,"next",e)}function s(e){v(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e,r,n,i){return t.apply(this,arguments)}}();function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function P(e){return function(e){if(Array.isArray(e))return N(e)}(e)||$(e)||B(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function S(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){x(o,n,i,a,s,"next",e)}function s(e){x(o,n,i,a,s,"throw",e)}a(void 0)}))}}function O(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){return D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},D(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=q(e);if(t){var i=q(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return T(this,r)}}function T(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return z(e)}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(){R=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!M(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n\n \n \n \n \n
\n ',""])),this._error):"",this.supervisor.localize("addon.configuration.audio.input"),this._setInputDevice,this._selectedInput,this._inputDevices&&this._inputDevices.map((function(e){return(0,n.dy)(g||(g=O(["\n \n ","\n \n "])),e.device||"",e.name)})),this.supervisor.localize("addon.configuration.audio.output"),this._setOutputDevice,this._selectedOutput,this._outputDevices&&this._outputDevices.map((function(e){return(0,n.dy)(k||(k=O(["\n ","\n "])),e.device||"",e.name)})),this._saveSettings,this.supervisor.localize("common.save"))}},{kind:"get",static:!0,key:"styles",value:function(){return[p.Qx,h.l,(0,n.iv)(E||(E=O(["\n :host,\n ha-card,\n paper-dropdown-menu {\n display: block;\n }\n paper-item {\n width: 450px;\n }\n .card-actions {\n text-align: right;\n }\n "])))]}},{kind:"method",key:"update",value:function(e){U(q(s.prototype),"update",this).call(this,e),e.has("addon")&&this._addonChanged()}},{kind:"method",key:"_setInputDevice",value:function(e){var t=e.detail.item.getAttribute("device");this._selectedInput=t}},{kind:"method",key:"_setOutputDevice",value:function(e){var t=e.detail.item.getAttribute("device");this._selectedOutput=t}},{kind:"method",key:"_addonChanged",value:(i=S(regeneratorRuntime.mark((function e(){var t,r,n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._selectedInput=null===this.addon.audio_input?"default":this.addon.audio_input,this._selectedOutput=null===this.addon.audio_output?"default":this.addon.audio_output,!this._outputDevices){e.next=4;break}return e.abrupt("return");case 4:return t={device:"default",name:this.supervisor.localize("addon.configuration.audio.default")},e.prev=5,e.next=8,(0,m.G)(this.hass);case 8:r=e.sent,n=r.audio,i=Object.keys(n.input).map((function(e){return{device:e,name:n.input[e]}})),o=Object.keys(n.output).map((function(e){return{device:e,name:n.output[e]}})),this._inputDevices=[t].concat(P(i)),this._outputDevices=[t].concat(P(o)),e.next=21;break;case 16:e.prev=16,e.t0=e.catch(5),this._error="Failed to fetch audio hardware",this._inputDevices=[t],this._outputDevices=[t];case 21:case"end":return e.stop()}}),e,this,[[5,16]])}))),function(){return i.apply(this,arguments)})},{kind:"method",key:"_saveSettings",value:(r=S(regeneratorRuntime.mark((function e(t){var r,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,this._error=void 0,n={audio_input:"default"===this._selectedInput?null:this._selectedInput,audio_output:"default"===this._selectedOutput?null:this._selectedOutput},e.prev=4,e.next=7,(0,u.d3)(this.hass,this.addon.slug,n);case 7:if("started"!==(null===(i=this.addon)||void 0===i?void 0:i.state)){e.next=10;break}return e.next=10,_(this,this.hass,this.supervisor,this.addon);case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),this._error="Failed to set addon audio device";case 15:r.progress=!1;case 16:case"end":return e.stop()}}),e,this,[[4,12]])}))),function(e){return r.apply(this,arguments)})}]}}),n.oi),r(87724);var Z=r(77426),K=r(67352),Q=(r(40191),r(57835));function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(c){s=!0,i=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return X(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return X(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ","\n \n "])),this.data,this._valueChanged,this.label)}},{kind:"method",key:"_valueChanged",value:function(e){(0,c.B)(this,"value-changed",{value:e.target.checked})}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(oe||(oe=ce(["\n paper-checkbox {\n display: block;\n padding: 22px 0;\n }\n "])))}}]}}),n.oi);function Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}function xe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oe(e,t){return Oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Oe(e,t)}function Ae(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Be(e);if(t){var i=Be(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return De(this,r)}}function De(e,t){if(t&&("object"===Pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return je(e)}function je(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Te(){Te=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Ie(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r',": ",""])),this.label,this.schema.value)}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(Ce||(Ce=xe(["\n :host {\n display: block;\n }\n .label {\n font-weight: 500;\n }\n "])))}}]}}),n.oi),r(77956);function $e(e){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$e(e)}function Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qe(e,t){return qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qe(e,t)}function Ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ye(e);if(t){var i=Ye(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ke(this,r)}}function Ke(e,t){if(t&&("object"===$e(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qe(e)}function Qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ye(e){return Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ye(e)}function We(){We=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Ge(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r',"\n \n "],t||(t=e.slice(0)),Ne=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),this.label,this._value,this.schema.required,this.schema.required,this._valueChanged,this.suffix);var e,t}},{kind:"get",key:"_value",value:function(){return this.data}},{kind:"method",key:"_valueChanged",value:function(e){var t=e.target.value?Number(e.target.value):void 0;this._value!==t&&(0,c.B)(this,"value-changed",{value:t})}}]}}),n.oi),r(1548);function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function at(e,t){for(var r=0;r .slider-knob > .slider-knob-inner::after {\n -webkit-transform: scale(1) translate(0, -17px) scaleX(-1) !important;\n transform: scale(1) translate(0, -17px) scaleX(-1) !important;\n }\n\n .pin > .slider-knob > .slider-knob-inner {\n font-size: var(--ha-slider-pin-font-size, 15px);\n line-height: normal;\n cursor: pointer;\n }\n\n .disabled.ring > .slider-knob > .slider-knob-inner {\n background-color: var(--paper-slider-disabled-knob-color, var(--disabled-text-color));\n border: 2px solid var(--paper-slider-disabled-knob-color, var(--disabled-text-color));\n }\n\n .pin > .slider-knob > .slider-knob-inner::before {\n top: unset;\n margin-left: unset;\n\n bottom: calc(15px + var(--calculated-paper-slider-height)/2);\n left: 50%;\n width: 2.2em;\n height: 2.2em;\n\n -webkit-transform-origin: left bottom;\n transform-origin: left bottom;\n -webkit-transform: rotate(-45deg) scale(0) translate(0);\n transform: rotate(-45deg) scale(0) translate(0);\n }\n\n .pin.expand > .slider-knob > .slider-knob-inner::before {\n -webkit-transform: rotate(-45deg) scale(1) translate(7px, -7px);\n transform: rotate(-45deg) scale(1) translate(7px, -7px);\n }\n\n .pin > .slider-knob > .slider-knob-inner::after {\n top: unset;\n font-size: unset;\n\n bottom: calc(15px + var(--calculated-paper-slider-height)/2);\n left: 50%;\n margin-left: -1.1em;\n width: 2.2em;\n height: 2.1em;\n\n -webkit-transform-origin: center bottom;\n transform-origin: center bottom;\n -webkit-transform: scale(0) translate(0);\n transform: scale(0) translate(0);\n }\n\n .pin.expand > .slider-knob > .slider-knob-inner::after {\n -webkit-transform: scale(1) translate(0, -10px);\n transform: scale(1) translate(0, -10px);\n }\n\n .slider-input {\n width: 54px;\n }\n ')),ft}}],(r=[{key:"_setImmediateValue",value:function(e){st(ut(o.prototype),"_setImmediateValue",this).call(this,this.step>=1?Math.round(e):Math.round(100*e)/100)}},{key:"_calcStep",value:function(e){if(!this.step)return parseFloat(e);var t=Math.round((e-this.min)/this.step),r=this.step.toString(),n=r.indexOf(".");if(-1!==n){var i=Math.pow(10,r.length-n-1);return Math.round((t*this.step+this.min)*i)/i}return t*this.step+this.min}}])&&at(t.prototype,r),n&&at(t,n),o}(vt);function wt(e){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(e)}function gt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Et(e,t){return Et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Et(e,t)}function _t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=xt(e);if(t){var i=xt(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ct(this,r)}}function Ct(e,t){if(t&&("object"===wt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pt(e)}function Pt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xt(e){return xt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xt(e)}function St(){St=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Dt(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ",'\n
\n ',"\n \n
\n
\n "])),this.label,this.schema.optional&&void 0===this.schema.default?(0,n.dy)(ht||(ht=gt(["\n \n "])),this._handleCheckboxChange,void 0!==this.data):"",this._value,this.schema.valueMin,this.schema.valueMax,void 0===this.data&&this.schema.optional&&void 0===this.schema.default,this._valueChanged):(0,n.dy)(mt||(mt=gt(['\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n \n ',"\n \n "])),i,r.includes(i),e._optionLabel(t))})))}},{kind:"method",key:"firstUpdated",value:function(){var e=this;this.updateComplete.then((function(){var t,r,n,i=null===(t=e.shadowRoot)||void 0===t||null===(r=t.querySelector("paper-input"))||void 0===r||null===(n=r.inputElement)||void 0===n?void 0:n.inputElement;i&&(i.style.textOverflow="ellipsis")}))}},{kind:"method",key:"_optionValue",value:function(e){return Array.isArray(e)?e[0]:e}},{kind:"method",key:"_optionLabel",value:function(e){return Array.isArray(e)?e[1]||e[0]:e}},{kind:"method",key:"_onSelect",value:function(e){e.stopPropagation()}},{kind:"method",key:"_valueChanged",value:function(e){e.detail.value&&this._init?(0,c.B)(this,"value-changed",{value:e.detail.value.map((function(e){return e.itemValue}))},{bubbles:!1}):this._init=!0}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(Mt||(Mt=Ht(["\n paper-menu-button {\n display: block;\n padding: 0;\n --paper-item-icon-width: 34px;\n }\n paper-ripple {\n top: 12px;\n left: 0px;\n bottom: 8px;\n right: 0px;\n }\n paper-input {\n text-overflow: ellipsis;\n }\n "])))}}]}}),n.oi);var er,tr=r(50856);function rr(e){return rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rr(e)}function nr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ir(e,t){for(var r=0;r\n :host {\n display: block;\n @apply --paper-font-common-base;\n }\n\n paper-input {\n width: 30px;\n text-align: center;\n --paper-input-container-input: {\n /* Damn you firefox\n * Needed to hide spin num in firefox\n * http://stackoverflow.com/questions/3790935/can-i-hide-the-html5-number-input-s-spin-box\n */\n -moz-appearance: textfield;\n @apply --paper-time-input-cotnainer;\n }\n --paper-input-container-input-webkit-spinner: {\n -webkit-appearance: none;\n margin: 0;\n display: none;\n }\n --paper-input-container-shared-input-style_-_-webkit-appearance: textfield;\n }\n\n paper-dropdown-menu {\n width: 55px;\n padding: 0;\n /* Force ripple to use the whole container */\n --paper-dropdown-menu-ripple: {\n color: var(\n --paper-time-input-dropdown-ripple-color,\n var(--primary-color)\n );\n }\n --paper-input-container-input: {\n @apply --paper-font-button;\n text-align: center;\n padding-left: 5px;\n @apply --paper-time-dropdown-input-cotnainer;\n }\n --paper-input-container-underline: {\n border-color: transparent;\n }\n --paper-input-container-underline-focus: {\n border-color: transparent;\n }\n }\n\n paper-item {\n cursor: pointer;\n text-align: center;\n font-size: 14px;\n }\n\n paper-listbox {\n padding: 0;\n }\n\n label {\n @apply --paper-font-caption;\n color: var(\n --paper-input-container-color,\n var(--secondary-text-color)\n );\n }\n\n .time-input-wrap {\n @apply --layout-horizontal;\n @apply --layout-no-wrap;\n justify-content: var(--paper-time-input-justify-content, normal);\n }\n\n [hidden] {\n display: none !important;\n }\n\n #millisec {\n width: 38px;\n }\n\n .no-suffix {\n margin-left: -2px;\n }\n \n\n \n
\n \x3c!-- Hour Input --\x3e\n \n :\n \n\n \x3c!-- Min Input --\x3e\n \n :\n \n\n \x3c!-- Sec Input --\x3e\n \n :\n \n\n \x3c!-- Millisec Input --\x3e\n \n \n\n \x3c!-- Dropdown Menu --\x3e\n \n \n AM\n PM\n \n \n
\n '],t||(t=e.slice(0)),er=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))));var e,t}},{key:"properties",get:function(){return{label:{type:String,value:"Time"},autoValidate:{type:Boolean,value:!0},hideLabel:{type:Boolean,value:!1},floatInputLabels:{type:Boolean,value:!1},alwaysFloatInputLabels:{type:Boolean,value:!1},format:{type:Number,value:12},disabled:{type:Boolean,value:!1},hour:{type:String,notify:!0},min:{type:String,notify:!0},sec:{type:String,notify:!0},millisec:{type:String,notify:!0},hourLabel:{type:String,value:""},minLabel:{type:String,value:""},secLabel:{type:String,value:""},millisecLabel:{type:String,value:""},enableSecond:{type:Boolean,value:!1},enableMillisecond:{type:Boolean,value:!1},noHoursLimit:{type:Boolean,value:!1},amPm:{type:String,notify:!0,value:"AM"},value:{type:String,notify:!0,readOnly:!0,computed:"_computeTime(min, hour, sec, millisec, amPm)"}}}}],(r=[{key:"validate",value:function(){var e=!0;return this.$.hour.validate()&&this.$.min.validate()||(e=!1),this.enableSecond&&!this.$.sec.validate()&&(e=!1),this.enableMillisecond&&!this.$.millisec.validate()&&(e=!1),12!==this.format||this.$.dropdown.validate()||(e=!1),e}},{key:"_computeTime",value:function(e,t,r,n,i){var o;return(t||e||r&&this.enableSecond||n&&this.enableMillisecond)&&(r=r||"00",n=n||"000",o=(t=t||"00")+":"+(e=e||"00"),this.enableSecond&&r&&(o=o+":"+r),this.enableMillisecond&&n&&(o=o+":"+n),12===this.format&&(o=o+" "+i)),o}},{key:"_onFocus",value:function(e){e.target.inputElement.inputElement.select()}},{key:"_formatMillisec",value:function(){1===this.millisec.toString().length&&(this.millisec=this.millisec.toString().padStart(3,"0"))}},{key:"_formatSec",value:function(){1===this.sec.toString().length&&(this.sec=this.sec.toString().padStart(2,"0"))}},{key:"_formatMin",value:function(){1===this.min.toString().length&&(this.min=this.min.toString().padStart(2,"0"))}},{key:"_shouldFormatHour",value:function(){24===this.format&&1===this.hour.toString().length&&(this.hour=this.hour.toString().padStart(2,"0"))}},{key:"_computeHourMax",value:function(e){return this.noHoursLimit?null:12===e?e:23}},{key:"_equal",value:function(e,t){return e===t}},{key:"_computeClassNames",value:function(e){return e?" ":"no-suffix"}}])&&ir(t.prototype,r),n&&ir(t,n),o}(r(28426).H3);function ur(e){return ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ur(e)}function fr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hr(e,t){return hr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hr(e,t)}function mr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=br(e);if(t){var i=br(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return yr(this,r)}}function yr(e,t){if(t&&("object"===ur(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vr(e)}function vr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function br(e){return br=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},br(e)}function wr(){wr=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Er(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n '],t||(t=e.slice(0)),lr=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),this.label,this.required,this.required,this.enableMillisecond,this._parseDuration(this._hours),this._parseDuration(this._minutes),this._parseDuration(this._seconds),this._parseDurationMillisec(this._milliseconds),this._hourChanged,this._minChanged,this._secChanged,this._millisecChanged);var e,t}},{kind:"get",key:"_hours",value:function(){return this.data&&this.data.hours?Number(this.data.hours):0}},{kind:"get",key:"_minutes",value:function(){return this.data&&this.data.minutes?Number(this.data.minutes):0}},{kind:"get",key:"_seconds",value:function(){return this.data&&this.data.seconds?Number(this.data.seconds):0}},{kind:"get",key:"_milliseconds",value:function(){return this.data&&this.data.milliseconds?Number(this.data.milliseconds):0}},{kind:"method",key:"_parseDuration",value:function(e){return e.toString().padStart(2,"0")}},{kind:"method",key:"_parseDurationMillisec",value:function(e){return e.toString().padStart(3,"0")}},{kind:"method",key:"_hourChanged",value:function(e){this._durationChanged(e,"hours")}},{kind:"method",key:"_minChanged",value:function(e){this._durationChanged(e,"minutes")}},{kind:"method",key:"_secChanged",value:function(e){this._durationChanged(e,"seconds")}},{kind:"method",key:"_millisecChanged",value:function(e){this._durationChanged(e,"milliseconds")}},{kind:"method",key:"_durationChanged",value:function(e,t){var r=Number(e.detail.value);if(r!==this["_".concat(t)]){var n=this._hours,i=this._minutes;"seconds"===t&&r>59&&(i+=Math.floor(r/60),r%=60),"minutes"===t&&r>59&&(n+=Math.floor(r/60),r%=60),(0,c.B)(this,"value-changed",{value:Object.assign({hours:n,minutes:i,seconds:this._seconds,milliseconds:this._milliseconds},fr({},t,r))})}}}]}}),n.oi);function Or(e){return Or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Or(e)}function Ar(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dr(e,t){return Dr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dr(e,t)}function jr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Rr(e);if(t){var i=Rr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Tr(this,r)}}function Tr(e,t){if(t&&("object"===Or(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zr(e)}function zr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rr(e){return Rr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Rr(e)}function Ir(){Ir=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Lr(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n "],t||(t=e.slice(0)),Sr=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),this.label,this.schema.required,this.data);var e,t}}]}}),n.oi),r(58856);function Kr(e){return Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kr(e)}function Qr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Yr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wr(e,t){return Wr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Wr(e,t)}function Xr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=en(e);if(t){var i=en(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Jr(this,r)}}function Jr(e,t){if(t&&("object"===Kr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Gr(e)}function Gr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function en(e){return en=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},en(e)}function tn(){tn=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!on(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n \n "])),this._computeError(this.error.base,this.schema)):"",this.schema.map((function(t){return(0,n.dy)(jn||(jn=Mn(["\n \n "])),e._getValue(e.data,t),t,e._getValue(e.error,t),e._valueChanged,e.computeError,e.computeLabel,e.computeSuffix)}))):(0,n.dy)(Tn||(Tn=Mn(["\n ","\n ","\n "])),this.error?(0,n.dy)(zn||(zn=Mn(['\n
\n ',"\n
\n "])),this._computeError(this.error,this.schema)):"",ae("ha-form-".concat(this.schema.type),{schema:this.schema,data:this.data,label:this._computeLabel(this.schema),suffix:this._computeSuffix(this.schema),id:"child-form"}))}},{kind:"method",key:"_computeLabel",value:function(e){return this.computeLabel?this.computeLabel(e):e?e.name:""}},{kind:"method",key:"_computeSuffix",value:function(e){return this.computeSuffix?this.computeSuffix(e):e&&e.description?e.description.suffix:""}},{kind:"method",key:"_computeError",value:function(e,t){return this.computeError?this.computeError(e,t):e}},{kind:"method",key:"_getValue",value:function(e,t){return e?e[t.name]:null}},{kind:"method",key:"_valueChanged",value:function(e){e.stopPropagation();var t,r,n,i=e.target.schema,o=this.data;(0,c.B)(this,"value-changed",{value:Object.assign({},o,(t={},r=i.name,n=e.detail.value,r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t))})}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(Rn||(Rn=Mn(["\n .error {\n color: var(--error-color);\n }\n "])))}}]}}),n.oi),r(78358),r(31585);function Gn(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}var ei,ti=function(){var e,t=(e=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Jn||(Jn=Promise.all([r.e(37),r.e(914)]).then(r.bind(r,92914))),e.abrupt("return",Jn);case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Gn(o,n,i,a,s,"next",e)}function s(e){Gn(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();function ri(e){return ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ri(e)}function ni(e){return function(e){if(Array.isArray(e))return bi(e)}(e)||wi(e)||vi(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ii(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function oi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ai(e,t){return ai=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ai(e,t)}function si(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ki(e);if(t){var i=ki(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ci(this,r)}}function ci(e,t){if(t&&("object"===ri(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return li(e)}function li(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function di(){di=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!pi(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r",'\n \n
\n

\n ','\n

\n
\n \n \n \n \n ','\n \n \n
\n
\n\n
\n ',"\n ","\n ","\n
\n ",'\n
\n ',""])),this._error):"",!this._yamlMode||this._canShowSchema&&this.addon.schema||this._valid?"":(0,n.dy)(Zi||(Zi=Ji(['\n \n ',"\n \n "])),this.supervisor.localize("addon.configuration.options.invalid_yaml")),t?(0,n.dy)(Ki||(Ki=Ji(['=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n\n \n \n \n \n \n \n \n ",'\n \n
\n ","\n \n ","\n ","
\n
\n
\n ',""])),this._error):"",this.supervisor.localize("addon.configuration.network.container"),this.supervisor.localize("addon.configuration.network.host"),this.supervisor.localize("common.description"),this._config.map((function(t){return(0,n.dy)(bo||(bo=Po(["\n \n ","\n \n \n \n ","\n \n "])),t.container,e._configChanged,e.supervisor.localize("addon.configuration.network.disabled"),t.host?String(t.host):"",t.container,e._computeDescription(t))})),this._resetTapped,this.supervisor.localize("common.reset_defaults"),this._saveTapped,this.supervisor.localize("common.save")):(0,n.dy)(mo||(mo=Po([""])))}},{kind:"method",key:"update",value:function(e){Ho(Vo(l.prototype),"update",this).call(this,e),e.has("addon")&&this._setNetworkConfig()}},{kind:"field",key:"_computeDescription",value:function(){var e=this;return function(t){var r,n,i,o,a,s;return(null===(r=e.addon.translations[e.hass.language])||void 0===r||null===(n=r.network)||void 0===n||null===(i=n[t.container])||void 0===i?void 0:i.description)||(null===(o=e.addon.translations.en)||void 0===o||null===(a=o.network)||void 0===a||null===(s=a[t.container])||void 0===s?void 0:s.description)||t.description}}},{kind:"method",key:"_setNetworkConfig",value:function(){var e=this.addon.network||{},t=this.addon.network_description||{},r=Object.keys(e).map((function(r){return{container:r,host:e[r],description:t[r]}}));this._config=r.sort((function(e,t){return e.container>t.container?1:-1}))}},{kind:"method",key:"_configChanged",value:(s=Co(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.target,this._config.forEach((function(e){e.container===r.container&&e.host!==parseInt(String(r.value),10)&&(e.host=r.value?parseInt(String(r.value),10):null)}));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{kind:"method",key:"_resetTapped",value:(i=Co(regeneratorRuntime.mark((function e(t){var r,n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,n={network:null},e.prev=3,e.next=6,(0,u.d3)(this.hass,this.addon.slug,n);case 6:if(o={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",o),"started"!==(null===(i=this.addon)||void 0===i?void 0:i.state)){e.next=11;break}return e.next=11,_(this,this.hass,this.supervisor,this.addon);case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),this._error=this.supervisor.localize("addon.failed_to_reset","error",(0,f.js)(e.t0));case 16:r.progress=!1;case 17:case"end":return e.stop()}}),e,this,[[3,13]])}))),function(e){return i.apply(this,arguments)})},{kind:"method",key:"_saveTapped",value:(r=Co(regeneratorRuntime.mark((function e(t){var r,n,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,this._error=void 0,n={},this._config.forEach((function(e){n[e.container]=parseInt(String(e.host),10)})),i={network:n},e.prev=6,e.next=9,(0,u.d3)(this.hass,this.addon.slug,i);case 9:if(a={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",a),"started"!==(null===(o=this.addon)||void 0===o?void 0:o.state)){e.next=14;break}return e.next=14,_(this,this.hass,this.supervisor,this.addon);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,f.js)(e.t0));case 19:r.progress=!1;case 20:case"end":return e.stop()}}),e,this,[[6,16]])}))),function(e){return r.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[p.Qx,h.l,(0,n.iv)(wo||(wo=Po(["\n :host {\n display: block;\n }\n ha-card {\n display: block;\n }\n .card-actions {\n display: flex;\n justify-content: space-between;\n }\n "])))]}}]}}),n.oi);var Bo,No,$o,Uo,qo,Zo,Ko,Qo=r(18199);function Yo(e){return Yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yo(e)}function Wo(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Xo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jo(e,t){return Jo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jo(e,t)}function Go(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ra(e);if(t){var i=ra(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ea(this,r)}}function ea(e,t){if(t&&("object"===Yo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ta(e)}function ta(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ra(e)}function na(){na=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!aa(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])));var e=this.addon.options&&Object.keys(this.addon.options).length||this.addon.schema&&Object.keys(this.addon.schema).length;return(0,n.dy)(No||(No=Wo(['\n
\n ',"\n
\n "])),e||this.addon.network||this.addon.audio?(0,n.dy)($o||($o=Wo(["\n ","\n ","\n ","\n "])),e?(0,n.dy)(Uo||(Uo=Wo(["\n \n "])),this.hass,this.addon,this.supervisor):"",this.addon.network?(0,n.dy)(qo||(qo=Wo(["\n \n "])),this.hass,this.addon,this.supervisor):"",this.addon.audio?(0,n.dy)(Zo||(Zo=Wo(["\n \n "])),this.hass,this.addon,this.supervisor):""):this.supervisor.localize("addon.configuration.no_configuration"))}},{kind:"get",static:!0,key:"styles",value:function(){return[p.Qx,h.l,(0,n.iv)(Ko||(Ko=Wo(["\n .content {\n margin: auto;\n padding: 8px;\n max-width: 1024px;\n }\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config {\n margin-bottom: 24px;\n }\n "])))]}}]}}),n.oi),r(93546);function va(e){return va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},va(e)}function ba(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function wa(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function ga(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){wa(o,n,i,a,s,"next",e)}function s(e){wa(o,n,i,a,s,"throw",e)}a(void 0)}))}}function ka(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ea(e,t){return Ea=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ea(e,t)}function _a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ia(e);if(t){var i=Ia(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ca(this,r)}}function Ca(e,t){if(t&&("object"===va(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pa(e)}function Pa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xa(){xa=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Aa(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n ','\n
\n ',"\n
\n
\n
\n "])),this._error?(0,n.dy)(pa||(pa=ba(['',""])),this._error):"",this._content?(0,n.dy)(ha||(ha=ba([""])),this._content):(0,n.dy)(ma||(ma=ba([""])))):(0,n.dy)(ua||(ua=ba([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return[p.Qx,h.l,(0,n.iv)(ya||(ya=ba(["\n ha-card {\n display: block;\n }\n .content {\n margin: auto;\n padding: 8px;\n max-width: 1024px;\n }\n ha-markdown {\n padding: 16px;\n }\n "])))]}},{kind:"method",key:"_loadData",value:(r=ga(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,e.prev=1,e.next=4,(0,u.ii)(this.hass,this.addon.slug);case 4:this._content=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this._error=this.supervisor.localize("addon.documentation.get_logs","error",(0,f.js)(e.t0));case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return r.apply(this,arguments)})}]}}),n.oi);var Fa,Ma,La=r(228),Ha=r(63864);function Va(e){return Va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Va(e)}function Ba(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function Na(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function $a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ua(e,t){return Ua=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ua(e,t)}function qa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Qa(e);if(t){var i=Qa(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Za(this,r)}}function Za(e,t){if(t&&("object"===Va(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ka(e)}function Ka(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qa(e){return Qa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Qa(e)}function Ya(){Ya=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Ja(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n "])),this.progress,this._buttonTapped,this.disabled)}},{kind:"method",key:"_buttonTapped",value:(r=regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.progress=!0,t={method:this.method,path:this.path,data:this.data},e.prev=2,e.next=5,this.hass.callApi(this.method,this.path,this.data);case 5:r=e.sent,this.progress=!1,this._progressButton.actionSuccess(),t.success=!0,t.response=r,e.next=18;break;case 12:e.prev=12,e.t0=e.catch(2),this.progress=!1,this._progressButton.actionError(),t.success=!1,t.response=e.t0;case 18:(0,c.B)(this,"hass-api-called",t);case 19:case"end":return e.stop()}}),e,this,[[2,12]])})),i=function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){Ba(o,n,i,a,s,"next",e)}function s(e){Ba(o,n,i,a,s,"throw",e)}a(void 0)}))},function(){return i.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(Ma||(Ma=Na(["\n :host([disabled]) {\n pointer-events: none;\n }\n "])))}}]}}),n.oi);customElements.define("ha-call-api-button",ns);r(63207);var is=r(38346),os=window;"customIconsets"in os||(os.customIconsets={});var as=os.customIconsets,ss=r(21560),cs=JSON.parse('{"version":"6.2.95","parts":[{"file":"64225fc2fbb140d9528c1e9fa75b7257b2428cb5"},{"start":"ai","file":"b9ea5ff4d38547a65645981ac783623e7777b19e"},{"start":"amplifier-","file":"4b2f367b8647e93b743473e325f5fd52cc2e697a"},{"start":"arrow-top-left-bot","file":"f95e064e2c563eefe8a57aba25712124223e4cf2"},{"start":"barn","file":"f290c17abd69c168e2ccfd20aa97b96209f6d7c1"},{"start":"bell-remove-","file":"570df819ae7630f9e786d4ea6092adb54061f19e"},{"start":"boom-gate-alert-","file":"3afa2b4744f1590f7194ddc6e393f8956c595fb5"},{"start":"calendar-account-","file":"217b3a293052ee8fef0e5d2db4b951a8166eec9f"},{"start":"car-sh","file":"3ca9e5ae26429d2c031da6c681b5b095bb9b2163"},{"start":"chat-o","file":"d1cea4144f6b047d03cf288c8f64e53793acec50"},{"start":"clipp","file":"6e6d98c251872db3e5ab5f1ba8adf0ea8af8cc63"},{"start":"comment-bookmark-","file":"03b34c8b219f18641494f84c539ecafc456d239f"},{"start":"cookie-remove-","file":"9cad47153f3fc7fca5782c6a2bb644f6a55e7e16"},{"start":"database-arrow-r","file":"eb5ed6052ed7fc7b3e98438f25855a814156d1ae"},{"start":"directions-","file":"6f8869964d02c3d4371149e975db97a6287137ab"},{"start":"email-off-","file":"7aefe6bdf7091b112896e59cbac1595a91242be3"},{"start":"eyedropper-v","file":"57bdc1ae30676a6f264c4c38ef6fb3c0fd47bb94"},{"start":"file-pl","file":"e2338a7acb8920b4edfd92a6abb2babc1a7d619f"},{"start":"flower-p","file":"6d229b86ac23c6e3c7884dfde435813ddc8372a0"},{"start":"format-p","file":"d0264b7f7433e925e0da83f9f835e789e33b6add"},{"start":"ghost-off-","file":"fa54bbd6c3b42fd29f8b92cdf83f94122ea09569"},{"start":"hammer-w","file":"ba085029be049b0d246a840e60da076fc11c9e4a"},{"start":"help-r","file":"76a7d216ddee68e527a3e3ee90f4303671bb3fb8"},{"start":"image-size-select-s","file":"74d2dc6c4601200ecabe25cb7b598e99e7f36b4d"},{"start":"label-off-","file":"0298acec50acbfcab70b92985c4af1beda544164"},{"start":"link-l","file":"e523b5e73a573671888c04eb854a4392ea78c4d5"},{"start":"me","file":"5a1041aef2addeae08d6aaf28446f75d4c863aff"},{"start":"mon","file":"73d3ee6c6e67c405f54f7efb0aa792c9af6998b0"},{"start":"newspaper-p","file":"f6f982954d9f620f5a82eeb668706ef3c533e145"},{"start":"p","file":"3ca448aa1e1fc5d4c170782afe631997b8d6249e"},{"start":"phone-inc","file":"d79ce7fa30111df74f034ad134de463d7971c2f0"},{"start":"printer-e","file":"8278057a887a3bb779d4307557174623885c93a4"},{"start":"relation-many-to-z","file":"823b00015427b47933a7fef305b22a7973ba6003"},{"start":"sai","file":"00ec0b76ce0c449f10277bab33501211fbc53ee2"},{"start":"shield-ai","file":"84a16865fc9cea658e57c9d70fbacc27c75a577d"},{"start":"smoke-detector-variant-","file":"f3c7db45a8ca07e0832f6daa215c91cc0e089bfd"},{"start":"sprout-","file":"4b82c36350e5620f2fcfb17e311ec932ef945b60"},{"start":"table-column-plus-b","file":"6a5b1db4e13baf8485985e750a8f3207241b5fb7"},{"start":"timeline-c","file":"98557df0b5d36f6faeae21c20017967124f4f43c"},{"start":"tumble-dryer-o","file":"84bd3b83e82a059c54e04844fbdc3fc0582fcfa4"},{"start":"volume-l","file":"04797418ee78ea7b40e13fc282ec1ece97f4c360"},{"start":"web-c","file":"26776b006452d2f4adddceb0a84d1c0b0730146a"},{"start":"yu","file":"9adf8556ec2f7da0d774d6c64de5c1d0d0ae603f"}]}');function ls(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function ds(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ls(o,n,i,a,s,"next",e)}function s(e){ls(o,n,i,a,s,"throw",e)}a(void 0)}))}}function us(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(c){s=!0,i=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||ps(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fs(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ps(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){throw e})),f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){s=!0,o=e})),f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function ps(e,t){if(e){if("string"==typeof e)return hs(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hs(e,t):void 0}}function hs(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1)){var n,i,o;(n=1e3,i=ws("readonly",(function(e){var t,r=fs(ks);try{var n=function(){var r=us(t.value,3),n=r[0],i=r[1],o=r[2];(0,ss.RV)(e.get(n)).then((function(e){return i(e)})).catch((function(e){return o(e)}))};for(r.s();!(t=r.n()).done;)n()}catch(i){r.e(i)}finally{r.f()}ks=[]})),o=new Promise((function(e,t){setTimeout((function(){t("Timed out in ".concat(n," ms."))}),n)})),Promise.race([i,o])).catch((function(e){var t,r=fs(ks);try{for(r.s();!(t=r.n()).done;){(0,us(t.value,3)[2])(e)}}catch(n){r.e(n)}finally{r.f()}ks=[]}))}}))},_s=function(e){var t,r,n=fs(cs.parts);try{for(n.s();!(r=n.n()).done;){var i=r.value;if(void 0!==i.start&&e=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])),this.icon):(0,n.dy)(vs||(vs=Ds([""])),this._path,this._viewBox):(0,n.dy)(ms||(ms=Ds([""])))}},{kind:"method",key:"_loadIcon",value:(s=As(regeneratorRuntime.mark((function e(){var t,r,n,i,o,a,s,l,d,u,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.icon){e.next=2;break}return e.abrupt("return");case 2:if(t=this.icon.split(":",2),r=Ss(t,2),n=r[0],i=r[1],o=i,n&&o){e.next=6;break}return e.abrupt("return");case 6:if(gs.includes(n)){e.next=13;break}if(!(n in as)){e.next=11;break}return(a=as[n])&&this._setCustomPath(a(o)),e.abrupt("return");case 11:return this._legacy=!0,e.abrupt("return");case 13:if(this._legacy=!1,o in Ys&&((s=Ys[o]).newName?(l="Icon ".concat(n,":").concat(o," was renamed to ").concat(n,":").concat(s.newName,", please change your config, it will be removed in version ").concat(s.removeIn,"."),o=s.newName):l="Icon ".concat(n,":").concat(o," was removed from MDI, please replace this icon with an other icon in your config, it will be removed in version ").concat(s.removeIn,"."),console.warn(l),(0,c.B)(this,"write_log",{level:"warning",message:l})),!(o in ic)){e.next=18;break}return this._path=ic[o],e.abrupt("return");case 18:return e.prev=18,e.next=21,Es(o);case 21:d=e.sent,e.next=27;break;case 24:e.prev=24,e.t0=e.catch(18),d=void 0;case 27:if(!d){e.next=31;break}return this._path=d,ic[o]=d,e.abrupt("return");case 31:if(!((u=_s(o))in Ws)){e.next=35;break}return this._setPath(Ws[u],o),e.abrupt("return");case 35:f=fetch("/static/mdi/".concat(u,".json")).then((function(e){return e.json()})),Ws[u]=f,this._setPath(f,o),nc();case 39:case"end":return e.stop()}}),e,this,[[18,24]])}))),function(){return s.apply(this,arguments)})},{kind:"method",key:"_setCustomPath",value:(i=As(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:r=e.sent,this._path=r.path,this._viewBox=r.viewBox;case 5:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{kind:"method",key:"_setPath",value:(r=As(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:n=e.sent,this._path=n[r],ic[r]=n[r];case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(bs||(bs=Ds(["\n :host {\n fill: currentcolor;\n }\n "])))}}]}}),n.oi);function oc(e){return oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oc(e)}function ac(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function sc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cc(e,t){return cc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},cc(e,t)}function lc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=kc(e);if(t){var i=kc(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return dc(this,r)}}function dc(e,t){if(t&&("object"===oc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return uc(e)}function uc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fc(){fc=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!mc(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n
\n ',"
"])),this.description):"")}},{kind:"get",static:!0,key:"styles",value:function(){return[(0,n.iv)(rc||(rc=ac(["\n .badge-container {\n display: inline-block;\n text-align: center;\n vertical-align: top;\n padding: var(--ha-label-badge-padding, 0 0 0 0);\n }\n .label-badge {\n position: relative;\n display: block;\n margin: 0 auto;\n width: var(--ha-label-badge-size, 2.5em);\n text-align: center;\n height: var(--ha-label-badge-size, 2.5em);\n line-height: var(--ha-label-badge-size, 2.5em);\n font-size: var(--ha-label-badge-font-size, 1.5em);\n border-radius: 50%;\n border: 0.1em solid var(--ha-label-badge-color, var(--primary-color));\n color: var(--label-badge-text-color, rgb(76, 76, 76));\n\n white-space: nowrap;\n background-color: var(--label-badge-background-color, white);\n background-size: cover;\n transition: border 0.3s ease-in-out;\n }\n .label-badge .value {\n font-size: 90%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .label-badge .value.big {\n font-size: 70%;\n }\n .label-badge .label {\n position: absolute;\n bottom: -1em;\n /* Make the label as wide as container+border. (parent_borderwidth / font-size) */\n left: -0.2em;\n right: -0.2em;\n line-height: 1em;\n font-size: 0.5em;\n }\n .label-badge .label span {\n box-sizing: border-box;\n max-width: 100%;\n display: inline-block;\n background-color: var(--ha-label-badge-color, var(--primary-color));\n color: var(--ha-label-badge-label-color, white);\n border-radius: 1em;\n padding: 9% 16% 8% 16%; /* mostly apitalized text, not much descenders => bit more top margin */\n font-weight: 500;\n overflow: hidden;\n text-transform: uppercase;\n text-overflow: ellipsis;\n transition: background-color 0.3s ease-in-out;\n text-transform: var(--ha-label-badge-label-text-transform, uppercase);\n }\n .label-badge .label.big span {\n font-size: 90%;\n padding: 10% 12% 7% 12%; /* push smaller text a bit down to center vertically */\n }\n .badge-container .title {\n margin-top: 1em;\n font-size: var(--ha-label-badge-title-font-size, 0.9em);\n width: var(--ha-label-badge-title-width, 5em);\n font-weight: var(--ha-label-badge-title-font-weight, 400);\n overflow: hidden;\n text-overflow: ellipsis;\n line-height: normal;\n }\n "])))]}},{kind:"method",key:"updated",value:function(e){gc(kc(r.prototype),"updated",this).call(this,e),e.has("image")&&(this.shadowRoot.getElementById("badge").style.backgroundImage=this.image?"url(".concat(this.image,")"):"")}}]}}),n.oi);customElements.define("ha-label-badge",Ec);r(14089);var _c,Cc,Pc,xc,Sc,Oc,Ac,Dc,jc,Tc,zc,Rc,Ic,Fc,Mc,Lc,Hc,Vc,Bc,Nc,$c,Uc,qc,Zc,Kc,Qc,Yc,Wc,Xc,Jc,Gc,el,tl,rl,nl,il,ol,al,sl,cl,ll,dl,ul,fl,pl=r(70203),hl=(r(46586),r(21050),function(e,t){(0,c.B)(e,"show-dialog",{dialogTag:"dialog-hassio-markdown",dialogImport:function(){return r.e(884).then(r.bind(r,56884))},dialogParams:t})}),ml=r(7628),yl=(0,s.Z)((function(e,t){return t.some((function(t){return e.includes(t)}))}));function vl(e){return vl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vl(e)}function bl(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function wl(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){bl(o,n,i,a,s,"next",e)}function s(e){bl(o,n,i,a,s,"throw",e)}a(void 0)}))}}function gl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function kl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function El(e,t){return El=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},El(e,t)}function _l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Il(e);if(t){var i=Il(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Cl(this,r)}}function Cl(e,t){if(t&&("object"===vl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pl(e)}function Pl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xl(){xl=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Al(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n
\n
\n ','\n
\n ','\n
\n
\n
\n ','\n
\n\n
\n ',".
\n ",'\n
\n
\n
\n ','\n
\n ',"\n\n \n ',"\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n
\n\n ","\n
\n
\n ","\n
\n
\n ","\n ",'\n
\n
\n
\n ',"\n
\n
\n ","\n
\n
\n
\n\n ","\n "])),this.addon.update_available?(0,n.dy)(Cc||(Cc=gl(['\n \n
\n \n ','\n
\n
\n ',"\n \n ","\n \n
\n \n "])),this.supervisor.localize("common.update_available","count",1),this.hass,this.supervisor.localize("addon.dashboard.new_update_available","name",this.addon.name,"version",this.addon.version_latest),this.supervisor.localize("common.running_version","version",this.addon.version),"M12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22M12,7L7,12H10V16H14V12H17L12,7Z",!this.addon.available&&a?yl(this.supervisor.info.supported_arch,this.addon.arch)?(0,n.dy)(xc||(xc=gl(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_arch","core_version_installed",this.supervisor.core.version,"core_version_needed",a.homeassistant)):(0,n.dy)(Pc||(Pc=gl(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_arch")):"",this.addon.changelog?(0,n.dy)(Sc||(Sc=gl(["\n \n ","\n \n "])),this._openChangelog,this.supervisor.localize("addon.dashboard.changelog")):(0,n.dy)(Oc||(Oc=gl([""]))),this._updateClicked,this.supervisor.localize("common.update")):"",this.addon.protected?"":(0,n.dy)(Ac||(Ac=gl(['\n \n

','\n

\n
\n ','\n
\n
\n \n (',")\n
\n "])),this.addon.version,this._openChangelog,this.supervisor.localize("addon.dashboard.changelog")):(0,n.dy)(Ic||(Ic=gl(['',""])),this.addon.url,this.addon.name)),this.addon.logo?(0,n.dy)(Mc||(Mc=gl(['\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.watchdog.title"),this.supervisor.localize("addon.dashboard.option.watchdog.description"),this._watchdogToggled,this.addon.watchdog):"",this.addon.auto_update||null!==(o=this.hass.userData)&&void 0!==o&&o.showAdvanced?(0,n.dy)(Wc||(Wc=gl(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.auto_update.title"),this.supervisor.localize("addon.dashboard.option.auto_update.description"),this._autoUpdateToggled,this.addon.auto_update):"",!this._computeCannotIngressSidebar&&this.addon.ingress?(0,n.dy)(Xc||(Xc=gl(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.ingress_panel.title"),this.supervisor.localize("addon.dashboard.option.ingress_panel.description"),this._panelToggled,this.addon.ingress_panel):"",this._computeUsesProtectedOptions?(0,n.dy)(Jc||(Jc=gl(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.protected.title"),this.supervisor.localize("addon.dashboard.option.protected.description"),this._protectionToggled,this.addon.protected):""):"","started"===this.addon.state?(0,n.dy)(Gc||(Gc=gl(["\n ','\n \n '," \n \n ",""])),this.narrow,this.supervisor.localize("addon.dashboard.hostname"),this.addon.hostname,s.map((function(e){var t;return(0,n.dy)(el||(el=gl(["\n \n "])),e.description,null!==(t=e.value)&&void 0!==t?t:0,e.tooltip)}))):"",this._error?(0,n.dy)(tl||(tl=gl(['',""])),this._error):"",this.addon.version||!a||this.addon.available?"":yl(this.supervisor.info.supported_arch,this.addon.arch)?(0,n.dy)(nl||(nl=gl(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_version","core_version_installed",this.supervisor.core.version,"core_version_needed",a.homeassistant)):(0,n.dy)(rl||(rl=gl(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_arch")),this.addon.version?this._computeIsRunning?(0,n.dy)(il||(il=gl(['\n \n \n \n ',"\n \n \n "])),this._pathWebui,this.supervisor.localize("addon.dashboard.open_web_ui")):"",this._computeShowIngressUI?(0,n.dy)(ll||(ll=gl(["\n \n ","\n \n "])),this._openIngress,this.supervisor.localize("addon.dashboard.open_web_ui")):"",this._uninstallClicked,this.supervisor.localize("addon.dashboard.uninstall"),this.addon.build?(0,n.dy)(dl||(dl=gl(['\n \n ',"\n \n "])),this.hass,this.addon.slug,this.supervisor.localize("addon.dashboard.rebuild")):""):"",this.addon.long_description?(0,n.dy)(ul||(ul=gl(['\n \n
\n '),"icon_experimental",''),"icon_deprecated",'')):this.supervisor.localize("addon.dashboard.capability.".concat(t,".description"))})}},{kind:"get",key:"_computeIsRunning",value:function(){var e;return"started"===(null===(e=this.addon)||void 0===e?void 0:e.state)}},{kind:"get",key:"_pathWebui",value:function(){return this.addon.webui&&this.addon.webui.replace("[HOST]",document.location.hostname)}},{kind:"get",key:"_computeShowWebUI",value:function(){return!this.addon.ingress&&this.addon.webui&&this._computeIsRunning}},{kind:"method",key:"_openIngress",value:function(){(0,l.c)("/hassio/ingress/".concat(this.addon.slug))}},{kind:"get",key:"_computeShowIngressUI",value:function(){return this.addon.ingress&&this._computeIsRunning}},{kind:"get",key:"_computeCannotIngressSidebar",value:function(){return!this.addon.ingress||!(0,Ha.I)(this.hass.config.version,0,92)}},{kind:"get",key:"_computeUsesProtectedOptions",value:function(){return this.addon.docker_api||this.addon.full_access||this.addon.host_pid}},{kind:"method",key:"_startOnBootToggled",value:(P=wl(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={boot:"auto"===this.addon.boot?"manual":"auto"},e.prev=2,e.next=5,(0,u.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,f.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return P.apply(this,arguments)})},{kind:"method",key:"_watchdogToggled",value:(C=wl(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={watchdog:!this.addon.watchdog},e.prev=2,e.next=5,(0,u.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,f.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return C.apply(this,arguments)})},{kind:"method",key:"_autoUpdateToggled",value:(_=wl(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={auto_update:!this.addon.auto_update},e.prev=2,e.next=5,(0,u.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,f.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return _.apply(this,arguments)})},{kind:"method",key:"_protectionToggled",value:(E=wl(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={protected:!this.addon.protected},e.prev=2,e.next=5,(0,u.NI)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"security"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,f.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return E.apply(this,arguments)})},{kind:"method",key:"_panelToggled",value:(k=wl(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={ingress_panel:!this.addon.ingress_panel},e.prev=2,e.next=5,(0,u.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,f.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return k.apply(this,arguments)})},{kind:"method",key:"_openChangelog",value:(g=wl(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,u.CH)(this.hass,this.addon.slug);case 3:(t=e.sent).includes("# ".concat(this.addon.version))&&t.includes("# ".concat(this.addon.version_latest))&&(r=t.split("# ".concat(this.addon.version))[0]).includes("# ".concat(this.addon.version_latest))&&(t=r),hl(this,{title:this.supervisor.localize("addon.dashboard.changelog"),content:t}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),(0,y.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.get_changelog"),text:(0,f.js)(e.t0)});case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return g.apply(this,arguments)})},{kind:"method",key:"_installClicked",value:(w=wl(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,u.fU)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"install"},(0,c.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,y.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.install"),text:(0,f.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return w.apply(this,arguments)})},{kind:"method",key:"_stopClicked",value:(b=wl(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,u.ow)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"stop"},(0,c.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,y.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.stop"),text:(0,f.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return b.apply(this,arguments)})},{kind:"method",key:"_restartClicked",value:(v=wl(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,u.P$)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"stop"},(0,c.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,y.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.restart"),text:(0,f.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return v.apply(this,arguments)})},{kind:"method",key:"_updateClicked",value:(m=wl(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,ml.z)(this,{supervisor:this.supervisor,name:this.addon.name,version:this.addon.version_latest,backupParams:{name:"addon_".concat(this.addon.slug,"_").concat(this.addon.version),addons:[this.addon.slug],homeassistant:!1},updateHandler:function(){var e=wl(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t._updateAddon());case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 1:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{kind:"method",key:"_updateAddon",value:(d=wl(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.V_)(this.hass,this.addon.slug);case 2:(0,c.B)(this,"supervisor-collection-refresh",{collection:"addon"}),t={success:!0,response:void 0,path:"update"},(0,c.B)(this,"hass-api-called",t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{kind:"method",key:"_startClicked",value:(i=wl(regeneratorRuntime.mark((function e(t){var r,n,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,u.su)(this.hass,this.addon.slug);case 5:if((n=e.sent).valid){e.next=11;break}return e.next=9,(0,y.g7)(this,{title:this.supervisor.localize("addon.dashboard.action_error.start_invalid_config"),text:n.message.split(" Got ")[0],confirm:function(){return o._openConfiguration()},confirmText:this.supervisor.localize("addon.dashboard.action_error.go_to_config"),dismissText:this.supervisor.localize("common.cancel")});case 9:return r.progress=!1,e.abrupt("return");case 11:e.next=18;break;case 13:return e.prev=13,e.t0=e.catch(2),(0,y.Ys)(this,{title:"Failed to validate addon configuration",text:(0,f.js)(e.t0)}),r.progress=!1,e.abrupt("return");case 18:return e.prev=18,e.next=21,(0,u.kP)(this.hass,this.addon.slug);case 21:return e.next=23,(0,u.AD)(this.hass,this.addon.slug);case 23:this.addon=e.sent,i={success:!0,response:void 0,path:"start"},(0,c.B)(this,"hass-api-called",i),e.next=31;break;case 28:e.prev=28,e.t1=e.catch(18),(0,y.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.start"),text:(0,f.js)(e.t1)});case 31:r.progress=!1;case 32:case"end":return e.stop()}}),e,this,[[2,13],[18,28]])}))),function(e){return i.apply(this,arguments)})},{kind:"method",key:"_openConfiguration",value:function(){(0,l.c)("/hassio/addon/".concat(this.addon.slug,"/config"))}},{kind:"method",key:"_uninstallClicked",value:(r=wl(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.next=4,(0,y.g7)(this,{title:this.addon.name,text:"Are you sure you want to uninstall this add-on?",confirmText:"uninstall add-on",dismissText:"no"});case 4:if(e.sent){e.next=8;break}return r.progress=!1,e.abrupt("return");case 8:return this._error=void 0,e.prev=9,e.next=12,(0,u.Yn)(this.hass,this.addon.slug);case 12:n={success:!0,response:void 0,path:"uninstall"},(0,c.B)(this,"hass-api-called",n),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(9),(0,y.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.uninstall"),text:(0,f.js)(e.t0)});case 19:r.progress=!1;case 20:case"end":return e.stop()}}),e,this,[[9,16]])}))),function(e){return r.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[p.Qx,h.l,(0,n.iv)(fl||(fl=gl(['\n :host {\n display: block;\n }\n ha-card {\n display: block;\n margin-bottom: 16px;\n }\n ha-card.warning {\n background-color: var(--error-color);\n color: white;\n }\n ha-card.warning .card-header {\n color: white;\n }\n ha-card.warning .card-content {\n color: white;\n }\n ha-card.warning mwc-button {\n --mdc-theme-primary: white !important;\n }\n .warning {\n color: var(--error-color);\n --mdc-theme-primary: var(--error-color);\n }\n .light-color {\n color: var(--secondary-text-color);\n }\n .addon-header {\n padding-left: 8px;\n font-size: 24px;\n color: var(--ha-card-header-color, --primary-text-color);\n }\n .addon-version {\n float: right;\n font-size: 15px;\n vertical-align: middle;\n }\n .errors {\n color: var(--error-color);\n margin-bottom: 16px;\n }\n .description {\n margin-bottom: 16px;\n }\n img.logo {\n max-width: 100%;\n max-height: 60px;\n margin: 16px 0;\n display: block;\n }\n\n ha-switch {\n display: flex;\n }\n ha-svg-icon.running {\n color: var(--success-color);\n }\n ha-svg-icon.stopped {\n color: var(--error-color);\n }\n ha-call-api-button {\n font-weight: 500;\n color: var(--primary-color);\n }\n protection-enable mwc-button {\n --mdc-theme-primary: white;\n }\n .description a {\n color: var(--primary-color);\n }\n .red {\n --ha-label-badge-color: var(--label-badge-red, #df4c1e);\n }\n .blue {\n --ha-label-badge-color: var(--label-badge-blue, #039be5);\n }\n .green {\n --ha-label-badge-color: var(--label-badge-green, #0da035);\n }\n .yellow {\n --ha-label-badge-color: var(--label-badge-yellow, #f4b400);\n }\n .security {\n margin-bottom: 16px;\n }\n .card-actions {\n justify-content: space-between;\n display: flex;\n }\n .security h3 {\n margin-bottom: 8px;\n font-weight: normal;\n }\n .security ha-label-badge {\n cursor: pointer;\n margin-right: 4px;\n --ha-label-badge-padding: 8px 0 0 0;\n }\n .changelog {\n display: contents;\n }\n .changelog-link {\n color: var(--primary-color);\n text-decoration: underline;\n cursor: pointer;\n }\n ha-markdown {\n padding: 16px;\n }\n ha-settings-row {\n padding: 0;\n height: 54px;\n width: 100%;\n }\n ha-settings-row > span[slot="description"] {\n white-space: normal;\n color: var(--secondary-text-color);\n }\n ha-settings-row[three-line] {\n height: 74px;\n }\n\n .addon-options {\n max-width: 90%;\n }\n\n .addon-container {\n display: grid;\n grid-auto-flow: column;\n grid-template-columns: 60% 40%;\n }\n\n .addon-container > div:last-of-type {\n align-self: end;\n }\n\n @media (max-width: 720px) {\n .addon-options {\n max-width: 100%;\n }\n .addon-container {\n display: block;\n }\n }\n '])))]}}]}}),n.oi);function Nl(e){return Nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nl(e)}function $l(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ul(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ql(e,t){return ql=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ql(e,t)}function Zl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Yl(e);if(t){var i=Yl(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Kl(this,r)}}function Kl(e,t){if(t&&("object"===Nl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ql(e)}function Ql(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yl(e){return Yl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yl(e)}function Wl(){Wl=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Gl(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r","\n \n ",'\n
\n ','\n
\n
\n ',""])),this._error):"",this._content?(0,n.dy)(ad||(ad=ld([""])),this._content):"",this._refresh,this.supervisor.localize("common.refresh"))}},{kind:"get",static:!0,key:"styles",value:function(){return[p.Qx,h.l,(0,n.iv)(sd||(sd=ld(["\n :host,\n ha-card {\n display: block;\n }\n "])))]}},{kind:"method",key:"_loadData",value:(i=ud(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,e.prev=1,e.next=4,(0,u.kr)(this.hass,this.addon.slug);case 4:this._content=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this._error=this.supervisor.localize("addon.logs.get_logs","error",(0,f.js)(e.t0));case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return i.apply(this,arguments)})},{kind:"method",key:"_refresh",value:(r=ud(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._loadData();case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}]}}),n.oi);function Dd(e){return Dd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dd(e)}function jd(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Td(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zd(e,t){return zd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zd(e,t)}function Rd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Md(e);if(t){var i=Md(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Id(this,r)}}function Id(e,t){if(t&&("object"===Dd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Fd(e)}function Fd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Md(e){return Md=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Md(e)}function Ld(){Ld=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Bd(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])),this._error);if(!this.addon)return(0,n.dy)(cu||(cu=hu([""])));var e=[{translationKey:"addon.panel.info",path:"/hassio/addon/".concat(this.addon.slug,"/info"),iconPath:"M13.5,4A1.5,1.5 0 0,0 12,5.5A1.5,1.5 0 0,0 13.5,7A1.5,1.5 0 0,0 15,5.5A1.5,1.5 0 0,0 13.5,4M13.14,8.77C11.95,8.87 8.7,11.46 8.7,11.46C8.5,11.61 8.56,11.6 8.72,11.88C8.88,12.15 8.86,12.17 9.05,12.04C9.25,11.91 9.58,11.7 10.13,11.36C12.25,10 10.47,13.14 9.56,18.43C9.2,21.05 11.56,19.7 12.17,19.3C12.77,18.91 14.38,17.8 14.54,17.69C14.76,17.54 14.6,17.42 14.43,17.17C14.31,17 14.19,17.12 14.19,17.12C13.54,17.55 12.35,18.45 12.19,17.88C12,17.31 13.22,13.4 13.89,10.71C14,10.07 14.3,8.67 13.14,8.77Z"}];this.addon.documentation&&e.push({translationKey:"addon.panel.documentation",path:"/hassio/addon/".concat(this.addon.slug,"/documentation"),iconPath:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"}),this.addon.version&&e.push({translationKey:"addon.panel.configuration",path:"/hassio/addon/".concat(this.addon.slug,"/config"),iconPath:"M15.9,18.45C17.25,18.45 18.35,17.35 18.35,16C18.35,14.65 17.25,13.55 15.9,13.55C14.54,13.55 13.45,14.65 13.45,16C13.45,17.35 14.54,18.45 15.9,18.45M21.1,16.68L22.58,17.84C22.71,17.95 22.75,18.13 22.66,18.29L21.26,20.71C21.17,20.86 21,20.92 20.83,20.86L19.09,20.16C18.73,20.44 18.33,20.67 17.91,20.85L17.64,22.7C17.62,22.87 17.47,23 17.3,23H14.5C14.32,23 14.18,22.87 14.15,22.7L13.89,20.85C13.46,20.67 13.07,20.44 12.71,20.16L10.96,20.86C10.81,20.92 10.62,20.86 10.54,20.71L9.14,18.29C9.05,18.13 9.09,17.95 9.22,17.84L10.7,16.68L10.65,16L10.7,15.31L9.22,14.16C9.09,14.05 9.05,13.86 9.14,13.71L10.54,11.29C10.62,11.13 10.81,11.07 10.96,11.13L12.71,11.84C13.07,11.56 13.46,11.32 13.89,11.15L14.15,9.29C14.18,9.13 14.32,9 14.5,9H17.3C17.47,9 17.62,9.13 17.64,9.29L17.91,11.15C18.33,11.32 18.73,11.56 19.09,11.84L20.83,11.13C21,11.07 21.17,11.13 21.26,11.29L22.66,13.71C22.75,13.86 22.71,14.05 22.58,14.16L21.1,15.31L21.15,16L21.1,16.68M6.69,8.07C7.56,8.07 8.26,7.37 8.26,6.5C8.26,5.63 7.56,4.92 6.69,4.92A1.58,1.58 0 0,0 5.11,6.5C5.11,7.37 5.82,8.07 6.69,8.07M10.03,6.94L11,7.68C11.07,7.75 11.09,7.87 11.03,7.97L10.13,9.53C10.08,9.63 9.96,9.67 9.86,9.63L8.74,9.18L8,9.62L7.81,10.81C7.79,10.92 7.7,11 7.59,11H5.79C5.67,11 5.58,10.92 5.56,10.81L5.4,9.62L4.64,9.18L3.5,9.63C3.41,9.67 3.3,9.63 3.24,9.53L2.34,7.97C2.28,7.87 2.31,7.75 2.39,7.68L3.34,6.94L3.31,6.5L3.34,6.06L2.39,5.32C2.31,5.25 2.28,5.13 2.34,5.03L3.24,3.47C3.3,3.37 3.41,3.33 3.5,3.37L4.63,3.82L5.4,3.38L5.56,2.19C5.58,2.08 5.67,2 5.79,2H7.59C7.7,2 7.79,2.08 7.81,2.19L8,3.38L8.74,3.82L9.86,3.37C9.96,3.33 10.08,3.37 10.13,3.47L11.03,5.03C11.09,5.13 11.07,5.25 11,5.32L10.03,6.06L10.06,6.5L10.03,6.94Z"},{translationKey:"addon.panel.log",path:"/hassio/addon/".concat(this.addon.slug,"/logs"),iconPath:"M18 7C16.9 7 16 7.9 16 9V15C16 16.1 16.9 17 18 17H20C21.1 17 22 16.1 22 15V11H20V15H18V9H22V7H18M2 7V17H8V15H4V7H2M11 7C9.9 7 9 7.9 9 9V15C9 16.1 9.9 17 11 17H13C14.1 17 15 16.1 15 15V9C15 7.9 14.1 7 13 7H11M11 9H13V15H11V9Z"});var t=this._computeTail(this.route);return(0,n.dy)(lu||(lu=hu(["\n ',"\n \n \n "])),this.hass,this.supervisor.localize,this.narrow,this.addon.version?"/hassio/dashboard":"/hassio/store",t,e,this.addon.name,t,this.narrow,this.hass,this.supervisor,this.addon)}},{kind:"get",static:!0,key:"styles",value:function(){return[p.Qx,h.l,(0,n.iv)(du||(du=hu(["\n :host {\n color: var(--primary-text-color);\n }\n .content {\n padding: 24px 0 32px;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n hassio-addon-info,\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config {\n margin-bottom: 24px;\n width: 600px;\n }\n hassio-addon-logs {\n max-width: calc(100% - 8px);\n min-width: 600px;\n }\n @media only screen and (max-width: 600px) {\n hassio-addon-info,\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config,\n hassio-addon-logs {\n max-width: 100%;\n min-width: 100%;\n }\n }\n "])))]}},{kind:"method",key:"firstUpdated",value:(m=pu(regeneratorRuntime.mark((function e(){var t,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==this.route.path){e.next=8;break}if(!(t=(0,d.io)("addon"))){e.next=8;break}return e.next=5,(0,u.yt)(this.hass);case 5:e.sent.addons.some((function(e){return e.slug===t}))?(0,l.c)("/hassio/addon/".concat(t),{replace:!0}):this._error=this.supervisor.localize("my.error_addon_not_found");case 8:this.addEventListener("hass-api-called",(function(e){return r._apiCalled(e)}));case 9:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{kind:"method",key:"_apiCalled",value:(i=pu(regeneratorRuntime.mark((function e(t){var r,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.detail.success){e.next=2;break}return e.abrupt("return");case 2:if((n=null===(r=t.detail.path)||void 0===r?void 0:r.split("/"))&&0!==n.length){e.next=5;break}return e.abrupt("return");case 5:if(i=n[n.length-1],["uninstall","install","update","start","stop"].includes(i)&&(0,c.B)(this,"supervisor-collection-refresh",{collection:"supervisor"}),"uninstall"!==i){e.next=11;break}window.history.back(),e.next=13;break;case 11:return e.next=13,this._routeDataChanged();case 13:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{kind:"method",key:"updated",value:function(e){e.has("route")&&!this.addon&&this._routeDataChanged()}},{kind:"method",key:"_routeDataChanged",value:(r=pu(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.route.path.split("/")[1]){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,(0,u.AD)(this.hass,t);case 6:r=e.sent,this.addon=r,e.next=14;break;case 10:e.prev=10,e.t0=e.catch(3),this._error="Error fetching addon info: ".concat((0,f.js)(e.t0)),this.addon=void 0;case 14:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(){return r.apply(this,arguments)})}]}}),n.oi)}}]); \ No newline at end of file +"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[275],{26275:function(e,t,r){r.r(t);var n=r(7599),i=r(26767),o=r(5701),a=r(17717),s=r(14516),c=r(47181),l=r(83849),d=r(15493),u=(r(34552),r(34154)),f=r(41682),p=(r(48811),r(21625),r(50054),r(11654)),h=r(55677),m=(r(89579),r(73449),r(53973),r(11488),r(61740),r(98762),r(9381),r(22098),r(20258)),y=r(26765);function v(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}var b,g,w,k,E,_=function(){var e,t=(e=regeneratorRuntime.mark((function e(t,r,n,i){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.g7)(t,{title:n.localize("common.restart_name","name",i.name),text:n.localize("dialog.restart_addon.text"),confirmText:n.localize("dialog.restart_addon.confirm_text"),dismissText:n.localize("common.cancel")});case 2:if(!e.sent){e.next=12;break}return e.prev=4,e.next=7,(0,u.P$)(r,i.slug);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(4),(0,y.Ys)(t,{title:n.localize("common.failed_to_restart_name","name",i.name),text:(0,f.js)(e.t0)});case 12:case"end":return e.stop()}}),e,null,[[4,9]])})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){v(o,n,i,a,s,"next",e)}function s(e){v(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e,r,n,i){return t.apply(this,arguments)}}();function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function P(e){return function(e){if(Array.isArray(e))return $(e)}(e)||N(e)||B(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function S(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){x(o,n,i,a,s,"next",e)}function s(e){x(o,n,i,a,s,"throw",e)}a(void 0)}))}}function O(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){return D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},D(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=q(e);if(t){var i=q(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return T(this,r)}}function T(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return z(e)}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(){R=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!I(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n\n \n \n \n
\n
\n ',""])),this._error):"",this.supervisor.localize("addon.configuration.audio.input"),this._setInputDevice,this._selectedInput,this._inputDevices&&this._inputDevices.map((function(e){return(0,n.dy)(w||(w=O(["\n \n ","\n \n "])),e.device||"",e.name)})),this.supervisor.localize("addon.configuration.audio.output"),this._setOutputDevice,this._selectedOutput,this._outputDevices&&this._outputDevices.map((function(e){return(0,n.dy)(k||(k=O(["\n ","\n "])),e.device||"",e.name)})),this._saveSettings,this.supervisor.localize("common.save"))}},{kind:"get",static:!0,key:"styles",value:function(){return[p.Qx,h.l,(0,n.iv)(E||(E=O(["\n :host,\n ha-card,\n paper-dropdown-menu {\n display: block;\n }\n paper-item {\n width: 450px;\n }\n .card-actions {\n text-align: right;\n }\n "])))]}},{kind:"method",key:"update",value:function(e){U(q(s.prototype),"update",this).call(this,e),e.has("addon")&&this._addonChanged()}},{kind:"method",key:"_setInputDevice",value:function(e){var t=e.detail.item.getAttribute("device");this._selectedInput=t}},{kind:"method",key:"_setOutputDevice",value:function(e){var t=e.detail.item.getAttribute("device");this._selectedOutput=t}},{kind:"method",key:"_addonChanged",value:(i=S(regeneratorRuntime.mark((function e(){var t,r,n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._selectedInput=null===this.addon.audio_input?"default":this.addon.audio_input,this._selectedOutput=null===this.addon.audio_output?"default":this.addon.audio_output,!this._outputDevices){e.next=4;break}return e.abrupt("return");case 4:return t={device:"default",name:this.supervisor.localize("addon.configuration.audio.default")},e.prev=5,e.next=8,(0,m.G)(this.hass);case 8:r=e.sent,n=r.audio,i=Object.keys(n.input).map((function(e){return{device:e,name:n.input[e]}})),o=Object.keys(n.output).map((function(e){return{device:e,name:n.output[e]}})),this._inputDevices=[t].concat(P(i)),this._outputDevices=[t].concat(P(o)),e.next=21;break;case 16:e.prev=16,e.t0=e.catch(5),this._error="Failed to fetch audio hardware",this._inputDevices=[t],this._outputDevices=[t];case 21:case"end":return e.stop()}}),e,this,[[5,16]])}))),function(){return i.apply(this,arguments)})},{kind:"method",key:"_saveSettings",value:(r=S(regeneratorRuntime.mark((function e(t){var r,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,this._error=void 0,n={audio_input:"default"===this._selectedInput?null:this._selectedInput,audio_output:"default"===this._selectedOutput?null:this._selectedOutput},e.prev=4,e.next=7,(0,u.d3)(this.hass,this.addon.slug,n);case 7:if("started"!==(null===(i=this.addon)||void 0===i?void 0:i.state)){e.next=10;break}return e.next=10,_(this,this.hass,this.supervisor,this.addon);case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),this._error="Failed to set addon audio device";case 15:r.progress=!1;case 16:case"end":return e.stop()}}),e,this,[[4,12]])}))),function(e){return r.apply(this,arguments)})}]}}),n.oi),r(87724);var Z=r(77426),K=r(67352),Q=(r(40191),r(57835));function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(c){s=!0,i=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return X(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return X(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ","\n \n "])),this.data,this._valueChanged,this.label)}},{kind:"method",key:"_valueChanged",value:function(e){(0,c.B)(this,"value-changed",{value:e.target.checked})}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(oe||(oe=ce(["\n paper-checkbox {\n display: block;\n padding: 22px 0;\n }\n "])))}}]}}),n.oi);function Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}function xe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oe(e,t){return Oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Oe(e,t)}function Ae(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Be(e);if(t){var i=Be(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return De(this,r)}}function De(e,t){if(t&&("object"===Pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return je(e)}function je(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Te(){Te=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Fe(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r',": ",""])),this.label,this.schema.value)}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(Ce||(Ce=xe(["\n :host {\n display: block;\n }\n .label {\n font-weight: 500;\n }\n "])))}}]}}),n.oi),r(77956);function Ne(e){return Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ne(e)}function Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qe(e,t){return qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qe(e,t)}function Ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ye(e);if(t){var i=Ye(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ke(this,r)}}function Ke(e,t){if(t&&("object"===Ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qe(e)}function Qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ye(e){return Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ye(e)}function We(){We=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Ge(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r',"\n \n "],t||(t=e.slice(0)),$e=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),this.label,this._value,this.schema.required,this.schema.required,this._valueChanged,this.suffix);var e,t}},{kind:"get",key:"_value",value:function(){return this.data}},{kind:"method",key:"_valueChanged",value:function(e){var t=e.target.value?Number(e.target.value):void 0;this._value!==t&&(0,c.B)(this,"value-changed",{value:t})}}]}}),n.oi),r(1548);function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function at(e,t){for(var r=0;r .slider-knob > .slider-knob-inner::after {\n -webkit-transform: scale(1) translate(0, -17px) scaleX(-1) !important;\n transform: scale(1) translate(0, -17px) scaleX(-1) !important;\n }\n\n .pin > .slider-knob > .slider-knob-inner {\n font-size: var(--ha-slider-pin-font-size, 15px);\n line-height: normal;\n cursor: pointer;\n }\n\n .disabled.ring > .slider-knob > .slider-knob-inner {\n background-color: var(--paper-slider-disabled-knob-color, var(--disabled-text-color));\n border: 2px solid var(--paper-slider-disabled-knob-color, var(--disabled-text-color));\n }\n\n .pin > .slider-knob > .slider-knob-inner::before {\n top: unset;\n margin-left: unset;\n\n bottom: calc(15px + var(--calculated-paper-slider-height)/2);\n left: 50%;\n width: 2.2em;\n height: 2.2em;\n\n -webkit-transform-origin: left bottom;\n transform-origin: left bottom;\n -webkit-transform: rotate(-45deg) scale(0) translate(0);\n transform: rotate(-45deg) scale(0) translate(0);\n }\n\n .pin.expand > .slider-knob > .slider-knob-inner::before {\n -webkit-transform: rotate(-45deg) scale(1) translate(7px, -7px);\n transform: rotate(-45deg) scale(1) translate(7px, -7px);\n }\n\n .pin > .slider-knob > .slider-knob-inner::after {\n top: unset;\n font-size: unset;\n\n bottom: calc(15px + var(--calculated-paper-slider-height)/2);\n left: 50%;\n margin-left: -1.1em;\n width: 2.2em;\n height: 2.1em;\n\n -webkit-transform-origin: center bottom;\n transform-origin: center bottom;\n -webkit-transform: scale(0) translate(0);\n transform: scale(0) translate(0);\n }\n\n .pin.expand > .slider-knob > .slider-knob-inner::after {\n -webkit-transform: scale(1) translate(0, -10px);\n transform: scale(1) translate(0, -10px);\n }\n\n .slider-input {\n width: 54px;\n }\n ')),ft}}],(r=[{key:"_setImmediateValue",value:function(e){st(ut(o.prototype),"_setImmediateValue",this).call(this,this.step>=1?Math.round(e):Math.round(100*e)/100)}},{key:"_calcStep",value:function(e){if(!this.step)return parseFloat(e);var t=Math.round((e-this.min)/this.step),r=this.step.toString(),n=r.indexOf(".");if(-1!==n){var i=Math.pow(10,r.length-n-1);return Math.round((t*this.step+this.min)*i)/i}return t*this.step+this.min}}])&&at(t.prototype,r),n&&at(t,n),o}(vt);function gt(e){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gt(e)}function wt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Et(e,t){return Et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Et(e,t)}function _t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=xt(e);if(t){var i=xt(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ct(this,r)}}function Ct(e,t){if(t&&("object"===gt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pt(e)}function Pt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xt(e){return xt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xt(e)}function St(){St=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Dt(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ",'\n
\n ',"\n \n
\n
\n "])),this.label,this.schema.optional&&void 0===this.schema.default?(0,n.dy)(ht||(ht=wt(["\n \n "])),this._handleCheckboxChange,void 0!==this.data):"",this._value,this.schema.valueMin,this.schema.valueMax,void 0===this.data&&this.schema.optional&&void 0===this.schema.default,this._valueChanged):(0,n.dy)(mt||(mt=wt(['\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n \n ',"\n \n "])),i,r.includes(i),e._optionLabel(t))})))}},{kind:"method",key:"firstUpdated",value:function(){var e=this;this.updateComplete.then((function(){var t,r,n,i=null===(t=e.shadowRoot)||void 0===t||null===(r=t.querySelector("paper-input"))||void 0===r||null===(n=r.inputElement)||void 0===n?void 0:n.inputElement;i&&(i.style.textOverflow="ellipsis")}))}},{kind:"method",key:"_optionValue",value:function(e){return Array.isArray(e)?e[0]:e}},{kind:"method",key:"_optionLabel",value:function(e){return Array.isArray(e)?e[1]||e[0]:e}},{kind:"method",key:"_onSelect",value:function(e){e.stopPropagation()}},{kind:"method",key:"_valueChanged",value:function(e){e.detail.value&&this._init?(0,c.B)(this,"value-changed",{value:e.detail.value.map((function(e){return e.itemValue}))},{bubbles:!1}):this._init=!0}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(It||(It=Ht(["\n paper-menu-button {\n display: block;\n padding: 0;\n --paper-item-icon-width: 34px;\n }\n paper-ripple {\n top: 12px;\n left: 0px;\n bottom: 8px;\n right: 0px;\n }\n paper-input {\n text-overflow: ellipsis;\n }\n "])))}}]}}),n.oi);var er,tr=r(50856);function rr(e){return rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rr(e)}function nr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ir(e,t){for(var r=0;r\n :host {\n display: block;\n @apply --paper-font-common-base;\n }\n\n paper-input {\n width: 30px;\n text-align: center;\n --paper-input-container-input: {\n /* Damn you firefox\n * Needed to hide spin num in firefox\n * http://stackoverflow.com/questions/3790935/can-i-hide-the-html5-number-input-s-spin-box\n */\n -moz-appearance: textfield;\n @apply --paper-time-input-cotnainer;\n }\n --paper-input-container-input-webkit-spinner: {\n -webkit-appearance: none;\n margin: 0;\n display: none;\n }\n --paper-input-container-shared-input-style_-_-webkit-appearance: textfield;\n }\n\n paper-dropdown-menu {\n width: 55px;\n padding: 0;\n /* Force ripple to use the whole container */\n --paper-dropdown-menu-ripple: {\n color: var(\n --paper-time-input-dropdown-ripple-color,\n var(--primary-color)\n );\n }\n --paper-input-container-input: {\n @apply --paper-font-button;\n text-align: center;\n padding-left: 5px;\n @apply --paper-time-dropdown-input-cotnainer;\n }\n --paper-input-container-underline: {\n border-color: transparent;\n }\n --paper-input-container-underline-focus: {\n border-color: transparent;\n }\n }\n\n paper-item {\n cursor: pointer;\n text-align: center;\n font-size: 14px;\n }\n\n paper-listbox {\n padding: 0;\n }\n\n label {\n @apply --paper-font-caption;\n color: var(\n --paper-input-container-color,\n var(--secondary-text-color)\n );\n }\n\n .time-input-wrap {\n @apply --layout-horizontal;\n @apply --layout-no-wrap;\n justify-content: var(--paper-time-input-justify-content, normal);\n }\n\n [hidden] {\n display: none !important;\n }\n\n #millisec {\n width: 38px;\n }\n\n .no-suffix {\n margin-left: -2px;\n }\n \n\n \n
\n \x3c!-- Hour Input --\x3e\n \n :\n \n\n \x3c!-- Min Input --\x3e\n \n :\n \n\n \x3c!-- Sec Input --\x3e\n \n :\n \n\n \x3c!-- Millisec Input --\x3e\n \n \n\n \x3c!-- Dropdown Menu --\x3e\n \n \n AM\n PM\n \n \n
\n '],t||(t=e.slice(0)),er=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))));var e,t}},{key:"properties",get:function(){return{label:{type:String,value:"Time"},autoValidate:{type:Boolean,value:!0},hideLabel:{type:Boolean,value:!1},floatInputLabels:{type:Boolean,value:!1},alwaysFloatInputLabels:{type:Boolean,value:!1},format:{type:Number,value:12},disabled:{type:Boolean,value:!1},hour:{type:String,notify:!0},min:{type:String,notify:!0},sec:{type:String,notify:!0},millisec:{type:String,notify:!0},hourLabel:{type:String,value:""},minLabel:{type:String,value:""},secLabel:{type:String,value:""},millisecLabel:{type:String,value:""},enableSecond:{type:Boolean,value:!1},enableMillisecond:{type:Boolean,value:!1},noHoursLimit:{type:Boolean,value:!1},amPm:{type:String,notify:!0,value:"AM"},value:{type:String,notify:!0,readOnly:!0,computed:"_computeTime(min, hour, sec, millisec, amPm)"}}}}],(r=[{key:"validate",value:function(){var e=!0;return this.$.hour.validate()&&this.$.min.validate()||(e=!1),this.enableSecond&&!this.$.sec.validate()&&(e=!1),this.enableMillisecond&&!this.$.millisec.validate()&&(e=!1),12!==this.format||this.$.dropdown.validate()||(e=!1),e}},{key:"_computeTime",value:function(e,t,r,n,i){var o;return(t||e||r&&this.enableSecond||n&&this.enableMillisecond)&&(r=r||"00",n=n||"000",o=(t=t||"00")+":"+(e=e||"00"),this.enableSecond&&r&&(o=o+":"+r),this.enableMillisecond&&n&&(o=o+":"+n),12===this.format&&(o=o+" "+i)),o}},{key:"_onFocus",value:function(e){e.target.inputElement.inputElement.select()}},{key:"_formatMillisec",value:function(){1===this.millisec.toString().length&&(this.millisec=this.millisec.toString().padStart(3,"0"))}},{key:"_formatSec",value:function(){1===this.sec.toString().length&&(this.sec=this.sec.toString().padStart(2,"0"))}},{key:"_formatMin",value:function(){1===this.min.toString().length&&(this.min=this.min.toString().padStart(2,"0"))}},{key:"_shouldFormatHour",value:function(){24===this.format&&1===this.hour.toString().length&&(this.hour=this.hour.toString().padStart(2,"0"))}},{key:"_computeHourMax",value:function(e){return this.noHoursLimit?null:12===e?e:23}},{key:"_equal",value:function(e,t){return e===t}},{key:"_computeClassNames",value:function(e){return e?" ":"no-suffix"}}])&&ir(t.prototype,r),n&&ir(t,n),o}(r(28426).H3);function ur(e){return ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ur(e)}function fr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hr(e,t){return hr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hr(e,t)}function mr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=br(e);if(t){var i=br(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return yr(this,r)}}function yr(e,t){if(t&&("object"===ur(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vr(e)}function vr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function br(e){return br=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},br(e)}function gr(){gr=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Er(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n '],t||(t=e.slice(0)),lr=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),this.label,this.required,this.required,this.enableMillisecond,this._parseDuration(this._hours),this._parseDuration(this._minutes),this._parseDuration(this._seconds),this._parseDurationMillisec(this._milliseconds),this._hourChanged,this._minChanged,this._secChanged,this._millisecChanged);var e,t}},{kind:"get",key:"_hours",value:function(){return this.data&&this.data.hours?Number(this.data.hours):0}},{kind:"get",key:"_minutes",value:function(){return this.data&&this.data.minutes?Number(this.data.minutes):0}},{kind:"get",key:"_seconds",value:function(){return this.data&&this.data.seconds?Number(this.data.seconds):0}},{kind:"get",key:"_milliseconds",value:function(){return this.data&&this.data.milliseconds?Number(this.data.milliseconds):0}},{kind:"method",key:"_parseDuration",value:function(e){return e.toString().padStart(2,"0")}},{kind:"method",key:"_parseDurationMillisec",value:function(e){return e.toString().padStart(3,"0")}},{kind:"method",key:"_hourChanged",value:function(e){this._durationChanged(e,"hours")}},{kind:"method",key:"_minChanged",value:function(e){this._durationChanged(e,"minutes")}},{kind:"method",key:"_secChanged",value:function(e){this._durationChanged(e,"seconds")}},{kind:"method",key:"_millisecChanged",value:function(e){this._durationChanged(e,"milliseconds")}},{kind:"method",key:"_durationChanged",value:function(e,t){var r=Number(e.detail.value);if(r!==this["_".concat(t)]){var n=this._hours,i=this._minutes;"seconds"===t&&r>59&&(i+=Math.floor(r/60),r%=60),"minutes"===t&&r>59&&(n+=Math.floor(r/60),r%=60),(0,c.B)(this,"value-changed",{value:Object.assign({hours:n,minutes:i,seconds:this._seconds,milliseconds:this._milliseconds},fr({},t,r))})}}}]}}),n.oi);function Or(e){return Or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Or(e)}function Ar(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dr(e,t){return Dr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dr(e,t)}function jr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Rr(e);if(t){var i=Rr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Tr(this,r)}}function Tr(e,t){if(t&&("object"===Or(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zr(e)}function zr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rr(e){return Rr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Rr(e)}function Fr(){Fr=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Lr(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n "],t||(t=e.slice(0)),Sr=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),this.label,this.schema.required,this.data);var e,t}}]}}),n.oi),r(58856);function Kr(e){return Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kr(e)}function Qr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Yr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wr(e,t){return Wr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Wr(e,t)}function Xr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=en(e);if(t){var i=en(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Jr(this,r)}}function Jr(e,t){if(t&&("object"===Kr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Gr(e)}function Gr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function en(e){return en=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},en(e)}function tn(){tn=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!on(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n
\n "])),this._computeError(this.error.base,this.schema)):"",this.schema.map((function(t){return(0,n.dy)(jn||(jn=In(["\n \n "])),e._getValue(e.data,t),t,e._getValue(e.error,t),e._valueChanged,e.computeError,e.computeLabel,e.computeSuffix)}))):(0,n.dy)(Tn||(Tn=In(["\n ","\n ","\n "])),this.error?(0,n.dy)(zn||(zn=In(['\n
\n ',"\n
\n "])),this._computeError(this.error,this.schema)):"",ae("ha-form-".concat(this.schema.type),{schema:this.schema,data:this.data,label:this._computeLabel(this.schema),suffix:this._computeSuffix(this.schema),id:"child-form"}))}},{kind:"method",key:"_computeLabel",value:function(e){return this.computeLabel?this.computeLabel(e):e?e.name:""}},{kind:"method",key:"_computeSuffix",value:function(e){return this.computeSuffix?this.computeSuffix(e):e&&e.description?e.description.suffix:""}},{kind:"method",key:"_computeError",value:function(e,t){return this.computeError?this.computeError(e,t):e}},{kind:"method",key:"_getValue",value:function(e,t){return e?e[t.name]:null}},{kind:"method",key:"_valueChanged",value:function(e){e.stopPropagation();var t,r,n,i=e.target.schema,o=this.data;(0,c.B)(this,"value-changed",{value:Object.assign({},o,(t={},r=i.name,n=e.detail.value,r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t))})}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(Rn||(Rn=In(["\n .error {\n color: var(--error-color);\n }\n "])))}}]}}),n.oi),r(78358),r(31585);function Gn(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}var ei,ti=function(){var e,t=(e=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Jn||(Jn=Promise.all([r.e(37),r.e(914)]).then(r.bind(r,92914))),e.abrupt("return",Jn);case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Gn(o,n,i,a,s,"next",e)}function s(e){Gn(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();function ri(e){return ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ri(e)}function ni(e){return function(e){if(Array.isArray(e))return bi(e)}(e)||gi(e)||vi(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ii(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function oi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ai(e,t){return ai=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ai(e,t)}function si(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ki(e);if(t){var i=ki(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ci(this,r)}}function ci(e,t){if(t&&("object"===ri(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return li(e)}function li(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function di(){di=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!pi(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r",'\n \n
\n

\n ','\n

\n
\n \n \n \n \n ','\n \n \n
\n
\n\n
\n ',"\n ","\n ","\n
\n ",'\n
\n ',""])),this._error):"",!this._yamlMode||this._canShowSchema&&this.addon.schema||this._valid?"":(0,n.dy)(Zi||(Zi=Ji(['\n \n ',"\n \n "])),this.supervisor.localize("addon.configuration.options.invalid_yaml")),t?(0,n.dy)(Ki||(Ki=Ji(['=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n\n \n \n \n \n \n \n \n ",'\n \n
\n ","\n \n ","\n ","
\n
\n
\n ',""])),this._error):"",this.supervisor.localize("addon.configuration.network.container"),this.supervisor.localize("addon.configuration.network.host"),this.supervisor.localize("common.description"),this._config.map((function(t){return(0,n.dy)(bo||(bo=Po(["\n \n ","\n \n \n \n ","\n \n "])),t.container,e._configChanged,e.supervisor.localize("addon.configuration.network.disabled"),t.host?String(t.host):"",t.container,e._computeDescription(t))})),this._resetTapped,this.supervisor.localize("common.reset_defaults"),this._saveTapped,this.supervisor.localize("common.save")):(0,n.dy)(mo||(mo=Po([""])))}},{kind:"method",key:"update",value:function(e){Ho(Vo(l.prototype),"update",this).call(this,e),e.has("addon")&&this._setNetworkConfig()}},{kind:"field",key:"_computeDescription",value:function(){var e=this;return function(t){var r,n,i,o,a,s;return(null===(r=e.addon.translations[e.hass.language])||void 0===r||null===(n=r.network)||void 0===n||null===(i=n[t.container])||void 0===i?void 0:i.description)||(null===(o=e.addon.translations.en)||void 0===o||null===(a=o.network)||void 0===a||null===(s=a[t.container])||void 0===s?void 0:s.description)||t.description}}},{kind:"method",key:"_setNetworkConfig",value:function(){var e=this.addon.network||{},t=this.addon.network_description||{},r=Object.keys(e).map((function(r){return{container:r,host:e[r],description:t[r]}}));this._config=r.sort((function(e,t){return e.container>t.container?1:-1}))}},{kind:"method",key:"_configChanged",value:(s=Co(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.target,this._config.forEach((function(e){e.container===r.container&&e.host!==parseInt(String(r.value),10)&&(e.host=r.value?parseInt(String(r.value),10):null)}));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{kind:"method",key:"_resetTapped",value:(i=Co(regeneratorRuntime.mark((function e(t){var r,n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,n={network:null},e.prev=3,e.next=6,(0,u.d3)(this.hass,this.addon.slug,n);case 6:if(o={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",o),"started"!==(null===(i=this.addon)||void 0===i?void 0:i.state)){e.next=11;break}return e.next=11,_(this,this.hass,this.supervisor,this.addon);case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),this._error=this.supervisor.localize("addon.failed_to_reset","error",(0,f.js)(e.t0));case 16:r.progress=!1;case 17:case"end":return e.stop()}}),e,this,[[3,13]])}))),function(e){return i.apply(this,arguments)})},{kind:"method",key:"_saveTapped",value:(r=Co(regeneratorRuntime.mark((function e(t){var r,n,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,this._error=void 0,n={},this._config.forEach((function(e){n[e.container]=parseInt(String(e.host),10)})),i={network:n},e.prev=6,e.next=9,(0,u.d3)(this.hass,this.addon.slug,i);case 9:if(a={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",a),"started"!==(null===(o=this.addon)||void 0===o?void 0:o.state)){e.next=14;break}return e.next=14,_(this,this.hass,this.supervisor,this.addon);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,f.js)(e.t0));case 19:r.progress=!1;case 20:case"end":return e.stop()}}),e,this,[[6,16]])}))),function(e){return r.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[p.Qx,h.l,(0,n.iv)(go||(go=Po(["\n :host {\n display: block;\n }\n ha-card {\n display: block;\n }\n .card-actions {\n display: flex;\n justify-content: space-between;\n }\n "])))]}}]}}),n.oi);var Bo,$o,No,Uo,qo,Zo,Ko,Qo=r(18199);function Yo(e){return Yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yo(e)}function Wo(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Xo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jo(e,t){return Jo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jo(e,t)}function Go(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ra(e);if(t){var i=ra(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ea(this,r)}}function ea(e,t){if(t&&("object"===Yo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ta(e)}function ta(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ra(e)}function na(){na=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!aa(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])));var e=this.addon.options&&Object.keys(this.addon.options).length||this.addon.schema&&Object.keys(this.addon.schema).length;return(0,n.dy)($o||($o=Wo(['\n
\n ',"\n
\n "])),e||this.addon.network||this.addon.audio?(0,n.dy)(No||(No=Wo(["\n ","\n ","\n ","\n "])),e?(0,n.dy)(Uo||(Uo=Wo(["\n \n "])),this.hass,this.addon,this.supervisor):"",this.addon.network?(0,n.dy)(qo||(qo=Wo(["\n \n "])),this.hass,this.addon,this.supervisor):"",this.addon.audio?(0,n.dy)(Zo||(Zo=Wo(["\n \n "])),this.hass,this.addon,this.supervisor):""):this.supervisor.localize("addon.configuration.no_configuration"))}},{kind:"get",static:!0,key:"styles",value:function(){return[p.Qx,h.l,(0,n.iv)(Ko||(Ko=Wo(["\n .content {\n margin: auto;\n padding: 8px;\n max-width: 1024px;\n }\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config {\n margin-bottom: 24px;\n }\n "])))]}}]}}),n.oi),r(93546);function va(e){return va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},va(e)}function ba(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ga(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function wa(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ga(o,n,i,a,s,"next",e)}function s(e){ga(o,n,i,a,s,"throw",e)}a(void 0)}))}}function ka(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ea(e,t){return Ea=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ea(e,t)}function _a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Fa(e);if(t){var i=Fa(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ca(this,r)}}function Ca(e,t){if(t&&("object"===va(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pa(e)}function Pa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xa(){xa=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Aa(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n ','\n
\n ',"\n
\n
\n
\n "])),this._error?(0,n.dy)(pa||(pa=ba(['',""])),this._error):"",this._content?(0,n.dy)(ha||(ha=ba([""])),this._content):(0,n.dy)(ma||(ma=ba([""])))):(0,n.dy)(ua||(ua=ba([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return[p.Qx,h.l,(0,n.iv)(ya||(ya=ba(["\n ha-card {\n display: block;\n }\n .content {\n margin: auto;\n padding: 8px;\n max-width: 1024px;\n }\n ha-markdown {\n padding: 16px;\n }\n "])))]}},{kind:"method",key:"_loadData",value:(r=wa(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,e.prev=1,e.next=4,(0,u.ii)(this.hass,this.addon.slug);case 4:this._content=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this._error=this.supervisor.localize("addon.documentation.get_logs","error",(0,f.js)(e.t0));case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return r.apply(this,arguments)})}]}}),n.oi);var Ma,Ia,La=r(228),Ha=r(63864);function Va(e){return Va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Va(e)}function Ba(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function $a(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Na(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ua(e,t){return Ua=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ua(e,t)}function qa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Qa(e);if(t){var i=Qa(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Za(this,r)}}function Za(e,t){if(t&&("object"===Va(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ka(e)}function Ka(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qa(e){return Qa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Qa(e)}function Ya(){Ya=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Ja(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n "])),this.progress,this._buttonTapped,this.disabled)}},{kind:"method",key:"_buttonTapped",value:(r=regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.progress=!0,t={method:this.method,path:this.path,data:this.data},e.prev=2,e.next=5,this.hass.callApi(this.method,this.path,this.data);case 5:r=e.sent,this.progress=!1,this._progressButton.actionSuccess(),t.success=!0,t.response=r,e.next=18;break;case 12:e.prev=12,e.t0=e.catch(2),this.progress=!1,this._progressButton.actionError(),t.success=!1,t.response=e.t0;case 18:(0,c.B)(this,"hass-api-called",t);case 19:case"end":return e.stop()}}),e,this,[[2,12]])})),i=function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){Ba(o,n,i,a,s,"next",e)}function s(e){Ba(o,n,i,a,s,"throw",e)}a(void 0)}))},function(){return i.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(Ia||(Ia=$a(["\n :host([disabled]) {\n pointer-events: none;\n }\n "])))}}]}}),n.oi);function cs(e){return cs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cs(e)}function ls(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ds(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function us(e,t){return us=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},us(e,t)}function fs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Cs(e);if(t){var i=Cs(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ps(this,r)}}function ps(e,t){if(t&&("object"===cs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return hs(e)}function hs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ms(){ms=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!bs(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n
\n
\n \n
\n ',"\n
\n ","\n \n "])),this.label?(0,n.dy)(is||(is=ls(["\n \n ","\n \n "])),(0,La.$)({label:!0,big:this.label.length>5}),this.label):"",this.description?(0,n.dy)(os||(os=ls(['
',"
"])),this.description):"")}},{kind:"get",static:!0,key:"styles",value:function(){return[(0,n.iv)(as||(as=ls(["\n .badge-container {\n display: inline-block;\n text-align: center;\n vertical-align: top;\n padding: var(--ha-label-badge-padding, 0 0 0 0);\n }\n .label-badge {\n position: relative;\n display: block;\n margin: 0 auto;\n width: var(--ha-label-badge-size, 2.5em);\n text-align: center;\n height: var(--ha-label-badge-size, 2.5em);\n line-height: var(--ha-label-badge-size, 2.5em);\n font-size: var(--ha-label-badge-font-size, 1.5em);\n border-radius: 50%;\n border: 0.1em solid var(--ha-label-badge-color, var(--primary-color));\n color: var(--label-badge-text-color, rgb(76, 76, 76));\n\n white-space: nowrap;\n background-color: var(--label-badge-background-color, white);\n background-size: cover;\n transition: border 0.3s ease-in-out;\n }\n .label-badge .label.big span {\n font-size: 90%;\n padding: 10% 12% 7% 12%; /* push smaller text a bit down to center vertically */\n }\n .label-badge .value {\n font-size: 90%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .label-badge .label {\n position: absolute;\n bottom: -1em;\n /* Make the label as wide as container+border. (parent_borderwidth / font-size) */\n left: -0.2em;\n right: -0.2em;\n line-height: 1em;\n font-size: 0.5em;\n }\n .label-badge .label span {\n box-sizing: border-box;\n max-width: 100%;\n display: inline-block;\n background-color: var(--ha-label-badge-color, var(--primary-color));\n color: var(--ha-label-badge-label-color, white);\n border-radius: 1em;\n padding: 9% 16% 8% 16%; /* mostly apitalized text, not much descenders => bit more top margin */\n font-weight: 500;\n overflow: hidden;\n text-transform: uppercase;\n text-overflow: ellipsis;\n transition: background-color 0.3s ease-in-out;\n text-transform: var(--ha-label-badge-label-text-transform, uppercase);\n }\n .badge-container .title {\n margin-top: 1em;\n font-size: var(--ha-label-badge-title-font-size, 0.9em);\n width: var(--ha-label-badge-title-width, 5em);\n font-weight: var(--ha-label-badge-title-font-weight, 400);\n overflow: hidden;\n text-overflow: ellipsis;\n line-height: normal;\n }\n "])))]}},{kind:"method",key:"updated",value:function(e){_s(Cs(r.prototype),"updated",this).call(this,e),e.has("image")&&(this.shadowRoot.getElementById("badge").style.backgroundImage=this.image?"url(".concat(this.image,")"):"")}}]}}),n.oi);customElements.define("ha-label-badge",Ps);r(14089);var xs,Ss,Os,As,Ds,js,Ts,zs,Rs,Fs,Ms,Is,Ls,Hs,Vs,Bs,$s,Ns,Us,qs,Zs,Ks,Qs,Ys,Ws,Xs,Js,Gs,ec,tc,rc,nc,ic,oc,ac,sc,cc,lc,dc,uc,fc,pc,hc,mc,yc=r(70203),vc=(r(46586),r(21050),function(e,t){(0,c.B)(e,"show-dialog",{dialogTag:"dialog-hassio-markdown",dialogImport:function(){return r.e(884).then(r.bind(r,56884))},dialogParams:t})}),bc=r(7628),gc=(0,s.Z)((function(e,t){return t.some((function(t){return e.includes(t)}))}));function wc(e){return wc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wc(e)}function kc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function Ec(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){kc(o,n,i,a,s,"next",e)}function s(e){kc(o,n,i,a,s,"throw",e)}a(void 0)}))}}function _c(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Cc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pc(e,t){return Pc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pc(e,t)}function xc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Lc(e);if(t){var i=Lc(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Sc(this,r)}}function Sc(e,t){if(t&&("object"===wc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Oc(e)}function Oc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ac(){Ac=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Tc(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n
\n
\n ','\n
\n ','\n
\n
\n
\n ','\n
\n\n
\n ',".
\n ",'\n
\n
\n
\n ','\n
\n ',"\n\n \n ',"\n \n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n
\n\n ","\n
\n
\n ","\n
\n
\n ","\n ",'\n
\n
\n
\n ',"\n
\n
\n ","\n
\n
\n
\n\n ","\n "])),this.addon.update_available?(0,n.dy)(Ss||(Ss=_c(['\n \n
\n \n ','\n
\n
\n ',"\n \n ","\n \n
\n
\n "])),this.supervisor.localize("common.update_available","count",1),this.hass,this.supervisor.localize("addon.dashboard.new_update_available","name",this.addon.name,"version",this.addon.version_latest),this.supervisor.localize("common.running_version","version",this.addon.version),"M12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22M12,7L7,12H10V16H14V12H17L12,7Z",!this.addon.available&&a?gc(this.supervisor.info.supported_arch,this.addon.arch)?(0,n.dy)(As||(As=_c(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_arch","core_version_installed",this.supervisor.core.version,"core_version_needed",a.homeassistant)):(0,n.dy)(Os||(Os=_c(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_arch")):"",this.addon.changelog?(0,n.dy)(Ds||(Ds=_c(["\n \n ","\n \n "])),this._openChangelog,this.supervisor.localize("addon.dashboard.changelog")):(0,n.dy)(js||(js=_c([""]))),this._updateClicked,this.supervisor.localize("common.update")):"",this.addon.protected?"":(0,n.dy)(Ts||(Ts=_c(['\n \n

','\n

\n
\n ','\n
\n
\n \n (',")\n
\n "])),this.addon.version,this._openChangelog,this.supervisor.localize("addon.dashboard.changelog")):(0,n.dy)(Ls||(Ls=_c(['',""])),this.addon.url,this.addon.name)),this.addon.logo?(0,n.dy)(Vs||(Vs=_c(['\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.watchdog.title"),this.supervisor.localize("addon.dashboard.option.watchdog.description"),this._watchdogToggled,this.addon.watchdog):"",this.addon.auto_update||null!==(o=this.hass.userData)&&void 0!==o&&o.showAdvanced?(0,n.dy)(Gs||(Gs=_c(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.auto_update.title"),this.supervisor.localize("addon.dashboard.option.auto_update.description"),this._autoUpdateToggled,this.addon.auto_update):"",!this._computeCannotIngressSidebar&&this.addon.ingress?(0,n.dy)(ec||(ec=_c(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.ingress_panel.title"),this.supervisor.localize("addon.dashboard.option.ingress_panel.description"),this._panelToggled,this.addon.ingress_panel):"",this._computeUsesProtectedOptions?(0,n.dy)(tc||(tc=_c(["\n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.protected.title"),this.supervisor.localize("addon.dashboard.option.protected.description"),this._protectionToggled,this.addon.protected):""):"","started"===this.addon.state?(0,n.dy)(rc||(rc=_c(["\n ','\n \n '," \n \n ",""])),this.narrow,this.supervisor.localize("addon.dashboard.hostname"),this.addon.hostname,s.map((function(e){var t;return(0,n.dy)(nc||(nc=_c(["\n \n "])),e.description,null!==(t=e.value)&&void 0!==t?t:0,e.tooltip)}))):"",this._error?(0,n.dy)(ic||(ic=_c(['',""])),this._error):"",this.addon.version||!a||this.addon.available?"":gc(this.supervisor.info.supported_arch,this.addon.arch)?(0,n.dy)(ac||(ac=_c(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_version","core_version_installed",this.supervisor.core.version,"core_version_needed",a.homeassistant)):(0,n.dy)(oc||(oc=_c(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_arch")),this.addon.version?this._computeIsRunning?(0,n.dy)(sc||(sc=_c(['\n \n \n \n ',"\n \n \n "])),this._pathWebui,this.supervisor.localize("addon.dashboard.open_web_ui")):"",this._computeShowIngressUI?(0,n.dy)(fc||(fc=_c(["\n \n ","\n \n "])),this._openIngress,this.supervisor.localize("addon.dashboard.open_web_ui")):"",this._uninstallClicked,this.supervisor.localize("addon.dashboard.uninstall"),this.addon.build?(0,n.dy)(pc||(pc=_c(['\n \n ',"\n \n "])),this.hass,this.addon.slug,this.supervisor.localize("addon.dashboard.rebuild")):""):"",this.addon.long_description?(0,n.dy)(hc||(hc=_c(['\n \n
\n '),"icon_experimental",''),"icon_deprecated",'')):this.supervisor.localize("addon.dashboard.capability.".concat(t,".description"))})}},{kind:"get",key:"_computeIsRunning",value:function(){var e;return"started"===(null===(e=this.addon)||void 0===e?void 0:e.state)}},{kind:"get",key:"_pathWebui",value:function(){return this.addon.webui&&this.addon.webui.replace("[HOST]",document.location.hostname)}},{kind:"get",key:"_computeShowWebUI",value:function(){return!this.addon.ingress&&this.addon.webui&&this._computeIsRunning}},{kind:"method",key:"_openIngress",value:function(){(0,l.c)("/hassio/ingress/".concat(this.addon.slug))}},{kind:"get",key:"_computeShowIngressUI",value:function(){return this.addon.ingress&&this._computeIsRunning}},{kind:"get",key:"_computeCannotIngressSidebar",value:function(){return!this.addon.ingress||!(0,Ha.I)(this.hass.config.version,0,92)}},{kind:"get",key:"_computeUsesProtectedOptions",value:function(){return this.addon.docker_api||this.addon.full_access||this.addon.host_pid}},{kind:"method",key:"_startOnBootToggled",value:(P=Ec(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={boot:"auto"===this.addon.boot?"manual":"auto"},e.prev=2,e.next=5,(0,u.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,f.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return P.apply(this,arguments)})},{kind:"method",key:"_watchdogToggled",value:(C=Ec(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={watchdog:!this.addon.watchdog},e.prev=2,e.next=5,(0,u.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,f.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return C.apply(this,arguments)})},{kind:"method",key:"_autoUpdateToggled",value:(_=Ec(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={auto_update:!this.addon.auto_update},e.prev=2,e.next=5,(0,u.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,f.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return _.apply(this,arguments)})},{kind:"method",key:"_protectionToggled",value:(E=Ec(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={protected:!this.addon.protected},e.prev=2,e.next=5,(0,u.NI)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"security"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,f.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return E.apply(this,arguments)})},{kind:"method",key:"_panelToggled",value:(k=Ec(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={ingress_panel:!this.addon.ingress_panel},e.prev=2,e.next=5,(0,u.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,c.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,f.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return k.apply(this,arguments)})},{kind:"method",key:"_openChangelog",value:(w=Ec(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,u.CH)(this.hass,this.addon.slug);case 3:(t=e.sent).includes("# ".concat(this.addon.version))&&t.includes("# ".concat(this.addon.version_latest))&&(r=t.split("# ".concat(this.addon.version))[0]).includes("# ".concat(this.addon.version_latest))&&(t=r),vc(this,{title:this.supervisor.localize("addon.dashboard.changelog"),content:t}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),(0,y.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.get_changelog"),text:(0,f.js)(e.t0)});case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return w.apply(this,arguments)})},{kind:"method",key:"_installClicked",value:(g=Ec(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,u.fU)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"install"},(0,c.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,y.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.install"),text:(0,f.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return g.apply(this,arguments)})},{kind:"method",key:"_stopClicked",value:(b=Ec(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,u.ow)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"stop"},(0,c.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,y.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.stop"),text:(0,f.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return b.apply(this,arguments)})},{kind:"method",key:"_restartClicked",value:(v=Ec(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,u.P$)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"stop"},(0,c.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,y.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.restart"),text:(0,f.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return v.apply(this,arguments)})},{kind:"method",key:"_updateClicked",value:(m=Ec(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,bc.z)(this,{supervisor:this.supervisor,name:this.addon.name,version:this.addon.version_latest,backupParams:{name:"addon_".concat(this.addon.slug,"_").concat(this.addon.version),addons:[this.addon.slug],homeassistant:!1},updateHandler:function(){var e=Ec(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t._updateAddon());case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 1:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{kind:"method",key:"_updateAddon",value:(d=Ec(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.V_)(this.hass,this.addon.slug);case 2:(0,c.B)(this,"supervisor-collection-refresh",{collection:"addon"}),t={success:!0,response:void 0,path:"update"},(0,c.B)(this,"hass-api-called",t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{kind:"method",key:"_startClicked",value:(i=Ec(regeneratorRuntime.mark((function e(t){var r,n,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,u.su)(this.hass,this.addon.slug);case 5:if((n=e.sent).valid){e.next=11;break}return e.next=9,(0,y.g7)(this,{title:this.supervisor.localize("addon.dashboard.action_error.start_invalid_config"),text:n.message.split(" Got ")[0],confirm:function(){return o._openConfiguration()},confirmText:this.supervisor.localize("addon.dashboard.action_error.go_to_config"),dismissText:this.supervisor.localize("common.cancel")});case 9:return r.progress=!1,e.abrupt("return");case 11:e.next=18;break;case 13:return e.prev=13,e.t0=e.catch(2),(0,y.Ys)(this,{title:"Failed to validate addon configuration",text:(0,f.js)(e.t0)}),r.progress=!1,e.abrupt("return");case 18:return e.prev=18,e.next=21,(0,u.kP)(this.hass,this.addon.slug);case 21:return e.next=23,(0,u.AD)(this.hass,this.addon.slug);case 23:this.addon=e.sent,i={success:!0,response:void 0,path:"start"},(0,c.B)(this,"hass-api-called",i),e.next=31;break;case 28:e.prev=28,e.t1=e.catch(18),(0,y.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.start"),text:(0,f.js)(e.t1)});case 31:r.progress=!1;case 32:case"end":return e.stop()}}),e,this,[[2,13],[18,28]])}))),function(e){return i.apply(this,arguments)})},{kind:"method",key:"_openConfiguration",value:function(){(0,l.c)("/hassio/addon/".concat(this.addon.slug,"/config"))}},{kind:"method",key:"_uninstallClicked",value:(r=Ec(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.next=4,(0,y.g7)(this,{title:this.addon.name,text:"Are you sure you want to uninstall this add-on?",confirmText:"uninstall add-on",dismissText:"no"});case 4:if(e.sent){e.next=8;break}return r.progress=!1,e.abrupt("return");case 8:return this._error=void 0,e.prev=9,e.next=12,(0,u.Yn)(this.hass,this.addon.slug);case 12:n={success:!0,response:void 0,path:"uninstall"},(0,c.B)(this,"hass-api-called",n),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(9),(0,y.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.uninstall"),text:(0,f.js)(e.t0)});case 19:r.progress=!1;case 20:case"end":return e.stop()}}),e,this,[[9,16]])}))),function(e){return r.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[p.Qx,h.l,(0,n.iv)(mc||(mc=_c(['\n :host {\n display: block;\n }\n ha-card {\n display: block;\n margin-bottom: 16px;\n }\n ha-card.warning {\n background-color: var(--error-color);\n color: white;\n }\n ha-card.warning .card-header {\n color: white;\n }\n ha-card.warning .card-content {\n color: white;\n }\n ha-card.warning mwc-button {\n --mdc-theme-primary: white !important;\n }\n .warning {\n color: var(--error-color);\n --mdc-theme-primary: var(--error-color);\n }\n .light-color {\n color: var(--secondary-text-color);\n }\n .addon-header {\n padding-left: 8px;\n font-size: 24px;\n color: var(--ha-card-header-color, --primary-text-color);\n }\n .addon-version {\n float: right;\n font-size: 15px;\n vertical-align: middle;\n }\n .errors {\n color: var(--error-color);\n margin-bottom: 16px;\n }\n .description {\n margin-bottom: 16px;\n }\n img.logo {\n max-width: 100%;\n max-height: 60px;\n margin: 16px 0;\n display: block;\n }\n\n ha-switch {\n display: flex;\n }\n ha-svg-icon.running {\n color: var(--success-color);\n }\n ha-svg-icon.stopped {\n color: var(--error-color);\n }\n ha-call-api-button {\n font-weight: 500;\n color: var(--primary-color);\n }\n protection-enable mwc-button {\n --mdc-theme-primary: white;\n }\n .description a {\n color: var(--primary-color);\n }\n .red {\n --ha-label-badge-color: var(--label-badge-red, #df4c1e);\n }\n .blue {\n --ha-label-badge-color: var(--label-badge-blue, #039be5);\n }\n .green {\n --ha-label-badge-color: var(--label-badge-green, #0da035);\n }\n .yellow {\n --ha-label-badge-color: var(--label-badge-yellow, #f4b400);\n }\n .security {\n margin-bottom: 16px;\n }\n .card-actions {\n justify-content: space-between;\n display: flex;\n }\n .security h3 {\n margin-bottom: 8px;\n font-weight: normal;\n }\n .security ha-label-badge {\n cursor: pointer;\n margin-right: 4px;\n --ha-label-badge-padding: 8px 0 0 0;\n }\n .changelog {\n display: contents;\n }\n .changelog-link {\n color: var(--primary-color);\n text-decoration: underline;\n cursor: pointer;\n }\n ha-markdown {\n padding: 16px;\n }\n ha-settings-row {\n padding: 0;\n height: 54px;\n width: 100%;\n }\n ha-settings-row > span[slot="description"] {\n white-space: normal;\n color: var(--secondary-text-color);\n }\n ha-settings-row[three-line] {\n height: 74px;\n }\n\n .addon-options {\n max-width: 90%;\n }\n\n .addon-container {\n display: grid;\n grid-auto-flow: column;\n grid-template-columns: 60% 40%;\n }\n\n .addon-container > div:last-of-type {\n align-self: end;\n }\n\n @media (max-width: 720px) {\n .addon-options {\n max-width: 100%;\n }\n .addon-container {\n display: block;\n }\n }\n '])))]}}]}}),n.oi);function qc(e){return qc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qc(e)}function Zc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Kc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qc(e,t){return Qc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Qc(e,t)}function Yc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Jc(e);if(t){var i=Jc(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Wc(this,r)}}function Wc(e,t){if(t&&("object"===qc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xc(e)}function Xc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jc(e){return Jc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Jc(e)}function Gc(){Gc=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!rl(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r","\n \n ",'\n
\n ','\n
\n
\n ',""])),this._error):"",this._content?(0,n.dy)(ll||(ll=fl([""])),this._content):"",this._refresh,this.supervisor.localize("common.refresh"))}},{kind:"get",static:!0,key:"styles",value:function(){return[p.Qx,h.l,(0,n.iv)(dl||(dl=fl(["\n :host,\n ha-card {\n display: block;\n }\n "])))]}},{kind:"method",key:"_loadData",value:(i=hl(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,e.prev=1,e.next=4,(0,u.kr)(this.hass,this.addon.slug);case 4:this._content=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this._error=this.supervisor.localize("addon.logs.get_logs","error",(0,f.js)(e.t0));case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return i.apply(this,arguments)})},{kind:"method",key:"_refresh",value:(r=hl(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._loadData();case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}]}}),n.oi);function zl(e){return zl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zl(e)}function Rl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Fl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ml(e,t){return Ml=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ml(e,t)}function Il(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Vl(e);if(t){var i=Vl(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ll(this,r)}}function Ll(e,t){if(t&&("object"===zl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Hl(e)}function Hl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vl(e){return Vl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vl(e)}function Bl(){Bl=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Ul(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])),this._error);if(!this.addon)return(0,n.dy)(ud||(ud=vd([""])));var e=[{translationKey:"addon.panel.info",path:"/hassio/addon/".concat(this.addon.slug,"/info"),iconPath:"M13.5,4A1.5,1.5 0 0,0 12,5.5A1.5,1.5 0 0,0 13.5,7A1.5,1.5 0 0,0 15,5.5A1.5,1.5 0 0,0 13.5,4M13.14,8.77C11.95,8.87 8.7,11.46 8.7,11.46C8.5,11.61 8.56,11.6 8.72,11.88C8.88,12.15 8.86,12.17 9.05,12.04C9.25,11.91 9.58,11.7 10.13,11.36C12.25,10 10.47,13.14 9.56,18.43C9.2,21.05 11.56,19.7 12.17,19.3C12.77,18.91 14.38,17.8 14.54,17.69C14.76,17.54 14.6,17.42 14.43,17.17C14.31,17 14.19,17.12 14.19,17.12C13.54,17.55 12.35,18.45 12.19,17.88C12,17.31 13.22,13.4 13.89,10.71C14,10.07 14.3,8.67 13.14,8.77Z"}];this.addon.documentation&&e.push({translationKey:"addon.panel.documentation",path:"/hassio/addon/".concat(this.addon.slug,"/documentation"),iconPath:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"}),this.addon.version&&e.push({translationKey:"addon.panel.configuration",path:"/hassio/addon/".concat(this.addon.slug,"/config"),iconPath:"M15.9,18.45C17.25,18.45 18.35,17.35 18.35,16C18.35,14.65 17.25,13.55 15.9,13.55C14.54,13.55 13.45,14.65 13.45,16C13.45,17.35 14.54,18.45 15.9,18.45M21.1,16.68L22.58,17.84C22.71,17.95 22.75,18.13 22.66,18.29L21.26,20.71C21.17,20.86 21,20.92 20.83,20.86L19.09,20.16C18.73,20.44 18.33,20.67 17.91,20.85L17.64,22.7C17.62,22.87 17.47,23 17.3,23H14.5C14.32,23 14.18,22.87 14.15,22.7L13.89,20.85C13.46,20.67 13.07,20.44 12.71,20.16L10.96,20.86C10.81,20.92 10.62,20.86 10.54,20.71L9.14,18.29C9.05,18.13 9.09,17.95 9.22,17.84L10.7,16.68L10.65,16L10.7,15.31L9.22,14.16C9.09,14.05 9.05,13.86 9.14,13.71L10.54,11.29C10.62,11.13 10.81,11.07 10.96,11.13L12.71,11.84C13.07,11.56 13.46,11.32 13.89,11.15L14.15,9.29C14.18,9.13 14.32,9 14.5,9H17.3C17.47,9 17.62,9.13 17.64,9.29L17.91,11.15C18.33,11.32 18.73,11.56 19.09,11.84L20.83,11.13C21,11.07 21.17,11.13 21.26,11.29L22.66,13.71C22.75,13.86 22.71,14.05 22.58,14.16L21.1,15.31L21.15,16L21.1,16.68M6.69,8.07C7.56,8.07 8.26,7.37 8.26,6.5C8.26,5.63 7.56,4.92 6.69,4.92A1.58,1.58 0 0,0 5.11,6.5C5.11,7.37 5.82,8.07 6.69,8.07M10.03,6.94L11,7.68C11.07,7.75 11.09,7.87 11.03,7.97L10.13,9.53C10.08,9.63 9.96,9.67 9.86,9.63L8.74,9.18L8,9.62L7.81,10.81C7.79,10.92 7.7,11 7.59,11H5.79C5.67,11 5.58,10.92 5.56,10.81L5.4,9.62L4.64,9.18L3.5,9.63C3.41,9.67 3.3,9.63 3.24,9.53L2.34,7.97C2.28,7.87 2.31,7.75 2.39,7.68L3.34,6.94L3.31,6.5L3.34,6.06L2.39,5.32C2.31,5.25 2.28,5.13 2.34,5.03L3.24,3.47C3.3,3.37 3.41,3.33 3.5,3.37L4.63,3.82L5.4,3.38L5.56,2.19C5.58,2.08 5.67,2 5.79,2H7.59C7.7,2 7.79,2.08 7.81,2.19L8,3.38L8.74,3.82L9.86,3.37C9.96,3.33 10.08,3.37 10.13,3.47L11.03,5.03C11.09,5.13 11.07,5.25 11,5.32L10.03,6.06L10.06,6.5L10.03,6.94Z"},{translationKey:"addon.panel.log",path:"/hassio/addon/".concat(this.addon.slug,"/logs"),iconPath:"M18 7C16.9 7 16 7.9 16 9V15C16 16.1 16.9 17 18 17H20C21.1 17 22 16.1 22 15V11H20V15H18V9H22V7H18M2 7V17H8V15H4V7H2M11 7C9.9 7 9 7.9 9 9V15C9 16.1 9.9 17 11 17H13C14.1 17 15 16.1 15 15V9C15 7.9 14.1 7 13 7H11M11 9H13V15H11V9Z"});var t=this._computeTail(this.route);return(0,n.dy)(fd||(fd=vd(["\n ',"\n \n \n "])),this.hass,this.supervisor.localize,this.narrow,this.addon.version?"/hassio/dashboard":"/hassio/store",t,e,this.addon.name,t,this.narrow,this.hass,this.supervisor,this.addon)}},{kind:"get",static:!0,key:"styles",value:function(){return[p.Qx,h.l,(0,n.iv)(pd||(pd=vd(["\n :host {\n color: var(--primary-text-color);\n }\n .content {\n padding: 24px 0 32px;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n hassio-addon-info,\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config {\n margin-bottom: 24px;\n width: 600px;\n }\n hassio-addon-logs {\n max-width: calc(100% - 8px);\n min-width: 600px;\n }\n @media only screen and (max-width: 600px) {\n hassio-addon-info,\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config,\n hassio-addon-logs {\n max-width: 100%;\n min-width: 100%;\n }\n }\n "])))]}},{kind:"method",key:"firstUpdated",value:(m=yd(regeneratorRuntime.mark((function e(){var t,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==this.route.path){e.next=8;break}if(!(t=(0,d.io)("addon"))){e.next=8;break}return e.next=5,(0,u.yt)(this.hass);case 5:e.sent.addons.some((function(e){return e.slug===t}))?(0,l.c)("/hassio/addon/".concat(t),{replace:!0}):this._error=this.supervisor.localize("my.error_addon_not_found");case 8:this.addEventListener("hass-api-called",(function(e){return r._apiCalled(e)}));case 9:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{kind:"method",key:"_apiCalled",value:(i=yd(regeneratorRuntime.mark((function e(t){var r,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.detail.success){e.next=2;break}return e.abrupt("return");case 2:if((n=null===(r=t.detail.path)||void 0===r?void 0:r.split("/"))&&0!==n.length){e.next=5;break}return e.abrupt("return");case 5:if(i=n[n.length-1],["uninstall","install","update","start","stop"].includes(i)&&(0,c.B)(this,"supervisor-collection-refresh",{collection:"supervisor"}),"uninstall"!==i){e.next=11;break}window.history.back(),e.next=13;break;case 11:return e.next=13,this._routeDataChanged();case 13:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{kind:"method",key:"updated",value:function(e){e.has("route")&&!this.addon&&this._routeDataChanged()}},{kind:"method",key:"_routeDataChanged",value:(r=yd(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.route.path.split("/")[1]){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,(0,u.AD)(this.hass,t);case 6:r=e.sent,this.addon=r,e.next=14;break;case 10:e.prev=10,e.t0=e.catch(3),this._error="Error fetching addon info: ".concat((0,f.js)(e.t0)),this.addon=void 0;case 14:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(){return r.apply(this,arguments)})}]}}),n.oi)}}]); \ No newline at end of file diff --git a/supervisor/api/panel/frontend_es5/37f808e6.js.gz b/supervisor/api/panel/frontend_es5/37f808e6.js.gz new file mode 100644 index 000000000..320a4507e Binary files /dev/null and b/supervisor/api/panel/frontend_es5/37f808e6.js.gz differ diff --git a/supervisor/api/panel/frontend_es5/b3d3e583.js.gz b/supervisor/api/panel/frontend_es5/b3d3e583.js.gz deleted file mode 100644 index be3839f28..000000000 Binary files a/supervisor/api/panel/frontend_es5/b3d3e583.js.gz and /dev/null differ diff --git a/supervisor/api/panel/frontend_es5/entrypoint.4bb3aeeb.js b/supervisor/api/panel/frontend_es5/entrypoint.4bb3aeeb.js new file mode 100644 index 000000000..cf1857a50 --- /dev/null +++ b/supervisor/api/panel/frontend_es5/entrypoint.4bb3aeeb.js @@ -0,0 +1,2 @@ +/*! For license information please see entrypoint.4bb3aeeb.js.LICENSE.txt */ +!function(){var e,t,r,n,i={44669:function(e,t,r){"use strict";var n,i,o=r(7599),a=r(26767),s=r(5701);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}function p(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function y(){y=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!g(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n
','
\n
\n ',"\n ","\n
\n
\n "])),this.showTopbar?(0,c.dy)(i||(i=f(['
'])),this.topbarClass):"",this.iconImage?(0,c.dy)(o||(o=f(['\n
\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n \n \n \n \n '])),e)}},{kind:"get",static:!0,key:"styles",value:function(){return(0,o.iv)(i||(i=d(["\n rect {\n height: 100%;\n }\n rect:first-child {\n width: 100%;\n fill: var(--ha-bar-background-color, var(--secondary-background-color));\n }\n rect:last-child {\n fill: var(--ha-bar-primary-color, var(--primary-color));\n rx: var(--ha-bar-border-radius, 4px);\n }\n svg {\n border-radius: var(--ha-bar-border-radius, 4px);\n height: 12px;\n width: 100%;\n }\n "])))}}]}}),o.oi),r(14089);function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function O(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){return M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},M(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=I(e);if(t){var i=I(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return D(this,r)}}function D(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return L(e)}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function j(){j=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!F(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',' \n
\n '," % \n \n
\n "])),this.description,null!==(e=this.tooltip)&&void 0!==e?e:"",t,(0,c.$)({"target-warning":t>50,"target-critical":t>85}),this.value)}},{kind:"get",static:!0,key:"styles",value:function(){return(0,o.iv)(T||(T=O(['\n ha-settings-row {\n padding: 0;\n height: 54px;\n width: 100%;\n }\n ha-settings-row > div[slot="description"] {\n white-space: normal;\n color: var(--secondary-text-color);\n display: flex;\n justify-content: space-between;\n }\n ha-bar {\n --ha-bar-primary-color: var(\n --hassio-bar-ok-color,\n var(--success-color)\n );\n }\n .target-warning {\n --ha-bar-primary-color: var(\n --hassio-bar-warning-color,\n var(--warning-color)\n );\n }\n .target-critical {\n --ha-bar-primary-color: var(\n --hassio-bar-critical-color,\n var(--error-color)\n );\n }\n .value {\n width: 48px;\n padding-right: 4px;\n flex-shrink: 0;\n }\n '])))}}]}}),o.oi)},35200:function(e,t,r){"use strict";r.r(t),r.d(t,{DialogHassioBackupUpload:function(){return ke}});var n,i,o,a,s,c,l=r(7599),u=r(26767),d=r(5701),f=r(17717),p=r(47181),h=(r(90806),r(11654)),m=(r(58856),r(98121),r(34552),r(36280),r(67352)),y=r(228);r(52039);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function b(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D(e);if(t){var i=D(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return k(this,r)}}function k(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return E(e)}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(){x=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!T(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r']))):(0,l.dy)(o||(o=b(['\n
\n '])),this._handleInteraction,this._handleInteraction,this._handleInteraction,this._handleInteraction,this._handleInteraction,this._handleTransitionEnd)}},{key:"createAdapter",value:function(){var e=this;return Object.assign(Object.assign({},(0,a.q)(this.mdcRoot)),{eventTargetMatchesSelector:function(e,t){return(0,he.wB)(e,t)},addScrollAreaClass:function(t){return e.scrollAreaElement.classList.add(t)},setScrollAreaStyleProperty:function(t,r){return e.scrollAreaElement.style.setProperty(t,r)},setScrollContentStyleProperty:function(t,r){return e.scrollContentElement.style.setProperty(t,r)},getScrollContentStyleValue:function(t){return window.getComputedStyle(e.scrollContentElement).getPropertyValue(t)},setScrollAreaScrollLeft:function(t){return e.scrollAreaElement.scrollLeft=t},getScrollAreaScrollLeft:function(){return e.scrollAreaElement.scrollLeft},getScrollContentOffsetWidth:function(){return e.scrollContentElement.offsetWidth},getScrollAreaOffsetWidth:function(){return e.scrollAreaElement.offsetWidth},computeScrollAreaClientRect:function(){return e.scrollAreaElement.getBoundingClientRect()},computeScrollContentClientRect:function(){return e.scrollContentElement.getBoundingClientRect()},computeHorizontalScrollbarHeight:function(){return-1===e._scrollbarHeight&&(e.scrollAreaElement.style.overflowX="scroll",e._scrollbarHeight=e.scrollAreaElement.offsetHeight-e.scrollAreaElement.clientHeight,e.scrollAreaElement.style.overflowX=""),e._scrollbarHeight}})}},{key:"getScrollPosition",value:function(){return this.mdcFoundation.getScrollPosition()}},{key:"getScrollContentWidth",value:function(){return this.scrollContentElement.offsetWidth}},{key:"incrementScrollPosition",value:function(e){this.mdcFoundation.incrementScroll(e)}},{key:"scrollToPosition",value:function(e){this.mdcFoundation.scrollTo(e)}}],r&&xe(t.prototype,r),n&&xe(t,n),s}(a.H);(0,i.__decorate)([(0,o.IO)(".mdc-tab-scroller")],Pe.prototype,"mdcRoot",void 0),(0,i.__decorate)([(0,o.IO)(".mdc-tab-scroller__scroll-area")],Pe.prototype,"scrollAreaElement",void 0),(0,i.__decorate)([(0,o.IO)(".mdc-tab-scroller__scroll-content")],Pe.prototype,"scrollContentElement",void 0),(0,i.__decorate)([(0,o.hO)({passive:!0})],Pe.prototype,"_handleInteraction",null);var Me=(0,o.iv)(Oe||(Oe=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".mdc-tab-scroller{overflow-y:hidden}.mdc-tab-scroller.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-scroller__test{position:absolute;top:-9999px;width:100px;height:100px;overflow-x:scroll}.mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:touch;display:flex;overflow-x:hidden}.mdc-tab-scroller__scroll-area::-webkit-scrollbar,.mdc-tab-scroller__test::-webkit-scrollbar{display:none}.mdc-tab-scroller__scroll-area--scroll{overflow-x:scroll}.mdc-tab-scroller__scroll-content{position:relative;display:flex;flex:1 0 auto;transform:none;will-change:transform}.mdc-tab-scroller--align-start .mdc-tab-scroller__scroll-content{justify-content:flex-start}.mdc-tab-scroller--align-end .mdc-tab-scroller__scroll-content{justify-content:flex-end}.mdc-tab-scroller--align-center .mdc-tab-scroller__scroll-content{justify-content:center}.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:auto}:host{display:flex}.mdc-tab-scroller{flex:1}"])));function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}function De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Le(e,t){return Le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Le(e,t)}function Ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ze(e);if(t){var i=ze(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return je(this,r)}}function je(e,t){if(t&&("object"===Re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ze(e){return ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ze(e)}var Ne=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Le(e,t)}(r,e);var t=Ie(r);function r(){return De(this,r),t.apply(this,arguments)}return r}(Pe);Ne.styles=[Me],Ne=(0,i.__decorate)([(0,o.Mo)("mwc-tab-scroller")],Ne);var Fe={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_ACTIVATED_EVENT:"MDCTabBar:activated",TAB_SCROLLER_SELECTOR:".mdc-tab-scroller",TAB_SELECTOR:".mdc-tab"},Be={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32},He=new Set;He.add(Fe.ARROW_LEFT_KEY),He.add(Fe.ARROW_RIGHT_KEY),He.add(Fe.END_KEY),He.add(Fe.HOME_KEY),He.add(Fe.ENTER_KEY),He.add(Fe.SPACE_KEY);var Ze=new Map;Ze.set(Be.ARROW_LEFT_KEYCODE,Fe.ARROW_LEFT_KEY),Ze.set(Be.ARROW_RIGHT_KEYCODE,Fe.ARROW_RIGHT_KEY),Ze.set(Be.END_KEYCODE,Fe.END_KEY),Ze.set(Be.HOME_KEYCODE,Fe.HOME_KEY),Ze.set(Be.ENTER_KEYCODE,Fe.ENTER_KEY),Ze.set(Be.SPACE_KEYCODE,Fe.SPACE_KEY);var Ue,Ge=function(e){function t(r){var n=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),r))||this;return n.useAutomaticActivation=!1,n}return(0,i.__extends)(t,e),Object.defineProperty(t,"strings",{get:function(){return Fe},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return Be},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{scrollTo:function(){},incrementScroll:function(){},getScrollPosition:function(){return 0},getScrollContentWidth:function(){return 0},getOffsetWidth:function(){return 0},isRTL:function(){return!1},setActiveTab:function(){},activateTabAtIndex:function(){},deactivateTabAtIndex:function(){},focusTabAtIndex:function(){},getTabIndicatorClientRectAtIndex:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabDimensionsAtIndex:function(){return{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){return-1},getFocusedTabIndex:function(){return-1},getIndexOfTabById:function(){return-1},getTabListLength:function(){return 0},notifyTabActivated:function(){}}},enumerable:!1,configurable:!0}),t.prototype.setUseAutomaticActivation=function(e){this.useAutomaticActivation=e},t.prototype.activateTab=function(e){var t,r=this.adapter.getPreviousActiveTabIndex();this.indexIsInRange(e)&&e!==r&&(-1!==r&&(this.adapter.deactivateTabAtIndex(r),t=this.adapter.getTabIndicatorClientRectAtIndex(r)),this.adapter.activateTabAtIndex(e,t),this.scrollIntoView(e),this.adapter.notifyTabActivated(e))},t.prototype.handleKeyDown=function(e){var t=this.getKeyFromEvent(e);if(void 0!==t)if(this.isActivationKey(t)||e.preventDefault(),this.useAutomaticActivation){if(this.isActivationKey(t))return;var r=this.determineTargetFromKey(this.adapter.getPreviousActiveTabIndex(),t);this.adapter.setActiveTab(r),this.scrollIntoView(r)}else{var n=this.adapter.getFocusedTabIndex();if(this.isActivationKey(t))this.adapter.setActiveTab(n);else{r=this.determineTargetFromKey(n,t);this.adapter.focusTabAtIndex(r),this.scrollIntoView(r)}}},t.prototype.handleTabInteraction=function(e){this.adapter.setActiveTab(this.adapter.getIndexOfTabById(e.detail.tabId))},t.prototype.scrollIntoView=function(e){this.indexIsInRange(e)&&(0!==e?e!==this.adapter.getTabListLength()-1?this.isRTL()?this.scrollIntoViewImplRTL(e):this.scrollIntoViewImpl(e):this.adapter.scrollTo(this.adapter.getScrollContentWidth()):this.adapter.scrollTo(0))},t.prototype.determineTargetFromKey=function(e,t){var r=this.isRTL(),n=this.adapter.getTabListLength()-1,i=e;return t===Fe.END_KEY?i=n:t===Fe.ARROW_LEFT_KEY&&!r||t===Fe.ARROW_RIGHT_KEY&&r?i-=1:t===Fe.ARROW_RIGHT_KEY&&!r||t===Fe.ARROW_LEFT_KEY&&r?i+=1:i=0,i<0?i=n:i>n&&(i=0),i},t.prototype.calculateScrollIncrement=function(e,t,r,n){var i=this.adapter.getTabDimensionsAtIndex(t),o=i.contentLeft-r-n,a=i.contentRight-r-Be.EXTRA_SCROLL_AMOUNT,s=o+Be.EXTRA_SCROLL_AMOUNT;return te?Math.max(s,0):Math.min(c,0)},t.prototype.findAdjacentTabIndexClosestToEdge=function(e,t,r,n){var i=t.rootLeft-r,o=t.rootRight-r-n,a=i+o;return i<0||a<0?e-1:o>0||a>0?e+1:-1},t.prototype.findAdjacentTabIndexClosestToEdgeRTL=function(e,t,r,n,i){var o=i-t.rootLeft-n-r,a=i-t.rootRight-r,s=o+a;return o>0||s>0?e+1:a<0||s<0?e-1:-1},t.prototype.getKeyFromEvent=function(e){return He.has(e.key)?e.key:Ze.get(e.keyCode)},t.prototype.isActivationKey=function(e){return e===Fe.SPACE_KEY||e===Fe.ENTER_KEY},t.prototype.indexIsInRange=function(e){return e>=0&&e\n \n
\n '])),this._handleTabInteraction,this._handleKeydown)}},{key:"_getTabs",value:function(){return this.tabsSlot.assignedNodes({flatten:!0}).filter((function(e){return e instanceof ie}))}},{key:"_getTab",value:function(e){return this._getTabs()[e]}},{key:"createAdapter",value:function(){var e=this;return{scrollTo:function(t){return e.scrollerElement.scrollToPosition(t)},incrementScroll:function(t){return e.scrollerElement.incrementScrollPosition(t)},getScrollPosition:function(){return e.scrollerElement.getScrollPosition()},getScrollContentWidth:function(){return e.scrollerElement.getScrollContentWidth()},getOffsetWidth:function(){return e.mdcRoot.offsetWidth},isRTL:function(){return"rtl"===window.getComputedStyle(e.mdcRoot).getPropertyValue("direction")},setActiveTab:function(t){return e.mdcFoundation.activateTab(t)},activateTabAtIndex:function(t,r){var n=e._getTab(t);void 0!==n&&n.activate(r),e._previousActiveIndex=t},deactivateTabAtIndex:function(t){var r=e._getTab(t);void 0!==r&&r.deactivate()},focusTabAtIndex:function(t){var r=e._getTab(t);void 0!==r&&r.focus()},getTabIndicatorClientRectAtIndex:function(t){var r=e._getTab(t);return void 0!==r?r.computeIndicatorClientRect():new DOMRect},getTabDimensionsAtIndex:function(t){var r=e._getTab(t);return void 0!==r?r.computeDimensions():{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){return e._previousActiveIndex},getFocusedTabIndex:function(){var t=e._getTabs(),r=e.getRootNode().activeElement;return t.indexOf(r)},getIndexOfTabById:function(t){for(var r=e._getTabs(),n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ",":\n \n \n ",":\n ","\n \n "])),e.hass.localize("ui.components.related-items.integration"),"/config/integrations#config_entry=".concat(t),e._navigateAwayClose,e.hass.localize("component.".concat(r.domain,".title")),r.title):""})):"",this._related.device&&this._devices?this._related.device.map((function(t){var r=e._devices.find((function(e){return e.id===t}));return r?(0,dt.dy)(nr||(nr=gr(["\n

\n ",':\n

\n \n \n ',"\n \n \n "])),e._openMoreInfo,t,r.attributes.friendly_name||t):""}))):"",this._related.group?(0,dt.dy)(sr||(sr=gr(["\n

",":

\n
    \n ","\n
\n "])),this.hass.localize("ui.components.related-items.group"),this._related.group.map((function(t){var r=e.hass.states[t];return r?(0,dt.dy)(cr||(cr=gr(['\n
  • \n \n \n \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);rt.primary?-1:1})),this._interface=Object.assign({},this._interfaces[this._curTabIndex]),e.next=8,this.updateComplete;case 8:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{kind:"method",key:"closeDialog",value:function(){this._params=void 0,this._processing=!1,(0,Tt.B)(this,"dialog-closed",{dialog:this.localName})}},{kind:"method",key:"render",value:function(){return this._params&&this._interface?(0,dt.dy)(Nr||(Nr=an(["\n \n \n \n ','\n \n \n \n ',"\n ","\n ",'\n \n
    \n \n ','\n \n ']))):this.supervisor.localize("dialog.network.scan_ap"),this._accessPoints&&this._accessPoints.accesspoints&&0!==this._accessPoints.accesspoints.length?(0,dt.dy)(Kr||(Kr=an(["\n \n ","\n \n "])),this._accessPoints.accesspoints.filter((function(e){return e.ssid})).map((function(e){var t;return(0,dt.dy)(Vr||(Vr=an(["\n \n ",'\n \n '," - Strength: ","\n \n \n "])),o._selectAP,e.ssid===(null===(t=o._wifiConfiguration)||void 0===t?void 0:t.ssid),e,e.ssid,e.mac,e.signal)}))):"",this._wifiConfiguration?(0,dt.dy)($r||($r=an(['\n
    \n \n ',"\n "])),this.supervisor.localize("dialog.network.warning")):"",this.supervisor.localize("common.cancel"),this.closeDialog,this._updateNetwork,!this._dirty,this._processing?(0,dt.dy)(qr||(qr=an(['\n ']))):this.supervisor.localize("common.save"))}},{kind:"method",key:"_selectAP",value:function(e){this._wifiConfiguration=e.currentTarget.ap,this._dirty=!0}},{kind:"method",key:"_scanForAP",value:(i=cn(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._interface){e.next=2;break}return e.abrupt("return");case 2:return this._scanning=!0,e.prev=3,e.next=6,(0,tn.Ne)(this.hass,this._interface.interface);case 6:this._accessPoints=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),(0,rn.Ys)(this,{title:"Failed to scan for accesspoints",text:(0,en.js)(e.t0)});case 12:return e.prev=12,this._scanning=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[3,9,12,15]])}))),function(){return i.apply(this,arguments)})},{kind:"method",key:"_renderIPConfiguration",value:function(e){var t,r,n;return(0,dt.dy)(Xr||(Xr=an(["\n \n \n \n \n \n \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ',"\n
    \n \n "])),this._opened,this.closeDialog,(0,s.i)(this.hass,this._addingRegistry?this.supervisor.localize("dialog.registries.title_add"):this.supervisor.localize("dialog.registries.title_manage")),this._addingRegistry?(0,n.dy)(p||(p=A(["\n \n\n \n ','\n ',":\n ","\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var u=0;u=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n ",'\n
    \n ','\n
    \n \n
    \n
    \n ',""])),this._error):"",l.length?l.map((function(e){return(0,u.dy)(a||(a=x(['\n \n \n
    ',"
    \n
    ","
    \n
    ","
    \n
    \n \n \n \n
    \n "])),e.name,e.maintainer,e.url,e.slug,r._dialogParams.supervisor.localize("dialog.repositories.remove"),r._removeRepository,"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z")})):(0,u.dy)(s||(s=x([" No repositories "]))),this._dialogParams.url||"",this._dialogParams.supervisor.localize("dialog.repositories.add"),this._handleKeyAdd,this._addRepository,this._processing?(0,u.dy)(c||(c=x(['']))):this._dialogParams.supervisor.localize("dialog.repositories.add"),this.closeDialog,null===(t=this._dialogParams)||void 0===t?void 0:t.supervisor.localize("common.close"))}},{kind:"get",static:!0,key:"styles",value:function(){return[k.Qx,k.yu,(0,u.iv)(l||(l=x(["\n ha-dialog.button-left {\n --justify-action-buttons: flex-start;\n }\n paper-icon-item {\n cursor: pointer;\n }\n .form {\n color: var(--primary-text-color);\n }\n .option {\n border: 1px solid var(--divider-color);\n border-radius: 4px;\n margin-top: 4px;\n }\n mwc-button {\n margin-left: 8px;\n }\n ha-circular-progress {\n display: block;\n margin: 32px;\n text-align: center;\n }\n "])))]}},{kind:"method",key:"focus",value:function(){var e=this;this.updateComplete.then((function(){var t,r;return null===(t=e.shadowRoot)||void 0===t||null===(r=t.querySelector("[dialogInitialFocus]"))||void 0===r?void 0:r.focus()}))}},{kind:"method",key:"_handleKeyAdd",value:function(e){e.stopPropagation(),13===e.keyCode&&this._addRepository()}},{kind:"method",key:"_loadData",value:(E=A(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,g.yt)(this.hass);case 3:t=e.sent,this._repositories=t.repositories,(0,y.B)(this,"supervisor-collection-refresh",{collection:"addon"}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),this._error=(0,_.js)(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return E.apply(this,arguments)})},{kind:"method",key:"_addRepository",value:(d=A(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t=this._optionInput)&&t.value){e.next=3;break}return e.abrupt("return");case 3:return this._processing=!0,r=this._filteredRepositories(this._repositories),(n=r.map((function(e){return e.source}))).push(t.value),e.prev=7,e.next=10,(0,w.jP)(this.hass,{addons_repositories:n});case 10:return e.next=12,this._loadData();case 12:t.value="",e.next=18;break;case 15:e.prev=15,e.t0=e.catch(7),this._error=(0,_.js)(e.t0);case 18:this._processing=!1;case 19:case"end":return e.stop()}}),e,this,[[7,15]])}))),function(){return d.apply(this,arguments)})},{kind:"method",key:"_removeRepository",value:(r=A(regeneratorRuntime.mark((function e(t){var r,n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.currentTarget.slug,n=this._filteredRepositories(this._repositories),i=n.find((function(e){return e.slug===r}))){e.next=5;break}return e.abrupt("return");case 5:return o=n.map((function(e){return e.source})).filter((function(e){return e!==i.source})),e.prev=6,e.next=9,(0,w.jP)(this.hass,{addons_repositories:o});case 9:return e.next=11,this._loadData();case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),this._error=(0,_.js)(e.t0);case 16:case"end":return e.stop()}}),e,this,[[6,13]])}))),function(e){return r.apply(this,arguments)})}]}}),u.oi)},7628:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});var n=r(47181),i=function(e,t){(0,n.B)(e,"show-dialog",{dialogTag:"dialog-supervisor-update",dialogImport:function(){return r.e(511).then(r.bind(r,46511))},dialogParams:t})}},55677:function(e,t,r){"use strict";var n;r.d(t,{l:function(){return a}});var i,o,a=(0,r(7599).iv)(n||(i=["\n .content {\n margin: 8px;\n }\n h1,\n .description,\n .card-content {\n color: var(--primary-text-color);\n }\n h1 {\n font-size: 2em;\n margin-bottom: 8px;\n font-family: var(--paper-font-headline_-_font-family);\n -webkit-font-smoothing: var(--paper-font-headline_-_-webkit-font-smoothing);\n font-size: var(--paper-font-headline_-_font-size);\n font-weight: var(--paper-font-headline_-_font-weight);\n letter-spacing: var(--paper-font-headline_-_letter-spacing);\n line-height: var(--paper-font-headline_-_line-height);\n padding-left: 8px;\n }\n .description {\n margin-top: 4px;\n padding-left: 8px;\n }\n .card-group {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));\n grid-gap: 8px;\n }\n @media screen and (min-width: 640px) {\n .card-group {\n grid-template-columns: repeat(auto-fit, minmax(300px, 0.5fr));\n }\n }\n @media screen and (min-width: 1020px) {\n .card-group {\n grid-template-columns: repeat(auto-fit, minmax(300px, 0.333fr));\n }\n }\n @media screen and (min-width: 1300px) {\n .card-group {\n grid-template-columns: repeat(auto-fit, minmax(300px, 0.25fr));\n }\n }\n ha-call-api-button {\n font-weight: 500;\n color: var(--primary-color);\n }\n .error {\n color: var(--error-color);\n margin-top: 16px;\n }\n"],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}}))))},71160:function(e,t,r){"use strict";function n(e){return Intl.getCanonicalLocales(e)}function i(e,t){var r=t.tzData,n=t.uppercaseLinks,i=e.toUpperCase(),o=Object.keys(r).reduce((function(e,t){return e[t.toUpperCase()]=t,e}),{}),a=n[i]||o[i];return"Etc/UTC"===a||"Etc/GMT"===a?"UTC":a}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e){if("symbol"===o(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function s(e){if(void 0===e)return NaN;if(null===e)return 0;if("boolean"==typeof e)return e?1:0;if("number"==typeof e)return e;if("symbol"===o(e)||"bigint"==typeof e)throw new TypeError("Cannot convert symbol/bigint to number");return Number(e)}function c(e){return isFinite(e)?Math.abs(e)>8640000000000001?NaN:function(e){var t=s(e);if(isNaN(t)||u(t,-0))return 0;if(isFinite(t))return t;var r=Math.floor(Math.abs(t));return t<0&&(r=-r),u(r,-0)?0:r}(e):NaN}function l(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)}function u(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return new Array(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function p(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"===o(e)?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":"symbol"===o(e)?"Symbol":"bigint"==typeof e?"BigInt":void 0}r.r(t),r.d(t,{ArrayCreate:function(){return d},CanonicalizeLocaleList:function(){return n},CanonicalizeTimeZoneName:function(){return i},CoerceOptionsToObject:function(){return R},ComputeExponent:function(){return ae},ComputeExponentForMagnitude:function(){return re},CurrencyDigits:function(){return se},DateFromTime:function(){return S},Day:function(){return y},DayFromYear:function(){return b},DayWithinYear:function(){return k},DaysInYear:function(){return w},FormatNumericToParts:function(){return be},FormatNumericToString:function(){return oe},GetNumberOption:function(){return L},GetOption:function(){return j},GetOptionsObject:function(){return N},HasOwnProperty:function(){return f},HourFromTime:function(){return T},InLeapYear:function(){return E},InitializeNumberFormat:function(){return ke},IsSanctionedSimpleUnitIdentifier:function(){return Z},IsValidTimeZoneName:function(){return U},IsWellFormedCurrencyCode:function(){return K},IsWellFormedUnitIdentifier:function(){return V},MinFromTime:function(){return C},MonthFromTime:function(){return x},OrdinaryHasInstance:function(){return P},PartitionNumberPattern:function(){return ve},PartitionPattern:function(){return Ee},RangePatternType:function(){return Se},SANCTIONED_UNITS:function(){return F},SIMPLE_UNITS:function(){return H},SameValue:function(){return u},SecFromTime:function(){return O},SetNumberFormatDigitOptions:function(){return we},SetNumberFormatUnitOptions:function(){return _e},SupportedLocales:function(){return xe},TimeClip:function(){return c},TimeFromYear:function(){return g},ToNumber:function(){return s},ToObject:function(){return l},ToRawFixed:function(){return ie},ToRawPrecision:function(){return ne},ToString:function(){return a},Type:function(){return p},WeekDay:function(){return v},YearFromTime:function(){return _},_formatToParts:function(){return pe},defineProperty:function(){return ee},getInternalSlot:function(){return X},getMagnitude:function(){return $},getMultiInternalSlots:function(){return J},invariant:function(){return te},isLiteralPart:function(){return Q},isMissingLocaleDataError:function(){return Te},msFromTime:function(){return M},removeUnitNamespace:function(){return B},setInternalSlot:function(){return Y},setMultiInternalSlots:function(){return q}});var h=864e5;function m(e,t){return e-Math.floor(e/t)*t}function y(e){return Math.floor(e/h)}function v(e){return m(y(e)+4,7)}function b(e){return Date.UTC(e,0)/h}function g(e){return Date.UTC(e,0)}function _(e){return new Date(e).getUTCFullYear()}function w(e){return e%4!=0?365:e%100!=0?366:e%400!=0?365:366}function k(e){return y(e)-b(_(e))}function E(e){return 365===w(_(e))?0:1}function x(e){var t=k(e),r=E(e);if(t>=0&&t<31)return 0;if(t<59+r)return 1;if(t<90+r)return 2;if(t<120+r)return 3;if(t<151+r)return 4;if(t<181+r)return 5;if(t<212+r)return 6;if(t<243+r)return 7;if(t<273+r)return 8;if(t<304+r)return 9;if(t<334+r)return 10;if(t<365+r)return 11;throw new Error("Invalid time")}function S(e){var t=k(e),r=x(e),n=E(e);if(0===r)return t+1;if(1===r)return t-30;if(2===r)return t-58-n;if(3===r)return t-89-n;if(4===r)return t-119-n;if(5===r)return t-150-n;if(6===r)return t-180-n;if(7===r)return t-211-n;if(8===r)return t-242-n;if(9===r)return t-272-n;if(10===r)return t-303-n;if(11===r)return t-333-n;throw new Error("Invalid time")}var A=1e3;function T(e){return m(Math.floor(e/36e5),24)}function C(e){return m(Math.floor(e/6e4),60)}function O(e){return m(Math.floor(e/A),60)}function P(e,t,r){if("function"!=typeof e)return!1;if(null==r?void 0:r.boundTargetFunction)return t instanceof(null==r?void 0:r.boundTargetFunction);if("object"!==o(t))return!1;var n=e.prototype;if("object"!==o(n))throw new TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");return Object.prototype.isPrototypeOf.call(n,t)}function M(e){return m(e,A)}function R(e){return void 0===e?Object.create(null):l(e)}function D(e,t,r,n){if(void 0!==e){if(e=Number(e),isNaN(e)||er)throw new RangeError(e+" is outside of range ["+t+", "+r+"]");return Math.floor(e)}return n}function L(e,t,r,n,i){return D(e[t],r,n,i)}function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function j(e,t,r,n,i){if("object"!==I(e))throw new TypeError("Options must be an object");var o=e[t];if(void 0!==o){if("boolean"!==r&&"string"!==r)throw new TypeError("invalid type");if("boolean"===r&&(o=Boolean(o)),"string"===r&&(o=a(o)),void 0!==n&&!n.filter((function(e){return e==o})).length)throw new RangeError(o+" is not within "+n.join(", "));return o}return i}function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function N(e){if(void 0===e)return Object.create(null);if("object"===z(e))return e;throw new TypeError("Options must be an object")}var F=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"];function B(e){return e.slice(e.indexOf("-")+1)}var H=F.map(B);function Z(e){return H.indexOf(e)>-1}function U(e,t){var r=t.tzData,n=t.uppercaseLinks,i=e.toUpperCase(),o=new Set,a=new Set;return Object.keys(r).map((function(e){return e.toUpperCase()})).forEach((function(e){return o.add(e)})),Object.keys(n).forEach((function(e){a.add(e.toUpperCase()),o.add(n[e].toUpperCase())})),o.has(i)||a.has(i)}var G=/[^A-Z]/;function K(e){return 3===(e=e.replace(/([a-z])/g,(function(e,t){return t.toUpperCase()}))).length&&!G.test(e)}function V(e){if(Z(e=e.replace(/([A-Z])/g,(function(e,t){return t.toLowerCase()}))))return!0;var t=e.split("-per-");if(2!==t.length)return!1;var r=t[0],n=t[1];return!(!Z(r)||!Z(n))}function $(e){return Math.floor(Math.log(e)*Math.LOG10E)}function W(e,t){if("function"==typeof e.repeat)return e.repeat(t);for(var r=new Array(t),n=0;np[p.length-1])return p[p.length-1].length-1;var h=p.indexOf(f);if(-1===h)return 0;var m=p[h];return"0"===u[m].other?0:m.length-u[m].other.match(/0+/)[0].length}}function ne(e,t,r){var n,i,o,a,s=r;if(0===e)n=W("0",s),i=0,o=0;else{var c=e.toString(),l=c.indexOf("e"),u=c.split("e"),d=u[0],f=u[1],p=d.replace(".","");if(l>=0&&p.length<=s)i=+f,n=p+W("0",s-p.length),o=e;else{var h=(i=$(e))-s+1,m=Math.round(v(e,h));v(m,s-1)>=10&&(i+=1,m=Math.floor(m/10)),n=m.toString(),o=v(m,s-1-i)}}if(i>=s-1?(n+=W("0",i-s+1),a=i+1):i>=0?(n=n.slice(0,i+1)+"."+n.slice(i+1),a=i+1):(n="0."+W("0",-i-1)+n,a=1),n.indexOf(".")>=0&&r>t){for(var y=r-t;y>0&&"0"===n[n.length-1];)n=n.slice(0,-1),y--;"."===n[n.length-1]&&(n=n.slice(0,-1))}return{formattedString:n,roundedNumber:o,integerDigitsCount:a};function v(e,t){return t<0?e*Math.pow(10,-t):e/Math.pow(10,t)}}function ie(e,t,r){var n,i,o=r,a=Math.round(e*Math.pow(10,o)),s=a/Math.pow(10,o);if(a<1e21)n=a.toString();else{var c=(n=a.toString()).split("e"),l=c[0],u=c[1];n=l.replace(".",""),n+=W("0",Math.max(+u-n.length+1,0))}if(0!==o){var d=n.length;if(d<=o)n=W("0",o+1-d)+n,d=o+1;var f=n.slice(0,d-o),p=n.slice(d-o);n=f+"."+p,i=f.length}else i=n.length;for(var h=r-t;h>0&&"0"===n[n.length-1];)n=n.slice(0,-1),h--;return"."===n[n.length-1]&&(n=n.slice(0,-1)),{formattedString:n,roundedNumber:s,integerDigitsCount:i}}function oe(e,t){var r,n=t<0||u(t,-0);switch(n&&(t=-t),e.roundingType){case"significantDigits":r=ne(t,e.minimumSignificantDigits,e.maximumSignificantDigits);break;case"fractionDigits":r=ie(t,e.minimumFractionDigits,e.maximumFractionDigits);break;default:(r=ne(t,1,2)).integerDigitsCount>1&&(r=ie(t,0,0))}t=r.roundedNumber;var i=r.formattedString,o=r.integerDigitsCount,a=e.minimumIntegerDigits;o\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/,ue=new RegExp("^"+le.source),de=new RegExp(le.source+"$"),fe=/[#0](?:[\.,][#0]+)*/g;function pe(e,t,r,n){var i,o,a=e.sign,s=e.exponent,c=e.magnitude,l=n.notation,u=n.style,d=n.numberingSystem,f=t.numbers.nu[0],p=null;if("compact"===l&&c&&(p=function(e,t,r,n,i,o,a){var s,c,l=e.roundedNumber,u=e.sign,d=e.magnitude,f=String(Math.pow(10,d)),p=r.numbers.nu[0];if("currency"===n&&"name"!==o){var h=null===(s=((m=r.numbers.currency)[a]||m[p]).short)||void 0===s?void 0:s[f];if(!h)return null;c=ye(t,l,h)}else{var m,y=((m=r.numbers.decimal)[a]||m[p])[i][f];if(!y)return null;c=ye(t,l,y)}if("0"===c)return null;return c=me(c,u).replace(/([^\s;\-\+\d¤]+)/g,"{c:$1}").replace(/0+/,"0")}(e,r,t,u,n.compactDisplay,n.currencyDisplay,d)),"currency"===u&&"name"!==n.currencyDisplay){var h=t.currencies[n.currency];if(h)switch(n.currencyDisplay){case"code":i=n.currency;break;case"symbol":i=h.symbol;break;default:i=h.narrow}else i=n.currency}if(p)o=p;else if("decimal"===u||"unit"===u||"currency"===u&&"name"===n.currencyDisplay)o=me((t.numbers.decimal[d]||t.numbers.decimal[f]).standard,a);else if("currency"===u){o=me((y=t.numbers.currency[d]||t.numbers.currency[f])[n.currencySign],a)}else{o=me(t.numbers.percent[d]||t.numbers.percent[f],a)}var m=fe.exec(o)[0];if(o=o.replace(fe,"{0}").replace(/'(.)'/g,"$1"),"currency"===u&&"name"!==n.currencyDisplay){var y,v=(y=t.numbers.currency[d]||t.numbers.currency[f]).currencySpacing.afterInsertBetween;v&&!de.test(i)&&(o=o.replace("¤{0}","¤"+v+"{0}"));var b=y.currencySpacing.beforeInsertBetween;b&&!ue.test(i)&&(o=o.replace("{0}¤","{0}"+b+"¤"))}for(var g=o.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g),_=[],w=t.numbers.symbols[d]||t.numbers.symbols[f],k=0,E=g;k0?(d=c.slice(0,p),f=c.slice(p+1)):d=c,o&&("compact"!==r||l>=1e4)){var h=e.group,m=[],y=a.split(".")[0].split(","),v=3,b=3;y.length>1&&(v=y[y.length-1].length),y.length>2&&(b=y[y.length-2].length);var g=d.length-v;if(g>0){for(m.push(d.slice(g,g+v)),g-=b;g>0;g-=b)m.push(d.slice(g,g+b));m.push(d.slice(0,g+b))}else m.push(d);for(;m.length>0;){var _=m.pop();s.push({type:"integer",value:_}),m.length>0&&s.push({type:"group",value:h})}}else s.push({type:"integer",value:d});if(void 0!==f&&s.push({type:"decimal",value:e.decimal},{type:"fraction",value:f}),("scientific"===r||"engineering"===r)&&isFinite(l)){s.push({type:"exponentSeparator",value:e.exponential}),n<0&&(s.push({type:"exponentMinusSign",value:e.minusSign}),n=-n);var w=ie(n,0,0);s.push({type:"exponentInteger",value:w.formattedString})}return s}function me(e,t){e.indexOf(";")<0&&(e=e+";-"+e);var r=e.split(";"),n=r[0],i=r[1];switch(t){case 0:return n;case-1:return i;default:return i.indexOf("-")>=0?i.replace(/-/g,"+"):"+"+n}}function ye(e,t,r){return r[e.select(t)]||r.other}function ve(e,t,r){var n,i,o,a=r.getInternalSlots,s=a(e),c=s.pl,l=s.dataLocaleData,d=s.numberingSystem,f=l.numbers.symbols[d]||l.numbers.symbols[l.numbers.nu[0]],p=0,h=0;if(isNaN(t))i=f.nan;else if(isFinite(t)){"percent"===s.style&&(t*=100),h=(n=ae(e,t,{getInternalSlots:a}))[0],p=n[1];var m=oe(s,t=h<0?t*Math.pow(10,-h):t/Math.pow(10,h));i=m.formattedString,t=m.roundedNumber}else i=f.infinity;switch(s.signDisplay){case"never":o=0;break;case"auto":o=u(t,0)||t>0||isNaN(t)?0:-1;break;case"always":o=u(t,0)||t>0||isNaN(t)?1:-1;break;default:o=0===t||isNaN(t)?0:t>0?1:-1}return pe({roundedNumber:t,formattedString:i,exponent:h,magnitude:p,sign:o},s.dataLocaleData,c,s)}function be(e,t,r){for(var n=ve(e,t,r),i=d(0),o=0,a=n;o-1;)te((n=e.indexOf("}",r))>r,"Invalid pattern "+e),r>i&&t.push({type:"literal",value:e.substring(i,r)}),t.push({type:e.substring(r+1,n),value:void 0}),i=n+1,r=e.indexOf("{",i);return ir&&(r=u,a=l)}return n.__assign({},a)}},72833:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BestFitFormatMatcher=t.bestFitFormatMatcherScore=void 0;var n=r(87480),i=r(71160),o=r(35328),a=r(20059);function s(e){return"numeric"===e||"2-digit"===e}function c(e,t){var r=0;e.hour12&&!t.hour12?r-=o.removalPenalty:!e.hour12&&t.hour12&&(r-=o.additionPenalty);for(var n=0,i=o.DATE_TIME_PROPS;nr&&(r=f,o=d)}var p=n.__assign({},o),h={rawPattern:o.rawPattern};for(var m in a.processDateTimePattern(o.rawPattern,h),p){var y=p[m],v=h[m],b=e[m];"minute"!==m&&"second"!==m&&(b&&(s(v)&&!s(b)||y!==b&&(h[m]=b)))}return h.pattern=p.pattern,h.pattern12=p.pattern12,h.skeleton=p.skeleton,h.rangePatterns=p.rangePatterns,h.rangePatterns12=p.rangePatterns12,h}},11464:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeStyleFormat=void 0;var n=r(71160);t.DateTimeStyleFormat=function(e,t,r){var i,o;if(void 0!==t&&(n.invariant("full"===t||"long"===t||"medium"===t||"short"===t,"invalid timeStyle"),o=r.timeFormat[t]),void 0!==e&&(n.invariant("full"===e||"long"===e||"medium"===e||"short"===e,"invalid dateStyle"),i=r.dateFormat[e]),void 0!==e&&void 0!==t){var a={};for(var s in i)"pattern"!==s&&(a[s]=i[s]);for(var s in o)"pattern"!==s&&"pattern12"!==s&&(a[s]=o[s]);var c=r.dateTimeFormat[e],l=c.replace("{0}",o.pattern).replace("{1}",i.pattern);if(a.pattern=l,"pattern12"in o){var u=c.replace("{0}",o.pattern12).replace("{1}",i.pattern);a.pattern12=u}return a}return void 0!==t?o:(n.invariant(void 0!==e,"dateStyle should not be undefined"),i)}},81800:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatDateTime=void 0;var n=r(61334);t.FormatDateTime=function(e,t,r){for(var i="",o=0,a=n.PartitionDateTimePattern(e,t,r);o-1){var O="",P=f[T];C=k[T];"year"===T&&C<=0&&(C=1-C),"month"===T&&C++;var M=f.hourCycle;if("hour"!==T||"h11"!==M&&"h12"!==M||0===(C%=12)&&"h12"===M&&(C=12),"hour"===T&&"h24"===M&&0===C&&(C=24),"numeric"===P)O=y.format(C);else if("2-digit"===P)(O=g.format(C)).length>2&&(O=O.slice(O.length-2,O.length));else if("narrow"===P||"short"===P||"long"===P)if("era"===T)O=p[T][P][C];else if("timeZoneName"===T){var R=p.timeZoneName,D=p.gmtFormat,L=p.hourFormat,I=R[f.timeZone||u()];O=I&&I[P]?I[P][+k.inDST]:s(D,L,k.timeZoneOffset,P)}else O="month"===T?p.month[P][C-1]:p[T][P][C];E.push({type:T,value:O})}else if("ampm"===T){O=void 0;O=(C=k.hour)>11?p.pm:p.am,E.push({type:"dayPeriod",value:O})}else if("relatedYear"===T){C=k.relatedYear,O=y.format(C);E.push({type:"relatedYear",value:O})}else if("yearName"===T){C=k.yearName,O=y.format(C);E.push({type:"yearName",value:O})}}return E}},91920:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatDateTimeRange=void 0;var n=r(46186);t.FormatDateTimeRange=function(e,t,r,i){for(var o="",a=0,s=n.PartitionDateTimeRangePattern(e,t,r,i);a11&&E<11||k<11&&E>11)&&(y=!1)}else if("dayPeriod"===_);else if("fractionalSecondDigits"===_){var x=d.fractionalSecondDigits;void 0===x&&(x=3);k=Math.floor(f.millisecond*Math.pow(10,x-3)),E=Math.floor(p.millisecond*Math.pow(10,x-3));n.SameValue(k,E)||(y=!1)}else{k=f[_],E=p[_];n.SameValue(k,E)||(y=!1)}}}if(y){for(var S=o.FormatDateTimePattern(e,n.PartitionPattern(h),t,s),A=0,T=S;Ae){a=(n=i[o-1])[2],s=n[3];break}return[1e3*a,s]}(e,r,o),s=a[0],c=a[1],l=e+s,u=n.YearFromTime(l);return{weekday:n.WeekDay(l),era:u<0?"BC":"AD",year:u,relatedYear:void 0,yearName:void 0,month:n.MonthFromTime(l),day:n.DateFromTime(l),hour:n.HourFromTime(l),minute:n.MinFromTime(l),second:n.SecFromTime(l),millisecond:n.msFromTime(l),inDST:c,timeZoneOffset:s}}},20059:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitRangePattern=t.splitFallbackRangePattern=t.parseDateTimeSkeleton=t.processDateTimePattern=void 0;var n=r(87480),i=r(71160),o=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,a=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function s(e,t){var r=e.length;switch(e[0]){case"G":return t.era=4===r?"long":5===r?"narrow":"short","{era}";case"y":case"Y":case"u":case"U":case"r":return t.year=2===r?"2-digit":"numeric","{year}";case"q":case"Q":throw new RangeError("`w/Q` (quarter) patterns are not supported");case"M":case"L":return t.month=["numeric","2-digit","short","long","narrow"][r-1],"{month}";case"w":case"W":throw new RangeError("`w/W` (week of year) patterns are not supported");case"d":return t.day=["numeric","2-digit"][r-1],"{day}";case"D":case"F":case"g":return t.day="numeric","{day}";case"E":return t.weekday=4===r?"long":5===r?"narrow":"short","{weekday}";case"e":case"c":return t.weekday=[void 0,void 0,"short","long","narrow","short"][r-1],"{weekday}";case"a":case"b":case"B":return t.hour12=!0,"{ampm}";case"h":case"K":return t.hour=["numeric","2-digit"][r-1],t.hour12=!0,"{hour}";case"H":case"k":return t.hour=["numeric","2-digit"][r-1],"{hour}";case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":return t.minute=["numeric","2-digit"][r-1],"{minute}";case"s":return t.second=["numeric","2-digit"][r-1],"{second}";case"S":case"A":return t.second="numeric","{second}";case"z":case"Z":case"O":case"v":case"V":case"X":case"x":return t.timeZoneName=r<4?"short":"long","{timeZoneName}"}return""}function c(e){switch(e){case"G":return"era";case"y":case"Y":case"u":case"U":case"r":return"year";case"M":case"L":return"month";case"d":case"D":case"F":case"g":return"day";case"a":case"b":case"B":return"ampm";case"h":case"H":case"K":case"k":return"hour";case"m":return"minute";case"s":case"S":case"A":return"second";default:throw new RangeError("Invalid range pattern token")}}function l(e,t){var r=[],n=e.replace(/'{2}/g,"{apostrophe}").replace(/'(.*?)'/g,(function(e,t){return r.push(t),"$$"+(r.length-1)+"$$"})).replace(o,(function(e){return s(e,t||{})}));return r.length&&(n=n.replace(/\$\$(\d+)\$\$/g,(function(e,t){return r[+t]})).replace(/\{apostrophe\}/g,"'")),[n.replace(/([\s\uFEFF\xA0])\{ampm\}([\s\uFEFF\xA0])/,"$1").replace("{ampm}","").replace(a,""),n]}function u(e){return e.split(/(\{[0|1]\})/g).filter(Boolean).map((function(e){switch(e){case"{0}":return{source:i.RangePatternType.startRange,pattern:e};case"{1}":return{source:i.RangePatternType.endRange,pattern:e};default:return{source:i.RangePatternType.shared,pattern:e}}}))}function d(e){for(var t,r=/\{(.*?)\}/g,n={},o=0;t=r.exec(e);){if(t[0]in n){o=t.index;break}n[t[0]]=t.index}return o?[{source:i.RangePatternType.startRange,pattern:e.slice(0,o)},{source:i.RangePatternType.endRange,pattern:e.slice(o)}]:[{source:i.RangePatternType.startRange,pattern:e}]}t.processDateTimePattern=l,t.parseDateTimeSkeleton=function(e,t,r,i){void 0===t&&(t=e);var a={pattern:"",pattern12:"",skeleton:e,rawPattern:t,rangePatterns:{},rangePatterns12:{}};if(r)for(var f in r){var p=c(f),h={patternParts:[]},m=l(r[f],h),y=m[0],v=m[1];a.rangePatterns[p]=n.__assign(n.__assign({},h),{patternParts:d(y)}),a.rangePatterns12[p]=n.__assign(n.__assign({},h),{patternParts:d(v)})}if(i){var b=u(i);a.rangePatterns.default={patternParts:b},a.rangePatterns12.default={patternParts:b}}e.replace(o,(function(e){return s(e,a)}));var g=l(t),_=g[0],w=g[1];return a.pattern=_,a.pattern12=w,a},t.splitFallbackRangePattern=u,t.splitRangePattern=d},35328:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shortMorePenalty=t.shortLessPenalty=t.longMorePenalty=t.longLessPenalty=t.differentNumericTypePenalty=t.additionPenalty=t.removalPenalty=t.DATE_TIME_PROPS=void 0,t.DATE_TIME_PROPS=["weekday","era","year","month","day","hour","minute","second","timeZoneName"],t.removalPenalty=120,t.additionPenalty=20,t.differentNumericTypePenalty=15,t.longLessPenalty=8,t.longMorePenalty=6,t.shortLessPenalty=6,t.shortMorePenalty=3},15875:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeFormat=void 0;var i=r(87480),o=r(71160),a=i.__importDefault(r(8951)),s=i.__importDefault(r(99431)),c=r(10465),l=r(81800),u=r(79916),d=r(35328),f=r(85923),p=r(99607),h=r(91920),m=r(20059),y=Object.keys(s.default).reduce((function(e,t){return e[t.toUpperCase()]=s.default[t],e}),{}),v=["locale","calendar","numberingSystem","dateStyle","timeStyle","timeZone","hourCycle","weekday","era","year","month","day","hour","minute","second","timeZoneName"],b={enumerable:!1,configurable:!0,get:function(){if("object"!==n(this)||!o.OrdinaryHasInstance(t.DateTimeFormat,this))throw TypeError("Intl.DateTimeFormat format property accessor called on incompatible receiver");var e=a.default(this),r=this,i=e.boundFormat;if(void 0===i){i=function(e){var n;return n=void 0===e?Date.now():Number(e),l.FormatDateTime(r,n,{getInternalSlots:a.default,localeData:t.DateTimeFormat.localeData,tzData:t.DateTimeFormat.tzData,getDefaultTimeZone:t.DateTimeFormat.getDefaultTimeZone})};try{Object.defineProperty(i,"name",{configurable:!0,enumerable:!1,writable:!1,value:""})}catch(s){}e.boundFormat=i}return i}};try{Object.defineProperty(b.get,"name",{configurable:!0,enumerable:!1,writable:!1,value:"get format"})}catch(g){}t.DateTimeFormat=function(e,r){if(!this||!o.OrdinaryHasInstance(t.DateTimeFormat,this))return new t.DateTimeFormat(e,r);u.InitializeDateTimeFormat(this,e,r,{tzData:t.DateTimeFormat.tzData,uppercaseLinks:y,availableLocales:t.DateTimeFormat.availableLocales,relevantExtensionKeys:t.DateTimeFormat.relevantExtensionKeys,getDefaultLocale:t.DateTimeFormat.getDefaultLocale,getDefaultTimeZone:t.DateTimeFormat.getDefaultTimeZone,getInternalSlots:a.default,localeData:t.DateTimeFormat.localeData});var n=a.default(this).dataLocale,i=t.DateTimeFormat.localeData[n];o.invariant(void 0!==i,"Cannot load locale-dependent data for "+n+".")},o.defineProperty(t.DateTimeFormat,"supportedLocalesOf",{value:function(e,r){return o.SupportedLocales(t.DateTimeFormat.availableLocales,o.CanonicalizeLocaleList(e),r)}}),o.defineProperty(t.DateTimeFormat.prototype,"resolvedOptions",{value:function(){if("object"!==n(this)||!o.OrdinaryHasInstance(t.DateTimeFormat,this))throw TypeError("Method Intl.DateTimeFormat.prototype.resolvedOptions called on incompatible receiver");for(var e=a.default(this),r={},i=0,s=v;i-1&&(void 0===e.dateStyle&&void 0===e.timeStyle||(l=void 0)),void 0!==l&&(r[c]=l)}return r}}),o.defineProperty(t.DateTimeFormat.prototype,"formatToParts",{value:function(e){return e=void 0===e?Date.now():o.ToNumber(e),f.FormatDateTimeToParts(this,e,{getInternalSlots:a.default,localeData:t.DateTimeFormat.localeData,tzData:t.DateTimeFormat.tzData,getDefaultTimeZone:t.DateTimeFormat.getDefaultTimeZone})}}),o.defineProperty(t.DateTimeFormat.prototype,"formatRangeToParts",{value:function(e,r){if("object"!==n(this))throw new TypeError;if(void 0===e||void 0===r)throw new TypeError("startDate/endDate cannot be undefined");var i=o.ToNumber(e),s=o.ToNumber(r);return p.FormatDateTimeRangeToParts(this,i,s,{getInternalSlots:a.default,localeData:t.DateTimeFormat.localeData,tzData:t.DateTimeFormat.tzData,getDefaultTimeZone:t.DateTimeFormat.getDefaultTimeZone})}}),o.defineProperty(t.DateTimeFormat.prototype,"formatRange",{value:function(e,r){if("object"!==n(this))throw new TypeError;if(void 0===e||void 0===r)throw new TypeError("startDate/endDate cannot be undefined");var i=o.ToNumber(e),s=o.ToNumber(r);return h.FormatDateTimeRange(this,i,s,{getInternalSlots:a.default,localeData:t.DateTimeFormat.localeData,tzData:t.DateTimeFormat.tzData,getDefaultTimeZone:t.DateTimeFormat.getDefaultTimeZone})}});t.DateTimeFormat.__setDefaultTimeZone=function(e){if(void 0!==e){if(e=String(e),!o.IsValidTimeZoneName(e,{tzData:t.DateTimeFormat.tzData,uppercaseLinks:y}))throw new RangeError("Invalid timeZoneName");e=o.CanonicalizeTimeZoneName(e,{tzData:t.DateTimeFormat.tzData,uppercaseLinks:y})}else e="UTC";t.DateTimeFormat.__defaultTimeZone=e},t.DateTimeFormat.relevantExtensionKeys=["nu","ca","hc"],t.DateTimeFormat.__defaultTimeZone="UTC",t.DateTimeFormat.getDefaultTimeZone=function(){return t.DateTimeFormat.__defaultTimeZone},t.DateTimeFormat.__addLocaleData=function(){for(var e=[],r=0;rt[0]?1:0}function u(e,t){return e.typet.type?1:0}function d(e,t){for(var r=n.__spreadArray([],e),i=0,o=t;i-1&&(v=_)}}v&&(t.region=v),t.region=t.region.toUpperCase()}if(t.script&&(t.script=t.script[0].toUpperCase()+t.script.slice(1).toLowerCase(),i.scriptAlias[t.script]&&(t.script=i.scriptAlias[t.script])),t.variants.length){for(var w=0;w-1&&d.push("caseFirst"),u.indexOf("kn")>-1&&d.push("numeric"),void 0===t)throw new TypeError("First argument to Intl.Locale constructor can't be empty or missing");if("string"!=typeof t&&"object"!==n(t))throw new TypeError("tag must be a string or object");t="object"===n(t)&&(c=s.default(t))&&c.initializedLocale?c.locale:t.toString(),c=s.default(this);var f=o.CoerceOptionsToObject(r);t=function(e,t){o.invariant("string"==typeof e,"language tag must be a string"),o.invariant(a.isStructurallyValidLanguageTag(e),"malformed language tag",RangeError);var r=o.GetOption(t,"language","string",void 0,void 0);void 0!==r&&o.invariant(a.isUnicodeLanguageSubtag(r),"Malformed unicode_language_subtag",RangeError);var n=o.GetOption(t,"script","string",void 0,void 0);void 0!==n&&o.invariant(a.isUnicodeScriptSubtag(n),"Malformed unicode_script_subtag",RangeError);var s=o.GetOption(t,"region","string",void 0,void 0);void 0!==s&&o.invariant(a.isUnicodeRegionSubtag(s),"Malformed unicode_region_subtag",RangeError);var c=a.parseUnicodeLanguageId(e);return void 0!==r&&(c.lang=r),void 0!==n&&(c.script=n),void 0!==s&&(c.region=s),Intl.getCanonicalLocales(a.emitUnicodeLocaleId(i.__assign(i.__assign({},a.parseUnicodeLocaleId(e)),{lang:c})))[0]}(t,f);var p=Object.create(null),h=o.GetOption(f,"calendar","string",void 0,void 0);if(void 0!==h&&!l.test(h))throw new RangeError("invalid calendar");p.ca=h;var m=o.GetOption(f,"collation","string",void 0,void 0);if(void 0!==m&&!l.test(m))throw new RangeError("invalid collation");p.co=m;var y=o.GetOption(f,"hourCycle","string",["h11","h12","h23","h24"],void 0);p.hc=y;var v=o.GetOption(f,"caseFirst","string",["upper","lower","false"],void 0);p.kf=v;var b,g=o.GetOption(f,"numeric","boolean",void 0,void 0);void 0!==g&&(b=String(g)),p.kn=b;var _=o.GetOption(f,"numberingSystem","string",void 0,void 0);if(void 0!==_&&!l.test(_))throw new RangeError("Invalid numberingSystem");p.nu=_;var w=function(e,t,r){for(var n,i=[],s=a.parseUnicodeLocaleId(e),c=0,l=s.extensions;c-1&&(c.caseFirst=w.kf),u.indexOf("kn")>-1&&(c.numeric=o.SameValue(w.kn,"true")),c.numberingSystem=w.nu}return e.prototype.maximize=function(){var t=s.default(this).locale;try{return new e(d(t))}catch(r){return new e(t)}},e.prototype.minimize=function(){var t=s.default(this).locale;try{return new e(function(e){var t=d(e);if(!t)return e;t=a.emitUnicodeLanguageId(i.__assign(i.__assign({},a.parseUnicodeLanguageId(t)),{variants:[]}));var r=a.parseUnicodeLocaleId(e),n=r.lang,o=n.lang,s=n.script,c=n.region,l=n.variants;return d(a.emitUnicodeLanguageId({lang:o,variants:[]}))===t?a.emitUnicodeLocaleId(i.__assign(i.__assign({},r),{lang:u(o,void 0,void 0,l)})):c&&d(a.emitUnicodeLanguageId({lang:o,region:c,variants:[]}))===t?a.emitUnicodeLocaleId(i.__assign(i.__assign({},r),{lang:u(o,void 0,c,l)})):s&&d(a.emitUnicodeLanguageId({lang:o,script:s,variants:[]}))===t?a.emitUnicodeLocaleId(i.__assign(i.__assign({},r),{lang:u(o,s,void 0,l)})):e}(t))}catch(r){return new e(t)}},e.prototype.toString=function(){return s.default(this).locale},Object.defineProperty(e.prototype,"baseName",{get:function(){var e=s.default(this).locale;return a.emitUnicodeLanguageId(a.parseUnicodeLanguageId(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return s.default(this).calendar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collation",{get:function(){return s.default(this).collation},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hourCycle",{get:function(){return s.default(this).hourCycle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caseFirst",{get:function(){return s.default(this).caseFirst},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numeric",{get:function(){return s.default(this).numeric},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numberingSystem",{get:function(){return s.default(this).numberingSystem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){var e=s.default(this).locale;return a.parseUnicodeLanguageId(e).lang},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"script",{get:function(){var e=s.default(this).locale;return a.parseUnicodeLanguageId(e).script},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"region",{get:function(){var e=s.default(this).locale;return a.parseUnicodeLanguageId(e).region},enumerable:!1,configurable:!0}),e.relevantExtensionKeys=c,e}();t.Locale=f;try{"undefined"!=typeof Symbol&&Object.defineProperty(f.prototype,Symbol.toStringTag,{value:"Intl.Locale",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype.constructor,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(p){}t.default=f},33633:function(e,t,r){"use strict";var n=r(52443);r(32812).shouldPolyfill()&&Object.defineProperty(Intl,"Locale",{value:n.Locale,writable:!0,enumerable:!1,configurable:!0})},32812:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldPolyfill=void 0,t.shouldPolyfill=function(){return!("Locale"in Intl)||function(){try{return"x-private"===new Intl.Locale("und-x-private").toString()}catch(e){return!0}}()}},96512:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BestAvailableLocale=void 0,t.BestAvailableLocale=function(e,t){for(var r=t;;){if(e.has(r))return r;var n=r.lastIndexOf("-");if(!~n)return;n>=2&&"-"===r[n-2]&&(n-=2),r=r.slice(0,n)}}},76099:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BestFitMatcher=void 0;var n=r(96512),i=r(30598);t.BestFitMatcher=function(e,t,r){var o,a=Array.from(e).reduce((function(e,t){return e[t]=t,e}),{}),s=new Set;e.forEach((function(e){var t=new Intl.Locale(e).minimize().toString();a[t]=e,s.add(t)}));for(var c=0,l=t;c2){var x=f.indexOf("-x-");if(-1===x)f+=h;else{var S=f.slice(0,x),A=f.slice(x,f.length);f=S+h+A}f=Intl.getCanonicalLocales(f)[0]}return p.locale=f,p}},71387:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeExtensionValue=void 0;var n=r(30598);t.UnicodeExtensionValue=function(e,t){n.invariant(2===t.length,"key must have 2 elements");var r=e.length,i="-"+t+"-",o=e.indexOf(i);if(-1!==o){for(var a=o+4,s=a,c=a,l=!1;!l;){var u=e.indexOf("-",c);2===(-1===u?r-c:u-c)?l=!0:-1===u?(s=r,l=!0):(s=u,c=u+1)}return e.slice(a,s)}if(i="-"+t,-1!==(o=e.indexOf(i))&&o+3===r)return""}},30598:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=t.UNICODE_EXTENSION_SEQUENCE_REGEX=void 0,t.UNICODE_EXTENSION_SEQUENCE_REGEX=/-u(?:-[0-9a-z]{2,8})+/gi,t.invariant=function(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}},17595:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResolveLocale=t.LookupSupportedLocales=t.match=void 0;var n=r(92904);t.match=function(e,t,r,i){var o=t.reduce((function(e,t){return e.add(t),e}),new Set);return n.ResolveLocale(o,e,{localeMatcher:(null==i?void 0:i.algorithm)||"best fit"},[],{},(function(){return r})).locale};var i=r(42776);Object.defineProperty(t,"LookupSupportedLocales",{enumerable:!0,get:function(){return i.LookupSupportedLocales}});var o=r(92904);Object.defineProperty(t,"ResolveLocale",{enumerable:!0,get:function(){return o.ResolveLocale}})},1437:function(){Intl.NumberFormat&&"function"==typeof Intl.NumberFormat.__addLocaleData&&Intl.NumberFormat.__addLocaleData({data:{units:{simple:{degree:{long:{other:"{0} degrees",one:"{0} degree"},short:{other:"{0} deg"},narrow:{other:"{0}°"},perUnit:{}},hectare:{long:{other:"{0} hectares",one:"{0} hectare"},short:{other:"{0} ha"},narrow:{other:"{0}ha"},perUnit:{}},acre:{long:{other:"{0} acres",one:"{0} acre"},short:{other:"{0} ac"},narrow:{other:"{0}ac"},perUnit:{}},percent:{long:{other:"{0} percent"},short:{other:"{0}%"},narrow:{other:"{0}%"},perUnit:{}},"liter-per-kilometer":{long:{other:"{0} liters per kilometer",one:"{0} liter per kilometer"},short:{other:"{0} L/km"},narrow:{other:"{0}L/km"},perUnit:{}},"mile-per-gallon":{long:{other:"{0} miles per gallon",one:"{0} mile per gallon"},short:{other:"{0} mpg"},narrow:{other:"{0}mpg"},perUnit:{}},petabyte:{long:{other:"{0} petabytes",one:"{0} petabyte"},short:{other:"{0} PB"},narrow:{other:"{0}PB"},perUnit:{}},terabyte:{long:{other:"{0} terabytes",one:"{0} terabyte"},short:{other:"{0} TB"},narrow:{other:"{0}TB"},perUnit:{}},terabit:{long:{other:"{0} terabits",one:"{0} terabit"},short:{other:"{0} Tb"},narrow:{other:"{0}Tb"},perUnit:{}},gigabyte:{long:{other:"{0} gigabytes",one:"{0} gigabyte"},short:{other:"{0} GB"},narrow:{other:"{0}GB"},perUnit:{}},gigabit:{long:{other:"{0} gigabits",one:"{0} gigabit"},short:{other:"{0} Gb"},narrow:{other:"{0}Gb"},perUnit:{}},megabyte:{long:{other:"{0} megabytes",one:"{0} megabyte"},short:{other:"{0} MB"},narrow:{other:"{0}MB"},perUnit:{}},megabit:{long:{other:"{0} megabits",one:"{0} megabit"},short:{other:"{0} Mb"},narrow:{other:"{0}Mb"},perUnit:{}},kilobyte:{long:{other:"{0} kilobytes",one:"{0} kilobyte"},short:{other:"{0} kB"},narrow:{other:"{0}kB"},perUnit:{}},kilobit:{long:{other:"{0} kilobits",one:"{0} kilobit"},short:{other:"{0} kb"},narrow:{other:"{0}kb"},perUnit:{}},byte:{long:{other:"{0} bytes",one:"{0} byte"},short:{other:"{0} byte"},narrow:{other:"{0}B"},perUnit:{}},bit:{long:{other:"{0} bits",one:"{0} bit"},short:{other:"{0} bit"},narrow:{other:"{0}bit"},perUnit:{}},year:{long:{other:"{0} years",one:"{0} year"},short:{other:"{0} yrs",one:"{0} yr"},narrow:{other:"{0}y"},perUnit:{long:"{0} per year",short:"{0}/y",narrow:"{0}/y"}},month:{long:{other:"{0} months",one:"{0} month"},short:{other:"{0} mths",one:"{0} mth"},narrow:{other:"{0}m"},perUnit:{long:"{0} per month",short:"{0}/m",narrow:"{0}/m"}},week:{long:{other:"{0} weeks",one:"{0} week"},short:{other:"{0} wks",one:"{0} wk"},narrow:{other:"{0}w"},perUnit:{long:"{0} per week",short:"{0}/w",narrow:"{0}/w"}},day:{long:{other:"{0} days",one:"{0} day"},short:{other:"{0} days",one:"{0} day"},narrow:{other:"{0}d"},perUnit:{long:"{0} per day",short:"{0}/d",narrow:"{0}/d"}},hour:{long:{other:"{0} hours",one:"{0} hour"},short:{other:"{0} hr"},narrow:{other:"{0}h"},perUnit:{long:"{0} per hour",short:"{0}/h",narrow:"{0}/h"}},minute:{long:{other:"{0} minutes",one:"{0} minute"},short:{other:"{0} min"},narrow:{other:"{0}m"},perUnit:{long:"{0} per minute",short:"{0}/min",narrow:"{0}/min"}},second:{long:{other:"{0} seconds",one:"{0} second"},short:{other:"{0} sec"},narrow:{other:"{0}s"},perUnit:{long:"{0} per second",short:"{0}/s",narrow:"{0}/s"}},millisecond:{long:{other:"{0} milliseconds",one:"{0} millisecond"},short:{other:"{0} ms"},narrow:{other:"{0}ms"},perUnit:{}},kilometer:{long:{other:"{0} kilometers",one:"{0} kilometer"},short:{other:"{0} km"},narrow:{other:"{0}km"},perUnit:{long:"{0} per kilometer",short:"{0}/km",narrow:"{0}/km"}},meter:{long:{other:"{0} meters",one:"{0} meter"},short:{other:"{0} m"},narrow:{other:"{0}m"},perUnit:{long:"{0} per meter",short:"{0}/m",narrow:"{0}/m"}},centimeter:{long:{other:"{0} centimeters",one:"{0} centimeter"},short:{other:"{0} cm"},narrow:{other:"{0}cm"},perUnit:{long:"{0} per centimeter",short:"{0}/cm",narrow:"{0}/cm"}},millimeter:{long:{other:"{0} millimeters",one:"{0} millimeter"},short:{other:"{0} mm"},narrow:{other:"{0}mm"},perUnit:{}},mile:{long:{other:"{0} miles",one:"{0} mile"},short:{other:"{0} mi"},narrow:{other:"{0}mi"},perUnit:{}},yard:{long:{other:"{0} yards",one:"{0} yard"},short:{other:"{0} yd"},narrow:{other:"{0}yd"},perUnit:{}},foot:{long:{other:"{0} feet",one:"{0} foot"},short:{other:"{0} ft"},narrow:{other:"{0}′"},perUnit:{long:"{0} per foot",short:"{0}/ft",narrow:"{0}/ft"}},inch:{long:{other:"{0} inches",one:"{0} inch"},short:{other:"{0} in"},narrow:{other:"{0}″"},perUnit:{long:"{0} per inch",short:"{0}/in",narrow:"{0}/in"}},"mile-scandinavian":{long:{other:"{0} miles-scandinavian",one:"{0} mile-scandinavian"},short:{other:"{0} smi"},narrow:{other:"{0}smi"},perUnit:{}},kilogram:{long:{other:"{0} kilograms",one:"{0} kilogram"},short:{other:"{0} kg"},narrow:{other:"{0}kg"},perUnit:{long:"{0} per kilogram",short:"{0}/kg",narrow:"{0}/kg"}},gram:{long:{other:"{0} grams",one:"{0} gram"},short:{other:"{0} g"},narrow:{other:"{0}g"},perUnit:{long:"{0} per gram",short:"{0}/g",narrow:"{0}/g"}},stone:{long:{other:"{0} stones",one:"{0} stone"},short:{other:"{0} st"},narrow:{other:"{0}st"},perUnit:{}},pound:{long:{other:"{0} pounds",one:"{0} pound"},short:{other:"{0} lb"},narrow:{other:"{0}#"},perUnit:{long:"{0} per pound",short:"{0}/lb",narrow:"{0}/lb"}},ounce:{long:{other:"{0} ounces",one:"{0} ounce"},short:{other:"{0} oz"},narrow:{other:"{0}oz"},perUnit:{long:"{0} per ounce",short:"{0}/oz",narrow:"{0}/oz"}},"kilometer-per-hour":{long:{other:"{0} kilometers per hour",one:"{0} kilometer per hour"},short:{other:"{0} km/h"},narrow:{other:"{0}km/h"},perUnit:{}},"meter-per-second":{long:{other:"{0} meters per second",one:"{0} meter per second"},short:{other:"{0} m/s"},narrow:{other:"{0}m/s"},perUnit:{}},"mile-per-hour":{long:{other:"{0} miles per hour",one:"{0} mile per hour"},short:{other:"{0} mph"},narrow:{other:"{0}mph"},perUnit:{}},celsius:{long:{other:"{0} degrees Celsius",one:"{0} degree Celsius"},short:{other:"{0}°C"},narrow:{other:"{0}°C"},perUnit:{}},fahrenheit:{long:{other:"{0} degrees Fahrenheit",one:"{0} degree Fahrenheit"},short:{other:"{0}°F"},narrow:{other:"{0}°"},perUnit:{}},liter:{long:{other:"{0} liters",one:"{0} liter"},short:{other:"{0} L"},narrow:{other:"{0}L"},perUnit:{long:"{0} per liter",short:"{0}/L",narrow:"{0}/L"}},milliliter:{long:{other:"{0} milliliters",one:"{0} milliliter"},short:{other:"{0} mL"},narrow:{other:"{0}mL"},perUnit:{}},gallon:{long:{other:"{0} gallons",one:"{0} gallon"},short:{other:"{0} gal"},narrow:{other:"{0}gal"},perUnit:{long:"{0} per gallon",short:"{0}/gal US",narrow:"{0}/gal"}},"fluid-ounce":{long:{other:"{0} fluid ounces",one:"{0} fluid ounce"},short:{other:"{0} fl oz"},narrow:{other:"{0}fl oz"},perUnit:{}}},compound:{per:{long:"{0} per {1}",short:"{0}/{1}",narrow:"{0}/{1}"}}},currencies:{ADP:{displayName:{other:"Andorran pesetas",one:"Andorran peseta"},symbol:"ADP",narrow:"ADP"},AED:{displayName:{other:"UAE dirhams",one:"UAE dirham"},symbol:"AED",narrow:"AED"},AFA:{displayName:{other:"Afghan afghanis (1927–2002)",one:"Afghan afghani (1927–2002)"},symbol:"AFA",narrow:"AFA"},AFN:{displayName:{other:"Afghan Afghanis",one:"Afghan Afghani"},symbol:"AFN",narrow:"؋"},ALK:{displayName:{other:"Albanian lekë (1946–1965)",one:"Albanian lek (1946–1965)"},symbol:"ALK",narrow:"ALK"},ALL:{displayName:{other:"Albanian lekë",one:"Albanian lek"},symbol:"ALL",narrow:"ALL"},AMD:{displayName:{other:"Armenian drams",one:"Armenian dram"},symbol:"AMD",narrow:"֏"},ANG:{displayName:{other:"Netherlands Antillean guilders",one:"Netherlands Antillean guilder"},symbol:"ANG",narrow:"ANG"},AOA:{displayName:{other:"Angolan kwanzas",one:"Angolan kwanza"},symbol:"AOA",narrow:"Kz"},AOK:{displayName:{other:"Angolan kwanzas (1977–1991)",one:"Angolan kwanza (1977–1991)"},symbol:"AOK",narrow:"AOK"},AON:{displayName:{other:"Angolan new kwanzas (1990–2000)",one:"Angolan new kwanza (1990–2000)"},symbol:"AON",narrow:"AON"},AOR:{displayName:{other:"Angolan readjusted kwanzas (1995–1999)",one:"Angolan readjusted kwanza (1995–1999)"},symbol:"AOR",narrow:"AOR"},ARA:{displayName:{other:"Argentine australs",one:"Argentine austral"},symbol:"ARA",narrow:"ARA"},ARL:{displayName:{other:"Argentine pesos ley (1970–1983)",one:"Argentine peso ley (1970–1983)"},symbol:"ARL",narrow:"ARL"},ARM:{displayName:{other:"Argentine pesos (1881–1970)",one:"Argentine peso (1881–1970)"},symbol:"ARM",narrow:"ARM"},ARP:{displayName:{other:"Argentine pesos (1983–1985)",one:"Argentine peso (1983–1985)"},symbol:"ARP",narrow:"ARP"},ARS:{displayName:{other:"Argentine pesos",one:"Argentine peso"},symbol:"ARS",narrow:"$"},ATS:{displayName:{other:"Austrian schillings",one:"Austrian schilling"},symbol:"ATS",narrow:"ATS"},AUD:{displayName:{other:"Australian dollars",one:"Australian dollar"},symbol:"A$",narrow:"$"},AWG:{displayName:{other:"Aruban florin"},symbol:"AWG",narrow:"AWG"},AZM:{displayName:{other:"Azerbaijani manats (1993–2006)",one:"Azerbaijani manat (1993–2006)"},symbol:"AZM",narrow:"AZM"},AZN:{displayName:{other:"Azerbaijani manats",one:"Azerbaijani manat"},symbol:"AZN",narrow:"₼"},BAD:{displayName:{other:"Bosnia-Herzegovina dinars (1992–1994)",one:"Bosnia-Herzegovina dinar (1992–1994)"},symbol:"BAD",narrow:"BAD"},BAM:{displayName:{other:"Bosnia-Herzegovina convertible marks",one:"Bosnia-Herzegovina convertible mark"},symbol:"BAM",narrow:"KM"},BAN:{displayName:{other:"Bosnia-Herzegovina new dinars (1994–1997)",one:"Bosnia-Herzegovina new dinar (1994–1997)"},symbol:"BAN",narrow:"BAN"},BBD:{displayName:{other:"Barbadian dollars",one:"Barbadian dollar"},symbol:"BBD",narrow:"$"},BDT:{displayName:{other:"Bangladeshi takas",one:"Bangladeshi taka"},symbol:"BDT",narrow:"৳"},BEC:{displayName:{other:"Belgian francs (convertible)",one:"Belgian franc (convertible)"},symbol:"BEC",narrow:"BEC"},BEF:{displayName:{other:"Belgian francs",one:"Belgian franc"},symbol:"BEF",narrow:"BEF"},BEL:{displayName:{other:"Belgian francs (financial)",one:"Belgian franc (financial)"},symbol:"BEL",narrow:"BEL"},BGL:{displayName:{other:"Bulgarian hard leva",one:"Bulgarian hard lev"},symbol:"BGL",narrow:"BGL"},BGM:{displayName:{other:"Bulgarian socialist leva",one:"Bulgarian socialist lev"},symbol:"BGM",narrow:"BGM"},BGN:{displayName:{other:"Bulgarian leva",one:"Bulgarian lev"},symbol:"BGN",narrow:"BGN"},BGO:{displayName:{other:"Bulgarian leva (1879–1952)",one:"Bulgarian lev (1879–1952)"},symbol:"BGO",narrow:"BGO"},BHD:{displayName:{other:"Bahraini dinars",one:"Bahraini dinar"},symbol:"BHD",narrow:"BHD"},BIF:{displayName:{other:"Burundian francs",one:"Burundian franc"},symbol:"BIF",narrow:"BIF"},BMD:{displayName:{other:"Bermudan dollars",one:"Bermudan dollar"},symbol:"BMD",narrow:"$"},BND:{displayName:{other:"Brunei dollars",one:"Brunei dollar"},symbol:"BND",narrow:"$"},BOB:{displayName:{other:"Bolivian bolivianos",one:"Bolivian boliviano"},symbol:"BOB",narrow:"Bs"},BOL:{displayName:{other:"Bolivian bolivianos (1863–1963)",one:"Bolivian boliviano (1863–1963)"},symbol:"BOL",narrow:"BOL"},BOP:{displayName:{other:"Bolivian pesos",one:"Bolivian peso"},symbol:"BOP",narrow:"BOP"},BOV:{displayName:{other:"Bolivian mvdols",one:"Bolivian mvdol"},symbol:"BOV",narrow:"BOV"},BRB:{displayName:{other:"Brazilian new cruzeiros (1967–1986)",one:"Brazilian new cruzeiro (1967–1986)"},symbol:"BRB",narrow:"BRB"},BRC:{displayName:{other:"Brazilian cruzados (1986–1989)",one:"Brazilian cruzado (1986–1989)"},symbol:"BRC",narrow:"BRC"},BRE:{displayName:{other:"Brazilian cruzeiros (1990–1993)",one:"Brazilian cruzeiro (1990–1993)"},symbol:"BRE",narrow:"BRE"},BRL:{displayName:{other:"Brazilian reals",one:"Brazilian real"},symbol:"R$",narrow:"R$"},BRN:{displayName:{other:"Brazilian new cruzados (1989–1990)",one:"Brazilian new cruzado (1989–1990)"},symbol:"BRN",narrow:"BRN"},BRR:{displayName:{other:"Brazilian cruzeiros (1993–1994)",one:"Brazilian cruzeiro (1993–1994)"},symbol:"BRR",narrow:"BRR"},BRZ:{displayName:{other:"Brazilian cruzeiros (1942–1967)",one:"Brazilian cruzeiro (1942–1967)"},symbol:"BRZ",narrow:"BRZ"},BSD:{displayName:{other:"Bahamian dollars",one:"Bahamian dollar"},symbol:"BSD",narrow:"$"},BTN:{displayName:{other:"Bhutanese ngultrums",one:"Bhutanese ngultrum"},symbol:"BTN",narrow:"BTN"},BUK:{displayName:{other:"Burmese kyats",one:"Burmese kyat"},symbol:"BUK",narrow:"BUK"},BWP:{displayName:{other:"Botswanan pulas",one:"Botswanan pula"},symbol:"BWP",narrow:"P"},BYB:{displayName:{other:"Belarusian rubles (1994–1999)",one:"Belarusian ruble (1994–1999)"},symbol:"BYB",narrow:"BYB"},BYN:{displayName:{other:"Belarusian rubles",one:"Belarusian ruble"},symbol:"BYN",narrow:"р."},BYR:{displayName:{other:"Belarusian rubles (2000–2016)",one:"Belarusian ruble (2000–2016)"},symbol:"BYR",narrow:"BYR"},BZD:{displayName:{other:"Belize dollars",one:"Belize dollar"},symbol:"BZD",narrow:"$"},CAD:{displayName:{other:"Canadian dollars",one:"Canadian dollar"},symbol:"CA$",narrow:"$"},CDF:{displayName:{other:"Congolese francs",one:"Congolese franc"},symbol:"CDF",narrow:"CDF"},CHE:{displayName:{other:"WIR euros",one:"WIR euro"},symbol:"CHE",narrow:"CHE"},CHF:{displayName:{other:"Swiss francs",one:"Swiss franc"},symbol:"CHF",narrow:"CHF"},CHW:{displayName:{other:"WIR francs",one:"WIR franc"},symbol:"CHW",narrow:"CHW"},CLE:{displayName:{other:"Chilean escudos",one:"Chilean escudo"},symbol:"CLE",narrow:"CLE"},CLF:{displayName:{other:"Chilean units of account (UF)",one:"Chilean unit of account (UF)"},symbol:"CLF",narrow:"CLF"},CLP:{displayName:{other:"Chilean pesos",one:"Chilean peso"},symbol:"CLP",narrow:"$"},CNH:{displayName:{other:"Chinese yuan (offshore)"},symbol:"CNH",narrow:"CNH"},CNX:{displayName:{other:"Chinese People’s Bank dollars",one:"Chinese People’s Bank dollar"},symbol:"CNX",narrow:"CNX"},CNY:{displayName:{other:"Chinese yuan"},symbol:"CN¥",narrow:"¥"},COP:{displayName:{other:"Colombian pesos",one:"Colombian peso"},symbol:"COP",narrow:"$"},COU:{displayName:{other:"Colombian real value units",one:"Colombian real value unit"},symbol:"COU",narrow:"COU"},CRC:{displayName:{other:"Costa Rican colóns",one:"Costa Rican colón"},symbol:"CRC",narrow:"₡"},CSD:{displayName:{other:"Serbian dinars (2002–2006)",one:"Serbian dinar (2002–2006)"},symbol:"CSD",narrow:"CSD"},CSK:{displayName:{other:"Czechoslovak hard korunas",one:"Czechoslovak hard koruna"},symbol:"CSK",narrow:"CSK"},CUC:{displayName:{other:"Cuban convertible pesos",one:"Cuban convertible peso"},symbol:"CUC",narrow:"$"},CUP:{displayName:{other:"Cuban pesos",one:"Cuban peso"},symbol:"CUP",narrow:"$"},CVE:{displayName:{other:"Cape Verdean escudos",one:"Cape Verdean escudo"},symbol:"CVE",narrow:"CVE"},CYP:{displayName:{other:"Cypriot pounds",one:"Cypriot pound"},symbol:"CYP",narrow:"CYP"},CZK:{displayName:{other:"Czech korunas",one:"Czech koruna"},symbol:"CZK",narrow:"Kč"},DDM:{displayName:{other:"East German marks",one:"East German mark"},symbol:"DDM",narrow:"DDM"},DEM:{displayName:{other:"German marks",one:"German mark"},symbol:"DEM",narrow:"DEM"},DJF:{displayName:{other:"Djiboutian francs",one:"Djiboutian franc"},symbol:"DJF",narrow:"DJF"},DKK:{displayName:{other:"Danish kroner",one:"Danish krone"},symbol:"DKK",narrow:"kr"},DOP:{displayName:{other:"Dominican pesos",one:"Dominican peso"},symbol:"DOP",narrow:"$"},DZD:{displayName:{other:"Algerian dinars",one:"Algerian dinar"},symbol:"DZD",narrow:"DZD"},ECS:{displayName:{other:"Ecuadorian sucres",one:"Ecuadorian sucre"},symbol:"ECS",narrow:"ECS"},ECV:{displayName:{other:"Ecuadorian units of constant value",one:"Ecuadorian unit of constant value"},symbol:"ECV",narrow:"ECV"},EEK:{displayName:{other:"Estonian kroons",one:"Estonian kroon"},symbol:"EEK",narrow:"EEK"},EGP:{displayName:{other:"Egyptian pounds",one:"Egyptian pound"},symbol:"EGP",narrow:"E£"},ERN:{displayName:{other:"Eritrean nakfas",one:"Eritrean nakfa"},symbol:"ERN",narrow:"ERN"},ESA:{displayName:{other:"Spanish pesetas (A account)",one:"Spanish peseta (A account)"},symbol:"ESA",narrow:"ESA"},ESB:{displayName:{other:"Spanish pesetas (convertible account)",one:"Spanish peseta (convertible account)"},symbol:"ESB",narrow:"ESB"},ESP:{displayName:{other:"Spanish pesetas",one:"Spanish peseta"},symbol:"ESP",narrow:"₧"},ETB:{displayName:{other:"Ethiopian birrs",one:"Ethiopian birr"},symbol:"ETB",narrow:"ETB"},EUR:{displayName:{other:"euros",one:"euro"},symbol:"€",narrow:"€"},FIM:{displayName:{other:"Finnish markkas",one:"Finnish markka"},symbol:"FIM",narrow:"FIM"},FJD:{displayName:{other:"Fijian dollars",one:"Fijian dollar"},symbol:"FJD",narrow:"$"},FKP:{displayName:{other:"Falkland Islands pounds",one:"Falkland Islands pound"},symbol:"FKP",narrow:"£"},FRF:{displayName:{other:"French francs",one:"French franc"},symbol:"FRF",narrow:"FRF"},GBP:{displayName:{other:"British pounds",one:"British pound"},symbol:"£",narrow:"£"},GEK:{displayName:{other:"Georgian kupon larits",one:"Georgian kupon larit"},symbol:"GEK",narrow:"GEK"},GEL:{displayName:{other:"Georgian laris",one:"Georgian lari"},symbol:"GEL",narrow:"₾"},GHC:{displayName:{other:"Ghanaian cedis (1979–2007)",one:"Ghanaian cedi (1979–2007)"},symbol:"GHC",narrow:"GHC"},GHS:{displayName:{other:"Ghanaian cedis",one:"Ghanaian cedi"},symbol:"GHS",narrow:"GH₵"},GIP:{displayName:{other:"Gibraltar pounds",one:"Gibraltar pound"},symbol:"GIP",narrow:"£"},GMD:{displayName:{other:"Gambian dalasis",one:"Gambian dalasi"},symbol:"GMD",narrow:"GMD"},GNF:{displayName:{other:"Guinean francs",one:"Guinean franc"},symbol:"GNF",narrow:"FG"},GNS:{displayName:{other:"Guinean sylis",one:"Guinean syli"},symbol:"GNS",narrow:"GNS"},GQE:{displayName:{other:"Equatorial Guinean ekwele"},symbol:"GQE",narrow:"GQE"},GRD:{displayName:{other:"Greek drachmas",one:"Greek drachma"},symbol:"GRD",narrow:"GRD"},GTQ:{displayName:{other:"Guatemalan quetzals",one:"Guatemalan quetzal"},symbol:"GTQ",narrow:"Q"},GWE:{displayName:{other:"Portuguese Guinea escudos",one:"Portuguese Guinea escudo"},symbol:"GWE",narrow:"GWE"},GWP:{displayName:{other:"Guinea-Bissau pesos",one:"Guinea-Bissau peso"},symbol:"GWP",narrow:"GWP"},GYD:{displayName:{other:"Guyanaese dollars",one:"Guyanaese dollar"},symbol:"GYD",narrow:"$"},HKD:{displayName:{other:"Hong Kong dollars",one:"Hong Kong dollar"},symbol:"HK$",narrow:"$"},HNL:{displayName:{other:"Honduran lempiras",one:"Honduran lempira"},symbol:"HNL",narrow:"L"},HRD:{displayName:{other:"Croatian dinars",one:"Croatian dinar"},symbol:"HRD",narrow:"HRD"},HRK:{displayName:{other:"Croatian kunas",one:"Croatian kuna"},symbol:"HRK",narrow:"kn"},HTG:{displayName:{other:"Haitian gourdes",one:"Haitian gourde"},symbol:"HTG",narrow:"HTG"},HUF:{displayName:{other:"Hungarian forints",one:"Hungarian forint"},symbol:"HUF",narrow:"Ft"},IDR:{displayName:{other:"Indonesian rupiahs",one:"Indonesian rupiah"},symbol:"IDR",narrow:"Rp"},IEP:{displayName:{other:"Irish pounds",one:"Irish pound"},symbol:"IEP",narrow:"IEP"},ILP:{displayName:{other:"Israeli pounds",one:"Israeli pound"},symbol:"ILP",narrow:"ILP"},ILR:{displayName:{other:"Israeli shekels (1980–1985)",one:"Israeli shekel (1980–1985)"},symbol:"ILR",narrow:"ILR"},ILS:{displayName:{other:"Israeli new shekels",one:"Israeli new shekel"},symbol:"₪",narrow:"₪"},INR:{displayName:{other:"Indian rupees",one:"Indian rupee"},symbol:"₹",narrow:"₹"},IQD:{displayName:{other:"Iraqi dinars",one:"Iraqi dinar"},symbol:"IQD",narrow:"IQD"},IRR:{displayName:{other:"Iranian rials",one:"Iranian rial"},symbol:"IRR",narrow:"IRR"},ISJ:{displayName:{other:"Icelandic krónur (1918–1981)",one:"Icelandic króna (1918–1981)"},symbol:"ISJ",narrow:"ISJ"},ISK:{displayName:{other:"Icelandic krónur",one:"Icelandic króna"},symbol:"ISK",narrow:"kr"},ITL:{displayName:{other:"Italian liras",one:"Italian lira"},symbol:"ITL",narrow:"ITL"},JMD:{displayName:{other:"Jamaican dollars",one:"Jamaican dollar"},symbol:"JMD",narrow:"$"},JOD:{displayName:{other:"Jordanian dinars",one:"Jordanian dinar"},symbol:"JOD",narrow:"JOD"},JPY:{displayName:{other:"Japanese yen"},symbol:"¥",narrow:"¥"},KES:{displayName:{other:"Kenyan shillings",one:"Kenyan shilling"},symbol:"KES",narrow:"KES"},KGS:{displayName:{other:"Kyrgystani soms",one:"Kyrgystani som"},symbol:"KGS",narrow:"KGS"},KHR:{displayName:{other:"Cambodian riels",one:"Cambodian riel"},symbol:"KHR",narrow:"៛"},KMF:{displayName:{other:"Comorian francs",one:"Comorian franc"},symbol:"KMF",narrow:"CF"},KPW:{displayName:{other:"North Korean won"},symbol:"KPW",narrow:"₩"},KRH:{displayName:{other:"South Korean hwan (1953–1962)"},symbol:"KRH",narrow:"KRH"},KRO:{displayName:{other:"South Korean won (1945–1953)"},symbol:"KRO",narrow:"KRO"},KRW:{displayName:{other:"South Korean won"},symbol:"₩",narrow:"₩"},KWD:{displayName:{other:"Kuwaiti dinars",one:"Kuwaiti dinar"},symbol:"KWD",narrow:"KWD"},KYD:{displayName:{other:"Cayman Islands dollars",one:"Cayman Islands dollar"},symbol:"KYD",narrow:"$"},KZT:{displayName:{other:"Kazakhstani tenges",one:"Kazakhstani tenge"},symbol:"KZT",narrow:"₸"},LAK:{displayName:{other:"Laotian kips",one:"Laotian kip"},symbol:"LAK",narrow:"₭"},LBP:{displayName:{other:"Lebanese pounds",one:"Lebanese pound"},symbol:"LBP",narrow:"L£"},LKR:{displayName:{other:"Sri Lankan rupees",one:"Sri Lankan rupee"},symbol:"LKR",narrow:"Rs"},LRD:{displayName:{other:"Liberian dollars",one:"Liberian dollar"},symbol:"LRD",narrow:"$"},LSL:{displayName:{other:"Lesotho lotis",one:"Lesotho loti"},symbol:"LSL",narrow:"LSL"},LTL:{displayName:{other:"Lithuanian litai",one:"Lithuanian litas"},symbol:"LTL",narrow:"Lt"},LTT:{displayName:{other:"Lithuanian talonases",one:"Lithuanian talonas"},symbol:"LTT",narrow:"LTT"},LUC:{displayName:{other:"Luxembourgian convertible francs",one:"Luxembourgian convertible franc"},symbol:"LUC",narrow:"LUC"},LUF:{displayName:{other:"Luxembourgian francs",one:"Luxembourgian franc"},symbol:"LUF",narrow:"LUF"},LUL:{displayName:{other:"Luxembourg financial francs",one:"Luxembourg financial franc"},symbol:"LUL",narrow:"LUL"},LVL:{displayName:{other:"Latvian lati",one:"Latvian lats"},symbol:"LVL",narrow:"Ls"},LVR:{displayName:{other:"Latvian rubles",one:"Latvian ruble"},symbol:"LVR",narrow:"LVR"},LYD:{displayName:{other:"Libyan dinars",one:"Libyan dinar"},symbol:"LYD",narrow:"LYD"},MAD:{displayName:{other:"Moroccan dirhams",one:"Moroccan dirham"},symbol:"MAD",narrow:"MAD"},MAF:{displayName:{other:"Moroccan francs",one:"Moroccan franc"},symbol:"MAF",narrow:"MAF"},MCF:{displayName:{other:"Monegasque francs",one:"Monegasque franc"},symbol:"MCF",narrow:"MCF"},MDC:{displayName:{other:"Moldovan cupon"},symbol:"MDC",narrow:"MDC"},MDL:{displayName:{other:"Moldovan lei",one:"Moldovan leu"},symbol:"MDL",narrow:"MDL"},MGA:{displayName:{other:"Malagasy ariaries",one:"Malagasy ariary"},symbol:"MGA",narrow:"Ar"},MGF:{displayName:{other:"Malagasy francs",one:"Malagasy franc"},symbol:"MGF",narrow:"MGF"},MKD:{displayName:{other:"Macedonian denari",one:"Macedonian denar"},symbol:"MKD",narrow:"MKD"},MKN:{displayName:{other:"Macedonian denari (1992–1993)",one:"Macedonian denar (1992–1993)"},symbol:"MKN",narrow:"MKN"},MLF:{displayName:{other:"Malian francs",one:"Malian franc"},symbol:"MLF",narrow:"MLF"},MMK:{displayName:{other:"Myanmar kyats",one:"Myanmar kyat"},symbol:"MMK",narrow:"K"},MNT:{displayName:{other:"Mongolian tugriks",one:"Mongolian tugrik"},symbol:"MNT",narrow:"₮"},MOP:{displayName:{other:"Macanese patacas",one:"Macanese pataca"},symbol:"MOP",narrow:"MOP"},MRO:{displayName:{other:"Mauritanian ouguiyas (1973–2017)",one:"Mauritanian ouguiya (1973–2017)"},symbol:"MRO",narrow:"MRO"},MRU:{displayName:{other:"Mauritanian ouguiyas",one:"Mauritanian ouguiya"},symbol:"MRU",narrow:"MRU"},MTL:{displayName:{other:"Maltese lira"},symbol:"MTL",narrow:"MTL"},MTP:{displayName:{other:"Maltese pounds",one:"Maltese pound"},symbol:"MTP",narrow:"MTP"},MUR:{displayName:{other:"Mauritian rupees",one:"Mauritian rupee"},symbol:"MUR",narrow:"Rs"},MVP:{displayName:{other:"Maldivian rupees (1947–1981)",one:"Maldivian rupee (1947–1981)"},symbol:"MVP",narrow:"MVP"},MVR:{displayName:{other:"Maldivian rufiyaas",one:"Maldivian rufiyaa"},symbol:"MVR",narrow:"MVR"},MWK:{displayName:{other:"Malawian kwachas",one:"Malawian kwacha"},symbol:"MWK",narrow:"MWK"},MXN:{displayName:{other:"Mexican pesos",one:"Mexican peso"},symbol:"MX$",narrow:"$"},MXP:{displayName:{other:"Mexican silver pesos (1861–1992)",one:"Mexican silver peso (1861–1992)"},symbol:"MXP",narrow:"MXP"},MXV:{displayName:{other:"Mexican investment units",one:"Mexican investment unit"},symbol:"MXV",narrow:"MXV"},MYR:{displayName:{other:"Malaysian ringgits",one:"Malaysian ringgit"},symbol:"MYR",narrow:"RM"},MZE:{displayName:{other:"Mozambican escudos",one:"Mozambican escudo"},symbol:"MZE",narrow:"MZE"},MZM:{displayName:{other:"Mozambican meticals (1980–2006)",one:"Mozambican metical (1980–2006)"},symbol:"MZM",narrow:"MZM"},MZN:{displayName:{other:"Mozambican meticals",one:"Mozambican metical"},symbol:"MZN",narrow:"MZN"},NAD:{displayName:{other:"Namibian dollars",one:"Namibian dollar"},symbol:"NAD",narrow:"$"},NGN:{displayName:{other:"Nigerian nairas",one:"Nigerian naira"},symbol:"NGN",narrow:"₦"},NIC:{displayName:{other:"Nicaraguan córdobas (1988–1991)",one:"Nicaraguan córdoba (1988–1991)"},symbol:"NIC",narrow:"NIC"},NIO:{displayName:{other:"Nicaraguan córdobas",one:"Nicaraguan córdoba"},symbol:"NIO",narrow:"C$"},NLG:{displayName:{other:"Dutch guilders",one:"Dutch guilder"},symbol:"NLG",narrow:"NLG"},NOK:{displayName:{other:"Norwegian kroner",one:"Norwegian krone"},symbol:"NOK",narrow:"kr"},NPR:{displayName:{other:"Nepalese rupees",one:"Nepalese rupee"},symbol:"NPR",narrow:"Rs"},NZD:{displayName:{other:"New Zealand dollars",one:"New Zealand dollar"},symbol:"NZ$",narrow:"$"},OMR:{displayName:{other:"Omani rials",one:"Omani rial"},symbol:"OMR",narrow:"OMR"},PAB:{displayName:{other:"Panamanian balboas",one:"Panamanian balboa"},symbol:"PAB",narrow:"PAB"},PEI:{displayName:{other:"Peruvian intis",one:"Peruvian inti"},symbol:"PEI",narrow:"PEI"},PEN:{displayName:{other:"Peruvian soles",one:"Peruvian sol"},symbol:"PEN",narrow:"PEN"},PES:{displayName:{other:"Peruvian soles (1863–1965)",one:"Peruvian sol (1863–1965)"},symbol:"PES",narrow:"PES"},PGK:{displayName:{other:"Papua New Guinean kina"},symbol:"PGK",narrow:"PGK"},PHP:{displayName:{other:"Philippine pisos",one:"Philippine piso"},symbol:"₱",narrow:"₱"},PKR:{displayName:{other:"Pakistani rupees",one:"Pakistani rupee"},symbol:"PKR",narrow:"Rs"},PLN:{displayName:{other:"Polish zlotys",one:"Polish zloty"},symbol:"PLN",narrow:"zł"},PLZ:{displayName:{other:"Polish zlotys (PLZ)",one:"Polish zloty (PLZ)"},symbol:"PLZ",narrow:"PLZ"},PTE:{displayName:{other:"Portuguese escudos",one:"Portuguese escudo"},symbol:"PTE",narrow:"PTE"},PYG:{displayName:{other:"Paraguayan guaranis",one:"Paraguayan guarani"},symbol:"PYG",narrow:"₲"},QAR:{displayName:{other:"Qatari rials",one:"Qatari rial"},symbol:"QAR",narrow:"QAR"},RHD:{displayName:{other:"Rhodesian dollars",one:"Rhodesian dollar"},symbol:"RHD",narrow:"RHD"},ROL:{displayName:{other:"Romanian Lei (1952–2006)",one:"Romanian leu (1952–2006)"},symbol:"ROL",narrow:"ROL"},RON:{displayName:{other:"Romanian lei",one:"Romanian leu"},symbol:"RON",narrow:"lei"},RSD:{displayName:{other:"Serbian dinars",one:"Serbian dinar"},symbol:"RSD",narrow:"RSD"},RUB:{displayName:{other:"Russian rubles",one:"Russian ruble"},symbol:"RUB",narrow:"₽"},RUR:{displayName:{other:"Russian rubles (1991–1998)",one:"Russian ruble (1991–1998)"},symbol:"RUR",narrow:"р."},RWF:{displayName:{other:"Rwandan francs",one:"Rwandan franc"},symbol:"RWF",narrow:"RF"},SAR:{displayName:{other:"Saudi riyals",one:"Saudi riyal"},symbol:"SAR",narrow:"SAR"},SBD:{displayName:{other:"Solomon Islands dollars",one:"Solomon Islands dollar"},symbol:"SBD",narrow:"$"},SCR:{displayName:{other:"Seychellois rupees",one:"Seychellois rupee"},symbol:"SCR",narrow:"SCR"},SDD:{displayName:{other:"Sudanese dinars (1992–2007)",one:"Sudanese dinar (1992–2007)"},symbol:"SDD",narrow:"SDD"},SDG:{displayName:{other:"Sudanese pounds",one:"Sudanese pound"},symbol:"SDG",narrow:"SDG"},SDP:{displayName:{other:"Sudanese pounds (1957–1998)",one:"Sudanese pound (1957–1998)"},symbol:"SDP",narrow:"SDP"},SEK:{displayName:{other:"Swedish kronor",one:"Swedish krona"},symbol:"SEK",narrow:"kr"},SGD:{displayName:{other:"Singapore dollars",one:"Singapore dollar"},symbol:"SGD",narrow:"$"},SHP:{displayName:{other:"St. Helena pounds",one:"St. Helena pound"},symbol:"SHP",narrow:"£"},SIT:{displayName:{other:"Slovenian tolars",one:"Slovenian tolar"},symbol:"SIT",narrow:"SIT"},SKK:{displayName:{other:"Slovak korunas",one:"Slovak koruna"},symbol:"SKK",narrow:"SKK"},SLL:{displayName:{other:"Sierra Leonean leones",one:"Sierra Leonean leone"},symbol:"SLL",narrow:"SLL"},SOS:{displayName:{other:"Somali shillings",one:"Somali shilling"},symbol:"SOS",narrow:"SOS"},SRD:{displayName:{other:"Surinamese dollars",one:"Surinamese dollar"},symbol:"SRD",narrow:"$"},SRG:{displayName:{other:"Surinamese guilders",one:"Surinamese guilder"},symbol:"SRG",narrow:"SRG"},SSP:{displayName:{other:"South Sudanese pounds",one:"South Sudanese pound"},symbol:"SSP",narrow:"£"},STD:{displayName:{other:"São Tomé & Príncipe dobras (1977–2017)",one:"São Tomé & Príncipe dobra (1977–2017)"},symbol:"STD",narrow:"STD"},STN:{displayName:{other:"São Tomé & Príncipe dobras",one:"São Tomé & Príncipe dobra"},symbol:"STN",narrow:"Db"},SUR:{displayName:{other:"Soviet roubles",one:"Soviet rouble"},symbol:"SUR",narrow:"SUR"},SVC:{displayName:{other:"Salvadoran colones",one:"Salvadoran colón"},symbol:"SVC",narrow:"SVC"},SYP:{displayName:{other:"Syrian pounds",one:"Syrian pound"},symbol:"SYP",narrow:"£"},SZL:{displayName:{other:"Swazi emalangeni",one:"Swazi lilangeni"},symbol:"SZL",narrow:"SZL"},THB:{displayName:{other:"Thai baht"},symbol:"THB",narrow:"฿"},TJR:{displayName:{other:"Tajikistani rubles",one:"Tajikistani ruble"},symbol:"TJR",narrow:"TJR"},TJS:{displayName:{other:"Tajikistani somonis",one:"Tajikistani somoni"},symbol:"TJS",narrow:"TJS"},TMM:{displayName:{other:"Turkmenistani manat (1993–2009)"},symbol:"TMM",narrow:"TMM"},TMT:{displayName:{other:"Turkmenistani manat"},symbol:"TMT",narrow:"TMT"},TND:{displayName:{other:"Tunisian dinars",one:"Tunisian dinar"},symbol:"TND",narrow:"TND"},TOP:{displayName:{other:"Tongan paʻanga"},symbol:"TOP",narrow:"T$"},TPE:{displayName:{other:"Timorese escudos",one:"Timorese escudo"},symbol:"TPE",narrow:"TPE"},TRL:{displayName:{other:"Turkish Lira (1922–2005)",one:"Turkish lira (1922–2005)"},symbol:"TRL",narrow:"TRL"},TRY:{displayName:{other:"Turkish Lira",one:"Turkish lira"},symbol:"TRY",narrow:"₺"},TTD:{displayName:{other:"Trinidad & Tobago dollars",one:"Trinidad & Tobago dollar"},symbol:"TTD",narrow:"$"},TWD:{displayName:{other:"New Taiwan dollars",one:"New Taiwan dollar"},symbol:"NT$",narrow:"$"},TZS:{displayName:{other:"Tanzanian shillings",one:"Tanzanian shilling"},symbol:"TZS",narrow:"TZS"},UAH:{displayName:{other:"Ukrainian hryvnias",one:"Ukrainian hryvnia"},symbol:"UAH",narrow:"₴"},UAK:{displayName:{other:"Ukrainian karbovantsiv",one:"Ukrainian karbovanets"},symbol:"UAK",narrow:"UAK"},UGS:{displayName:{other:"Ugandan shillings (1966–1987)",one:"Ugandan shilling (1966–1987)"},symbol:"UGS",narrow:"UGS"},UGX:{displayName:{other:"Ugandan shillings",one:"Ugandan shilling"},symbol:"UGX",narrow:"UGX"},USD:{displayName:{other:"US dollars",one:"US dollar"},symbol:"$",narrow:"$"},USN:{displayName:{other:"US dollars (next day)",one:"US dollar (next day)"},symbol:"USN",narrow:"USN"},USS:{displayName:{other:"US dollars (same day)",one:"US dollar (same day)"},symbol:"USS",narrow:"USS"},UYI:{displayName:{other:"Uruguayan pesos (indexed units)",one:"Uruguayan peso (indexed units)"},symbol:"UYI",narrow:"UYI"},UYP:{displayName:{other:"Uruguayan pesos (1975–1993)",one:"Uruguayan peso (1975–1993)"},symbol:"UYP",narrow:"UYP"},UYU:{displayName:{other:"Uruguayan pesos",one:"Uruguayan peso"},symbol:"UYU",narrow:"$"},UYW:{displayName:{other:"Uruguayan nominal wage index units",one:"Uruguayan nominal wage index unit"},symbol:"UYW",narrow:"UYW"},UZS:{displayName:{other:"Uzbekistani som"},symbol:"UZS",narrow:"UZS"},VEB:{displayName:{other:"Venezuelan bolívars (1871–2008)",one:"Venezuelan bolívar (1871–2008)"},symbol:"VEB",narrow:"VEB"},VEF:{displayName:{other:"Venezuelan bolívars (2008–2018)",one:"Venezuelan bolívar (2008–2018)"},symbol:"VEF",narrow:"Bs"},VES:{displayName:{other:"Venezuelan bolívars",one:"Venezuelan bolívar"},symbol:"VES",narrow:"VES"},VND:{displayName:{other:"Vietnamese dong"},symbol:"₫",narrow:"₫"},VNN:{displayName:{other:"Vietnamese dong (1978–1985)"},symbol:"VNN",narrow:"VNN"},VUV:{displayName:{other:"Vanuatu vatus",one:"Vanuatu vatu"},symbol:"VUV",narrow:"VUV"},WST:{displayName:{other:"Samoan tala"},symbol:"WST",narrow:"WST"},XAF:{displayName:{other:"Central African CFA francs",one:"Central African CFA franc"},symbol:"FCFA",narrow:"FCFA"},XAG:{displayName:{other:"troy ounces of silver",one:"troy ounce of silver"},symbol:"XAG",narrow:"XAG"},XAU:{displayName:{other:"troy ounces of gold",one:"troy ounce of gold"},symbol:"XAU",narrow:"XAU"},XBA:{displayName:{other:"European composite units",one:"European composite unit"},symbol:"XBA",narrow:"XBA"},XBB:{displayName:{other:"European monetary units",one:"European monetary unit"},symbol:"XBB",narrow:"XBB"},XBC:{displayName:{other:"European units of account (XBC)",one:"European unit of account (XBC)"},symbol:"XBC",narrow:"XBC"},XBD:{displayName:{other:"European units of account (XBD)",one:"European unit of account (XBD)"},symbol:"XBD",narrow:"XBD"},XCD:{displayName:{other:"East Caribbean dollars",one:"East Caribbean dollar"},symbol:"EC$",narrow:"$"},XDR:{displayName:{other:"special drawing rights"},symbol:"XDR",narrow:"XDR"},XEU:{displayName:{other:"European currency units",one:"European currency unit"},symbol:"XEU",narrow:"XEU"},XFO:{displayName:{other:"French gold francs",one:"French gold franc"},symbol:"XFO",narrow:"XFO"},XFU:{displayName:{other:"French UIC-francs",one:"French UIC-franc"},symbol:"XFU",narrow:"XFU"},XOF:{displayName:{other:"West African CFA francs",one:"West African CFA franc"},symbol:"F CFA",narrow:"F CFA"},XPD:{displayName:{other:"troy ounces of palladium",one:"troy ounce of palladium"},symbol:"XPD",narrow:"XPD"},XPF:{displayName:{other:"CFP francs",one:"CFP franc"},symbol:"CFPF",narrow:"CFPF"},XPT:{displayName:{other:"troy ounces of platinum",one:"troy ounce of platinum"},symbol:"XPT",narrow:"XPT"},XRE:{displayName:{other:"RINET Funds units",one:"RINET Funds unit"},symbol:"XRE",narrow:"XRE"},XSU:{displayName:{other:"Sucres",one:"Sucre"},symbol:"XSU",narrow:"XSU"},XTS:{displayName:{other:"Testing Currency units",one:"Testing Currency unit"},symbol:"XTS",narrow:"XTS"},XUA:{displayName:{other:"ADB units of account",one:"ADB unit of account"},symbol:"XUA",narrow:"XUA"},XXX:{displayName:{other:"(unknown currency)",one:"(unknown unit of currency)"},symbol:"¤",narrow:"¤"},YDD:{displayName:{other:"Yemeni dinars",one:"Yemeni dinar"},symbol:"YDD",narrow:"YDD"},YER:{displayName:{other:"Yemeni rials",one:"Yemeni rial"},symbol:"YER",narrow:"YER"},YUD:{displayName:{other:"Yugoslavian hard dinars (1966–1990)",one:"Yugoslavian hard dinar (1966–1990)"},symbol:"YUD",narrow:"YUD"},YUM:{displayName:{other:"Yugoslavian new dinars (1994–2002)",one:"Yugoslavian new dinar (1994–2002)"},symbol:"YUM",narrow:"YUM"},YUN:{displayName:{other:"Yugoslavian convertible dinars (1990–1992)",one:"Yugoslavian convertible dinar (1990–1992)"},symbol:"YUN",narrow:"YUN"},YUR:{displayName:{other:"Yugoslavian reformed dinars (1992–1993)",one:"Yugoslavian reformed dinar (1992–1993)"},symbol:"YUR",narrow:"YUR"},ZAL:{displayName:{other:"South African rands (financial)",one:"South African rand (financial)"},symbol:"ZAL",narrow:"ZAL"},ZAR:{displayName:{other:"South African rand"},symbol:"ZAR",narrow:"R"},ZMK:{displayName:{other:"Zambian kwachas (1968–2012)",one:"Zambian kwacha (1968–2012)"},symbol:"ZMK",narrow:"ZMK"},ZMW:{displayName:{other:"Zambian kwachas",one:"Zambian kwacha"},symbol:"ZMW",narrow:"ZK"},ZRN:{displayName:{other:"Zairean new zaires (1993–1998)",one:"Zairean new zaire (1993–1998)"},symbol:"ZRN",narrow:"ZRN"},ZRZ:{displayName:{other:"Zairean zaires (1971–1993)",one:"Zairean zaire (1971–1993)"},symbol:"ZRZ",narrow:"ZRZ"},ZWD:{displayName:{other:"Zimbabwean dollars (1980–2008)",one:"Zimbabwean dollar (1980–2008)"},symbol:"ZWD",narrow:"ZWD"},ZWL:{displayName:{other:"Zimbabwean dollars (2009)",one:"Zimbabwean dollar (2009)"},symbol:"ZWL",narrow:"ZWL"},ZWR:{displayName:{other:"Zimbabwean dollars (2008)",one:"Zimbabwean dollar (2008)"},symbol:"ZWR",narrow:"ZWR"}},numbers:{nu:["latn"],symbols:{latn:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",approximatelySign:"~",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"}},percent:{latn:"#,##0%"},decimal:{latn:{standard:"#,##0.###",long:{1e3:{other:"0 thousand"},1e4:{other:"00 thousand"},1e5:{other:"000 thousand"},1e6:{other:"0 million"},1e7:{other:"00 million"},1e8:{other:"000 million"},1e9:{other:"0 billion"},1e10:{other:"00 billion"},1e11:{other:"000 billion"},1e12:{other:"0 trillion"},1e13:{other:"00 trillion"},1e14:{other:"000 trillion"}},short:{1e3:{other:"0K"},1e4:{other:"00K"},1e5:{other:"000K"},1e6:{other:"0M"},1e7:{other:"00M"},1e8:{other:"000M"},1e9:{other:"0B"},1e10:{other:"00B"},1e11:{other:"000B"},1e12:{other:"0T"},1e13:{other:"00T"},1e14:{other:"000T"}}}},currency:{latn:{currencySpacing:{beforeInsertBetween:" ",afterInsertBetween:" "},standard:"¤#,##0.00",accounting:"¤#,##0.00;(¤#,##0.00)",unitPattern:"{0} {1}",short:{1e3:{other:"¤0K"},1e4:{other:"¤00K"},1e5:{other:"¤000K"},1e6:{other:"¤0M"},1e7:{other:"¤00M"},1e8:{other:"¤000M"},1e9:{other:"¤0B"},1e10:{other:"¤00B"},1e11:{other:"¤000B"},1e12:{other:"¤0T"},1e13:{other:"¤00T"},1e14:{other:"¤000T"}}}}},nu:["latn"]},locale:"en"})},23044:function(e,t,r){"use strict";var n=r(2624),i=r(95466),o=r(71160);r(99331).shouldPolyfill()&&(o.defineProperty(Intl,"NumberFormat",{value:n.NumberFormat}),o.defineProperty(Number.prototype,"toLocaleString",{value:function(e,t){return i.toLocaleString(this,e,t)}}))},99331:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldPolyfill=void 0,t.shouldPolyfill=function(e){return"undefined"==typeof Intl||!("NumberFormat"in Intl)||!function(){try{if("1E4 bits"!==new Intl.NumberFormat("en",{style:"unit",unit:"bit",unitDisplay:"long",notation:"scientific"}).format(1e4))return!1}catch(e){return!1}return!0}()||!Intl.NumberFormat.polyfilled&&!Intl.NumberFormat.supportedLocalesOf(["es"]).length||!function(e){if(!e)return!0;var t=Array.isArray(e)?e:[e];return Intl.NumberFormat.supportedLocalesOf(t).length===t.length}(e)}},2624:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.NumberFormat=void 0;var i=r(87480),o=r(71160),a=r(54129),s=r(13649),c=i.__importDefault(r(75505)),l=["locale","numberingSystem","style","currency","currencyDisplay","currencySign","unit","unitDisplay","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","useGrouping","notation","compactDisplay","signDisplay"];function u(e){return o.FormatNumericToParts(this,f(e),{getInternalSlots:c.default})}t.NumberFormat=function(e,r){if(!this||!o.OrdinaryHasInstance(t.NumberFormat,this))return new t.NumberFormat(e,r);o.InitializeNumberFormat(this,e,r,{getInternalSlots:c.default,localeData:t.NumberFormat.localeData,availableLocales:t.NumberFormat.availableLocales,getDefaultLocale:t.NumberFormat.getDefaultLocale,currencyDigitsData:a.currencyDigitsData,numberingSystemNames:s.numberingSystemNames});var n=c.default(this),i=n.dataLocale,l=t.NumberFormat.localeData[i];return o.invariant(void 0!==l,"Cannot load locale-dependent data for "+i+"."),n.pl=new Intl.PluralRules(i,{minimumFractionDigits:n.minimumFractionDigits,maximumFractionDigits:n.maximumFractionDigits,minimumIntegerDigits:n.minimumIntegerDigits,minimumSignificantDigits:n.minimumSignificantDigits,maximumSignificantDigits:n.maximumSignificantDigits}),this};try{Object.defineProperty(u,"name",{value:"formatToParts",enumerable:!1,writable:!1,configurable:!0})}catch(p){}o.defineProperty(t.NumberFormat.prototype,"formatToParts",{value:u}),o.defineProperty(t.NumberFormat.prototype,"resolvedOptions",{value:function(){if("object"!==n(this)||!o.OrdinaryHasInstance(t.NumberFormat,this))throw TypeError("Method Intl.NumberFormat.prototype.resolvedOptions called on incompatible receiver");for(var e=c.default(this),r={},i=0,a=l;i0&&void 0!==arguments[0]?arguments[0]:window.document,t=e.activeElement,r=[];if(!t)return r;for(;t&&(r.push(t),t.shadowRoot);)t=t.shadowRoot.activeElement;return r},c=function(e){var t=s();if(!t.length)return!1;var r=t[t.length-1],n=new Event("check-if-focused",{bubbles:!0,composed:!0}),i=[],o=function(e){i=e.composedPath()};return document.body.addEventListener("check-if-focused",o),r.dispatchEvent(n),document.body.removeEventListener("check-if-focused",o),-1!==i.indexOf(e)}},89579:function(e,t,r){"use strict";var n,i=r(87480),o=r(50293);var a,s,c,l=(0,o.iv)(n||(a=[':host{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"}'],s||(s=a.slice(0)),n=Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(s)}}))));function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r
    "])))}}],r&&f(t.prototype,r),n&&f(t,n),a}(o.oi);v.styles=[l],v=(0,i.__decorate)([(0,o.Mo)("mwc-icon")],v);r(91156);var b,g,_,w,k=r(38103),E=r(98734),x=r(59685),S=r(88668);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function T(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var r=0;r'])),!e,this.disabled):""}},{key:"focus",value:function(){var e=this.buttonElement;e&&(this.rippleHandlers.startFocus(),e.focus())}},{key:"blur",value:function(){var e=this.buttonElement;e&&(this.rippleHandlers.endFocus(),e.blur())}},{key:"getRenderClasses",value:function(){return{"mdc-button--raised":this.raised,"mdc-button--unelevated":this.unelevated,"mdc-button--outlined":this.outlined,"mdc-button--dense":this.dense}}},{key:"render",value:function(){return(0,o.dy)(_||(_=T(['\n \n ',"\n ",'\n \n \n ','\n \n \n ','\n \n \n \n \n \n ',"\n \n \n "])),(0,x.$)(this.getRenderClasses()),this.disabled,this.label||this.icon,(0,S.o)(this.ariaHasPopup),this.handleRippleFocus,this.handleRippleBlur,this.handleRippleActivate,this.handleRippleMouseEnter,this.handleRippleMouseLeave,this.handleRippleActivate,this.handleRippleDeactivate,this.handleRippleDeactivate,this.renderOverlay(),this.renderRipple(),this.icon&&!this.trailingIcon?this.renderIcon():"",this.label,(0,x.$)({flex:this.expandContent}),this.icon&&this.trailingIcon?this.renderIcon():"")}},{key:"renderIcon",value:function(){return(0,o.dy)(w||(w=T(['\n \n ',"\n "])),this.icon)}},{key:"handleRippleActivate",value:function(e){var t=this;window.addEventListener("mouseup",(function e(){window.removeEventListener("mouseup",e),t.handleRippleDeactivate()})),this.rippleHandlers.startPress(e)}},{key:"handleRippleDeactivate",value:function(){this.rippleHandlers.endPress()}},{key:"handleRippleMouseEnter",value:function(){this.rippleHandlers.startHover()}},{key:"handleRippleMouseLeave",value:function(){this.rippleHandlers.endHover()}},{key:"handleRippleFocus",value:function(){this.rippleHandlers.startFocus()}},{key:"handleRippleBlur",value:function(){this.rippleHandlers.endFocus()}}])&&O(t.prototype,r),n&&O(t,n),a}(o.oi);I.shadowRootOptions={mode:"open",delegatesFocus:!0},(0,i.__decorate)([k.L,(0,o.Cb)({type:String,attribute:"aria-haspopup"})],I.prototype,"ariaHasPopup",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],I.prototype,"raised",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],I.prototype,"unelevated",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],I.prototype,"outlined",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean})],I.prototype,"dense",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],I.prototype,"disabled",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,attribute:"trailingicon"})],I.prototype,"trailingIcon",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],I.prototype,"fullwidth",void 0),(0,i.__decorate)([(0,o.Cb)({type:String})],I.prototype,"icon",void 0),(0,i.__decorate)([(0,o.Cb)({type:String})],I.prototype,"label",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean})],I.prototype,"expandContent",void 0),(0,i.__decorate)([(0,o.IO)("#button")],I.prototype,"buttonElement",void 0),(0,i.__decorate)([(0,o.GC)("mwc-ripple")],I.prototype,"ripple",void 0),(0,i.__decorate)([(0,o.SB)()],I.prototype,"shouldRenderRipple",void 0),(0,i.__decorate)([(0,o.hO)({passive:!0})],I.prototype,"handleRippleActivate",null);var j=(0,o.iv)(L||(L=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".mdc-button{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-button-text-transform, uppercase)}.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:transparent}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:transparent}.mdc-button{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button:not(:disabled){color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-button:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button .mdc-button__icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mdc-button .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--raised,.mdc-button--unelevated{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--raised:not(:disabled),.mdc-button--unelevated:not(:disabled){background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee)}.mdc-button--raised:disabled,.mdc-button--unelevated:disabled{background-color:rgba(0, 0, 0, 0.12)}.mdc-button--raised:not(:disabled),.mdc-button--unelevated:not(:disabled){color:#fff;color:var(--mdc-theme-on-primary, #fff)}.mdc-button--raised:disabled,.mdc-button--unelevated:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button--raised .mdc-button__icon,.mdc-button--unelevated .mdc-button__icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mdc-button--raised .mdc-button__ripple,.mdc-button--unelevated .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--outlined{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px);padding:0 15px 0 15px;border-width:1px}.mdc-button--outlined:not(:disabled){color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-button--outlined:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button--outlined .mdc-button__icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mdc-button--outlined .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--outlined:not(:disabled){border-color:rgba(0, 0, 0, 0.12)}.mdc-button--outlined:disabled{border-color:rgba(0, 0, 0, 0.12)}.mdc-button--outlined.mdc-button--icon-trailing{padding:0 11px 0 15px}.mdc-button--outlined.mdc-button--icon-leading{padding:0 15px 0 11px}.mdc-button--outlined .mdc-button__ripple{top:calc(-1 * 1px);left:calc(-1 * 1px);border-width:1px}.mdc-button--outlined .mdc-button__touch{left:calc(-1 * 1px);width:calc(100% + 2 * 1px)}.mdc-button--raised{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);transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--raised:hover,.mdc-button--raised:focus{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2),0px 4px 5px 0px rgba(0, 0, 0, 0.14),0px 1px 10px 0px rgba(0,0,0,.12)}.mdc-button--raised:active{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)}.mdc-button--raised:disabled{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2),0px 0px 0px 0px rgba(0, 0, 0, 0.14),0px 0px 0px 0px rgba(0,0,0,.12)}:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:transparent;vertical-align:top}:host([fullwidth]){width:100%}:host([raised]),:host([unelevated]){--mdc-ripple-color:#fff;--mdc-ripple-focus-opacity:0.24;--mdc-ripple-hover-opacity:0.08;--mdc-ripple-press-opacity:0.24}.trailing-icon ::slotted(*),.trailing-icon .mdc-button__icon,.leading-icon ::slotted(*),.leading-icon .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .trailing-icon ::slotted(*),[dir=rtl] .trailing-icon .mdc-button__icon,[dir=rtl] .leading-icon ::slotted(*),[dir=rtl] .leading-icon .mdc-button__icon,.trailing-icon ::slotted(*[dir=rtl]),.trailing-icon .mdc-button__icon[dir=rtl],.leading-icon ::slotted(*[dir=rtl]),.leading-icon .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.trailing-icon ::slotted(*),.trailing-icon .mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .trailing-icon ::slotted(*),[dir=rtl] .trailing-icon .mdc-button__icon,.trailing-icon ::slotted(*[dir=rtl]),.trailing-icon .mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}.slot-container{display:inline-flex;align-items:center;justify-content:center}.slot-container.flex{flex:auto}.mdc-button{flex:auto;overflow:hidden;padding-left:8px;padding-left:var(--mdc-button-horizontal-padding, 8px);padding-right:8px;padding-right:var(--mdc-button-horizontal-padding, 8px)}.mdc-button--raised{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, 0.12);box-shadow:var(--mdc-button-raised-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, 0.12))}.mdc-button--raised:focus{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-focus, var(--mdc-button-raised-box-shadow-hover, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)))}.mdc-button--raised:hover{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-hover, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised:active{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, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-active, 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, 0.12))}.mdc-button--raised:disabled{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-disabled, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised,.mdc-button--unelevated{padding-left:16px;padding-left:var(--mdc-button-horizontal-padding, 16px);padding-right:16px;padding-right:var(--mdc-button-horizontal-padding, 16px)}.mdc-button--outlined{border-width:1px;border-width:var(--mdc-button-outline-width, 1px);padding-left:calc(16px - 1px);padding-left:calc(var(--mdc-button-horizontal-padding, 16px) - var(--mdc-button-outline-width, 1px));padding-right:calc(16px - 1px);padding-right:calc(var(--mdc-button-horizontal-padding, 16px) - var(--mdc-button-outline-width, 1px))}.mdc-button--outlined:not(:disabled){border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-button-outline-color, rgba(0, 0, 0, 0.12))}.mdc-button--outlined .ripple{top:calc(-1 * 1px);top:calc(-1 * var(--mdc-button-outline-width, 1px));left:calc(-1 * 1px);left:calc(-1 * var(--mdc-button-outline-width, 1px));right:initial;right:initial;border-width:1px;border-width:var(--mdc-button-outline-width, 1px);border-style:solid;border-color:transparent}[dir=rtl] .mdc-button--outlined .ripple,.mdc-button--outlined .ripple[dir=rtl]{left:initial;left:initial;right:calc(-1 * 1px);right:calc(-1 * var(--mdc-button-outline-width, 1px))}.mdc-button--dense{height:28px;margin-top:0;margin-bottom:0}.mdc-button--dense .mdc-button__touch{display:none}:host([disabled]){pointer-events:none}:host([disabled]) .mdc-button{color:rgba(0, 0, 0, 0.38);color:var(--mdc-button-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-button--raised,:host([disabled]) .mdc-button--unelevated{background-color:rgba(0, 0, 0, 0.12);background-color:var(--mdc-button-disabled-fill-color, rgba(0, 0, 0, 0.12))}:host([disabled]) .mdc-button--outlined{border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}"])));function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){return F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},F(e,t)}function B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Z(e);if(t){var i=Z(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return H(this,r)}}function H(e,t){if(t&&("object"===z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Z(e)}var U=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}(r,e);var t=B(r);function r(){return N(this,r),t.apply(this,arguments)}return r}(I);U.styles=[j],U=(0,i.__decorate)([(0,o.Mo)("mwc-button")],U)},58856:function(e,t,r){"use strict";var n,i,o=r(87480),a=r(50293),s=(r(91156),r(38103)),c=r(98734),l=r(88668);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r\n '])),this.disabled):""}},{key:"focus",value:function(){var e=this.buttonElement;e&&(this.rippleHandlers.startFocus(),e.focus())}},{key:"blur",value:function(){var e=this.buttonElement;e&&(this.rippleHandlers.endFocus(),e.blur())}},{key:"render",value:function(){return(0,a.dy)(i||(i=d(['','\n ',"\n \n "])),this.ariaLabel||this.icon,(0,l.o)(this.ariaHasPopup),this.disabled,this.handleRippleFocus,this.handleRippleBlur,this.handleRippleMouseDown,this.handleRippleMouseEnter,this.handleRippleMouseLeave,this.handleRippleTouchStart,this.handleRippleDeactivate,this.handleRippleDeactivate,this.renderRipple(),this.icon)}},{key:"handleRippleMouseDown",value:function(e){var t=this;window.addEventListener("mouseup",(function e(){window.removeEventListener("mouseup",e),t.handleRippleDeactivate()})),this.rippleHandlers.startPress(e)}},{key:"handleRippleTouchStart",value:function(e){this.rippleHandlers.startPress(e)}},{key:"handleRippleDeactivate",value:function(){this.rippleHandlers.endPress()}},{key:"handleRippleMouseEnter",value:function(){this.rippleHandlers.startHover()}},{key:"handleRippleMouseLeave",value:function(){this.rippleHandlers.endHover()}},{key:"handleRippleFocus",value:function(){this.rippleHandlers.startFocus()}},{key:"handleRippleBlur",value:function(){this.rippleHandlers.endFocus()}}])&&p(t.prototype,r),o&&p(t,o),u}(a.oi);(0,o.__decorate)([(0,a.Cb)({type:Boolean,reflect:!0})],g.prototype,"disabled",void 0),(0,o.__decorate)([(0,a.Cb)({type:String})],g.prototype,"icon",void 0),(0,o.__decorate)([s.L,(0,a.Cb)({type:String,attribute:"aria-label"})],g.prototype,"ariaLabel",void 0),(0,o.__decorate)([s.L,(0,a.Cb)({type:String,attribute:"aria-haspopup"})],g.prototype,"ariaHasPopup",void 0),(0,o.__decorate)([(0,a.IO)("button")],g.prototype,"buttonElement",void 0),(0,o.__decorate)([(0,a.GC)("mwc-ripple")],g.prototype,"ripple",void 0),(0,o.__decorate)([(0,a.SB)()],g.prototype,"shouldRenderRipple",void 0),(0,o.__decorate)([(0,a.hO)({passive:!0})],g.prototype,"handleRippleMouseDown",null),(0,o.__decorate)([(0,a.hO)({passive:!0})],g.prototype,"handleRippleTouchStart",null);var _,w,k=(0,a.iv)(b||(_=['.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"}.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button:disabled{color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-disabled-on-light, rgba(0, 0, 0, 0.38))}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--touch{margin-top:0px;margin-bottom:0px}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--touch{margin-top:0px;margin-bottom:0px}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}:host{display:inline-block;outline:none}:host([disabled]){pointer-events:none}:host{--mdc-ripple-color: currentcolor;-webkit-tap-highlight-color:transparent}:host,.mdc-icon-button{vertical-align:top}.mdc-icon-button{width:var(--mdc-icon-button-size, 48px);height:var(--mdc-icon-button-size, 48px);padding:calc( (var(--mdc-icon-button-size, 48px) - var(--mdc-icon-size, 24px)) / 2 )}.mdc-icon-button>i{position:absolute;top:0;padding-top:inherit}.mdc-icon-button i,.mdc-icon-button svg,.mdc-icon-button img,.mdc-icon-button ::slotted(*){display:block;width:var(--mdc-icon-size, 24px);height:var(--mdc-icon-size, 24px)}'],w||(w=_.slice(0)),b=Object.freeze(Object.defineProperties(_,{raw:{value:Object.freeze(w)}}))));function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=C(e);if(t){var i=C(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return T(this,r)}}function T(e,t){if(t&&("object"===E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(r,e);var t=A(r);function r(){return x(this,r),t.apply(this,arguments)}return r}(g);O.styles=[k],O=(0,o.__decorate)([(0,a.Mo)("mwc-icon-button")],O)},87724:function(e,t,r){"use strict";var n,i,o,a,s,c,l,u,d,f,p=r(87480),h=r(50293),m=(r(91156),r(14114)),y=r(98734),v=r(59685);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function g(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n "])),this.activated):this.activated?(0,h.dy)(s||(s=w(['
    ']))):""}},{key:"renderGraphic",value:function(){var e={multi:this.multipleGraphics};return(0,h.dy)(c||(c=w(['\n \n \n '])),(0,v.$)(e))}},{key:"renderMeta",value:function(){return(0,h.dy)(l||(l=w(['\n \n \n '])))}},{key:"renderText",value:function(){var e=this.twoline?this.renderTwoline():this.renderSingleLine();return(0,h.dy)(u||(u=w(['\n \n ',"\n "])),e)}},{key:"renderSingleLine",value:function(){return(0,h.dy)(d||(d=w([""])))}},{key:"renderTwoline",value:function(){return(0,h.dy)(f||(f=w(['\n \n \n \n \n \n \n '])))}},{key:"onClick",value:function(){this.fireRequestSelected(!this.selected,"interaction")}},{key:"onDown",value:function(e,t){var r=this;window.addEventListener(e,(function t(){window.removeEventListener(e,t),r.rippleHandlers.endPress()})),this.rippleHandlers.startPress(t)}},{key:"fireRequestSelected",value:function(e,t){if(!this.noninteractive){var r=new CustomEvent("request-selected",{bubbles:!0,composed:!0,detail:{source:t,selected:e}});this.dispatchEvent(r)}}},{key:"connectedCallback",value:function(){x(O(b.prototype),"connectedCallback",this).call(this),this.noninteractive||this.setAttribute("mwc-list-item","");var e,t=g(this.listeners);try{for(t.s();!(e=t.n()).done;){var r,n=e.value,i=g(n.eventNames);try{for(i.s();!(r=i.n()).done;){var o=r.value;n.target.addEventListener(o,n.cb,{passive:!0})}}catch(a){i.e(a)}finally{i.f()}}}catch(a){t.e(a)}finally{t.f()}}},{key:"disconnectedCallback",value:function(){x(O(b.prototype),"disconnectedCallback",this).call(this);var e,t=g(this.listeners);try{for(t.s();!(e=t.n()).done;){var r,n=e.value,i=g(n.eventNames);try{for(i.s();!(r=i.n()).done;){var o=r.value;n.target.removeEventListener(o,n.cb)}}catch(a){i.e(a)}finally{i.f()}}}catch(a){t.e(a)}finally{t.f()}this._managingList&&(this._managingList.debouncedLayout?this._managingList.debouncedLayout(!0):this._managingList.layout(!0))}},{key:"firstUpdated",value:function(){var e=new Event("list-item-rendered",{bubbles:!0,composed:!0});this.dispatchEvent(e)}}])&&E(t.prototype,r),p&&E(t,p),b}(h.oi);(0,p.__decorate)([(0,h.IO)("slot")],M.prototype,"slotElement",void 0),(0,p.__decorate)([(0,h.GC)("mwc-ripple")],M.prototype,"ripple",void 0),(0,p.__decorate)([(0,h.Cb)({type:String})],M.prototype,"value",void 0),(0,p.__decorate)([(0,h.Cb)({type:String,reflect:!0})],M.prototype,"group",void 0),(0,p.__decorate)([(0,h.Cb)({type:Number,reflect:!0})],M.prototype,"tabindex",void 0),(0,p.__decorate)([(0,h.Cb)({type:Boolean,reflect:!0}),(0,m.P)((function(e){e?this.setAttribute("aria-disabled","true"):this.setAttribute("aria-disabled","false")}))],M.prototype,"disabled",void 0),(0,p.__decorate)([(0,h.Cb)({type:Boolean,reflect:!0})],M.prototype,"twoline",void 0),(0,p.__decorate)([(0,h.Cb)({type:Boolean,reflect:!0})],M.prototype,"activated",void 0),(0,p.__decorate)([(0,h.Cb)({type:String,reflect:!0})],M.prototype,"graphic",void 0),(0,p.__decorate)([(0,h.Cb)({type:Boolean})],M.prototype,"multipleGraphics",void 0),(0,p.__decorate)([(0,h.Cb)({type:Boolean})],M.prototype,"hasMeta",void 0),(0,p.__decorate)([(0,h.Cb)({type:Boolean,reflect:!0}),(0,m.P)((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","")}))],M.prototype,"noninteractive",void 0),(0,p.__decorate)([(0,h.Cb)({type:Boolean,reflect:!0}),(0,m.P)((function(e){var t=this.getAttribute("role"),r="gridcell"===t||"option"===t||"row"===t||"tab"===t;r&&e?this.setAttribute("aria-selected","true"):r&&this.setAttribute("aria-selected","false"),this._firstChanged?this._firstChanged=!1:this._skipPropRequest||this.fireRequestSelected(e,"property")}))],M.prototype,"selected",void 0),(0,p.__decorate)([(0,h.SB)()],M.prototype,"shouldRenderRipple",void 0),(0,p.__decorate)([(0,h.SB)()],M.prototype,"_managingList",void 0);var R,D,L=(0,h.iv)(P||(R=[':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}'],D||(D=R.slice(0)),P=Object.freeze(Object.defineProperties(R,{raw:{value:Object.freeze(D)}}))));function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z(e,t){return z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},z(e,t)}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=B(e);if(t){var i=B(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return F(this,r)}}function F(e,t){if(t&&("object"===I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},B(e)}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&z(e,t)}(r,e);var t=N(r);function r(){return j(this,r),t.apply(this,arguments)}return r}(M);H.styles=[L],H=(0,p.__decorate)([(0,h.Mo)("mwc-list-item")],H)},62613:function(e,t,r){"use strict";var n=r(87480),i=r(50293),o=(r(87724),r(78220)),a=r(14114),s=r(82612),c=r(88668),l=r(72774),u="Unknown",d="Backspace",f="Enter",p="Spacebar",h="PageUp",m="PageDown",y="End",v="Home",b="ArrowLeft",g="ArrowUp",_="ArrowRight",w="ArrowDown",k="Delete",E="Escape",x="Tab",S=new Set;S.add(d),S.add(f),S.add(p),S.add(h),S.add(m),S.add(y),S.add(v),S.add(b),S.add(g),S.add(_),S.add(w),S.add(k),S.add(E),S.add(x);var A=8,T=13,C=32,O=33,P=34,M=35,R=36,D=37,L=38,I=39,j=40,z=46,N=27,F=9,B=new Map;B.set(A,d),B.set(T,f),B.set(C,p),B.set(O,h),B.set(P,m),B.set(M,y),B.set(R,v),B.set(D,b),B.set(L,g),B.set(I,_),B.set(j,w),B.set(z,k),B.set(N,E),B.set(F,x);var H=new Set;function Z(e){var t=e.key;if(S.has(t))return t;var r=B.get(e.keyCode);return r||u}H.add(h),H.add(m),H.add(y),H.add(v),H.add(b),H.add(g),H.add(_),H.add(w);var U=r(74015);function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function K(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=$(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function $(e,t){if(e){if("string"==typeof e)return W(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?W(e,t):void 0}}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0&&this.adapter.setTabIndexForElementIndex(t,0)}},{key:"handleFocusOut",value:function(e,t){var r=this;t>=0&&this.adapter.setTabIndexForElementIndex(t,-1),setTimeout((function(){r.adapter.isFocusInsideList()||r.setTabindexToFirstSelectedItem_()}),0)}},{key:"handleKeydown",value:function(e,t,r){var n="ArrowLeft"===Z(e),i="ArrowUp"===Z(e),o="ArrowRight"===Z(e),a="ArrowDown"===Z(e),s="Home"===Z(e),c="End"===Z(e),l="Enter"===Z(e),u="Spacebar"===Z(e);if(this.adapter.isRootFocused())i||c?(e.preventDefault(),this.focusLastElement()):(a||s)&&(e.preventDefault(),this.focusFirstElement());else{var d=this.adapter.getFocusedElementIndex();if(!(-1===d&&(d=r)<0)){var f;if(this.isVertical_&&a||!this.isVertical_&&o)this.preventDefaultEvent(e),f=this.focusNextElement(d);else if(this.isVertical_&&i||!this.isVertical_&&n)this.preventDefaultEvent(e),f=this.focusPrevElement(d);else if(s)this.preventDefaultEvent(e),f=this.focusFirstElement();else if(c)this.preventDefaultEvent(e),f=this.focusLastElement();else if((l||u)&&t){var p=e.target;if(p&&"A"===p.tagName&&l)return;this.preventDefaultEvent(e),this.setSelectedIndexOnAction_(d,!0)}this.focusedItemIndex_=d,void 0!==f&&(this.setTabindexAtIndex_(f),this.focusedItemIndex_=f)}}}},{key:"handleSingleSelection",value:function(e,t,r){e!==U.KT.UNSET_INDEX&&(this.setSelectedIndexOnAction_(e,t,r),this.setTabindexAtIndex_(e),this.focusedItemIndex_=e)}},{key:"focusNextElement",value:function(e){var t=e+1;if(t>=this.adapter.getListItemCount()){if(!this.wrapFocus_)return e;t=0}return this.adapter.focusItemAtIndex(t),t}},{key:"focusPrevElement",value:function(e){var t=e-1;if(t<0){if(!this.wrapFocus_)return e;t=this.adapter.getListItemCount()-1}return this.adapter.focusItemAtIndex(t),t}},{key:"focusFirstElement",value:function(){return this.adapter.focusItemAtIndex(0),0}},{key:"focusLastElement",value:function(){var e=this.adapter.getListItemCount()-1;return this.adapter.focusItemAtIndex(e),e}},{key:"setEnabled",value:function(e,t){this.isIndexValid_(e)&&this.adapter.setDisabledStateForElementIndex(e,!t)}},{key:"preventDefaultEvent",value:function(e){var t=e.target,r="".concat(t.tagName).toLowerCase();-1===re.indexOf(r)&&e.preventDefault()}},{key:"setSingleSelectionAtIndex_",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.selectedIndex_!==e&&(this.selectedIndex_!==U.KT.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))}},{key:"setMultiSelectionAtIndex_",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=ae(this.selectedIndex_),n=te(r,e);if(n.removed.length||n.added.length){var i,o=V(n.removed);try{for(o.s();!(i=o.n()).done;){var a=i.value;t&&this.adapter.setSelectedStateForElementIndex(a,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(a,!1)}}catch(u){o.e(u)}finally{o.f()}var s,c=V(n.added);try{for(c.s();!(s=c.n()).done;){var l=s.value;t&&this.adapter.setSelectedStateForElementIndex(l,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(l,!0)}}catch(u){c.e(u)}finally{c.f()}this.selectedIndex_=e,this.adapter.notifySelected(e,n)}}},{key:"setAriaForSingleSelectionAtIndex_",value:function(e){this.selectedIndex_===U.KT.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(e,U.j2.ARIA_CURRENT));var t=null!==this.ariaCurrentAttrValue_,r=t?U.j2.ARIA_CURRENT:U.j2.ARIA_SELECTED;this.selectedIndex_!==U.KT.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,r,"false");var n=t?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(e,r,n)}},{key:"setTabindexAtIndex_",value:function(e){this.focusedItemIndex_===U.KT.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)}},{key:"setTabindexToFirstSelectedItem_",value:function(){var e=0;"number"==typeof this.selectedIndex_&&this.selectedIndex_!==U.KT.UNSET_INDEX?e=this.selectedIndex_:ne(this.selectedIndex_)&&this.selectedIndex_.size>0&&(e=Math.min.apply(Math,K(this.selectedIndex_))),this.setTabindexAtIndex_(e)}},{key:"isIndexValid_",value:function(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;var t,r=!1,n=V(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(r=this.isIndexInRange_(i))break}}catch(o){n.e(o)}finally{n.f()}return r}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===U.KT.UNSET_INDEX||this.isIndexInRange_(e)}return!1}},{key:"isIndexInRange_",value:function(e){var t=this.adapter.getListItemCount();return e>=0&&e2&&void 0!==arguments[2])||arguments[2],n=!1;n=void 0===t?!this.adapter.getSelectedStateForElementIndex(e):t;var i=ae(this.selectedIndex_);n?i.add(e):i.delete(e),this.setMultiSelectionAtIndex_(i,r)}}],n=[{key:"strings",get:function(){return U.j2}},{key:"numbers",get:function(){return U.KT}},{key:"defaultAdapter",get:function(){return{focusItemAtIndex:function(){},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},notifyAction:function(){},notifySelected:function(){},getSelectedStateForElementIndex:function(){return!1},setDisabledStateForElementIndex:function(){},getDisabledStateForElementIndex:function(){return!1},setSelectedStateForElementIndex:function(){},setActivatedStateForElementIndex:function(){},setTabIndexForElementIndex:function(){},setAttributeForElementIndex:function(){},getAttributeForElementIndex:function(){return null}}}}],r&&Y(t.prototype,r),n&&Y(t,n),o}(l.K),ce=se;function le(e){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}function ue(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function de(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return fe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fe(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:50;return function(){var n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];clearTimeout(t),t=setTimeout((function(){e(n)}),r)}}(e.layout.bind(ge(e)));return e.debouncedLayout=function(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];ke.call(ge(e)),t(r)},e}return t=u,r=[{key:"getUpdateComplete",value:(o=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,me(_e(u.prototype),"getUpdateComplete",this).call(this);case 2:return t=e.sent,e.next=5,this.itemsReady;case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e,this)})),a=function(){var e=this,t=arguments;return new Promise((function(r,n){var i=o.apply(e,t);function a(e){pe(i,r,n,a,s,"next",e)}function s(e){pe(i,r,n,a,s,"throw",e)}a(void 0)}))},function(){return a.apply(this,arguments)})},{key:"items",get:function(){return this.items_}},{key:"updateItems",value:function(){var e,t,r=this,n=[],i=de(null!==(e=this.assignedElements)&&void 0!==e?e:[]);try{for(i.s();!(t=i.n()).done;){var o=t.value;we(o)&&(n.push(o),o._managingList=this),o.hasAttribute("divider")&&!o.hasAttribute("role")&&o.setAttribute("role","separator")}}catch(l){i.e(l)}finally{i.f()}this.items_=n;var a=new Set;if(this.items_.forEach((function(e,t){r.itemRoles?e.setAttribute("role",r.itemRoles):e.removeAttribute("role"),e.selected&&a.add(t)})),this.multi)this.select(a);else{var s=a.size?a.entries().next().value[1]:-1;this.select(s)}var c=new Event("items-updated",{bubbles:!0,composed:!0});this.dispatchEvent(c)}},{key:"selected",get:function(){var e=this.index;if(!ne(e))return-1===e?null:this.items[e];var t,r=[],n=de(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;r.push(this.items[i])}}catch(o){n.e(o)}finally{n.f()}return r}},{key:"index",get:function(){return this.mdcFoundation?this.mdcFoundation.getSelectedIndex():-1}},{key:"render",value:function(){var e=null===this.innerRole?void 0:this.innerRole,t=null===this.innerAriaLabel?void 0:this.innerAriaLabel,r=this.rootTabbable?"0":"-1";return(0,i.dy)(ie||(ie=ue(["\n \x3c!-- @ts-ignore --\x3e\n 0&&h.some((function(e){return t.adapter.containsEventTarget(e)}))?this.resetActivationState():(void 0!==e&&(h.push(e.target),this.registerDeactivationHandlers(e)),r.wasElementMadeActive=this.checkElementMadeActive(e),r.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){h=[],r.wasElementMadeActive||void 0===e||" "!==e.key&&32!==e.keyCode||(r.wasElementMadeActive=t.checkElementMadeActive(e),r.wasElementMadeActive&&t.animateActivation()),r.wasElementMadeActive||(t.activationState=t.defaultActivationState())})))}}},t.prototype.checkElementMadeActive=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive()},t.prototype.animateActivation=function(){var e=this,r=t.strings,n=r.VAR_FG_TRANSLATE_START,i=r.VAR_FG_TRANSLATE_END,o=t.cssClasses,a=o.FG_DEACTIVATION,s=o.FG_ACTIVATION,c=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var l="",u="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),f=d.startPoint,p=d.endPoint;l=f.x+"px, "+f.y+"px",u=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(n,l),this.adapter.updateCssVariable(i,u),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout((function(){e.activationTimerCallback()}),c)},t.prototype.getFgTranslationCoordinates=function(){var e,t=this.activationState,r=t.activationEvent;return{startPoint:e={x:(e=t.wasActivatedByPointer?function(e,t,r){if(!e)return{x:0,y:0};var n,i,o=t.x,a=t.y,s=o+r.left,c=a+r.top;if("touchstart"===e.type){var l=e;n=l.changedTouches[0].pageX-s,i=l.changedTouches[0].pageY-c}else{var u=e;n=u.pageX-s,i=u.pageY-c}return{x:n,y:i}}(r,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:e.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},t.prototype.runDeactivationUXLogicIfReady=function(){var e=this,r=t.cssClasses.FG_DEACTIVATION,n=this.activationState,i=n.hasDeactivationUXRun,o=n.isActivated;(i||!o)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(r),this.fgDeactivationRemovalTimer=setTimeout((function(){e.adapter.removeClass(r)}),u.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses=function(){var e=t.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},t.prototype.resetActivationState=function(){var e=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return e.previousActivationEvent=void 0}),t.numbers.TAP_DELAY_MS)},t.prototype.deactivateImpl=function(){var e=this,t=this.activationState;if(t.isActivated){var r=(0,n.__assign)({},t);t.isProgrammatic?(requestAnimationFrame((function(){e.animateDeactivation(r)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){e.activationState.hasDeactivationUXRun=!0,e.animateDeactivation(r),e.resetActivationState()})))}},t.prototype.animateDeactivation=function(e){var t=e.wasActivatedByPointer,r=e.wasElementMadeActive;(t||r)&&this.runDeactivationUXLogicIfReady()},t.prototype.layoutInternal=function(){var e=this;this.frame=this.adapter.computeBoundingRect();var r=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?r:Math.sqrt(Math.pow(e.frame.width,2)+Math.pow(e.frame.height,2))+t.numbers.PADDING;var n=Math.floor(r*t.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&n%2!=0?this.initialSize=n-1:this.initialSize=n,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},t.prototype.updateLayoutCssVars=function(){var e=t.strings,r=e.VAR_FG_SIZE,n=e.VAR_LEFT,i=e.VAR_TOP,o=e.VAR_FG_SCALE;this.adapter.updateCssVariable(r,this.initialSize+"px"),this.adapter.updateCssVariable(o,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(i,this.unboundedCoords.top+"px"))},t}(s.K),y=r(59685),v=r(84298);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var r=0;r
    '])),(0,y.$)(r),(0,v.V)({"--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}))}}],r&&_(t.prototype,r),n&&_(t,n),s}(a.H);(0,n.__decorate)([(0,i.IO)(".mdc-ripple-surface")],T.prototype,"mdcRoot",void 0),(0,n.__decorate)([(0,i.Cb)({type:Boolean})],T.prototype,"primary",void 0),(0,n.__decorate)([(0,i.Cb)({type:Boolean})],T.prototype,"accent",void 0),(0,n.__decorate)([(0,i.Cb)({type:Boolean})],T.prototype,"unbounded",void 0),(0,n.__decorate)([(0,i.Cb)({type:Boolean})],T.prototype,"disabled",void 0),(0,n.__decorate)([(0,i.Cb)({type:Boolean})],T.prototype,"activated",void 0),(0,n.__decorate)([(0,i.Cb)({type:Boolean})],T.prototype,"selected",void 0),(0,n.__decorate)([(0,i.Cb)({type:Boolean})],T.prototype,"internalUseStateLayerCustomProperties",void 0),(0,n.__decorate)([(0,i.SB)()],T.prototype,"hovering",void 0),(0,n.__decorate)([(0,i.SB)()],T.prototype,"bgFocused",void 0),(0,n.__decorate)([(0,i.SB)()],T.prototype,"fgActivation",void 0),(0,n.__decorate)([(0,i.SB)()],T.prototype,"fgDeactivation",void 0),(0,n.__decorate)([(0,i.SB)()],T.prototype,"fgScale",void 0),(0,n.__decorate)([(0,i.SB)()],T.prototype,"fgSize",void 0),(0,n.__decorate)([(0,i.SB)()],T.prototype,"translateStart",void 0),(0,n.__decorate)([(0,i.SB)()],T.prototype,"translateEnd",void 0),(0,n.__decorate)([(0,i.SB)()],T.prototype,"leftPos",void 0),(0,n.__decorate)([(0,i.SB)()],T.prototype,"topPos",void 0);var C=(0,i.iv)(A||(A=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['.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)}'])));function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){return M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},M(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=L(e);if(t){var i=L(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return D(this,r)}}function D(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(r,e);var t=R(r);function r(){return P(this,r),t.apply(this,arguments)}return r}(T);I.styles=[C],I=(0,n.__decorate)([(0,i.Mo)("mwc-ripple")],I)},98734:function(e,t,r){"use strict";r.d(t,{A:function(){return n}});var n=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.startPress=function(e){t().then((function(t){t&&t.startPress(e)}))},this.endPress=function(){t().then((function(e){e&&e.endPress()}))},this.startFocus=function(){t().then((function(e){e&&e.startFocus()}))},this.endFocus=function(){t().then((function(e){e&&e.endFocus()}))},this.startHover=function(){t().then((function(e){e&&e.startHover()}))},this.endHover=function(){t().then((function(e){e&&e.endHover()}))}}},8621:function(e,t,r){"use strict";r.d(t,{G:function(){return m}});r(67034);var n={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},i={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},o={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},a=/[a-z0-9*]/,s=/U\+/,c=/^arrow/,l=/^space(bar)?/,u=/^escape$/;function d(e,t){var r="";if(e){var n=e.toLowerCase();" "===n||l.test(n)?r="space":u.test(n)?r="esc":1==n.length?t&&!a.test(n)||(r=n):r=c.test(n)?n.replace("arrow",""):"multiply"==n?"*":n}return r}function f(e,t){return e.key?d(e.key,t):e.detail&&e.detail.key?d(e.detail.key,t):(r=e.keyIdentifier,o="",r&&(r in n?o=n[r]:s.test(r)?(r=parseInt(r.replace("U+","0x"),16),o=String.fromCharCode(r).toLowerCase()):o=r.toLowerCase()),o||function(e){var t="";return Number(e)&&(t=e>=65&&e<=90?String.fromCharCode(32+e):e>=112&&e<=123?"f"+(e-112+1):e>=48&&e<=57?String(e-48):e>=96&&e<=105?String(e-96):i[e]),t}(e.keyCode)||"");var r,o}function p(e,t){return f(t,e.hasModifiers)===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey)}function h(e){return e.trim().split(" ").map((function(e){return function(e){return 1===e.length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce((function(e,t){var r=t.split(":"),n=r[0],i=r[1];return n in o?(e[o[n]]=!0,e.hasModifiers=!0):(e.key=n,e.event=i||"keydown"),e}),{combo:e.split(":").shift()})}(e)}))}var m={properties:{keyEventTarget:{type:Object,value:function(){return this}},stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},_imperativeKeyBindings:{type:Object,value:function(){return{}}}},observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},attached:function(){this._listenKeyEventListeners()},detached:function(){this._unlistenKeyEventListeners()},addOwnKeyBinding:function(e,t){this._imperativeKeyBindings[e]=t,this._prepKeyBindings(),this._resetKeyEventListeners()},removeOwnKeyBindings:function(){this._imperativeKeyBindings={},this._prepKeyBindings(),this._resetKeyEventListeners()},keyboardEventMatchesKeys:function(e,t){for(var r=h(t),n=0;n\n \n\n\n \n'],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}}))));a.setAttribute("style","display: none;"),document.head.appendChild(a.content);var s=document.createElement("style");s.textContent="[hidden] { display: none !important; }",document.head.appendChild(s)},21006:function(e,t,r){"use strict";r.d(t,{V:function(){return n}});r(67034);var n={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},detached:function(){}}},36280:function(e,t,r){"use strict";r(67034);var n,i=r(67139),o=r(50856);var a,s,c=(0,i.k)({_template:(0,o.d)(n||(a=['\n \n
    [[_text]]
    \n'],s||(s=a.slice(0)),n=Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(s)}})))),is:"iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},_text:{type:String,value:""}},created:function(){c.instance||(c.instance=this),document.body.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},announce:function(e){this._text="",this.async((function(){this._text=e}),100)},_onIronAnnounce:function(e){e.detail&&e.detail.text&&this.announce(e.detail.text)}});c.instance=null,c.requestAvailability=function(){c.instance||(c.instance=document.createElement("iron-a11y-announcer")),document.body.appendChild(c.instance)};var l,u=r(98235),d=r(18149);(0,i.k)({_template:(0,o.d)(l||(l=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n \n \n']))),is:"iron-input",behaviors:[u.x],properties:{bindValue:{type:String,value:""},value:{type:String,computed:"_computeValue(bindValue)"},allowedPattern:{type:String},autoValidate:{type:Boolean,value:!1},_inputElement:Object},observers:["_bindValueChanged(bindValue, _inputElement)"],listeners:{input:"_onInput",keypress:"_onKeypress"},created:function(){c.requestAvailability(),this._previousValidInput="",this._patternAlreadyChecked=!1},attached:function(){this._observer=(0,d.vz)(this).observeNodes(function(e){this._initSlottedInput()}.bind(this))},detached:function(){this._observer&&((0,d.vz)(this).unobserveNodes(this._observer),this._observer=null)},get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0],this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value),this.fire("iron-input-ready")},get _patternRegExp(){var e;if(this.allowedPattern)e=new RegExp(this.allowedPattern);else if("number"===this.inputElement.type)e=/[0-9.,e-]/;return e},_bindValueChanged:function(e,t){t&&(void 0===e?t.value=null:e!==t.value&&(this.inputElement.value=e),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:e}))},_onInput:function(){this.allowedPattern&&!this._patternAlreadyChecked&&(this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput));this.bindValue=this._previousValidInput=this.inputElement.value,this._patternAlreadyChecked=!1},_isPrintable:function(e){var t=8==e.keyCode||9==e.keyCode||13==e.keyCode||27==e.keyCode,r=19==e.keyCode||20==e.keyCode||45==e.keyCode||46==e.keyCode||144==e.keyCode||145==e.keyCode||e.keyCode>32&&e.keyCode<41||e.keyCode>111&&e.keyCode<124;return!(t||0==e.charCode&&r)},_onKeypress:function(e){if(this.allowedPattern||"number"===this.inputElement.type){var t=this._patternRegExp;if(t&&!(e.metaKey||e.ctrlKey||e.altKey)){this._patternAlreadyChecked=!0;var r=String.fromCharCode(e.charCode);this._isPrintable(e)&&!t.test(r)&&(e.preventDefault(),this._announceInvalidCharacter("Invalid character "+r+" not entered."))}}},_checkPatternValidity:function(){var e=this._patternRegExp;if(!e)return!0;for(var t=0;t\n :host {\n @apply --layout-inline;\n @apply --layout-center-center;\n position: relative;\n\n vertical-align: middle;\n\n fill: var(--iron-icon-fill-color, currentcolor);\n stroke: var(--iron-icon-stroke-color, none);\n\n width: var(--iron-icon-width, 24px);\n height: var(--iron-icon-height, 24px);\n @apply --iron-icon;\n }\n\n :host([hidden]) {\n display: none;\n }\n \n"],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),is:"iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String},_meta:{value:a.XY.create("iron-meta",{type:"iconset"})}},observers:["_updateIcon(_meta, isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(e){var t=(e||"").split(":");this._iconName=t.pop(),this._iconsetName=t.pop()||this._DEFAULT_ICONSET,this._updateIcon()},_srcChanged:function(e){this._updateIcon()},_usesIconset:function(){return this.icon||!this.src},_updateIcon:function(){this._usesIconset()?(this._img&&this._img.parentNode&&(0,l.vz)(this.root).removeChild(this._img),""===this._iconName?this._iconset&&this._iconset.removeIcon(this):this._iconsetName&&this._meta&&(this._iconset=this._meta.byKey(this._iconsetName),this._iconset?(this._iconset.applyIcon(this,this._iconName,this.theme),this.unlisten(window,"iron-iconset-added","_updateIcon")):this.listen(window,"iron-iconset-added","_updateIcon"))):(this._iconset&&this._iconset.removeIcon(this),this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,(0,l.vz)(this.root).appendChild(this._img))}});r(77956),r(55489),r(60748);(0,c.k)({is:"iron-iconset-svg",properties:{name:{type:String,observer:"_nameChanged"},size:{type:Number,value:24},rtlMirroring:{type:Boolean,value:!1},useGlobalRtlAttribute:{type:Boolean,value:!1}},created:function(){this._meta=new s.P({type:"iconset",key:null,value:null})},attached:function(){this.style.display="none"},getIconNames:function(){return this._icons=this._createIconMap(),Object.keys(this._icons).map((function(e){return this.name+":"+e}),this)},applyIcon:function(e,t){this.removeIcon(e);var r=this._cloneIcon(t,this.rtlMirroring&&this._targetIsRTL(e));if(r){var n=(0,l.vz)(e.root||e);return n.insertBefore(r,n.childNodes[0]),e._svgIcon=r}return null},removeIcon:function(e){e._svgIcon&&((0,l.vz)(e.root||e).removeChild(e._svgIcon),e._svgIcon=null)},_targetIsRTL:function(e){if(null==this.__targetIsRTL)if(this.useGlobalRtlAttribute){var t=document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement;this.__targetIsRTL="rtl"===t.getAttribute("dir")}else e&&e.nodeType!==Node.ELEMENT_NODE&&(e=e.host),this.__targetIsRTL=e&&"rtl"===window.getComputedStyle(e).direction;return this.__targetIsRTL},_nameChanged:function(){this._meta.value=null,this._meta.key=this.name,this._meta.value=this,this.async((function(){this.fire("iron-iconset-added",this,{node:window})}))},_createIconMap:function(){var e=Object.create(null);return(0,l.vz)(this).querySelectorAll("[id]").forEach((function(t){e[t.id]=t})),e},_cloneIcon:function(e,t){return this._icons=this._icons||this._createIconMap(),this._prepareSvgClone(this._icons[e],this.size,t)},_prepareSvgClone:function(e,t,r){if(e){var n=e.cloneNode(!0),i=document.createElementNS("http://www.w3.org/2000/svg","svg"),o=n.getAttribute("viewBox")||"0 0 "+t+" "+t,a="pointer-events: none; display: block; width: 100%; height: 100%;";return r&&n.hasAttribute("mirror-in-rtl")&&(a+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;"),i.setAttribute("viewBox",o),i.setAttribute("preserveAspectRatio","xMidYMid meet"),i.setAttribute("focusable","false"),i.style.cssText=a,i.appendChild(n).removeAttribute("id"),i}return null}});var d=document.createElement("template");d.setAttribute("style","display: none;"),d.innerHTML='\n\n\n\n',document.head.appendChild(d.content);var f=document.createElement("template");f.setAttribute("style","display: none;"),f.innerHTML='\n \n',document.head.appendChild(f.content);var p,h=r(51644),m=r(26110),y=r(21006),v=r(98235),b=r(81096),g=r(81668),_=r(62276);var w=(0,b.x)(HTMLElement);(0,c.k)({_template:(0,u.d)(p||(p=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n \n\n \n \x3c!-- support hybrid mode: user might be using paper-menu-button 1.x which distributes via --\x3e\n \n \n \n']))),is:"paper-dropdown-menu",behaviors:[h.P,m.a,y.V,v.x],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(e){var t=(0,_.r)(this);return t.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),w.prototype._attachDom.call(this,e)},focus:function(){this.$.input._focusableElement.focus()},attached:function(){var e=this.contentElement;e&&e.selectedItem&&this._setSelectedItem(e.selectedItem)},get contentElement(){for(var e=(0,l.vz)(this.$.content).getDistributedNodes(),t=0,r=e.length;t\n \n\n'])));u.setAttribute("style","display: none;"),document.head.appendChild(u.content),(0,o.k)({_template:(0,c.d)(i||(i=l(['\n \n\n \n\n
    \n \n\n
    \n \n \n
    \n\n \n
    \n\n
    \n
    \n
    \n
    \n\n
    \n \n
    \n']))),is:"paper-input-container",properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,iron-input,textarea,.paper-input-input"},_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return(0,s.z)(this.attrForValue)},get _inputElement(){return(0,a.vz)(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0,this._addons||(this._addons=[]),this.addEventListener("focus",this._boundOnFocus,!0),this.addEventListener("blur",this._boundOnBlur,!0)},attached:function(){this.attrForValue?this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged):this.addEventListener("input",this._onInput),this._inputElementValue&&""!=this._inputElementValue?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement)},_onAddonAttached:function(e){this._addons||(this._addons=[]);var t=e.target;-1===this._addons.indexOf(t)&&(this._addons.push(t),this.isAttached&&this._handleValue(this._inputElement))},_onFocus:function(){this._setFocused(!0)},_onBlur:function(){this._setFocused(!1),this._handleValueAndAutoValidate(this._inputElement)},_onInput:function(e){this._handleValueAndAutoValidate(e.target)},_onValueChanged:function(e){var t=e.target;this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,void 0===t.value||""===t.value)||this._handleValueAndAutoValidate(e.target)},_handleValue:function(e){var t=this._inputElementValue;t||0===t||"number"===e.type&&!e.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1,this.updateAddons({inputElement:e,value:t,invalid:this.invalid})},_handleValueAndAutoValidate:function(e){var t;this.autoValidate&&e&&(t=e.validate?e.validate(this._inputElementValue):e.checkValidity(),this.invalid=!t);this._handleValue(e)},_onIronInputValidate:function(e){this.invalid=this._inputElement.invalid},_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},updateAddons:function(e){for(var t,r=0;t=this._addons[r];r++)t.update(e)},_computeInputContentClass:function(e,t,r,n,i){var o="input-content";if(e)i&&(o+=" label-is-hidden"),n&&(o+=" is-invalid");else{var a=this.querySelector("label");t||i?(o+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",n?o+=" is-invalid":r&&(o+=" label-is-highlighted")):(a&&(this.$.labelAndInputContainer.style.position="relative"),n&&(o+=" is-invalid"))}return r&&(o+=" focused"),o},_computeUnderlineClass:function(e,t){var r="underline";return t?r+=" is-invalid":e&&(r+=" is-highlighted"),r},_computeAddOnContentClass:function(e,t){var r="add-on-content";return t?r+=" is-invalid":e&&(r+=" is-highlighted"),r}})},77956:function(e,t,r){"use strict";r(67034),r(36280),r(70019);var n,i,o,a=r(67139),s=r(50856),c={attached:function(){this.fire("addon-attached")},update:function(e){}};(0,a.k)({_template:(0,s.d)(n||(i=["\n \n\n [[_charCounterStr]]\n"],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),is:"paper-input-char-counter",behaviors:[c],properties:{_charCounterStr:{type:String,value:"0"}},update:function(e){if(e.inputElement){e.value=e.value||"";var t=e.value.toString().length.toString();e.inputElement.hasAttribute("maxlength")&&(t+="/"+e.inputElement.getAttribute("maxlength")),this._charCounterStr=t}}});var l;r(98121);(0,a.k)({_template:(0,s.d)(l||(l=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n \n\n \x3c!--\n If the paper-input-error element is directly referenced by an\n `aria-describedby` attribute, such as when used as a paper-input add-on,\n then applying `visibility: hidden;` to the paper-input-error element itself\n does not hide the error.\n\n For more information, see:\n https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description\n --\x3e\n
    \n \n
    \n'],['\n \n\n \x3c!--\n If the paper-input-error element is directly referenced by an\n \\`aria-describedby\\` attribute, such as when used as a paper-input add-on,\n then applying \\`visibility: hidden;\\` to the paper-input-error element itself\n does not hide the error.\n\n For more information, see:\n https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description\n --\x3e\n
    \n \n
    \n']))),is:"paper-input-error",behaviors:[c],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(e){this._setInvalid(e.invalid)}});var u,d=r(21006),f=(r(21384),r(8621)),p=r(26110),h=r(18149),m=r(28426),y={NextLabelID:1,NextAddonID:1,NextInputID:1},v={properties:{label:{type:String},value:{notify:!0,type:String},disabled:{type:Boolean,value:!1},invalid:{type:Boolean,value:!1,notify:!0},allowedPattern:{type:String},type:{type:String},list:{type:String},pattern:{type:String},required:{type:Boolean,value:!1},errorMessage:{type:String},charCounter:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},autoValidate:{type:Boolean,value:!1},validator:{type:String},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,observer:"_autofocusChanged"},inputmode:{type:String},minlength:{type:Number},maxlength:{type:Number},min:{type:String},max:{type:String},step:{type:String},name:{type:String},placeholder:{type:String,value:""},readonly:{type:Boolean,value:!1},size:{type:Number},autocapitalize:{type:String,value:"none"},autocorrect:{type:String,value:"off"},autosave:{type:String},results:{type:Number},accept:{type:String},multiple:{type:Boolean},_ariaDescribedBy:{type:String,value:""},_ariaLabelledBy:{type:String,value:""},_inputId:{type:String,value:""}},listeners:{"addon-attached":"_onAddonAttached"},keyBindings:{"shift+tab:keydown":"_onShiftTabDown"},hostAttributes:{tabindex:0},get inputElement(){return this.$||(this.$={}),this.$.input||(this._generateInputId(),this.$.input=this.$$("#"+this._inputId)),this.$.input},get _focusableElement(){return this.inputElement},created:function(){this._typesThatHaveText=["date","datetime","datetime-local","month","time","week","file"]},attached:function(){this._updateAriaLabelledBy(),!m.H3&&this.inputElement&&-1!==this._typesThatHaveText.indexOf(this.inputElement.type)&&(this.alwaysFloatLabel=!0)},_appendStringWithSpace:function(e,t){return e=e?e+" "+t:t},_onAddonAttached:function(e){var t=(0,h.vz)(e).rootTarget;if(t.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,t.id);else{var r="paper-input-add-on-"+y.NextAddonID++;t.id=r,this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,r)}},validate:function(){return this.inputElement.validate()},_focusBlurHandler:function(e){p.a._focusBlurHandler.call(this,e),this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},_onShiftTabDown:function(e){var t=this.getAttribute("tabindex");this._shiftTabPressed=!0,this.setAttribute("tabindex","-1"),this.async((function(){this.setAttribute("tabindex",t),this._shiftTabPressed=!1}),1)},_handleAutoValidate:function(){this.autoValidate&&this.validate()},updateValueAndPreserveCaret:function(e){try{var t=this.inputElement.selectionStart;this.value=e,this.inputElement.selectionStart=t,this.inputElement.selectionEnd=t}catch(r){this.value=e}},_computeAlwaysFloatLabel:function(e,t){return t||e},_updateAriaLabelledBy:function(){var e,t=(0,h.vz)(this.root).querySelector("label");t?(t.id?e=t.id:(e="paper-input-label-"+y.NextLabelID++,t.id=e),this._ariaLabelledBy=e):this._ariaLabelledBy=""},_generateInputId:function(){this._inputId&&""!==this._inputId||(this._inputId="input-"+y.NextInputID++)},_onChange:function(e){this.shadowRoot&&this.fire(e.type,{sourceEvent:e},{node:this,bubbles:e.bubbles,cancelable:e.cancelable})},_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var e=document.activeElement;e instanceof HTMLElement&&e!==document.body&&e!==document.documentElement||this._focusableElement.focus()}}},b=[p.a,f.G,v];(0,a.k)({is:"paper-input",_template:(0,s.d)(u||(u=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n \n\n \n\n \n\n \n\n \x3c!-- Need to bind maxlength so that the paper-input-char-counter works correctly --\x3e\n \n \n \n\n \n\n \n\n \n\n \n ']))),behaviors:[b,d.V],properties:{value:{type:String},inputRole:{type:String,value:void 0},inputAriaHaspopup:{type:String,value:void 0}},get _focusableElement(){return this.inputElement._inputElement},listeners:{"iron-input-ready":"_onIronInputReady"},_onIronInputReady:function(){this.$.nativeInput||(this.$.nativeInput=this.$$("input")),this.inputElement&&-1!==this._typesThatHaveText.indexOf(this.$.nativeInput.type)&&(this.alwaysFloatLabel=!0),this.inputElement.bindValue&&this.$.container._handleValueAndAutoValidate(this.inputElement)}})},33760:function(e,t,r){"use strict";r.d(t,{U:function(){return o}});r(67034);var n=r(51644),i=r(26110),o=[n.P,i.a,{hostAttributes:{role:"option",tabindex:"0"}}]},89194:function(e,t,r){"use strict";r(67034),r(65660),r(70019);var n,i,o,a=r(67139),s=r(50856);(0,a.k)({_template:(0,s.d)(n||(i=["\n \n\n \n"],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),is:"paper-item-body"})},97968:function(e,t,r){"use strict";r(65660),r(70019);var n=document.createElement("template");n.setAttribute("style","display: none;"),n.innerHTML="\n \n",document.head.appendChild(n.content)},53973:function(e,t,r){"use strict";r(67034),r(65660),r(97968);var n,i,o,a=r(67139),s=r(50856),c=r(33760);(0,a.k)({_template:(0,s.d)(n||(i=['\n \n \n'],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),is:"paper-item",behaviors:[c.U]})},11488:function(e,t,r){"use strict";r(67034);var n=r(8621),i=r(18149),o=r(67130);function a(e,t){for(var r=0;r=0}},{key:"setItemSelected",value:function(e,t){if(null!=e&&t!==this.isSelected(e)){if(t)this.selection.push(e);else{var r=this.selection.indexOf(e);r>=0&&this.selection.splice(r,1)}this.selectCallback&&this.selectCallback(e,t)}}},{key:"select",value:function(e){this.multi?this.toggle(e):this.get()!==e&&(this.setItemSelected(this.get(),!1),this.setItemSelected(e,!0))}},{key:"toggle",value:function(e){this.setItemSelected(e,!this.isSelected(e))}}])&&a(t.prototype,r),n&&a(t,n),e}(),d={properties:{attrForSelected:{type:String,value:null},selected:{type:String,notify:!0},selectedItem:{type:Object,readOnly:!0,notify:!0},activateEvent:{type:String,value:"tap",observer:"_activateEventChanged"},selectable:String,selectedClass:{type:String,value:"iron-selected"},selectedAttribute:{type:String,value:null},fallbackSelection:{type:String,value:null},items:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}},_excludedLocalNames:{type:Object,value:function(){return{template:1,"dom-bind":1,"dom-if":1,"dom-repeat":1}}}},observers:["_updateAttrForSelected(attrForSelected)","_updateSelected(selected)","_checkFallback(fallbackSelection)"],created:function(){this._bindFilterItem=this._filterItem.bind(this),this._selection=new u(this._applySelection.bind(this))},attached:function(){this._observer=this._observeItems(this),this._addListener(this.activateEvent)},detached:function(){this._observer&&(0,i.vz)(this).unobserveNodes(this._observer),this._removeListener(this.activateEvent)},indexOf:function(e){return this.items?this.items.indexOf(e):-1},select:function(e){this.selected=e},selectPrevious:function(){var e=this.items.length,t=e-1;void 0!==this.selected&&(t=(Number(this._valueToIndex(this.selected))-1+e)%e),this.selected=this._indexToValue(t)},selectNext:function(){var e=0;void 0!==this.selected&&(e=(Number(this._valueToIndex(this.selected))+1)%this.items.length),this.selected=this._indexToValue(e)},selectIndex:function(e){this.select(this._indexToValue(e))},forceSynchronousItemUpdate:function(){this._observer&&"function"==typeof this._observer.flush?this._observer.flush():this._updateItems()},get _shouldUpdateSelection(){return null!=this.selected},_checkFallback:function(){this._updateSelected()},_addListener:function(e){this.listen(this,e,"_activateHandler")},_removeListener:function(e){this.unlisten(this,e,"_activateHandler")},_activateEventChanged:function(e,t){this._removeListener(t),this._addListener(e)},_updateItems:function(){var e=(0,i.vz)(this).queryDistributedElements(this.selectable||"*");e=Array.prototype.filter.call(e,this._bindFilterItem),this._setItems(e)},_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},_updateSelected:function(){this._selectSelected(this.selected)},_selectSelected:function(e){if(this.items){var t=this._valueToItem(this.selected);t?this._selection.select(t):this._selection.clear(),this.fallbackSelection&&this.items.length&&void 0===this._selection.get()&&(this.selected=this.fallbackSelection)}},_filterItem:function(e){return!this._excludedLocalNames[e.localName]},_valueToItem:function(e){return null==e?null:this.items[this._valueToIndex(e)]},_valueToIndex:function(e){if(!this.attrForSelected)return Number(e);for(var t,r=0;t=this.items[r];r++)if(this._valueForItem(t)==e)return r},_indexToValue:function(e){if(!this.attrForSelected)return e;var t=this.items[e];return t?this._valueForItem(t):void 0},_valueForItem:function(e){if(!e)return null;if(!this.attrForSelected){var t=this.indexOf(e);return-1===t?null:t}var r=e[(0,o.z)(this.attrForSelected)];return null!=r?r:e.getAttribute(this.attrForSelected)},_applySelection:function(e,t){this.selectedClass&&this.toggleClass(this.selectedClass,t,e),this.selectedAttribute&&this.toggleAttribute(this.selectedAttribute,t,e),this._selectionChange(),this.fire("iron-"+(t?"select":"deselect"),{item:e})},_selectionChange:function(){this._setSelectedItem(this._selection.get())},_observeItems:function(e){return(0,i.vz)(e).observeNodes((function(e){this._updateItems(),this._updateSelected(),this.fire("iron-items-changed",e,{bubbles:!1,cancelable:!1})}))},_activateHandler:function(e){for(var t=e.target,r=this.items;t&&t!=this;){var n=r.indexOf(t);if(n>=0){var i=this._indexToValue(n);return void this._itemActivate(i,t)}t=t.parentNode}},_itemActivate:function(e,t){this.fire("iron-activate",{selected:e,item:t},{cancelable:!0}).defaultPrevented||this.select(e)}},f={properties:{multi:{type:Boolean,value:!1,observer:"multiChanged"},selectedValues:{type:Array,notify:!0,value:function(){return[]}},selectedItems:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}}},observers:["_updateSelected(selectedValues.splices)"],select:function(e){this.multi?this._toggleSelected(e):this.selected=e},multiChanged:function(e){this._selection.multi=e,this._updateSelected()},get _shouldUpdateSelection(){return null!=this.selected||null!=this.selectedValues&&this.selectedValues.length},_updateAttrForSelected:function(){this.multi?this.selectedItems&&this.selectedItems.length>0&&(this.selectedValues=this.selectedItems.map((function(e){return this._indexToValue(this.indexOf(e))}),this).filter((function(e){return null!=e}),this)):d._updateAttrForSelected.apply(this)},_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},_selectMulti:function(e){e=e||[];var t=(this._valuesToItems(e)||[]).filter((function(e){return null!=e}));this._selection.clear(t);for(var r=0;r\n :host {\n display: block;\n padding: 8px 0;\n\n background: var(--paper-listbox-background-color, var(--primary-background-color));\n color: var(--paper-listbox-color, var(--primary-text-color));\n\n @apply --paper-listbox;\n }\n \n\n \n"],l||(l=c.slice(0)),s=Object.freeze(Object.defineProperties(c,{raw:{value:Object.freeze(l)}})))),is:"paper-listbox",behaviors:[h],hostAttributes:{role:"listbox"}})},55489:function(e,t,r){"use strict";r(67034);var n=r(8621),i=r(26110),o=r(18149),a=void 0,s={properties:{sizingTarget:{type:Object,value:function(){return this}},fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object}},get _fitWidth(){return this.fitInto===window?this.fitInto.innerWidth:this.fitInto.getBoundingClientRect().width},get _fitHeight(){return this.fitInto===window?this.fitInto.innerHeight:this.fitInto.getBoundingClientRect().height},get _fitLeft(){return this.fitInto===window?0:this.fitInto.getBoundingClientRect().left},get _fitTop(){return this.fitInto===window?0:this.fitInto.getBoundingClientRect().top},get _defaultPositionTarget(){var e=(0,o.vz)(this).parentNode;return e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(e=e.host),e},get _localeHorizontalAlign(){if(this._isRTL){if("right"===this.horizontalAlign)return"left";if("left"===this.horizontalAlign)return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){return void 0===this._memoizedIsRTL&&(this._memoizedIsRTL="rtl"==window.getComputedStyle(this).direction),this._memoizedIsRTL},attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget,this.autoFitOnAttach&&("none"===window.getComputedStyle(this).display?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit()))},detached:function(){this.__deferredFit&&(clearTimeout(this.__deferredFit),this.__deferredFit=null)},fit:function(){this.position(),this.constrain(),this.center()},_discoverInfo:function(){if(!this._fitInfo){var e=window.getComputedStyle(this),t=window.getComputedStyle(this.sizingTarget);this._fitInfo={inlineStyle:{top:this.style.top||"",left:this.style.left||"",position:this.style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||""},positionedBy:{vertically:"auto"!==e.top?"top":"auto"!==e.bottom?"bottom":null,horizontally:"auto"!==e.left?"left":"auto"!==e.right?"right":null},sizedBy:{height:"none"!==t.maxHeight,width:"none"!==t.maxWidth,minWidth:parseInt(t.minWidth,10)||0,minHeight:parseInt(t.minHeight,10)||0},margin:{top:parseInt(e.marginTop,10)||0,right:parseInt(e.marginRight,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0}}}},resetFit:function(){var e=this._fitInfo||{};for(var t in e.sizerInlineStyle)this.sizingTarget.style[t]=e.sizerInlineStyle[t];for(var t in e.inlineStyle)this.style[t]=e.inlineStyle[t];this._fitInfo=null},refit:function(){var e=this.sizingTarget.scrollLeft,t=this.sizingTarget.scrollTop;this.resetFit(),this.fit(),this.sizingTarget.scrollLeft=e,this.sizingTarget.scrollTop=t},position:function(){if(this.__shouldPosition){this._discoverInfo(),window.ShadyDOM&&window.ShadyDOM.flush(),this.style.position="fixed",this.sizingTarget.style.boxSizing="border-box",this.style.left="0px",this.style.top="0px";var e,t,r,n,i=this.getBoundingClientRect(),o=this.__getNormalizedRect(this.positionTarget),s=this.__getNormalizedRect(this.fitInto);this.expandSizingTargetForScrollbars&&(e=this.sizingTarget.offsetWidth,t=this.sizingTarget.offsetHeight,r=this.sizingTarget.clientWidth,n=this.sizingTarget.clientHeight);var c=this._fitInfo.margin,l={width:i.width+c.left+c.right,height:i.height+c.top+c.bottom},u=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,l,i,o,s),d=u.left+c.left,f=u.top+c.top,p=Math.min(s.right-c.right,d+i.width),h=Math.min(s.bottom-c.bottom,f+i.height);d=Math.max(s.left+c.left,Math.min(d,p-this._fitInfo.sizedBy.minWidth)),f=Math.max(s.top+c.top,Math.min(f,h-this._fitInfo.sizedBy.minHeight));var m=Math.max(p-d,this._fitInfo.sizedBy.minWidth),y=Math.max(h-f,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=m+"px",this.sizingTarget.style.maxHeight=y+"px";var v=d-i.left,b=f-i.top;if(this.style.left="".concat(v,"px"),this.style.top="".concat(b,"px"),this.expandSizingTargetForScrollbars){var g=this.sizingTarget.offsetHeight,_=g-this.sizingTarget.clientHeight-(t-n);if(_>0){var w=s.height-c.top-c.bottom,k=Math.min(w,y+_);this.sizingTarget.style.maxHeight="".concat(k,"px");var E,x=this.sizingTarget.offsetHeight,S=x-g;"top"===u.verticalAlign?E=b:"middle"===u.verticalAlign?E=b-S/2:"bottom"===u.verticalAlign&&(E=b-S),E=Math.max(s.top+c.top,Math.min(E,s.bottom-c.bottom-x)),this.style.top="".concat(E,"px")}var A=this.sizingTarget.offsetWidth,T=A-this.sizingTarget.clientWidth-(e-r);if(T>0){var C=function(){if(void 0!==a)return a;var e=document.createElement("div");Object.assign(e.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"});var t=document.createElement("div");return t.style.width="200px",t.style.height="200px",e.appendChild(t),document.body.appendChild(e),a=Math.abs(e.offsetWidth-100)>1?e.offsetWidth-e.clientWidth:0,document.body.removeChild(e),a}(),O=s.width-c.left-c.right,P=Math.min(O,m+T-C);this.sizingTarget.style.maxWidth="".concat(P,"px");var M,R=this.sizingTarget.offsetWidth+C,D=R-A;"left"===u.horizontalAlign?M=v:"center"===u.horizontalAlign?M=v-D/2:"right"===u.horizontalAlign&&(M=v-D),M=Math.max(s.left+c.left,Math.min(M,s.right-c.right-R)),this.style.left="".concat(M,"px")}}}},constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var e=this._fitInfo;e.positionedBy.vertically||(this.style.position="fixed",this.style.top="0px"),e.positionedBy.horizontally||(this.style.position="fixed",this.style.left="0px"),this.sizingTarget.style.boxSizing="border-box";var t=this.getBoundingClientRect();e.sizedBy.height||this.__sizeDimension(t,e.positionedBy.vertically,"top","bottom","Height"),e.sizedBy.width||this.__sizeDimension(t,e.positionedBy.horizontally,"left","right","Width")}},_sizeDimension:function(e,t,r,n,i){this.__sizeDimension(e,t,r,n,i)},__sizeDimension:function(e,t,r,n,i){var o=this._fitInfo,a=this.__getNormalizedRect(this.fitInto),s="Width"===i?a.width:a.height,c=t===n,l=c?s-e[n]:e[r],u=o.margin[c?r:n],d="offset"+i,f=this[d]-this.sizingTarget[d];this.sizingTarget.style["max"+i]=s-u-l-f+"px"},center:function(){if(!this.__shouldPosition){this._discoverInfo();var e=this._fitInfo.positionedBy;if(!e.vertically||!e.horizontally){this.style.position="fixed",e.vertically||(this.style.top="0px"),e.horizontally||(this.style.left="0px");var t=this.getBoundingClientRect(),r=this.__getNormalizedRect(this.fitInto);if(!e.vertically){var n=r.top-t.top+(r.height-t.height)/2;this.style.top=n+"px"}if(!e.horizontally){var i=r.left-t.left+(r.width-t.width)/2;this.style.left=i+"px"}}}},__getNormalizedRect:function(e){return e===document.documentElement||e===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:e.getBoundingClientRect()},__getOffscreenArea:function(e,t,r){var n=Math.min(0,e.top)+Math.min(0,r.bottom-(e.top+t.height)),i=Math.min(0,e.left)+Math.min(0,r.right-(e.left+t.width));return Math.abs(n)*t.width+Math.abs(i)*t.height},__getPosition:function(e,t,r,n,i,o){var a,s=[{verticalAlign:"top",horizontalAlign:"left",top:i.top+this.verticalOffset,left:i.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:i.top+this.verticalOffset,left:i.right-r.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:i.bottom-r.height-this.verticalOffset,left:i.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:i.bottom-r.height-this.verticalOffset,left:i.right-r.width-this.horizontalOffset}];if(this.noOverlap){for(var c=0,l=s.length;c-1&&(this._interestedResizables.splice(t,1),this._unsubscribeIronResize(e))},_subscribeIronResize:function(e){e.addEventListener("iron-resize",this._boundOnDescendantIronResize)},_unsubscribeIronResize:function(e){e.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},resizerShouldNotify:function(e){return!0},_onDescendantIronResize:function(e){this._notifyingDescendant?e.stopPropagation():c.my||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var t=(0,o.vz)(e).rootTarget;t!==this&&(t.assignParentResizable(this),this._notifyDescendant(t),e.stopPropagation())},_parentResizableChanged:function(e){e&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&(this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)},_requestResizeNotifications:function(){if(this.isAttached)if("loading"===document.readyState){var e=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",(function t(){document.removeEventListener("readystatechange",t),e()}))}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach((function(e){e!==this&&e._findParent()}),this):(l.forEach((function(e){e!==this&&e._findParent()}),this),window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())},_findParent:function(){this.assignParentResizable(null),this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable?l.delete(this):l.add(this)}};function d(e,t){for(var r=0;r0;i>=0&&t.push(r),n="content"===r.localName||"slot"===r.localName?(0,o.vz)(r).getDistributedNodes():(0,o.vz)(r.root||r).children;for(var s=0;s0&&t.length>0;)this._hasLowerTabOrder(e[0],t[0])?r.push(t.shift()):r.push(e.shift());return r.concat(e,t)}},{key:"_hasLowerTabOrder",value:function(e,t){var r=Math.max(e.tabIndex,0),n=Math.max(t.tabIndex,0);return 0===r||0===n?n>r:r>n}}])&&d(t.prototype,r),n&&d(t,n),e}()),b=r(67139),g=r(50856);(0,b.k)({_template:(0,g.d)(f||(p=["\n \n\n \n"],h||(h=p.slice(0)),f=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(h)}})))),is:"iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},attached:function(){this.opened&&this._openedChanged(this.opened)},prepare:function(){this.opened&&!this.parentNode&&(0,o.vz)(document.body).appendChild(this)},open:function(){this.opened=!0},close:function(){this.opened=!1},complete:function(){this.opened||this.parentNode!==document.body||(0,o.vz)(this.parentNode).removeChild(this)},_onTransitionend:function(e){e&&e.target===this&&this.complete()},_openedChanged:function(e){if(e)this.prepare();else{var t=window.getComputedStyle(this);"0s"!==t.transitionDuration&&0!=t.opacity||this.complete()}this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null,this.toggleClass("opened",this.opened)}.bind(this)))}});var _=r(81668);function w(e,t){for(var r=0;r=r)){var i=Math.max(this.currentOverlayZ(),this._minimumZ);for(this._getZ(t)<=i&&this._applyOverlayZ(t,i);e=0)return this._bringOverlayAtIndexToFront(t),void this.trackBackdrop();var r=this._overlays.length,n=this._overlays[r-1],i=Math.max(this._getZ(n),this._minimumZ),o=this._getZ(e);if(n&&this._shouldBeBehindOverlay(e,n)){this._applyOverlayZ(n,i),r--;var a=this._overlays[r-1];i=Math.max(this._getZ(a),this._minimumZ)}o<=i&&this._applyOverlayZ(e,i),this._overlays.splice(r,0,e),this.trackBackdrop()}},{key:"removeOverlay",value:function(e){var t=this._overlays.indexOf(e);-1!==t&&(this._overlays.splice(t,1),this.trackBackdrop())}},{key:"currentOverlay",value:function(){var e=this._overlays.length-1;return this._overlays[e]}},{key:"currentOverlayZ",value:function(){return this._getZ(this.currentOverlay())}},{key:"ensureMinimumZ",value:function(e){this._minimumZ=Math.max(this._minimumZ,e)}},{key:"focusOverlay",value:function(){var e=this.currentOverlay();e&&e._applyFocus()}},{key:"trackBackdrop",value:function(){var e=this._overlayWithBackdrop();(e||this._backdropElement)&&(this.backdropElement.style.zIndex=this._getZ(e)-1,this.backdropElement.opened=!!e,this.backdropElement.prepare())}},{key:"getBackdrops",value:function(){for(var e=[],t=0;t=0;e--)if(this._overlays[e].withBackdrop)return this._overlays[e]}},{key:"_getZ",value:function(e){var t=this._minimumZ;if(e){var r=Number(e.style.zIndex||window.getComputedStyle(e).zIndex);r==r&&(t=r)}return t}},{key:"_setZ",value:function(e,t){e.style.zIndex=t}},{key:"_applyOverlayZ",value:function(e,t){this._setZ(e,t+2)}},{key:"_overlayInPath",value:function(e){e=e||[];for(var t=0;t=0||(0===M.length&&function(){k=k||R.bind(void 0);for(var e=0,t=C.length;e=Math.abs(t),i=0;i0:o.scrollTop0:o.scrollLeft=0))switch(this.scrollAction){case"lock":this.__restoreScrollPosition();break;case"refit":this.__deraf("refit",this.refit);break;case"cancel":this.cancel(e)}},__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}},I=function(e,t){for(var r=t;r;r=(n=r).assignedSlot||n.parentNode||n.host)if(r===e)return!0;var n;return!1},j=[s,u,L],z={properties:{animationConfig:{type:Object},entryAnimation:{observer:"_entryAnimationChanged",type:String},exitAnimation:{observer:"_exitAnimationChanged",type:String}},_entryAnimationChanged:function(){this.animationConfig=this.animationConfig||{},this.animationConfig.entry=[{name:this.entryAnimation,node:this}]},_exitAnimationChanged:function(){this.animationConfig=this.animationConfig||{},this.animationConfig.exit=[{name:this.exitAnimation,node:this}]},_copyProperties:function(e,t){for(var r in t)e[r]=t[r]},_cloneConfig:function(e){var t={isClone:!0};return this._copyProperties(t,e),t},_getAnimationConfigRecursive:function(e,t,r){var n;if(this.animationConfig)if(this.animationConfig.value&&"function"==typeof this.animationConfig.value)this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));else if(n=e?this.animationConfig[e]:this.animationConfig,Array.isArray(n)||(n=[n]),n)for(var i,o=0;i=n[o];o++)if(i.animatable)i.animatable._getAnimationConfigRecursive(i.type||e,t,r);else if(i.id){var a=t[i.id];a?(a.isClone||(t[i.id]=this._cloneConfig(a),a=t[i.id]),this._copyProperties(a,i)):t[i.id]=i}else r.push(i)},getAnimationConfig:function(e){var t={},r=[];for(var n in this._getAnimationConfigRecursive(e,t,r),t)r.push(t[n]);return r}},N={_configureAnimations:function(e){var t=[],r=[];if(e.length>0)for(var n,i=0;n=e[i];i++){var o=document.createElement(n.name);if(o.isNeonAnimation){var a;o.configure||(o.configure=function(e){return null}),a=o.configure(n),r.push({result:a,config:n,neonAnimation:o})}else console.warn(this.is+":",n.name,"not found!")}for(var s=0;s\n :host {\n position: fixed;\n }\n\n #contentWrapper ::slotted(*) {\n overflow: auto;\n }\n\n #contentWrapper.animating ::slotted(*) {\n overflow: hidden;\n pointer-events: none;\n }\n \n\n
    \n \n
    \n']))),is:"iron-dropdown",behaviors:[i.a,n.G,j,F],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],get containedElement(){for(var e=(0,o.vz)(this.$.content).getDistributedNodes(),t=0,r=e.length;t\n :host {\n display: inline-block;\n position: relative;\n padding: 8px;\n outline: none;\n\n @apply --paper-menu-button;\n }\n\n :host([disabled]) {\n cursor: auto;\n color: var(--disabled-text-color);\n\n @apply --paper-menu-button-disabled;\n }\n\n iron-dropdown {\n @apply --paper-menu-button-dropdown;\n }\n\n .dropdown-content {\n @apply --shadow-elevation-2dp;\n\n position: relative;\n border-radius: 2px;\n background-color: var(--paper-menu-button-dropdown-background, var(--primary-background-color));\n\n @apply --paper-menu-button-content;\n }\n\n :host([vertical-align="top"]) .dropdown-content {\n margin-bottom: 20px;\n margin-top: -10px;\n top: 10px;\n }\n\n :host([vertical-align="bottom"]) .dropdown-content {\n bottom: 10px;\n margin-bottom: -10px;\n margin-top: 20px;\n }\n\n #trigger {\n cursor: pointer;\n }\n \n\n
    \n \n
    \n\n \n \n \n']))),is:"paper-menu-button",behaviors:[n.G,i.a],properties:{opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},noOverlap:{type:Boolean},noAnimations:{type:Boolean,value:!1},ignoreSelect:{type:Boolean,value:!1},closeOnActivate:{type:Boolean,value:!1},openAnimationConfig:{type:Object,value:function(){return[{name:"fade-in-animation",timing:{delay:100,duration:200}},{name:"paper-menu-grow-width-animation",timing:{delay:100,duration:150,easing:Z.ANIMATION_CUBIC_BEZIER}},{name:"paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Z.ANIMATION_CUBIC_BEZIER}}]}},closeAnimationConfig:{type:Object,value:function(){return[{name:"fade-out-animation",timing:{duration:150}},{name:"paper-menu-shrink-width-animation",timing:{delay:100,duration:50,easing:Z.ANIMATION_CUBIC_BEZIER}},{name:"paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var e=(0,o.vz)(this.$.content).getDistributedNodes(),t=0,r=e.length;t-1&&e.preventDefault()}});Object.keys(Z).forEach((function(e){U[e]=Z[e]}))},60748:function(e,t,r){"use strict";r(67034);var n,i=r(8621),o=r(67139),a=r(18149),s=r(50856);var c,l,u={distance:function(e,t,r,n){var i=e-r,o=t-n;return Math.sqrt(i*i+o*o)},now:window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now};function d(e){this.element=e,this.width=this.boundingRect.width,this.height=this.boundingRect.height,this.size=Math.max(this.width,this.height)}function f(e){this.element=e,this.color=window.getComputedStyle(e).color,this.wave=document.createElement("div"),this.waveContainer=document.createElement("div"),this.wave.style.backgroundColor=this.color,this.wave.classList.add("wave"),this.waveContainer.classList.add("wave-container"),(0,a.vz)(this.waveContainer).appendChild(this.wave),this.resetInteractionState()}d.prototype={get boundingRect(){return this.element.getBoundingClientRect()},furthestCornerDistanceFrom:function(e,t){var r=u.distance(e,t,0,0),n=u.distance(e,t,this.width,0),i=u.distance(e,t,0,this.height),o=u.distance(e,t,this.width,this.height);return Math.max(r,n,i,o)}},f.MAX_RADIUS=300,f.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){var e;return this.mouseDownStart?(e=u.now()-this.mouseDownStart,this.mouseUpStart&&(e-=this.mouseUpElapsed),e):0},get mouseUpElapsed(){return this.mouseUpStart?u.now()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1e3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1e3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var e=this.containerMetrics.width*this.containerMetrics.width,t=this.containerMetrics.height*this.containerMetrics.height,r=1.1*Math.min(Math.sqrt(e+t),f.MAX_RADIUS)+5,n=1.1-r/f.MAX_RADIUS*.2,i=this.mouseInteractionSeconds/n,o=r*(1-Math.pow(80,-i));return Math.abs(o)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){var e=.3*this.mouseUpElapsedSeconds,t=this.opacity;return Math.max(0,Math.min(e,t))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,f.MAX_RADIUS)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,f.MAX_RADIUS)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},resetInteractionState:function(){this.maxRadius=0,this.mouseDownStart=0,this.mouseUpStart=0,this.xStart=0,this.yStart=0,this.xEnd=0,this.yEnd=0,this.slideDistance=0,this.containerMetrics=new d(this.element)},draw:function(){var e,t,r;this.wave.style.opacity=this.opacity,e=this.radius/(this.containerMetrics.size/2),t=this.xNow-this.containerMetrics.width/2,r=this.yNow-this.containerMetrics.height/2,this.waveContainer.style.webkitTransform="translate("+t+"px, "+r+"px)",this.waveContainer.style.transform="translate3d("+t+"px, "+r+"px, 0)",this.wave.style.webkitTransform="scale("+e+","+e+")",this.wave.style.transform="scale3d("+e+","+e+",1)"},downAction:function(e){var t=this.containerMetrics.width/2,r=this.containerMetrics.height/2;this.resetInteractionState(),this.mouseDownStart=u.now(),this.center?(this.xStart=t,this.yStart=r,this.slideDistance=u.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)):(this.xStart=e?e.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=e?e.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2),this.recenters&&(this.xEnd=t,this.yEnd=r,this.slideDistance=u.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)),this.maxRadius=this.containerMetrics.furthestCornerDistanceFrom(this.xStart,this.yStart),this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px",this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px",this.waveContainer.style.width=this.containerMetrics.size+"px",this.waveContainer.style.height=this.containerMetrics.size+"px"},upAction:function(e){this.isMouseDown&&(this.mouseUpStart=u.now())},remove:function(){(0,a.vz)((0,a.vz)(this.waveContainer).parentNode).removeChild(this.waveContainer)}},(0,o.k)({_template:(0,s.d)(n||(c=['\n \n\n
    \n
    \n'],l||(l=c.slice(0)),n=Object.freeze(Object.defineProperties(c,{raw:{value:Object.freeze(l)}})))),is:"paper-ripple",behaviors:[i.G],properties:{initialOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:.8},recenters:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{type:Array,value:function(){return[]}},animating:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChanged"},noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type:Function,value:function(){return this.animate.bind(this)}}},get target(){return this.keyEventTarget},keyBindings:{"enter:keydown":"_onEnterKeydown","space:keydown":"_onSpaceKeydown","space:keyup":"_onSpaceKeyup"},attached:function(){11==(0,a.vz)(this).parentNode.nodeType?this.keyEventTarget=(0,a.vz)(this).getOwnerRoot().host:this.keyEventTarget=(0,a.vz)(this).parentNode;var e=this.keyEventTarget;this.listen(e,"up","uiUpAction"),this.listen(e,"down","uiDownAction")},detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction"),this.unlisten(this.keyEventTarget,"down","uiDownAction"),this.keyEventTarget=null},get shouldKeepAnimating(){for(var e=0;e0||(this.addRipple().downAction(e),this._animating||(this._animating=!0,this.animate()))},uiUpAction:function(e){this.noink||this.upAction(e)},upAction:function(e){this.holdDown||(this.ripples.forEach((function(t){t.upAction(e)})),this._animating=!0,this.animate())},onAnimationComplete:function(){this._animating=!1,this.$.background.style.backgroundColor="",this.fire("transitionend")},addRipple:function(){var e=new f(this);return(0,a.vz)(this.$.waves).appendChild(e.waveContainer),this.$.background.style.backgroundColor=e.color,this.ripples.push(e),this._setAnimating(!0),e},removeRipple:function(e){var t=this.ripples.indexOf(e);t<0||(this.ripples.splice(t,1),e.remove(),this.ripples.length||this._setAnimating(!1))},animate:function(){if(this._animating){var e,t;for(e=0;e\n \n'],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}}))));a.setAttribute("style","display: none;"),document.head.appendChild(a.content)},70019:function(e,t,r){"use strict";var n;r(67034);var i,o,a=(0,r(50856).d)(n||(i=["\n \n"],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}}))));a.setAttribute("style","display: none;"),document.head.appendChild(a.content)},5618:function(e,t,r){"use strict";var n=r(34816),i=r(10868),o=r(26539),a=new n.ZP;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(e,t,r){},prepareTemplateDom:function(e,t){},prepareTemplateStyles:function(e,t,r){},styleSubtree:function(e,t){a.processStyles(),(0,i.wW)(e,t)},styleElement:function(e){a.processStyles()},styleDocument:function(e){a.processStyles(),(0,i.wW)(document.body,e)},getComputedStyleValue:function(e,t){return(0,i.B7)(e,t)},flushCustomStyles:function(){},nativeCss:o.rd,nativeShadow:o.WA,cssBuild:o.Cp,disableRuntime:o.jF}),window.ShadyCSS.CustomStyleInterface=a;var s=r(15392);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:"",n="";if(e.cssText||e.rules){var i=e.rules;if(i&&!c(i))for(var o,a=0,u=i.length;a1&&void 0!==arguments[1]?arguments[1]:"",r=k(e);return this.transformRules(r,t),e.textContent=w(r),r}},{key:"transformCustomStyle",value:function(e){var t=this,r=k(e);return E(r,(function(e){":root"===e.selector&&(e.selector="html"),t.transformRule(e)})),e.textContent=w(r),r}},{key:"transformRules",value:function(e,t){var r=this;this._currentElement=t,E(e,(function(e){r.transformRule(e)})),this._currentElement=null}},{key:"transformRule",value:function(e){e.cssText=this.transformCssText(e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")}},{key:"transformCssText",value:function(e,t){var r=this;return e=e.replace(v.CN,(function(e,n,i,o){return r._produceCssProperties(e,n,i,o,t)})),this._consumeCssProperties(e,t)}},{key:"_getInitialValueForProperty",value:function(e){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(e)}},{key:"_fallbacksFromPreviousRules",value:function(e){for(var t=this,r=e;r.parent;)r=r.parent;var n={},i=!1;return E(r,(function(r){(i=i||r===e)||r.selector===e.selector&&Object.assign(n,t._cssTextToMap(r.parsedCssText))})),n}},{key:"_consumeCssProperties",value:function(e,t){for(var r=null;r=v.$T.exec(e);){var n=r[0],i=r[1],o=r.index,a=o+n.indexOf("@apply"),s=o+n.length,c=e.slice(0,a),l=e.slice(s),u=t?this._fallbacksFromPreviousRules(t):{};Object.assign(u,this._cssTextToMap(c));var d=this._atApplyToCssProperties(i,u);e="".concat(c).concat(d).concat(l),v.$T.lastIndex=o+d.length}return e}},{key:"_atApplyToCssProperties",value:function(e,t){e=e.replace(D,"");var r=[],n=this._map.get(e);if(n||(this._map.set(e,{}),n=this._map.get(e)),n){var i,o,a;this._currentElement&&(n.dependants[this._currentElement]=!0);var s=n.properties;for(i in s)a=t&&t[i],o=[i,": var(",e,j,i],a&&o.push(",",a.replace(I,"")),o.push(")"),I.test(s[i])&&o.push(" !important"),r.push(o.join(""))}return r.join("; ")}},{key:"_replaceInitialOrInherit",value:function(e,t){var r=L.exec(t);return r&&(t=r[1]?this._getInitialValueForProperty(e):"apply-shim-inherit"),t}},{key:"_cssTextToMap",value:function(e){for(var t,r,n,i,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=e.split(";"),s={},c=0;c1&&(t=i[0].trim(),r=i.slice(1).join(":"),o&&(r=this._replaceInitialOrInherit(t,r)),s[t]=r);return s}},{key:"_invalidateMixinEntry",value:function(e){if(N)for(var t in e.dependants)t!==this._currentElement&&N(t)}},{key:"_produceCssProperties",value:function(e,t,r,n,i){var o=this;if(r&&S(r,(function(e,t){t&&o._map.get(t)&&(n="@apply ".concat(t,";"))})),!n)return e;var a=this._consumeCssProperties(""+n,i),s=e.slice(0,e.indexOf("--")),c=this._cssTextToMap(a,!0),l=c,u=this._map.get(t),d=u&&u.properties;d?l=Object.assign(Object.create(d),c):this._map.set(t,l);var f,p,h=[],m=!1;for(f in l)void 0===(p=c[f])&&(p="initial"),d&&!(f in d)&&(m=!0),h.push("".concat(t).concat(j).concat(f,": ").concat(p));return m&&this._invalidateMixinEntry(u),u&&(u.properties=l),r&&(s="".concat(e,";").concat(s)),"".concat(s).concat(h.join("; "),";")}}]),e}();F.prototype.detectMixin=F.prototype.detectMixin,F.prototype.transformStyle=F.prototype.transformStyle,F.prototype.transformCustomStyle=F.prototype.transformCustomStyle,F.prototype.transformRules=F.prototype.transformRules,F.prototype.transformRule=F.prototype.transformRule,F.prototype.transformTemplate=F.prototype.transformTemplate,F.prototype._separator=j,Object.defineProperty(F.prototype,"invalidCallback",{get:function(){return N},set:function(e){N=e}});var B=F,H={},Z="_applyShimCurrentVersion",U="_applyShimNextVersion",G="_applyShimValidatingVersion",K=Promise.resolve();function V(e){var t=H[e];t&&function(e){e[Z]=e[Z]||0,e[G]=e[G]||0,e[U]=(e[U]||0)+1}(t)}function $(e){return e[Z]===e[U]}function W(e){return!$(e)&&e[G]===e[U]}function Y(e){e[G]=e[U],e._validating||(e._validating=!0,K.then((function(){e[Z]=e[U],e._validating=!1})))}r(34816);function q(e,t){for(var r=0;r-1?r=t:(n=t,r=e.getAttribute&&e.getAttribute("is")||""):(r=e.is,n=e.extends),{is:r,typeExtension:n}}(e),r=t.is,n=H[r];if((!n||!C(n))&&n&&!$(n)){W(n)||(this.prepareTemplate(n,r),Y(n));var i=e.shadowRoot;if(i){var o=i.querySelector("style");o&&(o.__cssRules=n._styleAst,o.textContent=w(n._styleAst))}}}},{key:"styleDocument",value:function(e){this.ensure(),this.styleSubtree(document.body,e)}}])&&q(t.prototype,r),n&&q(t,n),e}();if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var Q=new J,ee=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(e,t,r){Q.flushCustomStyles(),Q.prepareTemplate(e,t)},prepareTemplateStyles:function(e,t,r){window.ShadyCSS.prepareTemplate(e,t,r)},prepareTemplateDom:function(e,t){},styleSubtree:function(e,t){Q.flushCustomStyles(),Q.styleSubtree(e,t)},styleElement:function(e){Q.flushCustomStyles(),Q.styleElement(e)},styleDocument:function(e){Q.flushCustomStyles(),Q.styleDocument(e)},getComputedStyleValue:function(e,t){return(0,O.B7)(e,t)},flushCustomStyles:function(){Q.flushCustomStyles()},nativeCss:n.rd,nativeShadow:n.WA,cssBuild:n.Cp,disableRuntime:n.jF},ee&&(window.ShadyCSS.CustomStyleInterface=ee)}window.ShadyCSS.ApplyShim=X;var te=r(36608),re=r(60995),ne=r(63933),ie=r(76389);function oe(e){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}function ae(e,t){for(var r=0;r-1&&ye.splice(e,1)}}}])&&ae(r.prototype,n),i&&ae(r,i),a}(t);return r.__activateDir=!1,r}));r(87529);function Ee(){document.body.removeAttribute("unresolved")}"interactive"===document.readyState||"complete"===document.readyState?Ee():window.addEventListener("DOMContentLoaded",Ee);var xe=r(18149),Se=r(81668),Ae=r(78956),Te=r(21683),Ce=r(4059),Oe=r(62276),Pe=(r(56646),window.ShadyDOM),Me=window.ShadyCSS;function Re(e,t){return(0,Oe.r)(e).getRootNode()===t}function De(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Pe||!Me)return null;if(!Pe.handlesDynamicScoping)return null;var r=Me.ScopingShim;if(!r)return null;var n=r.scopeForNode(e),i=(0,Oe.r)(e).getRootNode(),o=function(e){if(Re(e,i)){var t=Array.from(Pe.nativeMethods.querySelectorAll.call(e,"*"));t.push(e);for(var o=0;oe.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]&&arguments[1];return De(e,t)}},{key:"getComputedStyleValue",value:function(e){return tt.getComputedStyleValue(this,e)}},{key:"debounce",value:function(e,t,r){return this._debouncers=this._debouncers||{},this._debouncers[e]=Ae.dx.debounce(this._debouncers[e],r>0?Te.Wc.after(r):Te.YA,t.bind(this))}},{key:"isDebouncerActive",value:function(e){this._debouncers=this._debouncers||{};var t=this._debouncers[e];return!(!t||!t.isActive())}},{key:"flushDebouncer",value:function(e){this._debouncers=this._debouncers||{};var t=this._debouncers[e];t&&t.flush()}},{key:"cancelDebouncer",value:function(e){this._debouncers=this._debouncers||{};var t=this._debouncers[e];t&&t.cancel()}},{key:"async",value:function(e,t){return t>0?Te.Wc.run(e.bind(this),t):~Te.YA.run(e.bind(this))}},{key:"cancelAsync",value:function(e){e<0?Te.YA.cancel(~e):Te.Wc.cancel(e)}},{key:"create",value:function(e,t){var r=document.createElement(e);if(t)if(r.setProperties)r.setProperties(t);else for(var n in t)r[n]=t[n];return r}},{key:"elementMatches",value:function(e,t){return(0,xe.Ku)(t||this,e)}},{key:"toggleAttribute",value:function(e,t){var r=this;return 3===arguments.length&&(r=arguments[2]),1==arguments.length&&(t=!r.hasAttribute(e)),t?((0,Oe.r)(r).setAttribute(e,""),!0):((0,Oe.r)(r).removeAttribute(e),!1)}},{key:"toggleClass",value:function(e,t,r){r=r||this,1==arguments.length&&(t=!r.classList.contains(e)),t?r.classList.add(e):r.classList.remove(e)}},{key:"transform",value:function(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}},{key:"translate3d",value:function(e,t,r,n){n=n||this,this.transform("translate3d("+e+","+t+","+r+")",n)}},{key:"arrayDelete",value:function(e,t){var r;if(Array.isArray(e)){if((r=e.indexOf(t))>=0)return e.splice(r,1)}else if((r=(0,Ce.U2)(this,e).indexOf(t))>=0)return this.splice(e,r,1);return null}},{key:"_logger",value:function(e,t){var r;switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":(r=console)[e].apply(r,Ve(t))}}},{key:"_log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),n=1;n=0;n--){var i=e[n];i?Array.isArray(i)?v(i,t):t.indexOf(i)<0&&(!r||r.indexOf(i)<0)&&t.unshift(i):console.warn("behavior is null, check for missing or 404 import")}return t}function b(e,t){for(var r in t){var n=e[r],i=t[r];e[r]=!("value"in i)&&n&&"value"in n?Object.assign({value:n.value},i):i}}var g=(0,n.x)(HTMLElement);function _(e,t,r){var n,o={},d=function(r){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(y,r);var d,p,h,m=u(y);function y(){return a(this,y),m.apply(this,arguments)}return d=y,h=[{key:"_finalizeClass",value:function(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(n)for(var r,i=0;i=0;t--){var r=e[t];for(var n in r)this._ensureAttribute(n,r[n])}c(f(y.prototype),"_ensureAttributes",this).call(this)}},{key:"ready",value:function(){c(f(y.prototype),"ready",this).call(this);var e=o.ready;if(e)for(var t=0;t>1,s=r.get(t[a].methodInfo)-r.get(e.methodInfo);if(s<0)n=a+1;else{if(!(s>0)){o=a;break}i=a-1}}o<0&&(o=i+1),t.splice(o,0,e)},Y=function(e,t,r,n,i){var a=t[i?(0,o.Jz)(e):e];if(a)for(var s=0;su.source.length&&"property"==l.kind&&!l.isCompound&&c.__isPropertyEffectsClient&&c.__dataHasAccessor&&c.__dataHasAccessor[l.target]){var d=r[t];t=(0,o.Iu)(u.source,l.target,t),c._setPendingPropertyOrPath(t,d,!1,!0)&&e._enqueueClient(c)}else{var f=i.evaluator._evaluateBinding(e,u,t,r,n,a);f!==L&&function(e,t,r,n,i){i=function(e,t,r,n){if(r.isCompound){var i=e.__dataCompoundStorage[r.target];i[n.compoundIndex]=t,t=i.join("")}"attribute"!==r.kind&&("textContent"!==r.target&&("value"!==r.target||"input"!==e.localName&&"textarea"!==e.localName)||(t=null==t?"":t));return t}(t,i,r,n),S.v1&&(i=(0,S.v1)(i,r.target,r.kind,t));if("attribute"==r.kind)e._valueToNodeAttribute(t,i,r.target);else{var o=r.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[o]?t[I.READ_ONLY]&&t[I.READ_ONLY][o]||t._setPendingProperty(o,i)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,o,i)}}(e,c,l,u,f)}}function ee(e,t){if(t.isCompound){for(var r=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),i=t.parts,o=new Array(i.length),a=0;a="0"&&n<="9"&&(n="#"),n){case"'":case'"':r.value=t.slice(1,-1),r.literal=!0;break;case"#":r.value=Number(t),r.literal=!0}return r.literal||(r.rootProperty=(0,o.Jz)(t),r.structured=(0,o.AZ)(t),r.structured&&(r.wildcard=".*"==t.slice(-2),r.wildcard&&(r.name=t.slice(0,-2)))),r}function le(e,t,r){var n=(0,o.U2)(e,r);return void 0===n&&(n=t[r]),n}function ue(e,t,r,n){var i={indexSplices:n};S.HY&&!e._overrideLegacyUndefined&&(t.splices=i),e.notifyPath(r+".splices",i),e.notifyPath(r+".length",t.length),S.HY&&!e._overrideLegacyUndefined&&(i.indexSplices=[])}function de(e,t,r,n,i,o){ue(e,t,r,[{index:n,addedCount:i,removed:o,object:t,type:"splice"}])}var fe=(0,i.o)((function(e){var t=x((0,s.Q)(e)),r=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(l,e);var r,i,s,c=O(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=c.call(this)).__isPropertyEffectsClient=!0,e.__dataClientsReady,e.__dataPendingClients,e.__dataToNotify,e.__dataLinkedPaths,e.__dataHasPaths,e.__dataCompoundStorage,e.__dataHost,e.__dataTemp,e.__dataClientsInitialized,e.__data,e.__dataPending,e.__dataOld,e.__computeEffects,e.__computeInfo,e.__reflectEffects,e.__notifyEffects,e.__propagateEffects,e.__observeEffects,e.__readOnly,e.__templateInfo,e._overrideLegacyUndefined,e}return r=l,i=[{key:"PROPERTY_EFFECT_TYPES",get:function(){return I}},{key:"_initializeProperties",value:function(){T(M(l.prototype),"_initializeProperties",this).call(this),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}},{key:"_registerHost",value:function(){if(pe.length){var e=pe[pe.length-1];e._enqueueClient(this),this.__dataHost=e}}},{key:"_initializeProtoProperties",value:function(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}},{key:"_initializeInstanceProperties",value:function(e){var t=this[I.READ_ONLY];for(var r in e)t&&t[r]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[r]=this.__dataPending[r]=e[r])}},{key:"_addPropertyEffect",value:function(e,t,r){this._createPropertyAccessor(e,t==I.READ_ONLY);var n=N(this,t,!0)[e];n||(n=this[t][e]=[]),n.push(r)}},{key:"_removePropertyEffect",value:function(e,t,r){var n=N(this,t,!0)[e],i=n.indexOf(r);i>=0&&n.splice(i,1)}},{key:"_hasPropertyEffect",value:function(e,t){var r=this[t];return Boolean(r&&r[e])}},{key:"_hasReadOnlyEffect",value:function(e){return this._hasPropertyEffect(e,I.READ_ONLY)}},{key:"_hasNotifyEffect",value:function(e){return this._hasPropertyEffect(e,I.NOTIFY)}},{key:"_hasReflectEffect",value:function(e){return this._hasPropertyEffect(e,I.REFLECT)}},{key:"_hasComputedEffect",value:function(e){return this._hasPropertyEffect(e,I.COMPUTE)}},{key:"_setPendingPropertyOrPath",value:function(e,t,r,n){if(n||(0,o.Jz)(Array.isArray(e)?e[0]:e)!==e){if(!n){var i=(0,o.U2)(this,e);if(!(e=(0,o.t8)(this,e,t))||!T(M(l.prototype),"_shouldPropertyChange",this).call(this,e,t,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,r))return function(e,t,r){var n,i=e.__dataLinkedPaths;if(i)for(var a in i){var s=i[a];(0,o.SG)(a,t)?(n=(0,o.Iu)(a,s,t),e._setPendingPropertyOrPath(n,r,!0,!0)):(0,o.SG)(s,t)&&(n=(0,o.Iu)(s,a,t),e._setPendingPropertyOrPath(n,r,!0,!0))}}(this,e,t),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,r);this[e]=t}return!1}},{key:"_setUnmanagedPropertyToNode",value:function(e,t,r){r===e[t]&&"object"!=R(r)||("className"===t&&(e=(0,n.r)(e)),e[t]=r)}},{key:"_setPendingProperty",value:function(e,t,r){var n=this.__dataHasPaths&&(0,o.AZ)(e),i=n?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,i[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),n?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(n||this[I.NOTIFY]&&this[I.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=r),!0)}},{key:"_setProperty",value:function(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}},{key:"_invalidateProperties",value:function(){this.__dataReady&&this._flushProperties()}},{key:"_enqueueClient",value:function(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}},{key:"_flushClients",value:function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}},{key:"__enableOrFlushClients",value:function(){var e=this.__dataPendingClients;if(e){this.__dataPendingClients=null;for(var t=0;t1?i-1:0),s=1;s3?n-3:0),a=3;a1?n-1:0),a=1;a1)return L;i[a]=f}return i}},{key:"_bindTemplate",value:function(e,t){var r=this.constructor._parseTemplate(e),n=this.__preBoundTemplateInfo==r;if(!n)for(var i in r.propertyEffects)this._createPropertyAccessor(i);if(t)if((r=Object.create(r)).wasPreBound=n,this.__templateInfo){var o=e._parentTemplateInfo||this.__templateInfo,a=o.lastChild;r.parent=o,o.lastChild=r,r.previousSibling=a,a?a.nextSibling=r:o.firstChild=r}else this.__templateInfo=r;else this.__preBoundTemplateInfo=r;return r}},{key:"_stampTemplate",value:function(e,t){t=t||this._bindTemplate(e,!0),pe.push(this);var r=T(M(l.prototype),"_stampTemplate",this).call(this,e,t);if(pe.pop(),t.nodeList=r.nodeList,!t.wasPreBound)for(var n=t.childNodes=[],i=r.firstChild;i;i=i.nextSibling)n.push(i);return r.templateInfo=t,function(e,t){var r=t.nodeList,n=t.nodeInfoList;if(n.length)for(var i=0;ii&&n.push({literal:e.slice(i,r.index)});var o=r[1][0],a=Boolean(r[2]),s=r[3].trim(),c=!1,l="",u=-1;"{"==o&&(u=s.indexOf("::"))>0&&(l=s.substring(u+2),s=s.substring(0,u),c=!0);var d=se(s),f=[];if(d){for(var p=d.args,h=d.methodName,m=0;m0||r>0;)if(0!=t)if(0!=r){var o=e[t-1][r-1],a=e[t-1][r],s=e[t][r-1],c=void 0;(c=a=0){if(!o[t])throw new Error("invalid async handle: "+e);o[t]=null}}}},56646:function(){"use strict";window.JSCompiler_renameProperty=function(e,t){return e}},67130:function(e,t,r){"use strict";r.d(t,{z:function(){return a},n:function(){return s}});r(56646);var n={},i=/-[a-z]/g,o=/([A-Z])/g;function a(e){return n[e]||(n[e]=e.indexOf("-")<0?e:e.replace(i,(function(e){return e[1].toUpperCase()})))}function s(e){return n[e]||(n[e]=e.replace(o,"-$1").toLowerCase())}},78956:function(e,t,r){"use strict";r.d(t,{dx:function(){return i},Ex:function(){return a},Jk:function(){return s}});r(56646),r(76389),r(21683);function n(e,t){for(var r=0;r-1}var m=!1;function y(e){if(!h(e)&&"touchend"!==e)return s&&m&&o.f6?{passive:!0}:void 0}!function(){try{var e=Object.defineProperty({},"passive",{get:function(){m=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}}();var v=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),b=[],g={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},_={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function w(e){var t=Array.prototype.slice.call(e.labels||[]);if(!t.length){t=[];var r=e.getRootNode();if(e.id)for(var n=r.querySelectorAll("label[for = ".concat(e.id,"]")),i=0;i-1;if(i[o]===S.mouse.target)return}if(n)return;e.preventDefault(),e.stopPropagation()}};function E(e){for(var t,r=v?["click"]:d,n=0;n0?t[0]:e.target}function R(e){var t,r=e.type,n=e.currentTarget[c];if(n){var i=n[r];if(i){if(!e[l]&&(e[l]={},"touch"===r.slice(0,5))){var o=(e=e).changedTouches[0];if("touchstart"===r&&1===e.touches.length&&(S.touch.id=o.identifier),S.touch.id!==o.identifier)return;s||"touchstart"!==r&&"touchmove"!==r||function(e){var t=e.changedTouches[0],r=e.type;if("touchstart"===r)S.touch.x=t.clientX,S.touch.y=t.clientY,S.touch.scrollDecided=!1;else if("touchmove"===r){if(S.touch.scrollDecided)return;S.touch.scrollDecided=!0;var n=function(e){for(var t,r="auto",n=C(e),i=0;io:"pan-y"===n&&(i=o>a)),i?e.preventDefault():N("track")}}(e)}if(!(t=e[l]).skip){for(var a,d=0;d-1&&a.reset&&a.reset();for(var f,p=0;p=5||i>=5}function H(e,t,r){if(t){var n,i=e.moves[e.moves.length-2],o=e.moves[e.moves.length-1],a=o.x-e.x,s=o.y-e.y,c=0;i&&(n=o.x-i.x,c=o.y-i.y),z(t,"track",{state:e.state,x:r.clientX,y:r.clientY,dx:a,dy:s,ddx:n,ddy:c,sourceEvent:r,hover:function(){return function(e,t){for(var r=document.elementFromPoint(e,t),n=r;n&&n.shadowRoot&&!window.ShadyDOM&&n!==(n=n.shadowRoot.elementFromPoint(e,t));)n&&(r=n);return r}(r.clientX,r.clientY)}})}}function Z(e,t,r){var n=Math.abs(t.clientX-e.x),i=Math.abs(t.clientY-e.y),o=M(r||t);!o||_[o.localName]&&o.hasAttribute("disabled")||(isNaN(n)||isNaN(i)||n<=25&&i<=25||function(e){if("click"===e.type){if(0===e.detail)return!0;var t=M(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;var r=t.getBoundingClientRect(),n=e.pageX,i=e.pageY;return!(n>=r.left&&n<=r.right&&i>=r.top&&i<=r.bottom)}return!1}(t))&&(e.prevent||z(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r}))}I({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){T(this.info)},mousedown:function(e){if(x(e)){var t=M(e),r=this;A(this.info,(function(e){x(e)||(F("up",t,e),T(r.info))}),(function(e){x(e)&&F("up",t,e),T(r.info)})),F("down",t,e)}},touchstart:function(e){F("down",M(e),e.changedTouches[0],e)},touchend:function(e){F("up",M(e),e.changedTouches[0],e)}}),I({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(e){this.moves.length>2&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,T(this.info)},mousedown:function(e){if(x(e)){var t=M(e),r=this,n=function(e){var n=e.clientX,i=e.clientY;B(r.info,n,i)&&(r.info.state=r.info.started?"mouseup"===e.type?"end":"track":"start","start"===r.info.state&&N("tap"),r.info.addMove({x:n,y:i}),x(e)||(r.info.state="end",T(r.info)),t&&H(r.info,t,e),r.info.started=!0)};A(this.info,n,(function(e){r.info.started&&n(e),T(r.info)})),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart:function(e){var t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove:function(e){var t=M(e),r=e.changedTouches[0],n=r.clientX,i=r.clientY;B(this.info,n,i)&&("start"===this.info.state&&N("tap"),this.info.addMove({x:n,y:i}),H(this.info,t,r),this.info.state="track",this.info.started=!0)},touchend:function(e){var t=M(e),r=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:r.clientX,y:r.clientY}),H(this.info,t,r))}}),I({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(e){x(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click:function(e){x(e)&&Z(this.info,e)},touchstart:function(e){var t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend:function(e){Z(this.info,e.changedTouches[0],e)}});var U=M},50856:function(e,t,r){"use strict";r.d(t,{d:function(){return s}});r(56646);function n(e,t){for(var r=0;r1?r-1:0),i=1;i=0}function i(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function o(e,t){return 0===e.indexOf(t+".")}function a(e,t){return 0===t.indexOf(e+".")}function s(e,t,r){return t+r.slice(e.length)}function c(e,t){return e===t||o(e,t)||a(e,t)}function l(e){if(Array.isArray(e)){for(var t=[],r=0;r1){for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r can only be templatized once");e.__templatizeOwner=t;var n=(t?t.constructor:I)._parseTemplate(e),i=n.templatizeInstanceClass;i||(i=N(e,n,r),n.templatizeInstanceClass=i);var o=z(e);F(e,n,r,o);var a=function(e){E(r,e);var t=S(r);function r(){return O(this,r),t.apply(this,arguments)}return r}(i);return a.prototype._methodHost=o,a.prototype.__dataHost=e,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=n.hostProps,a=a}function U(e,t){for(var r;t;)if(r=t.__dataHost?t:t.__templatizeInstance){if(r.__dataHost==e)return r;t=r.__dataHost}else t=(0,g.r)(t).parentNode;return null}var G=r(60995),K=!1;function V(){if(b.nL&&!b.my){if(!K){K=!0;var e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function W(e,t){for(var r=0;r child");r.disconnect(),t.render()}));return void r.observe(this,{childList:!0})}this.root=this._stampTemplate(e),this.$=this.root.$,this.__children=[];for(var n=this.root.firstChild;n;n=n.nextSibling)this.__children[this.__children.length]=n;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}])&&W(t.prototype,r),n&&W(t,n),o}((0,G._)(v((0,i.q)(HTMLElement))));customElements.define("dom-bind",Q);var ee=r(28426),te=r(78956),re=r(93252),ne=r(4059),ie=r(21683);function oe(e){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}function ae(e,t){for(var r=0;r child");r.disconnect(),e.__render()}));return r.observe(this,{childList:!0}),!1}var n={};n[this.as]=!0,n[this.indexAs]=!0,n[this.itemsIndexAs]=!0,this.__ctor=Z(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:n,forwardHostProp:function(e,t){for(var r,n=this.__instances,i=0;i1&&void 0!==arguments[1]?arguments[1]:0;this.__renderDebouncer=te.dx.debounce(this.__renderDebouncer,t>0?ie.Wc.after(t):ie.YA,e.bind(this)),(0,re.E)(this.__renderDebouncer)}},{key:"render",value:function(){this.__debounceRender(this.__render),(0,re.y)()}},{key:"__render",value:function(){var e=this;if(this.__ensureTemplatized()){var t=this.items||[],r=this.__sortAndFilterItems(t),n=this.__calculateLimit(r.length);this.__updateInstances(t,n,r),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame((function(){return e.__continueChunking()}))),this._setRenderedItemCount(this.__instances.length),b.dJ&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}},{key:"__sortAndFilterItems",value:function(e){for(var t=this,r=new Array(e.length),n=0;n=n;c--)this.__detachAndRemoveInstance(c)}},{key:"__detachInstance",value:function(e){for(var t=this.__instances[e],r=(0,g.r)(t.root),n=0;n child");n.disconnect(),e.__render()}));return n.observe(this,{childList:!0}),!1}this.__template=r}return!0}},{key:"__ensureInstance",value:function(){var e=(0,g.r)(this).parentNode;if(this.__hasInstance()){var t=this.__getInstanceNodes();if(t&&t.length)if((0,g.r)(this).previousSibling!==t[t.length-1])for(var r,n=0;n=i.index+i.removed.length?r.set(t,e+i.addedCount-i.removed.length):r.set(t,-1))}));for(var o=0;o=0&&e.linkPaths("".concat(JSCompiler_renameProperty("items",e),".").concat(r),"".concat(JSCompiler_renameProperty("selected",e),".").concat(t++))}))}else this.__selectedMap.forEach((function(t){e.linkPaths(JSCompiler_renameProperty("selected",e),"".concat(JSCompiler_renameProperty("items",e),".").concat(t)),e.linkPaths(JSCompiler_renameProperty("selectedItem",e),"".concat(JSCompiler_renameProperty("items",e),".").concat(t))}))}},{key:"clearSelection",value:function(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}},{key:"isSelected",value:function(e){return this.__selectedMap.has(e)}},{key:"isIndexSelected",value:function(e){return this.isSelected(this.items[e])}},{key:"__deselectChangedIdx",value:function(e){var t=this,r=this.__selectedIndexForItemIndex(e);if(r>=0){var n=0;this.__selectedMap.forEach((function(e,i){r==n++&&t.deselect(i)}))}}},{key:"__selectedIndexForItemIndex",value:function(e){var t=this.__dataLinkedPaths["".concat(JSCompiler_renameProperty("items",this),".").concat(e)];if(t)return parseInt(t.slice("".concat(JSCompiler_renameProperty("selected",this),".").length),10)}},{key:"deselect",value:function(e){var t,r=this.__selectedMap.get(e);r>=0&&(this.__selectedMap.delete(e),this.multi&&(t=this.__selectedIndexForItemIndex(r)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),t,1):this.selected=this.selectedItem=null)}},{key:"deselectIndex",value:function(e){this.deselect(this.items[e])}},{key:"select",value:function(e){this.selectIndex(this.items.indexOf(e))}},{key:"selectIndex",value:function(e){var t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),t):this.selected=this.selectedItem=t)}}],[{key:"properties",get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},{key:"observers",get:function(){return["__updateSelection(multi, items.*)"]}}]),r}((0,Ce.SH)(e))}))(ee.H3));customElements.define(Ne.is,Ne);r(5618);y._mutablePropertyChange;Boolean;var Fe=r(50856),Be=(0,n.x)(HTMLElement).prototype},60309:function(e,t,r){"use strict";r.d(t,{CN:function(){return n},$T:function(){return i},mA:function(){return o}});var n=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,i=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,o=/@media\s(.*)/},10868:function(e,t,r){"use strict";r.d(t,{wW:function(){return i},B7:function(){return o},OH:function(){return a}});var n=r(60309);function i(e,t){for(var r in t)null===r?e.style.removeProperty(r):e.style.setProperty(r,t[r])}function o(e,t){var r=window.getComputedStyle(e).getPropertyValue(t);return r?r.trim():""}function a(e){var t=n.$T.test(e)||n.CN.test(e);return n.$T.lastIndex=0,n.CN.lastIndex=0,t}},34816:function(e,t,r){"use strict";r.d(t,{ZP:function(){return f}});var n,i=null,o=window.HTMLImports&&window.HTMLImports.whenReady||null;function a(e){requestAnimationFrame((function(){o?o(e):(i||(i=new Promise((function(e){n=e})),"complete"===document.readyState?n():document.addEventListener("readystatechange",(function(){"complete"===document.readyState&&n()}))),i.then((function(){e&&e()})))}))}function s(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&a>0&&r[o]===n[a];)o--,a--;r[o]!==n[a]&&this[f](r[o],n[a]),o>0&&this[h](r.slice(0,o)),a>0&&this[p](n.slice(0,a),i,null)}else this[p](n,i,t)}},{key:f,value:function(e,t){var r=e[l];this[v](e)&&!e.inert&&(e.inert=!0,r.add(e)),r.has(t)&&(t.inert=!1,r.delete(t)),t[u]=e[u],t[l]=r,e[u]=void 0,e[l]=void 0}},{key:h,value:function(t){var r,n=e(t);try{for(n.s();!(r=n.n()).done;){var i=r.value;i[u].disconnect(),i[u]=void 0;var o,a=e(i[l]);try{for(a.s();!(o=a.n()).done;)o.value.inert=!1}catch(s){a.e(s)}finally{a.f()}i[l]=void 0}}catch(s){n.e(s)}finally{n.f()}}},{key:p,value:function(t,r,n){var i,o=e(t);try{for(o.s();!(i=o.n()).done;){for(var a=i.value,s=a.parentNode,c=s.children,d=new Set,f=0;f>8&255]},j=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},z=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},N=function(e){return R(e,23,4)},F=function(e){return R(e,52,8)},B=function(e,t){v(e.prototype,t,{get:function(){return w(this)[t]}})},H=function(e,t,r,n){var i=f(r),o=w(e);if(i+t>o.byteLength)throw M(S);var a=w(o.buffer).bytes,s=i+o.byteOffset,c=a.slice(s,s+t);return n?c:c.reverse()},Z=function(e,t,r,n,i,o){var a=f(r),s=w(e);if(a+t>s.byteLength)throw M(S);for(var c=w(s.buffer).bytes,l=a+s.byteOffset,u=n(+i),d=0;dV;)(U=K[V++])in T||a(T,U,A[U]);G.constructor=T}m&&h(O)!==P&&m(O,P);var $=new C(new T(2)),W=O.setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||s(O,{setInt8:function(e,t){W.call(this,e,t<<24>>24)},setUint8:function(e,t){W.call(this,e,t<<24>>24)}},{unsafe:!0})}else T=function(e){l(this,T,E);var t=f(e);k(this,{bytes:b.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},C=function(e,t,r){l(this,C,x),l(e,T,x);var n=w(e).byteLength,o=u(t);if(o<0||o>n)throw M("Wrong offset");if(o+(r=void 0===r?n-o:d(r))>n)throw M("Wrong length");k(this,{buffer:e,byteLength:r,byteOffset:o}),i||(this.buffer=e,this.byteLength=r,this.byteOffset=o)},i&&(B(T,"byteLength"),B(C,"buffer"),B(C,"byteLength"),B(C,"byteOffset")),s(C.prototype,{getInt8:function(e){return H(this,1,e)[0]<<24>>24},getUint8:function(e){return H(this,1,e)[0]},getInt16:function(e){var t=H(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=H(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return z(H(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return z(H(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return D(H(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return D(H(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Z(this,1,e,L,t)},setUint8:function(e,t){Z(this,1,e,L,t)},setInt16:function(e,t){Z(this,2,e,I,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Z(this,2,e,I,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Z(this,4,e,j,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Z(this,4,e,j,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Z(this,4,e,N,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Z(this,8,e,F,t,arguments.length>2?arguments[2]:void 0)}});g(T,E),g(C,x),e.exports={ArrayBuffer:T,DataView:C}},24579:function(e,t,r){"use strict";var n=r(84766),i=r(11588),o=r(48331),a=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),s=o(r.length),c=i(e,s),l=i(t,s),u=arguments.length>2?arguments[2]:void 0,d=a((void 0===u?s:i(u,s))-l,s-c),f=1;for(l0;)l in r?r[c]=r[l]:delete r[c],c+=f,l+=f;return r}},6922:function(e,t,r){"use strict";var n=r(84766),i=r(11588),o=r(48331);e.exports=function(e){for(var t=n(this),r=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,r),c=a>2?arguments[2]:void 0,l=void 0===c?r:i(c,r);l>s;)t[s++]=e;return t}},20702:function(e,t,r){"use strict";var n=r(25097).forEach,i=r(49719)("forEach");e.exports=i?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},54513:function(e,t,r){"use strict";var n=r(43322),i=r(84766),o=r(95913),a=r(19439),s=r(48331),c=r(32385),l=r(85111);e.exports=function(e){var t,r,u,d,f,p,h=i(e),m="function"==typeof this?this:Array,y=arguments.length,v=y>1?arguments[1]:void 0,b=void 0!==v,g=l(h),_=0;if(b&&(v=n(v,y>2?arguments[2]:void 0,2)),null==g||m==Array&&a(g))for(r=new m(t=s(h.length));t>_;_++)p=b?v(h[_],_):h[_],c(r,_,p);else for(f=(d=g.call(h)).next,r=new m;!(u=f.call(d)).done;_++)p=b?o(d,v,[u.value,_],!0):u.value,c(r,_,p);return r.length=_,r}},59729:function(e,t,r){var n=r(19969),i=r(48331),o=r(11588),a=function(e){return function(t,r,a){var s,c=n(t),l=i(c.length),u=o(a,l);if(e&&r!=r){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},51486:function(e,t,r){var n=r(43322),i=r(23169),o=r(84766),a=r(48331),s=function(e){var t=6==e;return function(r,s,c){for(var l,u=o(r),d=i(u),f=n(s,c,3),p=a(d.length);p-- >0;)if(f(l=d[p],p,u))switch(e){case 5:return l;case 6:return p}return t?-1:void 0}};e.exports={findLast:s(5),findLastIndex:s(6)}},25097:function(e,t,r){var n=r(43322),i=r(23169),o=r(84766),a=r(48331),s=r(48347),c=[].push,l=function(e){var t=1==e,r=2==e,l=3==e,u=4==e,d=6==e,f=7==e,p=5==e||d;return function(h,m,y,v){for(var b,g,_=o(h),w=i(_),k=n(m,y,3),E=a(w.length),x=0,S=v||s,A=t?S(h,E):r||f?S(h,0):void 0;E>x;x++)if((p||x in w)&&(g=k(b=w[x],x,_),e))if(t)A[x]=g;else if(g)switch(e){case 3:return!0;case 5:return b;case 6:return x;case 2:c.call(A,b)}else switch(e){case 4:return!1;case 7:c.call(A,b)}return d?-1:l||u?u:A}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterOut:l(7)}},8139:function(e,t,r){"use strict";var n=r(19969),i=r(25623),o=r(48331),a=r(49719),s=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,u=a("lastIndexOf"),d=l||!u;e.exports=d?function(e){if(l)return c.apply(this,arguments)||0;var t=n(this),r=o(t.length),a=r-1;for(arguments.length>1&&(a=s(a,i(arguments[1]))),a<0&&(a=r+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:c},1566:function(e,t,r){var n=r(72763),i=r(1386),o=r(56962),a=i("species");e.exports=function(e){return o>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},49719:function(e,t,r){"use strict";var n=r(72763);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){throw 1},1)}))}},59856:function(e,t,r){var n=r(80118),i=r(84766),o=r(23169),a=r(48331),s=function(e){return function(t,r,s,c){n(r);var l=i(t),u=o(l),d=a(l.length),f=e?d-1:0,p=e?-1:1;if(s<2)for(;;){if(f in u){c=u[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=p)f in u&&(c=r(c,u[f],f,l));return c}};e.exports={left:s(!1),right:s(!0)}},33407:function(e){var t=Math.floor,r=function(e,o){var a=e.length,s=t(a/2);return a<8?n(e,o):i(r(e.slice(0,s),o),r(e.slice(s),o),o)},n=function(e,t){for(var r,n,i=e.length,o=1;o0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},i=function(e,t,r){for(var n=e.length,i=t.length,o=0,a=0,s=[];o1?arguments[1]:void 0;return n(this),(t=void 0!==l)&&n(l),null==e?new this:(r=[],t?(a=0,s=i(l,c>2?arguments[2]:void 0,2),o(e,(function(e){r.push(s(e,a++))}))):o(e,r.push,{that:r}),new this(r))}},11171:function(e){"use strict";e.exports=function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}},95365:function(e,t,r){"use strict";var n=r(67455).f,i=r(63571),o=r(39757),a=r(43322),s=r(30680),c=r(64572),l=r(94247),u=r(8395),d=r(37703),f=r(9154).fastKey,p=r(2995),h=p.set,m=p.getterFor;e.exports={getConstructor:function(e,t,r,l){var u=e((function(e,n){s(e,u,t),h(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=n&&c(n,e[l],{that:e,AS_ENTRIES:r})})),p=m(t),y=function(e,t,r){var n,i,o=p(e),a=v(e,t);return a?a.value=r:(o.last=a={index:i=f(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),d?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},v=function(e,t){var r,n=p(e),i=f(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return o(u.prototype,{clear:function(){for(var e=p(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=this,r=p(t),n=v(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),d?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=p(this),n=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),o(u.prototype,r?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),d&&n(u.prototype,"size",{get:function(){return p(this).size}}),u},setStrong:function(e,t,r){var n=t+" Iterator",i=m(t),o=m(n);l(e,t,(function(e,t){h(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),u(t)}}},59285:function(e,t,r){"use strict";var n=r(39757),i=r(9154).getWeakData,o=r(86956),a=r(42521),s=r(30680),c=r(64572),l=r(25097),u=r(52766),d=r(2995),f=d.set,p=d.getterFor,h=l.find,m=l.findIndex,y=0,v=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},g=function(e,t){return h(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=g(this,e);if(t)return t[1]},has:function(e){return!!g(this,e)},set:function(e,t){var r=g(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,l){var d=e((function(e,n){s(e,d,t),f(e,{type:t,id:y++,frozen:void 0}),null!=n&&c(n,e[l],{that:e,AS_ENTRIES:r})})),h=p(t),m=function(e,t,r){var n=h(e),a=i(o(t),!0);return!0===a?v(n).set(t,r):a[n.id]=r,e};return n(d.prototype,{delete:function(e){var t=h(this);if(!a(e))return!1;var r=i(e);return!0===r?v(t).delete(e):r&&u(r,t.id)&&delete r[t.id]},has:function(e){var t=h(this);if(!a(e))return!1;var r=i(e);return!0===r?v(t).has(e):r&&u(r,t.id)}}),n(d.prototype,r?{get:function(e){var t=h(this);if(a(e)){var r=i(e);return!0===r?v(t).get(e):r?r[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),d}}},35246:function(e,t,r){"use strict";var n=r(7309),i=r(76121),o=r(20676),a=r(62327),s=r(9154),c=r(64572),l=r(30680),u=r(42521),d=r(72763),f=r(4684),p=r(54849),h=r(31985);e.exports=function(e,t,r){var m=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),v=m?"set":"add",b=i[e],g=b&&b.prototype,_=b,w={},k=function(e){var t=g[e];a(g,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:function(e,r){return t.call(this,0===e?0:e,r),this})};if(o(e,"function"!=typeof b||!(y||g.forEach&&!d((function(){(new b).entries().next()})))))_=r.getConstructor(t,e,m,v),s.REQUIRED=!0;else if(o(e,!0)){var E=new _,x=E[v](y?{}:-0,1)!=E,S=d((function(){E.has(1)})),A=f((function(e){new b(e)})),T=!y&&d((function(){for(var e=new b,t=5;t--;)e[v](t,t);return!e.has(-0)}));A||((_=t((function(t,r){l(t,_,e);var n=h(new b,t,_);return null!=r&&c(r,n[v],{that:n,AS_ENTRIES:m}),n}))).prototype=g,g.constructor=_),(S||T)&&(k("delete"),k("has"),m&&k("get")),(T||x)&&k(v),y&&g.clear&&delete g.clear}return w[e]=_,n({global:!0,forced:_!=b},w),p(_,e),y||r.setStrong(_,e,m),_}},49098:function(e,t,r){var n=r(8974),i=r(38742),o=r(63571),a=r(42521),s=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=o(null)};s.prototype.get=function(e,t){return this[e]||(this[e]=t())},s.prototype.next=function(e,t,r){var o=r?this.objectsByIndex[e]||(this.objectsByIndex[e]=new i):this.primitives||(this.primitives=new n),a=o.get(t);return a||o.set(t,a=new s),a};var c=new s;e.exports=function(){var e,t,r=c,n=arguments.length;for(e=0;e"+a+""}},34427:function(e,t,r){"use strict";var n=r(94109).IteratorPrototype,i=r(63571),o=r(5938),a=r(54849),s=r(23403),c=function(){return this};e.exports=function(e,t,r){var l=t+" Iterator";return e.prototype=i(n,{next:o(1,r)}),a(e,l,!1,!0),s[l]=c,e}},91471:function(e,t,r){var n=r(37703),i=r(67455),o=r(5938);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},5938:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},32385:function(e,t,r){"use strict";var n=r(40687),i=r(67455),o=r(5938);e.exports=function(e,t,r){var a=n(t);a in e?i.f(e,a,o(0,r)):e[a]=r}},59671:function(e,t,r){"use strict";var n=r(72763),i=r(25427).start,o=Math.abs,a=Date.prototype,s=a.getTime,c=a.toISOString;e.exports=n((function(){return"0385-07-25T07:06:39.999Z"!=c.call(new Date(-50000000000001))}))||!n((function(){c.call(new Date(NaN))}))?function(){if(!isFinite(s.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),r=e.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+i(o(t),n?6:4,0)+"-"+i(e.getUTCMonth()+1,2,0)+"-"+i(e.getUTCDate(),2,0)+"T"+i(e.getUTCHours(),2,0)+":"+i(e.getUTCMinutes(),2,0)+":"+i(e.getUTCSeconds(),2,0)+"."+i(r,3,0)+"Z"}:c},83976:function(e,t,r){"use strict";var n=r(86956),i=r(40687);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(n(this),"number"!==e)}},94247:function(e,t,r){"use strict";var n=r(7309),i=r(34427),o=r(99366),a=r(86594),s=r(54849),c=r(91471),l=r(62327),u=r(1386),d=r(8451),f=r(23403),p=r(94109),h=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,y=u("iterator"),v="keys",b="values",g="entries",_=function(){return this};e.exports=function(e,t,r,u,p,w,k){i(r,t,u);var E,x,S,A=function(e){if(e===p&&M)return M;if(!m&&e in O)return O[e];switch(e){case v:case b:case g:return function(){return new r(this,e)}}return function(){return new r(this)}},T=t+" Iterator",C=!1,O=e.prototype,P=O[y]||O["@@iterator"]||p&&O[p],M=!m&&P||A(p),R="Array"==t&&O.entries||P;if(R&&(E=o(R.call(new e)),h!==Object.prototype&&E.next&&(d||o(E)===h||(a?a(E,h):"function"!=typeof E[y]&&c(E,y,_)),s(E,T,!0,!0),d&&(f[T]=_))),p==b&&P&&P.name!==b&&(C=!0,M=function(){return P.call(this)}),d&&!k||O[y]===M||c(O,y,M),f[t]=M,p)if(x={values:A(b),keys:w?M:A(v),entries:A(g)},k)for(S in x)(m||C||!(S in O))&&l(O,S,x[S]);else n({target:t,proto:!0,forced:m||C},x);return x}},56316:function(e,t,r){var n=r(1035),i=r(52766),o=r(89103),a=r(67455).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},37703:function(e,t,r){var n=r(72763);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6004:function(e,t,r){var n=r(76121),i=r(42521),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},83729:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},45249:function(e,t,r){var n=r(58635).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},67729:function(e){e.exports="object"==typeof window},32049:function(e,t,r){var n=r(58635);e.exports=/MSIE|Trident/.test(n)},60987:function(e,t,r){var n=r(58635);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(n)},1441:function(e,t,r){var n=r(42849),i=r(76121);e.exports="process"==n(i.process)},53538:function(e,t,r){var n=r(58635);e.exports=/web0s(?!.*chrome)/i.test(n)},58635:function(e,t,r){var n=r(77642);e.exports=n("navigator","userAgent")||""},56962:function(e,t,r){var n,i,o=r(76121),a=r(58635),s=o.process,c=s&&s.versions,l=c&&c.v8;l?i=(n=l.split("."))[0]<4?1:n[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),e.exports=i&&+i},58998:function(e,t,r){var n=r(58635).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},64731:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7309:function(e,t,r){var n=r(76121),i=r(38769).f,o=r(91471),a=r(62327),s=r(6565),c=r(94488),l=r(20676);e.exports=function(e,t){var r,u,d,f,p,h=e.target,m=e.global,y=e.stat;if(r=m?n:y?n[h]||s(h,{}):(n[h]||{}).prototype)for(u in t){if(f=t[u],d=e.noTargetGet?(p=i(r,u))&&p.value:r[u],!l(m?u:h+(y?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;c(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(r,u,f,e)}}},72763:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},1325:function(e,t,r){"use strict";r(48775);var n=r(62327),i=r(73546),o=r(72763),a=r(1386),s=r(91471),c=a("species"),l=RegExp.prototype;e.exports=function(e,t,r,u){var d=a(e),f=!o((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),p=f&&!o((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[d]=/./[d]),r.exec=function(){return t=!0,null},r[d](""),!t}));if(!f||!p||r){var h=/./[d],m=t(d,""[e],(function(e,t,r,n,o){var a=t.exec;return a===i||a===l.exec?f&&!o?{done:!0,value:h.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}));n(String.prototype,e,m[0]),n(l,d,m[1])}u&&s(l[d],"sham",!0)}},25538:function(e,t,r){"use strict";var n=r(43964),i=r(48331),o=r(43322),a=function(e,t,r,s,c,l,u,d){for(var f,p=c,h=0,m=!!u&&o(u,d,3);h0&&n(f))p=a(e,t,f,i(f.length),p,l-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=f}p++}h++}return p};e.exports=a},91104:function(e,t,r){var n=r(72763);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},43322:function(e,t,r){var n=r(80118);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},48659:function(e,t,r){"use strict";var n=r(80118),i=r(42521),o=[].slice,a={},s=function(e,t,r){if(!(t in a)){for(var n=[],i=0;i]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,c,l,u){var d=r+e.length,f=c.length,p=s;return void 0!==l&&(l=n(l),p=a),o.call(u,p,(function(n,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(d);case"<":a=l[o.slice(1,-1)];break;default:var s=+o;if(0===s)return n;if(s>f){var u=i(s/10);return 0===u?n:u<=f?void 0===c[u-1]?o.charAt(1):c[u-1]+o.charAt(1):n}a=c[s-1]}return void 0===a?"":a}))}},76121:function(e){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||Function("return this")()},52766:function(e,t,r){var n=r(84766),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(n(e),t)}},32048:function(e){e.exports={}},94113:function(e,t,r){var n=r(76121);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},24174:function(e,t,r){var n=r(77642);e.exports=n("document","documentElement")},27226:function(e,t,r){var n=r(37703),i=r(72763),o=r(6004);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},6601:function(e){var t=Math.abs,r=Math.pow,n=Math.floor,i=Math.log,o=Math.LN2;e.exports={pack:function(e,a,s){var c,l,u,d=new Array(s),f=8*s-a-1,p=(1<>1,m=23===a?r(2,-24)-r(2,-77):0,y=e<0||0===e&&1/e<0?1:0,v=0;for((e=t(e))!=e||e===1/0?(l=e!=e?1:0,c=p):(c=n(i(e)/o),e*(u=r(2,-c))<1&&(c--,u*=2),(e+=c+h>=1?m/u:m*r(2,1-h))*u>=2&&(c++,u/=2),c+h>=p?(l=0,c=p):c+h>=1?(l=(e*u-1)*r(2,a),c+=h):(l=e*r(2,h-1)*r(2,a),c=0));a>=8;d[v++]=255&l,l/=256,a-=8);for(c=c<0;d[v++]=255&c,c/=256,f-=8);return d[--v]|=128*y,d},unpack:function(e,t){var n,i=e.length,o=8*i-t-1,a=(1<>1,c=o-7,l=i-1,u=e[l--],d=127&u;for(u>>=7;c>0;d=256*d+e[l],l--,c-=8);for(n=d&(1<<-c)-1,d>>=-c,c+=t;c>0;n=256*n+e[l],l--,c-=8);if(0===d)d=1-s;else{if(d===a)return n?NaN:u?-1/0:1/0;n+=r(2,t),d-=s}return(u?-1:1)*n*r(2,d-t)}}},23169:function(e,t,r){var n=r(72763),i=r(42849),o="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},31985:function(e,t,r){var n=r(42521),i=r(86594);e.exports=function(e,t,r){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},99835:function(e,t,r){var n=r(4682),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return i.call(e)}),e.exports=n.inspectSource},9154:function(e,t,r){var n=r(32048),i=r(42521),o=r(52766),a=r(67455).f,s=r(51735),c=r(91104),l=s("meta"),u=0,d=Object.isExtensible||function(){return!0},f=function(e){a(e,l,{value:{objectID:"O"+u++,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,l)){if(!d(e))return"F";if(!t)return"E";f(e)}return e[l].objectID},getWeakData:function(e,t){if(!o(e,l)){if(!d(e))return!0;if(!t)return!1;f(e)}return e[l].weakData},onFreeze:function(e){return c&&p.REQUIRED&&d(e)&&!o(e,l)&&f(e),e}};n[l]=!0},2995:function(e,t,r){var n,i,o,a=r(45546),s=r(76121),c=r(42521),l=r(91471),u=r(52766),d=r(4682),f=r(52562),p=r(32048),h="Object already initialized",m=s.WeakMap;if(a||d.state){var y=d.state||(d.state=new m),v=y.get,b=y.has,g=y.set;n=function(e,t){if(b.call(y,e))throw new TypeError(h);return t.facade=e,g.call(y,e,t),t},i=function(e){return v.call(y,e)||{}},o=function(e){return b.call(y,e)}}else{var _=f("state");p[_]=!0,n=function(e,t){if(u(e,_))throw new TypeError(h);return t.facade=e,l(e,_,t),t},i=function(e){return u(e,_)?e[_]:{}},o=function(e){return u(e,_)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},19439:function(e,t,r){var n=r(1386),i=r(23403),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},43964:function(e,t,r){var n=r(42849);e.exports=Array.isArray||function(e){return"Array"==n(e)}},20676:function(e,t,r){var n=r(72763),i=/#|\.prototype\./,o=function(e,t){var r=s[a(e)];return r==l||r!=c&&("function"==typeof t?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},56038:function(e,t,r){var n=r(42521),i=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&i(e)===e}},42521:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},8451:function(e){e.exports=!1},16272:function(e,t,r){var n=r(42521),i=r(42849),o=r(1386)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},64572:function(e,t,r){var n=r(86956),i=r(19439),o=r(48331),a=r(43322),s=r(85111),c=r(94556),l=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,r){var u,d,f,p,h,m,y,v=r&&r.that,b=!(!r||!r.AS_ENTRIES),g=!(!r||!r.IS_ITERATOR),_=!(!r||!r.INTERRUPTED),w=a(t,v,1+b+_),k=function(e){return u&&c(u),new l(!0,e)},E=function(e){return b?(n(e),_?w(e[0],e[1],k):w(e[0],e[1])):_?w(e,k):w(e)};if(g)u=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(i(d)){for(f=0,p=o(e.length);p>f;f++)if((h=E(e[f]))&&h instanceof l)return h;return new l(!1)}u=d.call(e)}for(m=u.next;!(y=m.call(u)).done;){try{h=E(y.value)}catch(x){throw c(u),x}if("object"==typeof h&&h&&h instanceof l)return h}return new l(!1)}},94556:function(e,t,r){var n=r(86956);e.exports=function(e){var t=e.return;if(void 0!==t)return n(t.call(e)).value}},36020:function(e,t,r){"use strict";var n=r(1035),i=r(80118),o=r(86956),a=r(63571),s=r(91471),c=r(39757),l=r(1386),u=r(2995),d=u.set,f=u.get,p=l("toStringTag"),h=function(e){var t=f(this).iterator,r=t.return;return void 0===r?{done:!0,value:e}:o(r.call(t,e))},m=function(e){var t=f(this).iterator,r=t.throw;if(void 0===r)throw e;return r.call(t,e)};e.exports=function(e,t){var r=function(e){e.next=i(e.iterator.next),e.done=!1,d(this,e)};return r.prototype=c(a(n.Iterator.prototype),{next:function(){var t=f(this),r=t.done?void 0:e.apply(t,arguments);return{done:t.done,value:r}},return:h,throw:m}),t||s(r.prototype,p,"Generator"),r}},94109:function(e,t,r){"use strict";var n,i,o,a=r(72763),s=r(99366),c=r(91471),l=r(52766),u=r(1386),d=r(8451),f=u("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(n=i):p=!0);var h=null==n||a((function(){var e={};return n[f].call(e)!==e}));h&&(n={}),d&&!h||l(n,f)||c(n,f,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},23403:function(e){e.exports={}},16756:function(e,t,r){"use strict";var n=r(86956);e.exports=function(e,t){var r=n(this),i=r.has(e)&&"update"in t?t.update(r.get(e),e,r):t.insert(e,r);return r.set(e,i),i}},7230:function(e,t,r){"use strict";var n=r(86956);e.exports=function(e,t){var r,i=n(this),o=arguments.length>2?arguments[2]:void 0;if("function"!=typeof t&&"function"!=typeof o)throw TypeError("At least one callback required");return i.has(e)?(r=i.get(e),"function"==typeof t&&(r=t(r),i.set(e,r))):"function"==typeof o&&(r=o(),i.set(e,r)),r}},89188:function(e){var t=Math.expm1,r=Math.exp;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:r(e)-1}:t},63094:function(e,t,r){var n=r(4380),i=Math.abs,o=Math.pow,a=o(2,-52),s=o(2,-23),c=o(2,127)*(2-s),l=o(2,-126);e.exports=Math.fround||function(e){var t,r,o=i(e),u=n(e);return oc||r!=r?u*(1/0):u*r}},39370:function(e){var t=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:t(1+e)}},50969:function(e){e.exports=Math.scale||function(e,t,r,n,i){return 0===arguments.length||e!=e||t!=t||r!=r||n!=n||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-n)/(r-t)+n}},4380:function(e){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},26745:function(e,t,r){var n,i,o,a,s,c,l,u,d=r(76121),f=r(38769).f,p=r(94825).set,h=r(60987),m=r(53538),y=r(1441),v=d.MutationObserver||d.WebKitMutationObserver,b=d.document,g=d.process,_=d.Promise,w=f(d,"queueMicrotask"),k=w&&w.value;k||(n=function(){var e,t;for(y&&(e=g.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(r){throw i?a():o=void 0,r}}o=void 0,e&&e.enter()},h||y||m||!v||!b?_&&_.resolve?((l=_.resolve(void 0)).constructor=_,u=l.then,a=function(){u.call(l,n)}):a=y?function(){g.nextTick(n)}:function(){p.call(d,n)}:(s=!0,c=b.createTextNode(""),new v(n).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),e.exports=k||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},34860:function(e,t,r){var n=r(76121);e.exports=n.Promise},54020:function(e,t,r){var n=r(56962),i=r(72763);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},50307:function(e,t,r){var n=r(72763),i=r(1386),o=r(8451),a=i("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},45546:function(e,t,r){var n=r(76121),i=r(99835),o=n.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},40500:function(e,t,r){"use strict";var n=r(80118),i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},11330:function(e,t,r){var n=r(16272);e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},30097:function(e,t,r){var n=r(76121).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&n(e)}},30706:function(e,t,r){var n=r(76121),i=r(36842).trim,o=r(82350),a=n.parseFloat,s=1/a(o+"-0")!=-1/0;e.exports=s?function(e){var t=i(String(e)),r=a(t);return 0===r&&"-"==t.charAt(0)?-0:r}:a},92437:function(e,t,r){var n=r(76121),i=r(36842).trim,o=r(82350),a=n.parseInt,s=/^[+-]?0[Xx]/,c=8!==a(o+"08")||22!==a(o+"0x16");e.exports=c?function(e,t){var r=i(String(e));return a(r,t>>>0||(s.test(r)?16:10))}:a},4138:function(e,t,r){"use strict";var n=r(2995),i=r(34427),o=r(42521),a=r(37532),s=r(37703),c="Incorrect Number.range arguments",l="NumericRangeIterator",u=n.set,d=n.getterFor(l),f=i((function(e,t,r,n,i,a){if(typeof e!=n||t!==1/0&&t!==-1/0&&typeof t!=n)throw new TypeError(c);if(e===1/0||e===-1/0)throw new RangeError(c);var d,f=t>e,p=!1;if(void 0===r)d=void 0;else if(o(r))d=r.step,p=!!r.inclusive;else{if(typeof r!=n)throw new TypeError(c);d=r}if(null==d&&(d=f?a:-a),typeof d!=n)throw new TypeError(c);if(d===1/0||d===-1/0||d===i&&e!==t)throw new RangeError(c);u(this,{type:l,start:e,end:t,step:d,inclusiveEnd:p,hitsEnd:e!=e||t!=t||d!=d||t>e!=d>i,currentCount:i,zero:i}),s||(this.start=e,this.end=t,this.step=d,this.inclusive=p)}),l,(function(){var e=d(this);if(e.hitsEnd)return{value:void 0,done:!0};var t=e.start,r=e.end,n=t+e.step*e.currentCount++;n===r&&(e.hitsEnd=!0);var i=e.inclusiveEnd;return(r>t?i?n>r:n>=r:i?r>n:r>=n)?{value:void 0,done:e.hitsEnd=!0}:{value:n,done:!1}})),p=function(e){return{get:e,set:function(){},configurable:!0,enumerable:!1}};s&&a(f.prototype,{start:p((function(){return d(this).start})),end:p((function(){return d(this).end})),inclusive:p((function(){return d(this).inclusiveEnd})),step:p((function(){return d(this).step}))}),e.exports=f},81179:function(e,t,r){"use strict";var n=r(37703),i=r(72763),o=r(31792),a=r(92719),s=r(77751),c=r(84766),l=r(23169),u=Object.assign,d=Object.defineProperty;e.exports=!u||i((function(){if(n&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach((function(e){t[e]=e})),7!=u({},e)[r]||o(u({},t)).join("")!=i}))?function(e,t){for(var r=c(e),i=arguments.length,u=1,d=a.f,f=s.f;i>u;)for(var p,h=l(arguments[u++]),m=d?o(h).concat(d(h)):o(h),y=m.length,v=0;y>v;)p=m[v++],n&&!f.call(h,p)||(r[p]=h[p]);return r}:u},63571:function(e,t,r){var n,i=r(86956),o=r(37532),a=r(64731),s=r(32048),c=r(24174),l=r(6004),u=r(52562),d=u("IE_PROTO"),f=function(){},p=function(e){return"\n \n \n \n ```\n\n ```js\n import {html} from '@polymer/polymer/lib/utils/html-tag.js';\n import '@polymer/iron-flex-layout/iron-flex-layout-classes.js';\n\n const template = html`\n \n \n
    \n
    horizontal layout center alignment
    \n
    \n `;\n document.body.appendChild(template.content);\n ```\n\n2. [Custom CSS\nmixins](https://github.com/PolymerElements/iron-flex-layout/blob/master/iron-flex-layout.html).\nThe mixin stylesheet includes custom CSS mixins that can be applied inside a CSS\nrule using the `@apply` function.\n\nPlease note that the old [/deep/ layout\nclasses](https://github.com/PolymerElements/iron-flex-layout/tree/master/classes)\nare deprecated, and should not be used. To continue using layout properties\ndirectly in markup, please switch to using the new `dom-module`-based\n[layout\nclasses](https://github.com/PolymerElements/iron-flex-layout/tree/master/iron-flex-layout-classes.html).\nPlease note that the new version does not use `/deep/`, and therefore requires\nyou to import the `dom-modules` in every element that needs to use them.\n\n@group Iron Elements\n@pseudoElement iron-flex-layout\n@demo demo/index.html\n*/\nconst template = html`\n\n \n\n\n \n`;\n\ntemplate.setAttribute('style', 'display: none;');\ndocument.head.appendChild(template.content);\n\nvar style = document.createElement('style');\nstyle.textContent = '[hidden] { display: none !important; }';\ndocument.head.appendChild(style);\n","/**\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\nimport '@polymer/iron-flex-layout/iron-flex-layout.js';\n\nimport {IronMeta} from '@polymer/iron-meta/iron-meta.js';\nimport {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';\nimport {dom} from '@polymer/polymer/lib/legacy/polymer.dom.js';\nimport {html} from '@polymer/polymer/lib/utils/html-tag.js';\nimport {Base} from '@polymer/polymer/polymer-legacy.js';\n\n/**\n\nThe `iron-icon` element displays an icon. By default an icon renders as a 24px\nsquare.\n\nExample using src:\n\n \n\nExample setting size to 32px x 32px:\n\n \n\n \n\nThe iron elements include several sets of icons. To use the default set of\nicons, import `iron-icons.js` and use the `icon` attribute to specify an icon:\n\n \n\n \n\nTo use a different built-in set of icons, import the specific\n`iron-icons/-icons.js`, and specify the icon as `:`.\nFor example, to use a communication icon, you would use:\n\n \n\n \n\nYou can also create custom icon sets of bitmap or SVG icons.\n\nExample of using an icon named `cherry` from a custom iconset with the ID\n`fruit`:\n\n \n\nSee `` and `` for more information about how to\ncreate a custom iconset.\n\nSee the `iron-icons` demo to see the icons available in the various iconsets.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n----------------|-------------|----------\n`--iron-icon` | Mixin applied to the icon | {}\n`--iron-icon-width` | Width of the icon | `24px`\n`--iron-icon-height` | Height of the icon | `24px`\n`--iron-icon-fill-color` | Fill color of the svg icon | `currentcolor`\n`--iron-icon-stroke-color` | Stroke color of the svg icon | none\n\n@group Iron Elements\n@element iron-icon\n@demo demo/index.html\n@hero hero.svg\n@homepage polymer.github.io\n*/\nPolymer({\n _template: html`\n \n`,\n\n is: 'iron-icon',\n\n properties: {\n\n /**\n * The name of the icon to use. The name should be of the form:\n * `iconset_name:icon_name`.\n */\n icon: {type: String},\n\n /**\n * The name of the theme to used, if one is specified by the\n * iconset.\n */\n theme: {type: String},\n\n /**\n * If using iron-icon without an iconset, you can set the src to be\n * the URL of an individual icon image file. Note that this will take\n * precedence over a given icon attribute.\n */\n src: {type: String},\n\n /**\n * @type {!IronMeta}\n */\n _meta: {value: Base.create('iron-meta', {type: 'iconset'})}\n\n },\n\n observers: [\n '_updateIcon(_meta, isAttached)',\n '_updateIcon(theme, isAttached)',\n '_srcChanged(src, isAttached)',\n '_iconChanged(icon, isAttached)'\n ],\n\n _DEFAULT_ICONSET: 'icons',\n\n _iconChanged: function(icon) {\n var parts = (icon || '').split(':');\n this._iconName = parts.pop();\n this._iconsetName = parts.pop() || this._DEFAULT_ICONSET;\n this._updateIcon();\n },\n\n _srcChanged: function(src) {\n this._updateIcon();\n },\n\n _usesIconset: function() {\n return this.icon || !this.src;\n },\n\n /** @suppress {visibility} */\n _updateIcon: function() {\n if (this._usesIconset()) {\n if (this._img && this._img.parentNode) {\n dom(this.root).removeChild(this._img);\n }\n if (this._iconName === '') {\n if (this._iconset) {\n this._iconset.removeIcon(this);\n }\n } else if (this._iconsetName && this._meta) {\n this._iconset = /** @type {?Polymer.Iconset} */ (\n this._meta.byKey(this._iconsetName));\n if (this._iconset) {\n this._iconset.applyIcon(this, this._iconName, this.theme);\n this.unlisten(window, 'iron-iconset-added', '_updateIcon');\n } else {\n this.listen(window, 'iron-iconset-added', '_updateIcon');\n }\n }\n } else {\n if (this._iconset) {\n this._iconset.removeIcon(this);\n }\n if (!this._img) {\n this._img = document.createElement('img');\n this._img.style.width = '100%';\n this._img.style.height = '100%';\n this._img.draggable = false;\n }\n this._img.src = this.src;\n dom(this.root).appendChild(this._img);\n }\n }\n});\n","/**\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\nimport '@polymer/polymer/polymer-legacy.js';\n\nimport {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';\nimport {html} from '@polymer/polymer/lib/utils/html-tag.js';\n\n/**\n`iron-a11y-announcer` is a singleton element that is intended to add a11y\nto features that require on-demand announcement from screen readers. In\norder to make use of the announcer, it is best to request its availability\nin the announcing element.\n\nExample:\n\n Polymer({\n\n is: 'x-chatty',\n\n attached: function() {\n // This will create the singleton element if it has not\n // been created yet:\n Polymer.IronA11yAnnouncer.requestAvailability();\n }\n });\n\nAfter the `iron-a11y-announcer` has been made available, elements can\nmake announces by firing bubbling `iron-announce` events.\n\nExample:\n\n this.fire('iron-announce', {\n text: 'This is an announcement!'\n }, { bubbles: true });\n\nNote: announcements are only audible if you have a screen reader enabled.\n\n@group Iron Elements\n@demo demo/index.html\n*/\nexport const IronA11yAnnouncer = Polymer({\n _template: html`\n \n
    [[_text]]
    \n`,\n\n is: 'iron-a11y-announcer',\n\n properties: {\n\n /**\n * The value of mode is used to set the `aria-live` attribute\n * for the element that will be announced. Valid values are: `off`,\n * `polite` and `assertive`.\n */\n mode: {type: String, value: 'polite'},\n\n _text: {type: String, value: ''}\n },\n\n created: function() {\n if (!IronA11yAnnouncer.instance) {\n IronA11yAnnouncer.instance = this;\n }\n\n document.body.addEventListener(\n 'iron-announce', this._onIronAnnounce.bind(this));\n },\n\n /**\n * Cause a text string to be announced by screen readers.\n *\n * @param {string} text The text that should be announced.\n */\n announce: function(text) {\n this._text = '';\n this.async(function() {\n this._text = text;\n }, 100);\n },\n\n _onIronAnnounce: function(event) {\n if (event.detail && event.detail.text) {\n this.announce(event.detail.text);\n }\n }\n});\n\nIronA11yAnnouncer.instance = null;\n\nIronA11yAnnouncer.requestAvailability = function() {\n if (!IronA11yAnnouncer.instance) {\n IronA11yAnnouncer.instance = document.createElement('iron-a11y-announcer');\n }\n\n document.body.appendChild(IronA11yAnnouncer.instance);\n};\n","/**\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\nimport '@polymer/polymer/polymer-legacy.js';\n\nimport {IronA11yAnnouncer} from '@polymer/iron-a11y-announcer/iron-a11y-announcer.js';\nimport {IronValidatableBehavior} from '@polymer/iron-validatable-behavior/iron-validatable-behavior.js';\nimport {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';\nimport {dom} from '@polymer/polymer/lib/legacy/polymer.dom.js';\nimport {html} from '@polymer/polymer/lib/utils/html-tag.js';\n\n/**\n`` is a wrapper to a native `` element, that adds two-way\nbinding and prevention of invalid input. To use it, you must distribute a native\n`` yourself. You can continue to use the native `input` as you would\nnormally:\n\n \n \n \n\n \n \n \n\n### Two-way binding\n\nBy default you can only get notified of changes to a native ``'s `value`\ndue to user input:\n\n \n\nThis means that if you imperatively set the value (i.e. `someNativeInput.value =\n'foo'`), no events will be fired and this change cannot be observed.\n\n`iron-input` adds the `bind-value` property that mirrors the native `input`'s\n'`value` property; this property can be used for two-way data binding.\n`bind-value` will notify if it is changed either by user input or by script.\n\n \n \n \n\nNote: this means that if you want to imperatively set the native `input`'s, you\n_must_ set `bind-value` instead, so that the wrapper `iron-input` can be\nnotified.\n\n### Validation\n\n`iron-input` uses the native `input`'s validation. For simplicity, `iron-input`\nhas a `validate()` method (which internally just checks the distributed\n`input`'s validity), which sets an `invalid` attribute that can also be used for\nstyling.\n\nTo validate automatically as you type, you can use the `auto-validate`\nattribute.\n\n`iron-input` also fires an `iron-input-validate` event after `validate()` is\ncalled. You can use it to implement a custom validator:\n\n var CatsOnlyValidator = {\n validate: function(ironInput) {\n var valid = !ironInput.bindValue || ironInput.bindValue === 'cat';\n ironInput.invalid = !valid;\n return valid;\n }\n }\n ironInput.addEventListener('iron-input-validate', function() {\n CatsOnly.validate(input2);\n });\n\nYou can also use an element implementing an\n[`IronValidatorBehavior`](/element/PolymerElements/iron-validatable-behavior).\nThis example can also be found in the demo for this element:\n\n \n \n \n\n### Preventing invalid input\n\nIt may be desirable to only allow users to enter certain characters. You can use\nthe `allowed-pattern` attribute to accomplish this. This feature is separate\nfrom validation, and `allowed-pattern` does not affect how the input is\nvalidated.\n\n // Only allow typing digits, but a valid input has exactly 5 digits.\n \n \n \n\n@demo demo/index.html\n*/\nPolymer({\n _template: html`\n \n \n`,\n\n is: 'iron-input',\n behaviors: [IronValidatableBehavior],\n\n /**\n * Fired whenever `validate()` is called.\n *\n * @event iron-input-validate\n */\n\n properties: {\n\n /**\n * Use this property instead of `value` for two-way data binding, or to\n * set a default value for the input. **Do not** use the distributed\n * input's `value` property to set a default value.\n */\n bindValue: {type: String, value: ''},\n\n /**\n * Computed property that echoes `bindValue` (mostly used for Polymer 1.0\n * backcompatibility, if you were one-way binding to the Polymer 1.0\n * `input is=\"iron-input\"` value attribute).\n */\n value: {type: String, computed: '_computeValue(bindValue)'},\n\n /**\n * Regex-like list of characters allowed as input; all characters not in the\n * list will be rejected. The recommended format should be a list of allowed\n * characters, for example, `[a-zA-Z0-9.+-!;:]`.\n *\n * This pattern represents the allowed characters for the field; as the user\n * inputs text, each individual character will be checked against the\n * pattern (rather than checking the entire value as a whole). If a\n * character is not a match, it will be rejected.\n *\n * Pasted input will have each character checked individually; if any\n * character doesn't match `allowedPattern`, the entire pasted string will\n * be rejected.\n *\n * Note: if you were using `iron-input` in 1.0, you were also required to\n * set `prevent-invalid-input`. This is no longer needed as of Polymer 2.0,\n * and will be set automatically for you if an `allowedPattern` is provided.\n *\n */\n allowedPattern: {type: String},\n\n /**\n * Set to true to auto-validate the input value as you type.\n */\n autoValidate: {type: Boolean, value: false},\n\n /**\n * The native input element.\n */\n _inputElement: Object,\n },\n\n observers: ['_bindValueChanged(bindValue, _inputElement)'],\n listeners: {'input': '_onInput', 'keypress': '_onKeypress'},\n\n created: function() {\n IronA11yAnnouncer.requestAvailability();\n this._previousValidInput = '';\n this._patternAlreadyChecked = false;\n },\n\n attached: function() {\n // If the input is added at a later time, update the internal reference.\n this._observer = dom(this).observeNodes(function(info) {\n this._initSlottedInput();\n }.bind(this));\n },\n\n detached: function() {\n if (this._observer) {\n dom(this).unobserveNodes(this._observer);\n this._observer = null;\n }\n },\n\n /**\n * Returns the distributed input element.\n */\n get inputElement() {\n return this._inputElement;\n },\n\n _initSlottedInput: function() {\n this._inputElement = this.getEffectiveChildren()[0];\n\n if (this.inputElement && this.inputElement.value) {\n this.bindValue = this.inputElement.value;\n }\n\n this.fire('iron-input-ready');\n },\n\n get _patternRegExp() {\n var pattern;\n if (this.allowedPattern) {\n pattern = new RegExp(this.allowedPattern);\n } else {\n switch (this.inputElement.type) {\n case 'number':\n pattern = /[0-9.,e-]/;\n break;\n }\n }\n return pattern;\n },\n\n /**\n * @suppress {checkTypes}\n */\n _bindValueChanged: function(bindValue, inputElement) {\n // The observer could have run before attached() when we have actually\n // initialized this property.\n if (!inputElement) {\n return;\n }\n\n if (bindValue === undefined) {\n inputElement.value = null;\n } else if (bindValue !== inputElement.value) {\n this.inputElement.value = bindValue;\n }\n\n if (this.autoValidate) {\n this.validate();\n }\n\n // manually notify because we don't want to notify until after setting value\n this.fire('bind-value-changed', {value: bindValue});\n },\n\n _onInput: function() {\n // Need to validate each of the characters pasted if they haven't\n // been validated inside `_onKeypress` already.\n if (this.allowedPattern && !this._patternAlreadyChecked) {\n var valid = this._checkPatternValidity();\n if (!valid) {\n this._announceInvalidCharacter(\n 'Invalid string of characters not entered.');\n this.inputElement.value = this._previousValidInput;\n }\n }\n this.bindValue = this._previousValidInput = this.inputElement.value;\n this._patternAlreadyChecked = false;\n },\n\n _isPrintable: function(event) {\n // What a control/printable character is varies wildly based on the browser.\n // - most control characters (arrows, backspace) do not send a `keypress`\n // event\n // in Chrome, but the *do* on Firefox\n // - in Firefox, when they do send a `keypress` event, control chars have\n // a charCode = 0, keyCode = xx (for ex. 40 for down arrow)\n // - printable characters always send a keypress event.\n // - in Firefox, printable chars always have a keyCode = 0. In Chrome, the\n // keyCode\n // always matches the charCode.\n // None of this makes any sense.\n\n // For these keys, ASCII code == browser keycode.\n var anyNonPrintable = (event.keyCode == 8) || // backspace\n (event.keyCode == 9) || // tab\n (event.keyCode == 13) || // enter\n (event.keyCode == 27); // escape\n\n // For these keys, make sure it's a browser keycode and not an ASCII code.\n var mozNonPrintable = (event.keyCode == 19) || // pause\n (event.keyCode == 20) || // caps lock\n (event.keyCode == 45) || // insert\n (event.keyCode == 46) || // delete\n (event.keyCode == 144) || // num lock\n (event.keyCode == 145) || // scroll lock\n (event.keyCode > 32 &&\n event.keyCode < 41) || // page up/down, end, home, arrows\n (event.keyCode > 111 && event.keyCode < 124); // fn keys\n\n return !anyNonPrintable && !(event.charCode == 0 && mozNonPrintable);\n },\n\n _onKeypress: function(event) {\n if (!this.allowedPattern && this.inputElement.type !== 'number') {\n return;\n }\n var regexp = this._patternRegExp;\n if (!regexp) {\n return;\n }\n\n // Handle special keys and backspace\n if (event.metaKey || event.ctrlKey || event.altKey) {\n return;\n }\n\n // Check the pattern either here or in `_onInput`, but not in both.\n this._patternAlreadyChecked = true;\n\n var thisChar = String.fromCharCode(event.charCode);\n if (this._isPrintable(event) && !regexp.test(thisChar)) {\n event.preventDefault();\n this._announceInvalidCharacter(\n 'Invalid character ' + thisChar + ' not entered.');\n }\n },\n\n _checkPatternValidity: function() {\n var regexp = this._patternRegExp;\n if (!regexp) {\n return true;\n }\n for (var i = 0; i < this.inputElement.value.length; i++) {\n if (!regexp.test(this.inputElement.value[i])) {\n return false;\n }\n }\n return true;\n },\n\n /**\n * Returns true if `value` is valid. The validator provided in `validator`\n * will be used first, then any constraints.\n * @return {boolean} True if the value is valid.\n */\n validate: function() {\n if (!this.inputElement) {\n this.invalid = false;\n return true;\n }\n\n // Use the nested input's native validity.\n var valid = this.inputElement.checkValidity();\n\n // Only do extra checking if the browser thought this was valid.\n if (valid) {\n // Empty, required input is invalid\n if (this.required && this.bindValue === '') {\n valid = false;\n } else if (this.hasValidator()) {\n valid = IronValidatableBehavior.validate.call(this, this.bindValue);\n }\n }\n\n this.invalid = !valid;\n this.fire('iron-input-validate');\n return valid;\n },\n\n _announceInvalidCharacter: function(message) {\n this.fire('iron-announce', {text: message});\n },\n\n _computeValue: function(bindValue) {\n return bindValue;\n }\n});\n","/**\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\nimport '@polymer/polymer/polymer-legacy.js';\nimport '@polymer/iron-a11y-keys-behavior/iron-a11y-keys-behavior.js';\nimport '@polymer/iron-icon/iron-icon.js';\nimport '@polymer/paper-input/paper-input.js';\nimport '@polymer/paper-menu-button/paper-menu-button.js';\nimport '@polymer/paper-ripple/paper-ripple.js';\nimport '@polymer/paper-styles/default-theme.js';\nimport './paper-dropdown-menu-icons.js';\nimport './paper-dropdown-menu-shared-styles.js';\n\nimport {IronButtonState} from '@polymer/iron-behaviors/iron-button-state.js';\nimport {IronControlState} from '@polymer/iron-behaviors/iron-control-state.js';\nimport {IronFormElementBehavior} from '@polymer/iron-form-element-behavior/iron-form-element-behavior.js';\nimport {IronValidatableBehavior} from '@polymer/iron-validatable-behavior/iron-validatable-behavior.js';\nimport {LegacyElementMixin} from '@polymer/polymer/lib/legacy/legacy-element-mixin.js';\nimport {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';\nimport {dom} from '@polymer/polymer/lib/legacy/polymer.dom.js';\nimport * as gestures from '@polymer/polymer/lib/utils/gestures.js';\nimport {html} from '@polymer/polymer/lib/utils/html-tag.js';\nimport {wrap} from '@polymer/polymer/lib/utils/wrap.js';\n\n// LegacyElementMixin dedupes and this is the base class for elements created\n// with the `Polymer` function, so this is only a cache lookup.\n// https://github.com/Polymer/polymer/blob/640bc80ac7177b761d46b2fa9c455c318f2b85c6/lib/legacy/class.js#L533-L534\nconst LegacyPolymerElementBase = LegacyElementMixin(HTMLElement);\n\n/**\nMaterial design: [Dropdown\nmenus](https://www.google.com/design/spec/components/buttons.html#buttons-dropdown-buttons)\n\n`paper-dropdown-menu` is similar to a native browser select element.\n`paper-dropdown-menu` works with selectable content. The currently selected\nitem is displayed in the control. If no item is selected, the `label` is\ndisplayed instead.\n\nExample:\n\n \n \n Croissant\n Donut\n Financier\n Madeleine\n \n \n\nThis example renders a dropdown menu with 4 options.\n\nThe child element with the slot `dropdown-content` is used as the dropdown\nmenu. This can be a [`paper-listbox`](paper-listbox), or any other or\nelement that acts like an [`iron-selector`](iron-selector).\n\nSpecifically, the menu child must fire an\n[`iron-select`](iron-selector#event-iron-select) event when one of its\nchildren is selected, and an\n[`iron-deselect`](iron-selector#event-iron-deselect) event when a child is\ndeselected. The selected or deselected item must be passed as the event's\n`detail.item` property.\n\nApplications can listen for the `iron-select` and `iron-deselect` events\nto react when options are selected and deselected.\n\n### Styling\n\nThe following custom properties and mixins are also available for styling:\n\nCustom property | Description | Default\n----------------|-------------|----------\n`--paper-dropdown-menu` | A mixin that is applied to the element host | `{}`\n`--paper-dropdown-menu-disabled` | A mixin that is applied to the element host when disabled | `{}`\n`--paper-dropdown-menu-ripple` | A mixin that is applied to the internal ripple | `{}`\n`--paper-dropdown-menu-button` | A mixin that is applied to the internal menu button | `{}`\n`--paper-dropdown-menu-input` | A mixin that is applied to the internal paper input | `{}`\n`--paper-dropdown-menu-icon` | A mixin that is applied to the internal icon | `{}`\n\nYou can also use any of the `paper-input-container` and `paper-menu-button`\nstyle mixins and custom properties to style the internal input and menu button\nrespectively.\n\n@element paper-dropdown-menu\n@demo demo/index.html\n*/\nPolymer({\n /** @override */\n _template: html`\n \n\n \n \n
    \n \n \n \n \n \n \n
    \n \n
    \n`,\n\n is: 'paper-dropdown-menu',\n\n behaviors: [\n IronButtonState,\n IronControlState,\n IronFormElementBehavior,\n IronValidatableBehavior\n ],\n\n properties: {\n /**\n * The derived \"label\" of the currently selected item. This value\n * is the `label` property on the selected item if set, or else the\n * trimmed text content of the selected item.\n */\n selectedItemLabel: {type: String, notify: true, readOnly: true},\n\n /**\n * The last selected item. An item is selected if the dropdown menu has\n * a child with slot `dropdown-content`, and that child triggers an\n * `iron-select` event with the selected `item` in the `detail`.\n *\n * @type {?Object}\n */\n selectedItem: {type: Object, notify: true, readOnly: true},\n\n /**\n * The value for this element that will be used when submitting in\n * a form. It reflects the value of `selectedItemLabel`. If set directly,\n * it will not update the `selectedItemLabel` value.\n */\n value: {\n type: String,\n notify: true,\n },\n\n /**\n * The label for the dropdown.\n */\n label: {type: String},\n\n /**\n * The placeholder for the dropdown.\n */\n placeholder: {type: String},\n\n /**\n * The error message to display when invalid.\n */\n errorMessage: {type: String},\n\n /**\n * True if the dropdown is open. Otherwise, false.\n */\n opened:\n {type: Boolean, notify: true, value: false, observer: '_openedChanged'},\n\n /**\n * By default, the dropdown will constrain scrolling on the page\n * to itself when opened.\n * Set to true in order to prevent scroll from being constrained\n * to the dropdown when it opens.\n */\n allowOutsideScroll: {type: Boolean, value: false},\n\n /**\n * Set to true to disable the floating label. Bind this to the\n * ``'s `noLabelFloat` property.\n */\n noLabelFloat: {type: Boolean, value: false, reflectToAttribute: true},\n\n /**\n * Set to true to always float the label. Bind this to the\n * ``'s `alwaysFloatLabel` property.\n */\n alwaysFloatLabel: {type: Boolean, value: false},\n\n /**\n * Set to true to disable animations when opening and closing the\n * dropdown.\n */\n noAnimations: {type: Boolean, value: false},\n\n /**\n * The orientation against which to align the menu dropdown\n * horizontally relative to the dropdown trigger.\n */\n horizontalAlign: {type: String, value: 'right'},\n\n /**\n * The orientation against which to align the menu dropdown\n * vertically relative to the dropdown trigger.\n */\n verticalAlign: {type: String, value: 'top'},\n\n /**\n * Overrides the vertical offset computed in\n * _computeMenuVerticalOffset.\n */\n verticalOffset: Number,\n\n /**\n * If true, the `horizontalAlign` and `verticalAlign` properties will\n * be considered preferences instead of strict requirements when\n * positioning the dropdown and may be changed if doing so reduces\n * the area of the dropdown falling outside of `fitInto`.\n */\n dynamicAlign: {type: Boolean},\n\n /**\n * Whether focus should be restored to the dropdown when the menu closes.\n */\n restoreFocusOnClose: {type: Boolean, value: true},\n\n /**\n * If true and scrollbars are added to the dropdown after it is positioned,\n * the size of the added scrollbars will be added to its `maxWidth` and\n * `maxHeight`.\n */\n expandSizingTargetForScrollbars: {type: Boolean, value: false},\n },\n\n listeners: {'tap': '_onTap'},\n\n /**\n * @type {!Object}\n */\n keyBindings: {'up down': 'open', 'esc': 'close'},\n\n observers: ['_selectedItemChanged(selectedItem)'],\n\n /**\n * Override `_attachDom` so that we can pass `delegatesFocus`. The overridden\n * implementation of `_attachDom` specifically skips the steps performed here\n * if the node already hosts a shadow root:\n * https://github.com/Polymer/polymer/blob/640bc80ac7177b761d46b2fa9c455c318f2b85c6/lib/mixins/element-mixin.js#L691-L694\n * @override\n */\n _attachDom(dom) {\n const wrappedThis = wrap(this);\n wrappedThis.attachShadow({\n mode: 'open',\n delegatesFocus: true,\n shadyUpgradeFragment: dom,\n });\n wrappedThis.shadowRoot.appendChild(dom);\n return LegacyPolymerElementBase.prototype._attachDom.call(this, dom);\n },\n\n /** @override */\n focus() {\n // When using Shady DOM and in browsers that don't support\n // `delegatesFocus`, attempting to focus this element with the browser's\n // native `HTMLElement#focus` will cause focus to be lost because this\n // element isn't focusable in those situations. To work around this, the\n // element in the shadow root that this element intends to delegate focus\n // to is manually focused instead.\n this.$.input._focusableElement.focus();\n },\n\n /** @override */\n attached: function() {\n // NOTE(cdata): Due to timing, a preselected value in a `IronSelectable`\n // child will cause an `iron-select` event to fire while the element is\n // still in a `DocumentFragment`. This has the effect of causing\n // handlers not to fire. So, we double check this value on attached:\n var contentElement = this.contentElement;\n if (contentElement && contentElement.selectedItem) {\n this._setSelectedItem(contentElement.selectedItem);\n }\n },\n\n /**\n * The content element that is contained by the dropdown menu, if any.\n */\n get contentElement() {\n // Polymer 2.x returns slot.assignedNodes which can contain text nodes.\n var nodes = dom(this.$.content).getDistributedNodes();\n for (var i = 0, l = nodes.length; i < l; i++) {\n if (nodes[i].nodeType === Node.ELEMENT_NODE) {\n return nodes[i];\n }\n }\n },\n\n /**\n * Show the dropdown content.\n */\n open: function() {\n this.$.menuButton.open();\n },\n\n /**\n * Hide the dropdown content.\n */\n close: function() {\n this.$.menuButton.close();\n },\n\n /**\n * A handler that is called when `iron-select` is fired.\n *\n * @param {CustomEvent} event An `iron-select` event.\n */\n _onIronSelect: function(event) {\n this._setSelectedItem(event.detail.item);\n },\n\n /**\n * A handler that is called when `iron-deselect` is fired.\n *\n * @param {CustomEvent} event An `iron-deselect` event.\n */\n _onIronDeselect: function(event) {\n this._setSelectedItem(null);\n },\n\n /**\n * A handler that is called when the dropdown is tapped.\n *\n * @param {CustomEvent} event A tap event.\n */\n _onTap: function(event) {\n if (gestures.findOriginalTarget(event) === this) {\n this.open();\n }\n },\n\n /**\n * Compute the label for the dropdown given a selected item.\n *\n * @param {Element} selectedItem A selected Element item, with an\n * optional `label` property.\n */\n _selectedItemChanged: function(selectedItem) {\n var value = '';\n if (!selectedItem) {\n value = '';\n } else {\n value = selectedItem.label || selectedItem.getAttribute('label') ||\n selectedItem.textContent.trim();\n }\n\n this.value = value;\n this._setSelectedItemLabel(value);\n },\n\n /**\n * Compute the vertical offset of the menu based on the value of\n * `noLabelFloat`.\n *\n * @param {boolean} noLabelFloat True if the label should not float\n * @param {number=} opt_verticalOffset Optional offset from the user\n * above the input, otherwise false.\n */\n _computeMenuVerticalOffset: function(noLabelFloat, opt_verticalOffset) {\n // Override offset if it's passed from the user.\n if (opt_verticalOffset) {\n return opt_verticalOffset;\n }\n\n // NOTE(cdata): These numbers are somewhat magical because they are\n // derived from the metrics of elements internal to `paper-input`'s\n // template. The metrics will change depending on whether or not the\n // input has a floating label.\n return noLabelFloat ? -4 : 8;\n },\n\n /**\n * Returns false if the element is required and does not have a selection,\n * and true otherwise.\n * @param {*=} _value Ignored.\n * @return {boolean} true if `required` is false, or if `required` is true\n * and the element has a valid selection.\n */\n _getValidity: function(_value) {\n return this.disabled || !this.required || (this.required && !!this.value);\n },\n\n _openedChanged: function() {\n var openState = this.opened ? 'true' : 'false';\n var e = this.contentElement;\n if (e) {\n e.setAttribute('aria-expanded', openState);\n }\n }\n});\n","/**\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\nimport '@polymer/polymer/polymer-legacy.js';\nimport '@polymer/iron-flex-layout/iron-flex-layout.js';\nimport '@polymer/paper-styles/default-theme.js';\nimport '@polymer/paper-styles/typography.js';\n\nimport {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';\nimport {dom} from '@polymer/polymer/lib/legacy/polymer.dom.js';\nimport {dashToCamelCase} from '@polymer/polymer/lib/utils/case-map.js';\nimport {html} from '@polymer/polymer/lib/utils/html-tag.js';\nconst template = html`\n\n \n\n`;\ntemplate.setAttribute('style', 'display: none;');\ndocument.head.appendChild(template.content);\n\n/*\n`` is a container for a `