UNPKG

@alaskaairux/auro-button

Version:
186 lines 60.2 kB
/** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ const t=new WeakMap,e=e=>(...o)=>{const r=e(...o);return t.set(r,!0),r},o=e=>"function"==typeof e&&t.has(e),r="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,n=(t,e,o=null)=>{for(;e!==o;){const o=e.nextSibling;t.removeChild(e),e=o}},i={},a={},s=`{{lit-${String(Math.random()).slice(2)}}}`,l=`\x3c!--${s}--\x3e`,c=new RegExp(`${s}|${l}`);class u{constructor(t,e){this.parts=[],this.element=e;const o=[],r=[],n=document.createTreeWalker(e.content,133,null,!1);let i=0,a=-1,l=0;const{strings:u,values:{length:h}}=t;for(;l<h;){const t=n.nextNode();if(null!==t){if(a++,1===t.nodeType){if(t.hasAttributes()){const e=t.attributes,{length:o}=e;let r=0;for(let t=0;t<o;t++)d(e[t].name,"$lit$")&&r++;for(;r-- >0;){const e=u[l],o=f.exec(e)[2],r=o.toLowerCase()+"$lit$",n=t.getAttribute(r);t.removeAttribute(r);const i=n.split(c);this.parts.push({type:"attribute",index:a,name:o,strings:i}),l+=i.length-1}}"TEMPLATE"===t.tagName&&(r.push(t),n.currentNode=t.content)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(s)>=0){const r=t.parentNode,n=e.split(c),i=n.length-1;for(let e=0;e<i;e++){let o,i=n[e];if(""===i)o=p();else{const t=f.exec(i);null!==t&&d(t[2],"$lit$")&&(i=i.slice(0,t.index)+t[1]+t[2].slice(0,-"$lit$".length)+t[3]),o=document.createTextNode(i)}r.insertBefore(o,t),this.parts.push({type:"node",index:++a})}""===n[i]?(r.insertBefore(p(),t),o.push(t)):t.data=n[i],l+=i}}else if(8===t.nodeType)if(t.data===s){const e=t.parentNode;null!==t.previousSibling&&a!==i||(a++,e.insertBefore(p(),t)),i=a,this.parts.push({type:"node",index:a}),null===t.nextSibling?t.data="":(o.push(t),a--),l++}else{let e=-1;for(;-1!==(e=t.data.indexOf(s,e+1));)this.parts.push({type:"node",index:-1}),l++}}else n.currentNode=r.pop()}for(const t of o)t.parentNode.removeChild(t)}}const d=(t,e)=>{const o=t.length-e.length;return o>=0&&t.slice(o)===e},h=t=>-1!==t.index,p=()=>document.createComment(""),f=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/; /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ class b{constructor(t,e,o){this.__parts=[],this.template=t,this.processor=e,this.options=o}update(t){let e=0;for(const o of this.__parts)void 0!==o&&o.setValue(t[e]),e++;for(const t of this.__parts)void 0!==t&&t.commit()}_clone(){const t=r?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),e=[],o=this.template.parts,n=document.createTreeWalker(t,133,null,!1);let i,a=0,s=0,l=n.nextNode();for(;a<o.length;)if(i=o[a],h(i)){for(;s<i.index;)s++,"TEMPLATE"===l.nodeName&&(e.push(l),n.currentNode=l.content),null===(l=n.nextNode())&&(n.currentNode=e.pop(),l=n.nextNode());if("node"===i.type){const t=this.processor.handleTextExpression(this.options);t.insertAfterNode(l.previousSibling),this.__parts.push(t)}else this.__parts.push(...this.processor.handleAttributeExpressions(l,i.name,i.strings,this.options));a++}else this.__parts.push(void 0),a++;return r&&(document.adoptNode(t),customElements.upgrade(t)),t}} /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */const m=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:t=>t}),g=` ${s} `;class v{constructor(t,e,o,r){this.strings=t,this.values=e,this.type=o,this.processor=r}getHTML(){const t=this.strings.length-1;let e="",o=!1;for(let r=0;r<t;r++){const t=this.strings[r],n=t.lastIndexOf("\x3c!--");o=(n>-1||o)&&-1===t.indexOf("--\x3e",n+1);const i=f.exec(t);e+=null===i?t+(o?g:l):t.substr(0,i.index)+i[1]+i[2]+"$lit$"+i[3]+s}return e+=this.strings[t],e}getTemplateElement(){const t=document.createElement("template");let e=this.getHTML();return void 0!==m&&(e=m.createHTML(e)),t.innerHTML=e,t}} /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */const y=t=>null===t||!("object"==typeof t||"function"==typeof t),x=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class w{constructor(t,e,o){this.dirty=!0,this.element=t,this.name=e,this.strings=o,this.parts=[];for(let t=0;t<o.length-1;t++)this.parts[t]=this._createPart()}_createPart(){return new _(this)}_getValue(){const t=this.strings,e=t.length-1,o=this.parts;if(1===e&&""===t[0]&&""===t[1]){const t=o[0].value;if("symbol"==typeof t)return String(t);if("string"==typeof t||!x(t))return t}let r="";for(let n=0;n<e;n++){r+=t[n];const e=o[n];if(void 0!==e){const t=e.value;if(y(t)||!x(t))r+="string"==typeof t?t:String(t);else for(const e of t)r+="string"==typeof e?e:String(e)}}return r+=t[e],r}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class _{constructor(t){this.value=void 0,this.committer=t}setValue(t){t===i||y(t)&&t===this.value||(this.value=t,o(t)||(this.committer.dirty=!0))}commit(){for(;o(this.value);){const t=this.value;this.value=i,t(this)}this.value!==i&&this.committer.commit()}}class k{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(p()),this.endNode=t.appendChild(p())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=p()),t.__insert(this.endNode=p())}insertAfterPart(t){t.__insert(this.startNode=p()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){if(null===this.startNode.parentNode)return;for(;o(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=i,t(this)}const t=this.__pendingValue;t!==i&&(y(t)?t!==this.value&&this.__commitText(t):t instanceof v?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):x(t)?this.__commitIterable(t):t===a?(this.value=a,this.clear()):this.__commitText(t))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const e=this.startNode.nextSibling,o="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=o:this.__commitNode(document.createTextNode(o)),this.value=t}__commitTemplateResult(t){const e=this.options.templateFactory(t);if(this.value instanceof b&&this.value.template===e)this.value.update(t.values);else{const o=new b(e,t.processor,this.options),r=o._clone();o.update(t.values),this.__commitNode(r),this.value=o}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const e=this.value;let o,r=0;for(const n of t)o=e[r],void 0===o&&(o=new k(this.options),e.push(o),0===r?o.appendIntoPart(this):o.insertAfterPart(e[r-1])),o.setValue(n),o.commit(),r++;r<e.length&&(e.length=r,this.clear(o&&o.endNode))}clear(t=this.startNode){n(this.startNode.parentNode,t.nextSibling,this.endNode)}}class S{constructor(t,e,o){if(this.value=void 0,this.__pendingValue=void 0,2!==o.length||""!==o[0]||""!==o[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=o}setValue(t){this.__pendingValue=t}commit(){for(;o(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=i,t(this)}if(this.__pendingValue===i)return;const t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=i}}class O extends w{constructor(t,e,o){super(t,e,o),this.single=2===o.length&&""===o[0]&&""===o[1]}_createPart(){return new P(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class P extends _{}let E=!1;(()=>{try{const t={get capture(){return E=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}})();class T{constructor(t,e,o){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=o,this.__boundHandleEvent=t=>this.handleEvent(t)}setValue(t){this.__pendingValue=t}commit(){for(;o(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=i,t(this)}if(this.__pendingValue===i)return;const t=this.__pendingValue,e=this.value,r=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),n=null!=t&&(null==e||r);r&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),n&&(this.__options=C(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=i}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const C=t=>t&&(E?{capture:t.capture,passive:t.passive,once:t.once}:t.capture) /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */;const A=new class{handleAttributeExpressions(t,e,o,r){const n=e[0];if("."===n){return new O(t,e.slice(1),o).parts}if("@"===n)return[new T(t,e.slice(1),r.eventContext)];if("?"===n)return[new S(t,e.slice(1),o)];return new w(t,e,o).parts}handleTextExpression(t){return new k(t)}}; /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */function L(t){let e=N.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},N.set(t.type,e));let o=e.stringsArray.get(t.strings);if(void 0!==o)return o;const r=t.strings.join(s);return o=e.keyString.get(r),void 0===o&&(o=new u(t,t.getTemplateElement()),e.keyString.set(r,o)),e.stringsArray.set(t.strings,o),o}const N=new Map,j=new WeakMap; /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ "undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1") /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */,window.JSCompiler_renameProperty=(t,e)=>t;const V={toAttribute(t,e){switch(e){case Boolean:return t?"":null;case Object:case Array:return null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){switch(e){case Boolean:return null!==t;case Number:return null===t?null:Number(t);case Object:case Array:return JSON.parse(t)}return t}},M=(t,e)=>e!==t&&(e==e||t==t),R={attribute:!0,type:String,converter:V,reflect:!1,hasChanged:M};class I extends HTMLElement{constructor(){super(),this.initialize()}static get observedAttributes(){this.finalize();const t=[];return this._classProperties.forEach(((e,o)=>{const r=this._attributeNameForProperty(o,e);void 0!==r&&(this._attributeToPropertyMap.set(r,o),t.push(r))})),t}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach(((t,e)=>this._classProperties.set(e,t)))}}static createProperty(t,e=R){if(this._ensureClassProperties(),this._classProperties.set(t,e),e.noAccessor||this.prototype.hasOwnProperty(t))return;const o="symbol"==typeof t?Symbol():`__${t}`,r=this.getPropertyDescriptor(t,o,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}static getPropertyDescriptor(t,e,o){return{get(){return this[e]},set(r){const n=this[t];this[e]=r,this.requestUpdateInternal(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this._classProperties&&this._classProperties.get(t)||R}static finalize(){const t=Object.getPrototypeOf(this);if(t.hasOwnProperty("finalized")||t.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const t=this.properties,e=[...Object.getOwnPropertyNames(t),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]];for(const o of e)this.createProperty(o,t[o])}}static _attributeNameForProperty(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}static _valueHasChanged(t,e,o=M){return o(t,e)}static _propertyValueFromAttribute(t,e){const o=e.type,r=e.converter||V,n="function"==typeof r?r:r.fromAttribute;return n?n(t,o):t}static _propertyValueToAttribute(t,e){if(void 0===e.reflect)return;const o=e.type,r=e.converter;return(r&&r.toAttribute||V.toAttribute)(t,o)}initialize(){this._updateState=0,this._updatePromise=new Promise((t=>this._enableUpdatingResolver=t)),this._changedProperties=new Map,this._saveInstanceProperties(),this.requestUpdateInternal()}_saveInstanceProperties(){this.constructor._classProperties.forEach(((t,e)=>{if(this.hasOwnProperty(e)){const t=this[e];delete this[e],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(e,t)}}))}_applyInstanceProperties(){this._instanceProperties.forEach(((t,e)=>this[e]=t)),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(t,e,o){e!==o&&this._attributeToProperty(t,o)}_propertyToAttribute(t,e,o=R){const r=this.constructor,n=r._attributeNameForProperty(t,o);if(void 0!==n){const t=r._propertyValueToAttribute(e,o);if(void 0===t)return;this._updateState=8|this._updateState,null==t?this.removeAttribute(n):this.setAttribute(n,t),this._updateState=-9&this._updateState}}_attributeToProperty(t,e){if(8&this._updateState)return;const o=this.constructor,r=o._attributeToPropertyMap.get(t);if(void 0!==r){const t=o.getPropertyOptions(r);this._updateState=16|this._updateState,this[r]=o._propertyValueFromAttribute(e,t),this._updateState=-17&this._updateState}}requestUpdateInternal(t,e,o){let r=!0;if(void 0!==t){const n=this.constructor;o=o||n.getPropertyOptions(t),n._valueHasChanged(this[t],e,o.hasChanged)?(this._changedProperties.has(t)||this._changedProperties.set(t,e),!0!==o.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,o))):r=!1}!this._hasRequestedUpdate&&r&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(t,e){return this.requestUpdateInternal(t,e),this.updateComplete}async _enqueueUpdate(){this._updateState=4|this._updateState;try{await this._updatePromise}catch(t){}const t=this.performUpdate();return null!=t&&await t,!this._hasRequestedUpdate}get _hasRequestedUpdate(){return 4&this._updateState}get hasUpdated(){return 1&this._updateState}performUpdate(){if(!this._hasRequestedUpdate)return;this._instanceProperties&&this._applyInstanceProperties();let t=!1;const e=this._changedProperties;try{t=this.shouldUpdate(e),t?this.update(e):this._markUpdated()}catch(e){throw t=!1,this._markUpdated(),e}t&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(e)),this.updated(e))}_markUpdated(){this._changedProperties=new Map,this._updateState=-5&this._updateState}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._updatePromise}shouldUpdate(t){return!0}update(t){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach(((t,e)=>this._propertyToAttribute(e,this[e],t))),this._reflectingProperties=void 0),this._markUpdated()}updated(t){}firstUpdated(t){}}I.finalized=!0, /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ "undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");const z=(t,...e)=>new v(t,e,"html",A) /** @license Copyright (c) 2019 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */,U=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$=Symbol();class F{constructor(t,e){if(e!==$)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){return void 0===this._styleSheet&&(U?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const B=(t,...e)=>{const o=e.reduce(((e,o,r)=>e+(t=>{if(t instanceof F)return t.cssText;if("number"==typeof t)return t;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${t}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)})(o)+t[r+1]),t[0]);return new F(o,$)}; /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ (window.litElementVersions||(window.litElementVersions=[])).push("2.5.1");const H={};class q extends I{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const t=this.getStyles();if(Array.isArray(t)){const e=(t,o)=>t.reduceRight(((t,o)=>Array.isArray(o)?e(o,t):(t.add(o),t)),o),o=e(t,new Set),r=[];o.forEach((t=>r.unshift(t))),this._styles=r}else this._styles=void 0===t?[]:[t];this._styles=this._styles.map((t=>{if(t instanceof CSSStyleSheet&&!U){const e=Array.prototype.slice.call(t.cssRules).reduce(((t,e)=>t+e.cssText),"");return new F(String(e),$)}return t}))}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow(this.constructor.shadowRootOptions)}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?U?this.renderRoot.adoptedStyleSheets=t.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map((t=>t.cssText)),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){const e=this.render();super.update(t),e!==H&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)})))}render(){return H}}q.finalized=!0,q.render=(t,e,o)=>{let r=j.get(e);void 0===r&&(n(e,e.firstChild),j.set(e,r=new k(Object.assign({templateFactory:L},o))),r.appendInto(e)),r.setValue(t),r.commit()},q.shadowRootOptions={mode:"open"}; /** * @license * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ const D=new WeakMap,G=e((t=>e=>{const o=D.get(e);if(void 0===t&&e instanceof _){if(void 0!==o||!D.has(e)){const t=e.committer.name;e.committer.element.removeAttribute(t)}}else t!==o&&e.setValue(t);D.set(e,t)})); /** * @license * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ class W{constructor(t){this.classes=new Set,this.changed=!1,this.element=t;const e=(t.getAttribute("class")||"").split(/\s+/);for(const t of e)this.classes.add(t)}add(t){this.classes.add(t),this.changed=!0}remove(t){this.classes.delete(t),this.changed=!0}commit(){if(this.changed){let t="";this.classes.forEach((e=>t+=e+" ")),this.element.setAttribute("class",t)}}}const J=new WeakMap,K=e((t=>e=>{if(!(e instanceof _)||e instanceof P||"class"!==e.committer.name||e.committer.parts.length>1)throw new Error("The `classMap` directive must be used in the `class` attribute and must be the only part in the attribute.");const{committer:o}=e,{element:r}=o;let n=J.get(e);void 0===n&&(r.setAttribute("class",o.strings.join(" ")),J.set(e,n=new Set));const i=r.classList||new W(r);n.forEach((e=>{e in t||(i.remove(e),n.delete(e))}));for(const e in t){const o=t[e];o!=n.has(e)&&(o?(i.add(e),n.add(e)):(i.remove(e),n.delete(e)))}"function"==typeof i.commit&&i.commit()}));var Y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function X(t){var e={exports:{}};return t(e,e.exports),e.exports}X((function(t,e){!function(){function t(t){var e=!0,o=!1,r=null,n={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function i(t){return!!(t&&t!==document&&"HTML"!==t.nodeName&&"BODY"!==t.nodeName&&"classList"in t&&"contains"in t.classList)}function a(t){t.classList.contains("focus-visible")||(t.classList.add("focus-visible"),t.setAttribute("data-focus-visible-added",""))}function s(t){e=!1}function l(){document.addEventListener("mousemove",c),document.addEventListener("mousedown",c),document.addEventListener("mouseup",c),document.addEventListener("pointermove",c),document.addEventListener("pointerdown",c),document.addEventListener("pointerup",c),document.addEventListener("touchmove",c),document.addEventListener("touchstart",c),document.addEventListener("touchend",c)}function c(t){t.target.nodeName&&"html"===t.target.nodeName.toLowerCase()||(e=!1,document.removeEventListener("mousemove",c),document.removeEventListener("mousedown",c),document.removeEventListener("mouseup",c),document.removeEventListener("pointermove",c),document.removeEventListener("pointerdown",c),document.removeEventListener("pointerup",c),document.removeEventListener("touchmove",c),document.removeEventListener("touchstart",c),document.removeEventListener("touchend",c))}document.addEventListener("keydown",(function(o){o.metaKey||o.altKey||o.ctrlKey||(i(t.activeElement)&&a(t.activeElement),e=!0)}),!0),document.addEventListener("mousedown",s,!0),document.addEventListener("pointerdown",s,!0),document.addEventListener("touchstart",s,!0),document.addEventListener("visibilitychange",(function(t){"hidden"===document.visibilityState&&(o&&(e=!0),l())}),!0),l(),t.addEventListener("focus",(function(t){var o,r,s;i(t.target)&&(e||(r=(o=t.target).type,"INPUT"===(s=o.tagName)&&n[r]&&!o.readOnly||"TEXTAREA"===s&&!o.readOnly||o.isContentEditable))&&a(t.target)}),!0),t.addEventListener("blur",(function(t){var e;i(t.target)&&(t.target.classList.contains("focus-visible")||t.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(r),r=window.setTimeout((function(){o=!1}),100),(e=t.target).hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added")))}),!0),t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host?t.host.setAttribute("data-js-focus-visible",""):t.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var e;window.applyFocusVisiblePolyfill=t;try{e=new CustomEvent("focus-visible-polyfill-ready")}catch(t){(e=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(e)}"undefined"!=typeof document&&t(document)}()}));var Q,Z,tt=B`*,:after,:before{box-sizing:border-box}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:0s!important;animation-iteration-count:1!important;transition-duration:0s!important}}:focus-visible{outline:0}:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.js-focus-visible :focus:not(.focus-visible){outline:3px solid transparent}.util_insetLg--squish{padding:calc(1.5rem / 2) 1.5rem}:focus-visible.auro-button{outline:3px solid transparent;box-shadow:inset 0 0 0 1px #fff,inset 0 0 0 3px #fff;box-shadow:inset 0 0 0 1px var(--auro-color-border-focus-on-dark),inset 0 0 0 3px var(--auro-color-background-lightest)}:focus-visible.auro-button--secondary{background-color:#f8f8f8;background-color:var(--auro-color-background-lighter);box-shadow:inset 0 0 0 3px #0074c8;box-shadow:inset 0 0 0 3px var(--auro-color-ui-default-on-light)}:focus-visible.auro-button--tertiary{background-color:#f8f8f8;background-color:var(--auro-color-background-lighter);border-color:#0074c8;border-color:var(--auro-color-ui-default-on-light);box-shadow:inset 0 0 0 3px #0074c8;box-shadow:inset 0 0 0 3px var(--auro-color-ui-default-on-light)}:focus-visible.auro-buttonOndark{background-color:#00cff0;background-color:var(--auro-color-ui-default-on-dark);box-shadow:inset 0 0 0 3px #fff;box-shadow:inset 0 0 0 3px var(--auro-color-border-focus-on-dark)}:focus-visible.auro-buttonOndark--secondary{background-color:rgba(0,0,0,.15);background-color:var(--auro-color-base-black-opacity-15);box-shadow:inset 0 0 0 3px #5de3f7;box-shadow:inset 0 0 0 3px var(--auro-color-ui-active-on-dark);border:1px solid #5de3f7;border:1px solid var(--auro-color-ui-active-on-dark)}:focus-visible.auro-buttonOndark--tertiary{background-color:rgba(0,0,0,.15);background-color:var(--auro-color-base-black-opacity-15);border-color:#5de3f7;border-color:var(--auro-color-ui-active-on-dark);box-shadow:inset 0 0 0 3px #5de3f7;box-shadow:inset 0 0 0 3px var(--auro-color-ui-active-on-dark)}.focus-visible.auro-button{outline:3px solid transparent;box-shadow:inset 0 0 0 1px #fff,inset 0 0 0 3px #fff;box-shadow:inset 0 0 0 1px var(--auro-color-border-focus-on-dark),inset 0 0 0 3px var(--auro-color-background-lightest)}.focus-visible.auro-button--secondary{background-color:#f8f8f8;background-color:var(--auro-color-background-lighter);box-shadow:inset 0 0 0 3px #0074c8;box-shadow:inset 0 0 0 3px var(--auro-color-ui-default-on-light)}.focus-visible.auro-button--tertiary{background-color:#f8f8f8;background-color:var(--auro-color-background-lighter);border-color:#0074c8;border-color:var(--auro-color-ui-default-on-light);box-shadow:inset 0 0 0 3px #0074c8;box-shadow:inset 0 0 0 3px var(--auro-color-ui-default-on-light)}.focus-visible.auro-buttonOndark{background-color:#00cff0;background-color:var(--auro-color-ui-default-on-dark);box-shadow:inset 0 0 0 3px #fff;box-shadow:inset 0 0 0 3px var(--auro-color-border-focus-on-dark)}.focus-visible.auro-buttonOndark--secondary{background-color:rgba(0,0,0,.15);background-color:var(--auro-color-base-black-opacity-15);box-shadow:inset 0 0 0 3px #5de3f7;box-shadow:inset 0 0 0 3px var(--auro-color-ui-active-on-dark);border:1px solid #5de3f7;border:1px solid var(--auro-color-ui-active-on-dark)}.focus-visible.auro-buttonOndark--tertiary{background-color:rgba(0,0,0,.15);background-color:var(--auro-color-base-black-opacity-15);border-color:#5de3f7;border-color:var(--auro-color-ui-active-on-dark);box-shadow:inset 0 0 0 3px #5de3f7;box-shadow:inset 0 0 0 3px var(--auro-color-ui-active-on-dark)}:host([fluid=true]) .auro-button,:host([fluid]) .auro-button{min-width:auto;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{transition:all .15s ease;position:relative;padding:0 1.5rem;padding:0 var(--auro-size-lg);color:#fff;color:var(--auro-color-text-primary-on-dark);cursor:pointer;background-color:#0074c8;background-color:var(--auro-color-ui-default-on-light);border:1px solid #0074c8;border:1px solid var(--auro-color-ui-default-on-light);border-radius:.375rem;border-radius:var(--auro-border-radius);font-family:'AS Circular',Helvetica Neue,Arial,sans-serif;font-family:var(--auro-font-family-default);font-size:1rem;font-size:var(--auro-text-body-size-default);font-weight:500;font-weight:var(--auro-text-body-default-weight);overflow:hidden;text-overflow:ellipsis;-ms-user-select:none;user-select:none;white-space:nowrap;min-height:3rem;min-height:var(--auro-size-xxl);max-height:3rem;max-height:var(--auro-size-xxl);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:.25rem;gap:var(--auro-size-xxs);margin:0;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none}@media (hover:hover){.auro-button:active,.auro-button:hover{background-color:#054687;background-color:var(--auro-color-ui-hover-on-light);border:1px solid #054687;border:1px solid var(--auro-color-ui-hover-on-light)}}.auro-button:active{background-color:#054687;background-color:var(--auro-color-ui-active-on-light);border:1px solid #054687;border:1px solid var(--auro-color-ui-active-on-light);transform:scale(.95)}.auro-button.loading{cursor:not-allowed}.auro-button.loading :not(auro-loader){visibility:hidden}.auro-button.loading auro-loader{color:#00274a;color:var(--auro-color-background-darkest)}.auro-button.loading.auro-buttonOndark auro-loader{color:#fff;color:var(--auro-color-text-primary-on-dark)}@media screen and (min-width:660px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset;background-color:rgba(0,116,200,.4);border:1px solid rgba(0,116,200,0)}@media (hover:hover){.auro-button:disabled:hover{background-color:rgba(0,116,200,.4);border:1px solid rgba(0,116,200,0)}}.auro-button--secondary{background-color:#fff;background-color:var(--auro-color-background-lightest);border:1px solid #0074c8;border:1px solid var(--auro-color-ui-default-on-light);color:#0074c8;color:var(--auro-color-text-link-on-light)}@media (hover:hover){.auro-button--secondary:active,.auro-button--secondary:hover{background-color:rgba(0,0,0,.06);background-color:var(--auro-color-ui-bkg-hover-on-light);border:1px solid #0074c8;border:1px solid var(--auro-color-ui-default-on-light)}}.auro-button--secondary:active{background-color:rgba(0,0,0,.06);background-color:var(--auro-color-ui-bkg-hover-on-light);border:1px solid #0074c8;border:1px solid var(--auro-color-ui-default-on-light)}.auro-button--secondary:disabled{cursor:not-allowed;transform:unset;color:rgba(0,116,200,.4);background-color:rgba(255,255,255,.4);border:1px solid rgba(0,116,200,.4)}@media (hover:hover){.auro-button--secondary:disabled:hover{color:rgba(0,116,200,.4);background-color:rgba(255,255,255,.4);border:1px solid rgba(0,116,200,.4)}}.auro-button--tertiary{background-color:rgba(0,0,0,.03);border-color:transparent;color:#0074c8;color:var(--auro-color-text-link-on-light)}@media (hover:hover){.auro-button--tertiary:active,.auro-button--tertiary:hover{background-color:rgba(0,0,0,.06);background-color:var(--auro-color-ui-bkg-hover-on-light);border-color:transparent}}.auro-button--tertiary:active{background-color:rgba(0,0,0,.06);background-color:var(--auro-color-ui-bkg-hover-on-light);border-color:transparent}.auro-button--tertiary:disabled{cursor:not-allowed;transform:unset;color:rgba(0,116,200,.4);background-color:rgba(0,0,0,.03);border:1px solid transparent}@media (hover:hover){.auro-button--tertiary:disabled:hover{background-color:rgba(0,0,0,.03);border:1px solid transparent}}.auro-buttonOndark{background-color:#00cff0;background-color:var(--auro-color-ui-default-on-dark);border:1px solid #00cff0;border:1px solid var(--auro-color-ui-default-on-dark);color:#222;color:var(--auro-color-text-primary-on-light)}@media (hover:hover){.auro-buttonOndark:active,.auro-buttonOndark:hover{background-color:#5de3f7;background-color:var(--auro-color-ui-hover-on-dark);border:1px solid #5de3f7;border:1px solid var(--auro-color-ui-hover-on-dark)}}.auro-buttonOndark:active{background-color:#5de3f7;background-color:var(--auro-color-ui-active-on-dark);border:1px solid #5de3f7;border:1px solid var(--auro-color-ui-active-on-dark)}.auro-buttonOndark:disabled{cursor:not-allowed;transform:unset;color:rgba(34,34,34,.4);background-color:rgba(0,207,240,.4);border:1px solid rgba(0,207,240,.4)}@media (hover:hover){.auro-buttonOndark:disabled:hover{color:rgba(34,34,34,.4);background-color:rgba(0,207,240,.4);border:1px solid rgba(0,207,240,.4)}}.auro-buttonOndark--secondary{background-color:transparent;border:1px solid #00cff0;border:1px solid var(--auro-color-ui-default-on-dark);color:#00cff0;color:var(--auro-color-ui-default-on-dark)}@media (hover:hover){.auro-buttonOndark--secondary:active,.auro-buttonOndark--secondary:hover{background-color:rgba(0,0,0,.15);background-color:var(--auro-color-base-black-opacity-15)}}.auro-buttonOndark--secondary:active{background-color:rgba(0,0,0,.15);background-color:var(--auro-color-base-black-opacity-15);border:1px solid #5de3f7;border:1px solid var(--auro-color-ui-hover-on-dark)}@media (hover:hover){.auro-buttonOndark--secondary:disabled:hover{background-color:transparent;border:1px solid #00cff0;border:1px solid var(--auro-color-ui-default-on-dark)}}.auro-buttonOndark--secondary:disabled{cursor:not-allowed;transform:unset;color:rgba(0,207,240,.4);background-color:transparent;border:1px solid rgba(0,207,240,.4)}@media (hover:hover){.auro-buttonOndark--secondary:disabled:hover{color:rgba(0,207,240,.4);background-color:transparent;border:1px solid rgba(0,207,240,.4)}}.auro-buttonOndark--tertiary{background-color:rgba(255,255,255,.03);border:1px solid transparent;color:#00cff0;color:var(--auro-color-ui-default-on-dark)}@media (hover:hover){.auro-buttonOndark--tertiary:active,.auro-buttonOndark--tertiary:hover{background-color:rgba(0,0,0,.15);background-color:var(--auro-color-base-black-opacity-15);border:1px solid transparent;box-shadow:none}}.auro-buttonOndark--tertiary:active{background-color:rgba(0,0,0,.15);background-color:var(--auro-color-base-black-opacity-15);border:1px solid transparent;box-shadow:none}.auro-buttonOndark--tertiary:disabled{cursor:not-allowed;transform:unset;background-color:rgba(255,255,255,.03);border:transparent;color:rgba(0,207,240,.4)}@media (hover:hover){.auro-buttonOndark--tertiary:disabled:hover{background-color:rgba(255,255,255,.03);color:rgba(0,207,240,.4);border:transparent}}.auro-button--slim{padding:.5rem 1rem;padding:var(--auro-size-xs) var(--auro-size-md);font-size:.875rem;font-size:var(--auro-text-body-size-sm);min-width:unset;min-height:2.25rem;max-height:2.25rem}.auro-button--iconOnly{padding-left:calc(8px - 2px);padding-left:calc(var(--auro-size-100,8px) - 2px);padding-right:calc(8px - 2px);padding-right:calc(var(--auro-size-100,8px) - 2px);border-radius:100px;min-width:unset}.auro-button--iconOnly ::slotted(auro-icon){width:24px;width:var(--auro-size-300,24px);height:24px;height:var(--auro-size-300,24px)}.auro-button--iconOnlySlim{padding-left:4px;padding-left:var(--auro-size-50,4px);padding-right:4px;padding-right:var(--auro-size-50,4px)}.auro-button--iconOnlySlim ::slotted(auro-icon){width:calc(24px - 4px);width:calc(var(--auro-size-300,24px) - 4px);height:calc(24px - 4px);height:calc(var(--auro-size-300,24px) - 4px)}.icon svg{vertical-align:middle}.icon slot{vertical-align:middle}auro-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}`,et=B`:host([fixed]) .util_insetLg--squish{padding:calc(24px / 2) 24px}:host([fixed]) .auro-button{padding:0 24px;border-radius:6px;font-size:16px;min-height:48px;max-height:48px;gap:4px}@media screen and (min-width: 660px){:host([fixed]) .auro-button{min-width:140px}}:host([fixed]) .auro-button--slim{padding:8px 16px;font-size:14px;min-height:36px;max-height:36px}`,ot=function(t){return t&&t.Math==Math&&t},rt=ot("object"==typeof globalThis&&globalThis)||ot("object"==typeof window&&window)||ot("object"==typeof self&&self)||ot("object"==typeof Y&&Y)||function(){return this}()||Function("return this")(),nt={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},it=function(t){try{return!!t()}catch(t){return!0}},at={}.toString,st="".split,lt=it((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==function(t){return at.call(t).slice(8,-1)}(t)?st.call(t,""):Object(t)}:Object,ct=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},ut=function(t){return lt(ct(t))},dt=function(t,e){try{Object.defineProperty(rt,t,{value:e,configurable:!0,writable:!0})}catch(o){rt[t]=e}return e},ht=rt["__core-js_shared__"]||dt("__core-js_shared__",{}),pt=X((function(t){(t.exports=function(t,e){return ht[t]||(ht[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ft=function(t){return Object(ct(t))},bt={}.hasOwnProperty,mt=Object.hasOwn||function(t,e){return bt.call(ft(t),e)},gt=0,vt=Math.random(),yt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++gt+vt).toString(36)},xt=function(t){return"function"==typeof t?t:void 0},wt=function(t,e){return arguments.length<2?xt(rt[t]):rt[t]&&rt[t][e]},_t=wt("navigator","userAgent")||"",kt=rt.process,St=rt.Deno,Ot=kt&&kt.versions||St&&St.version,Pt=Ot&&Ot.v8;Pt?Z=(Q=Pt.split("."))[0]<4?1:Q[0]+Q[1]:_t&&(!(Q=_t.match(/Edge\/(\d+)/))||Q[1]>=74)&&(Q=_t.match(/Chrome\/(\d+)/))&&(Z=Q[1]);var Et,Tt=Z&&+Z,Ct=!!Object.getOwnPropertySymbols&&!it((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Tt&&Tt<41})),At=Ct&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Lt=pt("wks"),Nt=rt.Symbol,jt=At?Nt:Nt&&Nt.withoutSetter||yt,Vt=function(t){return mt(Lt,t)&&(Ct||"string"==typeof Lt[t])||(Ct&&mt(Nt,t)?Lt[t]=Nt[t]:Lt[t]=jt("Symbol."+t)),Lt[t]},Mt=function(t){return"object"==typeof t?null!==t:"function"==typeof t},Rt=function(t){if(!Mt(t))throw TypeError(String(t)+" is not an object");return t},It=!it((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),zt=rt.document,Ut=Mt(zt)&&Mt(zt.createElement),$t=function(t){return Ut?zt.createElement(t):{}},Ft=!It&&!it((function(){return 7!=Object.defineProperty($t("div"),"a",{get:function(){return 7}}).a})),Bt=At?function(t){return"symbol"==typeof t}:function(t){var e=wt("Symbol");return"function"==typeof e&&Object(t)instanceof e},Ht=Vt("toPrimitive"),qt=function(t,e){if(!Mt(t)||Bt(t))return t;var o,r=t[Ht];if(void 0!==r){if(void 0===e&&(e="default"),o=r.call(t,e),!Mt(o)||Bt(o))return o;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var o,r;if("string"===e&&"function"==typeof(o=t.toString)&&!Mt(r=o.call(t)))return r;if("function"==typeof(o=t.valueOf)&&!Mt(r=o.call(t)))return r;if("string"!==e&&"function"==typeof(o=t.toString)&&!Mt(r=o.call(t)))return r;throw TypeError("Can't convert object to primitive value")}(t,e)},Dt=function(t){var e=qt(t,"string");return Bt(e)?e:String(e)},Gt=Object.defineProperty,Wt={f:It?Gt:function(t,e,o){if(Rt(t),e=Dt(e),Rt(o),Ft)try{return Gt(t,e,o)}catch(t){}if("get"in o||"set"in o)throw TypeError("Accessors not supported");return"value"in o&&(t[e]=o.value),t}},Jt=Math.ceil,Kt=Math.floor,Yt=function(t){return isNaN(t=+t)?0:(t>0?Kt:Jt)(t)},Xt=Math.min,Qt=Math.max,Zt=Math.min,te=function(t){return function(e,o,r){var n,i,a=ut(e),s=(n=a.length)>0?Xt(Yt(n),9007199254740991):0,l=function(t,e){var o=Yt(t);return o<0?Qt(o+e,0):Zt(o,e)}(r,s);if(t&&o!=o){for(;s>l;)if((i=a[l++])!=i)return!0}else for(;s>l;l++)if((t||l in a)&&a[l]===o)return t||l||0;return!t&&-1}},ee={includes:te(!0),indexOf:te(!1)},oe={},re=ee.indexOf,ne=function(t,e){var o,r=ut(t),n=0,i=[];for(o in r)!mt(oe,o)&&mt(r,o)&&i.push(o);for(;e.length>n;)mt(r,o=e[n++])&&(~re(i,o)||i.push(o));return i},ie=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ae=Object.keys||function(t){return ne(t,ie)},se=It?Object.defineProperties:function(t,e){Rt(t);for(var o,r=ae(e),n=r.length,i=0;n>i;)Wt.f(t,o=r[i++],e[o]);return t},le=wt("document","documentElement"),ce=pt("keys"),ue=function(t){return ce[t]||(ce[t]=yt(t))},de=ue("IE_PROTO"),he=function(){},pe=function(t){return"<script>"+t+"<\/script>"},fe=function(t){t.write(pe("")),t.close();var e=t.parentWindow.Object;return t=null,e},be=function(){try{Et=new ActiveXObject("htmlfile")}catch(t){}be=document.domain&&Et?fe(Et):function(){var t,e=$t("iframe");if(e.style)return e.style.display="none",le.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(pe("document.F=Object")),t.close(),t.F}()||fe(Et);for(var t=ie.length;t--;)delete be.prototype[ie[t]];return be()};oe[de]=!0;var me=Object.create||function(t,e){var o;return null!==t?(he.prototype=Rt(t),o=new he,he.prototype=null,o[de]=t):o=be(),void 0===e?o:se(o,e)},ge=Vt("unscopables"),ve=Array.prototype;null==ve[ge]&&Wt.f(ve,ge,{configurable:!0,value:me(null)});var ye=function(t){ve[ge][t]=!0},xe={},we=Function.toString;"function"!=typeof ht.inspectSource&&(ht.inspectSource=function(t){return we.call(t)});var _e,ke,Se,Oe=ht.inspectSource,Pe=rt.WeakMap,Ee="function"==typeof Pe&&/native code/.test(Oe(Pe)),Te=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ce=It?function(t,e,o){return Wt.f(t,e,Te(1,o))}:function(t,e,o){return t[e]=o,t},Ae=rt.WeakMap;if(Ee||ht.state){var Le=ht.state||(ht.state=new Ae),Ne=Le.get,je=Le.has,Ve=Le.set;_e=function(t,e){if(je.call(Le,t))throw new TypeError("Object already initialized");return e.facade=t,Ve.call(Le,t,e),e},ke=function(t){return Ne.call(Le,t)||{}},Se=function(t){return je.call(Le,t)}}else{var Me=ue("state");oe[Me]=!0,_e=function(t,e){if(mt(t,Me))throw new TypeError("Object already initialized");return e.facade=t,Ce(t,Me,e),e},ke=function(t){return mt(t,Me)?t[Me]:{}},Se=function(t){return mt(t,Me)}}var Re,Ie,ze,Ue={set:_e,get:ke,has:Se,enforce:function(t){return Se(t)?ke(t):_e(t,{})},getterFor:function(t){return function(e){var o;if(!Mt(e)||(o=ke(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return o}}},$e={}.propertyIsEnumerable,Fe=Object.getOwnPropertyDescriptor,Be={f:Fe&&!$e.call({1:2},1)?function(t){var e=Fe(this,t);return!!e&&e.enumerable}:$e},He=Object.getOwnPropertyDescriptor,qe={f:It?He:function(t,e){if(t=ut(t),e=Dt(e),Ft)try{return He(t,e)}catch(t){}if(mt(t,e))return Te(!Be.f.call(t,e),t[e])}},De=X((function(t){var e=Ue.get,o=Ue.enforce,r=String(String).split("String");(t.exports=function(t,e,n,i){var a,s=!!i&&!!i.unsafe,l=!!i&&!!i.enumerable,c=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof e||mt(n,"name")||Ce(n,"name",e),(a=o(n)).source||(a.source=r.join("string"==typeof e?e:""))),t!==rt?(s?!c&&t[e]&&(l=!0):delete t[e],l?t[e]=n:Ce(t,e,n)):l?t[e]=n:dt(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||Oe(this)}))})),Ge=ie.concat("length","prototype"),We={f:Object.getOwnPropertyNames||function(t){return ne(t,Ge)}},Je={f:Object.getOwnPropertySymbols},Ke=wt("Reflect","ownKeys")||function(t){var e=We.f(Rt(t)),o=Je.f;return o?e.concat(o(t)):e},Ye=function(t,e){for(var o=Ke(e),r=Wt.f,n=qe.f,i=0;i<o.length;i++){var a=o[i];mt(t,a)||r(t,a,n(e,a))}},Xe=/#|\.prototype\./,Qe=function(t,e){var o=to[Ze(t)];return o==oo||o!=eo&&("function"==typeof e?it(e):!!e)},Ze=Qe.normalize=function(t){return String(t).replace(Xe,".").toLowerCase()},to=Qe.data={},eo=Qe.NATIVE="N",oo=Qe.POLYFILL="P",ro=Qe,no=qe.f,io=!it((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ao=ue("IE_PROTO"),so=Object.prototype,lo=io?Object.getPrototypeOf:function(t){return t=ft(t),mt(t,ao)?t[ao]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?so:null},co=Vt("iterator"),uo=!1;[].keys&&("next"in(ze=[].keys())?(Ie=lo(lo(ze)))!==Object.prototype&&(Re=Ie):uo=!0),(null==Re||it((function(){var t={};return Re[co].call(t)!==t})))&&(R