New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tradeshift/elements

Package Overview
Dependencies
Maintainers
2
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tradeshift/elements - npm Package Compare versions

Comparing version 0.19.3 to 0.20.0

lib/core.umd.js.map

4

lib/core.esm.js

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

function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function e(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function s(t,e,n){return(s=o()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&i(o,n.prototype),o}).apply(null,arguments)}function a(t){var e="function"==typeof Map?new Map:void 0;return(a=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,o)}function o(){return s(t,arguments,r(this).constructor)}return o.prototype=Object.create(t.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),i(o,t)})(t)}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}
function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function e(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function s(t,e,n){return(s=o()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&i(o,n.prototype),o}).apply(null,arguments)}function a(t){var e="function"==typeof Map?new Map:void 0;return(a=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,o)}function o(){return s(t,arguments,r(this).constructor)}return o.prototype=Object.create(t.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),i(o,t)})(t)}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}
/**

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

*/
var E=new WeakMap,P=function(t){return"function"==typeof t&&E.has(t)},x={},C={},A=function(){function t(t,e,n){this.__parts=[],this.template=t,this.processor=e,this.options=n}var e=t.prototype;return e.update=function(t){for(var e,n=0,r=l(this.__parts);!(e=r()).done;){var i=e.value;void 0!==i&&i.setValue(t[n]),n++}for(var o,s=l(this.__parts);!(o=s()).done;){var a=o.value;void 0!==a&&a.commit()}},e._clone=function(){for(var t,e=c?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],r=this.template.parts,i=document.createTreeWalker(e,133,null,!1),o=0,s=0,a=i.nextNode();o<r.length;)if(t=r[o],m(t)){for(;s<t.index;)s++,"TEMPLATE"===a.nodeName&&(n.push(a),i.currentNode=a.content),null===(a=i.nextNode())&&(i.currentNode=n.pop(),a=i.nextNode());if("node"===t.type){var u=this.processor.handleTextExpression(this.options);u.insertAfterNode(a.previousSibling),this.__parts.push(u)}else{var l;(l=this.__parts).push.apply(l,this.processor.handleAttributeExpressions(a,t.name,t.strings,this.options))}o++}else this.__parts.push(void 0),o++;return c&&(document.adoptNode(e),customElements.upgrade(e)),e},t}(),N=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:function(t){return t}}),T=" "+h+" ",O=function(){function t(t,e,n,r){this.strings=t,this.values=e,this.type=n,this.processor=r}var e=t.prototype;return e.getHTML=function(){for(var t=this.strings.length-1,e="",n=!1,r=0;r<t;r++){var i=this.strings[r],o=i.lastIndexOf("\x3c!--");n=(o>-1||n)&&-1===i.indexOf("--\x3e",o+1);var s=g.exec(i);e+=null===s?i+(n?T:d):i.substr(0,s.index)+s[1]+s[2]+"$lit$"+s[3]+h}return e+=this.strings[t]},e.getTemplateElement=function(){var t=document.createElement("template"),e=this.getHTML();return void 0!==N&&(e=N.createHTML(e)),t.innerHTML=e,t},t}(),R=function(t){return null===t||!("object"==typeof t||"function"==typeof t)},k=function(t){return Array.isArray(t)||!(!t||!t[Symbol.iterator])},U=function(){function t(t,e,n){this.dirty=!0,this.element=t,this.name=e,this.strings=n,this.parts=[];for(var r=0;r<n.length-1;r++)this.parts[r]=this._createPart()}var e=t.prototype;return e._createPart=function(){return new V(this)},e._getValue=function(){var t=this.strings,e=t.length-1,n=this.parts;if(1===e&&""===t[0]&&""===t[1]){var r=n[0].value;if("symbol"==typeof r)return String(r);if("string"==typeof r||!k(r))return r}for(var i="",o=0;o<e;o++){i+=t[o];var s=n[o];if(void 0!==s){var a=s.value;if(R(a)||!k(a))i+="string"==typeof a?a:String(a);else for(var u,c=l(a);!(u=c()).done;){var p=u.value;i+="string"==typeof p?p:String(p)}}}return i+=t[e]},e.commit=function(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))},t}(),V=function(){function t(t){this.value=void 0,this.committer=t}var e=t.prototype;return e.setValue=function(t){t===x||R(t)&&t===this.value||(this.value=t,P(t)||(this.committer.dirty=!0))},e.commit=function(){for(;P(this.value);){var t=this.value;this.value=x,t(this)}this.value!==x&&this.committer.commit()},t}(),L=function(){function t(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}var e=t.prototype;return e.appendInto=function(t){this.startNode=t.appendChild(_()),this.endNode=t.appendChild(_())},e.insertAfterNode=function(t){this.startNode=t,this.endNode=t.nextSibling},e.appendIntoPart=function(t){t.__insert(this.startNode=_()),t.__insert(this.endNode=_())},e.insertAfterPart=function(t){t.__insert(this.startNode=_()),this.endNode=t.endNode,t.endNode=this.startNode},e.setValue=function(t){this.__pendingValue=t},e.commit=function(){if(null!==this.startNode.parentNode){for(;P(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=x,t(this)}var e=this.__pendingValue;e!==x&&(R(e)?e!==this.value&&this.__commitText(e):e instanceof O?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):k(e)?this.__commitIterable(e):e===C?(this.value=C,this.clear()):this.__commitText(e))}},e.__insert=function(t){this.endNode.parentNode.insertBefore(t,this.endNode)},e.__commitNode=function(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)},e.__commitText=function(t){var e=this.startNode.nextSibling,n="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=n:this.__commitNode(document.createTextNode(n)),this.value=t},e.__commitTemplateResult=function(t){var e=this.options.templateFactory(t);if(this.value instanceof A&&this.value.template===e)this.value.update(t.values);else{var n=new A(e,t.processor,this.options),r=n._clone();n.update(t.values),this.__commitNode(r),this.value=n}},e.__commitIterable=function(e){Array.isArray(this.value)||(this.value=[],this.clear());for(var n,r,i=this.value,o=0,s=l(e);!(r=s()).done;){var a=r.value;void 0===(n=i[o])&&(n=new t(this.options),i.push(n),0===o?n.appendIntoPart(this):n.insertAfterPart(i[o-1])),n.setValue(a),n.commit(),o++}o<i.length&&(i.length=o,this.clear(n&&n.endNode))},e.clear=function(t){void 0===t&&(t=this.startNode),p(this.startNode.parentNode,t.nextSibling,this.endNode)},t}(),M=function(){function t(t,e,n){if(this.value=void 0,this.__pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=n}var e=t.prototype;return e.setValue=function(t){this.__pendingValue=t},e.commit=function(){for(;P(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=x,t(this)}if(this.__pendingValue!==x){var e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=x}},t}(),j=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.single=2===r.length&&""===r[0]&&""===r[1],i}n(e,t);var r=e.prototype;return r._createPart=function(){return new D(this)},r._getValue=function(){return this.single?this.parts[0].value:t.prototype._getValue.call(this)},r.commit=function(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())},e}(U),D=function(t){function e(){return t.apply(this,arguments)||this}return n(e,t),e}(V),I=!1;!function(){try{var t={get capture(){return I=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}}();var W=function(){function t(t,e,n){var r=this;this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=n,this.__boundHandleEvent=function(t){return r.handleEvent(t)}}var e=t.prototype;return e.setValue=function(t){this.__pendingValue=t},e.commit=function(){for(;P(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=x,t(this)}if(this.__pendingValue!==x){var e=this.__pendingValue,n=this.value,r=null==e||null!=n&&(e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive);r&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),null==e||null!=n&&!r||(this.__options=z(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=x}},e.handleEvent=function(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)},t}(),z=function(t){return t&&(I?{capture:t.capture,passive:t.passive,once:t.once}:t.capture)};
var E=new WeakMap,P=function(t){return"function"==typeof t&&E.has(t)},x={},C={},A=function(){function t(t,e,n){this.__parts=[],this.template=t,this.processor=e,this.options=n}var e=t.prototype;return e.update=function(t){for(var e,n=0,r=l(this.__parts);!(e=r()).done;){var i=e.value;void 0!==i&&i.setValue(t[n]),n++}for(var o,s=l(this.__parts);!(o=s()).done;){var a=o.value;void 0!==a&&a.commit()}},e._clone=function(){for(var t,e=c?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],r=this.template.parts,i=document.createTreeWalker(e,133,null,!1),o=0,s=0,a=i.nextNode();o<r.length;)if(t=r[o],m(t)){for(;s<t.index;)s++,"TEMPLATE"===a.nodeName&&(n.push(a),i.currentNode=a.content),null===(a=i.nextNode())&&(i.currentNode=n.pop(),a=i.nextNode());if("node"===t.type){var u=this.processor.handleTextExpression(this.options);u.insertAfterNode(a.previousSibling),this.__parts.push(u)}else{var l;(l=this.__parts).push.apply(l,this.processor.handleAttributeExpressions(a,t.name,t.strings,this.options))}o++}else this.__parts.push(void 0),o++;return c&&(document.adoptNode(e),customElements.upgrade(e)),e},t}(),N=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:function(t){return t}}),T=" "+h+" ",O=function(){function t(t,e,n,r){this.strings=t,this.values=e,this.type=n,this.processor=r}var e=t.prototype;return e.getHTML=function(){for(var t=this.strings.length-1,e="",n=!1,r=0;r<t;r++){var i=this.strings[r],o=i.lastIndexOf("\x3c!--");n=(o>-1||n)&&-1===i.indexOf("--\x3e",o+1);var s=g.exec(i);e+=null===s?i+(n?T:d):i.substr(0,s.index)+s[1]+s[2]+"$lit$"+s[3]+h}return e+=this.strings[t]},e.getTemplateElement=function(){var t=document.createElement("template"),e=this.getHTML();return void 0!==N&&(e=N.createHTML(e)),t.innerHTML=e,t},t}(),R=function(t){return null===t||!("object"==typeof t||"function"==typeof t)},k=function(t){return Array.isArray(t)||!(!t||!t[Symbol.iterator])},U=function(){function t(t,e,n){this.dirty=!0,this.element=t,this.name=e,this.strings=n,this.parts=[];for(var r=0;r<n.length-1;r++)this.parts[r]=this._createPart()}var e=t.prototype;return e._createPart=function(){return new V(this)},e._getValue=function(){var t=this.strings,e=t.length-1,n=this.parts;if(1===e&&""===t[0]&&""===t[1]){var r=n[0].value;if("symbol"==typeof r)return String(r);if("string"==typeof r||!k(r))return r}for(var i="",o=0;o<e;o++){i+=t[o];var s=n[o];if(void 0!==s){var a=s.value;if(R(a)||!k(a))i+="string"==typeof a?a:String(a);else for(var u,c=l(a);!(u=c()).done;){var p=u.value;i+="string"==typeof p?p:String(p)}}}return i+=t[e]},e.commit=function(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))},t}(),V=function(){function t(t){this.value=void 0,this.committer=t}var e=t.prototype;return e.setValue=function(t){t===x||R(t)&&t===this.value||(this.value=t,P(t)||(this.committer.dirty=!0))},e.commit=function(){for(;P(this.value);){var t=this.value;this.value=x,t(this)}this.value!==x&&this.committer.commit()},t}(),L=function(){function t(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}var e=t.prototype;return e.appendInto=function(t){this.startNode=t.appendChild(_()),this.endNode=t.appendChild(_())},e.insertAfterNode=function(t){this.startNode=t,this.endNode=t.nextSibling},e.appendIntoPart=function(t){t.__insert(this.startNode=_()),t.__insert(this.endNode=_())},e.insertAfterPart=function(t){t.__insert(this.startNode=_()),this.endNode=t.endNode,t.endNode=this.startNode},e.setValue=function(t){this.__pendingValue=t},e.commit=function(){if(null!==this.startNode.parentNode){for(;P(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=x,t(this)}var e=this.__pendingValue;e!==x&&(R(e)?e!==this.value&&this.__commitText(e):e instanceof O?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):k(e)?this.__commitIterable(e):e===C?(this.value=C,this.clear()):this.__commitText(e))}},e.__insert=function(t){this.endNode.parentNode.insertBefore(t,this.endNode)},e.__commitNode=function(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)},e.__commitText=function(t){var e=this.startNode.nextSibling,n="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=n:this.__commitNode(document.createTextNode(n)),this.value=t},e.__commitTemplateResult=function(t){var e=this.options.templateFactory(t);if(this.value instanceof A&&this.value.template===e)this.value.update(t.values);else{var n=new A(e,t.processor,this.options),r=n._clone();n.update(t.values),this.__commitNode(r),this.value=n}},e.__commitIterable=function(e){Array.isArray(this.value)||(this.value=[],this.clear());for(var n,r,i=this.value,o=0,s=l(e);!(r=s()).done;){var a=r.value;void 0===(n=i[o])&&(n=new t(this.options),i.push(n),0===o?n.appendIntoPart(this):n.insertAfterPart(i[o-1])),n.setValue(a),n.commit(),o++}o<i.length&&(i.length=o,this.clear(n&&n.endNode))},e.clear=function(t){void 0===t&&(t=this.startNode),p(this.startNode.parentNode,t.nextSibling,this.endNode)},t}(),M=function(){function t(t,e,n){if(this.value=void 0,this.__pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=n}var e=t.prototype;return e.setValue=function(t){this.__pendingValue=t},e.commit=function(){for(;P(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=x,t(this)}if(this.__pendingValue!==x){var e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=x}},t}(),j=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.single=2===r.length&&""===r[0]&&""===r[1],i}n(e,t);var r=e.prototype;return r._createPart=function(){return new I(this)},r._getValue=function(){return this.single?this.parts[0].value:t.prototype._getValue.call(this)},r.commit=function(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())},e}(U),I=function(t){function e(){return t.apply(this,arguments)||this}return n(e,t),e}(V),D=!1;!function(){try{var t={get capture(){return D=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}}();var W=function(){function t(t,e,n){var r=this;this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=n,this.__boundHandleEvent=function(t){return r.handleEvent(t)}}var e=t.prototype;return e.setValue=function(t){this.__pendingValue=t},e.commit=function(){for(;P(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=x,t(this)}if(this.__pendingValue!==x){var e=this.__pendingValue,n=this.value,r=null==e||null!=n&&(e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive);r&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),null==e||null!=n&&!r||(this.__options=z(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=x}},e.handleEvent=function(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)},t}(),z=function(t){return t&&(D?{capture:t.capture,passive:t.passive,once:t.once}:t.capture)};
/**

@@ -31,0 +31,0 @@ * @license

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).ts=t.ts||{},t.ts.elements=t.ts.elements||{}))}(this,(function(t){"use strict";function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function a(t,e,n){return(a=s()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&o(i,n.prototype),i}).apply(null,arguments)}function u(t){var e="function"==typeof Map?new Map:void 0;return(u=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return a(t,arguments,i(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o(r,t)})(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).ts=t.ts||{},t.ts.elements=t.ts.elements||{}))}(this,(function(t){"use strict";function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,o(t,e)}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function a(t,e,n){return(a=s()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&o(i,n.prototype),i}).apply(null,arguments)}function u(t){var e="function"==typeof Map?new Map:void 0;return(u=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return a(t,arguments,i(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o(r,t)})(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}
/**

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

* http://polymer.github.io/PATENTS.txt
*/var p="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,d=function(t,e,n){for(void 0===n&&(n=null);e!==n;){var r=e.nextSibling;t.removeChild(e),e=r}},h="{{lit-"+String(Math.random()).slice(2)+"}}",f="\x3c!--"+h+"--\x3e",v=new RegExp(h+"|"+f),y="$lit$",m=function(t,e){this.parts=[],this.element=e;for(var n=[],r=[],i=document.createTreeWalker(e.content,133,null,!1),o=0,s=-1,a=0,u=t.strings,l=t.values.length;a<l;){var c=i.nextNode();if(null!==c){if(s++,1===c.nodeType){if(c.hasAttributes()){for(var p=c.attributes,d=p.length,f=0,m=0;m<d;m++)_(p[m].name,y)&&f++;for(;f-- >0;){var g=u[a],b=w.exec(g)[2],E=b.toLowerCase()+y,P=c.getAttribute(E);c.removeAttribute(E);var x=P.split(v);this.parts.push({type:"attribute",index:s,name:b,strings:x}),a+=x.length-1}}"TEMPLATE"===c.tagName&&(r.push(c),i.currentNode=c.content)}else if(3===c.nodeType){var C=c.data;if(C.indexOf(h)>=0){for(var A=c.parentNode,N=C.split(v),T=N.length-1,O=0;O<T;O++){var R=void 0,k=N[O];if(""===k)R=S();else{var U=w.exec(k);null!==U&&_(U[2],y)&&(k=k.slice(0,U.index)+U[1]+U[2].slice(0,-y.length)+U[3]),R=document.createTextNode(k)}A.insertBefore(R,c),this.parts.push({type:"node",index:++s})}""===N[T]?(A.insertBefore(S(),c),n.push(c)):c.data=N[T],a+=T}}else if(8===c.nodeType)if(c.data===h){var V=c.parentNode;null!==c.previousSibling&&s!==o||(s++,V.insertBefore(S(),c)),o=s,this.parts.push({type:"node",index:s}),null===c.nextSibling?c.data="":(n.push(c),s--),a++}else for(var L=-1;-1!==(L=c.data.indexOf(h,L+1));)this.parts.push({type:"node",index:-1}),a++}else i.currentNode=r.pop()}for(var M=0,j=n;M<j.length;M++){var D=j[M];D.parentNode.removeChild(D)}},_=function(t,e){var n=t.length-e.length;return n>=0&&t.slice(n)===e},g=function(t){return-1!==t.index},S=function(){return document.createComment("")},w=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function b(t,e){for(var n=t.element.content,r=t.parts,i=document.createTreeWalker(n,133,null,!1),o=P(r),s=r[o],a=-1,u=0,l=[],c=null;i.nextNode();){a++;var p=i.currentNode;for(p.previousSibling===c&&(c=null),e.has(p)&&(l.push(p),null===c&&(c=p)),null!==c&&u++;void 0!==s&&s.index===a;)s.index=null!==c?-1:s.index-u,s=r[o=P(r,o)]}l.forEach((function(t){return t.parentNode.removeChild(t)}))}var E=function(t){for(var e=11===t.nodeType?0:1,n=document.createTreeWalker(t,133,null,!1);n.nextNode();)e++;return e},P=function(t,e){void 0===e&&(e=-1);for(var n=e+1;n<t.length;n++){var r=t[n];if(g(r))return n}return-1};
*/var p="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,d=function(t,e,n){for(void 0===n&&(n=null);e!==n;){var r=e.nextSibling;t.removeChild(e),e=r}},h="{{lit-"+String(Math.random()).slice(2)+"}}",f="\x3c!--"+h+"--\x3e",v=new RegExp(h+"|"+f),y="$lit$",m=function(t,e){this.parts=[],this.element=e;for(var n=[],r=[],i=document.createTreeWalker(e.content,133,null,!1),o=0,s=-1,a=0,u=t.strings,l=t.values.length;a<l;){var c=i.nextNode();if(null!==c){if(s++,1===c.nodeType){if(c.hasAttributes()){for(var p=c.attributes,d=p.length,f=0,m=0;m<d;m++)_(p[m].name,y)&&f++;for(;f-- >0;){var g=u[a],b=w.exec(g)[2],E=b.toLowerCase()+y,P=c.getAttribute(E);c.removeAttribute(E);var x=P.split(v);this.parts.push({type:"attribute",index:s,name:b,strings:x}),a+=x.length-1}}"TEMPLATE"===c.tagName&&(r.push(c),i.currentNode=c.content)}else if(3===c.nodeType){var C=c.data;if(C.indexOf(h)>=0){for(var A=c.parentNode,N=C.split(v),T=N.length-1,O=0;O<T;O++){var R=void 0,k=N[O];if(""===k)R=S();else{var U=w.exec(k);null!==U&&_(U[2],y)&&(k=k.slice(0,U.index)+U[1]+U[2].slice(0,-y.length)+U[3]),R=document.createTextNode(k)}A.insertBefore(R,c),this.parts.push({type:"node",index:++s})}""===N[T]?(A.insertBefore(S(),c),n.push(c)):c.data=N[T],a+=T}}else if(8===c.nodeType)if(c.data===h){var V=c.parentNode;null!==c.previousSibling&&s!==o||(s++,V.insertBefore(S(),c)),o=s,this.parts.push({type:"node",index:s}),null===c.nextSibling?c.data="":(n.push(c),s--),a++}else for(var L=-1;-1!==(L=c.data.indexOf(h,L+1));)this.parts.push({type:"node",index:-1}),a++}else i.currentNode=r.pop()}for(var M=0,j=n;M<j.length;M++){var I=j[M];I.parentNode.removeChild(I)}},_=function(t,e){var n=t.length-e.length;return n>=0&&t.slice(n)===e},g=function(t){return-1!==t.index},S=function(){return document.createComment("")},w=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function b(t,e){for(var n=t.element.content,r=t.parts,i=document.createTreeWalker(n,133,null,!1),o=P(r),s=r[o],a=-1,u=0,l=[],c=null;i.nextNode();){a++;var p=i.currentNode;for(p.previousSibling===c&&(c=null),e.has(p)&&(l.push(p),null===c&&(c=p)),null!==c&&u++;void 0!==s&&s.index===a;)s.index=null!==c?-1:s.index-u,s=r[o=P(r,o)]}l.forEach((function(t){return t.parentNode.removeChild(t)}))}var E=function(t){for(var e=11===t.nodeType?0:1,n=document.createTreeWalker(t,133,null,!1);n.nextNode();)e++;return e},P=function(t,e){void 0===e&&(e=-1);for(var n=e+1;n<t.length;n++){var r=t[n];if(g(r))return n}return-1};
/**

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

*/
var x=new WeakMap,C=function(t){return"function"==typeof t&&x.has(t)},A={},N={},T=function(){function t(t,e,n){this.__parts=[],this.template=t,this.processor=e,this.options=n}var e=t.prototype;return e.update=function(t){for(var e,n=0,r=c(this.__parts);!(e=r()).done;){var i=e.value;void 0!==i&&i.setValue(t[n]),n++}for(var o,s=c(this.__parts);!(o=s()).done;){var a=o.value;void 0!==a&&a.commit()}},e._clone=function(){for(var t,e=p?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],r=this.template.parts,i=document.createTreeWalker(e,133,null,!1),o=0,s=0,a=i.nextNode();o<r.length;)if(t=r[o],g(t)){for(;s<t.index;)s++,"TEMPLATE"===a.nodeName&&(n.push(a),i.currentNode=a.content),null===(a=i.nextNode())&&(i.currentNode=n.pop(),a=i.nextNode());if("node"===t.type){var u=this.processor.handleTextExpression(this.options);u.insertAfterNode(a.previousSibling),this.__parts.push(u)}else{var l;(l=this.__parts).push.apply(l,this.processor.handleAttributeExpressions(a,t.name,t.strings,this.options))}o++}else this.__parts.push(void 0),o++;return p&&(document.adoptNode(e),customElements.upgrade(e)),e},t}(),O=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:function(t){return t}}),R=" "+h+" ",k=function(){function t(t,e,n,r){this.strings=t,this.values=e,this.type=n,this.processor=r}var e=t.prototype;return e.getHTML=function(){for(var t=this.strings.length-1,e="",n=!1,r=0;r<t;r++){var i=this.strings[r],o=i.lastIndexOf("\x3c!--");n=(o>-1||n)&&-1===i.indexOf("--\x3e",o+1);var s=w.exec(i);e+=null===s?i+(n?R:f):i.substr(0,s.index)+s[1]+s[2]+y+s[3]+h}return e+=this.strings[t]},e.getTemplateElement=function(){var t=document.createElement("template"),e=this.getHTML();return void 0!==O&&(e=O.createHTML(e)),t.innerHTML=e,t},t}(),U=function(t){return null===t||!("object"==typeof t||"function"==typeof t)},V=function(t){return Array.isArray(t)||!(!t||!t[Symbol.iterator])},L=function(){function t(t,e,n){this.dirty=!0,this.element=t,this.name=e,this.strings=n,this.parts=[];for(var r=0;r<n.length-1;r++)this.parts[r]=this._createPart()}var e=t.prototype;return e._createPart=function(){return new M(this)},e._getValue=function(){var t=this.strings,e=t.length-1,n=this.parts;if(1===e&&""===t[0]&&""===t[1]){var r=n[0].value;if("symbol"==typeof r)return String(r);if("string"==typeof r||!V(r))return r}for(var i="",o=0;o<e;o++){i+=t[o];var s=n[o];if(void 0!==s){var a=s.value;if(U(a)||!V(a))i+="string"==typeof a?a:String(a);else for(var u,l=c(a);!(u=l()).done;){var p=u.value;i+="string"==typeof p?p:String(p)}}}return i+=t[e]},e.commit=function(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))},t}(),M=function(){function t(t){this.value=void 0,this.committer=t}var e=t.prototype;return e.setValue=function(t){t===A||U(t)&&t===this.value||(this.value=t,C(t)||(this.committer.dirty=!0))},e.commit=function(){for(;C(this.value);){var t=this.value;this.value=A,t(this)}this.value!==A&&this.committer.commit()},t}(),j=function(){function t(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}var e=t.prototype;return e.appendInto=function(t){this.startNode=t.appendChild(S()),this.endNode=t.appendChild(S())},e.insertAfterNode=function(t){this.startNode=t,this.endNode=t.nextSibling},e.appendIntoPart=function(t){t.__insert(this.startNode=S()),t.__insert(this.endNode=S())},e.insertAfterPart=function(t){t.__insert(this.startNode=S()),this.endNode=t.endNode,t.endNode=this.startNode},e.setValue=function(t){this.__pendingValue=t},e.commit=function(){if(null!==this.startNode.parentNode){for(;C(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=A,t(this)}var e=this.__pendingValue;e!==A&&(U(e)?e!==this.value&&this.__commitText(e):e instanceof k?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):V(e)?this.__commitIterable(e):e===N?(this.value=N,this.clear()):this.__commitText(e))}},e.__insert=function(t){this.endNode.parentNode.insertBefore(t,this.endNode)},e.__commitNode=function(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)},e.__commitText=function(t){var e=this.startNode.nextSibling,n="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=n:this.__commitNode(document.createTextNode(n)),this.value=t},e.__commitTemplateResult=function(t){var e=this.options.templateFactory(t);if(this.value instanceof T&&this.value.template===e)this.value.update(t.values);else{var n=new T(e,t.processor,this.options),r=n._clone();n.update(t.values),this.__commitNode(r),this.value=n}},e.__commitIterable=function(e){Array.isArray(this.value)||(this.value=[],this.clear());for(var n,r,i=this.value,o=0,s=c(e);!(r=s()).done;){var a=r.value;void 0===(n=i[o])&&(n=new t(this.options),i.push(n),0===o?n.appendIntoPart(this):n.insertAfterPart(i[o-1])),n.setValue(a),n.commit(),o++}o<i.length&&(i.length=o,this.clear(n&&n.endNode))},e.clear=function(t){void 0===t&&(t=this.startNode),d(this.startNode.parentNode,t.nextSibling,this.endNode)},t}(),D=function(){function t(t,e,n){if(this.value=void 0,this.__pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=n}var e=t.prototype;return e.setValue=function(t){this.__pendingValue=t},e.commit=function(){for(;C(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=A,t(this)}if(this.__pendingValue!==A){var e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=A}},t}(),I=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.single=2===r.length&&""===r[0]&&""===r[1],i}r(e,t);var n=e.prototype;return n._createPart=function(){return new H(this)},n._getValue=function(){return this.single?this.parts[0].value:t.prototype._getValue.call(this)},n.commit=function(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())},e}(L),H=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e}(M),W=!1;!function(){try{var t={get capture(){return W=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}}();var z=function(){function t(t,e,n){var r=this;this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=n,this.__boundHandleEvent=function(t){return r.handleEvent(t)}}var e=t.prototype;return e.setValue=function(t){this.__pendingValue=t},e.commit=function(){for(;C(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=A,t(this)}if(this.__pendingValue!==A){var e=this.__pendingValue,n=this.value,r=null==e||null!=n&&(e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive);r&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),null==e||null!=n&&!r||(this.__options=F(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=A}},e.handleEvent=function(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)},t}(),F=function(t){return t&&(W?{capture:t.capture,passive:t.passive,once:t.once}:t.capture)};
var x=new WeakMap,C=function(t){return"function"==typeof t&&x.has(t)},A={},N={},T=function(){function t(t,e,n){this.__parts=[],this.template=t,this.processor=e,this.options=n}var e=t.prototype;return e.update=function(t){for(var e,n=0,r=c(this.__parts);!(e=r()).done;){var i=e.value;void 0!==i&&i.setValue(t[n]),n++}for(var o,s=c(this.__parts);!(o=s()).done;){var a=o.value;void 0!==a&&a.commit()}},e._clone=function(){for(var t,e=p?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],r=this.template.parts,i=document.createTreeWalker(e,133,null,!1),o=0,s=0,a=i.nextNode();o<r.length;)if(t=r[o],g(t)){for(;s<t.index;)s++,"TEMPLATE"===a.nodeName&&(n.push(a),i.currentNode=a.content),null===(a=i.nextNode())&&(i.currentNode=n.pop(),a=i.nextNode());if("node"===t.type){var u=this.processor.handleTextExpression(this.options);u.insertAfterNode(a.previousSibling),this.__parts.push(u)}else{var l;(l=this.__parts).push.apply(l,this.processor.handleAttributeExpressions(a,t.name,t.strings,this.options))}o++}else this.__parts.push(void 0),o++;return p&&(document.adoptNode(e),customElements.upgrade(e)),e},t}(),O=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:function(t){return t}}),R=" "+h+" ",k=function(){function t(t,e,n,r){this.strings=t,this.values=e,this.type=n,this.processor=r}var e=t.prototype;return e.getHTML=function(){for(var t=this.strings.length-1,e="",n=!1,r=0;r<t;r++){var i=this.strings[r],o=i.lastIndexOf("\x3c!--");n=(o>-1||n)&&-1===i.indexOf("--\x3e",o+1);var s=w.exec(i);e+=null===s?i+(n?R:f):i.substr(0,s.index)+s[1]+s[2]+y+s[3]+h}return e+=this.strings[t]},e.getTemplateElement=function(){var t=document.createElement("template"),e=this.getHTML();return void 0!==O&&(e=O.createHTML(e)),t.innerHTML=e,t},t}(),U=function(t){return null===t||!("object"==typeof t||"function"==typeof t)},V=function(t){return Array.isArray(t)||!(!t||!t[Symbol.iterator])},L=function(){function t(t,e,n){this.dirty=!0,this.element=t,this.name=e,this.strings=n,this.parts=[];for(var r=0;r<n.length-1;r++)this.parts[r]=this._createPart()}var e=t.prototype;return e._createPart=function(){return new M(this)},e._getValue=function(){var t=this.strings,e=t.length-1,n=this.parts;if(1===e&&""===t[0]&&""===t[1]){var r=n[0].value;if("symbol"==typeof r)return String(r);if("string"==typeof r||!V(r))return r}for(var i="",o=0;o<e;o++){i+=t[o];var s=n[o];if(void 0!==s){var a=s.value;if(U(a)||!V(a))i+="string"==typeof a?a:String(a);else for(var u,l=c(a);!(u=l()).done;){var p=u.value;i+="string"==typeof p?p:String(p)}}}return i+=t[e]},e.commit=function(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))},t}(),M=function(){function t(t){this.value=void 0,this.committer=t}var e=t.prototype;return e.setValue=function(t){t===A||U(t)&&t===this.value||(this.value=t,C(t)||(this.committer.dirty=!0))},e.commit=function(){for(;C(this.value);){var t=this.value;this.value=A,t(this)}this.value!==A&&this.committer.commit()},t}(),j=function(){function t(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}var e=t.prototype;return e.appendInto=function(t){this.startNode=t.appendChild(S()),this.endNode=t.appendChild(S())},e.insertAfterNode=function(t){this.startNode=t,this.endNode=t.nextSibling},e.appendIntoPart=function(t){t.__insert(this.startNode=S()),t.__insert(this.endNode=S())},e.insertAfterPart=function(t){t.__insert(this.startNode=S()),this.endNode=t.endNode,t.endNode=this.startNode},e.setValue=function(t){this.__pendingValue=t},e.commit=function(){if(null!==this.startNode.parentNode){for(;C(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=A,t(this)}var e=this.__pendingValue;e!==A&&(U(e)?e!==this.value&&this.__commitText(e):e instanceof k?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):V(e)?this.__commitIterable(e):e===N?(this.value=N,this.clear()):this.__commitText(e))}},e.__insert=function(t){this.endNode.parentNode.insertBefore(t,this.endNode)},e.__commitNode=function(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)},e.__commitText=function(t){var e=this.startNode.nextSibling,n="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=n:this.__commitNode(document.createTextNode(n)),this.value=t},e.__commitTemplateResult=function(t){var e=this.options.templateFactory(t);if(this.value instanceof T&&this.value.template===e)this.value.update(t.values);else{var n=new T(e,t.processor,this.options),r=n._clone();n.update(t.values),this.__commitNode(r),this.value=n}},e.__commitIterable=function(e){Array.isArray(this.value)||(this.value=[],this.clear());for(var n,r,i=this.value,o=0,s=c(e);!(r=s()).done;){var a=r.value;void 0===(n=i[o])&&(n=new t(this.options),i.push(n),0===o?n.appendIntoPart(this):n.insertAfterPart(i[o-1])),n.setValue(a),n.commit(),o++}o<i.length&&(i.length=o,this.clear(n&&n.endNode))},e.clear=function(t){void 0===t&&(t=this.startNode),d(this.startNode.parentNode,t.nextSibling,this.endNode)},t}(),I=function(){function t(t,e,n){if(this.value=void 0,this.__pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=n}var e=t.prototype;return e.setValue=function(t){this.__pendingValue=t},e.commit=function(){for(;C(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=A,t(this)}if(this.__pendingValue!==A){var e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=A}},t}(),D=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.single=2===r.length&&""===r[0]&&""===r[1],i}r(e,t);var n=e.prototype;return n._createPart=function(){return new H(this)},n._getValue=function(){return this.single?this.parts[0].value:t.prototype._getValue.call(this)},n.commit=function(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())},e}(L),H=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e}(M),W=!1;!function(){try{var t={get capture(){return W=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}}();var z=function(){function t(t,e,n){var r=this;this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=n,this.__boundHandleEvent=function(t){return r.handleEvent(t)}}var e=t.prototype;return e.setValue=function(t){this.__pendingValue=t},e.commit=function(){for(;C(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=A,t(this)}if(this.__pendingValue!==A){var e=this.__pendingValue,n=this.value,r=null==e||null!=n&&(e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive);r&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),null==e||null!=n&&!r||(this.__options=F(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=A}},e.handleEvent=function(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)},t}(),F=function(t){return t&&(W?{capture:t.capture,passive:t.passive,once:t.once}:t.capture)};
/**

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

*/
function q(t){var e=B.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},B.set(t.type,e));var n=e.stringsArray.get(t.strings);if(void 0!==n)return n;var r=t.strings.join(h);return void 0===(n=e.keyString.get(r))&&(n=new m(t,t.getTemplateElement()),e.keyString.set(r,n)),e.stringsArray.set(t.strings,n),n}var B=new Map,K=new WeakMap,G=new(function(){function t(){}var e=t.prototype;return e.handleAttributeExpressions=function(t,e,n,r){var i=e[0];return"."===i?new I(t,e.slice(1),n).parts:"@"===i?[new z(t,e.slice(1),r.eventContext)]:"?"===i?[new D(t,e.slice(1),n)]:new L(t,e,n).parts},e.handleTextExpression=function(t){return new j(t)},t}());
function q(t){var e=B.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},B.set(t.type,e));var n=e.stringsArray.get(t.strings);if(void 0!==n)return n;var r=t.strings.join(h);return void 0===(n=e.keyString.get(r))&&(n=new m(t,t.getTemplateElement()),e.keyString.set(r,n)),e.stringsArray.set(t.strings,n),n}var B=new Map,K=new WeakMap,G=new(function(){function t(){}var e=t.prototype;return e.handleAttributeExpressions=function(t,e,n,r){var i=e[0];return"."===i?new D(t,e.slice(1),n).parts:"@"===i?[new z(t,e.slice(1),r.eventContext)]:"?"===i?[new I(t,e.slice(1),n)]:new L(t,e,n).parts},e.handleTextExpression=function(t){return new j(t)},t}());
/**

@@ -47,0 +47,0 @@ * @license

{
"name": "@tradeshift/elements",
"version": "0.19.3",
"version": "0.20.0",
"repository": {

@@ -20,3 +20,3 @@ "type": "git",

"src": "src/core.js",
"gitHead": "de21b6b94b9c536f1030fe9905cd4f81288eebb3"
"gitHead": "2c7e9c7c5b436cb1103cfdc15f48834a74f43f36"
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc