UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

355 lines 95.8 kB
/*! For license information please see 77570.6b6fc3cd91b06e5e.js.LICENSE.txt */
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["77570"],{5132:function(e,t,s){s.d(t,{G:()=>f});s(92745),s(52805),s(61893),s(9359),s(31526),s(70104),s(48136),s(23669),s(19134),s(5740),s(97003),s(81804),s(95908);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:"*"},r={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},o=/[a-z0-9*]/,l=/U\+/,a=/^arrow/,c=/^space(bar)?/,h=/^escape$/;function d(e,t){var s="";if(e){var n=e.toLowerCase();" "===n||c.test(n)?s="space":h.test(n)?s="esc":1==n.length?t&&!o.test(n)||(s=n):s=a.test(n)?n.replace("arrow",""):"multiply"==n?"*":n}return s}function u(e,t){return e.key?d(e.key,t):e.detail&&e.detail.key?d(e.detail.key,t):(s=e.keyIdentifier,r="",s&&(s in n?r=n[s]:l.test(s)?(s=parseInt(s.replace("U+","0x"),16),r=String.fromCharCode(s).toLowerCase()):r=s.toLowerCase()),r||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 s,r}function _(e,t){return u(t,e.hasModifiers)===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey)}function p(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 s=t.split(":"),n=s[0],i=s[1];return n in r?(e[r[n]]=!0,e.hasModifiers=!0):(e.key=n,e.event=i||"keydown"),e}),{combo:e.split(":").shift()})}(e)}))}const f={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 s=p(t),n=0;n<s.length;++n)if(_(s[n],e))return!0;return!1},_collectKeyBindings:function(){var e=this.behaviors.map((function(e){return e.keyBindings}));return-1===e.indexOf(this.keyBindings)&&e.push(this.keyBindings),e},_prepKeyBindings:function(){for(var e in this._keyBindings={},this._collectKeyBindings().forEach((function(e){for(var t in e)this._addKeyBinding(t,e[t])}),this),this._imperativeKeyBindings)this._addKeyBinding(e,this._imperativeKeyBindings[e]);for(var t in this._keyBindings)this._keyBindings[t].sort((function(e,t){var s=e[0].hasModifiers;return s===t[0].hasModifiers?0:s?-1:1}))},_addKeyBinding:function(e,t){p(e).forEach((function(e){this._keyBindings[e.event]=this._keyBindings[e.event]||[],this._keyBindings[e.event].push([e,t])}),this)},_resetKeyEventListeners:function(){this._unlistenKeyEventListeners(),this.isAttached&&this._listenKeyEventListeners()},_listenKeyEventListeners:function(){this.keyEventTarget&&Object.keys(this._keyBindings).forEach((function(e){var t=this._keyBindings[e],s=this._onKeyBindingEvent.bind(this,t);this._boundKeyHandlers.push([this.keyEventTarget,e,s]),this.keyEventTarget.addEventListener(e,s)}),this)},_unlistenKeyEventListeners:function(){for(var e,t,s,n;this._boundKeyHandlers.length;)t=(e=this._boundKeyHandlers.pop())[0],s=e[1],n=e[2],t.removeEventListener(s,n)},_onKeyBindingEvent:function(e,t){if(this.stopKeyboardEventPropagation&&t.stopPropagation(),!t.defaultPrevented)for(var s=0;s<e.length;s++){var n=e[s][0],i=e[s][1];if(_(n,t)&&(this._triggerKeyHandler(n,i,t),t.defaultPrevented))return}},_triggerKeyHandler:function(e,t,s){var n=Object.create(e);n.keyboardEvent=s;var i=new CustomEvent(e.event,{detail:n,cancelable:!0});this[t].call(this,i),i.defaultPrevented&&s.preventDefault()}}},53903:function(e,t,s){s.d(t,{$:()=>r,P:()=>o});s(95908),s(89709);var n=s(5132),i=s(81626);const r={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute:!0,observer:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribute:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},pointerDown:{type:Boolean,readOnly:!0,value:!1},receivedFocusFromKeyboard:{type:Boolean,readOnly:!0},ariaActiveAttribute:{type:String,value:"aria-pressed",observer:"_ariaActiveAttributeChanged"}},listeners:{down:"_downHandler",up:"_upHandler",tap:"_tapHandler"},observers:["_focusChanged(focused)","_activeChanged(active, ariaActiveAttribute)"],keyBindings:{"enter:keydown":"_asyncClick","space:keydown":"_spaceKeyDownHandler","space:keyup":"_spaceKeyUpHandler"},_mouseEventRe:/^mouse/,_tapHandler:function(){this.toggles?this._userActivate(!this.active):this.active=!1},_focusChanged:function(e){this._detectKeyboardFocus(e),e||this._setPressed(!1)},_detectKeyboardFocus:function(e){this._setReceivedFocusFromKeyboard(!this.pointerDown&&e)},_userActivate:function(e){this.active!==e&&(this.active=e,this.fire("change"))},_downHandler:function(e){this._setPointerDown(!0),this._setPressed(!0),this._setReceivedFocusFromKeyboard(!1)},_upHandler:function(){this._setPointerDown(!1),this._setPressed(!1)},_spaceKeyDownHandler:function(e){var t=e.detail.keyboardEvent,s=(0,i.vz)(t).localTarget;this.isLightDescendant(s)||(t.preventDefault(),t.stopImmediatePropagation(),this._setPressed(!0))},_spaceKeyUpHandler:function(e){var t=e.detail.keyboardEvent,s=(0,i.vz)(t).localTarget;this.isLightDescendant(s)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},_asyncClick:function(){this.async((function(){this.click()}),1)},_pressedChanged:function(e){this._changedButtonState()},_ariaActiveAttributeChanged:function(e,t){t&&t!=e&&this.hasAttribute(t)&&this.removeAttribute(t)},_activeChanged:function(e,t){this.toggles?this.setAttribute(this.ariaActiveAttribute,e?"true":"false"):this.removeAttribute(this.ariaActiveAttribute),this._changedButtonState()},_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},o=[n.G,r]},89709:function(e,t,s){s.d(t,{a:()=>n});s(95908),s(81626);const n={properties:{focused:{type:Boolean,value:!1,notify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type:String},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}}},observers:["_changedControlState(focused, disabled)"],ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0),this.addEventListener("blur",this._boundFocusBlurHandler,!0)},_focusBlurHandler:function(e){this._setFocused("focus"===e.type)},_disabledChanged:function(e,t){this.setAttribute("aria-disabled",e?"true":"false"),this.style.pointerEvents=e?"none":"",e?(this._oldTabIndex=this.getAttribute("tabindex"),this._setFocused(!1),this.tabIndex=-1,this.blur()):void 0!==this._oldTabIndex&&(null===this._oldTabIndex?this.removeAttribute("tabindex"):this.setAttribute("tabindex",this._oldTabIndex))},_changedControlState:function(){this._controlStateChanged&&this._controlStateChanged()}}},18857:function(e,t,s){s(95908);let n;const i=(0,s(77218).d)(n||(n=(e=>e)`
<custom-style>
  <style is="custom-style">
    [hidden] {
      display: none !important;
    }
  </style>
</custom-style>
<custom-style>
  <style is="custom-style">
    html {

      --layout: {
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
      };

      --layout-inline: {
        display: -ms-inline-flexbox;
        display: -webkit-inline-flex;
        display: inline-flex;
      };

      --layout-horizontal: {
        @apply --layout;

        -ms-flex-direction: row;
        -webkit-flex-direction: row;
        flex-direction: row;
      };

      --layout-horizontal-reverse: {
        @apply --layout;

        -ms-flex-direction: row-reverse;
        -webkit-flex-direction: row-reverse;
        flex-direction: row-reverse;
      };

      --layout-vertical: {
        @apply --layout;

        -ms-flex-direction: column;
        -webkit-flex-direction: column;
        flex-direction: column;
      };

      --layout-vertical-reverse: {
        @apply --layout;

        -ms-flex-direction: column-reverse;
        -webkit-flex-direction: column-reverse;
        flex-direction: column-reverse;
      };

      --layout-wrap: {
        -ms-flex-wrap: wrap;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
      };

      --layout-wrap-reverse: {
        -ms-flex-wrap: wrap-reverse;
        -webkit-flex-wrap: wrap-reverse;
        flex-wrap: wrap-reverse;
      };

      --layout-flex-auto: {
        -ms-flex: 1 1 auto;
        -webkit-flex: 1 1 auto;
        flex: 1 1 auto;
      };

      --layout-flex-none: {
        -ms-flex: none;
        -webkit-flex: none;
        flex: none;
      };

      --layout-flex: {
        -ms-flex: 1 1 0.000000001px;
        -webkit-flex: 1;
        flex: 1;
        -webkit-flex-basis: 0.000000001px;
        flex-basis: 0.000000001px;
      };

      --layout-flex-2: {
        -ms-flex: 2;
        -webkit-flex: 2;
        flex: 2;
      };

      --layout-flex-3: {
        -ms-flex: 3;
        -webkit-flex: 3;
        flex: 3;
      };

      --layout-flex-4: {
        -ms-flex: 4;
        -webkit-flex: 4;
        flex: 4;
      };

      --layout-flex-5: {
        -ms-flex: 5;
        -webkit-flex: 5;
        flex: 5;
      };

      --layout-flex-6: {
        -ms-flex: 6;
        -webkit-flex: 6;
        flex: 6;
      };

      --layout-flex-7: {
        -ms-flex: 7;
        -webkit-flex: 7;
        flex: 7;
      };

      --layout-flex-8: {
        -ms-flex: 8;
        -webkit-flex: 8;
        flex: 8;
      };

      --layout-flex-9: {
        -ms-flex: 9;
        -webkit-flex: 9;
        flex: 9;
      };

      --layout-flex-10: {
        -ms-flex: 10;
        -webkit-flex: 10;
        flex: 10;
      };

      --layout-flex-11: {
        -ms-flex: 11;
        -webkit-flex: 11;
        flex: 11;
      };

      --layout-flex-12: {
        -ms-flex: 12;
        -webkit-flex: 12;
        flex: 12;
      };

      /* alignment in cross axis */

      --layout-start: {
        -ms-flex-align: start;
        -webkit-align-items: flex-start;
        align-items: flex-start;
      };

      --layout-center: {
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
      };

      --layout-end: {
        -ms-flex-align: end;
        -webkit-align-items: flex-end;
        align-items: flex-end;
      };

      --layout-baseline: {
        -ms-flex-align: baseline;
        -webkit-align-items: baseline;
        align-items: baseline;
      };

      /* alignment in main axis */

      --layout-start-justified: {
        -ms-flex-pack: start;
        -webkit-justify-content: flex-start;
        justify-content: flex-start;
      };

      --layout-center-justified: {
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
      };

      --layout-end-justified: {
        -ms-flex-pack: end;
        -webkit-justify-content: flex-end;
        justify-content: flex-end;
      };

      --layout-around-justified: {
        -ms-flex-pack: distribute;
        -webkit-justify-content: space-around;
        justify-content: space-around;
      };

      --layout-justified: {
        -ms-flex-pack: justify;
        -webkit-justify-content: space-between;
        justify-content: space-between;
      };

      --layout-center-center: {
        @apply --layout-center;
        @apply --layout-center-justified;
      };

      /* self alignment */

      --layout-self-start: {
        -ms-align-self: flex-start;
        -webkit-align-self: flex-start;
        align-self: flex-start;
      };

      --layout-self-center: {
        -ms-align-self: center;
        -webkit-align-self: center;
        align-self: center;
      };

      --layout-self-end: {
        -ms-align-self: flex-end;
        -webkit-align-self: flex-end;
        align-self: flex-end;
      };

      --layout-self-stretch: {
        -ms-align-self: stretch;
        -webkit-align-self: stretch;
        align-self: stretch;
      };

      --layout-self-baseline: {
        -ms-align-self: baseline;
        -webkit-align-self: baseline;
        align-self: baseline;
      };

      /* multi-line alignment in main axis */

      --layout-start-aligned: {
        -ms-flex-line-pack: start;  /* IE10 */
        -ms-align-content: flex-start;
        -webkit-align-content: flex-start;
        align-content: flex-start;
      };

      --layout-end-aligned: {
        -ms-flex-line-pack: end;  /* IE10 */
        -ms-align-content: flex-end;
        -webkit-align-content: flex-end;
        align-content: flex-end;
      };

      --layout-center-aligned: {
        -ms-flex-line-pack: center;  /* IE10 */
        -ms-align-content: center;
        -webkit-align-content: center;
        align-content: center;
      };

      --layout-between-aligned: {
        -ms-flex-line-pack: justify;  /* IE10 */
        -ms-align-content: space-between;
        -webkit-align-content: space-between;
        align-content: space-between;
      };

      --layout-around-aligned: {
        -ms-flex-line-pack: distribute;  /* IE10 */
        -ms-align-content: space-around;
        -webkit-align-content: space-around;
        align-content: space-around;
      };

      /*******************************
                Other Layout
      *******************************/

      --layout-block: {
        display: block;
      };

      --layout-invisible: {
        visibility: hidden !important;
      };

      --layout-relative: {
        position: relative;
      };

      --layout-fit: {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
      };

      --layout-scroll: {
        -webkit-overflow-scrolling: touch;
        overflow: auto;
      };

      --layout-fullbleed: {
        margin: 0;
        height: 100vh;
      };

      /* fixed position */

      --layout-fixed-top: {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
      };

      --layout-fixed-right: {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
      };

      --layout-fixed-bottom: {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
      };

      --layout-fixed-left: {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
      };

    }
  </style>
</custom-style>`));i.setAttribute("style","display: none;"),document.head.appendChild(i.content);var r=document.createElement("style");r.textContent="[hidden] { display: none !important; }",document.head.appendChild(r)},76982:function(e,t,s){s.d(t,{D:()=>c,i:()=>h});s(9359),s(31526),s(81804),s(95908);var n=s(5132),i=(s(92745),s(56475),s(70104),s(22152),s(81626)),r=s(44223);class o{constructor(e){this.selection=[],this.selectCallback=e}get(){return this.multi?this.selection.slice():this.selection[0]}clear(e){this.selection.slice().forEach((function(t){(!e||e.indexOf(t)<0)&&this.setItemSelected(t,!1)}),this)}isSelected(e){return this.selection.indexOf(e)>=0}setItemSelected(e,t){if(null!=e&&t!==this.isSelected(e)){if(t)this.selection.push(e);else{var s=this.selection.indexOf(e);s>=0&&this.selection.splice(s,1)}this.selectCallback&&this.selectCallback(e,t)}}select(e){this.multi?this.toggle(e):this.get()!==e&&(this.setItemSelected(this.get(),!1),this.setItemSelected(e,!0))}toggle(e){this.setItemSelected(e,!this.isSelected(e))}}const l={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 o(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,s=0;t=this.items[s];s++)if(this._valueForItem(t)==e)return s},_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 s=e[(0,r.z)(this.attrForSelected)];return null!=s?s: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,s=this.items;t&&t!=this;){var n=s.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)}},a={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)):l._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 s=0;s<t.length;s++)this._selection.setItemSelected(t[s],!0);this.fallbackSelection&&!this._selection.get().length&&(this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection))},_selectionChange:function(){var e=this._selection.get();this.multi?(this._setSelectedItems(e),this._setSelectedItem(e.length?e[0]:null)):null!=e?(this._setSelectedItems([e]),this._setSelectedItem(e)):(this._setSelectedItems([]),this._setSelectedItem(null))},_toggleSelected:function(e){var t=this.selectedValues.indexOf(e);t<0?this.push("selectedValues",e):this.splice("selectedValues",t,1)},_valuesToItems:function(e){return null==e?null:e.map((function(e){return this._valueToItem(e)}),this)}},c={properties:{focusedItem:{observer:"_focusedItemChanged",readOnly:!0,type:Object},attrForItemTitle:{type:String},disabled:{type:Boolean,value:!1,observer:"_disabledChanged"}},_MODIFIER_KEYS:["Alt","AltGraph","CapsLock","Control","Fn","FnLock","Hyper","Meta","NumLock","OS","ScrollLock","Shift","Super","Symbol","SymbolLock"],_SEARCH_RESET_TIMEOUT_MS:1e3,_previousTabIndex:0,hostAttributes:{role:"menu"},observers:["_updateMultiselectable(multi)"],listeners:{focus:"_onFocus",keydown:"_onKeydown","iron-items-changed":"_onIronItemsChanged"},keyBindings:{up:"_onUpKey",down:"_onDownKey",esc:"_onEscKey","shift+tab:keydown":"_onShiftTabDown"},attached:function(){this._resetTabindices()},select:function(e){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var t=this._valueToItem(e);t&&t.hasAttribute("disabled")||(this._setFocusedItem(t),a.select.apply(this,arguments))},_resetTabindices:function(){var e=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach((function(t){t.setAttribute("tabindex",t===e?"0":"-1"),t.setAttribute("aria-selected",this._selection.isSelected(t))}),this)},_updateMultiselectable:function(e){e?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},_focusWithKeyboardEvent:function(e){if(-1===this._MODIFIER_KEYS.indexOf(e.key)){this.cancelDebouncer("_clearSearchText");for(var t,s=this._searchText||"",n=(s+=(e.key&&1==e.key.length?e.key:String.fromCharCode(e.keyCode)).toLocaleLowerCase()).length,i=0;t=this.items[i];i++)if(!t.hasAttribute("disabled")){var r=this.attrForItemTitle||"textContent",o=(t[r]||t.getAttribute(r)||"").trim();if(!(o.length<n)&&o.slice(0,n).toLocaleLowerCase()==s){this._setFocusedItem(t);break}}this._searchText=s,this.debounce("_clearSearchText",this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},_clearSearchText:function(){this._searchText=""},_focusPrevious:function(){for(var e=this.items.length,t=Number(this.indexOf(this.focusedItem)),s=1;s<e+1;s++){var n=this.items[(t-s+e)%e];if(!n.hasAttribute("disabled")){var r=(0,i.vz)(n).getOwnerRoot()||document;if(this._setFocusedItem(n),(0,i.vz)(r).activeElement==n)return}}},_focusNext:function(){for(var e=this.items.length,t=Number(this.indexOf(this.focusedItem)),s=1;s<e+1;s++){var n=this.items[(t+s)%e];if(!n.hasAttribute("disabled")){var r=(0,i.vz)(n).getOwnerRoot()||document;if(this._setFocusedItem(n),(0,i.vz)(r).activeElement==n)return}}},_applySelection:function(e,t){t?e.setAttribute("aria-selected","true"):e.setAttribute("aria-selected","false"),l._applySelection.apply(this,arguments)},_focusedItemChanged:function(e,t){t&&t.setAttribute("tabindex","-1"),!e||e.hasAttribute("disabled")||this.disabled||(e.setAttribute("tabindex","0"),e.focus())},_onIronItemsChanged:function(e){e.detail.addedNodes.length&&this._resetTabindices()},_onShiftTabDown:function(e){var t=this.getAttribute("tabindex");c._shiftTabPressed=!0,this._setFocusedItem(null),this.setAttribute("tabindex","-1"),this.async((function(){this.setAttribute("tabindex",t),c._shiftTabPressed=!1}),1)},_onFocus:function(e){if(!c._shiftTabPressed){var t=(0,i.vz)(e).rootTarget;(t===this||void 0===t.tabIndex||this.isLightDescendant(t))&&(this._defaultFocusAsync=this.async((function(){var e=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null),e?this._setFocusedItem(e):this.items[0]&&this._focusNext()})))}},_onUpKey:function(e){this._focusPrevious(),e.detail.keyboardEvent.preventDefault()},_onDownKey:function(e){this._focusNext(),e.detail.keyboardEvent.preventDefault()},_onEscKey:function(e){var t=this.focusedItem;t&&t.blur()},_onKeydown:function(e){this.keyboardEventMatchesKeys(e,"up down esc")||this._focusWithKeyboardEvent(e),e.stopPropagation()},_activateHandler:function(e){l._activateHandler.call(this,e),e.stopPropagation()},_disabledChanged:function(e){e?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},_shiftTabPressed:!1},h=[[l,a],n.G,c]},56670:function(e,t,s){s.d(t,{x:()=>xe});s(71695),s(92745),s(9359),s(56475),s(46692),s(47021),s(19423),s(19134),s(5740),s(97003),s(81804),s(44495);var n=s(63931);s(32114);class i{constructor(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""}}function r(e){return o(function(e){let t=new i;t.start=0,t.end=e.length;let s=t;for(let n=0,r=e.length;n<r;n++)if(e[n]===c){s.rules||(s.rules=[]);let e=s,t=e.rules[e.rules.length-1]||null;s=new i,s.start=n+1,s.parent=e,s.previous=t,e.rules.push(s)}else e[n]===h&&(s.end=n+1,s=s.parent||t);return t}(e=e.replace(d.comments,"").replace(d.port,"")),e)}function o(e,t){let s=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=s.trim(),e.parent){let n=e.previous?e.previous.end:e.parent.start;s=t.substring(n,e.start-1),s=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){let e=arguments[1],t=6-e.length;for(;t--;)e="0"+e;return"\\"+e}))}(s),s=s.replace(d.multipleSpaces," "),s=s.substring(s.lastIndexOf(";")+1);let i=e.parsedSelector=e.selector=s.trim();e.atRule=0===i.indexOf(p),e.atRule?0===i.indexOf(_)?e.type=a.MEDIA_RULE:i.match(d.keyframesRule)&&(e.type=a.KEYFRAMES_RULE,e.keyframesName=e.selector.split(d.multipleSpaces).pop()):0===i.indexOf(u)?e.type=a.MIXIN_RULE:e.type=a.STYLE_RULE}let n=e.rules;if(n)for(let i,r=0,l=n.length;r<l&&(i=n[r]);r++)o(i,t);return e}function l(e,t,s=""){let n="";if(e.cssText||e.rules){let s=e.rules;if(s&&!function(e){let t=e[0];return Boolean(t)&&Boolean(t.selector)&&0===t.selector.indexOf(u)}(s))for(let e,i=0,r=s.length;i<r&&(e=s[i]);i++)n=l(e,t,n);else n=t?e.cssText:function(e){return e=function(e){return e.replace(d.customProp,"").replace(d.mixinProp,"")}(e),function(e){return e.replace(d.mixinApply,"").replace(d.varApply,"")}(e)}(e.cssText),n=n.trim(),n&&(n="  "+n+"\n")}return n&&(e.selector&&(s+=e.selector+" "+c+"\n"),s+=n,e.selector&&(s+=h+"\n\n")),s}const a={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},c="{",h="}",d={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},u="--",_="@media",p="@";var f=s(8787);s(92519),s(42179),s(89256),s(24931),s(88463),s(57449),s(19814);const m=new Set;function y(e){const t=e.textContent;if(!m.has(t)){m.add(t);const e=document.createElement("style");e.setAttribute("shady-unscoped",""),e.textContent=t,document.head.appendChild(e)}}function b(e){return e.hasAttribute("shady-unscoped")}function g(e,t){return e?("string"==typeof e&&(e=r(e)),t&&S(e,t),l(e,n.rd)):""}function v(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=r(e.textContent)),e.__cssRules||null}function S(e,t,s,n){if(!e)return;let i=!1,r=e.type;if(n&&r===a.MEDIA_RULE){let t=e.selector.match(f.mA);t&&(window.matchMedia(t[1]).matches||(i=!0))}r===a.STYLE_RULE?t(e):s&&r===a.KEYFRAMES_RULE?s(e):r===a.MIXIN_RULE&&(i=!0);let o=e.rules;if(o&&!i)for(let l,a=0,c=o.length;a<c&&(l=o[a]);a++)S(l,t,s,n)}function C(e,t){let s=0;for(let n=t,i=e.length;n<i;n++)if("("===e[n])s++;else if(")"===e[n]&&0==--s)return n;return-1}function w(e,t){let s=e.indexOf("var(");if(-1===s)return t(e,"","","");let n=C(e,s+3),i=e.substring(s+4,n),r=e.substring(0,s),o=w(e.substring(n+1),t),l=i.indexOf(",");return-1===l?t(r,i.trim(),"",o):t(r,i.substring(0,l).trim(),i.substring(l+1).trim(),o)}window.ShadyDOM&&window.ShadyDOM.wrap;const x="css-build";function E(e){if(void 0!==n.Cp)return n.Cp;if(void 0===e.__cssBuild){const t=e.getAttribute(x);if(t)e.__cssBuild=t;else{const t=function(e){const t="template"===e.localName?e.content.firstChild:e.firstChild;if(t instanceof Comment){const e=t.textContent.trim().split(":");if(e[0]===x)return e[1]}return""}(e);""!==t&&function(e){const t="template"===e.localName?e.content.firstChild:e.firstChild;t.parentNode.removeChild(t)}(e),e.__cssBuild=t}}return e.__cssBuild||""}function A(e){return""!==E(e)}var I=s(66087);const k=/;\s*/m,P=/^\s*(initial)|(inherit)\s*$/,T=/\s*!important/,O="_-_";class N{constructor(){this._map={}}set(e,t){e=e.trim(),this._map[e]={properties:t,dependants:{}}}get(e){return e=e.trim(),this._map[e]||null}}let D=null;class M{constructor(){this._currentElement=null,this._measureElement=null,this._map=new N}detectMixin(e){return(0,I.OH)(e)}gatherStyles(e){const t=function(e){const t=[],s=e.querySelectorAll("style");for(let i=0;i<s.length;i++){const e=s[i];b(e)?n.WA||(y(e),e.parentNode.removeChild(e)):(t.push(e.textContent),e.parentNode.removeChild(e))}return t.join("").trim()}(e.content);if(t){const s=document.createElement("style");return s.textContent=t,e.content.insertBefore(s,e.content.firstChild),s}return null}transformTemplate(e,t){void 0===e._gatheredStyle&&(e._gatheredStyle=this.gatherStyles(e));const s=e._gatheredStyle;return s?this.transformStyle(s,t):null}transformStyle(e,t=""){let s=v(e);return this.transformRules(s,t),e.textContent=g(s),s}transformCustomStyle(e){let t=v(e);return S(t,(e=>{":root"===e.selector&&(e.selector="html"),this.transformRule(e)})),e.textContent=g(t),t}transformRules(e,t){this._currentElement=t,S(e,(e=>{this.transformRule(e)})),this._currentElement=null}transformRule(e){e.cssText=this.transformCssText(e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")}transformCssText(e,t){return e=e.replace(f.CN,((e,s,n,i)=>this._produceCssProperties(e,s,n,i,t))),this._consumeCssProperties(e,t)}_getInitialValueForProperty(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)}_fallbacksFromPreviousRules(e){let t=e;for(;t.parent;)t=t.parent;const s={};let n=!1;return S(t,(t=>{n=n||t===e,n||t.selector===e.selector&&Object.assign(s,this._cssTextToMap(t.parsedCssText))})),s}_consumeCssProperties(e,t){let s=null;for(;s=f.$T.exec(e);){let n=s[0],i=s[1],r=s.index,o=r+n.indexOf("@apply"),l=r+n.length,a=e.slice(0,o),c=e.slice(l),h=t?this._fallbacksFromPreviousRules(t):{};Object.assign(h,this._cssTextToMap(a));let d=this._atApplyToCssProperties(i,h);e=`${a}${d}${c}`,f.$T.lastIndex=r+d.length}return e}_atApplyToCssProperties(e,t){e=e.replace(k,"");let s=[],n=this._map.get(e);if(n||(this._map.set(e,{}),n=this._map.get(e)),n){let i,r,o;this._currentElement&&(n.dependants[this._currentElement]=!0);const l=n.properties;for(i in l)o=t&&t[i],r=[i,": var(",e,O,i],o&&r.push(",",o.replace(T,"")),r.push(")"),T.test(l[i])&&r.push(" !important"),s.push(r.join(""))}return s.join("; ")}_replaceInitialOrInherit(e,t){let s=P.exec(t);return s&&(t=s[1]?this._getInitialValueForProperty(e):"apply-shim-inherit"),t}_cssTextToMap(e,t=!1){let s,n,i=e.split(";"),r={};for(let o,l,a=0;a<i.length;a++)o=i[a],o&&(l=o.split(":"),l.length>1&&(s=l[0].trim(),n=l.slice(1).join(":"),t&&(n=this._replaceInitialOrInherit(s,n)),r[s]=n));return r}_invalidateMixinEntry(e){if(D)for(let t in e.dependants)t!==this._currentElement&&D(t)}_produceCssProperties(e,t,s,n,i){if(s&&w(s,((e,t)=>{t&&this._map.get(t)&&(n=`@apply ${t};`)})),!n)return e;let r=this._consumeCssProperties(""+n,i),o=e.slice(0,e.indexOf("--")),l=this._cssTextToMap(r,!0),a=l,c=this._map.get(t),h=c&&c.properties;h?a=Object.assign(Object.create(h),l):this._map.set(t,a);let d,u,_=[],p=!1;for(d in a)u=l[d],void 0===u&&(u="initial"),h&&!(d in h)&&(p=!0),_.push(`${t}${O}${d}: ${u}`);return p&&this._invalidateMixinEntry(c),c&&(c.properties=a),s&&(o=`${e};${o}`),`${o}${_.join("; ")};`}}M.prototype.detectMixin=M.prototype.detectMixin,M.prototype.transformStyle=M.prototype.transformStyle,M.prototype.transformCustomStyle=M.prototype.transformCustomStyle,M.prototype.transformRules=M.prototype.transformRules,M.prototype.transformRule=M.prototype.transformRule,M.prototype.transformTemplate=M.prototype.transformTemplate,M.prototype._separator=O,Object.defineProperty(M.prototype,"invalidCallback",{get(){return D},set(e){D=e}});const F=M,L={};s(40251);const R="_applyShimCurrentVersion",H="_applyShimNextVersion",B="_applyShimValidatingVersion",K=Promise.resolve();function j(e){let t=L[e];t&&function(e){e[R]=e[R]||0,e[B]=e[B]||0,e[H]=(e[H]||0)+1}(t)}function z(e){return e[R]===e[H]}function U(e){return!z(e)&&e[B]===e[H]}function $(e){e[B]=e[H],e._validating||(e._validating=!0,K.then((function(){e[R]=e[H],e._validating=!1})))}s(28804);const q=new F;class Y{constructor(){this.customStyleInterface=null,q.invalidCallback=j}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=e=>{q.transformCustomStyle(e)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame((()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()}))})}prepareTemplate(e,t){if(this.ensure(),A(e))return;L[t]=e;let s=q.transformTemplate(e,t);e._styleAst=s}flushCustomStyles(){if(this.ensure(),!this.customStyleInterface)return;let e=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(let t=0;t<e.length;t++){let s=e[t],n=this.customStyleInterface.getStyleForCustomStyle(s);n&&q.transformCustomStyle(n)}this.customStyleInterface.enqueued=!1}}styleSubtree(e,t){if(this.ensure(),t&&(0,I.wW)(e,t),e.shadowRoot){this.styleElement(e);let t=e.shadowRoot.children||e.shadowRoot.childNodes;for(let e=0;e<t.length;e++)this.styleSubtree(t[e])}else{let t=e.children||e.childNodes;for(let e=0;e<t.length;e++)this.styleSubtree(t[e])}}styleElement(e){this.ensure();let{is:t}=function(e){let t=e.localName,s="",n="";return t?t.indexOf("-")>-1?s=t:(n=t,s=e.getAttribute&&e.getAttribute("is")||""):(s=e.is,n=e.extends),{is:s,typeExtension:n}}(e),s=L[t];if((!s||!A(s))&&s&&!z(s)){U(s)||(this.prepareTemplate(s,t),$(s));let n=e.shadowRoot;if(n){let e=n.querySelector("style");e&&(e.__cssRules=s._styleAst,e.textContent=g(s._styleAst))}}}styleDocument(e){this.ensure(),this.styleSubtree(document.body,e)}}if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const e=new Y;let t=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(t,s,n){e.flushCustomStyles(),e.prepareTemplate(t,s)},prepareTemplateStyles(e,t,s){window.ShadyCSS.prepareTemplate(e,t,s)},prepareTemplateDom(e,t){},styleSubtree(t,s){e.flushCustomStyles(),e.styleSubtree(t,s)},styleElement(t){e.flushCustomStyles(),e.styleElement(t)},styleDocument(t){e.flushCustomStyles(),e.styleDocument(t)},getComputedStyleValue(e,t){return(0,I.B7)(e,t)},flushCustomStyles(){e.flushCustomStyles()},nativeCss:n.rd,nativeShadow:n.WA,cssBuild:n.Cp,disableRuntime:n.jF},t&&(window.ShadyCSS.CustomStyleInterface=t)}window.ShadyCSS.ApplyShim=q;var V=s(47632),J=s(82460),W=s(93520),X=s(19883);const G=/:host\(:dir\((ltr|rtl)\)\)/g,Z=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Q=/:dir\((?:ltr|rtl)\)/,ee=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),te=[];let se=null,ne="";function ie(){ne=document.documentElement.getAttribute("dir")}function re(e){if(!e.__autoDirOptOut){e.setAttribute("dir",ne)}}function oe(){ie(),ne=document.documentElement.getAttribute("dir");for(let e=0;e<te.length;e++)re(te[e])}const le=(0,X.o)((e=>{ee||se||(ie(),se=new MutationObserver(oe),se.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const t=(0,W.Q)(e);class s extends t{static _processStyleText(e,s){return e=t._processStyleText.call(this,e,s),!ee&&Q.test(e)&&(e=this._replaceDirInCssText(e),this.__activateDir=!0),e}static _replaceDirInCssText(e){let t=e;return t=t.replace(G,':host([dir="$1"])'),t=t.replace(Z,':host([dir="$2"]) $1'),t}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute("dir")}connectedCallback(){t.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&(se&&se.takeRecords().length&&oe(),te.push(this),re(this))}disconnectedCallback(){if(t.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir){const e=te.indexOf(this);e>-1&&te.splice(e,1)}}}return s.__activateDir=!1,s}));s(85695);function ae(){document.body.removeAttribute("unresolved")}"interactive"===document.readyState||"complete"===document.readyState?ae():window.addEventListener("DOMContentLoaded",ae);var ce=s(81626),he=s(90832),de=s(46682),ue=s(49136),_e=s(76147),pe=s(61284);s(70176);const fe=window.ShadyDOM,me=window.ShadyCSS;function ye(e,t){return(0,pe.r)(e).getRootNode()===t}var be=s(70617);const ge="disable-upgrade",ve=e=>{for(;e;){const t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]};(0,X.o)((e=>{const t=(0,V.SH)(e);let s=ve(t);return class extends t{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return s.call(this).concat(ge)}_initializeProperties(){this.hasAttribute(ge)?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}attributeChangedCallback(e,t,s,n){e==ge?this.__isUpgradeDisabled&&null==s&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,(0,pe.r)(this).isConnected&&super.connectedCallback()):super.attributeChangedCallback(e,t,s,n)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}}));var Se=s(27425);const Ce="disable-upgrade";let we=window.ShadyCSS;const xe=(0,X.o)((e=>{const t=(0,J._)((0,V.SH)(e)),s=V.PP?t:le(t),n=ve(s),i={x:"pan-x",y:"pan-y",none:"none",all:"auto"};class r extends s{constructor(){super(),this.isAttached,this.__boundListeners,this._debouncers,this.__isUpgradeDisabled,this.__needsAttributesAtConnected,this._legacyForceObservedAttributes}static get importMeta(){return this.prototype.importMeta}created(){}__attributeReaction(e,t,s){(this.__dataAttributes&&this.__dataAttributes[e]||e===Ce)&&this.attributeChangedCallback(e,t,s,null)}setAttribute(e,t){if(be.legacyNoObservedAttributes&&!this._legacyForceObservedAttributes){const s=this.getAttribute(e);super.setAttribute(e,t),this.__attributeReaction(e,s,String(t))}else super.setAttribute(e,t)}removeAttribute(e){if(be.legacyNoObservedAttributes&&!this._legacyForceObservedAttributes){const t=this.getAttribute(e);super.removeAttribute(e),this.__attributeReaction(e,t,null)}else super.removeAttribute(e)}static get observedAttributes(){return be.legacyNoObservedAttributes&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],(0,Se.z2)(this.prototype)),this.__observedAttributes):n.call(this).concat(Ce)}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}connectedCallback(){this.__needsAttributesAtConnected&&this._takeAttributes(),this.__isUpgradeDisabled||(super.connectedCallback(),this.isAttached=!0,this.attached())}attached(){}disconnectedCallback(){this.__isUpgradeDisabled||(super.disconnectedCallback(),this.isAttached=!1,this.detached())}detached(){}attributeChangedCallback(e,t,s,n){t!==s&&(e==Ce?this.__isUpgradeDisabled&&null==s&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,pe.r)(this).isConnected&&this.connectedCallback()):(super.attributeChangedCallback(e,t,s,n),this.attributeChanged(e,t,s)))}attributeChanged(e,t,s){}_initializeProperties(){if(be.legacyOptimizations&&this.hasAttribute(Ce))this.__isUpgradeDisabled=!0;else{let e=Object.getPrototypeOf(this);e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))||(this._registered(),e.__hasRegisterFinished=!0),super._initializeProperties(),this.root=this,this.created(),be.legacyNoObservedAttributes&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0)),this._applyListeners()}}_takeAttributes(){const e=this.attributes;for(let t=0,s=e.length;t<s;t++){const s=e[t];this.__attributeReaction(s.name,null,s.value)}}_registered(){}ready(){this._ensureAttributes(),super.ready()}_ensureAttributes(){}_applyListeners(){}serialize(e){return this._serializeValue(e)}deserialize(e,t){return this._deserializeValue(e,t)}reflectPropertyToAttribute(e,t,s){this._propertyToAttribute(e,t,s)}serializeValueToAttribute(e,t,s){this._valueToNodeAttribute(s||this,e,t)}extend(e,t){if(!e||!t)return e||t;let s=Object.getOwnPropertyNames(t);for(let n,i=0;i<s.length&&(n=s[i]);i++){let s=Object.getOwnPropertyDescriptor(t,n);s&&Object.defineProperty(e,n,s)}return e}mixin(e,t){for(let s in t)e[s]=t[s];return e}chainObject(e,t){return e&&t&&e!==t&&(e.__proto__=t),e}instanceTemplate(e){let t=this.constructor._contentForTemplate(e);return document.importNode(t,!0)}fire(e,t,s){s=s||{},t=null==t?{}:t;let n=new Event(e,{bubbles:void 0===s.bubbles||s.bubbles,cancelable:Boolean(s.cancelable),composed:void 0===s.composed||s.composed});n.detail=t;let i=s.node||this;return(0,pe.r)(i).dispatchEvent(n),n}listen(e,t,s){e=e||this;let n=this.__boundListeners||(this.__boundListeners=new WeakMap),i=n.get(e);i||(i={},n.set(e,i));let r=t+s;i[r]||(i[r]=this._addMethodEventListenerToNode(e,t,s,this))}unlisten(e,t,s){e=e||this;let n=this.__boundListeners&&this.__boundListeners.get(e),i=t+s,r=n&&n[i];r&&(this._removeEventListenerFromNode(e,t,r),n[i]=null)}setScrollDirection(e,t){(0,he.BP)(t||this,i[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){let e=(0,pe.r)(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){const e=(0,ce.vz)(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return(0,ce.vz)(this).getEffectiveChildNodes()}queryDistributedElements(e){return(0,ce.vz)(this).queryDistributedElements(e)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter((function(e){return e.nodeType===Node.ELEMENT_NODE}))}getEffectiveTextContent(){let e=this.getEffectiveChildNodes(),t=[];for(let s,n=0;s=e[n];n++)s.nodeType!==Node.COMMENT_NODE&&t.push(s.textContent);return t.join("")}queryEffectiveChildren(e){let t=this.queryDistributedElements(e);return t&&t[0]}queryAllEffectiveChildren(e){return this.queryDistributedElements(e)}getContentChildNodes(e){let t=this.root.querySelector(e||"slot");return t?(0,ce.vz)(t).getDistributedNodes():[]}getContentChildren(e){return this.getContentChildNodes(e).filter((function(e){return e.nodeType===Node.ELEMENT_NODE}))}isLightDescendant(e){const t=this;return t!==e&&(0,pe.r)(t).contains(e)&&(0,pe.r)(t).getRootNode()===(0,pe.r)(e).getRootNode()}isLocalDescendant(e){return this.root===(0,pe.r)(e).getRootNode()}scopeSubtree(e,t=!1){return function(e,t=!1){if(!fe||!me)return null;if(!fe.handlesDynamicScoping)return null;const s=me.ScopingShim;if(!s)return null;const n=s.scopeForNode(e),i=(0,pe.r)(e).getRootNode(),r=e=>{if(!ye(e,i))return;const t=Array.from(fe.nativeMethods.querySelectorAll.call(e,"*"));t.push(e);for(let r=0;r<t.length;r++){const e=t[r];if(!ye(e,i))continue;const o=s.currentScopeForNode(e);o!==n&&(""!==o&&s.unscopeNode(e,o),s.scopeNode(e,n))}};if(r(e),t){const t=new MutationObserver((e=>{for(let t=0;t<e.length;t++){const s=e[t];for(let e=0;e<s.addedNodes.length;e++){const t=s.addedNodes[e];t.nodeType===Node.ELEMENT_NODE&&r(t)}}}));return t.observe(e,{childList:!0,subtree:!0}),t}return null}(e,t)}getComputedStyleValue(e){return we.getComputedStyleValue(this,e)}debounce(e,t,s){return this._debouncers=this._debouncers||{},this._debouncers[e]=de.dx.debounce(this._debouncers[e],s>0?ue.Wc.after(s):ue.YA,t.bind(this))}isDebouncerActive(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];return!(!t||!t.isActive())}flushDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.flush()}cancelDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.cancel()}async(e,t){return t>0?ue.Wc.run(e.bind(this),t):~ue.YA.run(e.bind(this))}cancelAsync(e){e<0?ue.YA.cancel(~e):ue.Wc.cancel(e)}create(e,t){let s=document.createElement(e);if(t)if(s.setProperties)s.setProperties(t);else for(let n in t)s[n]=t[n];return s}elementMatches(e,t){return(0,ce.Ku)(t||this,e)}toggleAttribute(e,t){let s=this;return 3===arguments.length&&(s=arguments[2]),1==arguments.length&&(t=!s.hasAttribute(e)),t?((0,pe.r)(s).setAttribute(e,""),!0):((0,pe.r)(s).removeAttribute(e),!1)}toggleClass(e,t,s){s=s||this,1==arguments.length&&(t=!s.classList.contains(e)),t?s.classList.add(e):s.classList.remove(e)}transform(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}translate3d(e,t,s,n){n=n||this,this.transform("translate3d("+e+","+t+","+s+")",n)}arrayDelete(e,t){let s;if(Array.isArray(e)){if(s=e.indexOf(t),s>=0)return e.splice(s,1)}else{if(s=(0,_e.U2)(this,e).indexOf(t),s>=0)return this.splice(e,s,1)}return null}_logger(e,t){switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":console[e](...t)}}_log(...e){this._logger("log",e)}_warn(...e){this._logger("warn",e)}_error(...e){this._logger("error",e)}_logf(e,...t){return["[%s::%s]",this.is,e,...t]}}return r.prototype.is="",r}))},98446:function(e,t,s){s.d(t,{k:()=>_});s(92745),s(84283),s(19423);var n=s(56670),i=s(70617);const r={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},o={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},l=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},o);function a(e,t,s,n){!function(e,t,s){const n=e._noAccessors,i=Object.getOwnPropertyNames(e);for(let r=0;r<i.length;r++){let o=i[r];if(!(o in s))if(n)t[o]=e[o];else{let s=Object.getOwnPropertyDescriptor(e,o);s&&(s.configurable=!0,Object.defineProperty(t,o,s))}}}(t,e,n);for(let i in r)t[i]&&(s[i]=s[i]||[],s[i].push(t[i]))}function c(e,t,s){t=t||[];for(let n=e.length-1;n>=0;n--){let i=e[n];i?Array.isArray(i)?c(i,t):t.indexOf(i)<0&&(!s||s.indexOf(i)<0)&&t.unshift(i):console.warn("behavior is null, check for missing or 404 import")}return t}function h(e,t){for(const s in t){const n=e[s],i=t[s];e[s]=!("value"in i)&&n&&"value"in n?Object.assign({value:n.value},i):i}}const d=(0,n.x)(HTMLElement);function u(e,t,s){let n;const r={};class d extends t{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(n)for(let e,t=0;t<n.length;t++)e=n[t],e.properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties);e.properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties),this._prepareTemplate()}else t._finalizeClass.call(this)}static get properties(){const t={};if(n)for(let e=0;e<n.length;e++)h(t,n[e].properties);return h(t,e.properties),t}static get observers(){let t=[];if(n)for(let e,s=0;s<n.length;s++)e=n[s],e.observers&&(t=t.concat(e.observers));return e.observers&&(t=t.concat(e.observers)),t}created(){super.created();const e=r.created;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}_registered(){const e=d.prototype;if(!e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))){const t=Object.getPrototypeOf(this);t===e&&(e.__hasRegisterFinished=!0),super._registered(),i.legacyOptimizations&&!Object.hasOwnProperty(e,"__hasCopiedProperties")&&(e.__hasCopiedProperties=!0,u(e));let s=r.beforeRegister;if(s)for(let e=0;e<s.length;e++)s[e].call(t);if(s=r.registered,s)for(let e=0;e<s.length;e++)s[e].call(t)}}_applyListeners(){super._applyListeners();const e=r.listeners;if(e)for(let t=0;t<e.length;t++){const s=e[t];if(s)for(let e in s)this._addMethodEventListenerToNode(this,e,s[e])}}_ensureAttributes(){const e=r.hostAttributes;if(e)for(let t=e.length-1;t>=0;t--){const s=e[t];for(let e in s)this._ensureAttribute(e,s[e])}super._ensureAttributes()}ready(){super.ready();let e=r.ready;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}attached(){super.attached();let e=r.attached;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}detached(){super.detached();let e=r.detached;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}attributeChanged(e,t,s){super.attributeChanged();let n=r.attributeChanged;if(n)for(let i=0;i<n.length;i++)n[i].call(this,e,t,s)}}if(s){Array.isArray(s)||(s=[s]);let e=t.prototype.behaviors;n=c(s,null,e),d.prototype.behaviors=e?e.concat(s):n}const u=t=>{n&&function(e,t,s){for(let n=0;n<t.length;n++)a(e,t[n],s,l)}(t,n,r),a(t,e,r,o)};return i.legacyOptimizations||u(d.prototype),d.generatedFrom=e,d}s(70176);const _=function e(t){let s;return s="function"==typeof t?t:e.Class(t),t._legacyForceObservedAttributes&&(s.prototype._legacyForceObservedAttributes=t._legacyForceObservedAttributes),customElements.define(s.is,s),s};_.Class=function(e,t){e||console.warn("Polymer.Class requires `info` argument");let s=t?t(d):d;return s=u(e,s,e.behaviors),s.is=s.prototype.is=e.is,s}},81626:function(e,t,s){s.d(t,{vz:()=>f,Ku:()=>h});s(92745),s(9359),s(31526),s(70176);var n=s(61284),i=(s(70617),s(71695),s(47021),s(52682)),r=s(49136);function o(e){return"slot"===e.localName}let l=class{static getFlattenedNodes(e){const t=(0,n.r)(e);if(o(e))return t.assignedNodes({flatten:!0});{const e=[];for(let s=0;s<t.childNodes.length;s++){const i=t.childNodes[s];if(o(i)){const t=i;e.push(...(0,n.r)(t).assignedNodes({flatten:!0}))}else e.push(i)}return e}}constructor(e,t){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=e,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){o(this._target)?this._listenSlots([this._target]):(0,n.r)(this._target).children&&(this._listenSlots((0,n.r)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,(e=>{this._processMutations(e)})):(this._nativeChildrenObserver=new MutationObserver((e=>{this._processMutations(e)})),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){o(this._target)?this._unlistenSlots([this._target]):(0,n.r)(this._target).children&&(this._unlistenSlots((0,n.r)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,r.YA.run((()=>this.flush())))}_processMutations(e){this._processSlotMutations(e),this.flush()}_processSlotMutations(e){if(e)for(let t=0;t<e.length;t++){let s=e[t];s.addedNodes&&this._listenSlots(s.addedNodes),s.removedNodes&&this._unlistenSlots(s.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;let e={target:this._target,addedNodes:[],removedNodes:[]},t=this.constructor.getFlattenedNodes(this._target),s=(0,i.c)(t,this._effectiveNodes);for(let i,r=0;r<s.length&&(i=s[r]);r++)for(let t,s=0;s<i.removed.length&&(t=i.removed[s]);s++)e.removedNodes.push(t);for(let i,r=0;r<s.length&&(i=s[r]);r++)for(let s=i.index;s<i.index+i.addedCount;s++)e.addedNodes.push(t[s]);this._effectiveNodes=t;let n=!1;return(e.addedNodes.length||e.removedNodes.length)&&(n=!0,this.callback.call(this._target,e)),n}_listenSlots(e){for(let t=0;t<e.length;t++){let s=e[t];o(s)&&s.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(e){for(let t=0;t<e.length;t++){let s=e[t];o(s)&&s.removeEventListener("slotchange",this._boundSchedule)}}};s(93605),s(46682);const a=Element.prototype,c=a.matches||a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector,h=function(e,t){return c.call(e,t)};class d{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new l(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if((0,n.r)(this.node).contains(e))return!0;let t=e,s=e.ownerDocument;for(;t&&t!==s&&t!==this.node;)t=(0,n.r)(t).parentNode||(0,n.r)(t).host;return t===this.node}getOwnerRoot(){return(0,n.r)(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?(0,n.r)(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let e=[],t=(0,n.r)(this.node).assignedSlot;for(;t;)e.push(t),t=(0,n.r)(t).assignedSlot;return e}importNode(e,t){let s=this.node instanceof Document?this.node:this.node.ownerDocument;return(0,n.r)(s).importNode(e,t)}getEffectiveChildNodes(){return l.getFlattenedNodes(this.node)}queryDistributedElements(e){let t=this.getEffectiveChildNodes(),s=[];for(let n,i=0,r=t.length;i<r&&(n=t[i]);i++)n.nodeType===Node.ELEMENT_NODE&&h(n,e)&&s.push(n);return s}get activeElement(){let e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function u(e,t){for(let s=0;s<t.length;s++){let n=t[s];Object.defineProperty(e,n,{get:function(){return this.node[n]},configurable:!0})}}class _{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}d.prototype.cloneNode,d.prototype.appendChild,d.prototype.insertBefore,d.prototype.removeChild,d.prototype.replaceChild,d.prototype.setAttribute,d.prototype.removeAttribute,d.prototype.querySelector,d.prototype.querySelectorAll,d.prototype.parentNode,d.prototype.firstChild,d.prototype.lastChild,d.prototype.nextSibling,d.prototype.previousSibling,d.prototype.firstElementChild,d.prototype.lastElementChild,d.prototype.nextElementSibling,d.prototype.previousElementSibling,d.prototype.childNodes,d.prototype.children,d.prototype.classList,d.prototype.textContent,d.prototype.innerHTML;let p=d;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class e extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(d.prototype).forEach((t=>{"activeElement"!=t&&(e.prototype[t]=d.prototype[t])})),u(e.prototype,["classList"]),p=e,Object.defineProperties(_.prototype,{localTarget:{get(){const e=this.event.currentTarget,t=e&&f(e).getOwnerRoot(),s=this.path;for(let n=0;n<s.length;n++){const e=s[n];if(f(e).getOwnerRoot()===t)return e}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else!function(e,t){for(let s=0;s<t.length;s++){let n=t[s];e[n]=function(){return this.node[n].apply(this.node,arguments)}}}(d.prototype,["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll","attachShadow"]),u(d.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList","shadowRoot"]),function(e,t){for(let s=0;s<t.length;s++){let n=t[s];Object.defineProperty(e,n,{get:function(){return this.node[n]},set:function(e){this.node[n]=e},configurable:!0})}}(d.prototype,["textContent","innerHTML","className"]);const f=function(e){if((e=e||document)instanceof p)return e;if(e instanceof _)return e;let t=e.__domApi;return t||(t=e instanceof Event?new _(e):new p(e),e.__domApi=t),t}},82460:function(e,t,s){s.d(t,{_:()=>r});s(70176);var n=s(19883),i=s(90832);const r=(0,n.o)((e=>class extends e{_addEventListenerToNode(e,t,s){(0,i.NH)(e,t,s)||super._addEventListenerToNode(e,t,s)}_removeEventListenerFromNode(e,t,s){(0,i.ys)(e,t,s)||super._removeEventListenerFromNode(e,t,s)}}))},52682:function(e,t,s){s.d(t,{c:()=>c});s(92745),s(61495),s(70176);function n(e,t,s){return{index:e,removed:t,addedCount:s}}const i=0,r=1,o=2,l=3;function a(e,t,s,a,c,d){let u,_=0,p=0,f=Math.min(s-t,d-c);if(0==t&&0==c&&(_=function(e,t,s){for(let n=0;n<s;n++)if(!h(e[n],t[n]))return n;return s}(e,a,f)),s==e.length&&d==a.length&&(p=function(e,t,s){let n=e.length,i=t.length,r=0;for(;r<s&&h(e[--n],t[--i]);)r++;return r}(e,a,f-_)),c+=_,d-=p,(s-=p)-(t+=_)==0&&d-c==0)return[];if(t==s){for(u=n(t,[],0);c<d;)u.removed.push(a[c++]);return[u]}if(c==d)return[n(t,[],s-t)];let m=function(e){let t=e.length-1,s=e[0].length-1,n=e[t][s],a=[];for(;t>0||s>0;){if(0==t){a.push(o),s--;continue}if(0==s){a.push(l),t--;continue}let c,h=e[t-1][s-1],d=e[t-1][s],u=e[t][s-1];c=d<u?d<h?d:h:u<h?u:h,c==h?(h==n?a.push(i):(a.push(r),n=h),t--,s--):c==d?(a.push(l),t--,n=d):(a.push(o),s--,n=u)}return a.reverse(),a}(function(e,t,s,n,i,r){let o=r-i+1,l=s-t+1,a=new Array(o);for(let c=0;c<o;c++)a[c]=new Array(l),a[c][0]=c;for(let c=0;c<l;c++)a[0][c]=c;for(let c=1;c<o;c++)for(let s=1;s<l;s++)if(h(e[t+s-1],n[i+c-1]))a[c][s]=a[c-1][s-1];else{let e=a[c-1][s]+1,t=a[c][s-1]+1;a[c][s]=e<t?e:t}return a}(e,t,s,a,c,d));u=void 0;let y=[],b=t,g=c;for(let h=0;h<m.length;h++)switch(m[h]){case i:u&&(y.push(u),u=void 0),b++,g++;break;case r:u||(u=n(b,[],0)),u.addedCount++,b++,u.removed.push(a[g]),g++;break;case o:u||(u=n(b,[],0)),u.addedCount++,b++;break;case l:u||(u=n(b,[],0)),u.removed.push(a[g]),g++}return u&&y.push(u),y}function c(e,t){return a(e,0,e.length,t,0,t.length)}function h(e,t){return e===t}},46682:function(e,t,s){s.d(t,{Ex:()=>r,Jk:()=>o,dx:()=>n});s(71695),s(9359),s(31526),s(92519),s(42179),s(89256),s(24931),s(88463),s(57449),s(19814),s(47021),s(70176),s(19883),s(49136);class n{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run((()=>{this._timer=null,i.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),i.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(e,t,s){return e instanceof n?e._cancelAsync():e=new n,e.setConfig(t,s),e}}let i=new Set;const r=function(e){i.add(e)},o=function(){const e=Boolean(i.size);return i.forEach((e=>{try{e.flush()}catch(t){setTimeout((()=>{throw t}))}})),e}},93605:function(e,t,s){s.d(t,{E:()=>n.Ex,y:()=>i});s(70176);var n=s(46682);const i=function(){let e,t;do{e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=(0,n.Jk)()}while(e||t)}},90832:function(e,t,s){s.d(t,{BP:()=>L,NH:()=>D,ys:()=>M});s(92745),s(19134),s(44495),s(70176);var n=s(49136),i=s(46682),r=s(70617),o=s(61284);let l="string"==typeof document.head.style.touchAction,a="__polymerGestures",c="__polymerGesturesHandled",h="__polymerGesturesTouchAction",d=["mousedown","mousemove","mouseup","click"],u=[0,1,4,2],_=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function p(e){return d.indexOf(e)>-1}let f=!1;function m(e){if(!p(e)&&"touchend"!==e)return l&&f&&r.passiveTouchGestures?{passive:!0}:void 0}!function(){try{let e=Object.defineProperty({},"passive",{get(){f=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}();let y=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const b=[],g={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},v={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function S(e){let t=Array.prototype.slice.call(e.labels||[]);if(!t.length){t=[];try{let s=e.getRootNode();if(e.id){let n=s.querySelectorAll(`label[for = '${e.id}']`);for(let e=0;e<n.length;e++)t.push(n[e])}}catch(s){}}return t}let C=function(e){let t=e.sourceCapabilities;var s;if((!t||t.firesTouchEvents)&&(e[c]={skip:!0},"click"===e.type)){let t=!1,n=k(e);for(let e=0;e<n.length;e++){if(n[e].nodeType===Node.ELEMENT_NODE)if("label"===n[e].localName)b.push(n[e]);else if(s=n[e],g[s.localName]){let s=S(n[e]);for(let e=0;e<s.length;e++)t=t||b.indexOf(s[e])>-1}if(n[e]===E.mouse.target)return}if(t)return;e.preventDefault(),e.stopPropagation()}};function w(e){let t=y?["click"]:d;for(let s,n=0;n<t.length;n++)s=t[n],e?(b.length=0,document.addEventListener(s,C,!0)):document.removeEventListener(s,C,!0)}function x(e){let t=e.type;if(!p(t))return!1;if("mousemove"===t){let t=void 0===e.buttons?1:e.buttons;return e instanceof window.MouseEvent&&!_&&(t=u[e.which]||0),Boolean(1&t)}return 0===(void 0===e.button?0:e.button)}let E={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function A(e,t,s){e.movefn=t,e.upfn=s,document.addEventListener("mousemove",t),document.addEventListener("mouseup",s)}function I(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}r.cancelSyntheticClickEvents&&document.addEventListener("touchend",(function(e){if(!r.cancelSyntheticClickEvents)return;E.mouse.mouseIgnoreJob||w(!0),E.mouse.target=k(e)[0],E.mouse.mouseIgnoreJob=i.dx.debounce(E.mouse.mouseIgnoreJob,n.Wc.after(2500),(function(){w(),E.mouse.target=null,E.mouse.mouseIgnoreJob=null}))}),!!f&&{passive:!0});const k=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],P={},T=[];function O(e){const t=k(e);return t.length>0?t[0]:e.target}function N(e){let t,s=e.type,n=e.currentTarget[a];if(!n)return;let i=n[s];if(i){if(!e[c]&&(e[c]={},"touch"===s.slice(0,5))){let t=e.changedTouches[0];if("touchstart"===s&&1===e.touches.length&&(E.touch.id=t.identifier),E.touch.id!==t.identifier)return;l||"touchstart"!==s&&"touchmove"!==s||function(e){let t=e.changedTouches[0],s=e.type;if("touchstart"===s)E.touch.x=t.clientX,E.touch.y=t.clientY,E.touch.scrollDecided=!1;else if("touchmove"===s){if(E.touch.scrollDecided)return;E.touch.scrollDecided=!0;let s=function(e){let t="auto",s=k(e);for(let n,i=0;i<s.length;i++)if(n=s[i],n[h]){t=n[h];break}return t}(e),n=!1,i=Math.abs(E.touch.x-t.clientX),r=Math.abs(E.touch.y-t.clientY);e.cancelable&&("none"===s?n=!0:"pan-x"===s?n=r>i:"pan-y"===s&&(n=i>r)),n?e.preventDefault():H("track")}}(e)}if(t=e[c],!t.skip){for(let s,n=0;n<T.length;n++)s=T[n],i[s.name]&&!t[s.name]&&s.flow&&s.flow.start.indexOf(e.type)>-1&&s.reset&&s.reset();for(let n,r=0;r<T.length;r++)n=T[r],i[n.name]&&!t[n.name]&&(t[n.name]=!0,n[s](e))}}}function D(e,t,s){return!!P[t]&&(function(e,t,s){let n=P[t],i=n.deps,r=n.name,o=e[a];o||(e[a]=o={});for(let l,a,c=0;c<i.length;c++)l=i[c],y&&p(l)&&"click"!==l||(a=o[l],a||(o[l]=a={_count:0}),0===a._count&&e.addEventListener(l,N,m(l)),a[r]=(a[r]||0)+1,a._count=(a._count||0)+1);e.addEventListener(t,s),n.touchAction&&L(e,n.touchAction)}(e,t,s),!0)}function M(e,t,s){return!!P[t]&&(function(e,t,s){let n=P[t],i=n.deps,r=n.name,o=e[a];if(o)for(let l,a,c=0;c<i.length;c++)l=i[c],a=o[l],a&&a[r]&&(a[r]=(a[r]||1)-1,a._count=(a._count||1)-1,0===a._count&&e.removeEventListener(l,N,m(l)));e.removeEventListener(t,s)}(e,t,s),!0)}function F(e){T.push(e);for(let t=0;t<e.emits.length;t++)P[e.emits[t]]=e}function L(e,t){l&&e instanceof HTMLElement&&n.YA.run((()=>{e.style.touchAction=t})),e[h]=t}function R(e,t,s){let n=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(n.detail=s,(0,o.r)(e).dispatchEvent(n),n.defaultPrevented){let e=s.preventer||s.sourceEvent;e&&e.preventDefault&&e.preventDefault()}}function H(e){let t=function(e){for(let t,s=0;s<T.length;s++){t=T[s];for(let s,n=0;n<t.emits.length;n++)if(s=t.emits[n],s===e)return t}return null}(e);t.info&&(t.info.prevent=!0)}function B(e,t,s,n){t&&R(t,e,{x:s.clientX,y:s.clientY,sourceEvent:s,preventer:n,prevent:function(e){return H(e)}})}function K(e,t,s){if(e.prevent)return!1;if(e.started)return!0;let n=Math.abs(e.x-t),i=Math.abs(e.y-s);return n>=5||i>=5}function j(e,t,s){if(!t)return;let n,i=e.moves[e.moves.length-2],r=e.moves[e.moves.length-1],o=r.x-e.x,l=r.y-e.y,a=0;i&&(n=r.x-i.x,a=r.y-i.y),R(t,"track",{state:e.state,x:s.clientX,y:s.clientY,dx:o,dy:l,ddx:n,ddy:a,sourceEvent:s,hover:function(){return function(e,t){let s=document.elementFromPoint(e,t),n=s;for(;n&&n.shadowRoot&&!window.ShadyDOM;){let i=n;if(n=n.shadowRoot.elementFromPoint(e,t),i===n)break;n&&(s=n)}return s}(s.clientX,s.clientY)}})}function z(e,t,s){let n=Math.abs(t.clientX-e.x),i=Math.abs(t.clientY-e.y),r=O(s||t);!r||v[r.localName]&&r.hasAttribute("disabled")||(isNaN(n)||isNaN(i)||n<=25&&i<=25||function(e){if("click"===e.type){if(0===e.detail)return!0;let t=O(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;let s=t.getBoundingClientRect(),n=e.pageX,i=e.pageY;return!(n>=s.left&&n<=s.right&&i>=s.top&&i<=s.bottom)}return!1}(t))&&(e.prevent||R(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:s}))}F({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){I(this.info)},mousedown:function(e){if(!x(e))return;let t=O(e),s=this;A(this.info,(function(e){x(e)||(B("up",t,e),I(s.info))}),(function(e){x(e)&&B("up",t,e),I(s.info)})),B("down",t,e)},touchstart:function(e){B("down",O(e),e.changedTouches[0],e)},touchend:function(e){B("up",O(e),e.changedTouches[0],e)}}),F({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,I(this.info)},mousedown:function(e){if(!x(e))return;let t=O(e),s=this,n=function(e){let n=e.clientX,i=e.clientY;K(s.info,n,i)&&(s.info.state=s.info.started?"mouseup"===e.type?"end":"track":"start","start"===s.info.state&&H("tap"),s.info.addMove({x:n,y:i}),x(e)||(s.info.state="end",I(s.info)),t&&j(s.info,t,e),s.info.started=!0)};A(this.info,n,(function(e){s.info.started&&n(e),I(s.info)})),this.info.x=e.clientX,this.info.y=e.clientY},touchstart:function(e){let t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove:function(e){let t=O(e),s=e.changedTouches[0],n=s.clientX,i=s.clientY;K(this.info,n,i)&&("start"===this.info.state&&H("tap"),this.info.addMove({x:n,y:i}),j(this.info,t,s),this.info.state="track",this.info.started=!0)},touchend:function(e){let t=O(e),s=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:s.clientX,y:s.clientY}),j(this.info,t,s))}}),F({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){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend:function(e){z(this.info,e.changedTouches[0],e)}})},95908:function(e,t,s){s.d(t,{XY:()=>G});var n=s(56670),i=(s(98446),s(52247),s(92745),s(19423),s(70176),s(34981)),r=s(19883);function o(e,t,s,n,i){let r;i&&(r="object"==typeof s&&null!==s,r&&(n=e.__dataTemp[t]));let o=n!==s&&(n==n||s==s);return r&&o&&(e.__dataTemp[t]=s),o}const l=(0,r.o)((e=>class extends e{_shouldPropertyChange(e,t,s){return o(this,e,t,s,!0)}})),a=(0,r.o)((e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,s){return o(this,e,t,s,this.mutableData)}}));l._mutablePropertyChange=o;var c=s(70617),h=s(61284);let d=null;function u(){return d}u.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:u,writable:!0}});const _=(0,i.q)(u),p=l(_);const f=(0,i.q)(class{});function m(e,t){for(let s=0;s<t.length;s++){let n=t[s];if(Boolean(e)!=Boolean(n.__hideTemplateChildren__))if(n.nodeType===Node.TEXT_NODE)e?(n.__polymerTextContent__=n.textContent,n.textContent=""):n.textContent=n.__polymerTextContent__;else if("slot"===n.localName)if(e)n.__polymerReplaced__=document.createComment("hidden-slot"),(0,h.r)((0,h.r)(n).parentNode).replaceChild(n.__polymerReplaced__,n);else{const e=n.__polymerReplaced__;e&&(0,h.r)((0,h.r)(e).parentNode).replaceChild(n,e)}else n.style&&(e?(n.__polymerDisplay__=n.style.display,n.style.display="none"):n.style.display=n.__polymerDisplay__);n.__hideTemplateChildren__=e,n._showHideChildren&&n._showHideChildren(e)}}class y extends f{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let n=this.root.firstChild;n;n=n.nextSibling)t.push(n),n.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let s=this.__templatizeOptions;(e&&s.instanceProps||!s.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,s){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,(e=>{e.model=this,s(e)}));else{let n=this.__dataHost.__dataHost;n&&n._addEventListenerToNode(e,t,s)}}_showHideChildren(e){m(e,this.children)}_setUnmanagedPropertyToNode(e,t,s){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=s:super._setUnmanagedPropertyToNode(e,t,s)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do{e=e.__dataHost.__dataHost}while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}y.prototype.__dataHost,y.prototype.__templatizeOptions,y.prototype._methodHost,y.prototype.__templatizeOwner,y.prototype.__hostProps;const b=l(y);function g(e){let t=e.__dataHost;return t&&t._methodHost||t}function v(e,t,s){let n=s.mutableData?b:y;x.mixin&&(n=x.mixin(n));let i=class extends n{};return i.prototype.__templatizeOptions=s,i.prototype._bindTemplate(e),function(e,t,s,n){let i=s.hostProps||{};for(let r in n.instanceProps){delete i[r];let t=n.notifyInstanceProp;t&&e.prototype._addPropertyEffect(r,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:w(r,t)})}if(n.forwardHostProp&&t.__dataHost)for(let r in i)s.hasHostProps||(s.hasHostProps=!0),e.prototype._addPropertyEffect(r,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,s){e.__dataHost._setPendingPropertyOrPath("_host_"+t,s[t],!0,!0)}})}(i,e,t,s),i}function S(e,t,s,n){let i=s.forwardHostProp;if(i&&t.hasHostProps){const l="template"==e.localName;let a=t.templatizeTemplateClass;if(!a){if(l){let e=s.mutableData?p:_;class n extends e{}a=t.templatizeTemplateClass=n}else{const s=e.constructor;class n extends s{}a=t.templatizeTemplateClass=n}let r=t.hostProps;for(let e in r)a.prototype._addPropertyEffect("_host_"+e,a.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:C(e,i)}),a.prototype._createNotifyingProperty("_host_"+e);c.legacyWarnings&&n&&function(e,t,s){const n=s.constructor._properties,{propertyEffects:i}=e,{instanceProps:r}=t;for(let o in i)if(!(n[o]||r&&r[o])){const e=i[o];for(let t=0;t<e.length;t++){const{part:s}=e[t].info;if(!s.signature||!s.signature.static){console.warn(`Property '${o}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}(t,s,n)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),l)o=a,d=r=e,Object.setPrototypeOf(r,o.prototype),new o,d=null,e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,a.prototype);const s=t.hostProps;for(let t in s)if(t="_host_"+t,t in e){const s=e[t];delete e[t],e.__data[t]=s}}}var r,o}function C(e,t){return function(e,s,n){t.call(e.__templatizeOwner,s.substring(6),n[s])}}function w(e,t){return function(e,s,n){t.call(e.__templatizeOwner,e,s,n[s])}}function x(e,t,s){if(c.strictTemplatePolicy&&!g(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(s=s||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=t;let n=(t?t.constructor:y)._parseTemplate(e),i=n.templatizeInstanceClass;i||(i=v(e,n,s),n.templatizeInstanceClass=i);const r=g(e);S(e,n,s,r);let o=class extends i{};return o.prototype._methodHost=r,o.prototype.__dataHost=e,o.prototype.__templatizeOwner=t,o.prototype.__hostProps=n.hostProps,o}var E=s(82460);let A=!1;function I(){if(c.legacyOptimizations&&!c.useShadow){if(!A){A=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}const k=(0,E._)(a((0,i.q)(HTMLElement)));customElements.define("dom-bind",class extends k{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),c.strictTemplatePolicy)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,s,n){this.mutableData=!0}connectedCallback(){I()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){(0,h.r)((0,h.r)(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])}render(){let e;if(!this.__children){if(e=e||this.querySelector("template"),!e){let t=new MutationObserver((()=>{if(e=this.querySelector("template"),!e)throw new Error("dom-bind requires a <template> child");t.disconnect(),this.render()}));return void t.observe(this,{childList:!0})}this.root=this._stampTemplate(e),this.$=this.root.$,this.__children=[];for(let e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}});s(61893),s(9359),s(56475),s(23669),s(19134),s(97003);var P=s(93588),T=s(46682),O=s(93605),N=s(76147),D=s(49136);const M=a(P.H3);class F extends M{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!c.suppressTemplateNotifications,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),I()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=(0,h.r)((0,h.r)(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let e=new MutationObserver((()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()}));return e.observe(this,{childList:!0}),!1}let s={};s[this.as]=!0,s[this.indexAs]=!0,s[this.itemsIndexAs]=!0,this.__ctor=x(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:s,forwardHostProp:function(e,t){let s=this.__instances;for(let n,i=0;i<s.length&&(n=s[i]);i++)n.forwardHostProp(e,t)},notifyInstanceProp:function(e,t,s){if((0,N.wB)(this.as,t)){let n=e[this.itemsIndexAs];t==this.as&&(this.items[n]=s);let i=(0,N.Iu)(this.as,`${JSCompiler_renameProperty("items",this)}.${n}`,t);this.notifyPath(i,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if("string"==typeof e){let t=e,s=this.__getMethodHost();return function(){return s[t].apply(s,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn)if(e){if(this.__observePaths){let t=this.__observePaths;for(let s=0;s<t.length;s++)0===e.indexOf(t[s])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=T.dx.debounce(this.__renderDebouncer,t>0?D.Wc.after(t):D.YA,e.bind(this)),(0,O.E)(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),(0,O.y)()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),s=this.__calculateLimit(t.length);this.__updateInstances(e,s,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame((()=>{this.__chunkingId=null,this.__continueChunking()}))),this._setRenderedItemCount(this.__instances.length),c.suppressTemplateNotifications&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let s=0;s<e.length;s++)t[s]=s;return this.__filterFn&&(t=t.filter(((t,s,n)=>this.__filterFn(e[t],s,n)))),this.__sortFn&&t.sort(((t,s)=>this.__sortFn(e[t],e[s]))),t}__calculateLimit(e){let t=e;const s=this.__instances.length;if(this.initialCount){let n;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),n=Math.max(t-s,0),this.__chunkCount=n||1):(n=Math.min(Math.max(e-s,0),this.__chunkCount),t=Math.min(s+n,e)),this.__shouldMeasureChunk=n===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,s){const n=this.__itemsIdxToInstIdx={};let i;for(i=0;i<t;i++){let t=this.__instances[i],r=s[i],o=e[r];n[r]=i,t?(t._setPendingProperty(this.as,o),t._setPendingProperty(this.indexAs,i),t._setPendingProperty(this.itemsIndexAs,r),t._flushProperties()):this.__insertInstance(o,i,r)}for(let r=this.__instances.length-1;r>=i;r--)this.__detachAndRemoveInstance(r)}__detachInstance(e){let t=this.__instances[e];const s=(0,h.r)(t.root);for(let n=0;n<t.children.length;n++){let e=t.children[n];s.appendChild(e)}return t}__attachInstance(e,t){let s=this.__instances[e];t.insertBefore(s.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,s){let n={};return n[this.as]=e,n[this.indexAs]=t,n[this.itemsIndexAs]=s,new this.__ctor(n)}__insertInstance(e,t,s){const n=this.__stampInstance(e,t,s);let i=this.__instances[t+1],r=i?i.children[0]:this;return(0,h.r)((0,h.r)(this).parentNode).insertBefore(n.root,r),this.__instances[t]=n,n}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let s=e.slice(6),n=s.indexOf("."),i=n<0?s:s.substring(0,n);if(i==parseInt(i,10)){let e=n<0?"":s.substring(n+1);this.__handleObservedPaths(e);let r=this.__itemsIdxToInstIdx[i],o=this.__instances[r];if(o){let s=this.as+(e?"."+e:"");o._setPendingPropertyOrPath(s,t,!1,!0),o._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return function(e,t){let s;for(;t;)if(s=t.__dataHost?t:t.__templatizeInstance){if(s.__dataHost==e)return s;t=s.__dataHost}else t=(0,h.r)(t).parentNode;return null}(this.template,e)}}customElements.define(F.is,F);class L extends P.H3{static get is(){return"dom-if"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}constructor(){super(),this.__renderDebouncer=null,this._lastIf=!1,this.__hideTemplateChildren__=!1,this.__template,this._templateInfo}__debounceRender(){this.__renderDebouncer=T.dx.debounce(this.__renderDebouncer,D.YA,(()=>this.__render())),(0,O.E)(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();const e=(0,h.r)(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,h.r)(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),I()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){const e=this;let t=e._templateInfo?e:(0,h.r)(e).querySelector("template");if(!t){let e=new MutationObserver((()=>{if(!(0,h.r)(this).querySelector("template"))throw new Error("dom-if requires a <template> child");e.disconnect(),this.__render()}));return e.observe(this,{childList:!0}),!1}this.__template=t}return!0}__ensureInstance(){let e=(0,h.r)(this).parentNode;if(this.__hasInstance()){let t=this.__getInstanceNodes();if(t&&t.length){if((0,h.r)(this).previousSibling!==t[t.length-1])for(let s,n=0;n<t.length&&(s=t[n]);n++)(0,h.r)(e).insertBefore(s,this)}}else{if(!e)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(e)}return!0}render(){(0,O.y)()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),c.suppressTemplateNotifications&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}__hasInstance(){}__getInstanceNodes(){}__createAndInsertInstance(e){}__teardownInstance(){}_showHideChildren(){}}const R=c.fastDomIf?class extends L{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){const t=this.__dataHost||this;if(c.strictTemplatePolicy&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");const s=t._bindTemplate(this.__template,!0);s.runEffects=(e,t,s)=>{let n=this.__syncInfo;if(this.if)n&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(n.changedProps,t)),e(t,s);else if(this.__instance)if(n||(n=this.__syncInfo={runEffects:e,changedProps:{}}),s)for(const i in t){const e=(0,N.Jz)(i);n.changedProps[e]=this.__dataHost[e]}else Object.assign(n.changedProps,t)},this.__instance=t._stampTemplate(this.__template,s),(0,h.r)(e).insertBefore(this.__instance,this)}__syncHostProperties(){const e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))}__teardownInstance(){const e=this.__dataHost||this;this.__instance&&(e._removeBoundDom(this.__instance),this.__instance=null,this.__syncInfo=null)}_showHideChildren(){const e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,m(e,this.__instance.templateInfo.childNodes)),e||this.__syncHostProperties()}}:class extends L{constructor(){super(),this.__ctor=null,this.__instance=null,this.__invalidProps=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.children}__createAndInsertInstance(e){this.__ctor||(this.__ctor=x(this.__template,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[(0,N.Jz)(e)]=!0))}})),this.__instance=new this.__ctor,(0,h.r)(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){let e=this.__instance.children;if(e&&e.length){let t=(0,h.r)(e[0]).parentNode;if(t){t=(0,h.r)(t);for(let s,n=0;n<e.length&&(s=e[n]);n++)t.removeChild(s)}}this.__invalidProps=null,this.__instance=null}}__syncHostProperties(){let e=this.__invalidProps;if(e){this.__invalidProps=null;for(let t in e)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}}_showHideChildren(){const e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,this.__instance._showHideChildren(e)),e||this.__syncHostProperties()}};customElements.define(R.is,R);s(71695),s(31526),s(47021);var H=s(52682),B=s(47632);let K=(0,r.o)((e=>{let t=(0,B.SH)(e);return class extends t{static get properties(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}static get observers(){return["__updateSelection(multi, items.*)"]}constructor(){super(),this.__lastItems=null,this.__lastMulti=null,this.__selectedMap=null}__updateSelection(e,t){let s=t.path;if(s==JSCompiler_renameProperty("items",this)){let s=t.base||[],n=this.__lastItems;if(e!==this.__lastMulti&&this.clearSelection(),n){let e=(0,H.c)(s,n);this.__applySplices(e)}this.__lastItems=s,this.__lastMulti=e}else if(t.path==`${JSCompiler_renameProperty("items",this)}.splices`)this.__applySplices(t.value.indexSplices);else{let e=s.slice(`${JSCompiler_renameProperty("items",this)}.`.length),t=parseInt(e,10);e.indexOf(".")<0&&e==t&&this.__deselectChangedIdx(t)}}__applySplices(e){let t=this.__selectedMap;for(let n=0;n<e.length;n++){let s=e[n];t.forEach(((e,n)=>{e<s.index||(e>=s.index+s.removed.length?t.set(n,e+s.addedCount-s.removed.length):t.set(n,-1))}));for(let e=0;e<s.addedCount;e++){let n=s.index+e;t.has(this.items[n])&&t.set(this.items[n],n)}}this.__updateLinks();let s=0;t.forEach(((e,n)=>{e<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),s,1):this.selected=this.selectedItem=null,t.delete(n)):s++}))}__updateLinks(){if(this.__dataLinkedPaths={},this.multi){let e=0;this.__selectedMap.forEach((t=>{t>=0&&this.linkPaths(`${JSCompiler_renameProperty("items",this)}.${t}`,`${JSCompiler_renameProperty("selected",this)}.${e++}`)}))}else this.__selectedMap.forEach((e=>{this.linkPaths(JSCompiler_renameProperty("selected",this),`${JSCompiler_renameProperty("items",this)}.${e}`),this.linkPaths(JSCompiler_renameProperty("selectedItem",this),`${JSCompiler_renameProperty("items",this)}.${e}`)}))}clearSelection(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}isSelected(e){return this.__selectedMap.has(e)}isIndexSelected(e){return this.isSelected(this.items[e])}__deselectChangedIdx(e){let t=this.__selectedIndexForItemIndex(e);if(t>=0){let e=0;this.__selectedMap.forEach(((s,n)=>{t==e++&&this.deselect(n)}))}}__selectedIndexForItemIndex(e){let t=this.__dataLinkedPaths[`${JSCompiler_renameProperty("items",this)}.${e}`];if(t)return parseInt(t.slice(`${JSCompiler_renameProperty("selected",this)}.`.length),10)}deselect(e){let t=this.__selectedMap.get(e);if(t>=0){let s;this.__selectedMap.delete(e),this.multi&&(s=this.__selectedIndexForItemIndex(t)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),s,1):this.selected=this.selectedItem=null}}deselectIndex(e){this.deselect(this.items[e])}select(e){this.selectIndex(this.items.indexOf(e))}selectIndex(e){let 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)}}}))(P.H3);class j extends K{static get is(){return"array-selector"}static get template(){return null}}customElements.define(j.is,j);var z=s(28804),U=s(66087),$=s(63931);const q=new z.ZP;window.ShadyCSS||(window.ShadyCSS={prepareTemplate(e,t,s){},prepareTemplateDom(e,t){},prepareTemplateStyles(e,t,s){},styleSubtree(e,t){q.processStyles(),(0,U.wW)(e,t)},styleElement(e){q.processStyles()},styleDocument(e){q.processStyles(),(0,U.wW)(document.body,e)},getComputedStyleValue(e,t){return(0,U.B7)(e,t)},flushCustomStyles(){},nativeCss:$.rd,nativeShadow:$.WA,cssBuild:$.Cp,disableRuntime:$.jF}),window.ShadyCSS.CustomStyleInterface=q;var Y=s(46068);const V="include",J=window.ShadyCSS.CustomStyleInterface;class W extends HTMLElement{constructor(){super(),this._style=null,J.addCustomStyle(this)}getStyle(){if(this._style)return this._style;const e=this.querySelector("style");if(!e)return null;this._style=e;const t=e.getAttribute(V);return t&&(e.removeAttribute(V),e.textContent=(0,Y.jv)(t)+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this),this._style}}let X;window.customElements.define("custom-style",W),X=l._mutablePropertyChange;s(77218);const G=(0,n.x)(HTMLElement).prototype},8787:function(e,t,s){s.d(t,{$T:()=>i,CN:()=>n,mA:()=>r});const n=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,i=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,r=/@media\s(.*)/},66087:function(e,t,s){s.d(t,{B7:()=>r,OH:()=>o,wW:()=>i});s(19134),s(5740),s(81804);var n=s(8787);function i(e,t){for(let s in t)null===s?e.style.removeProperty(s):e.style.setProperty(s,t[s])}function r(e,t){const s=window.getComputedStyle(e).getPropertyValue(t);return s?s.trim():""}function o(e){const t=n.$T.test(e)||n.CN.test(e);return n.$T.lastIndex=0,n.CN.lastIndex=0,t}},28804:function(e,t,s){s.d(t,{ZP:()=>d});s(92745),s(40251);let n,i=null,r=window.HTMLImports&&window.HTMLImports.whenReady||null;function o(e){requestAnimationFrame((function(){r?r(e):(i||(i=new Promise((e=>{n=e})),"complete"===document.readyState?n():document.addEventListener("readystatechange",(()=>{"complete"===document.readyState&&n()}))),i.then((function(){e&&e()})))}))}const l="__seenByShadyCSS",a="__shadyCSSCachedStyle";let c=null,h=null;class d{constructor(){this.customStyles=[],this.enqueued=!1,o((()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()}))}enqueueDocumentValidation(){!this.enqueued&&h&&(this.enqueued=!0,o(h))}addCustomStyle(e){e[l]||(e[l]=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}getStyleForCustomStyle(e){if(e[a])return e[a];let t;return t=e.getStyle?e.getStyle():e,t}processStyles(){const e=this.customStyles;for(let t=0;t<e.length;t++){const s=e[t];if(s[a])continue;const n=this.getStyleForCustomStyle(s);if(n){const e=n.__appliedElement||n;c&&c(e),s[a]=e}}return e}}d.prototype.addCustomStyle=d.prototype.addCustomStyle,d.prototype.getStyleForCustomStyle=d.prototype.getStyleForCustomStyle,d.prototype.processStyles=d.prototype.processStyles,Object.defineProperties(d.prototype,{transformCallback:{get(){return c},set(e){c=e}},validateCallback:{get(){return h},set(e){let t=!1;h||(t=!0),h=e,t&&this.enqueueDocumentValidation()}}})},63931:function(e,t,s){s.d(t,{Cp:()=>r,WA:()=>n,jF:()=>l,rd:()=>a});s(19134),s(32517),s(44495);const n=!(window.ShadyDOM&&window.ShadyDOM.inUse);let i,r;function o(e){i=(!e||!e.shimcssproperties)&&(n||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(r=window.ShadyCSS.cssBuild);const l=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?i=window.ShadyCSS.nativeCss:window.ShadyCSS?(o(window.ShadyCSS),window.ShadyCSS=void 0):o(window.WebComponents&&window.WebComponents.flags);const a=i}}]);
//# sourceMappingURL=77570.6b6fc3cd91b06e5e.js.map