ak-blanket
Advanced tools
Comparing version 3.1.1 to 4.0.0
@@ -1,6 +0,11 @@ | ||
<a name="3.1.1"></a> | ||
## 3.1.1 (2016-11-03) | ||
<a name="4.0.0"></a> | ||
# 4.0.0 (2016-11-07) | ||
<a name="ak-blanket@4.0.0"></a> | ||
# ak-blanket@4.0.0 (2016-11-07) | ||
<a name="ak-blanket@3.1.1"></a> | ||
@@ -15,3 +20,13 @@ ## ak-blanket@3.1.1 (2016-11-03) | ||
### Code Refactoring | ||
* Remove bundle-with-deps ([29293c8](https://bitbucket.org/atlassian/atlaskit/commits/29293c8)) | ||
### BREAKING CHANGES | ||
* removes the bundle-with-deps distro | ||
<a name="ak-blanket@3.1.0"></a> | ||
@@ -18,0 +33,0 @@ # ak-blanket@3.1.0 (2016-10-19) |
@@ -73,7 +73,7 @@ module.exports = /******/ | ||
if (null != obj) for (var key in obj) Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); | ||
return newObj["default"] = obj, newObj; | ||
return newObj.default = obj, newObj; | ||
} | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { | ||
"default": obj | ||
default: obj | ||
}; | ||
@@ -101,8 +101,7 @@ } | ||
*/ | ||
exports["default"] = (0, _skatejs.define)("ak-blanket", { | ||
exports.default = (0, _skatejs.define)("ak-blanket", { | ||
render: function(elem) { | ||
var classes = (0, _classnames2["default"])([ _shadow2["default"].locals.blanket, (0, | ||
_defineProperty3["default"])({}, "" + _shadow2["default"].locals.tinted, elem.tinted) ]); | ||
var classes = (0, _classnames2.default)([ _shadow2.default.locals.blanket, (0, _defineProperty3.default)({}, "" + _shadow2.default.locals.tinted, elem.tinted) ]); | ||
// TODO make sure that the div onclick is accessible | ||
return _skatejs.vdom.elementOpen("div"), _skatejs.vdom.elementOpen("style"), _renderArbitrary(_shadow2["default"].toString()), | ||
return _skatejs.vdom.elementOpen("div"), _skatejs.vdom.elementOpen("style"), _renderArbitrary(_shadow2.default.toString()), | ||
_skatejs.vdom.elementClose("style"), _skatejs.vdom.elementVoid("div", null, null, "onClick", handleActivation(elem), "onTouch", handleActivation(elem), "className", classes), | ||
@@ -121,3 +120,3 @@ _skatejs.vdom.elementClose("div"); | ||
*/ | ||
tinted: _skatejs.prop["boolean"]({ | ||
tinted: _skatejs.prop.boolean({ | ||
attribute: !0 | ||
@@ -136,3 +135,3 @@ }), | ||
*/ | ||
clickable: _skatejs.prop["boolean"]({ | ||
clickable: _skatejs.prop.boolean({ | ||
attribute: !0 | ||
@@ -139,0 +138,0 @@ }) |
@@ -1,1 +0,1 @@ | ||
module.exports=function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(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}function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){return function(){e.clickable&&(0,c.emit)(e,h.activate)}}Object.defineProperty(t,"__esModule",{value:!0}),t.events=void 0;var a=n(3),l=r(a),u=Object.prototype.hasOwnProperty,f=function(e,t){for(var n in e)u.call(e,n)&&t(e[n],n)},s=function m(e){var t=typeof e;"number"===t||"string"===t||"object"===t&&e instanceof String?c.vdom.text(e):"function"===t&&e.__jsxDOMWrapper?e():Array.isArray(e)?e.forEach(m):"object"===t&&"[object Object]"===String(e)&&f(e,m)},c=n(4),d=n(5),p=r(d),b=n(6),v=r(b),k=n(8),h=o(k);t["default"]=(0,c.define)("ak-blanket",{render:function(e){var t=(0,p["default"])([v["default"].locals.blanket,(0,l["default"])({},""+v["default"].locals.tinted,e.tinted)]);return c.vdom.elementOpen("div"),c.vdom.elementOpen("style"),s(v["default"].toString()),c.vdom.elementClose("style"),c.vdom.elementVoid("div",null,null,"onClick",i(e),"onTouch",i(e),"className",t),c.vdom.elementClose("div")},props:{tinted:c.prop["boolean"]({attribute:!0}),clickable:c.prop["boolean"]({attribute:!0})}}),t.events=h},,,function(e,t){e.exports=require("babel-runtime/helpers/defineProperty")},function(e,t){e.exports=require("skatejs")},function(e,t){e.exports=require("classnames")},function(e,t,n){t=e.exports=n(7)(),t.push([e.id,"._1W1Nqrropv0xHevXc01L9b{bottom:0;left:0;position:fixed;right:0;top:0}._2jkUido-eka0FjtgtzHfhf{background:#091e42;opacity:.5}._3VEYBf7FbiuSuQ4zaBNSF9,ak-blanket{display:block}._3VEYBf7FbiuSuQ4zaBNSF9:not([defined]),ak-blanket:not([defined]){display:none}:host{display:block}:host(:not([defined])){display:none}",""]),t.locals={blanket:"_1W1Nqrropv0xHevXc01L9b",blanket:"_1W1Nqrropv0xHevXc01L9b",tinted:"_2jkUido-eka0FjtgtzHfhf",tinted:"_2jkUido-eka0FjtgtzHfhf","ak-blanket":"_3VEYBf7FbiuSuQ4zaBNSF9",akBlanket:"_3VEYBf7FbiuSuQ4zaBNSF9"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.activate="activate"}]); | ||
module.exports=function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(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}function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return function(){e.clickable&&(0,c.emit)(e,h.activate)}}Object.defineProperty(t,"__esModule",{value:!0}),t.events=void 0;var a=n(3),l=r(a),u=Object.prototype.hasOwnProperty,f=function(e,t){for(var n in e)u.call(e,n)&&t(e[n],n)},s=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?c.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&f(t,e)},c=n(4),d=n(5),p=r(d),b=n(6),v=r(b),k=n(8),h=o(k);t.default=(0,c.define)("ak-blanket",{render:function(e){var t=(0,p.default)([v.default.locals.blanket,(0,l.default)({},""+v.default.locals.tinted,e.tinted)]);return c.vdom.elementOpen("div"),c.vdom.elementOpen("style"),s(v.default.toString()),c.vdom.elementClose("style"),c.vdom.elementVoid("div",null,null,"onClick",i(e),"onTouch",i(e),"className",t),c.vdom.elementClose("div")},props:{tinted:c.prop.boolean({attribute:!0}),clickable:c.prop.boolean({attribute:!0})}}),t.events=h},,,function(e,t){e.exports=require("babel-runtime/helpers/defineProperty")},function(e,t){e.exports=require("skatejs")},function(e,t){e.exports=require("classnames")},function(e,t,n){t=e.exports=n(7)(),t.push([e.id,"._1W1Nqrropv0xHevXc01L9b{bottom:0;left:0;position:fixed;right:0;top:0}._2jkUido-eka0FjtgtzHfhf{background:#091e42;opacity:.5}._3VEYBf7FbiuSuQ4zaBNSF9,ak-blanket{display:block}._3VEYBf7FbiuSuQ4zaBNSF9:not([defined]),ak-blanket:not([defined]){display:none}:host{display:block}:host(:not([defined])){display:none}",""]),t.locals={blanket:"_1W1Nqrropv0xHevXc01L9b",blanket:"_1W1Nqrropv0xHevXc01L9b",tinted:"_2jkUido-eka0FjtgtzHfhf",tinted:"_2jkUido-eka0FjtgtzHfhf","ak-blanket":"_3VEYBf7FbiuSuQ4zaBNSF9",akBlanket:"_3VEYBf7FbiuSuQ4zaBNSF9"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.activate="activate"}]); |
@@ -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.akBlanket=t():e.akBlanket=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(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}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e){return function(){e.clickable&&(0,s.emit)(e,b.activate)}}Object.defineProperty(t,"__esModule",{value:!0}),t.events=void 0;var u=n(3),a=o(u),c=Object.prototype.hasOwnProperty,f=function(e,t){for(var n in e)c.call(e,n)&&t(e[n],n)},l=function m(e){var t=typeof e;"number"===t||"string"===t||"object"===t&&e instanceof String?s.vdom.text(e):"function"===t&&e.__jsxDOMWrapper?e():Array.isArray(e)?e.forEach(m):"object"===t&&"[object Object]"===String(e)&&f(e,m)},s=n(22),d=n(24),p=o(d),v=n(25),y=o(v),h=n(27),b=r(h);t["default"]=(0,s.define)("ak-blanket",{render:function(e){var t=(0,p["default"])([y["default"].locals.blanket,(0,a["default"])({},""+y["default"].locals.tinted,e.tinted)]);return s.vdom.elementOpen("div"),s.vdom.elementOpen("style"),l(y["default"].toString()),s.vdom.elementClose("style"),s.vdom.elementVoid("div",null,null,"onClick",i(e),"onTouch",i(e),"className",t),s.vdom.elementClose("div")},props:{tinted:s.prop["boolean"]({attribute:!0}),clickable:s.prop["boolean"]({attribute:!0})}}),t.events=b},,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(4),i=r(o);t["default"]=function(e,t,n){return t in e?(0,i["default"])(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){e.exports={"default":n(5),__esModule:!0}},function(e,t,n){n(6);var r=n(9).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(7);r(r.S+r.F*!n(17),"Object",{defineProperty:n(13).f})},function(e,t,n){var r=n(8),o=n(9),i=n(10),u=n(12),a="prototype",c=function(e,t,n){var f,l,s,d=e&c.F,p=e&c.G,v=e&c.S,y=e&c.P,h=e&c.B,b=e&c.W,m=p?o:o[t]||(o[t]={}),g=m[a],_=p?r:v?r[t]:(r[t]||{})[a];p&&(n=t);for(f in n)l=!d&&_&&void 0!==_[f],l&&f in m||(s=l?_[f]:n[f],m[f]=p&&"function"!=typeof _[f]?n[f]:h&&l?i(s,r):b&&_[f]==s?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[a]=e[a],t}(s):y&&"function"==typeof s?i(Function.call,s):s,y&&((m.virtual||(m.virtual={}))[f]=s,e&c.R&&g&&!g[f]&&u(g,f,s)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(11);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(13),o=n(21);e.exports=n(17)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(14),o=n(16),i=n(20),u=Object.defineProperty;t.f=n(17)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return u(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(15);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(17)&&!n(18)(function(){return 7!=Object.defineProperty(n(19)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=!n(18)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var r=n(15),o=n(8).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(15);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){!function(e,r){r(t,n(23))}(this,function(e,t){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.enumOnly,r=void 0!==n&&n,o=Object[r?"keys":"getOwnPropertyNames"](e);return"function"==typeof Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o}function r(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 o(e,t){var n={};return Object.keys(t).forEach(function(r){n[r]=e[r],e[r]=t[r]}),n}function i(e,t){Y(e,t)}function u(e,t,n){var r=e[Pe];r||(r=e[Pe]={});var o=r[t];o&&e.removeEventListener(t,o),n&&e.addEventListener(t,r[t]=n)}function a(e){return"function"==typeof e?e[ne]||e:"slot"===e&&Ee?"content":e}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;ze=[e,t,n]}function f(){var e=Re.apply(void 0,Ae(ze));return ze=null,e}function l(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]=a(i[0]),Ne=null,"function"==typeof i[0])return Ne=i[0],n.apply(void 0,i);if(Ce.length)Ce[Ce.length-1].push([r,i]);else{if(e===Fe){if(Ve)return++Ve;var l=e.apply(void 0,i);return l[Se]&&++Ve,l}if(e===t.elementClose){if(1===Ve&&t.skip(),Ve&&--Ve)return;var s=e.apply(void 0,i),d=s[oe];return delete s[oe],"function"==typeof d&&d(s),s}if(!Ve||e===c||e===f)return e.apply(void 0,i)}}}function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];Ne?Ne[Me][t[0]]=t[1]:Ce.length?Ce[Ce.length-1].push([s,t]):(ze.push(t[0]),ze.push(t[1]))}function d(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[Me]=r,Ce.push([])}function p(e){var t=Ce.pop(),n=e[Me];delete e[Me];var r=e(n,function(){return t.forEach(function(e){return e[0].apply(e,Ae(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 Re.apply(void 0,[e].concat(n)),He(e)}function y(e,t){for(var n="undefined"==typeof t?"undefined":_e(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={}),Le(e,t.key,t.statics),delete t.key,delete t.statics,Object.keys(t).forEach(function(e){return s(e,t[e])}),Be(e),o.forEach(function(e){var t="undefined"==typeof e?"undefined":_e(e);"function"===t?e():"string"===t||"number"===t?Ie(e):Array.isArray(e)&&e.forEach(function(e){return e()})}),He(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 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 b(e){var t=!1,n=0,r=[],o=document.createElement("span"),i=new Xe(function(){e.apply(void 0,Ae(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 m(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,Ae(n))},1))}}function g(e){var t={};return n(e.constructor.props).forEach(function(n){t[n]=e[n]}),t}function _(e,t){Y(e,t),e.constructor[ie]&&e.constructor[ie](e)}function k(e,t,n){return"function"==typeof n["default"]?n["default"](e,{name:t}):n["default"]}function w(e,t,n){return"function"==typeof n.initial?n.initial(e,{name:t}):n.initial}function x(e,t){var n=We(e,"props");return n[t]||(n[t]={})}function O(e,t,n,r,o){var i=o.lastAssignedValue;q(i)&&("initial"in t?i=w(e,n,t):"default"in t&&(i=k(e,n,t))),!q(i)&&t.serialize&&(i=t.serialize(i)),q(i)||(o.syncingAttribute=!0,e.setAttribute(r,i))}function A(e,t,n,r,o){if(r&&!o.settingAttribute){var i=o.internalValue,u=t.serialize(i),a=e.getAttribute(r),c=q(u),f=!(c&&q(a)||u===a);o.syncingAttribute=!0;var l=q(o.lastAssignedValue);l||c?e.removeAttribute(r):e.setAttribute(r,u),!f&&o.syncingAttribute&&(o.syncingAttribute=!1)}o.settingAttribute=!1}function j(e,t,n,r){var o=We(e,"propertyLinks")[n],i=x(e,n);o&&(r?O(e,t,n,o,i):A(e,t,n,o,i))}function E(e){return be?e.attachShadow({mode:"open"}):he?e.createShadowRoot():e}function C(e){return e[ce]||(e[ce]=E(e))}function S(e){var t=We(e),n=t.readyCallbacks,r=e.constructor;e[te]||(e[te]=!0,e[ae]=Ge(r[ie].bind(r)),r.props&&r[re]&&r[re](e),"function"==typeof r.created&&r.created(e),n&&(n.forEach(function(t){return t(e)}),delete t.readyCallbacks),ve&&r.observedAttributes.forEach(function(t){var n=We(e,"attributeLinks")[t];n||e.attributeChangedCallback(t,null,e.getAttribute(t))}))}function P(e){var t=e.constructor.props;Object.keys(t).forEach(function(n){var r=t[n];j(e,r,n,!0)})}function M(e){var t=e.constructor;P(e),e[ee]=!0,e[ae](e),"function"==typeof t.attached&&t.attached(e),e.setAttribute("defined","")}function N(e){var t=e.constructor;e[ee]=!1,"function"==typeof t.detached&&t.detached(e)}function z(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=me?Reflect.construct($e,t,this.constructor):$e.call(this,t[0]);return S(r),r}function V(e,t){var n={configurable:!0,enumerable:!0};return n.created=function(n){var r=x(n,e),o=t.attribute===!0?et(e):t.attribute,i=n[e];We(n,"attributeLinks")[o]=e,We(n,"propertyLinks")[e]=o,q(i)&&(o&&n.hasAttribute(o)?i=t.deserialize(n.getAttribute(o)):"initial"in t?i=w(n,e,t):"default"in t&&(i=k(n,e,t))),r.internalValue=t.coerce?t.coerce(i):i},n.get=function(){var n=x(this,e),r=n.internalValue;return"function"==typeof t.get?t.get(this,{name:e,internalValue:r}):r},n.set=function(n){var r=x(this,e);r.lastAssignedValue=n;var o=r.oldValue;q(o)&&(o=null),q(n)&&(n=k(this,e,t)),"function"==typeof t.coerce&&(n=t.coerce(n));var i={name:e,newValue:n,oldValue:o};"function"==typeof t.set&&t.set(this,i),this[ae](this),r.internalValue=r.oldValue=n,this[ee]&&j(this,t,e,!1)},n}function T(e){var t=e.props;return n(t).reduce(function(e,n){return e[n]=t[n],"function"!=typeof e[n]&&(e[n]=tt(e[n])),e},{})}function D(e){var t=T(e);return n(t).reduce(function(e,n){return e[n]=t[n](n),e},{})}function F(e){var t=e.observedAttributes,r=e.props;r&&(n(r).forEach(function(e){var n=r[e],o=n.attribute;if(o){var i=n.attribute=o===!0?et(e):o;t.indexOf(i)===-1&&t.push(i)}}),Object.defineProperty(e,"observedAttributes",{configurable:!0,enumerable:!0,get:function(){return t}}))}function L(e){var t=D(e);return function(e){t&&n(t).forEach(function(n){var r=t[n];r.created(e),Object.defineProperty(e,n,r)})}}function B(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+"-"+t}function R(e,t){t[ne]=e,t[re]=L(t)}function H(e,t){var n=void 0,r=void 0;try{R(e,t),n=document.registerElement(e,t)}catch(o){r=B(e),R(r,t),n=document.registerElement(r,t)}return n}function I(e,t){var n=e;return window.customElements.get(e)&&(n=B(e)),R(n,t),window.customElements.define(n,t,t["extends"]?{"extends":t["extends"]}:null),t}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 rt?(r=new rt(e,t),"undefined"!=typeof n&&Object.defineProperty(r,"detail",{value:n})):(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,t.bubbles,t.cancelable,n)),r}function W(e){var t=e.type;return"checkbox"===t||"radio"===t?!!e.checked&&(e.value||!0):e.value}var Y=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return r.forEach(function(t){return n(t).forEach(function(n){return e[n]=t[n]})}),e},q=function(e){return"undefined"==typeof e||null===e},Q=function(e){return isNaN(e)?void 0:Number(e)},X=function(e){return q(e)?void 0:String(e)},G=r({coerce:function(e){return Array.isArray(e)?e:[e]},"default":function(){return[]},deserialize:JSON.parse,serialize:JSON.stringify}),J=r({coerce:function(e){return!!e},"default":!1,deserialize:function(e){return!(null===e)},serialize:function(e){return e?"":void 0}}),K=r({"default":0,coerce:Q,deserialize:Q,serialize:Q}),Z=r({"default":"",coerce:X,deserialize:X,serialize:X}),$=Object.freeze({create:r,array:G,"boolean":J,number:K,string:Z}),ee="____skate_connected",te="____skate_created",ne="____skate_name",re="____skate_props",oe="____skate_ref",ie="____skate_renderer",ue="____skate_rendering",ae="____skate_rendererDebounced",ce="____skate_shadowRoot",fe="____skate_updated",le=Object.freeze({name:ne,shadowRoot:ce}),se=document,de=window,pe=se.createElement("div"),ve=!!se.registerElement,ye=!!de.customElements,he=!!pe.createShadowRoot,be=!!pe.attachShadow,me="Reflect"in window,ge=function(e,t){return function(n){return function(){var r=o(e,t),u=n.apply(void 0,arguments);return i(e,r),u}}},_e="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},ke=(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(c){o("throw",c)}}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")}),we=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},xe=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)},Oe=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},Ae=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)},je=t.attributes[t.symbols["default"]],Ee=!be&&he,Ce=[],Se="__skip",Pe="__events",Me="__props",Ne=void 0,ze=void 0,Ve=0,Te=function(){},De=ge(t.attributes,we({key:Te,statics:Te,checked:t.applyProp,className:t.applyProp,disabled:t.applyProp,value:t.applyProp,name:function(e,t,n){"CONTENT"===e.tagName&&(t="select",n='[slot="'+n+'"]'),je(e,t,n)},ref:function(e,t,n){e[oe]=n},skip:function(e,t,n){n?e[Se]=!0:delete e[Se]}},t.symbols["default"],function(e,n,r){var o=e.constructor.props;if(o&&n in o)return t.applyProp(e,n,r);if(r===!1)return je(e,n);if(0===n.indexOf("on")){var i=n[2],a=void 0;if("-"===i?a=n.substring(3):i===i.toUpperCase()&&(a=i.toLowerCase()+n.substring(3)),a)return void u(e,a,r)}return n in e&&!("ownerSVGElement"in e)?void t.applyProp(e,n,r):void je(e,n,r)})),Fe=De(t.elementOpen),Le=l(c,d),Be=l(f),Re=l(Fe,d),He=l(t.elementClose,p),Ie=l(t.text),Ue=Object.freeze({element:y,builder:h,attr:s,elementClose:He,elementOpen:Re,elementOpenEnd:Be,elementOpenStart:Le,elementVoid:v,text:Ie}),We=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},Ye=["native code","[object MutationObserverConstructor]"],qe=function(e){return Ye.map(function(t){return(e||"").toString().indexOf([t])>-1}).reduce(function(e,t){return e||t})},Qe=window,Xe=Qe.MutationObserver,Ge=qe(Xe)?b:m,Je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(e).reduce(function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t},{})},Ke=function(e,t){return"undefined"==typeof t?g(e):_(e,t)},Ze=window,$e=Ze.HTMLElement;z.observedAttributes=[],z.props={},z.extend=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 ke(this,t),Oe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return xe(t,e),t}(t);if(!n.observedAttributes){var r=Je(t);delete r.length,delete r.prototype,Object.defineProperties(n,r)}var o=Je(e),i=Je(e.prototype);return delete o.prototype,Object.defineProperties(n,o),Object.defineProperties(n.prototype,i),n},z.renderer=function(e){var n=e.elem,r=e.render,o=e.shadowRoot;t.patchInner(o,function(){var e=r(n);"function"==typeof e?e():Array.isArray(e)&&e.forEach(function(e){"function"==typeof e&&e()})})},z.updated=function(e,t){if(!t)return!0;for(var r=n(t),o=0;o<r.length;o+=1)if(t[r[o]]!==e[r[o]])return!0;return!1},z[fe]=function(e){if("function"==typeof this.updated){var t=e[re];return e[re]=Ke(e),this.updated(e,t)}return!0},z[ie]=function(e){if(!e[ue]&&e[ee]){e[ue]=!0;var t=this[fe](e);if(!this.render||!this.renderer)return void(e[ue]=!1);t&&(this.renderer({elem:e,render:this.render,shadowRoot:C(e)}),"function"==typeof this.rendered&&this.rendered(e)),e[ue]=!1}},z.prototype=Object.create($e.prototype,{connectedCallback:{configurable:!0,value:function(){M(this)}},disconnectedCallback:{configurable:!0,value:function(){N(this)}},attributeChangedCallback:{configurable:!0,value:function(e,t,n){var r=this.constructor,o=r.attributeChanged,i=r.observedAttributes,u=We(this,"attributeLinks")[e];if(!ve||i.indexOf(e)!==-1){if(u){var a=We(this,"props")[u];if(a.syncingAttribute)a.syncingAttribute=!1;else{var c=this.constructor.props[u];a.settingAttribute=!0;var f=null!==n&&c.deserialize?c.deserialize(n):n;this[u]=f}}o&&o(this,{name:e,newValue:n,oldValue:t})}}},createdCallback:{configurable:!0,value:function(){S(this)}},attachedCallback:{configurable:!0,value:function(){M(this)}},detachedCallback:{configurable:!0,value:function(){N(this)}}});var et=function(e){return e.split(/([A-Z])/).reduce(function(e,t,n){var r=e&&n%2!==0?"-":"";return""+e+r+t.toLowerCase()})},tt=function(e){return e=e||{},"function"==typeof e&&(e={coerce:e}),function(t){return V(t,Y({"default":null,deserialize:function(e){return e},serialize:function(e){return e}},e))}},nt=function(e,t){if(void 0===t)throw new Error("You have to define options to register a component "+e);var n="object"===("undefined"==typeof t?"undefined":_e(t))?z.extend(t):t;if(F(n),ye)return I(e,n);if(ve)return H(e,n);throw new Error("Skate requires native custom element support or a polyfill.")},rt=function(e){if(e)try{new e("emit-init")}catch(t){return}return e}(window.Event),ot=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))},it=function(e,t){return function(n){var r=W(n.target),o=t||n.target.name||"value";if(o.indexOf(".")>-1){var i=o.split("."),u=i[0],a=i.pop(),c=i.reduce(function(e,t){return e&&e[t]},e);c[a||n.target.name]=r,Ke(e,we({},u,e[u]))}else Ke(e,we({},o,r))}},ut=function(e,t){var n=We(e);e[te]?t(e):n.readyCallbacks?n.readyCallbacks.push(t):n.readyCallbacks=[t]},at=h();e.Component=z,e.define=nt,e.emit=ot,e.h=at,e.link=it,e.prop=$,e.props=Ke,e.ready=ut,e.symbols=le,e.vdom=Ue,Object.defineProperty(e,"__esModule",{value:!0})})},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.akBlanket=t():e.akBlanket=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(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}function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return function(){e.clickable&&(0,s.emit)(e,b.activate)}}Object.defineProperty(t,"__esModule",{value:!0}),t.events=void 0;var u=n(3),a=o(u),c=Object.prototype.hasOwnProperty,f=function(e,t){for(var n in e)c.call(e,n)&&t(e[n],n)},l=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?s.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&f(t,e)},s=n(22),d=n(24),p=o(d),v=n(25),y=o(v),h=n(27),b=r(h);t.default=(0,s.define)("ak-blanket",{render:function(e){var t=(0,p.default)([y.default.locals.blanket,(0,a.default)({},""+y.default.locals.tinted,e.tinted)]);return s.vdom.elementOpen("div"),s.vdom.elementOpen("style"),l(y.default.toString()),s.vdom.elementClose("style"),s.vdom.elementVoid("div",null,null,"onClick",i(e),"onTouch",i(e),"className",t),s.vdom.elementClose("div")},props:{tinted:s.prop.boolean({attribute:!0}),clickable:s.prop.boolean({attribute:!0})}}),t.events=b},,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(4),i=r(o);t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){e.exports={default:n(5),__esModule:!0}},function(e,t,n){n(6);var r=n(9).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(7);r(r.S+r.F*!n(17),"Object",{defineProperty:n(13).f})},function(e,t,n){var r=n(8),o=n(9),i=n(10),u=n(12),a="prototype",c=function(e,t,n){var f,l,s,d=e&c.F,p=e&c.G,v=e&c.S,y=e&c.P,h=e&c.B,b=e&c.W,m=p?o:o[t]||(o[t]={}),g=m[a],_=p?r:v?r[t]:(r[t]||{})[a];p&&(n=t);for(f in n)l=!d&&_&&void 0!==_[f],l&&f in m||(s=l?_[f]:n[f],m[f]=p&&"function"!=typeof _[f]?n[f]:h&&l?i(s,r):b&&_[f]==s?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[a]=e[a],t}(s):y&&"function"==typeof s?i(Function.call,s):s,y&&((m.virtual||(m.virtual={}))[f]=s,e&c.R&&g&&!g[f]&&u(g,f,s)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(11);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(13),o=n(21);e.exports=n(17)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(14),o=n(16),i=n(20),u=Object.defineProperty;t.f=n(17)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(15);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(17)&&!n(18)(function(){return 7!=Object.defineProperty(n(19)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=!n(18)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(15),o=n(8).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(15);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){!function(e,r){r(t,n(23))}(this,function(e,t){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.enumOnly,r=void 0!==n&&n,o=Object[r?"keys":"getOwnPropertyNames"](e);return"function"==typeof Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o}function r(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 o(e,t){var n={};return Object.keys(t).forEach(function(r){n[r]=e[r],e[r]=t[r]}),n}function i(e,t){Y(e,t)}function u(e,t,n){var r=e[Pe];r||(r=e[Pe]={});var o=r[t];o&&e.removeEventListener(t,o),n&&e.addEventListener(t,r[t]=n)}function a(e){return"function"==typeof e?e[ne]||e:"slot"===e&&Ee?"content":e}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;ze=[e,t,n]}function f(){var e=Re.apply(void 0,Ae(ze));return ze=null,e}function l(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]=a(i[0]),Ne=null,"function"==typeof i[0])return Ne=i[0],n.apply(void 0,i);if(Ce.length)Ce[Ce.length-1].push([r,i]);else{if(e===Fe){if(Ve)return++Ve;var l=e.apply(void 0,i);return l[Se]&&++Ve,l}if(e===t.elementClose){if(1===Ve&&t.skip(),Ve&&--Ve)return;var s=e.apply(void 0,i),d=s[oe];return delete s[oe],"function"==typeof d&&d(s),s}if(!Ve||e===c||e===f)return e.apply(void 0,i)}}}function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];Ne?Ne[Me][t[0]]=t[1]:Ce.length?Ce[Ce.length-1].push([s,t]):(ze.push(t[0]),ze.push(t[1]))}function d(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[Me]=r,Ce.push([])}function p(e){var t=Ce.pop(),n=e[Me];delete e[Me];var r=e(n,function(){return t.forEach(function(e){return e[0].apply(e,Ae(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 Re.apply(void 0,[e].concat(n)),He(e)}function y(e,t){for(var n="undefined"==typeof t?"undefined":_e(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={}),Le(e,t.key,t.statics),delete t.key,delete t.statics,Object.keys(t).forEach(function(e){return s(e,t[e])}),Be(e),o.forEach(function(e){var t="undefined"==typeof e?"undefined":_e(e);"function"===t?e():"string"===t||"number"===t?Ie(e):Array.isArray(e)&&e.forEach(function(e){return e()})}),He(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 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 b(e){var t=!1,n=0,r=[],o=document.createElement("span"),i=new Xe(function(){e.apply(void 0,Ae(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 m(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,Ae(n))},1))}}function g(e){var t={};return n(e.constructor.props).forEach(function(n){t[n]=e[n]}),t}function _(e,t){Y(e,t),e.constructor[ie]&&e.constructor[ie](e)}function k(e,t,n){return"function"==typeof n.default?n.default(e,{name:t}):n.default}function w(e,t,n){return"function"==typeof n.initial?n.initial(e,{name:t}):n.initial}function x(e,t){var n=We(e,"props");return n[t]||(n[t]={})}function O(e,t,n,r,o){var i=o.lastAssignedValue;q(i)&&("initial"in t?i=w(e,n,t):"default"in t&&(i=k(e,n,t))),!q(i)&&t.serialize&&(i=t.serialize(i)),q(i)||(o.syncingAttribute=!0,e.setAttribute(r,i))}function A(e,t,n,r,o){if(r&&!o.settingAttribute){var i=o.internalValue,u=t.serialize(i),a=e.getAttribute(r),c=q(u),f=!(c&&q(a)||u===a);o.syncingAttribute=!0;var l=q(o.lastAssignedValue);l||c?e.removeAttribute(r):e.setAttribute(r,u),!f&&o.syncingAttribute&&(o.syncingAttribute=!1)}o.settingAttribute=!1}function j(e,t,n,r){var o=We(e,"propertyLinks")[n],i=x(e,n);o&&(r?O(e,t,n,o,i):A(e,t,n,o,i))}function E(e){return be?e.attachShadow({mode:"open"}):he?e.createShadowRoot():e}function C(e){return e[ce]||(e[ce]=E(e))}function S(e){var t=We(e),n=t.readyCallbacks,r=e.constructor;e[te]||(e[te]=!0,e[ae]=Ge(r[ie].bind(r)),r.props&&r[re]&&r[re](e),"function"==typeof r.created&&r.created(e),n&&(n.forEach(function(t){return t(e)}),delete t.readyCallbacks),ve&&r.observedAttributes.forEach(function(t){var n=We(e,"attributeLinks")[t];n||e.attributeChangedCallback(t,null,e.getAttribute(t))}))}function P(e){var t=e.constructor.props;Object.keys(t).forEach(function(n){var r=t[n];j(e,r,n,!0)})}function M(e){var t=e.constructor;P(e),e[ee]=!0,e[ae](e),"function"==typeof t.attached&&t.attached(e),e.setAttribute("defined","")}function N(e){var t=e.constructor;e[ee]=!1,"function"==typeof t.detached&&t.detached(e)}function z(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=me?Reflect.construct($e,t,this.constructor):$e.call(this,t[0]);return S(r),r}function V(e,t){var n={configurable:!0,enumerable:!0};return n.created=function(n){var r=x(n,e),o=t.attribute===!0?et(e):t.attribute,i=n[e];We(n,"attributeLinks")[o]=e,We(n,"propertyLinks")[e]=o,q(i)&&(o&&n.hasAttribute(o)?i=t.deserialize(n.getAttribute(o)):"initial"in t?i=w(n,e,t):"default"in t&&(i=k(n,e,t))),r.internalValue=t.coerce?t.coerce(i):i},n.get=function(){var n=x(this,e),r=n.internalValue;return"function"==typeof t.get?t.get(this,{name:e,internalValue:r}):r},n.set=function(n){var r=x(this,e);r.lastAssignedValue=n;var o=r.oldValue;q(o)&&(o=null),q(n)&&(n=k(this,e,t)),"function"==typeof t.coerce&&(n=t.coerce(n));var i={name:e,newValue:n,oldValue:o};"function"==typeof t.set&&t.set(this,i),this[ae](this),r.internalValue=r.oldValue=n,this[ee]&&j(this,t,e,!1)},n}function T(e){var t=e.props;return n(t).reduce(function(e,n){return e[n]=t[n],"function"!=typeof e[n]&&(e[n]=tt(e[n])),e},{})}function D(e){var t=T(e);return n(t).reduce(function(e,n){return e[n]=t[n](n),e},{})}function F(e){var t=e.observedAttributes,r=e.props;r&&(n(r).forEach(function(e){var n=r[e],o=n.attribute;if(o){var i=n.attribute=o===!0?et(e):o;t.indexOf(i)===-1&&t.push(i)}}),Object.defineProperty(e,"observedAttributes",{configurable:!0,enumerable:!0,get:function(){return t}}))}function L(e){var t=D(e);return function(e){t&&n(t).forEach(function(n){var r=t[n];r.created(e),Object.defineProperty(e,n,r)})}}function B(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+"-"+t}function R(e,t){t[ne]=e,t[re]=L(t)}function H(e,t){var n=void 0,r=void 0;try{R(e,t),n=document.registerElement(e,t)}catch(o){r=B(e),R(r,t),n=document.registerElement(r,t)}return n}function I(e,t){var n=e;return window.customElements.get(e)&&(n=B(e)),R(n,t),window.customElements.define(n,t,t.extends?{extends:t.extends}:null),t}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 rt?(r=new rt(e,t),"undefined"!=typeof n&&Object.defineProperty(r,"detail",{value:n})):(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,t.bubbles,t.cancelable,n)),r}function W(e){var t=e.type;return"checkbox"===t||"radio"===t?!!e.checked&&(e.value||!0):e.value}var Y=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return r.forEach(function(t){return n(t).forEach(function(n){return e[n]=t[n]})}),e},q=function(e){return"undefined"==typeof e||null===e},Q=function(e){return isNaN(e)?void 0:Number(e)},X=function(e){return q(e)?void 0:String(e)},G=r({coerce:function(e){return Array.isArray(e)?e:[e]},default:function(){return[]},deserialize:JSON.parse,serialize:JSON.stringify}),J=r({coerce:function(e){return!!e},default:!1,deserialize:function(e){return!(null===e)},serialize:function(e){return e?"":void 0}}),K=r({default:0,coerce:Q,deserialize:Q,serialize:Q}),Z=r({default:"",coerce:X,deserialize:X,serialize:X}),$=Object.freeze({create:r,array:G,boolean:J,number:K,string:Z}),ee="____skate_connected",te="____skate_created",ne="____skate_name",re="____skate_props",oe="____skate_ref",ie="____skate_renderer",ue="____skate_rendering",ae="____skate_rendererDebounced",ce="____skate_shadowRoot",fe="____skate_updated",le=Object.freeze({name:ne,shadowRoot:ce}),se=document,de=window,pe=se.createElement("div"),ve=!!se.registerElement,ye=!!de.customElements,he=!!pe.createShadowRoot,be=!!pe.attachShadow,me="Reflect"in window,ge=function(e,t){return function(n){return function(){var r=o(e,t),u=n.apply(void 0,arguments);return i(e,r),u}}},_e="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},ke=(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")}),we=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},xe=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)},Oe=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},Ae=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)},je=t.attributes[t.symbols.default],Ee=!be&&he,Ce=[],Se="__skip",Pe="__events",Me="__props",Ne=void 0,ze=void 0,Ve=0,Te=function(){},De=ge(t.attributes,we({key:Te,statics:Te,checked:t.applyProp,className:t.applyProp,disabled:t.applyProp,value:t.applyProp,name:function(e,t,n){"CONTENT"===e.tagName&&(t="select",n='[slot="'+n+'"]'),je(e,t,n)},ref:function(e,t,n){e[oe]=n},skip:function(e,t,n){n?e[Se]=!0:delete e[Se]}},t.symbols.default,function(e,n,r){var o=e.constructor.props;if(o&&n in o)return t.applyProp(e,n,r);if(r===!1)return je(e,n);if(0===n.indexOf("on")){var i=n[2],a=void 0;if("-"===i?a=n.substring(3):i===i.toUpperCase()&&(a=i.toLowerCase()+n.substring(3)),a)return void u(e,a,r)}return n in e&&!("ownerSVGElement"in e)?void t.applyProp(e,n,r):void je(e,n,r)})),Fe=De(t.elementOpen),Le=l(c,d),Be=l(f),Re=l(Fe,d),He=l(t.elementClose,p),Ie=l(t.text),Ue=Object.freeze({element:y,builder:h,attr:s,elementClose:He,elementOpen:Re,elementOpenEnd:Be,elementOpenStart:Le,elementVoid:v,text:Ie}),We=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},Ye=["native code","[object MutationObserverConstructor]"],qe=function(e){return Ye.map(function(t){return(e||"").toString().indexOf([t])>-1}).reduce(function(e,t){return e||t})},Qe=window,Xe=Qe.MutationObserver,Ge=qe(Xe)?b:m,Je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(e).reduce(function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t},{})},Ke=function(e,t){return"undefined"==typeof t?g(e):_(e,t)},Ze=window,$e=Ze.HTMLElement;z.observedAttributes=[],z.props={},z.extend=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 ke(this,t),Oe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return xe(t,e),t}(t);if(!n.observedAttributes){var r=Je(t);delete r.length,delete r.prototype,Object.defineProperties(n,r)}var o=Je(e),i=Je(e.prototype);return delete o.prototype,Object.defineProperties(n,o),Object.defineProperties(n.prototype,i),n},z.renderer=function(e){var n=e.elem,r=e.render,o=e.shadowRoot;t.patchInner(o,function(){var e=r(n);"function"==typeof e?e():Array.isArray(e)&&e.forEach(function(e){"function"==typeof e&&e()})})},z.updated=function(e,t){if(!t)return!0;for(var r=n(t),o=0;o<r.length;o+=1)if(t[r[o]]!==e[r[o]])return!0;return!1},z[fe]=function(e){if("function"==typeof this.updated){var t=e[re];return e[re]=Ke(e),this.updated(e,t)}return!0},z[ie]=function(e){if(!e[ue]&&e[ee]){e[ue]=!0;var t=this[fe](e);if(!this.render||!this.renderer)return void(e[ue]=!1);t&&(this.renderer({elem:e,render:this.render,shadowRoot:C(e)}),"function"==typeof this.rendered&&this.rendered(e)),e[ue]=!1}},z.prototype=Object.create($e.prototype,{connectedCallback:{configurable:!0,value:function(){M(this)}},disconnectedCallback:{configurable:!0,value:function(){N(this)}},attributeChangedCallback:{configurable:!0,value:function(e,t,n){var r=this.constructor,o=r.attributeChanged,i=r.observedAttributes,u=We(this,"attributeLinks")[e];if(!ve||i.indexOf(e)!==-1){if(u){var a=We(this,"props")[u];if(a.syncingAttribute)a.syncingAttribute=!1;else{var c=this.constructor.props[u];a.settingAttribute=!0;var f=null!==n&&c.deserialize?c.deserialize(n):n;this[u]=f}}o&&o(this,{name:e,newValue:n,oldValue:t})}}},createdCallback:{configurable:!0,value:function(){S(this)}},attachedCallback:{configurable:!0,value:function(){M(this)}},detachedCallback:{configurable:!0,value:function(){N(this)}}});var et=function(e){return e.split(/([A-Z])/).reduce(function(e,t,n){var r=e&&n%2!==0?"-":"";return""+e+r+t.toLowerCase()})},tt=function(e){return e=e||{},"function"==typeof e&&(e={coerce:e}),function(t){return V(t,Y({default:null,deserialize:function(e){return e},serialize:function(e){return e}},e))}},nt=function(e,t){if(void 0===t)throw new Error("You have to define options to register a component "+e);var n="object"===("undefined"==typeof t?"undefined":_e(t))?z.extend(t):t;if(F(n),ye)return I(e,n);if(ve)return H(e,n);throw new Error("Skate requires native custom element support or a polyfill.")},rt=function(e){if(e)try{new e("emit-init")}catch(e){return}return e}(window.Event),ot=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))},it=function(e,t){return function(n){var r=W(n.target),o=t||n.target.name||"value";if(o.indexOf(".")>-1){var i=o.split("."),u=i[0],a=i.pop(),c=i.reduce(function(e,t){return e&&e[t]},e);c[a||n.target.name]=r,Ke(e,we({},u,e[u]))}else Ke(e,we({},o,r))}},ut=function(e,t){var n=We(e);e[te]?t(e):n.readyCallbacks?n.readyCallbacks.push(t):n.readyCallbacks=[t]},at=h();e.Component=z,e.define=nt,e.emit=ot,e.h=at,e.link=it,e.prop=$,e.props=Ke,e.ready=ut,e.symbols=le,e.vdom=Ue,Object.defineProperty(e,"__esModule",{value:!0})})},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=c(),this.attrsArr=[],this.newAttrs=c(),this.key=t,this.keyMap=null,this.keyMapValid=!0,this.nodeName=e,this.text=null}function o(){this.created=j.nodesCreated&&[],this.deleted=j.nodesDeleted&&[]}var i=Object.prototype.hasOwnProperty,u=Object.create,a=function(e,t){return i.call(e,t)},c=function(){return u(null)},f=function(e,t,n){var o=new r(t,n);return e.__incrementalDOMData=o,o},l=function(e){var t=e.__incrementalDOMData;if(!t){var n=e.nodeName.toLowerCase(),r=null;e instanceof Element&&(r=e.getAttribute("key")),t=f(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)}},v=function(e,t,n){e[t]=n},y=function(e,t,n){if("string"==typeof n)e.style.cssText=n;else{e.style.cssText="";var r=e.style,o=n;for(var i in o)a(o,i)&&(r[i]=o[i])}},h=function(e,t,n){var r=typeof n;"object"===r||"function"===r?v(e,t,n):p(e,t,n)},b=function(e,t,n){var r=l(e),o=r.attrs;if(o[t]!==n){var i=m[t]||m[s["default"]];i(e,t,n),o[t]=n}},m=c();m[s["default"]]=h,m[s.placeholder]=function(){},m.style=y;var g=function(e,t){return"svg"===e?"http://www.w3.org/2000/svg":"foreignObject"===l(t).nodeName?null:t.namespaceURI},_=function(e,t,n,r,o){var i=g(n,t),u=void 0;if(u=i?e.createElementNS(i,n):e.createElement(n),f(u,n,r),o)for(var a=0;a<o.length;a+=2)b(u,o[a],o[a+1]);return u},k=function(e){var t=e.createTextNode("");return f(t,"#text",null),t},w=function(e){for(var t=c(),n=e.firstElementChild;n;){var r=l(n).key;r&&(t[r]=n),n=n.nextElementSibling}return t},x=function(e){var t=l(e);return t.keyMap||(t.keyMap=w(e)),t.keyMap},O=function(e,t){return t?x(e)[t]:null},A=function(e,t,n){x(e)[t]=n},j={nodesCreated:null,nodesDeleted:null};o.prototype.markCreated=function(e){this.created&&this.created.push(e)},o.prototype.markDeleted=function(e){this.deleted&&this.deleted.push(e)},o.prototype.notifyChanges=function(){this.created&&this.created.length>0&&j.nodesCreated(this.created),this.deleted&&this.deleted.length>0&&j.nodesDeleted(this.deleted)};var E=null,C=null,S=null,P=null,M=null,N=function(e){var t=function(t,n,r){var i=E,u=P,a=M,c=C,f=S;E=new o,P=t,M=t.ownerDocument,S=t.parentNode,e(t,n,r),E.notifyChanges(),E=i,P=u,M=a,C=c,S=f};return t},z=N(function(e,t,n){C=e,L(),t(n),R()}),V=N(function(e,t,n){C={nextSibling:e},t(n)}),T=function(e,t){var n=l(C);return e===n.nodeName&&t==n.key},D=function(e,t,n){if(!C||!T(e,t)){var r=void 0;t&&(r=O(S,t)),r||(r="#text"===e?k(M):_(M,S,e,t,n),t&&A(S,t,r),E.markCreated(r)),C&&l(C).key?(S.replaceChild(r,C),l(S).keyMapValid=!1):S.insertBefore(r,C),C=r}},F=function(){var e=S,t=l(e),n=t.keyMap,r=t.keyMapValid,o=e.lastChild,i=void 0;if(!(o===C&&r||t.attrs[s.placeholder]&&e!==P)){for(;o!==C;)e.removeChild(o),E.markDeleted(o),i=l(o).key,i&&delete n[i],o=e.lastChild;if(!r){for(i in n)o=n[i],o.parentNode!==e&&(E.markDeleted(o),delete n[i]);t.keyMapValid=!0}}},L=function(){S=C,C=null},B=function(){C=C?C.nextSibling:S.firstChild},R=function(){F(),C=S,S=S.parentNode},H=function(e,t,n){return B(),D(e,t,n),L(),S},I=function(){return R(),C},U=function(){return B(),D("#text",null,null),C},W=function(){return S},Y=function(){C=S.lastChild},q=3,Q=[],X=function(e,t,n,r){for(var o=H(e,t,n),i=l(o),u=i.attrsArr,a=i.newAttrs,c=!1,f=q,s=0;f<arguments.length;f+=1,s+=1)if(u[s]!==arguments[f]){c=!0;break}for(;f<arguments.length;f+=1,s+=1)u[s]=arguments[f];if(s<u.length&&(c=!0,u.length=s),c){for(f=q;f<arguments.length;f+=2)a[arguments[f]]=arguments[f+1];for(var d in a)b(o,d,a[d]),a[d]=void 0}return o},G=function(e,t,n){Q[0]=e,Q[1]=t,Q[2]=n},J=function(e,t){Q.push(e,t)},K=function(){var e=X.apply(null,Q);return Q.length=0,e},Z=function(e){var t=I();return t},$=function(e,t,n,r){return X.apply(null,arguments),Z(e)},ee=function(e,t,n,r){return X.apply(null,arguments),Y(),Z(e)},te=function(e,t){var n=U(),r=l(n);if(r.text!==e){r.text=e;for(var o=e,i=1;i<arguments.length;i+=1){var u=arguments[i];o=u(o)}n.data=o}return n};t.patch=z,t.patchInner=z,t.patchOuter=V,t.currentElement=W,t.skip=Y,t.elementVoid=$,t.elementOpenStart=G,t.elementOpenEnd=K,t.elementOpen=X,t.elementClose=Z,t.elementPlaceholder=ee,t.text=te,t.attr=J,t.symbols=s,t.attributes=m,t.applyAttr=p,t.applyProp=v,t.notifications=j},function(e,t,n){var r,o;/*! | ||
"use strict";function r(e,t){this.attrs=c(),this.attrsArr=[],this.newAttrs=c(),this.key=t,this.keyMap=null,this.keyMapValid=!0,this.nodeName=e,this.text=null}function o(){this.created=j.nodesCreated&&[],this.deleted=j.nodesDeleted&&[]}var i=Object.prototype.hasOwnProperty,u=Object.create,a=function(e,t){return i.call(e,t)},c=function(){return u(null)},f=function(e,t,n){var o=new r(t,n);return e.__incrementalDOMData=o,o},l=function(e){var t=e.__incrementalDOMData;if(!t){var n=e.nodeName.toLowerCase(),r=null;e instanceof Element&&(r=e.getAttribute("key")),t=f(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)}},v=function(e,t,n){e[t]=n},y=function(e,t,n){if("string"==typeof n)e.style.cssText=n;else{e.style.cssText="";var r=e.style,o=n;for(var i in o)a(o,i)&&(r[i]=o[i])}},h=function(e,t,n){var r=typeof n;"object"===r||"function"===r?v(e,t,n):p(e,t,n)},b=function(e,t,n){var r=l(e),o=r.attrs;if(o[t]!==n){var i=m[t]||m[s.default];i(e,t,n),o[t]=n}},m=c();m[s.default]=h,m[s.placeholder]=function(){},m.style=y;var g=function(e,t){return"svg"===e?"http://www.w3.org/2000/svg":"foreignObject"===l(t).nodeName?null:t.namespaceURI},_=function(e,t,n,r,o){var i=g(n,t),u=void 0;if(u=i?e.createElementNS(i,n):e.createElement(n),f(u,n,r),o)for(var a=0;a<o.length;a+=2)b(u,o[a],o[a+1]);return u},k=function(e){var t=e.createTextNode("");return f(t,"#text",null),t},w=function(e){for(var t=c(),n=e.firstElementChild;n;){var r=l(n).key;r&&(t[r]=n),n=n.nextElementSibling}return t},x=function(e){var t=l(e);return t.keyMap||(t.keyMap=w(e)),t.keyMap},O=function(e,t){return t?x(e)[t]:null},A=function(e,t,n){x(e)[t]=n},j={nodesCreated:null,nodesDeleted:null};o.prototype.markCreated=function(e){this.created&&this.created.push(e)},o.prototype.markDeleted=function(e){this.deleted&&this.deleted.push(e)},o.prototype.notifyChanges=function(){this.created&&this.created.length>0&&j.nodesCreated(this.created),this.deleted&&this.deleted.length>0&&j.nodesDeleted(this.deleted)};var E=null,C=null,S=null,P=null,M=null,N=function(e){var t=function(t,n,r){var i=E,u=P,a=M,c=C,f=S;E=new o,P=t,M=t.ownerDocument,S=t.parentNode,e(t,n,r),E.notifyChanges(),E=i,P=u,M=a,C=c,S=f};return t},z=N(function(e,t,n){C=e,L(),t(n),R()}),V=N(function(e,t,n){C={nextSibling:e},t(n)}),T=function(e,t){var n=l(C);return e===n.nodeName&&t==n.key},D=function(e,t,n){if(!C||!T(e,t)){var r=void 0;t&&(r=O(S,t)),r||(r="#text"===e?k(M):_(M,S,e,t,n),t&&A(S,t,r),E.markCreated(r)),C&&l(C).key?(S.replaceChild(r,C),l(S).keyMapValid=!1):S.insertBefore(r,C),C=r}},F=function(){var e=S,t=l(e),n=t.keyMap,r=t.keyMapValid,o=e.lastChild,i=void 0;if(!(o===C&&r||t.attrs[s.placeholder]&&e!==P)){for(;o!==C;)e.removeChild(o),E.markDeleted(o),i=l(o).key,i&&delete n[i],o=e.lastChild;if(!r){for(i in n)o=n[i],o.parentNode!==e&&(E.markDeleted(o),delete n[i]);t.keyMapValid=!0}}},L=function(){S=C,C=null},B=function(){C=C?C.nextSibling:S.firstChild},R=function(){F(),C=S,S=S.parentNode},H=function(e,t,n){return B(),D(e,t,n),L(),S},I=function(){return R(),C},U=function(){return B(),D("#text",null,null),C},W=function(){return S},Y=function(){C=S.lastChild},q=3,Q=[],X=function(e,t,n,r){for(var o=H(e,t,n),i=l(o),u=i.attrsArr,a=i.newAttrs,c=!1,f=q,s=0;f<arguments.length;f+=1,s+=1)if(u[s]!==arguments[f]){c=!0;break}for(;f<arguments.length;f+=1,s+=1)u[s]=arguments[f];if(s<u.length&&(c=!0,u.length=s),c){for(f=q;f<arguments.length;f+=2)a[arguments[f]]=arguments[f+1];for(var d in a)b(o,d,a[d]),a[d]=void 0}return o},G=function(e,t,n){Q[0]=e,Q[1]=t,Q[2]=n},J=function(e,t){Q.push(e,t)},K=function(){var e=X.apply(null,Q);return Q.length=0,e},Z=function(e){var t=I();return t},$=function(e,t,n,r){return X.apply(null,arguments),Z(e)},ee=function(e,t,n,r){return X.apply(null,arguments),Y(),Z(e)},te=function(e,t){var n=U(),r=l(n);if(r.text!==e){r.text=e;for(var o=e,i=1;i<arguments.length;i+=1){var u=arguments[i];o=u(o)}n.data=o}return n};t.patch=z,t.patchInner=z,t.patchOuter=V,t.currentElement=W,t.skip=Y,t.elementVoid=$,t.elementOpenStart=G,t.elementOpenEnd=K,t.elementOpen=X,t.elementClose=Z,t.elementPlaceholder=ee,t.text=te,t.attr=J,t.symbols=s,t.attributes=m,t.applyAttr=p,t.applyProp=v,t.notifications=j},function(e,t,n){var r,o;/*! | ||
Copyright (c) 2016 Jed Watson. | ||
@@ -20,0 +20,0 @@ Licensed under the MIT License (MIT), see |
@@ -76,7 +76,7 @@ !function(root, factory) { | ||
if (null != obj) for (var key in obj) Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); | ||
return newObj["default"] = obj, newObj; | ||
return newObj.default = obj, newObj; | ||
} | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { | ||
"default": obj | ||
default: obj | ||
}; | ||
@@ -104,8 +104,7 @@ } | ||
*/ | ||
exports["default"] = (0, _skatejs.define)("ak-blanket", { | ||
exports.default = (0, _skatejs.define)("ak-blanket", { | ||
render: function(elem) { | ||
var classes = (0, _classnames2["default"])([ _shadow2["default"].locals.blanket, (0, | ||
_defineProperty3["default"])({}, "" + _shadow2["default"].locals.tinted, elem.tinted) ]); | ||
var classes = (0, _classnames2.default)([ _shadow2.default.locals.blanket, (0, _defineProperty3.default)({}, "" + _shadow2.default.locals.tinted, elem.tinted) ]); | ||
// TODO make sure that the div onclick is accessible | ||
return _skatejs.vdom.elementOpen("div"), _skatejs.vdom.elementOpen("style"), _renderArbitrary(_shadow2["default"].toString()), | ||
return _skatejs.vdom.elementOpen("div"), _skatejs.vdom.elementOpen("style"), _renderArbitrary(_shadow2.default.toString()), | ||
_skatejs.vdom.elementClose("style"), _skatejs.vdom.elementVoid("div", null, null, "onClick", handleActivation(elem), "onTouch", handleActivation(elem), "className", classes), | ||
@@ -124,3 +123,3 @@ _skatejs.vdom.elementClose("div"); | ||
*/ | ||
tinted: _skatejs.prop["boolean"]({ | ||
tinted: _skatejs.prop.boolean({ | ||
attribute: !0 | ||
@@ -139,3 +138,3 @@ }), | ||
*/ | ||
clickable: _skatejs.prop["boolean"]({ | ||
clickable: _skatejs.prop.boolean({ | ||
attribute: !0 | ||
@@ -142,0 +141,0 @@ }) |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-runtime/helpers/defineProperty"),require("skatejs"),require("classnames")):"function"==typeof define&&define.amd?define(["babel-runtime/helpers/defineProperty","skatejs","classnames"],t):"object"==typeof exports?exports.akBlanket=t(require("babel-runtime/helpers/defineProperty"),require("skatejs"),require("classnames")):e.akBlanket=t(e["babel-runtime/helpers/defineProperty"],e.skatejs,e.classnames)}(this,function(e,t,n){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(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}function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){return function(){e.clickable&&(0,c.emit)(e,m.activate)}}Object.defineProperty(t,"__esModule",{value:!0}),t.events=void 0;var a=n(3),l=r(a),u=Object.prototype.hasOwnProperty,s=function(e,t){for(var n in e)u.call(e,n)&&t(e[n],n)},f=function y(e){var t=typeof e;"number"===t||"string"===t||"object"===t&&e instanceof String?c.vdom.text(e):"function"===t&&e.__jsxDOMWrapper?e():Array.isArray(e)?e.forEach(y):"object"===t&&"[object Object]"===String(e)&&s(e,y)},c=n(4),d=n(5),p=r(d),b=n(6),v=r(b),k=n(8),m=o(k);t["default"]=(0,c.define)("ak-blanket",{render:function(e){var t=(0,p["default"])([v["default"].locals.blanket,(0,l["default"])({},""+v["default"].locals.tinted,e.tinted)]);return c.vdom.elementOpen("div"),c.vdom.elementOpen("style"),f(v["default"].toString()),c.vdom.elementClose("style"),c.vdom.elementVoid("div",null,null,"onClick",i(e),"onTouch",i(e),"className",t),c.vdom.elementClose("div")},props:{tinted:c.prop["boolean"]({attribute:!0}),clickable:c.prop["boolean"]({attribute:!0})}}),t.events=m},,,function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){t=e.exports=n(7)(),t.push([e.id,"._1W1Nqrropv0xHevXc01L9b{bottom:0;left:0;position:fixed;right:0;top:0}._2jkUido-eka0FjtgtzHfhf{background:#091e42;opacity:.5}._3VEYBf7FbiuSuQ4zaBNSF9,ak-blanket{display:block}._3VEYBf7FbiuSuQ4zaBNSF9:not([defined]),ak-blanket:not([defined]){display:none}:host{display:block}:host(:not([defined])){display:none}",""]),t.locals={blanket:"_1W1Nqrropv0xHevXc01L9b",blanket:"_1W1Nqrropv0xHevXc01L9b",tinted:"_2jkUido-eka0FjtgtzHfhf",tinted:"_2jkUido-eka0FjtgtzHfhf","ak-blanket":"_3VEYBf7FbiuSuQ4zaBNSF9",akBlanket:"_3VEYBf7FbiuSuQ4zaBNSF9"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.activate="activate"}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-runtime/helpers/defineProperty"),require("skatejs"),require("classnames")):"function"==typeof define&&define.amd?define(["babel-runtime/helpers/defineProperty","skatejs","classnames"],t):"object"==typeof exports?exports.akBlanket=t(require("babel-runtime/helpers/defineProperty"),require("skatejs"),require("classnames")):e.akBlanket=t(e["babel-runtime/helpers/defineProperty"],e.skatejs,e.classnames)}(this,function(e,t,n){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(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}function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return function(){e.clickable&&(0,c.emit)(e,m.activate)}}Object.defineProperty(t,"__esModule",{value:!0}),t.events=void 0;var a=n(3),l=r(a),u=Object.prototype.hasOwnProperty,s=function(e,t){for(var n in e)u.call(e,n)&&t(e[n],n)},f=function e(t){var n=typeof t;"number"===n||"string"===n||"object"===n&&t instanceof String?c.vdom.text(t):"function"===n&&t.__jsxDOMWrapper?t():Array.isArray(t)?t.forEach(e):"object"===n&&"[object Object]"===String(t)&&s(t,e)},c=n(4),d=n(5),p=r(d),b=n(6),v=r(b),k=n(8),m=o(k);t.default=(0,c.define)("ak-blanket",{render:function(e){var t=(0,p.default)([v.default.locals.blanket,(0,l.default)({},""+v.default.locals.tinted,e.tinted)]);return c.vdom.elementOpen("div"),c.vdom.elementOpen("style"),f(v.default.toString()),c.vdom.elementClose("style"),c.vdom.elementVoid("div",null,null,"onClick",i(e),"onTouch",i(e),"className",t),c.vdom.elementClose("div")},props:{tinted:c.prop.boolean({attribute:!0}),clickable:c.prop.boolean({attribute:!0})}}),t.events=m},,,function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){t=e.exports=n(7)(),t.push([e.id,"._1W1Nqrropv0xHevXc01L9b{bottom:0;left:0;position:fixed;right:0;top:0}._2jkUido-eka0FjtgtzHfhf{background:#091e42;opacity:.5}._3VEYBf7FbiuSuQ4zaBNSF9,ak-blanket{display:block}._3VEYBf7FbiuSuQ4zaBNSF9:not([defined]),ak-blanket:not([defined]){display:none}:host{display:block}:host(:not([defined])){display:none}",""]),t.locals={blanket:"_1W1Nqrropv0xHevXc01L9b",blanket:"_1W1Nqrropv0xHevXc01L9b",tinted:"_2jkUido-eka0FjtgtzHfhf",tinted:"_2jkUido-eka0FjtgtzHfhf","ak-blanket":"_3VEYBf7FbiuSuQ4zaBNSF9",akBlanket:"_3VEYBf7FbiuSuQ4zaBNSF9"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.activate="activate"}])}); |
{ | ||
"name": "ak-blanket", | ||
"version": "3.1.1", | ||
"version": "4.0.0", | ||
"description": "ak-blanket webcomponent", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundle.js", |
@@ -5,3 +5,3 @@ [![AtlasKit component registry](https://img.shields.io/badge/AtlasKit-components-FF5230.svg)](http://aui-cdn.atlassian.com/atlaskit/registry/) | ||
[![Report an issue](https://img.shields.io/badge/Report-an_issue-6554C0.svg)](https://ecosystem.atlassian.net/browse/AK) | ||
[![Ask in our forum](https://img.shields.io/badge/Ask-in_our_forum-6554C0.svg)](https://answers.atlassian.com/questions/ask?title=AtlasKit%3A%20&topics=atlaskit,ak-blanket,ak-blanket@3.1.1) | ||
[![Ask in our forum](https://img.shields.io/badge/Ask-in_our_forum-6554C0.svg)](https://answers.atlassian.com/questions/ask?title=AtlasKit%3A%20&topics=atlaskit,ak-blanket,ak-blanket@4.0.0) | ||
@@ -12,7 +12,7 @@ # Blanket | ||
![Example blanket](https://bytebucket.org/atlassian/atlaskit/raw/c6af2271ea6fe408a856c643f9cb747b3abf36aa/packages/ak-blanket/docs/blanket.gif) | ||
![Example blanket](https://bytebucket.org/atlassian/atlaskit/raw/983c60085f97121bc21d0303723837dce5186c2d/packages/ak-blanket/docs/blanket.gif) | ||
## Try it out | ||
Interact with a [live demo of the ak-blanket component](https://aui-cdn.atlassian.com/atlaskit/stories/ak-blanket/3.1.1/). | ||
Interact with a [live demo of the ak-blanket component](https://aui-cdn.atlassian.com/atlaskit/stories/ak-blanket/4.0.0/). | ||
@@ -163,3 +163,3 @@ ## Installation | ||
Ask a question in our [forum](https://answers.atlassian.com/questions/ask?title=AtlasKit%3A%20&topics=atlaskit,ak-blanket,ak-blanket@3.1.1). | ||
Ask a question in our [forum](https://answers.atlassian.com/questions/ask?title=AtlasKit%3A%20&topics=atlaskit,ak-blanket,ak-blanket@4.0.0). | ||
@@ -166,0 +166,0 @@ Check [if someone has already asked the same question before](https://answers.atlassian.com/questions/topics/42926171/atlaskit). |
Sorry, the diff of this file is too big to display
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
153547
2194