Socket
Socket
Sign inDemoInstall

@nutmeg/seed

Package Overview
Dependencies
2
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.12.2 to 0.13.0

1

dist/decorators.d.ts

@@ -1,4 +0,3 @@

import 'reflect-metadata';
export declare function Property(options?: {
type: any;
}): (target: HTMLElement, name: string) => void;

2

dist/decorators.js

@@ -1,2 +0,2 @@

import 'reflect-metadata';
import { Reflection as Reflect } from '@abraham/reflection';
import { attributeNameFromProperty, privatePropertyName } from './utils';

@@ -3,0 +3,0 @@ const primitiveTypes = [Boolean, Number, String];

@@ -1,2 +0,2 @@

!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";function r(t){return t.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function i(t){return t.includes("-")?t.toLowerCase().replace(/-([a-z])/g,t=>t[1].toUpperCase()):t}function o(t){return`__${t}`}
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var s=t[r]={i:r,l:!1,exports:{}};return e[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(r,s,function(t){return e[t]}.bind(null,s));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);
/**

@@ -14,3 +14,4 @@ * @license

* http://polymer.github.io/PATENTS.txt
*/n.r(e);const s=new Map;class u{constructor(t,e,n,r=x){this.strings=t,this.values=e,this.type=n,this.partCallback=r}getHTML(){const t=this.strings.length-1;let e="",n=!0;for(let r=0;r<t;r++){const t=this.strings[r];e+=t;const i=p(t);e+=(n=i>-1?i<t.length:n)?l:c}return e+=this.strings[t]}getTemplateElement(){const t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}class a extends u{getHTML(){return`<svg>${super.getHTML()}</svg>`}getTemplateElement(){const t=super.getTemplateElement(),e=t.content,n=e.firstChild;return e.removeChild(n),N(e,n.firstChild),t}}const c=`{{lit-${String(Math.random()).slice(2)}}}`,l=`\x3c!--${c}--\x3e`,f=new RegExp(`${c}|${l}`),h=/[ \x09\x0a\x0c\x0d]([^\0-\x1F\x7F-\x9F \x09\x0a\x0c\x0d"'>=/]+)[ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*)$/;function p(t){const e=t.lastIndexOf(">");return t.indexOf("<",e+1)>-1?t.length:e}class d{constructor(t,e,n,r,i){this.type=t,this.index=e,this.name=n,this.rawName=r,this.strings=i}}const y=t=>-1!==t.index;class v{constructor(t,e){this.parts=[],this.element=e;const n=this.element.content,r=document.createTreeWalker(n,133,null,!1);let i=-1,o=0;const s=[];let u,a;for(;r.nextNode();){i++,u=a;const e=a=r.currentNode;if(1===e.nodeType){if(!e.hasAttributes())continue;const n=e.attributes;let r=0;for(let t=0;t<n.length;t++)n[t].value.indexOf(c)>=0&&r++;for(;r-- >0;){const r=t.strings[o],s=h.exec(r)[1],u=n.getNamedItem(s),a=u.value.split(f);this.parts.push(new d("attribute",i,u.name,s,a)),e.removeAttribute(u.name),o+=a.length-1}}else if(3===e.nodeType){const t=e.nodeValue;if(t.indexOf(c)<0)continue;const n=e.parentNode,r=t.split(f),u=r.length-1;o+=u;for(let t=0;t<u;t++)n.insertBefore(""===r[t]?document.createComment(""):document.createTextNode(r[t]),e),this.parts.push(new d("node",i++));n.insertBefore(""===r[u]?document.createComment(""):document.createTextNode(r[u]),e),s.push(e)}else if(8===e.nodeType&&e.nodeValue===c){const t=e.parentNode,n=e.previousSibling;null===n||n!==u||n.nodeType!==Node.TEXT_NODE?t.insertBefore(document.createComment(""),e):i--,this.parts.push(new d("node",i++)),s.push(e),null===e.nextSibling?t.insertBefore(document.createComment(""),e):i--,a=u,o++}}for(const t of s)t.parentNode.removeChild(t)}}const _=(t,e)=>m(e)?(e=e(t),g):null===e?void 0:e,m=t=>"function"==typeof t&&!0===t.__litDirective,g={},w=t=>null===t||!("object"==typeof t||"function"==typeof t);class b{constructor(t,e,n,r){this.instance=t,this.element=e,this.name=n,this.strings=r,this.size=r.length-1,this._previousValues=[]}_interpolate(t,e){const n=this.strings,r=n.length-1;let i="";for(let o=0;o<r;o++){i+=n[o];const r=_(this,t[e+o]);if(r&&r!==g&&(Array.isArray(r)||"string"!=typeof r&&r[Symbol.iterator]))for(const t of r)i+=t;else i+=r}return i+n[r]}_equalToPreviousValues(t,e){for(let n=e;n<e+this.size;n++)if(this._previousValues[n]!==t[n]||!w(t[n]))return!1;return!0}setValue(t,e){if(this._equalToPreviousValues(t,e))return;const n=this.strings;let r;2===n.length&&""===n[0]&&""===n[1]?(r=_(this,t[e]),Array.isArray(r)&&(r=r.join(""))):r=this._interpolate(t,e),r!==g&&this.element.setAttribute(this.name,r),this._previousValues=t}}class T{constructor(t,e,n){this.instance=t,this.startNode=e,this.endNode=n,this._previousValue=void 0}setValue(t){if((t=_(this,t))!==g)if(w(t)){if(t===this._previousValue)return;this._setText(t)}else t instanceof u?this._setTemplateResult(t):Array.isArray(t)||t[Symbol.iterator]?this._setIterable(t):t instanceof Node?this._setNode(t):void 0!==t.then?this._setPromise(t):this._setText(t)}_insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}_setNode(t){this._previousValue!==t&&(this.clear(),this._insert(t),this._previousValue=t)}_setText(t){const e=this.startNode.nextSibling;t=void 0===t?"":t,e===this.endNode.previousSibling&&e.nodeType===Node.TEXT_NODE?e.textContent=t:this._setNode(document.createTextNode(t)),this._previousValue=t}_setTemplateResult(t){const e=this.instance._getTemplate(t);let n;this._previousValue&&this._previousValue.template===e?n=this._previousValue:(n=new S(e,this.instance._partCallback,this.instance._getTemplate),this._setNode(n._clone()),this._previousValue=n),n.update(t.values)}_setIterable(t){Array.isArray(this._previousValue)||(this.clear(),this._previousValue=[]);const e=this._previousValue;let n=0;for(const r of t){let t=e[n];if(void 0===t){let r=this.startNode;if(n>0){r=e[n-1].endNode=document.createTextNode(""),this._insert(r)}t=new T(this.instance,r,this.endNode),e.push(t)}t.setValue(r),n++}if(0===n)this.clear(),this._previousValue=void 0;else if(n<e.length){const t=e[n-1];e.length=n,this.clear(t.endNode.previousSibling),t.endNode=this.endNode}}_setPromise(t){this._previousValue=t,t.then(e=>{this._previousValue===t&&this.setValue(e)})}clear(t=this.startNode){E(this.startNode.parentNode,t.nextSibling,this.endNode)}}const x=(t,e,n)=>{if("attribute"===e.type)return new b(t,n,e.name,e.strings);if("node"===e.type)return new T(t,n,n.nextSibling);throw new Error(`Unknown part type ${e.type}`)};class S{constructor(t,e,n){this._parts=[],this.template=t,this._partCallback=e,this._getTemplate=n}update(t){let e=0;for(const n of this._parts)n?void 0===n.size?(n.setValue(t[e]),e++):(n.setValue(t,e),e+=n.size):e++}_clone(){const t=this.template.element.content.cloneNode(!0),e=this.template.parts;if(e.length>0){const n=document.createTreeWalker(t,133,null,!1);let r=-1;for(let t=0;t<e.length;t++){const i=e[t],o=y(i);if(o)for(;r<i.index;)r++,n.nextNode();this._parts.push(o?this._partCallback(this,i,n.currentNode):void 0)}}return t}}const N=(t,e,n=null,r=null)=>{let i=e;for(;i!==n;){const e=i.nextSibling;t.insertBefore(i,r),i=e}},E=(t,e,n=null)=>{let r=e;for(;r!==n;){const e=r.nextSibling;t.removeChild(r),r=e}},A=(t,...e)=>new u(t,e,"html",O),k=(t,...e)=>new a(t,e,"svg",O),O=(t,e,n)=>{if("attribute"===e.type){if("on-"===e.rawName.substr(0,3)){return new class{constructor(t,e,n){this.instance=t,this.element=e,this.eventName=n}setValue(t){const e=_(this,t);e!==this._listener&&(null==e?this.element.removeEventListener(this.eventName,this):null==this._listener&&this.element.addEventListener(this.eventName,this),this._listener=e)}handleEvent(t){"function"==typeof this._listener?this._listener.call(this.element,t):"function"==typeof this._listener.handleEvent&&this._listener.handleEvent(t)}}(t,n,e.rawName.slice(3))}const r=e.name.substr(e.name.length-1);if("$"===r){const r=e.name.slice(0,-1);return new b(t,n,r,e.strings)}if("?"===r){return new class extends b{setValue(t,e){const n=this.strings;if(2!==n.length||""!==n[0]||""!==n[1])throw new Error("boolean attributes can only contain a single expression");{const n=_(this,t[e]);if(n===g)return;n?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name)}}}(t,n,e.name.slice(0,-1),e.strings)}return new class extends b{setValue(t,e){const n=this.strings;let r;this._equalToPreviousValues(t,e)||((r=2===n.length&&""===n[0]&&""===n[1]?_(this,t[e]):this._interpolate(t,e))!==g&&(this.element[this.name]=r),this._previousValues=t)}}(t,n,e.rawName,e.strings)}return x(t,e,n)};n(3);const C=[Boolean,Number,String];function V(t){return C.includes(t)}function P(t){return V(t)?"observedAttributes":"observedProperties"}function M(t,e,n){(function(t,e,n){return t.constructor[P(n)].includes(e)})(t,e,n)||t.constructor[P(n)].push(function(t,e){return V(e)?r(t):t}(e,n))}function j(t){return function(e,n){const i=t&&t.type||Reflect.getMetadata("design:type",e,n);M(e,n,i),Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get:function(t,e){const n=r(t);return function(){switch(e){case String:return this.getAttribute(n);case Number:return this.hasAttribute(n)?Number(this.getAttribute(n)):null;case Boolean:return this.hasAttribute(n);default:return this[o(t)]}}}(n,i),set:function(t,e){const n=r(t);return function(r){if(this._ignoreDefaultValue(t)&&V(e))this._ignoredDefaultAttributes[t]=!0;else{if(this._ignoredDefaultAttributes[t]||(this._ignoredDefaultAttributes[t]=!0),null===r||void 0===r||!1===r||""===r)this.removeAttribute(n);else switch(e){case String:case Number:this.setAttribute(n,String(r));break;case Boolean:this.setAttribute(n,"");break;default:this[o(t)]=r}this.render()}}}(n,i)})}}
*/
const r=new Map;class s{constructor(e,t,n,r=y){this.strings=e,this.values=t,this.type=n,this.partCallback=r}getHTML(){const e=this.strings.length-1;let t="",n=!0;for(let r=0;r<e;r++){const e=this.strings[r];t+=e;const s=c(e);t+=(n=s>-1?s<e.length:n)?l:o}return t+=this.strings[e]}getTemplateElement(){const e=document.createElement("template");return e.innerHTML=this.getHTML(),e}}class i extends s{getHTML(){return`<svg>${super.getHTML()}</svg>`}getTemplateElement(){const e=super.getTemplateElement(),t=e.content,n=t.firstChild;return t.removeChild(n),N(t,n.firstChild),e}}const o=`{{lit-${String(Math.random()).slice(2)}}}`,l=`\x3c!--${o}--\x3e`,a=new RegExp(`${o}|${l}`),u=/[ \x09\x0a\x0c\x0d]([^\0-\x1F\x7F-\x9F \x09\x0a\x0c\x0d"'>=/]+)[ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*)$/;function c(e){const t=e.lastIndexOf(">");return e.indexOf("<",t+1)>-1?e.length:t}class h{constructor(e,t,n,r,s){this.type=e,this.index=t,this.name=n,this.rawName=r,this.strings=s}}const d=e=>-1!==e.index;class f{constructor(e,t){this.parts=[],this.element=t;const n=this.element.content,r=document.createTreeWalker(n,133,null,!1);let s=-1,i=0;const l=[];let c,d;for(;r.nextNode();){s++,c=d;const t=d=r.currentNode;if(1===t.nodeType){if(!t.hasAttributes())continue;const n=t.attributes;let r=0;for(let e=0;e<n.length;e++)n[e].value.indexOf(o)>=0&&r++;for(;r-- >0;){const r=e.strings[i],o=u.exec(r)[1],l=n.getNamedItem(o),c=l.value.split(a);this.parts.push(new h("attribute",s,l.name,o,c)),t.removeAttribute(l.name),i+=c.length-1}}else if(3===t.nodeType){const e=t.nodeValue;if(e.indexOf(o)<0)continue;const n=t.parentNode,r=e.split(a),u=r.length-1;i+=u;for(let e=0;e<u;e++)n.insertBefore(""===r[e]?document.createComment(""):document.createTextNode(r[e]),t),this.parts.push(new h("node",s++));n.insertBefore(""===r[u]?document.createComment(""):document.createTextNode(r[u]),t),l.push(t)}else if(8===t.nodeType&&t.nodeValue===o){const e=t.parentNode,n=t.previousSibling;null===n||n!==c||n.nodeType!==Node.TEXT_NODE?e.insertBefore(document.createComment(""),t):s--,this.parts.push(new h("node",s++)),l.push(t),null===t.nextSibling?e.insertBefore(document.createComment(""),t):s--,d=c,i++}}for(const e of l)e.parentNode.removeChild(e)}}const p=(e,t)=>m(t)?(t=t(e),g):null===t?void 0:t,m=e=>"function"==typeof e&&!0===e.__litDirective,g={},b=e=>null===e||!("object"==typeof e||"function"==typeof e);class v{constructor(e,t,n,r){this.instance=e,this.element=t,this.name=n,this.strings=r,this.size=r.length-1,this._previousValues=[]}_interpolate(e,t){const n=this.strings,r=n.length-1;let s="";for(let i=0;i<r;i++){s+=n[i];const r=p(this,e[t+i]);if(r&&r!==g&&(Array.isArray(r)||"string"!=typeof r&&r[Symbol.iterator]))for(const e of r)s+=e;else s+=r}return s+n[r]}_equalToPreviousValues(e,t){for(let n=t;n<t+this.size;n++)if(this._previousValues[n]!==e[n]||!b(e[n]))return!1;return!0}setValue(e,t){if(this._equalToPreviousValues(e,t))return;const n=this.strings;let r;2===n.length&&""===n[0]&&""===n[1]?(r=p(this,e[t]),Array.isArray(r)&&(r=r.join(""))):r=this._interpolate(e,t),r!==g&&this.element.setAttribute(this.name,r),this._previousValues=e}}class _{constructor(e,t,n){this.instance=e,this.startNode=t,this.endNode=n,this._previousValue=void 0}setValue(e){if((e=p(this,e))!==g)if(b(e)){if(e===this._previousValue)return;this._setText(e)}else e instanceof s?this._setTemplateResult(e):Array.isArray(e)||e[Symbol.iterator]?this._setIterable(e):e instanceof Node?this._setNode(e):void 0!==e.then?this._setPromise(e):this._setText(e)}_insert(e){this.endNode.parentNode.insertBefore(e,this.endNode)}_setNode(e){this._previousValue!==e&&(this.clear(),this._insert(e),this._previousValue=e)}_setText(e){const t=this.startNode.nextSibling;e=void 0===e?"":e,t===this.endNode.previousSibling&&t.nodeType===Node.TEXT_NODE?t.textContent=e:this._setNode(document.createTextNode(e)),this._previousValue=e}_setTemplateResult(e){const t=this.instance._getTemplate(e);let n;this._previousValue&&this._previousValue.template===t?n=this._previousValue:(n=new x(t,this.instance._partCallback,this.instance._getTemplate),this._setNode(n._clone()),this._previousValue=n),n.update(e.values)}_setIterable(e){Array.isArray(this._previousValue)||(this.clear(),this._previousValue=[]);const t=this._previousValue;let n=0;for(const r of e){let e=t[n];if(void 0===e){let r=this.startNode;if(n>0){r=t[n-1].endNode=document.createTextNode(""),this._insert(r)}e=new _(this.instance,r,this.endNode),t.push(e)}e.setValue(r),n++}if(0===n)this.clear(),this._previousValue=void 0;else if(n<t.length){const e=t[n-1];t.length=n,this.clear(e.endNode.previousSibling),e.endNode=this.endNode}}_setPromise(e){this._previousValue=e,e.then(t=>{this._previousValue===e&&this.setValue(t)})}clear(e=this.startNode){w(this.startNode.parentNode,e.nextSibling,this.endNode)}}const y=(e,t,n)=>{if("attribute"===t.type)return new v(e,n,t.name,t.strings);if("node"===t.type)return new _(e,n,n.nextSibling);throw new Error(`Unknown part type ${t.type}`)};class x{constructor(e,t,n){this._parts=[],this.template=e,this._partCallback=t,this._getTemplate=n}update(e){let t=0;for(const n of this._parts)n?void 0===n.size?(n.setValue(e[t]),t++):(n.setValue(e,t),t+=n.size):t++}_clone(){const e=this.template.element.content.cloneNode(!0),t=this.template.parts;if(t.length>0){const n=document.createTreeWalker(e,133,null,!1);let r=-1;for(let e=0;e<t.length;e++){const s=t[e],i=d(s);if(i)for(;r<s.index;)r++,n.nextNode();this._parts.push(i?this._partCallback(this,s,n.currentNode):void 0)}}return e}}const N=(e,t,n=null,r=null)=>{let s=t;for(;s!==n;){const t=s.nextSibling;e.insertBefore(s,r),s=t}},w=(e,t,n=null)=>{let r=t;for(;r!==n;){const t=r.nextSibling;e.removeChild(r),r=t}},S=(e,...t)=>new s(e,t,"html",A),T=(e,...t)=>new i(e,t,"svg",A),A=(e,t,n)=>{if("attribute"===t.type){if("on-"===t.rawName.substr(0,3)){return new class{constructor(e,t,n){this.instance=e,this.element=t,this.eventName=n}setValue(e){const t=p(this,e);t!==this._listener&&(null==t?this.element.removeEventListener(this.eventName,this):null==this._listener&&this.element.addEventListener(this.eventName,this),this._listener=t)}handleEvent(e){"function"==typeof this._listener?this._listener.call(this.element,e):"function"==typeof this._listener.handleEvent&&this._listener.handleEvent(e)}}
/**

@@ -28,3 +29,3 @@ * @license

* http://polymer.github.io/PATENTS.txt
*/const L=NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT;const $=t=>{let e=1;const n=document.createTreeWalker(t,L,null,!1);for(;n.nextNode();)e++;return e},R=(t,e=-1)=>{for(let n=e+1;n<t.length;n++){const e=t[n];if(y(e))return n}return-1};
*/(e,n,t.rawName.slice(3))}const r=t.name.substr(t.name.length-1);if("$"===r){const r=t.name.slice(0,-1);return new v(e,n,r,t.strings)}if("?"===r){return new class extends v{setValue(e,t){const n=this.strings;if(2!==n.length||""!==n[0]||""!==n[1])throw new Error("boolean attributes can only contain a single expression");{const n=p(this,e[t]);if(n===g)return;n?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name)}}}(e,n,t.name.slice(0,-1),t.strings)}return new class extends v{setValue(e,t){const n=this.strings;let r;this._equalToPreviousValues(e,t)||((r=2===n.length&&""===n[0]&&""===n[1]?p(this,e[t]):this._interpolate(e,t))!==g&&(this.element[this.name]=r),this._previousValues=e)}}(e,n,t.rawName,t.strings)}return y(e,t,n)};const C=NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT;const E=e=>{let t=1;const n=document.createTreeWalker(e,C,null,!1);for(;n.nextNode();)t++;return t},V=(e,t=-1)=>{for(let n=t+1;n<e.length;n++){const t=e[n];if(d(t))return n}return-1};
/**

@@ -43,3 +44,3 @@ * @license

*/
const I=(t,e)=>`${t}--${e}`,F=t=>e=>{const n=I(e.type,t);let r=s.get(n);void 0===r&&(r=new Map,s.set(n,r));let i=r.get(e.strings);if(void 0===i){const n=e.getTemplateElement();"object"==typeof window.ShadyCSS&&window.ShadyCSS.prepareTemplateDom(n,t),i=new v(e,n),r.set(e.strings,i)}return i},B=["html","svg"];function D(t){B.forEach(e=>{const n=s.get(I(e,t));void 0!==n&&n.forEach(t=>{const{element:{content:e}}=t,n=e.querySelectorAll("style");!function(t,e){const{element:{content:n},parts:r}=t,i=document.createTreeWalker(n,L,null,!1);let o=0,s=r[0],u=-1,a=0;const c=[];let l=null;for(;i.nextNode();){u++;const t=i.currentNode;for(t.previousSibling===l&&(l=null),e.has(t)&&(c.push(t),null===l&&(l=t)),null!==l&&a++;void 0!==s&&s.index===u;)s.index=null!==l?-1:s.index-a,s=r[++o]}c.forEach(t=>t.parentNode.removeChild(t))}(t,new Set(Array.from(n)))})})}const z=new Set,W=(t,e,n)=>{if(!z.has(n)){z.add(n);const r=document.createElement("template");if(Array.from(t.querySelectorAll("style")).forEach(t=>{r.content.appendChild(t)}),window.ShadyCSS.prepareTemplateStyles(r,n),D(n),window.ShadyCSS.nativeShadow){const n=r.content.querySelector("style");null!==n&&(t.insertBefore(n,t.firstChild),function(t,e,n=null){const{element:{content:r},parts:i}=t;if(null===n||void 0===n)return void r.appendChild(e);const o=document.createTreeWalker(r,L,null,!1);let s=R(i),u=0,a=-1;for(;o.nextNode();)for(a++,o.currentNode===n&&(n.parentNode.insertBefore(e,n),u=$(e));-1!==s&&i[s].index===a;){if(u>0){for(;-1!==s;)i[s].index+=u,s=R(i,s);return}s=R(i,s)}}(e,n.cloneNode(!0),e.element.content.firstChild))}}};n.d(e,"Seed",function(){return H}),n.d(e,"attributeNameFromProperty",function(){return r}),n.d(e,"html",function(){return A}),n.d(e,"Prop",function(){return j}),n.d(e,"Property",function(){return j}),n.d(e,"propertyNameFromAttribute",function(){return i}),n.d(e,"svg",function(){return k}),n.d(e,"TemplateResult",function(){return u});class H extends HTMLElement{constructor(){super(),this._connected=!1,this._ignoredDefaultAttributes={},this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this.upgradeProperties(),this.upgradePropertyAttributes(),this.render()}disconnectedCallback(){this._connected=!1}attributeChangedCallback(t,e,n){this.render()}render(){this._connected&&function(t,e,n){const r=F(n),i=r(t);let o=e.__templateInstance;if(void 0!==o&&o.template===i&&o._partCallback===t.partCallback)return void o.update(t.values);o=new S(i,t.partCallback,r),e.__templateInstance=o;const s=o._clone();o.update(t.values);const u=e instanceof ShadowRoot?e.host:void 0;void 0!==u&&"object"==typeof window.ShadyCSS&&(W(s,i,n),window.ShadyCSS.styleElement(u)),E(e,e.firstChild),e.appendChild(s)}(this._template,this.shadowRoot,this.tagName.toLowerCase())}$(t){return this.shadowRoot.querySelector(t)}$$(t){return this.shadowRoot.querySelectorAll(t)}get _template(){return A`
const O=(e,t)=>`${e}--${t}`,P=e=>t=>{const n=O(t.type,e);let s=r.get(n);void 0===s&&(s=new Map,r.set(n,s));let i=s.get(t.strings);if(void 0===i){const n=t.getTemplateElement();"object"==typeof window.ShadyCSS&&window.ShadyCSS.prepareTemplateDom(n,e),i=new f(t,n),s.set(t.strings,i)}return i},M=["html","svg"];function k(e){M.forEach(t=>{const n=r.get(O(t,e));void 0!==n&&n.forEach(e=>{const{element:{content:t}}=e,n=t.querySelectorAll("style");!function(e,t){const{element:{content:n},parts:r}=e,s=document.createTreeWalker(n,C,null,!1);let i=0,o=r[0],l=-1,a=0;const u=[];let c=null;for(;s.nextNode();){l++;const e=s.currentNode;for(e.previousSibling===c&&(c=null),t.has(e)&&(u.push(e),null===c&&(c=e)),null!==c&&a++;void 0!==o&&o.index===l;)o.index=null!==c?-1:o.index-a,o=r[++i]}u.forEach(e=>e.parentNode.removeChild(e))}(e,new Set(Array.from(n)))})})}const $=new Set,j=(e,t,n)=>{if(!$.has(n)){$.add(n);const r=document.createElement("template");if(Array.from(e.querySelectorAll("style")).forEach(e=>{r.content.appendChild(e)}),window.ShadyCSS.prepareTemplateStyles(r,n),k(n),window.ShadyCSS.nativeShadow){const n=r.content.querySelector("style");null!==n&&(e.insertBefore(n,e.firstChild),function(e,t,n=null){const{element:{content:r},parts:s}=e;if(null===n||void 0===n)return void r.appendChild(t);const i=document.createTreeWalker(r,C,null,!1);let o=V(s),l=0,a=-1;for(;i.nextNode();)for(a++,i.currentNode===n&&(n.parentNode.insertBefore(t,n),l=E(t));-1!==o&&s[o].index===a;){if(l>0){for(;-1!==o;)s[o].index+=l,o=V(s,o);return}o=V(s,o)}}(t,n.cloneNode(!0),t.element.content.firstChild))}}};const B=Object.assign(Reflect,{decorate:function(e,t,n,r){if(0===e.length)throw new TypeError;if("function"==typeof t)return function(e,t){return e.reverse().forEach(e=>{const n=e(t);n&&(t=n)}),t}(e,t);if(void 0!==n)return function(e,t,n,r){return e.reverse().forEach(e=>{r=e(t,n,r)||r}),r}(e,t,n,r);return},defineMetadata:function(e,t,n,r){return D(e,t,n,r)},getMetadata:function(e,t,n){return function e(t,n,r){return H(t,n,r)?H(t,n,r):Object.getPrototypeOf(n)?e(t,Object.getPrototypeOf(n),r):void 0}(e,t,n)},getOwnMetadata:function(e,t,n){return H(e,t,n)},hasOwnMetadata:function(e,t,n){return!!H(e,t,n)},metadata:function(e,t){return function(n,r){D(e,t,n,r)}}}),L=new WeakMap;function D(e,t,n,r){if(r&&!["string","symbol"].includes(typeof r))throw new TypeError;(R(n,r)||function(e,t){const n=new Map;L.set(e,n);const r=new Map;return n.set(t,r),r}(n,r)).set(e,t)}function H(e,t,n){if(void 0===t)throw new TypeError;const r=R(t,n);return r&&r.get(e)}function R(e,t){return L.get(e)&&L.get(e).get(t)}function W(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function q(e){return e.includes("-")?e.toLowerCase().replace(/-([a-z])/g,e=>e[1].toUpperCase()):e}function F(e){return`__${e}`}const z=[Boolean,Number,String];function I(e){return z.includes(e)}function X(e){return I(e)?"observedAttributes":"observedProperties"}function U(e,t,n){(function(e,t,n){return e.constructor[X(n)].includes(t)})(e,t,n)||e.constructor[X(n)].push(function(e,t){return I(t)?W(e):e}(t,n))}function Z(e){return function(t,n){const r=e&&e.type||B.getMetadata("design:type",t,n);U(t,n,r),Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:function(e,t){const n=W(e);return function(){switch(t){case String:return this.getAttribute(n);case Number:return this.hasAttribute(n)?Number(this.getAttribute(n)):null;case Boolean:return this.hasAttribute(n);default:return this[F(e)]}}}(n,r),set:function(e,t){const n=W(e);return function(r){if(this._ignoreDefaultValue(e)&&I(t))this._ignoredDefaultAttributes[e]=!0;else{if(this._ignoredDefaultAttributes[e]||(this._ignoredDefaultAttributes[e]=!0),null===r||void 0===r||!1===r||""===r)this.removeAttribute(n);else switch(t){case String:case Number:this.setAttribute(n,String(r));break;case Boolean:this.setAttribute(n,"");break;default:this[F(e)]=r}this.render()}}}(n,r)})}}n.d(t,"Seed",function(){return J}),n.d(t,"attributeNameFromProperty",function(){return W}),n.d(t,"html",function(){return S}),n.d(t,"Prop",function(){return Z}),n.d(t,"Property",function(){return Z}),n.d(t,"propertyNameFromAttribute",function(){return q}),n.d(t,"svg",function(){return T}),n.d(t,"TemplateResult",function(){return s});class J extends HTMLElement{constructor(){super(),this._connected=!1,this._ignoredDefaultAttributes={},this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this.upgradeProperties(),this.upgradePropertyAttributes(),this.render()}disconnectedCallback(){this._connected=!1}attributeChangedCallback(e,t,n){this.render()}render(){this._connected&&function(e,t,n){const r=P(n),s=r(e);let i=t.__templateInstance;if(void 0!==i&&i.template===s&&i._partCallback===e.partCallback)return void i.update(e.values);i=new x(s,e.partCallback,r),t.__templateInstance=i;const o=i._clone();i.update(e.values);const l=t instanceof ShadowRoot?t.host:void 0;void 0!==l&&"object"==typeof window.ShadyCSS&&(j(o,s,n),window.ShadyCSS.styleElement(l)),w(t,t.firstChild),t.appendChild(o)}(this._template,this.shadowRoot,this.tagName.toLowerCase())}$(e){return this.shadowRoot.querySelector(e)}$$(e){return this.shadowRoot.querySelectorAll(e)}get _template(){return S`
<style>

@@ -58,18 +59,3 @@ :host {

<!-- Built, tested, and published with Nutmeg. https://nutmeg.tools -->
`}upgradeProperties(){const t=this;t.constructor.observedAttributes.concat(t.constructor.observedProperties).forEach(e=>{if(t.hasOwnProperty(e)){let n=t[e];delete t[e],t[e]=n}})}upgradePropertyAttributes(){const t=this;t.constructor.observedProperties.forEach(e=>{const n=r(e);t.hasAttribute(n)&&(t[e]=JSON.parse(t.getAttribute(n)),t.removeAttribute(n))})}_ignoreDefaultValue(t){return!this._connected&&!this._ignoredDefaultAttributes[t]&&this.hasAttribute(r(t))}}H.observedProperties=[],H.observedAttributes=[]},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var a,c=[],l=!1,f=-1;function h(){l&&a&&(l=!1,a.length?c=a.concat(c):f=-1,c.length&&p())}function p(){if(!l){var t=u(h);l=!0;for(var e=c.length;e;){for(a=c,c=[];++f<e;)a&&a[f].run();f=-1,e=c.length}a=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function y(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new d(t,e)),1!==c.length||l||u(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){(function(t,e){
/*! *****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var n;!function(n){!function(r){var i="object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),o=s(n);function s(t,e){return function(n,r){"function"!=typeof t[n]&&Object.defineProperty(t,n,{configurable:!0,writable:!0,value:r}),e&&e(n,r)}}void 0===i.Reflect?i.Reflect=n:o=s(i.Reflect,o),function(e){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,u={__proto__:[]}instanceof Array,a=!s&&!u,c={create:s?function(){return j(Object.create(null))}:u?function(){return j({__proto__:null})}:function(){return j({})},has:a?function(t,e){return n.call(t,e)}:function(t,e){return e in t},get:a?function(t,e){return n.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},l=Object.getPrototypeOf(Function),f="object"==typeof t&&t.env&&"true"===t.env.REFLECT_METADATA_USE_MAP_POLYFILL,h=f||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var t={},e=[],n=function(){function t(t,e,n){this._index=0,this._keys=t,this._values=e,this._selector=n}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var n=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var n=this._find(t,!0);return this._values[n]=e,this},e.prototype.delete=function(e){var n=this._find(e,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new n(this._keys,this._values,r)},e.prototype.values=function(){return new n(this._keys,this._values,i)},e.prototype.entries=function(){return new n(this._keys,this._values,s)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){return this._cacheKey!==t&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=t)),this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function r(t,e){return t}function i(t,e){return e}function s(t,e){return[t,e]}}():Map,p=f||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.values()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}():Set,d=new(f||"function"!=typeof WeakMap?function(){var t=16,e=c.create(),r=i();return function(){function t(){this._key=i()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){var n=o(t,!0);return n[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=i()},t}();function i(){var t;do{t="@@WeakMap@@"+u()}while(c.has(e,t));return e[t]=!0,t}function o(t,e){if(!n.call(t,r)){if(!e)return;Object.defineProperty(t,r,{value:c.create()})}return t[r]}function s(t,e){for(var n=0;n<e;++n)t[n]=255*Math.random()|0;return t}function u(){var e=function(t){if("function"==typeof Uint8Array)return"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(t)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(t)):s(new Uint8Array(t),t);return s(new Array(t),t)}(t);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var n="",r=0;r<t;++r){var i=e[r];4!==r&&6!==r&&8!==r||(n+="-"),i<16&&(n+="0"),n+=i.toString(16).toLowerCase()}return n}}():WeakMap);function y(t,e,n){var r=d.get(t);if(b(r)){if(!n)return;r=new h,d.set(t,r)}var i=r.get(e);if(b(i)){if(!n)return;i=new h,r.set(e,i)}return i}function v(t,e,n){var r=y(e,n,!1);return!b(r)&&function(t){return!!t}(r.has(t))}function _(t,e,n){var r=y(e,n,!1);if(!b(r))return r.get(t)}function m(t,e,n,r){var i=y(n,r,!0);i.set(t,e)}function g(t,e){var n=[],r=y(t,e,!1);if(b(r))return n;for(var i=r.keys(),s=function(t){var e=O(t,o);if(!A(e))throw new TypeError;var n=e.call(t);if(!x(n))throw new TypeError;return n}(i),u=0;;){var a=V(s);if(!a)return n.length=u,n;var c=C(a);try{n[u]=c}catch(t){try{P(s)}finally{throw t}}u++}}function w(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function b(t){return void 0===t}function T(t){return null===t}function x(t){return"object"==typeof t?null!==t:"function"==typeof t}function S(t,e){switch(w(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var n=3===e?"string":5===e?"number":"default",r=O(t,i);if(void 0!==r){var o=r.call(t,n);if(x(o))throw new TypeError;return o}return function(t,e){if("string"===e){var n=t.toString;if(A(n)){var r=n.call(t);if(!x(r))return r}var i=t.valueOf;if(A(i)){var r=i.call(t);if(!x(r))return r}}else{var i=t.valueOf;if(A(i)){var r=i.call(t);if(!x(r))return r}var o=t.toString;if(A(o)){var r=o.call(t);if(!x(r))return r}}throw new TypeError}(t,"default"===n?"number":n)}function N(t){var e=S(t,3);return function(t){return"symbol"==typeof t}(e)?e:function(t){return""+t}(e)}function E(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function A(t){return"function"==typeof t}function k(t){return"function"==typeof t}function O(t,e){var n=t[e];if(void 0!==n&&null!==n){if(!A(n))throw new TypeError;return n}}function C(t){return t.value}function V(t){var e=t.next();return!e.done&&e}function P(t){var e=t.return;e&&e.call(t)}function M(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===l)return e;if(e!==l)return e;var n=t.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return e;var i=r.constructor;return"function"!=typeof i?e:i===t?e:i}function j(t){return t.__=void 0,delete t.__,t}e("decorate",function(t,e,n,r){if(b(n)){if(!E(t))throw new TypeError;if(!k(e))throw new TypeError;return function(t,e){for(var n=t.length-1;n>=0;--n){var r=t[n],i=r(e);if(!b(i)&&!T(i)){if(!k(i))throw new TypeError;e=i}}return e}(t,e)}if(!E(t))throw new TypeError;if(!x(e))throw new TypeError;if(!x(r)&&!b(r)&&!T(r))throw new TypeError;return T(r)&&(r=void 0),n=N(n),function(t,e,n,r){for(var i=t.length-1;i>=0;--i){var o=t[i],s=o(e,n,r);if(!b(s)&&!T(s)){if(!x(s))throw new TypeError;r=s}}return r}(t,e,n,r)}),e("metadata",function(t,e){return function(n,r){if(!x(n))throw new TypeError;if(!b(r)&&!function(t){switch(w(t)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(t,e,n,r)}}),e("defineMetadata",function(t,e,n,r){if(!x(n))throw new TypeError;b(r)||(r=N(r));return m(t,e,n,r)}),e("hasMetadata",function(t,e,n){if(!x(e))throw new TypeError;b(n)||(n=N(n));return function t(e,n,r){var i=v(e,n,r);if(i)return!0;var o=M(n);if(!T(o))return t(e,o,r);return!1}(t,e,n)}),e("hasOwnMetadata",function(t,e,n){if(!x(e))throw new TypeError;b(n)||(n=N(n));return v(t,e,n)}),e("getMetadata",function(t,e,n){if(!x(e))throw new TypeError;b(n)||(n=N(n));return function t(e,n,r){var i=v(e,n,r);if(i)return _(e,n,r);var o=M(n);if(!T(o))return t(e,o,r);return}(t,e,n)}),e("getOwnMetadata",function(t,e,n){if(!x(e))throw new TypeError;b(n)||(n=N(n));return _(t,e,n)}),e("getMetadataKeys",function(t,e){if(!x(t))throw new TypeError;b(e)||(e=N(e));return function t(e,n){var r=g(e,n);var i=M(e);if(null===i)return r;var o=t(i,n);if(o.length<=0)return r;if(r.length<=0)return o;var s=new p;var u=[];for(var a=0,c=r;a<c.length;a++){var l=c[a],f=s.has(l);f||(s.add(l),u.push(l))}for(var h=0,d=o;h<d.length;h++){var l=d[h],f=s.has(l);f||(s.add(l),u.push(l))}return u}(t,e)}),e("getOwnMetadataKeys",function(t,e){if(!x(t))throw new TypeError;b(e)||(e=N(e));return g(t,e)}),e("deleteMetadata",function(t,e,n){if(!x(e))throw new TypeError;b(n)||(n=N(n));var r=y(e,n,!1);if(b(r))return!1;if(!r.delete(t))return!1;if(r.size>0)return!0;var i=d.get(e);return i.delete(n),i.size>0||(d.delete(e),!0)})}(o)}()}(n||(n={}))}).call(this,n(2),n(1))}]);
`}upgradeProperties(){const e=this;e.constructor.observedAttributes.concat(e.constructor.observedProperties).forEach(t=>{if(e.hasOwnProperty(t)){let n=e[t];delete e[t],e[t]=n}})}upgradePropertyAttributes(){const e=this;e.constructor.observedProperties.forEach(t=>{const n=W(t);e.hasAttribute(n)&&(e[t]=JSON.parse(e.getAttribute(n)),e.removeAttribute(n))})}_ignoreDefaultValue(e){return!this._connected&&!this._ignoredDefaultAttributes[e]&&this.hasAttribute(W(e))}}J.observedProperties=[],J.observedAttributes=[]}]);
//# sourceMappingURL=seed.bundled.js.map

@@ -1,5 +0,5 @@

import { attributeNameFromProperty, propertyNameFromAttribute } from './utils';
import { TemplateResult } from 'lit-html';
import { html, svg } from 'lit-html/lib/lit-extended';
import { Property } from './decorators';
import { TemplateResult } from 'lit-html';
import { attributeNameFromProperty, propertyNameFromAttribute } from './utils';
/** Extending classes are expected to define `template` and `styles`. */

@@ -6,0 +6,0 @@ interface Seed {

@@ -1,6 +0,6 @@

import { attributeNameFromProperty, propertyNameFromAttribute } from './utils';
import { TemplateResult } from 'lit-html';
import { html, svg } from 'lit-html/lib/lit-extended';
import { render } from 'lit-html/lib/shady-render';
import { Property } from './decorators';
import { TemplateResult } from 'lit-html';
import { render } from 'lit-html/lib/shady-render';
import { attributeNameFromProperty, propertyNameFromAttribute } from './utils';
class Seed extends HTMLElement {

@@ -7,0 +7,0 @@ constructor() {

@@ -1,2 +0,2 @@

!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";function r(t){return t.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function i(t){return t.includes("-")?t.toLowerCase().replace(/-([a-z])/g,t=>t[1].toUpperCase()):t}function o(t){return`__${t}`}
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var s=t[r]={i:r,l:!1,exports:{}};return e[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(r,s,function(t){return e[t]}.bind(null,s));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);
/**

@@ -14,3 +14,4 @@ * @license

* http://polymer.github.io/PATENTS.txt
*/n.r(e);const s=new Map;class u{constructor(t,e,n,r=x){this.strings=t,this.values=e,this.type=n,this.partCallback=r}getHTML(){const t=this.strings.length-1;let e="",n=!0;for(let r=0;r<t;r++){const t=this.strings[r];e+=t;const i=p(t);e+=(n=i>-1?i<t.length:n)?l:c}return e+=this.strings[t]}getTemplateElement(){const t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}class a extends u{getHTML(){return`<svg>${super.getHTML()}</svg>`}getTemplateElement(){const t=super.getTemplateElement(),e=t.content,n=e.firstChild;return e.removeChild(n),N(e,n.firstChild),t}}const c=`{{lit-${String(Math.random()).slice(2)}}}`,l=`\x3c!--${c}--\x3e`,f=new RegExp(`${c}|${l}`),h=/[ \x09\x0a\x0c\x0d]([^\0-\x1F\x7F-\x9F \x09\x0a\x0c\x0d"'>=/]+)[ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*)$/;function p(t){const e=t.lastIndexOf(">");return t.indexOf("<",e+1)>-1?t.length:e}class d{constructor(t,e,n,r,i){this.type=t,this.index=e,this.name=n,this.rawName=r,this.strings=i}}const y=t=>-1!==t.index;class v{constructor(t,e){this.parts=[],this.element=e;const n=this.element.content,r=document.createTreeWalker(n,133,null,!1);let i=-1,o=0;const s=[];let u,a;for(;r.nextNode();){i++,u=a;const e=a=r.currentNode;if(1===e.nodeType){if(!e.hasAttributes())continue;const n=e.attributes;let r=0;for(let t=0;t<n.length;t++)n[t].value.indexOf(c)>=0&&r++;for(;r-- >0;){const r=t.strings[o],s=h.exec(r)[1],u=n.getNamedItem(s),a=u.value.split(f);this.parts.push(new d("attribute",i,u.name,s,a)),e.removeAttribute(u.name),o+=a.length-1}}else if(3===e.nodeType){const t=e.nodeValue;if(t.indexOf(c)<0)continue;const n=e.parentNode,r=t.split(f),u=r.length-1;o+=u;for(let t=0;t<u;t++)n.insertBefore(""===r[t]?document.createComment(""):document.createTextNode(r[t]),e),this.parts.push(new d("node",i++));n.insertBefore(""===r[u]?document.createComment(""):document.createTextNode(r[u]),e),s.push(e)}else if(8===e.nodeType&&e.nodeValue===c){const t=e.parentNode,n=e.previousSibling;null===n||n!==u||n.nodeType!==Node.TEXT_NODE?t.insertBefore(document.createComment(""),e):i--,this.parts.push(new d("node",i++)),s.push(e),null===e.nextSibling?t.insertBefore(document.createComment(""),e):i--,a=u,o++}}for(const t of s)t.parentNode.removeChild(t)}}const _=(t,e)=>m(e)?(e=e(t),g):null===e?void 0:e,m=t=>"function"==typeof t&&!0===t.__litDirective,g={},w=t=>null===t||!("object"==typeof t||"function"==typeof t);class b{constructor(t,e,n,r){this.instance=t,this.element=e,this.name=n,this.strings=r,this.size=r.length-1,this._previousValues=[]}_interpolate(t,e){const n=this.strings,r=n.length-1;let i="";for(let o=0;o<r;o++){i+=n[o];const r=_(this,t[e+o]);if(r&&r!==g&&(Array.isArray(r)||"string"!=typeof r&&r[Symbol.iterator]))for(const t of r)i+=t;else i+=r}return i+n[r]}_equalToPreviousValues(t,e){for(let n=e;n<e+this.size;n++)if(this._previousValues[n]!==t[n]||!w(t[n]))return!1;return!0}setValue(t,e){if(this._equalToPreviousValues(t,e))return;const n=this.strings;let r;2===n.length&&""===n[0]&&""===n[1]?(r=_(this,t[e]),Array.isArray(r)&&(r=r.join(""))):r=this._interpolate(t,e),r!==g&&this.element.setAttribute(this.name,r),this._previousValues=t}}class T{constructor(t,e,n){this.instance=t,this.startNode=e,this.endNode=n,this._previousValue=void 0}setValue(t){if((t=_(this,t))!==g)if(w(t)){if(t===this._previousValue)return;this._setText(t)}else t instanceof u?this._setTemplateResult(t):Array.isArray(t)||t[Symbol.iterator]?this._setIterable(t):t instanceof Node?this._setNode(t):void 0!==t.then?this._setPromise(t):this._setText(t)}_insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}_setNode(t){this._previousValue!==t&&(this.clear(),this._insert(t),this._previousValue=t)}_setText(t){const e=this.startNode.nextSibling;t=void 0===t?"":t,e===this.endNode.previousSibling&&e.nodeType===Node.TEXT_NODE?e.textContent=t:this._setNode(document.createTextNode(t)),this._previousValue=t}_setTemplateResult(t){const e=this.instance._getTemplate(t);let n;this._previousValue&&this._previousValue.template===e?n=this._previousValue:(n=new S(e,this.instance._partCallback,this.instance._getTemplate),this._setNode(n._clone()),this._previousValue=n),n.update(t.values)}_setIterable(t){Array.isArray(this._previousValue)||(this.clear(),this._previousValue=[]);const e=this._previousValue;let n=0;for(const r of t){let t=e[n];if(void 0===t){let r=this.startNode;if(n>0){r=e[n-1].endNode=document.createTextNode(""),this._insert(r)}t=new T(this.instance,r,this.endNode),e.push(t)}t.setValue(r),n++}if(0===n)this.clear(),this._previousValue=void 0;else if(n<e.length){const t=e[n-1];e.length=n,this.clear(t.endNode.previousSibling),t.endNode=this.endNode}}_setPromise(t){this._previousValue=t,t.then(e=>{this._previousValue===t&&this.setValue(e)})}clear(t=this.startNode){E(this.startNode.parentNode,t.nextSibling,this.endNode)}}const x=(t,e,n)=>{if("attribute"===e.type)return new b(t,n,e.name,e.strings);if("node"===e.type)return new T(t,n,n.nextSibling);throw new Error(`Unknown part type ${e.type}`)};class S{constructor(t,e,n){this._parts=[],this.template=t,this._partCallback=e,this._getTemplate=n}update(t){let e=0;for(const n of this._parts)n?void 0===n.size?(n.setValue(t[e]),e++):(n.setValue(t,e),e+=n.size):e++}_clone(){const t=this.template.element.content.cloneNode(!0),e=this.template.parts;if(e.length>0){const n=document.createTreeWalker(t,133,null,!1);let r=-1;for(let t=0;t<e.length;t++){const i=e[t],o=y(i);if(o)for(;r<i.index;)r++,n.nextNode();this._parts.push(o?this._partCallback(this,i,n.currentNode):void 0)}}return t}}const N=(t,e,n=null,r=null)=>{let i=e;for(;i!==n;){const e=i.nextSibling;t.insertBefore(i,r),i=e}},E=(t,e,n=null)=>{let r=e;for(;r!==n;){const e=r.nextSibling;t.removeChild(r),r=e}},A=(t,...e)=>new u(t,e,"html",O),k=(t,...e)=>new a(t,e,"svg",O),O=(t,e,n)=>{if("attribute"===e.type){if("on-"===e.rawName.substr(0,3)){return new class{constructor(t,e,n){this.instance=t,this.element=e,this.eventName=n}setValue(t){const e=_(this,t);e!==this._listener&&(null==e?this.element.removeEventListener(this.eventName,this):null==this._listener&&this.element.addEventListener(this.eventName,this),this._listener=e)}handleEvent(t){"function"==typeof this._listener?this._listener.call(this.element,t):"function"==typeof this._listener.handleEvent&&this._listener.handleEvent(t)}}(t,n,e.rawName.slice(3))}const r=e.name.substr(e.name.length-1);if("$"===r){const r=e.name.slice(0,-1);return new b(t,n,r,e.strings)}if("?"===r){return new class extends b{setValue(t,e){const n=this.strings;if(2!==n.length||""!==n[0]||""!==n[1])throw new Error("boolean attributes can only contain a single expression");{const n=_(this,t[e]);if(n===g)return;n?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name)}}}(t,n,e.name.slice(0,-1),e.strings)}return new class extends b{setValue(t,e){const n=this.strings;let r;this._equalToPreviousValues(t,e)||((r=2===n.length&&""===n[0]&&""===n[1]?_(this,t[e]):this._interpolate(t,e))!==g&&(this.element[this.name]=r),this._previousValues=t)}}(t,n,e.rawName,e.strings)}return x(t,e,n)};n(3);const C=[Boolean,Number,String];function V(t){return C.includes(t)}function P(t){return V(t)?"observedAttributes":"observedProperties"}function M(t,e,n){(function(t,e,n){return t.constructor[P(n)].includes(e)})(t,e,n)||t.constructor[P(n)].push(function(t,e){return V(e)?r(t):t}(e,n))}function j(t){return function(e,n){const i=t&&t.type||Reflect.getMetadata("design:type",e,n);M(e,n,i),Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get:function(t,e){const n=r(t);return function(){switch(e){case String:return this.getAttribute(n);case Number:return this.hasAttribute(n)?Number(this.getAttribute(n)):null;case Boolean:return this.hasAttribute(n);default:return this[o(t)]}}}(n,i),set:function(t,e){const n=r(t);return function(r){if(this._ignoreDefaultValue(t)&&V(e))this._ignoredDefaultAttributes[t]=!0;else{if(this._ignoredDefaultAttributes[t]||(this._ignoredDefaultAttributes[t]=!0),null===r||void 0===r||!1===r||""===r)this.removeAttribute(n);else switch(e){case String:case Number:this.setAttribute(n,String(r));break;case Boolean:this.setAttribute(n,"");break;default:this[o(t)]=r}this.render()}}}(n,i)})}}
*/
const r=new Map;class s{constructor(e,t,n,r=y){this.strings=e,this.values=t,this.type=n,this.partCallback=r}getHTML(){const e=this.strings.length-1;let t="",n=!0;for(let r=0;r<e;r++){const e=this.strings[r];t+=e;const s=c(e);t+=(n=s>-1?s<e.length:n)?l:o}return t+=this.strings[e]}getTemplateElement(){const e=document.createElement("template");return e.innerHTML=this.getHTML(),e}}class i extends s{getHTML(){return`<svg>${super.getHTML()}</svg>`}getTemplateElement(){const e=super.getTemplateElement(),t=e.content,n=t.firstChild;return t.removeChild(n),N(t,n.firstChild),e}}const o=`{{lit-${String(Math.random()).slice(2)}}}`,l=`\x3c!--${o}--\x3e`,a=new RegExp(`${o}|${l}`),u=/[ \x09\x0a\x0c\x0d]([^\0-\x1F\x7F-\x9F \x09\x0a\x0c\x0d"'>=/]+)[ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*)$/;function c(e){const t=e.lastIndexOf(">");return e.indexOf("<",t+1)>-1?e.length:t}class h{constructor(e,t,n,r,s){this.type=e,this.index=t,this.name=n,this.rawName=r,this.strings=s}}const d=e=>-1!==e.index;class f{constructor(e,t){this.parts=[],this.element=t;const n=this.element.content,r=document.createTreeWalker(n,133,null,!1);let s=-1,i=0;const l=[];let c,d;for(;r.nextNode();){s++,c=d;const t=d=r.currentNode;if(1===t.nodeType){if(!t.hasAttributes())continue;const n=t.attributes;let r=0;for(let e=0;e<n.length;e++)n[e].value.indexOf(o)>=0&&r++;for(;r-- >0;){const r=e.strings[i],o=u.exec(r)[1],l=n.getNamedItem(o),c=l.value.split(a);this.parts.push(new h("attribute",s,l.name,o,c)),t.removeAttribute(l.name),i+=c.length-1}}else if(3===t.nodeType){const e=t.nodeValue;if(e.indexOf(o)<0)continue;const n=t.parentNode,r=e.split(a),u=r.length-1;i+=u;for(let e=0;e<u;e++)n.insertBefore(""===r[e]?document.createComment(""):document.createTextNode(r[e]),t),this.parts.push(new h("node",s++));n.insertBefore(""===r[u]?document.createComment(""):document.createTextNode(r[u]),t),l.push(t)}else if(8===t.nodeType&&t.nodeValue===o){const e=t.parentNode,n=t.previousSibling;null===n||n!==c||n.nodeType!==Node.TEXT_NODE?e.insertBefore(document.createComment(""),t):s--,this.parts.push(new h("node",s++)),l.push(t),null===t.nextSibling?e.insertBefore(document.createComment(""),t):s--,d=c,i++}}for(const e of l)e.parentNode.removeChild(e)}}const p=(e,t)=>m(t)?(t=t(e),g):null===t?void 0:t,m=e=>"function"==typeof e&&!0===e.__litDirective,g={},b=e=>null===e||!("object"==typeof e||"function"==typeof e);class v{constructor(e,t,n,r){this.instance=e,this.element=t,this.name=n,this.strings=r,this.size=r.length-1,this._previousValues=[]}_interpolate(e,t){const n=this.strings,r=n.length-1;let s="";for(let i=0;i<r;i++){s+=n[i];const r=p(this,e[t+i]);if(r&&r!==g&&(Array.isArray(r)||"string"!=typeof r&&r[Symbol.iterator]))for(const e of r)s+=e;else s+=r}return s+n[r]}_equalToPreviousValues(e,t){for(let n=t;n<t+this.size;n++)if(this._previousValues[n]!==e[n]||!b(e[n]))return!1;return!0}setValue(e,t){if(this._equalToPreviousValues(e,t))return;const n=this.strings;let r;2===n.length&&""===n[0]&&""===n[1]?(r=p(this,e[t]),Array.isArray(r)&&(r=r.join(""))):r=this._interpolate(e,t),r!==g&&this.element.setAttribute(this.name,r),this._previousValues=e}}class _{constructor(e,t,n){this.instance=e,this.startNode=t,this.endNode=n,this._previousValue=void 0}setValue(e){if((e=p(this,e))!==g)if(b(e)){if(e===this._previousValue)return;this._setText(e)}else e instanceof s?this._setTemplateResult(e):Array.isArray(e)||e[Symbol.iterator]?this._setIterable(e):e instanceof Node?this._setNode(e):void 0!==e.then?this._setPromise(e):this._setText(e)}_insert(e){this.endNode.parentNode.insertBefore(e,this.endNode)}_setNode(e){this._previousValue!==e&&(this.clear(),this._insert(e),this._previousValue=e)}_setText(e){const t=this.startNode.nextSibling;e=void 0===e?"":e,t===this.endNode.previousSibling&&t.nodeType===Node.TEXT_NODE?t.textContent=e:this._setNode(document.createTextNode(e)),this._previousValue=e}_setTemplateResult(e){const t=this.instance._getTemplate(e);let n;this._previousValue&&this._previousValue.template===t?n=this._previousValue:(n=new x(t,this.instance._partCallback,this.instance._getTemplate),this._setNode(n._clone()),this._previousValue=n),n.update(e.values)}_setIterable(e){Array.isArray(this._previousValue)||(this.clear(),this._previousValue=[]);const t=this._previousValue;let n=0;for(const r of e){let e=t[n];if(void 0===e){let r=this.startNode;if(n>0){r=t[n-1].endNode=document.createTextNode(""),this._insert(r)}e=new _(this.instance,r,this.endNode),t.push(e)}e.setValue(r),n++}if(0===n)this.clear(),this._previousValue=void 0;else if(n<t.length){const e=t[n-1];t.length=n,this.clear(e.endNode.previousSibling),e.endNode=this.endNode}}_setPromise(e){this._previousValue=e,e.then(t=>{this._previousValue===e&&this.setValue(t)})}clear(e=this.startNode){w(this.startNode.parentNode,e.nextSibling,this.endNode)}}const y=(e,t,n)=>{if("attribute"===t.type)return new v(e,n,t.name,t.strings);if("node"===t.type)return new _(e,n,n.nextSibling);throw new Error(`Unknown part type ${t.type}`)};class x{constructor(e,t,n){this._parts=[],this.template=e,this._partCallback=t,this._getTemplate=n}update(e){let t=0;for(const n of this._parts)n?void 0===n.size?(n.setValue(e[t]),t++):(n.setValue(e,t),t+=n.size):t++}_clone(){const e=this.template.element.content.cloneNode(!0),t=this.template.parts;if(t.length>0){const n=document.createTreeWalker(e,133,null,!1);let r=-1;for(let e=0;e<t.length;e++){const s=t[e],i=d(s);if(i)for(;r<s.index;)r++,n.nextNode();this._parts.push(i?this._partCallback(this,s,n.currentNode):void 0)}}return e}}const N=(e,t,n=null,r=null)=>{let s=t;for(;s!==n;){const t=s.nextSibling;e.insertBefore(s,r),s=t}},w=(e,t,n=null)=>{let r=t;for(;r!==n;){const t=r.nextSibling;e.removeChild(r),r=t}},S=(e,...t)=>new s(e,t,"html",A),T=(e,...t)=>new i(e,t,"svg",A),A=(e,t,n)=>{if("attribute"===t.type){if("on-"===t.rawName.substr(0,3)){return new class{constructor(e,t,n){this.instance=e,this.element=t,this.eventName=n}setValue(e){const t=p(this,e);t!==this._listener&&(null==t?this.element.removeEventListener(this.eventName,this):null==this._listener&&this.element.addEventListener(this.eventName,this),this._listener=t)}handleEvent(e){"function"==typeof this._listener?this._listener.call(this.element,e):"function"==typeof this._listener.handleEvent&&this._listener.handleEvent(e)}}
/**

@@ -28,3 +29,3 @@ * @license

* http://polymer.github.io/PATENTS.txt
*/const L=NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT;const $=t=>{let e=1;const n=document.createTreeWalker(t,L,null,!1);for(;n.nextNode();)e++;return e},R=(t,e=-1)=>{for(let n=e+1;n<t.length;n++){const e=t[n];if(y(e))return n}return-1};
*/(e,n,t.rawName.slice(3))}const r=t.name.substr(t.name.length-1);if("$"===r){const r=t.name.slice(0,-1);return new v(e,n,r,t.strings)}if("?"===r){return new class extends v{setValue(e,t){const n=this.strings;if(2!==n.length||""!==n[0]||""!==n[1])throw new Error("boolean attributes can only contain a single expression");{const n=p(this,e[t]);if(n===g)return;n?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name)}}}(e,n,t.name.slice(0,-1),t.strings)}return new class extends v{setValue(e,t){const n=this.strings;let r;this._equalToPreviousValues(e,t)||((r=2===n.length&&""===n[0]&&""===n[1]?p(this,e[t]):this._interpolate(e,t))!==g&&(this.element[this.name]=r),this._previousValues=e)}}(e,n,t.rawName,t.strings)}return y(e,t,n)};const C=NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT;const E=e=>{let t=1;const n=document.createTreeWalker(e,C,null,!1);for(;n.nextNode();)t++;return t},V=(e,t=-1)=>{for(let n=t+1;n<e.length;n++){const t=e[n];if(d(t))return n}return-1};
/**

@@ -43,3 +44,3 @@ * @license

*/
const I=(t,e)=>`${t}--${e}`,F=t=>e=>{const n=I(e.type,t);let r=s.get(n);void 0===r&&(r=new Map,s.set(n,r));let i=r.get(e.strings);if(void 0===i){const n=e.getTemplateElement();"object"==typeof window.ShadyCSS&&window.ShadyCSS.prepareTemplateDom(n,t),i=new v(e,n),r.set(e.strings,i)}return i},B=["html","svg"];function D(t){B.forEach(e=>{const n=s.get(I(e,t));void 0!==n&&n.forEach(t=>{const{element:{content:e}}=t,n=e.querySelectorAll("style");!function(t,e){const{element:{content:n},parts:r}=t,i=document.createTreeWalker(n,L,null,!1);let o=0,s=r[0],u=-1,a=0;const c=[];let l=null;for(;i.nextNode();){u++;const t=i.currentNode;for(t.previousSibling===l&&(l=null),e.has(t)&&(c.push(t),null===l&&(l=t)),null!==l&&a++;void 0!==s&&s.index===u;)s.index=null!==l?-1:s.index-a,s=r[++o]}c.forEach(t=>t.parentNode.removeChild(t))}(t,new Set(Array.from(n)))})})}const z=new Set,W=(t,e,n)=>{if(!z.has(n)){z.add(n);const r=document.createElement("template");if(Array.from(t.querySelectorAll("style")).forEach(t=>{r.content.appendChild(t)}),window.ShadyCSS.prepareTemplateStyles(r,n),D(n),window.ShadyCSS.nativeShadow){const n=r.content.querySelector("style");null!==n&&(t.insertBefore(n,t.firstChild),function(t,e,n=null){const{element:{content:r},parts:i}=t;if(null===n||void 0===n)return void r.appendChild(e);const o=document.createTreeWalker(r,L,null,!1);let s=R(i),u=0,a=-1;for(;o.nextNode();)for(a++,o.currentNode===n&&(n.parentNode.insertBefore(e,n),u=$(e));-1!==s&&i[s].index===a;){if(u>0){for(;-1!==s;)i[s].index+=u,s=R(i,s);return}s=R(i,s)}}(e,n.cloneNode(!0),e.element.content.firstChild))}}};n.d(e,"Seed",function(){return H}),n.d(e,"attributeNameFromProperty",function(){return r}),n.d(e,"html",function(){return A}),n.d(e,"Prop",function(){return j}),n.d(e,"Property",function(){return j}),n.d(e,"propertyNameFromAttribute",function(){return i}),n.d(e,"svg",function(){return k}),n.d(e,"TemplateResult",function(){return u});class H extends HTMLElement{constructor(){super(),this._connected=!1,this._ignoredDefaultAttributes={},this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this.upgradeProperties(),this.upgradePropertyAttributes(),this.render()}disconnectedCallback(){this._connected=!1}attributeChangedCallback(t,e,n){this.render()}render(){this._connected&&function(t,e,n){const r=F(n),i=r(t);let o=e.__templateInstance;if(void 0!==o&&o.template===i&&o._partCallback===t.partCallback)return void o.update(t.values);o=new S(i,t.partCallback,r),e.__templateInstance=o;const s=o._clone();o.update(t.values);const u=e instanceof ShadowRoot?e.host:void 0;void 0!==u&&"object"==typeof window.ShadyCSS&&(W(s,i,n),window.ShadyCSS.styleElement(u)),E(e,e.firstChild),e.appendChild(s)}(this._template,this.shadowRoot,this.tagName.toLowerCase())}$(t){return this.shadowRoot.querySelector(t)}$$(t){return this.shadowRoot.querySelectorAll(t)}get _template(){return A`
const O=(e,t)=>`${e}--${t}`,P=e=>t=>{const n=O(t.type,e);let s=r.get(n);void 0===s&&(s=new Map,r.set(n,s));let i=s.get(t.strings);if(void 0===i){const n=t.getTemplateElement();"object"==typeof window.ShadyCSS&&window.ShadyCSS.prepareTemplateDom(n,e),i=new f(t,n),s.set(t.strings,i)}return i},M=["html","svg"];function k(e){M.forEach(t=>{const n=r.get(O(t,e));void 0!==n&&n.forEach(e=>{const{element:{content:t}}=e,n=t.querySelectorAll("style");!function(e,t){const{element:{content:n},parts:r}=e,s=document.createTreeWalker(n,C,null,!1);let i=0,o=r[0],l=-1,a=0;const u=[];let c=null;for(;s.nextNode();){l++;const e=s.currentNode;for(e.previousSibling===c&&(c=null),t.has(e)&&(u.push(e),null===c&&(c=e)),null!==c&&a++;void 0!==o&&o.index===l;)o.index=null!==c?-1:o.index-a,o=r[++i]}u.forEach(e=>e.parentNode.removeChild(e))}(e,new Set(Array.from(n)))})})}const $=new Set,j=(e,t,n)=>{if(!$.has(n)){$.add(n);const r=document.createElement("template");if(Array.from(e.querySelectorAll("style")).forEach(e=>{r.content.appendChild(e)}),window.ShadyCSS.prepareTemplateStyles(r,n),k(n),window.ShadyCSS.nativeShadow){const n=r.content.querySelector("style");null!==n&&(e.insertBefore(n,e.firstChild),function(e,t,n=null){const{element:{content:r},parts:s}=e;if(null===n||void 0===n)return void r.appendChild(t);const i=document.createTreeWalker(r,C,null,!1);let o=V(s),l=0,a=-1;for(;i.nextNode();)for(a++,i.currentNode===n&&(n.parentNode.insertBefore(t,n),l=E(t));-1!==o&&s[o].index===a;){if(l>0){for(;-1!==o;)s[o].index+=l,o=V(s,o);return}o=V(s,o)}}(t,n.cloneNode(!0),t.element.content.firstChild))}}};const B=Object.assign(Reflect,{decorate:function(e,t,n,r){if(0===e.length)throw new TypeError;if("function"==typeof t)return function(e,t){return e.reverse().forEach(e=>{const n=e(t);n&&(t=n)}),t}(e,t);if(void 0!==n)return function(e,t,n,r){return e.reverse().forEach(e=>{r=e(t,n,r)||r}),r}(e,t,n,r);return},defineMetadata:function(e,t,n,r){return D(e,t,n,r)},getMetadata:function(e,t,n){return function e(t,n,r){return H(t,n,r)?H(t,n,r):Object.getPrototypeOf(n)?e(t,Object.getPrototypeOf(n),r):void 0}(e,t,n)},getOwnMetadata:function(e,t,n){return H(e,t,n)},hasOwnMetadata:function(e,t,n){return!!H(e,t,n)},metadata:function(e,t){return function(n,r){D(e,t,n,r)}}}),L=new WeakMap;function D(e,t,n,r){if(r&&!["string","symbol"].includes(typeof r))throw new TypeError;(R(n,r)||function(e,t){const n=new Map;L.set(e,n);const r=new Map;return n.set(t,r),r}(n,r)).set(e,t)}function H(e,t,n){if(void 0===t)throw new TypeError;const r=R(t,n);return r&&r.get(e)}function R(e,t){return L.get(e)&&L.get(e).get(t)}function W(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function q(e){return e.includes("-")?e.toLowerCase().replace(/-([a-z])/g,e=>e[1].toUpperCase()):e}function F(e){return`__${e}`}const z=[Boolean,Number,String];function I(e){return z.includes(e)}function X(e){return I(e)?"observedAttributes":"observedProperties"}function U(e,t,n){(function(e,t,n){return e.constructor[X(n)].includes(t)})(e,t,n)||e.constructor[X(n)].push(function(e,t){return I(t)?W(e):e}(t,n))}function Z(e){return function(t,n){const r=e&&e.type||B.getMetadata("design:type",t,n);U(t,n,r),Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:function(e,t){const n=W(e);return function(){switch(t){case String:return this.getAttribute(n);case Number:return this.hasAttribute(n)?Number(this.getAttribute(n)):null;case Boolean:return this.hasAttribute(n);default:return this[F(e)]}}}(n,r),set:function(e,t){const n=W(e);return function(r){if(this._ignoreDefaultValue(e)&&I(t))this._ignoredDefaultAttributes[e]=!0;else{if(this._ignoredDefaultAttributes[e]||(this._ignoredDefaultAttributes[e]=!0),null===r||void 0===r||!1===r||""===r)this.removeAttribute(n);else switch(t){case String:case Number:this.setAttribute(n,String(r));break;case Boolean:this.setAttribute(n,"");break;default:this[F(e)]=r}this.render()}}}(n,r)})}}n.d(t,"Seed",function(){return J}),n.d(t,"attributeNameFromProperty",function(){return W}),n.d(t,"html",function(){return S}),n.d(t,"Prop",function(){return Z}),n.d(t,"Property",function(){return Z}),n.d(t,"propertyNameFromAttribute",function(){return q}),n.d(t,"svg",function(){return T}),n.d(t,"TemplateResult",function(){return s});class J extends HTMLElement{constructor(){super(),this._connected=!1,this._ignoredDefaultAttributes={},this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this.upgradeProperties(),this.upgradePropertyAttributes(),this.render()}disconnectedCallback(){this._connected=!1}attributeChangedCallback(e,t,n){this.render()}render(){this._connected&&function(e,t,n){const r=P(n),s=r(e);let i=t.__templateInstance;if(void 0!==i&&i.template===s&&i._partCallback===e.partCallback)return void i.update(e.values);i=new x(s,e.partCallback,r),t.__templateInstance=i;const o=i._clone();i.update(e.values);const l=t instanceof ShadowRoot?t.host:void 0;void 0!==l&&"object"==typeof window.ShadyCSS&&(j(o,s,n),window.ShadyCSS.styleElement(l)),w(t,t.firstChild),t.appendChild(o)}(this._template,this.shadowRoot,this.tagName.toLowerCase())}$(e){return this.shadowRoot.querySelector(e)}$$(e){return this.shadowRoot.querySelectorAll(e)}get _template(){return S`
<style>

@@ -58,18 +59,3 @@ :host {

<!-- Built, tested, and published with Nutmeg. https://nutmeg.tools -->
`}upgradeProperties(){const t=this;t.constructor.observedAttributes.concat(t.constructor.observedProperties).forEach(e=>{if(t.hasOwnProperty(e)){let n=t[e];delete t[e],t[e]=n}})}upgradePropertyAttributes(){const t=this;t.constructor.observedProperties.forEach(e=>{const n=r(e);t.hasAttribute(n)&&(t[e]=JSON.parse(t.getAttribute(n)),t.removeAttribute(n))})}_ignoreDefaultValue(t){return!this._connected&&!this._ignoredDefaultAttributes[t]&&this.hasAttribute(r(t))}}H.observedProperties=[],H.observedAttributes=[]},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var a,c=[],l=!1,f=-1;function h(){l&&a&&(l=!1,a.length?c=a.concat(c):f=-1,c.length&&p())}function p(){if(!l){var t=u(h);l=!0;for(var e=c.length;e;){for(a=c,c=[];++f<e;)a&&a[f].run();f=-1,e=c.length}a=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function y(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new d(t,e)),1!==c.length||l||u(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){(function(t,e){
/*! *****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var n;!function(n){!function(r){var i="object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),o=s(n);function s(t,e){return function(n,r){"function"!=typeof t[n]&&Object.defineProperty(t,n,{configurable:!0,writable:!0,value:r}),e&&e(n,r)}}void 0===i.Reflect?i.Reflect=n:o=s(i.Reflect,o),function(e){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,u={__proto__:[]}instanceof Array,a=!s&&!u,c={create:s?function(){return j(Object.create(null))}:u?function(){return j({__proto__:null})}:function(){return j({})},has:a?function(t,e){return n.call(t,e)}:function(t,e){return e in t},get:a?function(t,e){return n.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},l=Object.getPrototypeOf(Function),f="object"==typeof t&&t.env&&"true"===t.env.REFLECT_METADATA_USE_MAP_POLYFILL,h=f||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var t={},e=[],n=function(){function t(t,e,n){this._index=0,this._keys=t,this._values=e,this._selector=n}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var n=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var n=this._find(t,!0);return this._values[n]=e,this},e.prototype.delete=function(e){var n=this._find(e,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new n(this._keys,this._values,r)},e.prototype.values=function(){return new n(this._keys,this._values,i)},e.prototype.entries=function(){return new n(this._keys,this._values,s)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){return this._cacheKey!==t&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=t)),this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function r(t,e){return t}function i(t,e){return e}function s(t,e){return[t,e]}}():Map,p=f||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.values()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}():Set,d=new(f||"function"!=typeof WeakMap?function(){var t=16,e=c.create(),r=i();return function(){function t(){this._key=i()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){var n=o(t,!0);return n[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=i()},t}();function i(){var t;do{t="@@WeakMap@@"+u()}while(c.has(e,t));return e[t]=!0,t}function o(t,e){if(!n.call(t,r)){if(!e)return;Object.defineProperty(t,r,{value:c.create()})}return t[r]}function s(t,e){for(var n=0;n<e;++n)t[n]=255*Math.random()|0;return t}function u(){var e=function(t){if("function"==typeof Uint8Array)return"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(t)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(t)):s(new Uint8Array(t),t);return s(new Array(t),t)}(t);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var n="",r=0;r<t;++r){var i=e[r];4!==r&&6!==r&&8!==r||(n+="-"),i<16&&(n+="0"),n+=i.toString(16).toLowerCase()}return n}}():WeakMap);function y(t,e,n){var r=d.get(t);if(b(r)){if(!n)return;r=new h,d.set(t,r)}var i=r.get(e);if(b(i)){if(!n)return;i=new h,r.set(e,i)}return i}function v(t,e,n){var r=y(e,n,!1);return!b(r)&&function(t){return!!t}(r.has(t))}function _(t,e,n){var r=y(e,n,!1);if(!b(r))return r.get(t)}function m(t,e,n,r){var i=y(n,r,!0);i.set(t,e)}function g(t,e){var n=[],r=y(t,e,!1);if(b(r))return n;for(var i=r.keys(),s=function(t){var e=O(t,o);if(!A(e))throw new TypeError;var n=e.call(t);if(!x(n))throw new TypeError;return n}(i),u=0;;){var a=V(s);if(!a)return n.length=u,n;var c=C(a);try{n[u]=c}catch(t){try{P(s)}finally{throw t}}u++}}function w(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function b(t){return void 0===t}function T(t){return null===t}function x(t){return"object"==typeof t?null!==t:"function"==typeof t}function S(t,e){switch(w(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var n=3===e?"string":5===e?"number":"default",r=O(t,i);if(void 0!==r){var o=r.call(t,n);if(x(o))throw new TypeError;return o}return function(t,e){if("string"===e){var n=t.toString;if(A(n)){var r=n.call(t);if(!x(r))return r}var i=t.valueOf;if(A(i)){var r=i.call(t);if(!x(r))return r}}else{var i=t.valueOf;if(A(i)){var r=i.call(t);if(!x(r))return r}var o=t.toString;if(A(o)){var r=o.call(t);if(!x(r))return r}}throw new TypeError}(t,"default"===n?"number":n)}function N(t){var e=S(t,3);return function(t){return"symbol"==typeof t}(e)?e:function(t){return""+t}(e)}function E(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function A(t){return"function"==typeof t}function k(t){return"function"==typeof t}function O(t,e){var n=t[e];if(void 0!==n&&null!==n){if(!A(n))throw new TypeError;return n}}function C(t){return t.value}function V(t){var e=t.next();return!e.done&&e}function P(t){var e=t.return;e&&e.call(t)}function M(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===l)return e;if(e!==l)return e;var n=t.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return e;var i=r.constructor;return"function"!=typeof i?e:i===t?e:i}function j(t){return t.__=void 0,delete t.__,t}e("decorate",function(t,e,n,r){if(b(n)){if(!E(t))throw new TypeError;if(!k(e))throw new TypeError;return function(t,e){for(var n=t.length-1;n>=0;--n){var r=t[n],i=r(e);if(!b(i)&&!T(i)){if(!k(i))throw new TypeError;e=i}}return e}(t,e)}if(!E(t))throw new TypeError;if(!x(e))throw new TypeError;if(!x(r)&&!b(r)&&!T(r))throw new TypeError;return T(r)&&(r=void 0),n=N(n),function(t,e,n,r){for(var i=t.length-1;i>=0;--i){var o=t[i],s=o(e,n,r);if(!b(s)&&!T(s)){if(!x(s))throw new TypeError;r=s}}return r}(t,e,n,r)}),e("metadata",function(t,e){return function(n,r){if(!x(n))throw new TypeError;if(!b(r)&&!function(t){switch(w(t)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(t,e,n,r)}}),e("defineMetadata",function(t,e,n,r){if(!x(n))throw new TypeError;b(r)||(r=N(r));return m(t,e,n,r)}),e("hasMetadata",function(t,e,n){if(!x(e))throw new TypeError;b(n)||(n=N(n));return function t(e,n,r){var i=v(e,n,r);if(i)return!0;var o=M(n);if(!T(o))return t(e,o,r);return!1}(t,e,n)}),e("hasOwnMetadata",function(t,e,n){if(!x(e))throw new TypeError;b(n)||(n=N(n));return v(t,e,n)}),e("getMetadata",function(t,e,n){if(!x(e))throw new TypeError;b(n)||(n=N(n));return function t(e,n,r){var i=v(e,n,r);if(i)return _(e,n,r);var o=M(n);if(!T(o))return t(e,o,r);return}(t,e,n)}),e("getOwnMetadata",function(t,e,n){if(!x(e))throw new TypeError;b(n)||(n=N(n));return _(t,e,n)}),e("getMetadataKeys",function(t,e){if(!x(t))throw new TypeError;b(e)||(e=N(e));return function t(e,n){var r=g(e,n);var i=M(e);if(null===i)return r;var o=t(i,n);if(o.length<=0)return r;if(r.length<=0)return o;var s=new p;var u=[];for(var a=0,c=r;a<c.length;a++){var l=c[a],f=s.has(l);f||(s.add(l),u.push(l))}for(var h=0,d=o;h<d.length;h++){var l=d[h],f=s.has(l);f||(s.add(l),u.push(l))}return u}(t,e)}),e("getOwnMetadataKeys",function(t,e){if(!x(t))throw new TypeError;b(e)||(e=N(e));return g(t,e)}),e("deleteMetadata",function(t,e,n){if(!x(e))throw new TypeError;b(n)||(n=N(n));var r=y(e,n,!1);if(b(r))return!1;if(!r.delete(t))return!1;if(r.size>0)return!0;var i=d.get(e);return i.delete(n),i.size>0||(d.delete(e),!0)})}(o)}()}(n||(n={}))}).call(this,n(2),n(1))}]);
`}upgradeProperties(){const e=this;e.constructor.observedAttributes.concat(e.constructor.observedProperties).forEach(t=>{if(e.hasOwnProperty(t)){let n=e[t];delete e[t],e[t]=n}})}upgradePropertyAttributes(){const e=this;e.constructor.observedProperties.forEach(t=>{const n=W(t);e.hasAttribute(n)&&(e[t]=JSON.parse(e.getAttribute(n)),e.removeAttribute(n))})}_ignoreDefaultValue(e){return!this._connected&&!this._ignoredDefaultAttributes[e]&&this.hasAttribute(W(e))}}J.observedProperties=[],J.observedAttributes=[]}]);
//# sourceMappingURL=seed.min.js.map
{
"name": "@nutmeg/seed",
"version": "0.12.2",
"version": "0.13.0",
"description": "Nutmeg Web Component Seed",

@@ -47,13 +47,13 @@ "main": "dist/seed.js",

"dependencies": {
"lit-html": "0.10.2",
"reflect-metadata": "0.1.12"
"@abraham/reflection": "0.3.0",
"lit-html": "0.10.2"
},
"devDependencies": {
"@types/chai": "4.1.4",
"@types/mocha": "5.2.4",
"@types/node": "10.5.1",
"@types/webpack": "4.4.4",
"@webcomponents/webcomponentsjs": "2.0.2",
"@types/mocha": "5.2.5",
"@types/node": "10.5.2",
"@types/webpack": "4.4.8",
"@webcomponents/webcomponentsjs": "2.0.3",
"chai": "4.1.2",
"karma": "2.0.4",
"karma": "2.0.5",
"karma-chai": "0.1.0",

@@ -64,12 +64,12 @@ "karma-chrome-launcher": "2.2.0",

"karma-sinon": "1.0.5",
"karma-typescript": "3.0.12",
"karma-typescript": "3.0.13",
"karma-typescript-es6-transform": "1.0.4",
"mocha": "5.2.0",
"sinon": "6.0.1",
"sinon": "6.1.4",
"typescript": "2.9.2",
"uglifyjs-webpack-plugin": "1.2.7",
"webpack": "4.14.0",
"webpack": "4.16.2",
"webpack-bundle-analyzer": "2.13.1",
"webpack-cli": "3.0.8"
"webpack-cli": "3.1.0"
}
}

@@ -1,7 +0,5 @@

import 'reflect-metadata';
import { Reflection as Reflect } from '@abraham/reflection';
import { Seed } from './seed';
import { attributeNameFromProperty, privatePropertyName } from './utils';
import { Seed } from './seed';
const primitiveTypes = [Boolean, Number, String];

@@ -8,0 +6,0 @@

@@ -1,7 +0,6 @@

import { attributeNameFromProperty, propertyNameFromAttribute } from './utils';
import { TemplateResult } from 'lit-html';
import { html, svg } from 'lit-html/lib/lit-extended';
import { render } from 'lit-html/lib/shady-render';
import { Property } from './decorators';
import { TemplateResult } from 'lit-html';
import { render } from 'lit-html/lib/shady-render';
import { attributeNameFromProperty, propertyNameFromAttribute } from './utils';

@@ -111,11 +110,2 @@ /** Extending classes are expected to define `template` and `styles`. */

export {
attributeNameFromProperty,
html,
Property as Prop,
Property,
propertyNameFromAttribute,
Seed,
svg,
TemplateResult,
};
export { attributeNameFromProperty, html, Property as Prop, Property, propertyNameFromAttribute, Seed, svg, TemplateResult, };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc