Comparing version 4.4.1 to 4.4.2
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.skate=t():e.skate=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var u=n[r]={exports:{},id:r,loaded:!1};return e[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0}),t.vdom=t.symbols=t.ready=t.props=t.prop=t.link=t.h=t.emit=t.define=t.Component=void 0;var o=n(1),i=u(o),a=n(7),l=u(a),c=n(9),f=u(c),s=n(13),d=r(s),p=n(34),y=r(p),v=n(36),h=r(v),b=n(37),_=r(b),m=n(28),g=r(m),O=n(38),k=r(O),P=f.builder();t.Component=d.default,t.define=y.default,t.emit=h.default,t.h=P,t.link=_.default,t.prop=i,t.props=g.default,t.ready=k.default,t.symbols=l,t.vdom=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.unshift({},e),i.default.apply(void 0,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.number=t.boolean=t.array=void 0,t.create=u;var o=n(2),i=r(o),a=n(5),l=r(a),c=n(6),f=r(c),s=(t.array=u({coerce:function(e){return Array.isArray(e)?e:(0,l.default)(e)?null:[e]},default:function(){return[]},deserialize:function(e){return(0,l.default)(e)?null:JSON.parse(e)},serialize:JSON.stringify}),t.boolean=u({coerce:function(e){return!!e},default:!1,deserialize:function(e){return!(null===e)},serialize:function(e){return e?"":null}}),function(e){return(0,l.default)(e)?0:Number(e)});t.number=u({default:0,coerce:s,deserialize:s,serialize:f.default}),t.string=u({default:"",coerce:f.default,deserialize:f.default,serialize:f.default})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(3),o=r(u);t.default=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(function(t){return(0,o.default)(t).forEach(function(n){return e[n]=t[n]})}),e}},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.getOwnPropertyNames(e);return(0,u.isFunction)(Object.getOwnPropertySymbols)?t.concat(Object.getOwnPropertySymbols(e)):t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var u=n(4)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isFunction=function(e){return"function"==typeof e},t.isObject=function(e){return"object"===("undefined"==typeof e?"undefined":n(e))&&null!==e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"===("undefined"==typeof e?"undefined":n(e))},t.isUndefined=function(e){return"undefined"==typeof e}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"undefined"==typeof e||null===e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(5),o=r(u),i=function(e){return(0,o.default)(e)?null:String(e)};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);Object.defineProperty(t,"name",{enumerable:!0,get:function(){return r.name}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.connected="____skate_connected",t.created="____skate_created",t.name="____skate_name",t.ctorCreateInitProps="____skate_ctor_createInitProps",t.ctorObservedAttributes="____skate_ctor_observedAttributes",t.ctorProps="____skate_ctor_props",t.ctorPropsMap="____skate_ctor_propsMap",t.props="____skate_props",t.ref="____skate_ref",t.renderer="____skate_renderer",t.rendering="____skate_rendering",t.rendererDebounced="____skate_rendererDebounced",t.updated="____skate_updated"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t,n){var r=e[C];r||(r=e[C]={}),"undefined"==typeof r[t]&&e.addEventListener(t,function(e){r[t]&&r[t].call(this,e)}),r[t]="function"==typeof n?n:null}function a(e){if(!e)return e;if(e[m.name])return e[m.name];if(e.prototype instanceof w){var t=new e;return e[m.name]=t.localName}return e}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;T=[e,t,n]}function c(){var e=L.apply(void 0,u(T));return T=null,e}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N;return function n(){for(var r=arguments.length,u=Array(r),o=0;o<r;o++)u[o]=arguments[o];if(u[0]=a(u[0]),E=null,"function"==typeof u[0])return E=u[0],t.apply(void 0,u);if(A.length)A[A.length-1].push([n,u]);else{if(e===z){if(V)return++V;var i=e.apply(void 0,u);return i[S]&&++V,i}if(e===_.elementClose){if(1===V&&(0,_.skip)(),V&&--V)return;var f=e.apply(void 0,u),s=f[m.ref];return delete f[m.ref],"function"==typeof s&&s(f),f}if(!V||e===l||e===c)return e.apply(void 0,u)}}}function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];E?E[x][t[0]]=t[1]:A.length?A[A.length-1].push([s,t]):(T.push(t[0]),T.push(t[1]))}function d(e,t,n){for(var r={key:t,statics:n},u=arguments.length,o=Array(u>3?u-3:0),i=3;i<u;i++)o[i-3]=arguments[i];for(var a=0;a<o.length;a+=2)r[o[a]]=o[a+1];e[x]=r,A.push([])}function p(e){var t=A.pop(),n=e[x];delete e[x];var r=e(n,function(){return t.forEach(function(e){return e[0].apply(e,u(e[1]))})});return"function"==typeof r?r():r}function y(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return L.apply(void 0,[e].concat(n)),U(e)}function v(e,t){for(var n="undefined"==typeof t?"undefined":b(t),r=arguments.length,u=Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];return"function"!==n&&"string"!==n&&"number"!==n||u.unshift(t),null!==t&&"object"===n||(t={}),I(e,t.key,t.statics),delete t.key,delete t.statics,Object.keys(t).forEach(function(e){return s(e,t[e])}),F(e),u.forEach(function(e){var t="undefined"==typeof e?"undefined":b(e);"function"===t?e():"string"===t||"number"===t?R(e):Array.isArray(e)&&e.forEach(function(e){return e()})}),U(e)}function h(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind.apply(v,[null].concat(t))}:t.map(function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return v.bind.apply(v,[null,e].concat(n))}})}Object.defineProperty(t,"__esModule",{value:!0}),t.text=t.elementVoid=t.elementOpenStart=t.elementOpenEnd=t.elementOpen=t.elementClose=t.attr=void 0;var b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.element=v,t.builder=h;var _=n(10),m=n(8),g=n(11),O=r(g),k=n(12),P=r(k),j=P.default.customElements,w=P.default.HTMLElement,M=_.attributes[_.symbols.default],A=[],S="__skip",C="__events",x="__props",E=void 0,T=void 0,V=0,N=function(){},D=(0,O.default)(_.attributes,o({key:N,statics:N,checked:_.applyProp,className:_.applyProp,disabled:_.applyProp,value:_.applyProp,ref:function(e,t,n){e[m.ref]=n},skip:function(e,t,n){n?e[S]=!0:delete e[S]}},_.symbols.default,function(e,t,n){var r=j.get(e.localName)||{props:{},prototype:{}},u=r.props,o=r.prototype;if((t in u||t in e||t in o)&&!("ownerSVGElement"in e))return void(0,_.applyProp)(e,t,n);if(n===!1)return void M(e,t);if(0===t.indexOf("on")){var a=t[2],l=void 0;if("-"===a?l=t.substring(3):a===a.toUpperCase()&&(l=a.toLowerCase()+t.substring(3)),l)return void i(e,l,n)}M(e,t,n)})),z=D(_.elementOpen),I=f(l,d),F=f(c),L=f(z,d),U=f(_.elementClose,p),R=f(_.text);t.attr=s,t.elementClose=U,t.elementOpen=L,t.elementOpenEnd=F,t.elementOpenStart=I,t.elementVoid=y,t.text=R},function(e,t,n){/** | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.skate=t():e.skate=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var u=n[r]={exports:{},id:r,loaded:!1};return e[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0}),t.vdom=t.symbols=t.ready=t.props=t.prop=t.link=t.h=t.emit=t.define=t.Component=void 0;var o=n(1),i=u(o),a=n(7),l=u(a),c=n(9),f=u(c),s=n(13),d=r(s),p=n(32),y=r(p),v=n(34),h=r(v),b=n(35),_=r(b),m=n(26),g=r(m),O=n(36),k=r(O),P=f.builder();t.Component=d.default,t.define=y.default,t.emit=h.default,t.h=P,t.link=_.default,t.prop=i,t.props=g.default,t.ready=k.default,t.symbols=l,t.vdom=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.unshift({},e),i.default.apply(void 0,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.number=t.boolean=t.array=void 0,t.create=u;var o=n(2),i=r(o),a=n(5),l=r(a),c=n(6),f=r(c),s=(t.array=u({coerce:function(e){return Array.isArray(e)?e:(0,l.default)(e)?null:[e]},default:function(){return[]},deserialize:function(e){return(0,l.default)(e)?null:JSON.parse(e)},serialize:JSON.stringify}),t.boolean=u({coerce:function(e){return!!e},default:!1,deserialize:function(e){return!(null===e)},serialize:function(e){return e?"":null}}),function(e){return(0,l.default)(e)?0:Number(e)});t.number=u({default:0,coerce:s,deserialize:s,serialize:f.default}),t.string=u({default:"",coerce:f.default,deserialize:f.default,serialize:f.default})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(3),o=r(u);t.default=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(function(t){return(0,o.default)(t).forEach(function(n){return e[n]=t[n]})}),e}},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.getOwnPropertyNames(e);return(0,u.isFunction)(Object.getOwnPropertySymbols)?t.concat(Object.getOwnPropertySymbols(e)):t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var u=n(4)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isFunction=function(e){return"function"==typeof e},t.isObject=function(e){return"object"===("undefined"==typeof e?"undefined":n(e))&&null!==e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"===("undefined"==typeof e?"undefined":n(e))},t.isUndefined=function(e){return"undefined"==typeof e}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"undefined"==typeof e||null===e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(5),o=r(u),i=function(e){return(0,o.default)(e)?null:String(e)};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);Object.defineProperty(t,"name",{enumerable:!0,get:function(){return r.name}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.connected="____skate_connected",t.created="____skate_created",t.name="____skate_name",t.ctorCreateInitProps="____skate_ctor_createInitProps",t.ctorObservedAttributes="____skate_ctor_observedAttributes",t.ctorProps="____skate_ctor_props",t.ctorPropsMap="____skate_ctor_propsMap",t.props="____skate_props",t.ref="____skate_ref",t.renderer="____skate_renderer",t.rendering="____skate_rendering",t.rendererDebounced="____skate_rendererDebounced",t.updated="____skate_updated"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t,n){var r=e[C];r||(r=e[C]={}),"undefined"==typeof r[t]&&e.addEventListener(t,function(e){r[t]&&r[t].call(this,e)}),r[t]="function"==typeof n?n:null}function a(e){if(!e)return e;if(e[m.name])return e[m.name];if(e.prototype instanceof M){var t=new e;return e[m.name]=t.localName}return e}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;V=[e,t,n]}function c(){var e=L.apply(void 0,u(V));return V=null,e}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N;return function n(){for(var r=arguments.length,u=Array(r),o=0;o<r;o++)u[o]=arguments[o];if(u[0]=a(u[0]),E=null,"function"==typeof u[0])return E=u[0],t.apply(void 0,u);if(S.length)S[S.length-1].push([n,u]);else{if(e===z){if(T)return++T;var i=e.apply(void 0,u);return i[w]&&++T,i}if(e===_.elementClose){if(1===T&&(0,_.skip)(),T&&--T)return;var f=e.apply(void 0,u),s=f[m.ref];return delete f[m.ref],"function"==typeof s&&s(f),f}if(!T||e===l||e===c)return e.apply(void 0,u)}}}function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];E?E[x][t[0]]=t[1]:S.length?S[S.length-1].push([s,t]):(V.push(t[0]),V.push(t[1]))}function d(e,t,n){for(var r={key:t,statics:n},u=arguments.length,o=Array(u>3?u-3:0),i=3;i<u;i++)o[i-3]=arguments[i];for(var a=0;a<o.length;a+=2)r[o[a]]=o[a+1];e[x]=r,S.push([])}function p(e){var t=S.pop(),n=e[x];delete e[x];var r=e(n,function(){return t.forEach(function(e){return e[0].apply(e,u(e[1]))})});return"function"==typeof r?r():r}function y(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return L.apply(void 0,[e].concat(n)),U(e)}function v(e,t){for(var n="undefined"==typeof t?"undefined":b(t),r=arguments.length,u=Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];return"function"!==n&&"string"!==n&&"number"!==n||u.unshift(t),null!==t&&"object"===n||(t={}),I(e,t.key,t.statics),delete t.key,delete t.statics,Object.keys(t).forEach(function(e){return s(e,t[e])}),F(e),u.forEach(function(e){var t="undefined"==typeof e?"undefined":b(e);"function"===t?e():"string"===t||"number"===t?R(e):Array.isArray(e)&&e.forEach(function(e){return e()})}),U(e)}function h(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind.apply(v,[null].concat(t))}:t.map(function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return v.bind.apply(v,[null,e].concat(n))}})}Object.defineProperty(t,"__esModule",{value:!0}),t.text=t.elementVoid=t.elementOpenStart=t.elementOpenEnd=t.elementOpen=t.elementClose=t.attr=void 0;var b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.element=v,t.builder=h;var _=n(10),m=n(8),g=n(11),O=r(g),k=n(12),P=r(k),j=P.default.customElements,M=P.default.HTMLElement,A=_.attributes[_.symbols.default],S=[],w="__skip",C="__events",x="__props",E=void 0,V=void 0,T=0,N=function(){},D=(0,O.default)(_.attributes,o({key:N,statics:N,checked:_.applyProp,className:_.applyProp,disabled:_.applyProp,value:_.applyProp,ref:function(e,t,n){e[m.ref]=n},skip:function(e,t,n){n?e[w]=!0:delete e[w]}},_.symbols.default,function(e,t,n){var r=j.get(e.localName)||{props:{},prototype:{}},u=r.props,o=r.prototype;if((t in u||t in e||t in o)&&!("ownerSVGElement"in e))return void(0,_.applyProp)(e,t,n);if(n===!1)return void A(e,t);if(0===t.indexOf("on")){var a=t[2],l=void 0;if("-"===a?l=t.substring(3):a===a.toUpperCase()&&(l=a.toLowerCase()+t.substring(3)),l)return void i(e,l,n)}A(e,t,n)})),z=D(_.elementOpen),I=f(l,d),F=f(c),L=f(z,d),U=f(_.elementClose,p),R=f(_.text);t.attr=s,t.elementClose=U,t.elementOpen=L,t.elementOpenEnd=F,t.elementOpenStart=I,t.elementVoid=y,t.text=R},function(e,t,n){/** | ||
* @license | ||
@@ -17,3 +17,3 @@ * Copyright 2015 The Incremental DOM Authors. All Rights Reserved. | ||
*/ | ||
"use strict";function r(e,t){this.attrs=l(),this.attrsArr=[],this.newAttrs=l(),this.key=t,this.keyMap=null,this.keyMapValid=!0,this.nodeName=e,this.text=null}function u(){this.created=M.nodesCreated&&[],this.deleted=M.nodesDeleted&&[]}var o=Object.prototype.hasOwnProperty,i=Object.create,a=function(e,t){return o.call(e,t)},l=function(){return i(null)},c=function(e,t,n){var u=new r(t,n);return e.__incrementalDOMData=u,u},f=function(e){var t=e.__incrementalDOMData;if(!t){var n=e.nodeName.toLowerCase(),r=null;e instanceof Element&&(r=e.getAttribute("key")),t=c(e,n,r)}return t},s={default:"__default",placeholder:"__placeholder"},d=function(e){return 0===e.lastIndexOf("xml:",0)?"http://www.w3.org/XML/1998/namespace":0===e.lastIndexOf("xlink:",0)?"http://www.w3.org/1999/xlink":void 0},p=function(e,t,n){if(null==n)e.removeAttribute(t);else{var r=d(t);r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}},y=function(e,t,n){e[t]=n},v=function(e,t,n){if("string"==typeof n)e.style.cssText=n;else{e.style.cssText="";var r=e.style,u=n;for(var o in u)a(u,o)&&(r[o]=u[o])}},h=function(e,t,n){var r=typeof n;"object"===r||"function"===r?y(e,t,n):p(e,t,n)},b=function(e,t,n){var r=f(e),u=r.attrs;if(u[t]!==n){var o=_[t]||_[s.default];o(e,t,n),u[t]=n}},_=l();_[s.default]=h,_[s.placeholder]=function(){},_.style=v;var m=function(e,t){return"svg"===e?"http://www.w3.org/2000/svg":"foreignObject"===f(t).nodeName?null:t.namespaceURI},g=function(e,t,n,r,u){var o=m(n,t),i=void 0;if(i=o?e.createElementNS(o,n):e.createElement(n),c(i,n,r),u)for(var a=0;a<u.length;a+=2)b(i,u[a],u[a+1]);return i},O=function(e){var t=e.createTextNode("");return c(t,"#text",null),t},k=function(e){for(var t=l(),n=e.firstElementChild;n;){var r=f(n).key;r&&(t[r]=n),n=n.nextElementSibling}return t},P=function(e){var t=f(e);return t.keyMap||(t.keyMap=k(e)),t.keyMap},j=function(e,t){return t?P(e)[t]:null},w=function(e,t,n){P(e)[t]=n},M={nodesCreated:null,nodesDeleted:null};u.prototype.markCreated=function(e){this.created&&this.created.push(e)},u.prototype.markDeleted=function(e){this.deleted&&this.deleted.push(e)},u.prototype.notifyChanges=function(){this.created&&this.created.length>0&&M.nodesCreated(this.created),this.deleted&&this.deleted.length>0&&M.nodesDeleted(this.deleted)};var A=null,S=null,C=null,x=null,E=null,T=function(e){var t=function(t,n,r){var o=A,i=x,a=E,l=S,c=C;A=new u,x=t,E=t.ownerDocument,C=t.parentNode,e(t,n,r),A.notifyChanges(),A=o,x=i,E=a,S=l,C=c};return t},V=T(function(e,t,n){S=e,F(),t(n),U()}),N=T(function(e,t,n){S={nextSibling:e},t(n)}),D=function(e,t){var n=f(S);return e===n.nodeName&&t==n.key},z=function(e,t,n){if(!S||!D(e,t)){var r=void 0;t&&(r=j(C,t)),r||(r="#text"===e?O(E):g(E,C,e,t,n),t&&w(C,t,r),A.markCreated(r)),S&&f(S).key?(C.replaceChild(r,S),f(C).keyMapValid=!1):C.insertBefore(r,S),S=r}},I=function(){var e=C,t=f(e),n=t.keyMap,r=t.keyMapValid,u=e.lastChild,o=void 0;if(!(u===S&&r||t.attrs[s.placeholder]&&e!==x)){for(;u!==S;)e.removeChild(u),A.markDeleted(u),o=f(u).key,o&&delete n[o],u=e.lastChild;if(!r){for(o in n)u=n[o],u.parentNode!==e&&(A.markDeleted(u),delete n[o]);t.keyMapValid=!0}}},F=function(){C=S,S=null},L=function(){S=S?S.nextSibling:C.firstChild},U=function(){I(),S=C,C=C.parentNode},R=function(e,t,n){return L(),z(e,t,n),F(),C},B=function(){return U(),S},H=function(){return L(),z("#text",null,null),S},J=function(){return C},K=function(){S=C.lastChild},q=3,G=[],W=function(e,t,n,r){for(var u=R(e,t,n),o=f(u),i=o.attrsArr,a=o.newAttrs,l=!1,c=q,s=0;c<arguments.length;c+=1,s+=1)if(i[s]!==arguments[c]){l=!0;break}for(;c<arguments.length;c+=1,s+=1)i[s]=arguments[c];if(s<i.length&&(l=!0,i.length=s),l){for(c=q;c<arguments.length;c+=2)a[arguments[c]]=arguments[c+1];for(var d in a)b(u,d,a[d]),a[d]=void 0}return u},X=function(e,t,n){G[0]=e,G[1]=t,G[2]=n},Z=function(e,t){G.push(e,t)},Q=function(){var e=W.apply(null,G);return G.length=0,e},Y=function(e){var t=B();return t},$=function(e,t,n,r){return W.apply(null,arguments),Y(e)},ee=function(e,t,n,r){return W.apply(null,arguments),K(),Y(e)},te=function(e,t){var n=H(),r=f(n);if(r.text!==e){r.text=e;for(var u=e,o=1;o<arguments.length;o+=1){var i=arguments[o];u=i(u)}n.data=u}return n};t.patch=V,t.patchInner=V,t.patchOuter=N,t.currentElement=J,t.skip=K,t.elementVoid=$,t.elementOpenStart=X,t.elementOpenEnd=Q,t.elementOpen=W,t.elementClose=Y,t.elementPlaceholder=ee,t.text=te,t.attr=Z,t.symbols=s,t.attributes=_,t.applyAttr=p,t.applyProp=y,t.notifications=M},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n={};return Object.keys(t).forEach(function(r){n[r]=e[r],e[r]=t[r]}),n}function o(e,t){(0,a.default)(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){return function(){var r=u(e,t),i=n.apply(void 0,arguments);return o(e,r),i}}};var i=n(2),a=r(i)},function(e,t){(function(t){"use strict";e.exports="object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t||this}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n,r){return t===e[H]&&n===e[J]&&r===e[K]}function l(e){var t=(0,E.default)(e);return(0,C.default)(t).reduce(function(e,n){return e[n]=(0,N.createNativePropertyDescriptor)(t[n]),e},{})}function c(e){var t=l(e);return function(e){(0,C.default)(t).forEach(function(n){var r=t[n];r.beforeDefineProperty(e);var u=n in e,o=u&&e[n];Object.defineProperty(e,n,r),u&&(e[n]=o)})}}Object.defineProperty(t,"__esModule",{value:!0});var f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function e(t,n,r){null===t&&(t=Function.prototype);var u=Object.getOwnPropertyDescriptor(t,n);if(void 0===u){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in u)return u.value;var i=u.get;if(void 0!==i)return i.call(r)},d=n(10),p=n(8),y=n(2),v=r(y),h=n(14),b=r(h),_=n(15),m=r(_),g=n(16),O=r(g),k=n(18),P=r(k),j=n(21),w=r(j),M=n(22),A=r(M),S=n(3),C=r(S),x=n(23),E=r(x),T=n(28),V=r(T),N=n(29),D=n(4),z=n(33),I=r(z),F=n(27),L=r(F),U=n(12),R=r(U),B=R.default.HTMLElement||function(){function e(){i(this,e)}return e}(),H=(0,b.default)("prevName"),J=(0,b.default)("prevOldValue"),K=(0,b.default)("prevNewValue"),q=function(e){function t(){var e;i(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),l=a.constructor;a[p.created]=!0,l.hasOwnProperty(p.ctorCreateInitProps)||(0,L.default)(l,p.ctorCreateInitProps,c(l)),a[p.rendererDebounced]=(0,O.default)(a[p.renderer].bind(a));var f=(0,C.default)((0,E.default)(l)).length;f&&l[p.ctorCreateInitProps]&&l[p.ctorCreateInitProps](a),!a.renderCallback&&l.render&&((0,P.default)(a,"static render","renderCallback"),a.renderCallback=l.render.bind(l,a));var s=l.created;(0,D.isFunction)(s)&&((0,P.default)(a,"static created","constructor"),s(a));var d=(0,m.default)(a),y=d.readyCallbacks;return y&&(y.forEach(function(e){return e(a)}),delete d.readyCallbacks),a}return o(t,e),f(t,null,[{key:"observedAttributes",get:function(){var e=this.hasOwnProperty(p.ctorObservedAttributes)?this[p.ctorObservedAttributes]:[],n=(0,E.default)(this),r=Object.keys(n).map(function(e){return n[e].attrSource}).filter(Boolean),u=r.concat(e).concat(s(t.__proto__||Object.getPrototypeOf(t),"observedAttributes",this));return u.filter(function(e,t){return u.indexOf(e)===t})},set:function(e){e=Array.isArray(e)?e:[],(0,L.default)(this,"observedAttributes",e)}},{key:"props",get:function(){return(0,v.default)({},s(t.__proto__||Object.getPrototypeOf(t),"props",this),this[p.ctorProps])},set:function(e){(0,L.default)(this,p.ctorProps,e)}}]),f(t,[{key:"connectedCallback",value:function(){(0,w.default)(this).resumeAttributesUpdates(),this[p.connected]=!0,this[p.rendererDebounced]();var e=this.constructor.attached;(0,D.isFunction)(e)&&((0,P.default)(this,"static attached","connectedCallback"),e(this)),this.setAttribute("defined","")}},{key:"disconnectedCallback",value:function(){(0,w.default)(this).suspendAttributesUpdates(),this[p.connected]=!1;var e=this.constructor.detached;(0,D.isFunction)(e)&&((0,P.default)(this,"static detached","disconnectedCallback"),e(this))}},{key:"attributeChangedCallback",value:function(e,t,n){if(!a(this,e,t,n)){this[H]=e,this[J]=t,this[K]=n;var r=(0,m.default)(this,"attrSourceLinks")[e];if(r){var u=(0,w.default)(this).onAttributeChanged(e,n);if(u){var o=(0,E.default)(this.constructor)[r],i=null!==n&&o.deserialize?o.deserialize(n):n,l=(0,m.default)(this,"props")[r];l.settingPropFromAttrSource=!0,this[r]=i,l.settingPropFromAttrSource=!1}}var c=this.constructor.attributeChanged;(0,D.isFunction)(c)&&((0,P.default)(this,"static attributeChanged","attributeChangedCallback"),c(this,{name:e,newValue:n,oldValue:t}))}}},{key:"updatedCallback",value:function(e){return this.constructor.hasOwnProperty("updated")&&(0,P.default)(this,"static updated","updatedCallback"),this.constructor.updated(this,e)}},{key:"renderedCallback",value:function(){return this.constructor.hasOwnProperty("rendered")&&(0,P.default)(this,"static rendered","renderedCallback"),this.constructor.rendered(this)}},{key:"rendererCallback",value:function(){return this.constructor.renderer(this)}},{key:p.renderer,value:function(){!this[p.rendering]&&this[p.connected]&&(this[p.rendering]=!0,this[p.updated]()&&(0,D.isFunction)(this.renderCallback)&&(this.rendererCallback(),this.renderedCallback()),this[p.rendering]=!1)}},{key:p.updated,value:function(){var e=this[p.props];return this[p.props]=(0,V.default)(this),this.updatedCallback(e)}}],[{key:"extend",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=function(e){function t(){return i(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),t}(t),r=(0,A.default)(e),a=(0,A.default)(e.prototype);return delete r.prototype,Object.defineProperties(n,r),Object.defineProperties(n.prototype,a),n}},{key:"rendered",value:function(){}},{key:"renderer",value:function(e){e.shadowRoot||e.attachShadow({mode:"open"}),(0,d.patchInner)(e.shadowRoot,function(){var t=e.renderCallback(e);(0,D.isFunction)(t)?t():Array.isArray(t)&&t.forEach(function(e){(0,D.isFunction)(e)&&e()})})}},{key:"updated",value:function(e,t){if(!t)return!0;for(var n=(0,C.default)(t),r=0;r<n.length;r++){var u=n[r];if(!(0,I.default)(t[u],e[u]))return!0}return!1}}]),t}(B);t.default=q},function(e,t){"use strict";function n(e){return"function"==typeof Symbol?Symbol(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.__SKATE_DATA||(e.__SKATE_DATA={});return t&&(n[t]||(n[t]={}))||n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=!1,n=0,r=[],o=document.createElement("span"),i=new s(function(){e.apply(void 0,u(r)),t=!1,r=null});return i.observe(o,{childList:!0}),function(){for(var e=arguments.length,u=Array(e),i=0;i<e;i++)u[i]=arguments[i];r=u,t||(t=!0,o.textContent=""+n,n+=1)}}function i(e){var t=!1,n=[];return function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];n=o,t||(t=!0,setTimeout(function(){t=!1,e.apply(void 0,u(n))},1))}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(17),l=r(a),c=n(12),f=r(c),s=f.default.MutationObserver;t.default=(0,l.default)(s)?o:i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["native code","[object MutationObserverConstructor]"];t.default=function(e){return n.map(function(t){return(e||"").toString().indexOf([t])>-1}).reduce(function(e,t){return e||t})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){if(!i.default){var r=e.localName?e.localName:String(e);console.warn(r+" "+t+" is deprecated. Use "+n+".")}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(19),i=r(o)},function(e,t,n){(function(e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e?"production":null;n||(n="production");var r=0===n.toLowerCase().indexOf("prod");t.default=r}).call(t,n(20))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function u(e){if(f===setTimeout)return setTimeout(e,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function o(e){if(s===clearTimeout)return clearTimeout(e);if((s===r||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(e);try{return s(e)}catch(t){try{return s.call(null,e)}catch(t){return s.call(this,e)}}}function i(){v&&p&&(v=!1,p.length?y=p.concat(y):h=-1,y.length&&a())}function a(){if(!v){var e=u(i);v=!0;for(var t=y.length;t;){for(p=y,y=[];++h<t;)p&&p[h].run();h=-1,t=y.length}p=null,v=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function c(){}var f,s,d=e.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(e){f=n}try{s="function"==typeof clearTimeout?clearTimeout:r}catch(e){s=r}}();var p,y=[],v=!1,h=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];y.push(new l(e,t)),1!==y.length||v||u(a)},l.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){var t=e[s];return t||(t=new f(e),e[s]=t),t}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=o;var a=n(6),l=r(a),c=n(4),f=function(){function e(t){u(this,e),this.elem=t,this.connected=!1,this.pendingValues={},this.lastSetValues={}}return i(e,[{key:"suspendAttributesUpdates",value:function(){this.connected=!1}},{key:"resumeAttributesUpdates",value:function(){var e=this;this.connected=!0;var t=Object.keys(this.pendingValues);t.forEach(function(t){var n=e.pendingValues[t];(0,c.isUndefined)(n)||(delete e.pendingValues[t],e._syncAttrValue(t,n))})}},{key:"onAttributeChanged",value:function(e,t){t=(0,l.default)(t),this._clearPendingValue(e);var n=this.lastSetValues[e]!==t;return this.lastSetValues[e]=t,n}},{key:"setAttrValue",value:function(e,t){t=(0,l.default)(t),this.lastSetValues[e]=t,this.connected?(this._clearPendingValue(e),this._syncAttrValue(e,t)):this.pendingValues[e]=t}},{key:"_syncAttrValue",value:function(e,t){var n=(0,l.default)(this.elem.getAttribute(e));t!==n&&(null===t?this.elem.removeAttribute(e):this.elem.setAttribute(e,t))}},{key:"_clearPendingValue",value:function(e){e in this.pendingValues&&delete this.pendingValues[e]}}]),e}(),s="____skate_attributesMgr"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.default)(e).reduce(function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t},{})};var u=n(3),o=r(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){return e.hasOwnProperty(o.ctorPropsMap)||!function(){var t=e.props||{},n=(0,a.default)(t).reduce(function(e,n){return e[n]=new c.default(n,t[n]),e},{});(0,s.default)(e,o.ctorPropsMap,n)}(),e[o.ctorPropsMap]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(8),i=n(3),a=r(i),l=n(24),c=r(l),f=n(27),s=r(f)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if((0,p.isSymbol)(t))(0,d.default)(t.toString()+" symbol property cannot have an attribute.");else{if(e===!0)return(0,l.default)(String(t));if((0,p.isString)(e))return e}return null}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(25),l=r(a),c=n(5),f=r(c),s=n(26),d=r(s),p=n(4),y=function(){function e(t,n){var r=this;u(this,e),this._nameOrSymbol=t,n=n||{},this.attrSource=null,this.attrTarget=null,this.attrTargetIsNotSource=!1,this.coerce=function(e){return e},this.default=null,this.deserialize=function(e){return e},this.get=null,this.serialize=function(e){return(0,f.default)(e)?null:String(e)},this.set=null,Object.keys(n).forEach(function(e){var u=n[e];switch(e){case"attribute":if((0,p.isObject)(u)){var i=u.source,a=u.target;i||a||(0,d.default)(e+" 'source' or 'target' is missing."),r.attrSource=o(i,t),r.attrTarget=o(a,t),r.attrTargetIsNotSource=r.attrTarget!==r.attrSource}else r.attrSource=r.attrTarget=o(u,t);break;case"coerce":case"deserialize":case"get":case"serialize":case"set":(0,p.isFunction)(u)?r[e]=u:(0,d.default)(e+" must be a function.");break;case"default":case"initial":r[e]=u;break;default:r[e]=u}})}return i(e,[{key:"nameOrSymbol",get:function(){return this._nameOrSymbol}}]),e}();t.default=y},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.split(/([A-Z])/).reduce(function(e,t,n){var r=e&&n%2!==0?"-":"";return""+e+r+t.toLowerCase()})}},function(e,t){"use strict";function n(e){throw new Error(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e,t,n){Object.defineProperty(e,t,{configurable:!0,value:n})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t={};return(0,f.default)((0,d.default)(e.constructor)).forEach(function(n){t[n]=e[n]}),t}function o(e,t){(0,l.default)(e,t),e[i.renderer]&&e[i.renderer]()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,p.isUndefined)(t)?u(e):o(e,t)};var i=n(8),a=n(2),l=r(a),c=n(3),f=r(c),s=n(23),d=r(s),p=n(4)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=e.nameOrSymbol,n={configurable:!0,enumerable:!0};return n.beforeDefineProperty=function(n){var r=(0,b.default)(n,t),u=e.attrSource;u&&((0,a.default)(n,"attrSourceLinks")[u]=t);var o=n[t],i=!1;(0,c.default)(o)&&(u&&n.hasAttribute(u)?(i=!0,o=e.deserialize(n.getAttribute(u))):o="initial"in e?(0,v.default)(n,e):(0,p.default)(n,e)),o=e.coerce(o),r.internalValue=o;var l=e.attrTarget&&!(0,c.default)(o)&&(!i||e.attrTargetIsNotSource);if(l){var f=e.serialize(o);(0,s.default)(n).setAttrValue(e.attrTarget,f)}},n.get=function(){var n=(0,b.default)(this,t),r=n.internalValue;return e.get?e.get(this,{name:t,internalValue:r}):r},n.set=function(n){var r=(0,b.default)(this,t),u=(0,c.default)(n);if(u&&(n=(0,p.default)(this,e)),n=e.coerce(n),e.set){var i=r.oldValue;(0,c.default)(i)&&(i=null);var a={name:t,newValue:n,oldValue:i};e.set(this,a)}this[o.rendererDebounced](this),r.internalValue=r.oldValue=n;var l=e.attrTarget&&(e.attrTargetIsNotSource||!r.settingPropFromAttrSource);if(l){var f=u?null:e.serialize(n);(0,s.default)(this).setAttrValue(e.attrTarget,f)}},n}Object.defineProperty(t,"__esModule",{value:!0}),t.createNativePropertyDescriptor=u;var o=n(8),i=n(15),a=r(i),l=n(5),c=r(l),f=n(21),s=r(f),d=n(30),p=r(d),y=n(31),v=r(y),h=n(32),b=r(h)},function(e,t){"use strict";function n(e,t){return"function"==typeof t.default?t.default(e,{name:t.nameOrSymbol}):t.default}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e,t){return"function"==typeof t.initial?t.initial(e,{name:t.nameOrSymbol}):t.initial}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=(0,i.default)(e,"props");return n[t]||(n[t]={})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(15),i=r(o)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.is||(Object.is=function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}),t.default=Object.is},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(){for(var e=s.default.customElements,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],l=n[1];if(!e)throw new Error("Skate requires native custom element support or a polyfill.");if(1===n.length){if("string"==typeof i)throw new Error("When passing only one argument to define(), it must be a custom element constructor.");l=i,i=(0,c.default)()}return e.get(i)&&(i=(0,c.default)(i)),"object"===("undefined"==typeof l?"undefined":u(l))&&(l=a.default.extend(l)),l[o.name]=i,e.define(i,l),l};var o=n(8),i=n(13),a=r(i),l=n(35),c=r(l),f=n(12),s=r(f)},function(e,t){"use strict";function n(e){var t="xxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)});return(e||"x")+"-"+t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.detail;delete t.detail;var r=void 0;return a?(r=new a(e,t),Object.defineProperty(r,"detail",{value:n})):(r=document.createEvent("CustomEvent"),Object.defineProperty(r,"composed",{value:t.composed}),r.initCustomEvent(e,t.bubbles,t.cancelable,n)),r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return void 0===n.bubbles&&(n.bubbles=!0),void 0===n.cancelable&&(n.cancelable=!0),void 0===n.composed&&(n.composed=!0),e.dispatchEvent(u(t,n))};var o=n(12),i=r(o),a=function(e){if(e)try{new e("emit-init")}catch(e){return}return e}(i.default.Event)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e.type;return"checkbox"===t||"radio"===t?!!e.checked&&(e.value||!0):e.value}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){var r=n.target||n.composedPath()[0],i=o(r),l=t||r.name||"value";if(l.indexOf(".")>-1){var c=l.split("."),f=c[0],s=c.pop(),d=c.reduce(function(e,t){return e&&e[t]},e);d[s||n.target.name]=i,(0,a.default)(e,u({},f,e[f]))}else(0,a.default)(e,u({},l,i))}};var i=n(28),a=r(i)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);e[u.created]?t(e):n.readyCallbacks?n.readyCallbacks.push(t):n.readyCallbacks=[t]};var u=n(8),o=n(15),i=r(o)}])}); | ||
"use strict";function r(e,t){this.attrs=l(),this.attrsArr=[],this.newAttrs=l(),this.key=t,this.keyMap=null,this.keyMapValid=!0,this.nodeName=e,this.text=null}function u(){this.created=A.nodesCreated&&[],this.deleted=A.nodesDeleted&&[]}var o=Object.prototype.hasOwnProperty,i=Object.create,a=function(e,t){return o.call(e,t)},l=function(){return i(null)},c=function(e,t,n){var u=new r(t,n);return e.__incrementalDOMData=u,u},f=function(e){var t=e.__incrementalDOMData;if(!t){var n=e.nodeName.toLowerCase(),r=null;e instanceof Element&&(r=e.getAttribute("key")),t=c(e,n,r)}return t},s={default:"__default",placeholder:"__placeholder"},d=function(e){return 0===e.lastIndexOf("xml:",0)?"http://www.w3.org/XML/1998/namespace":0===e.lastIndexOf("xlink:",0)?"http://www.w3.org/1999/xlink":void 0},p=function(e,t,n){if(null==n)e.removeAttribute(t);else{var r=d(t);r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}},y=function(e,t,n){e[t]=n},v=function(e,t,n){if("string"==typeof n)e.style.cssText=n;else{e.style.cssText="";var r=e.style,u=n;for(var o in u)a(u,o)&&(r[o]=u[o])}},h=function(e,t,n){var r=typeof n;"object"===r||"function"===r?y(e,t,n):p(e,t,n)},b=function(e,t,n){var r=f(e),u=r.attrs;if(u[t]!==n){var o=_[t]||_[s.default];o(e,t,n),u[t]=n}},_=l();_[s.default]=h,_[s.placeholder]=function(){},_.style=v;var m=function(e,t){return"svg"===e?"http://www.w3.org/2000/svg":"foreignObject"===f(t).nodeName?null:t.namespaceURI},g=function(e,t,n,r,u){var o=m(n,t),i=void 0;if(i=o?e.createElementNS(o,n):e.createElement(n),c(i,n,r),u)for(var a=0;a<u.length;a+=2)b(i,u[a],u[a+1]);return i},O=function(e){var t=e.createTextNode("");return c(t,"#text",null),t},k=function(e){for(var t=l(),n=e.firstElementChild;n;){var r=f(n).key;r&&(t[r]=n),n=n.nextElementSibling}return t},P=function(e){var t=f(e);return t.keyMap||(t.keyMap=k(e)),t.keyMap},j=function(e,t){return t?P(e)[t]:null},M=function(e,t,n){P(e)[t]=n},A={nodesCreated:null,nodesDeleted:null};u.prototype.markCreated=function(e){this.created&&this.created.push(e)},u.prototype.markDeleted=function(e){this.deleted&&this.deleted.push(e)},u.prototype.notifyChanges=function(){this.created&&this.created.length>0&&A.nodesCreated(this.created),this.deleted&&this.deleted.length>0&&A.nodesDeleted(this.deleted)};var S=null,w=null,C=null,x=null,E=null,V=function(e){var t=function(t,n,r){var o=S,i=x,a=E,l=w,c=C;S=new u,x=t,E=t.ownerDocument,C=t.parentNode,e(t,n,r),S.notifyChanges(),S=o,x=i,E=a,w=l,C=c};return t},T=V(function(e,t,n){w=e,F(),t(n),U()}),N=V(function(e,t,n){w={nextSibling:e},t(n)}),D=function(e,t){var n=f(w);return e===n.nodeName&&t==n.key},z=function(e,t,n){if(!w||!D(e,t)){var r=void 0;t&&(r=j(C,t)),r||(r="#text"===e?O(E):g(E,C,e,t,n),t&&M(C,t,r),S.markCreated(r)),w&&f(w).key?(C.replaceChild(r,w),f(C).keyMapValid=!1):C.insertBefore(r,w),w=r}},I=function(){var e=C,t=f(e),n=t.keyMap,r=t.keyMapValid,u=e.lastChild,o=void 0;if(!(u===w&&r||t.attrs[s.placeholder]&&e!==x)){for(;u!==w;)e.removeChild(u),S.markDeleted(u),o=f(u).key,o&&delete n[o],u=e.lastChild;if(!r){for(o in n)u=n[o],u.parentNode!==e&&(S.markDeleted(u),delete n[o]);t.keyMapValid=!0}}},F=function(){C=w,w=null},L=function(){w=w?w.nextSibling:C.firstChild},U=function(){I(),w=C,C=C.parentNode},R=function(e,t,n){return L(),z(e,t,n),F(),C},B=function(){return U(),w},H=function(){return L(),z("#text",null,null),w},J=function(){return C},K=function(){w=C.lastChild},q=3,G=[],W=function(e,t,n,r){for(var u=R(e,t,n),o=f(u),i=o.attrsArr,a=o.newAttrs,l=!1,c=q,s=0;c<arguments.length;c+=1,s+=1)if(i[s]!==arguments[c]){l=!0;break}for(;c<arguments.length;c+=1,s+=1)i[s]=arguments[c];if(s<i.length&&(l=!0,i.length=s),l){for(c=q;c<arguments.length;c+=2)a[arguments[c]]=arguments[c+1];for(var d in a)b(u,d,a[d]),a[d]=void 0}return u},X=function(e,t,n){G[0]=e,G[1]=t,G[2]=n},Z=function(e,t){G.push(e,t)},Q=function(){var e=W.apply(null,G);return G.length=0,e},Y=function(e){var t=B();return t},$=function(e,t,n,r){return W.apply(null,arguments),Y(e)},ee=function(e,t,n,r){return W.apply(null,arguments),K(),Y(e)},te=function(e,t){var n=H(),r=f(n);if(r.text!==e){r.text=e;for(var u=e,o=1;o<arguments.length;o+=1){var i=arguments[o];u=i(u)}n.data=u}return n};t.patch=T,t.patchInner=T,t.patchOuter=N,t.currentElement=J,t.skip=K,t.elementVoid=$,t.elementOpenStart=X,t.elementOpenEnd=Q,t.elementOpen=W,t.elementClose=Y,t.elementPlaceholder=ee,t.text=te,t.attr=Z,t.symbols=s,t.attributes=_,t.applyAttr=p,t.applyProp=y,t.notifications=A},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n={};return Object.keys(t).forEach(function(r){n[r]=e[r],e[r]=t[r]}),n}function o(e,t){(0,a.default)(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){return function(){var r=u(e,t),i=n.apply(void 0,arguments);return o(e,r),i}}};var i=n(2),a=r(i)},function(e,t){(function(t){"use strict";e.exports="object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t||this}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n,r){return t===e[B]&&n===e[H]&&r===e[J]}function l(e){var t=(0,x.default)(e);return(0,w.default)(t).reduce(function(e,n){return e[n]=(0,T.createNativePropertyDescriptor)(t[n]),e},{})}function c(e){var t=l(e);return function(e){(0,w.default)(t).forEach(function(n){var r=t[n];r.beforeDefineProperty(e);var u=n in e,o=u&&e[n];Object.defineProperty(e,n,r),u&&(e[n]=o)})}}Object.defineProperty(t,"__esModule",{value:!0});var f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function e(t,n,r){null===t&&(t=Function.prototype);var u=Object.getOwnPropertyDescriptor(t,n);if(void 0===u){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in u)return u.value;var i=u.get;if(void 0!==i)return i.call(r)},d=n(10),p=n(8),y=n(2),v=r(y),h=n(14),b=r(h),_=n(15),m=r(_),g=n(16),O=r(g),k=n(18),P=(r(k),n(19)),j=r(P),M=n(20),A=r(M),S=n(3),w=r(S),C=n(21),x=r(C),E=n(26),V=r(E),T=n(27),N=n(4),D=n(31),z=r(D),I=n(25),F=r(I),L=n(12),U=r(L),R=U.default.HTMLElement||function(){function e(){i(this,e)}return e}(),B=(0,b.default)("prevName"),H=(0,b.default)("prevOldValue"),J=(0,b.default)("prevNewValue"),K=function(e){function t(){var e;i(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),l=a.constructor;a[p.created]=!0,l.hasOwnProperty(p.ctorCreateInitProps)||(0,F.default)(l,p.ctorCreateInitProps,c(l)),a[p.rendererDebounced]=(0,O.default)(a[p.renderer].bind(a));var f=(0,w.default)((0,x.default)(l)).length;f&&l[p.ctorCreateInitProps]&&l[p.ctorCreateInitProps](a),!a.renderCallback&&l.render&&(a.renderCallback=l.render.bind(l,a));var s=l.created;(0,N.isFunction)(s)&&s(a);var d=(0,m.default)(a),y=d.readyCallbacks;return y&&(y.forEach(function(e){return e(a)}),delete d.readyCallbacks),a}return o(t,e),f(t,null,[{key:"observedAttributes",get:function(){var e=this.hasOwnProperty(p.ctorObservedAttributes)?this[p.ctorObservedAttributes]:[],n=(0,x.default)(this),r=Object.keys(n).map(function(e){return n[e].attrSource}).filter(Boolean),u=r.concat(e).concat(s(t.__proto__||Object.getPrototypeOf(t),"observedAttributes",this));return u.filter(function(e,t){return u.indexOf(e)===t})},set:function(e){e=Array.isArray(e)?e:[],(0,F.default)(this,"observedAttributes",e)}},{key:"props",get:function(){return(0,v.default)({},s(t.__proto__||Object.getPrototypeOf(t),"props",this),this[p.ctorProps])},set:function(e){(0,F.default)(this,p.ctorProps,e)}}]),f(t,[{key:"connectedCallback",value:function(){(0,j.default)(this).resumeAttributesUpdates(),this[p.connected]=!0,this[p.rendererDebounced]();var e=this.constructor.attached;(0,N.isFunction)(e)&&e(this),this.setAttribute("defined","")}},{key:"disconnectedCallback",value:function(){(0,j.default)(this).suspendAttributesUpdates(),this[p.connected]=!1;var e=this.constructor.detached;(0,N.isFunction)(e)&&e(this)}},{key:"attributeChangedCallback",value:function(e,t,n){if(!a(this,e,t,n)){this[B]=e,this[H]=t,this[J]=n;var r=(0,m.default)(this,"attrSourceLinks")[e];if(r){var u=(0,j.default)(this).onAttributeChanged(e,n);if(u){var o=(0,x.default)(this.constructor)[r],i=null!==n&&o.deserialize?o.deserialize(n):n,l=(0,m.default)(this,"props")[r];l.settingPropFromAttrSource=!0,this[r]=i,l.settingPropFromAttrSource=!1}}var c=this.constructor.attributeChanged;(0,N.isFunction)(c)&&c(this,{name:e,newValue:n,oldValue:t})}}},{key:"updatedCallback",value:function(e){return this.constructor.hasOwnProperty("updated"),this.constructor.updated(this,e)}},{key:"renderedCallback",value:function(){return this.constructor.hasOwnProperty("rendered"),this.constructor.rendered(this)}},{key:"rendererCallback",value:function(){return this.constructor.renderer(this)}},{key:p.renderer,value:function(){!this[p.rendering]&&this[p.connected]&&(this[p.rendering]=!0,this[p.updated]()&&(0,N.isFunction)(this.renderCallback)&&(this.rendererCallback(),this.renderedCallback()),this[p.rendering]=!1)}},{key:p.updated,value:function(){var e=this[p.props];return this[p.props]=(0,V.default)(this),this.updatedCallback(e)}}],[{key:"extend",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=function(e){function t(){return i(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),t}(t),r=(0,A.default)(e),a=(0,A.default)(e.prototype);return delete r.prototype,Object.defineProperties(n,r),Object.defineProperties(n.prototype,a),n}},{key:"rendered",value:function(){}},{key:"renderer",value:function(e){e.shadowRoot||e.attachShadow({mode:"open"}),(0,d.patchInner)(e.shadowRoot,function(){var t=e.renderCallback(e);(0,N.isFunction)(t)?t():Array.isArray(t)&&t.forEach(function(e){(0,N.isFunction)(e)&&e()})})}},{key:"updated",value:function(e,t){if(!t)return!0;for(var n=(0,w.default)(t),r=0;r<n.length;r++){var u=n[r];if(!(0,z.default)(t[u],e[u]))return!0}return!1}}]),t}(R);t.default=K},function(e,t){"use strict";function n(e){return"function"==typeof Symbol?Symbol(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.__SKATE_DATA||(e.__SKATE_DATA={});return t&&(n[t]||(n[t]={}))||n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=!1,n=0,r=[],o=document.createElement("span"),i=new s(function(){e.apply(void 0,u(r)),t=!1,r=null});return i.observe(o,{childList:!0}),function(){for(var e=arguments.length,u=Array(e),i=0;i<e;i++)u[i]=arguments[i];r=u,t||(t=!0,o.textContent=""+n,n+=1)}}function i(e){var t=!1,n=[];return function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];n=o,t||(t=!0,setTimeout(function(){t=!1,e.apply(void 0,u(n))},1))}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(17),l=r(a),c=n(12),f=r(c),s=f.default.MutationObserver;t.default=(0,l.default)(s)?o:i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["native code","[object MutationObserverConstructor]"];t.default=function(e){return n.map(function(t){return(e||"").toString().indexOf([t])>-1}).reduce(function(e,t){return e||t})}},function(e,t,n){"use strict";function r(e,t,n){}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){var t=e[s];return t||(t=new f(e),e[s]=t),t}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=o;var a=n(6),l=r(a),c=n(4),f=function(){function e(t){u(this,e),this.elem=t,this.connected=!1,this.pendingValues={},this.lastSetValues={}}return i(e,[{key:"suspendAttributesUpdates",value:function(){this.connected=!1}},{key:"resumeAttributesUpdates",value:function(){var e=this;this.connected=!0;var t=Object.keys(this.pendingValues);t.forEach(function(t){var n=e.pendingValues[t];(0,c.isUndefined)(n)||(delete e.pendingValues[t],e._syncAttrValue(t,n))})}},{key:"onAttributeChanged",value:function(e,t){t=(0,l.default)(t),this._clearPendingValue(e);var n=this.lastSetValues[e]!==t;return this.lastSetValues[e]=t,n}},{key:"setAttrValue",value:function(e,t){t=(0,l.default)(t),this.lastSetValues[e]=t,this.connected?(this._clearPendingValue(e),this._syncAttrValue(e,t)):this.pendingValues[e]=t}},{key:"_syncAttrValue",value:function(e,t){var n=(0,l.default)(this.elem.getAttribute(e));t!==n&&(null===t?this.elem.removeAttribute(e):this.elem.setAttribute(e,t))}},{key:"_clearPendingValue",value:function(e){e in this.pendingValues&&delete this.pendingValues[e]}}]),e}(),s="____skate_attributesMgr"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.default)(e).reduce(function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t},{})};var u=n(3),o=r(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){return e.hasOwnProperty(o.ctorPropsMap)||!function(){var t=e.props||{},n=(0,a.default)(t).reduce(function(e,n){return e[n]=new c.default(n,t[n]),e},{});(0,s.default)(e,o.ctorPropsMap,n)}(),e[o.ctorPropsMap]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(8),i=n(3),a=r(i),l=n(22),c=r(l),f=n(25),s=r(f)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if((0,p.isSymbol)(t))(0,d.default)(t.toString()+" symbol property cannot have an attribute.");else{if(e===!0)return(0,l.default)(String(t));if((0,p.isString)(e))return e}return null}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(23),l=r(a),c=n(5),f=r(c),s=n(24),d=r(s),p=n(4),y=function(){function e(t,n){var r=this;u(this,e),this._nameOrSymbol=t,n=n||{},this.attrSource=null,this.attrTarget=null,this.attrTargetIsNotSource=!1,this.coerce=function(e){return e},this.default=null,this.deserialize=function(e){return e},this.get=null,this.serialize=function(e){return(0,f.default)(e)?null:String(e)},this.set=null,Object.keys(n).forEach(function(e){var u=n[e];switch(e){case"attribute":if((0,p.isObject)(u)){var i=u.source,a=u.target;i||a||(0,d.default)(e+" 'source' or 'target' is missing."),r.attrSource=o(i,t),r.attrTarget=o(a,t),r.attrTargetIsNotSource=r.attrTarget!==r.attrSource}else r.attrSource=r.attrTarget=o(u,t);break;case"coerce":case"deserialize":case"get":case"serialize":case"set":(0,p.isFunction)(u)?r[e]=u:(0,d.default)(e+" must be a function.");break;case"default":case"initial":r[e]=u;break;default:r[e]=u}})}return i(e,[{key:"nameOrSymbol",get:function(){return this._nameOrSymbol}}]),e}();t.default=y},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.split(/([A-Z])/).reduce(function(e,t,n){var r=e&&n%2!==0?"-":"";return""+e+r+t.toLowerCase()})}},function(e,t){"use strict";function n(e){throw new Error(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e,t,n){Object.defineProperty(e,t,{configurable:!0,value:n})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t={};return(0,f.default)((0,d.default)(e.constructor)).forEach(function(n){t[n]=e[n]}),t}function o(e,t){(0,l.default)(e,t),e[i.renderer]&&e[i.renderer]()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,p.isUndefined)(t)?u(e):o(e,t)};var i=n(8),a=n(2),l=r(a),c=n(3),f=r(c),s=n(21),d=r(s),p=n(4)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=e.nameOrSymbol,n={configurable:!0,enumerable:!0};return n.beforeDefineProperty=function(n){var r=(0,b.default)(n,t),u=e.attrSource;u&&((0,a.default)(n,"attrSourceLinks")[u]=t);var o=n[t],i=!1;(0,c.default)(o)&&(u&&n.hasAttribute(u)?(i=!0,o=e.deserialize(n.getAttribute(u))):o="initial"in e?(0,v.default)(n,e):(0,p.default)(n,e)),o=e.coerce(o),r.internalValue=o;var l=e.attrTarget&&!(0,c.default)(o)&&(!i||e.attrTargetIsNotSource);if(l){var f=e.serialize(o);(0,s.default)(n).setAttrValue(e.attrTarget,f)}},n.get=function(){var n=(0,b.default)(this,t),r=n.internalValue;return e.get?e.get(this,{name:t,internalValue:r}):r},n.set=function(n){var r=(0,b.default)(this,t),u=(0,c.default)(n);if(u&&(n=(0,p.default)(this,e)),n=e.coerce(n),e.set){var i=r.oldValue;(0,c.default)(i)&&(i=null);var a={name:t,newValue:n,oldValue:i};e.set(this,a)}this[o.rendererDebounced](this),r.internalValue=r.oldValue=n;var l=e.attrTarget&&(e.attrTargetIsNotSource||!r.settingPropFromAttrSource);if(l){var f=u?null:e.serialize(n);(0,s.default)(this).setAttrValue(e.attrTarget,f)}},n}Object.defineProperty(t,"__esModule",{value:!0}),t.createNativePropertyDescriptor=u;var o=n(8),i=n(15),a=r(i),l=n(5),c=r(l),f=n(19),s=r(f),d=n(28),p=r(d),y=n(29),v=r(y),h=n(30),b=r(h)},function(e,t){"use strict";function n(e,t){return"function"==typeof t.default?t.default(e,{name:t.nameOrSymbol}):t.default}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e,t){return"function"==typeof t.initial?t.initial(e,{name:t.nameOrSymbol}):t.initial}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=(0,i.default)(e,"props");return n[t]||(n[t]={})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(15),i=r(o)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.is||(Object.is=function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}),t.default=Object.is},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(){for(var e=s.default.customElements,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],l=n[1];if(!e)throw new Error("Skate requires native custom element support or a polyfill.");if(1===n.length){if("string"==typeof i)throw new Error("When passing only one argument to define(), it must be a custom element constructor.");l=i,i=(0,c.default)()}return e.get(i)&&(i=(0,c.default)(i)),"object"===("undefined"==typeof l?"undefined":u(l))&&(l=a.default.extend(l)),l[o.name]=i,e.define(i,l),l};var o=n(8),i=n(13),a=r(i),l=n(33),c=r(l),f=n(12),s=r(f)},function(e,t){"use strict";function n(e){var t="xxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)});return(e||"x")+"-"+t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.detail;delete t.detail;var r=void 0;return a?(r=new a(e,t),Object.defineProperty(r,"detail",{value:n})):(r=document.createEvent("CustomEvent"),Object.defineProperty(r,"composed",{value:t.composed}),r.initCustomEvent(e,t.bubbles,t.cancelable,n)),r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return void 0===n.bubbles&&(n.bubbles=!0),void 0===n.cancelable&&(n.cancelable=!0),void 0===n.composed&&(n.composed=!0),e.dispatchEvent(u(t,n))};var o=n(12),i=r(o),a=function(e){if(e)try{new e("emit-init")}catch(e){return}return e}(i.default.Event)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e.type;return"checkbox"===t||"radio"===t?!!e.checked&&(e.value||!0):e.value}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){var r=n.target||n.composedPath()[0],i=o(r),l=t||r.name||"value";if(l.indexOf(".")>-1){var c=l.split("."),f=c[0],s=c.pop(),d=c.reduce(function(e,t){return e&&e[t]},e);d[s||n.target.name]=i,(0,a.default)(e,u({},f,e[f]))}else(0,a.default)(e,u({},l,i))}};var i=n(26),a=r(i)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);e[u.created]?t(e):n.readyCallbacks?n.readyCallbacks.push(t):n.readyCallbacks=[t]};var u=n(8),o=n(15),i=r(o)}])}); | ||
//# sourceMappingURL=index-with-deps.min.js.map |
@@ -948,14 +948,4 @@ (function (global, factory) { | ||
var environment = process && process.env ? process.env.NODE_ENV : null; | ||
if (!environment) { | ||
environment = 'production'; | ||
} | ||
// IE doesn't support 'startsWith' | ||
var isProduction = environment.toLowerCase().indexOf('prod') === 0; | ||
function deprecated(elem, oldUsage, newUsage) { | ||
if (!isProduction) { | ||
var ownerName = elem.localName ? elem.localName : String(elem); | ||
console.warn(ownerName + ' ' + oldUsage + ' is deprecated. Use ' + newUsage + '.'); | ||
} | ||
} | ||
@@ -1567,3 +1557,3 @@ | ||
if (!_this.renderCallback && constructor.render) { | ||
deprecated(_this, 'static render', 'renderCallback'); | ||
false && deprecated(_this, 'static render', 'renderCallback'); | ||
_this.renderCallback = constructor.render.bind(constructor, _this); | ||
@@ -1580,3 +1570,3 @@ } | ||
if (isFunction(created$$1)) { | ||
deprecated(_this, 'static created', 'constructor'); | ||
false && deprecated(_this, 'static created', 'constructor'); | ||
created$$1(_this); | ||
@@ -1622,3 +1612,3 @@ } | ||
if (isFunction(attached)) { | ||
deprecated(this, 'static attached', 'connectedCallback'); | ||
false && deprecated(this, 'static attached', 'connectedCallback'); | ||
attached(this); | ||
@@ -1650,3 +1640,3 @@ } | ||
if (isFunction(detached)) { | ||
deprecated(this, 'static detached', 'disconnectedCallback'); | ||
false && deprecated(this, 'static detached', 'disconnectedCallback'); | ||
detached(this); | ||
@@ -1692,3 +1682,3 @@ } | ||
if (isFunction(attributeChanged)) { | ||
deprecated(this, 'static attributeChanged', 'attributeChangedCallback'); | ||
false && deprecated(this, 'static attributeChanged', 'attributeChangedCallback'); | ||
attributeChanged(this, { name: name$$1, newValue: newValue, oldValue: oldValue }); | ||
@@ -1704,3 +1694,3 @@ } | ||
if (this.constructor.hasOwnProperty('updated')) { | ||
deprecated(this, 'static updated', 'updatedCallback'); | ||
false && deprecated(this, 'static updated', 'updatedCallback'); | ||
} | ||
@@ -1716,3 +1706,3 @@ return this.constructor.updated(this, prevProps); | ||
if (this.constructor.hasOwnProperty('rendered')) { | ||
deprecated(this, 'static rendered', 'renderedCallback'); | ||
false && deprecated(this, 'static rendered', 'renderedCallback'); | ||
} | ||
@@ -1719,0 +1709,0 @@ return this.constructor.rendered(this); |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("incremental-dom"),require("window-or-global")):"function"==typeof define&&define.amd?define(["exports","incremental-dom","window-or-global"],t):t(e.skate=e.skate||{},e.IncrementalDOM,e.windowOrGlobal)}(this,function(e,t,n){function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.getOwnPropertyNames(e);return B(Object.getOwnPropertySymbols)?t.concat(Object.getOwnPropertySymbols(e)):t}function o(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.unshift({},e),Y.apply(void 0,n)}}function i(e,t){var n={};return Object.keys(t).forEach(function(r){n[r]=e[r],e[r]=t[r]}),n}function u(e,t){Y(e,t)}function a(e,t,n){var r=e[Pe];r||(r=e[Pe]={}),"undefined"==typeof r[t]&&e.addEventListener(t,function(e){r[t]&&r[t].call(this,e)}),r[t]="function"==typeof n?n:null}function c(e){if(!e)return e;if(e[le])return e[le];if(e.prototype instanceof we){var t=new e;return e[le]=t.localName}return e}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Ve=[e,t,n]}function s(){var e=Le.apply(void 0,K(Ve));return Ve=null,e}function f(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Te;return function r(){for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];if(i[0]=c(i[0]),Ee=null,"function"==typeof i[0])return Ee=i[0],n.apply(void 0,i);if(Se.length)Se[Se.length-1].push([r,i]);else{if(e===Ne){if(xe)return++xe;var a=e.apply(void 0,i);return a[Ce]&&++xe,a}if(e===t.elementClose){if(1===xe&&t.skip(),xe&&--xe)return;var f=e.apply(void 0,i),d=f[ve];return delete f[ve],"function"==typeof d&&d(f),f}if(!xe||e===l||e===s)return e.apply(void 0,i)}}}function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];Ee?Ee[je][t[0]]=t[1]:Se.length?Se[Se.length-1].push([d,t]):(Ve.push(t[0]),Ve.push(t[1]))}function p(e,t,n){for(var r={key:t,statics:n},o=arguments.length,i=Array(o>3?o-3:0),u=3;u<o;u++)i[u-3]=arguments[u];for(var a=0;a<i.length;a+=2)r[i[a]]=i[a+1];e[je]=r,Se.push([])}function h(e){var t=Se.pop(),n=e[je];delete e[je];var r=e(n,function(){return t.forEach(function(e){return e[0].apply(e,K(e[1]))})});return"function"==typeof r?r():r}function v(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Le.apply(void 0,[e].concat(n)),Me(e)}function y(e,t){for(var n="undefined"==typeof t?"undefined":U(t),r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return"function"!==n&&"string"!==n&&"number"!==n||o.unshift(t),null!==t&&"object"===n||(t={}),De(e,t.key,t.statics),delete t.key,delete t.statics,Object.keys(t).forEach(function(e){return d(e,t[e])}),Ie(e),o.forEach(function(e){var t="undefined"==typeof e?"undefined":U(e);"function"===t?e():"string"===t||"number"===t?Ue(e):Array.isArray(e)&&e.forEach(function(e){return e()})}),Me(e)}function b(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.bind.apply(y,[null].concat(t))}:t.map(function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return y.bind.apply(y,[null,e].concat(n))}})}function g(e){return"function"==typeof Symbol?Symbol(e):e}function m(e){var t=!1,n=0,r=[],o=document.createElement("span"),i=new He(function(){e.apply(void 0,K(r)),t=!1,r=null});return i.observe(o,{childList:!0}),function(){for(var e=arguments.length,i=Array(e),u=0;u<e;u++)i[u]=arguments[u];r=i,t||(t=!0,o.textContent=""+n,n+=1)}}function _(e){var t=!1,n=[];return function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];n=o,t||(t=!0,setTimeout(function(){t=!1,e.apply(void 0,K(n))},1))}}function k(e,t,n){if(!Be){var r=e.localName?e.localName:String(e);console.warn(r+" "+t+" is deprecated. Use "+n+".")}}function O(e){var t=e[Ze];return t||(t=new We(e),e[Ze]=t),t}function w(e){throw new Error(e)}function A(e,t){if(Q(t))w(t.toString()+" symbol property cannot have an attribute.");else{if(e===!0)return Xe(String(t));if(Z(e))return e}return null}function S(e,t,n){Object.defineProperty(e,t,{configurable:!0,value:n})}function C(e){return e.hasOwnProperty(pe)||!function(){var t=e.props||{},n=r(t).reduce(function(e,n){return e[n]=new Ye(n,t[n]),e},{});S(e,pe,n)}(),e[pe]}function P(e){var t={};return r(C(e.constructor)).forEach(function(n){t[n]=e[n]}),t}function j(e,t){Y(e,t),e[ye]&&e[ye]()}function E(e,t){return"function"==typeof t.default?t.default(e,{name:t.nameOrSymbol}):t.default}function V(e,t){return"function"==typeof t.initial?t.initial(e,{name:t.nameOrSymbol}):t.initial}function x(e,t){var n=qe(e,"props");return n[t]||(n[t]={})}function T(e){var t=e.nameOrSymbol,n={configurable:!0,enumerable:!0};return n.beforeDefineProperty=function(n){var r=x(n,t),o=e.attrSource;o&&(qe(n,"attrSourceLinks")[o]=t);var i=n[t],u=!1;$(i)&&(o&&n.hasAttribute(o)?(u=!0,i=e.deserialize(n.getAttribute(o))):i="initial"in e?V(n,e):E(n,e)),i=e.coerce(i),r.internalValue=i;var a=e.attrTarget&&!$(i)&&(!u||e.attrTargetIsNotSource);if(a){var c=e.serialize(i);O(n).setAttrValue(e.attrTarget,c)}},n.get=function(){var n=x(this,t),r=n.internalValue;return e.get?e.get(this,{name:t,internalValue:r}):r},n.set=function(n){var r=x(this,t),o=$(n);if(o&&(n=E(this,e)),n=e.coerce(n),e.set){var i=r.oldValue;$(i)&&(i=null);var u={name:t,newValue:n,oldValue:i};e.set(this,u)}this[ge](this),r.internalValue=r.oldValue=n;var a=e.attrTarget&&(e.attrTargetIsNotSource||!r.settingPropFromAttrSource);if(a){var c=o?null:e.serialize(n);O(this).setAttrValue(e.attrTarget,c)}},n}function z(e,t,n,r){return t===e[nt]&&n===e[rt]&&r===e[ot]}function N(e){var t=C(e);return r(t).reduce(function(e,n){return e[n]=T(t[n]),e},{})}function D(e){var t=N(e);return function(e){r(t).forEach(function(n){var r=t[n];r.beforeDefineProperty(e);var o=n in e,i=o&&e[n];Object.defineProperty(e,n,r),o&&(e[n]=i)})}}function I(e){var t="xxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)});return(e||"x")+"-"+t}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.detail;delete t.detail;var r=void 0;return at?(r=new at(e,t),Object.defineProperty(r,"detail",{value:n})):(r=document.createEvent("CustomEvent"),Object.defineProperty(r,"composed",{value:t.composed}),r.initCustomEvent(e,t.bubbles,t.cancelable,n)),r}function M(e){var t=e.type;return"checkbox"===t||"radio"===t?!!e.checked&&(e.value||!0):e.value}n="default"in n?n.default:n;var U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F=(function(){function e(e){this.value=e}function t(t){function n(e,t){return new Promise(function(n,o){var a={key:e,arg:t,resolve:n,reject:o,next:null};u?u=u.next=a:(i=u=a,r(e,t))})}function r(n,i){try{var u=t[n](i),a=u.value;a instanceof e?Promise.resolve(a.value).then(function(e){r("next",e)},function(e){r("throw",e)}):o(u.done?"return":"normal",u.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":i.resolve({value:t,done:!0});break;case"throw":i.reject(t);break;default:i.resolve({value:t,done:!1})}i=i.next,i?r(i.key,i.arg):u=null}var i,u;this._invoke=n,"function"!=typeof t.return&&(this.return=void 0)}return"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)},{wrap:function(e){return function(){return new t(e.apply(this,arguments))}},await:function(t){return new e(t)}}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),q=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),R=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},G=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var u=o.get;if(void 0!==u)return u.call(r)},H=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},J=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},K=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},B=function(e){return"function"==typeof e},W=function(e){return"object"===("undefined"==typeof e?"undefined":U(e))&&null!==e},Z=function(e){return"string"==typeof e},Q=function(e){return"symbol"===("undefined"==typeof e?"undefined":U(e))},X=function(e){return"undefined"==typeof e},Y=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.forEach(function(t){return r(t).forEach(function(n){return e[n]=t[n]})}),e},$=function(e){return"undefined"==typeof e||null===e},ee=function(e){return $(e)?null:String(e)},te=o({coerce:function(e){return Array.isArray(e)?e:$(e)?null:[e]},default:function(){return[]},deserialize:function(e){return $(e)?null:JSON.parse(e)},serialize:JSON.stringify}),ne=o({coerce:function(e){return!!e},default:!1,deserialize:function(e){return!(null===e)},serialize:function(e){return e?"":null}}),re=function(e){return $(e)?0:Number(e)},oe=o({default:0,coerce:re,deserialize:re,serialize:ee}),ie=o({default:"",coerce:ee,deserialize:ee,serialize:ee}),ue=Object.freeze({create:o,array:te,boolean:ne,number:oe,string:ie}),ae="____skate_connected",ce="____skate_created",le="____skate_name",se="____skate_ctor_createInitProps",fe="____skate_ctor_observedAttributes",de="____skate_ctor_props",pe="____skate_ctor_propsMap",he="____skate_props",ve="____skate_ref",ye="____skate_renderer",be="____skate_rendering",ge="____skate_rendererDebounced",me="____skate_updated",_e=Object.freeze({name:le}),ke=function(e,t){return function(n){return function(){var r=i(e,t),o=n.apply(void 0,arguments);return u(e,r),o}}},Oe=n.customElements,we=n.HTMLElement,Ae=t.attributes[t.symbols.default],Se=[],Ce="__skip",Pe="__events",je="__props",Ee=void 0,Ve=void 0,xe=0,Te=function(){},ze=ke(t.attributes,R({key:Te,statics:Te,checked:t.applyProp,className:t.applyProp,disabled:t.applyProp,value:t.applyProp,ref:function(e,t,n){e[ve]=n},skip:function(e,t,n){n?e[Ce]=!0:delete e[Ce]}},t.symbols.default,function(e,n,r){var o=Oe.get(e.localName)||{props:{},prototype:{}},i=o.props,u=o.prototype;if((n in i||n in e||n in u)&&!("ownerSVGElement"in e))return void t.applyProp(e,n,r);if(r===!1)return void Ae(e,n);if(0===n.indexOf("on")){var c=n[2],l=void 0;if("-"===c?l=n.substring(3):c===c.toUpperCase()&&(l=c.toLowerCase()+n.substring(3)),l)return void a(e,l,r)}Ae(e,n,r)})),Ne=ze(t.elementOpen),De=f(l,p),Ie=f(s),Le=f(Ne,p),Me=f(t.elementClose,h),Ue=f(t.text),Fe=Object.freeze({element:y,builder:b,attr:d,elementClose:Me,elementOpen:Le,elementOpenEnd:Ie,elementOpenStart:De,elementVoid:v,text:Ue}),qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.__SKATE_DATA||(e.__SKATE_DATA={});return t&&(n[t]||(n[t]={}))||n},Re=["native code","[object MutationObserverConstructor]"],Ge=function(e){return Re.map(function(t){return(e||"").toString().indexOf([t])>-1}).reduce(function(e,t){return e||t})},He=n.MutationObserver,Je=Ge(He)?m:_,Ke=process&&process.env?process.env.NODE_ENV:null;Ke||(Ke="production");var Be=0===Ke.toLowerCase().indexOf("prod"),We=function(){function e(t){F(this,e),this.elem=t,this.connected=!1,this.pendingValues={},this.lastSetValues={}}return q(e,[{key:"suspendAttributesUpdates",value:function(){this.connected=!1}},{key:"resumeAttributesUpdates",value:function(){var e=this;this.connected=!0;var t=Object.keys(this.pendingValues);t.forEach(function(t){var n=e.pendingValues[t];X(n)||(delete e.pendingValues[t],e._syncAttrValue(t,n))})}},{key:"onAttributeChanged",value:function(e,t){t=ee(t),this._clearPendingValue(e);var n=this.lastSetValues[e]!==t;return this.lastSetValues[e]=t,n}},{key:"setAttrValue",value:function(e,t){t=ee(t),this.lastSetValues[e]=t,this.connected?(this._clearPendingValue(e),this._syncAttrValue(e,t)):this.pendingValues[e]=t}},{key:"_syncAttrValue",value:function(e,t){var n=ee(this.elem.getAttribute(e));t!==n&&(null===t?this.elem.removeAttribute(e):this.elem.setAttribute(e,t))}},{key:"_clearPendingValue",value:function(e){e in this.pendingValues&&delete this.pendingValues[e]}}]),e}(),Ze="____skate_attributesMgr",Qe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r(e).reduce(function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t},{})},Xe=function(e){return e.split(/([A-Z])/).reduce(function(e,t,n){var r=e&&n%2!==0?"-":"";return""+e+r+t.toLowerCase()})},Ye=function(){function e(t,n){var r=this;F(this,e),this._nameOrSymbol=t,n=n||{},this.attrSource=null,this.attrTarget=null,this.attrTargetIsNotSource=!1,this.coerce=function(e){return e},this.default=null,this.deserialize=function(e){return e},this.get=null,this.serialize=function(e){return $(e)?null:String(e)},this.set=null,Object.keys(n).forEach(function(e){var o=n[e];switch(e){case"attribute":if(W(o)){var i=o.source,u=o.target;i||u||w(e+" 'source' or 'target' is missing."),r.attrSource=A(i,t),r.attrTarget=A(u,t),r.attrTargetIsNotSource=r.attrTarget!==r.attrSource}else r.attrSource=r.attrTarget=A(o,t);break;case"coerce":case"deserialize":case"get":case"serialize":case"set":B(o)?r[e]=o:w(e+" must be a function.");break;case"default":case"initial":r[e]=o;break;default:r[e]=o}})}return q(e,[{key:"nameOrSymbol",get:function(){return this._nameOrSymbol}}]),e}(),$e=function(e,t){return X(t)?P(e):j(e,t)};Object.is||(Object.is=function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t});var et=Object.is,tt=n.HTMLElement||function(){function e(){F(this,e)}return e}(),nt=g("prevName"),rt=g("prevOldValue"),ot=g("prevNewValue"),it=function(e){function n(){var e;F(this,n);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];var u=J(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(o))),a=u.constructor;u[ce]=!0,a.hasOwnProperty(se)||S(a,se,D(a)),u[ge]=Je(u[ye].bind(u));var c=r(C(a)).length;c&&a[se]&&a[se](u),!u.renderCallback&&a.render&&(k(u,"static render","renderCallback"),u.renderCallback=a.render.bind(a,u));var l=a.created;B(l)&&(k(u,"static created","constructor"),l(u));var s=qe(u),f=s.readyCallbacks;return f&&(f.forEach(function(e){return e(u)}),delete s.readyCallbacks),u}return H(n,e),q(n,null,[{key:"observedAttributes",get:function(){var e=this.hasOwnProperty(fe)?this[fe]:[],t=C(this),r=Object.keys(t).map(function(e){return t[e].attrSource}).filter(Boolean),o=r.concat(e).concat(G(n.__proto__||Object.getPrototypeOf(n),"observedAttributes",this));return o.filter(function(e,t){return o.indexOf(e)===t})},set:function(e){e=Array.isArray(e)?e:[],S(this,"observedAttributes",e)}},{key:"props",get:function(){return Y({},G(n.__proto__||Object.getPrototypeOf(n),"props",this),this[de])},set:function(e){S(this,de,e)}}]),q(n,[{key:"connectedCallback",value:function(){O(this).resumeAttributesUpdates(),this[ae]=!0,this[ge]();var e=this.constructor.attached;B(e)&&(k(this,"static attached","connectedCallback"),e(this)),this.setAttribute("defined","")}},{key:"disconnectedCallback",value:function(){O(this).suspendAttributesUpdates(),this[ae]=!1;var e=this.constructor.detached;B(e)&&(k(this,"static detached","disconnectedCallback"),e(this))}},{key:"attributeChangedCallback",value:function(e,t,n){if(!z(this,e,t,n)){this[nt]=e,this[rt]=t,this[ot]=n;var r=qe(this,"attrSourceLinks")[e];if(r){var o=O(this).onAttributeChanged(e,n);if(o){var i=C(this.constructor)[r],u=null!==n&&i.deserialize?i.deserialize(n):n,a=qe(this,"props")[r];a.settingPropFromAttrSource=!0,this[r]=u,a.settingPropFromAttrSource=!1}}var c=this.constructor.attributeChanged;B(c)&&(k(this,"static attributeChanged","attributeChangedCallback"),c(this,{name:e,newValue:n,oldValue:t}))}}},{key:"updatedCallback",value:function(e){return this.constructor.hasOwnProperty("updated")&&k(this,"static updated","updatedCallback"),this.constructor.updated(this,e)}},{key:"renderedCallback",value:function(){return this.constructor.hasOwnProperty("rendered")&&k(this,"static rendered","renderedCallback"),this.constructor.rendered(this)}},{key:"rendererCallback",value:function(){return this.constructor.renderer(this)}},{key:ye,value:function(){!this[be]&&this[ae]&&(this[be]=!0,this[me]()&&B(this.renderCallback)&&(this.rendererCallback(),this.renderedCallback()),this[be]=!1)}},{key:me,value:function(){var e=this[he];return this[he]=$e(this),this.updatedCallback(e)}}],[{key:"extend",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=function(e){function t(){return F(this,t),J(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return H(t,e),t}(t),r=Qe(e),o=Qe(e.prototype);return delete r.prototype,Object.defineProperties(n,r),Object.defineProperties(n.prototype,o),n}},{key:"rendered",value:function(){}},{key:"renderer",value:function(e){e.shadowRoot||e.attachShadow({mode:"open"}),t.patchInner(e.shadowRoot,function(){var t=e.renderCallback(e);B(t)?t():Array.isArray(t)&&t.forEach(function(e){B(e)&&e()})})}},{key:"updated",value:function(e,t){if(!t)return!0;for(var n=r(t),o=0;o<n.length;o++){var i=n[o];if(!et(t[i],e[i]))return!0}return!1}}]),n}(tt),ut=function(){for(var e=n.customElements,t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=r[0],u=r[1];if(!e)throw new Error("Skate requires native custom element support or a polyfill.");if(1===r.length){if("string"==typeof i)throw new Error("When passing only one argument to define(), it must be a custom element constructor.");u=i,i=I()}return e.get(i)&&(i=I(i)),"object"===("undefined"==typeof u?"undefined":U(u))&&(u=it.extend(u)),u[le]=i,e.define(i,u),u},at=function(e){if(e)try{new e("emit-init")}catch(e){return}return e}(n.Event),ct=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return void 0===n.bubbles&&(n.bubbles=!0),void 0===n.cancelable&&(n.cancelable=!0),void 0===n.composed&&(n.composed=!0),e.dispatchEvent(L(t,n))},lt=function(e,t){return function(n){var r=n.target||n.composedPath()[0],o=M(r),i=t||r.name||"value";if(i.indexOf(".")>-1){var u=i.split("."),a=u[0],c=u.pop(),l=u.reduce(function(e,t){return e&&e[t]},e);l[c||n.target.name]=o,$e(e,R({},a,e[a]))}else $e(e,R({},i,o))}},st=function(e,t){var n=qe(e);e[ce]?t(e):n.readyCallbacks?n.readyCallbacks.push(t):n.readyCallbacks=[t]},ft=b();e.Component=it,e.define=ut,e.emit=ct,e.h=ft,e.link=lt,e.prop=ue,e.props=$e,e.ready=st,e.symbols=_e,e.vdom=Fe,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("incremental-dom"),require("window-or-global")):"function"==typeof define&&define.amd?define(["exports","incremental-dom","window-or-global"],t):t(e.skate=e.skate||{},e.IncrementalDOM,e.windowOrGlobal)}(this,function(e,t,n){function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.getOwnPropertyNames(e);return K(Object.getOwnPropertySymbols)?t.concat(Object.getOwnPropertySymbols(e)):t}function o(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.unshift({},e),X.apply(void 0,n)}}function i(e,t){var n={};return Object.keys(t).forEach(function(r){n[r]=e[r],e[r]=t[r]}),n}function u(e,t){X(e,t)}function a(e,t,n){var r=e[Pe];r||(r=e[Pe]={}),"undefined"==typeof r[t]&&e.addEventListener(t,function(e){r[t]&&r[t].call(this,e)}),r[t]="function"==typeof n?n:null}function c(e){if(!e)return e;if(e[ce])return e[ce];if(e.prototype instanceof Oe){var t=new e;return e[ce]=t.localName}return e}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Ee=[e,t,n]}function s(){var e=Me.apply(void 0,J(Ee));return Ee=null,e}function f(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xe;return function r(){for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];if(i[0]=c(i[0]),Ce=null,"function"==typeof i[0])return Ce=i[0],n.apply(void 0,i);if(Ae.length)Ae[Ae.length-1].push([r,i]);else{if(e===ze){if(Ve)return++Ve;var a=e.apply(void 0,i);return a[Se]&&++Ve,a}if(e===t.elementClose){if(1===Ve&&t.skip(),Ve&&--Ve)return;var f=e.apply(void 0,i),d=f[he];return delete f[he],"function"==typeof d&&d(f),f}if(!Ve||e===l||e===s)return e.apply(void 0,i)}}}function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];Ce?Ce[je][t[0]]=t[1]:Ae.length?Ae[Ae.length-1].push([d,t]):(Ee.push(t[0]),Ee.push(t[1]))}function p(e,t,n){for(var r={key:t,statics:n},o=arguments.length,i=Array(o>3?o-3:0),u=3;u<o;u++)i[u-3]=arguments[u];for(var a=0;a<i.length;a+=2)r[i[a]]=i[a+1];e[je]=r,Ae.push([])}function h(e){var t=Ae.pop(),n=e[je];delete e[je];var r=e(n,function(){return t.forEach(function(e){return e[0].apply(e,J(e[1]))})});return"function"==typeof r?r():r}function v(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Me.apply(void 0,[e].concat(n)),De(e)}function y(e,t){for(var n="undefined"==typeof t?"undefined":L(t),r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return"function"!==n&&"string"!==n&&"number"!==n||o.unshift(t),null!==t&&"object"===n||(t={}),Ne(e,t.key,t.statics),delete t.key,delete t.statics,Object.keys(t).forEach(function(e){return d(e,t[e])}),Ie(e),o.forEach(function(e){var t="undefined"==typeof e?"undefined":L(e);"function"===t?e():"string"===t||"number"===t?Le(e):Array.isArray(e)&&e.forEach(function(e){return e()})}),De(e)}function b(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.bind.apply(y,[null].concat(t))}:t.map(function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return y.bind.apply(y,[null,e].concat(n))}})}function g(e){return"function"==typeof Symbol?Symbol(e):e}function m(e){var t=!1,n=0,r=[],o=document.createElement("span"),i=new Ge(function(){e.apply(void 0,J(r)),t=!1,r=null});return i.observe(o,{childList:!0}),function(){for(var e=arguments.length,i=Array(e),u=0;u<e;u++)i[u]=arguments[u];r=i,t||(t=!0,o.textContent=""+n,n+=1)}}function _(e){var t=!1,n=[];return function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];n=o,t||(t=!0,setTimeout(function(){t=!1,e.apply(void 0,J(n))},1))}}function k(e){var t=e[Ke];return t||(t=new Je(e),e[Ke]=t),t}function O(e){throw new Error(e)}function w(e,t){if(Z(t))O(t.toString()+" symbol property cannot have an attribute.");else{if(e===!0)return We(String(t));if(W(e))return e}return null}function A(e,t,n){Object.defineProperty(e,t,{configurable:!0,value:n})}function S(e){return e.hasOwnProperty(de)||!function(){var t=e.props||{},n=r(t).reduce(function(e,n){return e[n]=new Ze(n,t[n]),e},{});A(e,de,n)}(),e[de]}function P(e){var t={};return r(S(e.constructor)).forEach(function(n){t[n]=e[n]}),t}function j(e,t){X(e,t),e[ve]&&e[ve]()}function C(e,t){return"function"==typeof t.default?t.default(e,{name:t.nameOrSymbol}):t.default}function E(e,t){return"function"==typeof t.initial?t.initial(e,{name:t.nameOrSymbol}):t.initial}function V(e,t){var n=Fe(e,"props");return n[t]||(n[t]={})}function x(e){var t=e.nameOrSymbol,n={configurable:!0,enumerable:!0};return n.beforeDefineProperty=function(n){var r=V(n,t),o=e.attrSource;o&&(Fe(n,"attrSourceLinks")[o]=t);var i=n[t],u=!1;Y(i)&&(o&&n.hasAttribute(o)?(u=!0,i=e.deserialize(n.getAttribute(o))):i="initial"in e?E(n,e):C(n,e)),i=e.coerce(i),r.internalValue=i;var a=e.attrTarget&&!Y(i)&&(!u||e.attrTargetIsNotSource);if(a){var c=e.serialize(i);k(n).setAttrValue(e.attrTarget,c)}},n.get=function(){var n=V(this,t),r=n.internalValue;return e.get?e.get(this,{name:t,internalValue:r}):r},n.set=function(n){var r=V(this,t),o=Y(n);if(o&&(n=C(this,e)),n=e.coerce(n),e.set){var i=r.oldValue;Y(i)&&(i=null);var u={name:t,newValue:n,oldValue:i};e.set(this,u)}this[be](this),r.internalValue=r.oldValue=n;var a=e.attrTarget&&(e.attrTargetIsNotSource||!r.settingPropFromAttrSource);if(a){var c=o?null:e.serialize(n);k(this).setAttrValue(e.attrTarget,c)}},n}function T(e,t,n,r){return t===e[$e]&&n===e[et]&&r===e[tt]}function z(e){var t=S(e);return r(t).reduce(function(e,n){return e[n]=x(t[n]),e},{})}function N(e){var t=z(e);return function(e){r(t).forEach(function(n){var r=t[n];r.beforeDefineProperty(e);var o=n in e,i=o&&e[n];Object.defineProperty(e,n,r),o&&(e[n]=i)})}}function I(e){var t="xxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)});return(e||"x")+"-"+t}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.detail;delete t.detail;var r=void 0;return ot?(r=new ot(e,t),Object.defineProperty(r,"detail",{value:n})):(r=document.createEvent("CustomEvent"),Object.defineProperty(r,"composed",{value:t.composed}),r.initCustomEvent(e,t.bubbles,t.cancelable,n)),r}function D(e){var t=e.type;return"checkbox"===t||"radio"===t?!!e.checked&&(e.value||!0):e.value}n="default"in n?n.default:n;var L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U=(function(){function e(e){this.value=e}function t(t){function n(e,t){return new Promise(function(n,o){var a={key:e,arg:t,resolve:n,reject:o,next:null};u?u=u.next=a:(i=u=a,r(e,t))})}function r(n,i){try{var u=t[n](i),a=u.value;a instanceof e?Promise.resolve(a.value).then(function(e){r("next",e)},function(e){r("throw",e)}):o(u.done?"return":"normal",u.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":i.resolve({value:t,done:!0});break;case"throw":i.reject(t);break;default:i.resolve({value:t,done:!1})}i=i.next,i?r(i.key,i.arg):u=null}var i,u;this._invoke=n,"function"!=typeof t.return&&(this.return=void 0)}return"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)},{wrap:function(e){return function(){return new t(e.apply(this,arguments))}},await:function(t){return new e(t)}}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),F=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),q=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},R=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var u=o.get;if(void 0!==u)return u.call(r)},G=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},H=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},J=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},K=function(e){return"function"==typeof e},B=function(e){return"object"===("undefined"==typeof e?"undefined":L(e))&&null!==e},W=function(e){return"string"==typeof e},Z=function(e){return"symbol"===("undefined"==typeof e?"undefined":L(e))},Q=function(e){return"undefined"==typeof e},X=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.forEach(function(t){return r(t).forEach(function(n){return e[n]=t[n]})}),e},Y=function(e){return"undefined"==typeof e||null===e},$=function(e){return Y(e)?null:String(e)},ee=o({coerce:function(e){return Array.isArray(e)?e:Y(e)?null:[e]},default:function(){return[]},deserialize:function(e){return Y(e)?null:JSON.parse(e)},serialize:JSON.stringify}),te=o({coerce:function(e){return!!e},default:!1,deserialize:function(e){return!(null===e)},serialize:function(e){return e?"":null}}),ne=function(e){return Y(e)?0:Number(e)},re=o({default:0,coerce:ne,deserialize:ne,serialize:$}),oe=o({default:"",coerce:$,deserialize:$,serialize:$}),ie=Object.freeze({create:o,array:ee,boolean:te,number:re,string:oe}),ue="____skate_connected",ae="____skate_created",ce="____skate_name",le="____skate_ctor_createInitProps",se="____skate_ctor_observedAttributes",fe="____skate_ctor_props",de="____skate_ctor_propsMap",pe="____skate_props",he="____skate_ref",ve="____skate_renderer",ye="____skate_rendering",be="____skate_rendererDebounced",ge="____skate_updated",me=Object.freeze({name:ce}),_e=function(e,t){return function(n){return function(){var r=i(e,t),o=n.apply(void 0,arguments);return u(e,r),o}}},ke=n.customElements,Oe=n.HTMLElement,we=t.attributes[t.symbols.default],Ae=[],Se="__skip",Pe="__events",je="__props",Ce=void 0,Ee=void 0,Ve=0,xe=function(){},Te=_e(t.attributes,q({key:xe,statics:xe,checked:t.applyProp,className:t.applyProp,disabled:t.applyProp,value:t.applyProp,ref:function(e,t,n){e[he]=n},skip:function(e,t,n){n?e[Se]=!0:delete e[Se]}},t.symbols.default,function(e,n,r){var o=ke.get(e.localName)||{props:{},prototype:{}},i=o.props,u=o.prototype;if((n in i||n in e||n in u)&&!("ownerSVGElement"in e))return void t.applyProp(e,n,r);if(r===!1)return void we(e,n);if(0===n.indexOf("on")){var c=n[2],l=void 0;if("-"===c?l=n.substring(3):c===c.toUpperCase()&&(l=c.toLowerCase()+n.substring(3)),l)return void a(e,l,r)}we(e,n,r)})),ze=Te(t.elementOpen),Ne=f(l,p),Ie=f(s),Me=f(ze,p),De=f(t.elementClose,h),Le=f(t.text),Ue=Object.freeze({element:y,builder:b,attr:d,elementClose:De,elementOpen:Me,elementOpenEnd:Ie,elementOpenStart:Ne,elementVoid:v,text:Le}),Fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.__SKATE_DATA||(e.__SKATE_DATA={});return t&&(n[t]||(n[t]={}))||n},qe=["native code","[object MutationObserverConstructor]"],Re=function(e){return qe.map(function(t){return(e||"").toString().indexOf([t])>-1}).reduce(function(e,t){return e||t})},Ge=n.MutationObserver,He=Re(Ge)?m:_,Je=function(){function e(t){U(this,e),this.elem=t,this.connected=!1,this.pendingValues={},this.lastSetValues={}}return F(e,[{key:"suspendAttributesUpdates",value:function(){this.connected=!1}},{key:"resumeAttributesUpdates",value:function(){var e=this;this.connected=!0;var t=Object.keys(this.pendingValues);t.forEach(function(t){var n=e.pendingValues[t];Q(n)||(delete e.pendingValues[t],e._syncAttrValue(t,n))})}},{key:"onAttributeChanged",value:function(e,t){t=$(t),this._clearPendingValue(e);var n=this.lastSetValues[e]!==t;return this.lastSetValues[e]=t,n}},{key:"setAttrValue",value:function(e,t){t=$(t),this.lastSetValues[e]=t,this.connected?(this._clearPendingValue(e),this._syncAttrValue(e,t)):this.pendingValues[e]=t}},{key:"_syncAttrValue",value:function(e,t){var n=$(this.elem.getAttribute(e));t!==n&&(null===t?this.elem.removeAttribute(e):this.elem.setAttribute(e,t))}},{key:"_clearPendingValue",value:function(e){e in this.pendingValues&&delete this.pendingValues[e]}}]),e}(),Ke="____skate_attributesMgr",Be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r(e).reduce(function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t},{})},We=function(e){return e.split(/([A-Z])/).reduce(function(e,t,n){var r=e&&n%2!==0?"-":"";return""+e+r+t.toLowerCase()})},Ze=function(){function e(t,n){var r=this;U(this,e),this._nameOrSymbol=t,n=n||{},this.attrSource=null,this.attrTarget=null,this.attrTargetIsNotSource=!1,this.coerce=function(e){return e},this.default=null,this.deserialize=function(e){return e},this.get=null,this.serialize=function(e){return Y(e)?null:String(e)},this.set=null,Object.keys(n).forEach(function(e){var o=n[e];switch(e){case"attribute":if(B(o)){var i=o.source,u=o.target;i||u||O(e+" 'source' or 'target' is missing."),r.attrSource=w(i,t),r.attrTarget=w(u,t),r.attrTargetIsNotSource=r.attrTarget!==r.attrSource}else r.attrSource=r.attrTarget=w(o,t);break;case"coerce":case"deserialize":case"get":case"serialize":case"set":K(o)?r[e]=o:O(e+" must be a function.");break;case"default":case"initial":r[e]=o;break;default:r[e]=o}})}return F(e,[{key:"nameOrSymbol",get:function(){return this._nameOrSymbol}}]),e}(),Qe=function(e,t){return Q(t)?P(e):j(e,t)};Object.is||(Object.is=function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t});var Xe=Object.is,Ye=n.HTMLElement||function(){function e(){U(this,e)}return e}(),$e=g("prevName"),et=g("prevOldValue"),tt=g("prevNewValue"),nt=function(e){function n(){var e;U(this,n);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];var u=H(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(o))),a=u.constructor;u[ae]=!0,a.hasOwnProperty(le)||A(a,le,N(a)),u[be]=He(u[ve].bind(u));var c=r(S(a)).length;c&&a[le]&&a[le](u),!u.renderCallback&&a.render&&(u.renderCallback=a.render.bind(a,u));var l=a.created;K(l)&&l(u);var s=Fe(u),f=s.readyCallbacks;return f&&(f.forEach(function(e){return e(u)}),delete s.readyCallbacks),u}return G(n,e),F(n,null,[{key:"observedAttributes",get:function(){var e=this.hasOwnProperty(se)?this[se]:[],t=S(this),r=Object.keys(t).map(function(e){return t[e].attrSource}).filter(Boolean),o=r.concat(e).concat(R(n.__proto__||Object.getPrototypeOf(n),"observedAttributes",this));return o.filter(function(e,t){return o.indexOf(e)===t})},set:function(e){e=Array.isArray(e)?e:[],A(this,"observedAttributes",e)}},{key:"props",get:function(){return X({},R(n.__proto__||Object.getPrototypeOf(n),"props",this),this[fe])},set:function(e){A(this,fe,e)}}]),F(n,[{key:"connectedCallback",value:function(){k(this).resumeAttributesUpdates(),this[ue]=!0,this[be]();var e=this.constructor.attached;K(e)&&e(this),this.setAttribute("defined","")}},{key:"disconnectedCallback",value:function(){k(this).suspendAttributesUpdates(),this[ue]=!1;var e=this.constructor.detached;K(e)&&e(this)}},{key:"attributeChangedCallback",value:function(e,t,n){if(!T(this,e,t,n)){this[$e]=e,this[et]=t,this[tt]=n;var r=Fe(this,"attrSourceLinks")[e];if(r){var o=k(this).onAttributeChanged(e,n);if(o){var i=S(this.constructor)[r],u=null!==n&&i.deserialize?i.deserialize(n):n,a=Fe(this,"props")[r];a.settingPropFromAttrSource=!0,this[r]=u,a.settingPropFromAttrSource=!1}}var c=this.constructor.attributeChanged;K(c)&&c(this,{name:e,newValue:n,oldValue:t})}}},{key:"updatedCallback",value:function(e){return this.constructor.hasOwnProperty("updated"),this.constructor.updated(this,e)}},{key:"renderedCallback",value:function(){return this.constructor.hasOwnProperty("rendered"),this.constructor.rendered(this)}},{key:"rendererCallback",value:function(){return this.constructor.renderer(this)}},{key:ve,value:function(){!this[ye]&&this[ue]&&(this[ye]=!0,this[ge]()&&K(this.renderCallback)&&(this.rendererCallback(),this.renderedCallback()),this[ye]=!1)}},{key:ge,value:function(){var e=this[pe];return this[pe]=Qe(this),this.updatedCallback(e)}}],[{key:"extend",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=function(e){function t(){return U(this,t),H(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return G(t,e),t}(t),r=Be(e),o=Be(e.prototype);return delete r.prototype,Object.defineProperties(n,r),Object.defineProperties(n.prototype,o),n}},{key:"rendered",value:function(){}},{key:"renderer",value:function(e){e.shadowRoot||e.attachShadow({mode:"open"}),t.patchInner(e.shadowRoot,function(){var t=e.renderCallback(e);K(t)?t():Array.isArray(t)&&t.forEach(function(e){K(e)&&e()})})}},{key:"updated",value:function(e,t){if(!t)return!0;for(var n=r(t),o=0;o<n.length;o++){var i=n[o];if(!Xe(t[i],e[i]))return!0}return!1}}]),n}(Ye),rt=function(){for(var e=n.customElements,t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=r[0],u=r[1];if(!e)throw new Error("Skate requires native custom element support or a polyfill.");if(1===r.length){if("string"==typeof i)throw new Error("When passing only one argument to define(), it must be a custom element constructor.");u=i,i=I()}return e.get(i)&&(i=I(i)),"object"===("undefined"==typeof u?"undefined":L(u))&&(u=nt.extend(u)),u[ce]=i,e.define(i,u),u},ot=function(e){if(e)try{new e("emit-init")}catch(e){return}return e}(n.Event),it=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return void 0===n.bubbles&&(n.bubbles=!0),void 0===n.cancelable&&(n.cancelable=!0),void 0===n.composed&&(n.composed=!0),e.dispatchEvent(M(t,n))},ut=function(e,t){return function(n){var r=n.target||n.composedPath()[0],o=D(r),i=t||r.name||"value";if(i.indexOf(".")>-1){var u=i.split("."),a=u[0],c=u.pop(),l=u.reduce(function(e,t){return e&&e[t]},e);l[c||n.target.name]=o,Qe(e,q({},a,e[a]))}else Qe(e,q({},i,o))}},at=function(e,t){var n=Fe(e);e[ae]?t(e):n.readyCallbacks?n.readyCallbacks.push(t):n.readyCallbacks=[t]},ct=b();e.Component=nt,e.define=rt,e.emit=it,e.h=ct,e.link=ut,e.prop=ie,e.props=Qe,e.ready=at,e.symbols=me,e.vdom=Ue,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=index.min.js.map |
@@ -28,2 +28,3 @@ { | ||
"incremental-dom": "0.4.1", | ||
"rollup-plugin-replace": "^1.1.1", | ||
"window-or-global": "1.0.1" | ||
@@ -52,3 +53,3 @@ }, | ||
}, | ||
"version": "4.4.1" | ||
"version": "4.4.2" | ||
} |
@@ -157,3 +157,3 @@ import { patchInner } from 'incremental-dom'; | ||
if (!this.renderCallback && constructor.render) { | ||
deprecated(this, 'static render', 'renderCallback'); | ||
DEBUG && deprecated(this, 'static render', 'renderCallback'); | ||
this.renderCallback = constructor.render.bind(constructor, this); | ||
@@ -169,3 +169,3 @@ } | ||
if (isFunction(created)) { | ||
deprecated(this, 'static created', 'constructor'); | ||
DEBUG && deprecated(this, 'static created', 'constructor'); | ||
created(this); | ||
@@ -203,3 +203,3 @@ } | ||
if (isFunction(attached)) { | ||
deprecated(this, 'static attached', 'connectedCallback'); | ||
DEBUG && deprecated(this, 'static attached', 'connectedCallback'); | ||
attached(this); | ||
@@ -227,3 +227,3 @@ } | ||
if (isFunction(detached)) { | ||
deprecated(this, 'static detached', 'disconnectedCallback'); | ||
DEBUG && deprecated(this, 'static detached', 'disconnectedCallback'); | ||
detached(this); | ||
@@ -267,3 +267,3 @@ } | ||
if (isFunction(attributeChanged)) { | ||
deprecated(this, 'static attributeChanged', 'attributeChangedCallback'); | ||
DEBUG && deprecated(this, 'static attributeChanged', 'attributeChangedCallback'); | ||
attributeChanged(this, { name, newValue, oldValue }); | ||
@@ -276,3 +276,3 @@ } | ||
if (this.constructor.hasOwnProperty('updated')) { | ||
deprecated(this, 'static updated', 'updatedCallback'); | ||
DEBUG && deprecated(this, 'static updated', 'updatedCallback'); | ||
} | ||
@@ -285,3 +285,3 @@ return this.constructor.updated(this, prevProps); | ||
if (this.constructor.hasOwnProperty('rendered')) { | ||
deprecated(this, 'static rendered', 'renderedCallback'); | ||
DEBUG && deprecated(this, 'static rendered', 'renderedCallback'); | ||
} | ||
@@ -288,0 +288,0 @@ return this.constructor.rendered(this); |
@@ -1,5 +0,3 @@ | ||
import isProduction from './is-production'; | ||
export default function deprecated (elem, oldUsage, newUsage) { | ||
if (!isProduction) { | ||
if (DEBUG) { | ||
const ownerName = elem.localName ? elem.localName : String(elem); | ||
@@ -6,0 +4,0 @@ console.warn(`${ownerName} ${oldUsage} is deprecated. Use ${newUsage}.`); |
Sorry, the diff of this file is too big to display
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
0
854828
3
47
6129
+ Addedrollup-plugin-replace@^1.1.1
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedestree-walker@0.6.1(transitive)
+ Addedmagic-string@0.22.5(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedrollup-plugin-replace@1.2.1(transitive)
+ Addedrollup-pluginutils@2.8.2(transitive)
+ Addedvlq@0.2.3(transitive)