Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sheetjs

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sheetjs - npm Package Compare versions

Comparing version 1.0.20 to 1.0.21

.eslintignore

56

demo/src/index.js

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

import { extend, map, range, times } from 'lodash';
import { map, range, times } from 'lodash';
import $ from 'jquery';

@@ -6,13 +6,18 @@ import StyleSheet from '../../StyleSheet';

window.sheetjs = { StyleSheet };
const styleSheet = new StyleSheet();
const styleSheet = new StyleSheet({
'html, body': { margin: '0px' },
'.button-bank': { margin: '20px' },
'.button-bank > *': { margin: '0 14px 14px 0' },
'.demo-el-container': { margin: '20px' }
});
const s = styleSheet.stylesForSelector;
// state
var demoElClass = 'demo-el';
var isToggled = false;
var numberOfEls = 1000;
var toggleColor1 = '#EFEFEF';
var toggleColor2 = 'lightGreen';
var numberOfTimesToToggle = 101;
var selectedLibrary = 'SheetJS';
let demoElClass = 'demo-el';
let isToggled = false;
let numberOfEls = 1000;
let toggleColor1 = '#EFEFEF';
let toggleColor2 = 'lightGreen';
let numberOfTimesToToggle = 101;
let selectedLibrary = 'SheetJS';

@@ -22,9 +27,2 @@ init();

function init() {
styleSheet.setStylesForSelectors({
'html, body': { margin: '0px' },
'.button-bank': { margin: '20px' },
'.button-bank > *': { margin: '0 14px 14px 0' },
'.demo-el-container': { margin: '20px' }
});
updateDemoElStyles();

@@ -36,6 +34,6 @@ $('body').html(renderDemo());

function toggleElements() {
var $toggleStatus = $('.toggle-status').empty();
var timestamp = Date.now();
var toggler = selectedLibrary === 'SheetJS' ? toggleWithSheetjs : toggleWithJquery;
const $toggleStatus = $('.toggle-status').empty();
const timestamp = Date.now();
const toggler = selectedLibrary === 'SheetJS' ? toggleWithSheetjs : toggleWithJquery;
times(numberOfTimesToToggle, toggler);

@@ -73,3 +71,3 @@ $toggleStatus.html(

s('.' + demoElClass).backgroundColor = toggleColor1;
$('.update-settings').attr('disabled', true);

@@ -85,8 +83,8 @@ $('.toggle-elements').attr('disabled', false);

['.' + demoElClass]: {
'float': 'left',
'margin': '2px',
'border': '1px solid black',
'height': '10px',
'width': '10px',
'backgroundColor': isToggled ? toggleColor2 : toggleColor1,
float: 'left',
margin: '2px',
border: '1px solid black',
height: '10px',
width: '10px',
backgroundColor: isToggled ? toggleColor2 : toggleColor1,
}

@@ -103,4 +101,4 @@ });

function renderDemoEls() {
return map(range(numberOfEls), function (i) {
return $('<div/>', {
return map(range(numberOfEls), function () {
return $('<div/>', {
class: demoElClass

@@ -107,0 +105,0 @@ });

@@ -57,3 +57,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

module.exports = __webpack_require__(49);
module.exports = __webpack_require__(51);

@@ -85,2 +85,6 @@

var _utilsSelectorsEquivalent = __webpack_require__(49);
var _utilsSelectorsEquivalent2 = _interopRequireDefault(_utilsSelectorsEquivalent);
var instanceCount = 0;

@@ -96,3 +100,3 @@

this._rules = null;
this._deleteRule = null;
this._deleteRuleAtIndex = null;

@@ -123,3 +127,10 @@ (0, _utilsBindAll2['default'])(this);

// alias to createStylesForSelector
_createClass(StyleSheet, [{
key: 'stylesForSelector',
value: function stylesForSelector(selector) {
return this.createStylesForSelector(selector);
}
}, {
key: 'setStylesForSelectors',

@@ -143,9 +154,9 @@ value: function setStylesForSelectors(stylesBySelector) {

}, {
key: 'stylesForSelector',
value: function stylesForSelector(selector) {
return this.getStylesForSelector(selector) || this.createStylesForSelector(selector);
}
}, {
key: 'createStylesForSelector',
value: function createStylesForSelector(selector) {
var existing = this.getStylesForSelector(selector);
if (existing) {
return existing;
}
var sheet = this._getSheet();

@@ -170,8 +181,18 @@ var rules = this._getRules();

value: function deleteStylesForSelector(selector) {
var deleteRule = this._getDeleteRule();
var ruleIndex = this._getRuleIndexForSelector(selector);
return ruleIndex === -1 ? false : deleteRule(ruleIndex);
var deleteRuleAtIndex = this._getDeleteRuleAtIndex();
var ruleIndex = undefined;
while ((ruleIndex = this._getRuleIndexForSelector(selector)) !== -1) {
deleteRuleAtIndex(ruleIndex);
}
}
}, {
key: 'deleteStyles',
value: function deleteStyles() {
var deleteRuleAtIndex = this._getDeleteRuleAtIndex();
var ruleIndex = this._getRules().length;
while (ruleIndex--) {
deleteRuleAtIndex(ruleIndex);
}
}
}, {
key: 'disable',

@@ -189,7 +210,7 @@ value: function disable() {

}, {
key: '_getDeleteRule',
value: function _getDeleteRule() {
return this._deleteRule || (function () {
key: '_getDeleteRuleAtIndex',
value: function _getDeleteRuleAtIndex() {
return this._deleteRuleAtIndex || (function () {
var sheet = this._getSheet();
return this._deleteRule = (sheet.removeRule || sheet.deleteRule).bind(sheet);
return this._deleteRuleAtIndex = (sheet.removeRule || sheet.deleteRule).bind(sheet);
}).call(this);

@@ -207,6 +228,8 @@ }

var i = rules.length;
var rule = undefined;
while (i--) {
if (rules[i].selectorText === selector) {
return rules[i];
rule = rules[i];
if ((0, _utilsSelectorsEquivalent2['default'])(selector, rule.selectorText)) {
return rule;
}

@@ -1136,3 +1159,2 @@ }

});
exports['default'] = bindAll;

@@ -1143,4 +1165,4 @@ var _isFunction = __webpack_require__(48);

function bindAll(obj) {
_Object$getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(function (key) {
exports['default'] = function (obj) {
return _Object$getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(function (key) {
return (0, _isFunction2['default'])(obj[key]);

@@ -1150,3 +1172,3 @@ }).forEach(function (method) {

});
}
};

@@ -1164,7 +1186,6 @@ module.exports = exports['default'];

});
exports["default"] = isFunction;
function isFunction(obj) {
exports["default"] = function (obj) {
return !!(obj && obj.constructor && obj.call && obj.apply);
}
};

@@ -1185,2 +1206,40 @@ module.exports = exports["default"];

var _normalizeSelector = __webpack_require__(50);
var _normalizeSelector2 = _interopRequireDefault(_normalizeSelector);
exports['default'] = function (first, second) {
return (0, _normalizeSelector2['default'])(first) === (0, _normalizeSelector2['default'])(second);
};
module.exports = exports['default'];
/***/ },
/* 50 */
/***/ function(module, exports) {
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports['default'] = function (selector) {
return selector.trim().replace(/ +(?= )/g, '').replace(/, /g, ',').replace(/ ,/g, ',');
};
module.exports = exports['default'];
/***/ },
/* 51 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
var _interopRequireDefault = __webpack_require__(46)['default'];
Object.defineProperty(exports, '__esModule', {
value: true
});
var _StyleSheet = __webpack_require__(1);

@@ -1187,0 +1246,0 @@

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.sheetjs=e():t.sheetjs=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var u=n[r]={exports:{},id:r,loaded:!1};return t[r].call(u.exports,u,u.exports,e),u.loaded=!0,u.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(46)},function(t,e,n){"use strict";function r(t){return!!(t&&t.constructor&&t.call&&t.apply)}function u(t){f(Object.getPrototypeOf(t)).filter(function(e){return r(t[e])}).forEach(function(e){return t[e]=t[e].bind(t)})}var o=n(2)["default"],s=n(6)["default"],i=n(7)["default"],c=n(17)["default"],f=n(38)["default"];Object.defineProperty(e,"__esModule",{value:!0});var a=0,l=function(){function t(e){s(this,t),this._instance=++a,this._styleSheet=null,this._sheet=null,this._rules=null,u(this),e&&this.setStylesForSelectors(e)}return o(t,[{key:"setStylesForSelectors",value:function(t){var e=this;return i(t).forEach(function(n){return e.setStylesForSelector(n,t[n])}),this}},{key:"setStylesForSelector",value:function(t,e){return c(this.stylesForSelector(t),e),this}},{key:"stylesForSelector",value:function(t){return this.getStylesForSelector(t)||this.createStylesForSelector(t)}},{key:"createStylesForSelector",value:function(t){var e=this._getSheet(),n=this._getRules(),r=n.length,u=t+" { }";return e.insertRule(u,r),n.item(r).style}},{key:"getStylesForSelector",value:function(t){var e=this._getRule(t);return e?e.style:void 0}},{key:"deleteStylesForSelector",value:function(t){var e=this._getSheet(),n=e.removeRule||e.deleteRule,r=this._getRuleIndex(t);return-1===r?!1:n.call(e,r)}},{key:"disable",value:function(){return this._getSheet().disabled=!0,this}},{key:"enable",value:function(){return this._getSheet().disabled=!1,this}},{key:"_getRuleIndex",value:function(t){var e=this._getRules(),n=this._getRule(t);return Array.prototype.indexOf.call(e,n)}},{key:"_getRule",value:function(t){for(var e=this._getRules(),n=e.length,r=0;n>r;r++)if(e[r].selectorText===t)return e[r];return void 0}},{key:"_getSheet",value:function(){return this._sheet||function(){return this._sheet=this._getStyleSheet().sheet}.call(this)}},{key:"_getRules",value:function(){return this._rules||function(){var t=this._getSheet();return this._rules=t.cssRules||t.rules}.call(this)}},{key:"_getStyleSheet",value:function(){return this._styleSheet||function(){var t=document.createElement("style"),e=document.head||document.getElementsByTagName("head")[0];return t.type="text/css",t.setAttribute("id","sheetjs-"+this._instance),e.appendChild(t),this._styleSheet=t}.call(this)}}]),t}();e["default"]=l,t.exports=e["default"]},function(t,e,n){"use strict";var r=n(3)["default"];e["default"]=function(){function t(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),r(t,u.key,u)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),e.__esModule=!0},function(t,e,n){"use strict";t.exports={"default":n(4),__esModule:!0}},function(t,e,n){"use strict";var r=n(5);t.exports=function(t,e,n){return r.setDesc(t,e,n)}},function(t){"use strict";var e=Object;t.exports={create:e.create,getProto:e.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:e.getOwnPropertyDescriptor,setDesc:e.defineProperty,setDescs:e.defineProperties,getKeys:e.keys,getNames:e.getOwnPropertyNames,getSymbols:e.getOwnPropertySymbols,each:[].forEach}},function(t,e){"use strict";e["default"]=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},e.__esModule=!0},function(t,e,n){"use strict";t.exports={"default":n(8),__esModule:!0}},function(t,e,n){"use strict";n(9),t.exports=n(15).Object.keys},function(t,e,n){"use strict";var r=n(10);n(12)("keys",function(t){return function(e){return t(r(e))}})},function(t,e,n){"use strict";var r=n(11);t.exports=function(t){return Object(r(t))}},function(t){"use strict";t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";t.exports=function(t,e){var r=n(13),u=(n(15).Object||{})[t]||Object[t],o={};o[t]=e(u),r(r.S+r.F*n(16)(function(){u(1)}),"Object",o)}},function(t,e,n){"use strict";var r=n(14),u=n(15),o="prototype",s=function(t,e){return function(){return t.apply(e,arguments)}},i=function c(t,e,n){var i,f,a,l,p=t&c.G,y=t&c.P,h=p?r:t&c.S?r[e]:(r[e]||{})[o],d=p?u:u[e]||(u[e]={});p&&(n=e);for(i in n)f=!(t&c.F)&&h&&i in h,f&&i in d||(a=f?h[i]:n[i],p&&"function"!=typeof h[i]?l=n[i]:t&c.B&&f?l=s(a,r):t&c.W&&h[i]==a?!function(t){l=function(e){return this instanceof t?new t(e):t(e)},l[o]=t[o]}(a):l=y&&"function"==typeof a?s(Function.call,a):a,d[i]=l,y&&((d[o]||(d[o]={}))[i]=a))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,t.exports=i},function(t){"use strict";var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t){"use strict";var e=t.exports={version:"1.2.2"};"number"==typeof __e&&(__e=e)},function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){"use strict";t.exports={"default":n(18),__esModule:!0}},function(t,e,n){"use strict";n(19),t.exports=n(15).Object.assign},function(t,e,n){"use strict";var r=n(13);r(r.S+r.F,"Object",{assign:n(20)})},function(t,e,n){"use strict";var r=n(17)["default"],u=n(21)["default"],o=n(7)["default"],s=n(5),i=n(10),c=n(35);t.exports=n(16)(function(){var t=r,e={},n={},s=u(),i="abcdefghijklmnopqrst";return e[s]=7,i.split("").forEach(function(t){n[t]=t}),7!=t({},e)[s]||o(t({},n)).join("")!=i})?function(t){for(var e=i(t),n=arguments,r=n.length,u=1,o=s.getKeys,f=s.getSymbols,a=s.isEnum;r>u;)for(var l,p=c(n[u++]),y=f?o(p).concat(f(p)):o(p),h=y.length,d=0;h>d;)a.call(p,l=y[d++])&&(e[l]=p[l]);return e}:r},function(t,e,n){"use strict";t.exports={"default":n(22),__esModule:!0}},function(t,e,n){"use strict";n(23),t.exports=n(15).Symbol},function(t,e,n){"use strict";var r=n(5),u=n(14),o=n(24),s=n(25),i=n(13),c=n(26),f=n(16),a=n(29),l=n(30),p=n(32),y=n(31),h=n(33),d=n(37),g=n(41),v=n(42),S=n(43),b=n(34),_=n(28),m=r.getDesc,x=r.setDesc,O=r.create,j=d.get,w=u.Symbol,k=u.JSON,P=k&&k.stringify,F=!1,M=y("_hidden"),E=r.isEnum,D=a("symbol-registry"),R=a("symbols"),N="function"==typeof w,T=Object.prototype,A=s&&f(function(){return 7!=O(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=m(T,e);r&&delete T[e],x(t,e,n),r&&t!==T&&x(T,e,r)}:x,I=function(t){var e=R[t]=O(w.prototype);return e._k=t,s&&F&&A(T,t,{configurable:!0,set:function(e){o(this,M)&&o(this[M],t)&&(this[M][t]=!1),A(this,t,_(1,e))}}),e},C=function(t){return"symbol"==typeof t},J=function(t,e,n){return n&&o(R,e)?(n.enumerable?(o(t,M)&&t[M][e]&&(t[M][e]=!1),n=O(n,{enumerable:_(0,!1)})):(o(t,M)||x(t,M,_(1,{})),t[M][e]=!0),A(t,e,n)):x(t,e,n)},K=function(t,e){S(t);for(var n,r=g(e=b(e)),u=0,o=r.length;o>u;)J(t,n=r[u++],e[n]);return t},W=function(t,e){return void 0===e?O(t):K(O(t),e)},B=function(t){var e=E.call(this,t);return e||!o(this,t)||!o(R,t)||o(this,M)&&this[M][t]?e:!0},G=function(t,e){var n=m(t=b(t),e);return!n||!o(R,e)||o(t,M)&&t[M][e]||(n.enumerable=!0),n},q=function(t){for(var e,n=j(b(t)),r=[],u=0;n.length>u;)o(R,e=n[u++])||e==M||r.push(e);return r},z=function(t){for(var e,n=j(b(t)),r=[],u=0;n.length>u;)o(R,e=n[u++])&&r.push(R[e]);return r},H=function(t){for(var e,n,r=[t],u=1,o=arguments;o.length>u;)r.push(o[u++]);return e=r[1],"function"==typeof e&&(n=e),(n||!v(e))&&(e=function(t,e){return n&&(e=n.call(this,t,e)),C(e)?void 0:e}),r[1]=e,P.apply(k,r)},L=f(function(){var t=w();return"[null]"!=P([t])||"{}"!=P({a:t})||"{}"!=P(Object(t))});N||(w=function(){if(C(this))throw TypeError("Symbol is not a constructor");return I(p(arguments.length>0?arguments[0]:void 0))},c(w.prototype,"toString",function(){return this._k}),C=function(t){return t instanceof w},r.create=W,r.isEnum=B,r.getDesc=G,r.setDesc=J,r.setDescs=K,r.getNames=d.get=q,r.getSymbols=z,s&&!n(45)&&c(T,"propertyIsEnumerable",B,!0));var Q={"for":function(t){return o(D,t+="")?D[t]:D[t]=w(t)},keyFor:function(t){return h(D,t)},useSetter:function(){F=!0},useSimple:function(){F=!1}};r.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(t){var e=y(t);Q[t]=N?e:I(e)}),F=!0,i(i.G+i.W,{Symbol:w}),i(i.S,"Symbol",Q),i(i.S+i.F*!N,"Object",{create:W,defineProperty:J,defineProperties:K,getOwnPropertyDescriptor:G,getOwnPropertyNames:q,getOwnPropertySymbols:z}),k&&i(i.S+i.F*(!N||L),"JSON",{stringify:H}),l(w,"Symbol"),l(Math,"Math",!0),l(u.JSON,"JSON",!0)},function(t){"use strict";var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,e,n){"use strict";t.exports=!n(16)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";t.exports=n(27)},function(t,e,n){"use strict";var r=n(5),u=n(28);t.exports=n(25)?function(t,e,n){return r.setDesc(t,e,u(1,n))}:function(t,e,n){return t[e]=n,t}},function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var r=n(14),u="__core-js_shared__",o=r[u]||(r[u]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){"use strict";var r=n(5).setDesc,u=n(24),o=n(31)("toStringTag");t.exports=function(t,e,n){t&&!u(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){"use strict";var r=n(29)("wks"),u=n(14).Symbol;t.exports=function(t){return r[t]||(r[t]=u&&u[t]||(u||n(32))("Symbol."+t))}},function(t){"use strict";var e=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+n).toString(36))}},function(t,e,n){"use strict";var r=n(5),u=n(34);t.exports=function(t,e){for(var n,o=u(t),s=r.getKeys(o),i=s.length,c=0;i>c;)if(o[n=s[c++]]===e)return n}},function(t,e,n){"use strict";var r=n(35),u=n(11);t.exports=function(t){return r(u(t))}},function(t,e,n){"use strict";var r=n(36);t.exports=0 in Object("z")?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t){"use strict";var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r=n(38)["default"],u={}.toString,o=n(34),s=n(5).getNames,i="object"==typeof window&&r?r(window):[],c=function(t){try{return s(t)}catch(e){return i.slice()}};t.exports.get=function(t){return i&&"[object Window]"==u.call(t)?c(t):s(o(t))}},function(t,e,n){"use strict";t.exports={"default":n(39),__esModule:!0}},function(t,e,n){"use strict";var r=n(5);n(40),t.exports=function(t){return r.getNames(t)}},function(t,e,n){"use strict";n(12)("getOwnPropertyNames",function(){return n(37).get})},function(t,e,n){"use strict";var r=n(5);t.exports=function(t){var e=r.getKeys(t),n=r.getSymbols;if(n)for(var u,o=n(t),s=r.isEnum,i=0;o.length>i;)s.call(t,u=o[i++])&&e.push(u);return e}},function(t,e,n){"use strict";var r=n(36);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(44);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t){"use strict";t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t){"use strict";t.exports=!0},function(t,e,n){"use strict";var r=n(47)["default"];Object.defineProperty(e,"__esModule",{value:!0});var u=n(1),o=r(u);e["default"]={StyleSheet:o["default"]},t.exports=e["default"]},function(t,e){"use strict";e["default"]=function(t){return t&&t.__esModule?t:{"default":t}},e.__esModule=!0}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.sheetjs=e():t.sheetjs=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var u=n[r]={exports:{},id:r,loaded:!1};return t[r].call(u.exports,u,u.exports,e),u.loaded=!0,u.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(51)},function(t,e,n){"use strict";var r=n(2)["default"],u=n(6)["default"],o=n(7)["default"],s=n(17)["default"],i=n(46)["default"];Object.defineProperty(e,"__esModule",{value:!0});var c=n(47),l=i(c),f=n(49),a=i(f),p=0,d=function(){function t(e){u(this,t),this._instance=++p,this._element=null,this._sheet=null,this._rules=null,this._deleteRuleAtIndex=null,l["default"](this),e&&this.setStylesForSelectors(e)}return r(t,[{key:"stylesForSelector",value:function(t){return this.createStylesForSelector(t)}},{key:"setStylesForSelectors",value:function(t){var e=this;return o(t).forEach(function(n){return e.setStylesForSelector(n,t[n])}),this}},{key:"setStylesForSelector",value:function(t,e){return s(this.stylesForSelector(t),e),this}},{key:"createStylesForSelector",value:function(t){var e=this.getStylesForSelector(t);if(e)return e;var n=this._getSheet(),r=this._getRules(),u=r.length,o=t+" { }";return n.insertRule(o,u),r.item(u).style}},{key:"getStylesForSelector",value:function(t){var e=this._getRuleForSelector(t);return e?e.style:void 0}},{key:"deleteStylesForSelector",value:function(t){for(var e=this._getDeleteRuleAtIndex(),n=void 0;-1!==(n=this._getRuleIndexForSelector(t));)e(n)}},{key:"deleteStyles",value:function(){for(var t=this._getDeleteRuleAtIndex(),e=this._getRules().length;e--;)t(e)}},{key:"disable",value:function(){return this._getSheet().disabled=!0,this}},{key:"enable",value:function(){return this._getSheet().disabled=!1,this}},{key:"_getDeleteRuleAtIndex",value:function(){return this._deleteRuleAtIndex||function(){var t=this._getSheet();return this._deleteRuleAtIndex=(t.removeRule||t.deleteRule).bind(t)}.call(this)}},{key:"_getRuleIndexForSelector",value:function(t){return Array.prototype.indexOf.call(this._getRules(),this._getRuleForSelector(t))}},{key:"_getRuleForSelector",value:function(t){for(var e=this._getRules(),n=e.length,r=void 0;n--;)if(r=e[n],a["default"](t,r.selectorText))return r;return void 0}},{key:"_getRules",value:function(){return this._rules||function(){var t=this._getSheet();return this._rules=t.cssRules||t.rules}.call(this)}},{key:"_getSheet",value:function(){return this._sheet||function(){return this._sheet=this._getElement().sheet}.call(this)}},{key:"_getElement",value:function(){return this._element||function(){var t=document.createElement("style"),e=document.head||document.getElementsByTagName("head")[0];return t.type="text/css",t.setAttribute("id","sheetjs-"+this._instance),e.appendChild(t),this._element=t}.call(this)}}]),t}();e["default"]=d,t.exports=e["default"]},function(t,e,n){"use strict";var r=n(3)["default"];e["default"]=function(){function t(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),r(t,u.key,u)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),e.__esModule=!0},function(t,e,n){"use strict";t.exports={"default":n(4),__esModule:!0}},function(t,e,n){"use strict";var r=n(5);t.exports=function(t,e,n){return r.setDesc(t,e,n)}},function(t){"use strict";var e=Object;t.exports={create:e.create,getProto:e.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:e.getOwnPropertyDescriptor,setDesc:e.defineProperty,setDescs:e.defineProperties,getKeys:e.keys,getNames:e.getOwnPropertyNames,getSymbols:e.getOwnPropertySymbols,each:[].forEach}},function(t,e){"use strict";e["default"]=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},e.__esModule=!0},function(t,e,n){"use strict";t.exports={"default":n(8),__esModule:!0}},function(t,e,n){"use strict";n(9),t.exports=n(15).Object.keys},function(t,e,n){"use strict";var r=n(10);n(12)("keys",function(t){return function(e){return t(r(e))}})},function(t,e,n){"use strict";var r=n(11);t.exports=function(t){return Object(r(t))}},function(t){"use strict";t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";t.exports=function(t,e){var r=n(13),u=(n(15).Object||{})[t]||Object[t],o={};o[t]=e(u),r(r.S+r.F*n(16)(function(){u(1)}),"Object",o)}},function(t,e,n){"use strict";var r=n(14),u=n(15),o="prototype",s=function(t,e){return function(){return t.apply(e,arguments)}},i=function c(t,e,n){var i,l,f,a,p=t&c.G,d=t&c.P,h=p?r:t&c.S?r[e]:(r[e]||{})[o],y=p?u:u[e]||(u[e]={});p&&(n=e);for(i in n)l=!(t&c.F)&&h&&i in h,l&&i in y||(f=l?h[i]:n[i],p&&"function"!=typeof h[i]?a=n[i]:t&c.B&&l?a=s(f,r):t&c.W&&h[i]==f?!function(t){a=function(e){return this instanceof t?new t(e):t(e)},a[o]=t[o]}(f):a=d&&"function"==typeof f?s(Function.call,f):f,y[i]=a,d&&((y[o]||(y[o]={}))[i]=f))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,t.exports=i},function(t){"use strict";var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t){"use strict";var e=t.exports={version:"1.2.2"};"number"==typeof __e&&(__e=e)},function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){"use strict";t.exports={"default":n(18),__esModule:!0}},function(t,e,n){"use strict";n(19),t.exports=n(15).Object.assign},function(t,e,n){"use strict";var r=n(13);r(r.S+r.F,"Object",{assign:n(20)})},function(t,e,n){"use strict";var r=n(17)["default"],u=n(21)["default"],o=n(7)["default"],s=n(5),i=n(10),c=n(35);t.exports=n(16)(function(){var t=r,e={},n={},s=u(),i="abcdefghijklmnopqrst";return e[s]=7,i.split("").forEach(function(t){n[t]=t}),7!=t({},e)[s]||o(t({},n)).join("")!=i})?function(t){for(var e=i(t),n=arguments,r=n.length,u=1,o=s.getKeys,l=s.getSymbols,f=s.isEnum;r>u;)for(var a,p=c(n[u++]),d=l?o(p).concat(l(p)):o(p),h=d.length,y=0;h>y;)f.call(p,a=d[y++])&&(e[a]=p[a]);return e}:r},function(t,e,n){"use strict";t.exports={"default":n(22),__esModule:!0}},function(t,e,n){"use strict";n(23),t.exports=n(15).Symbol},function(t,e,n){"use strict";var r=n(5),u=n(14),o=n(24),s=n(25),i=n(13),c=n(26),l=n(16),f=n(29),a=n(30),p=n(32),d=n(31),h=n(33),y=n(37),v=n(41),g=n(42),_=n(43),b=n(34),S=n(28),m=r.getDesc,x=r.setDesc,O=r.create,j=y.get,w=u.Symbol,F=u.JSON,P=F&&F.stringify,k=!1,M=d("_hidden"),R=r.isEnum,E=f("symbol-registry"),D=f("symbols"),N="function"==typeof w,A=Object.prototype,I=s&&l(function(){return 7!=O(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=m(A,e);r&&delete A[e],x(t,e,n),r&&t!==A&&x(A,e,r)}:x,T=function(t){var e=D[t]=O(w.prototype);return e._k=t,s&&k&&I(A,t,{configurable:!0,set:function(e){o(this,M)&&o(this[M],t)&&(this[M][t]=!1),I(this,t,S(1,e))}}),e},C=function(t){return"symbol"==typeof t},J=function(t,e,n){return n&&o(D,e)?(n.enumerable?(o(t,M)&&t[M][e]&&(t[M][e]=!1),n=O(n,{enumerable:S(0,!1)})):(o(t,M)||x(t,M,S(1,{})),t[M][e]=!0),I(t,e,n)):x(t,e,n)},K=function(t,e){_(t);for(var n,r=v(e=b(e)),u=0,o=r.length;o>u;)J(t,n=r[u++],e[n]);return t},W=function(t,e){return void 0===e?O(t):K(O(t),e)},B=function(t){var e=R.call(this,t);return e||!o(this,t)||!o(D,t)||o(this,M)&&this[M][t]?e:!0},G=function(t,e){var n=m(t=b(t),e);return!n||!o(D,e)||o(t,M)&&t[M][e]||(n.enumerable=!0),n},q=function(t){for(var e,n=j(b(t)),r=[],u=0;n.length>u;)o(D,e=n[u++])||e==M||r.push(e);return r},z=function(t){for(var e,n=j(b(t)),r=[],u=0;n.length>u;)o(D,e=n[u++])&&r.push(D[e]);return r},H=function(t){for(var e,n,r=[t],u=1,o=arguments;o.length>u;)r.push(o[u++]);return e=r[1],"function"==typeof e&&(n=e),(n||!g(e))&&(e=function(t,e){return n&&(e=n.call(this,t,e)),C(e)?void 0:e}),r[1]=e,P.apply(F,r)},L=l(function(){var t=w();return"[null]"!=P([t])||"{}"!=P({a:t})||"{}"!=P(Object(t))});N||(w=function(){if(C(this))throw TypeError("Symbol is not a constructor");return T(p(arguments.length>0?arguments[0]:void 0))},c(w.prototype,"toString",function(){return this._k}),C=function(t){return t instanceof w},r.create=W,r.isEnum=B,r.getDesc=G,r.setDesc=J,r.setDescs=K,r.getNames=y.get=q,r.getSymbols=z,s&&!n(45)&&c(A,"propertyIsEnumerable",B,!0));var Q={"for":function(t){return o(E,t+="")?E[t]:E[t]=w(t)},keyFor:function(t){return h(E,t)},useSetter:function(){k=!0},useSimple:function(){k=!1}};r.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(t){var e=d(t);Q[t]=N?e:T(e)}),k=!0,i(i.G+i.W,{Symbol:w}),i(i.S,"Symbol",Q),i(i.S+i.F*!N,"Object",{create:W,defineProperty:J,defineProperties:K,getOwnPropertyDescriptor:G,getOwnPropertyNames:q,getOwnPropertySymbols:z}),F&&i(i.S+i.F*(!N||L),"JSON",{stringify:H}),a(w,"Symbol"),a(Math,"Math",!0),a(u.JSON,"JSON",!0)},function(t){"use strict";var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,e,n){"use strict";t.exports=!n(16)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";t.exports=n(27)},function(t,e,n){"use strict";var r=n(5),u=n(28);t.exports=n(25)?function(t,e,n){return r.setDesc(t,e,u(1,n))}:function(t,e,n){return t[e]=n,t}},function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var r=n(14),u="__core-js_shared__",o=r[u]||(r[u]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){"use strict";var r=n(5).setDesc,u=n(24),o=n(31)("toStringTag");t.exports=function(t,e,n){t&&!u(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){"use strict";var r=n(29)("wks"),u=n(14).Symbol;t.exports=function(t){return r[t]||(r[t]=u&&u[t]||(u||n(32))("Symbol."+t))}},function(t){"use strict";var e=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+n).toString(36))}},function(t,e,n){"use strict";var r=n(5),u=n(34);t.exports=function(t,e){for(var n,o=u(t),s=r.getKeys(o),i=s.length,c=0;i>c;)if(o[n=s[c++]]===e)return n}},function(t,e,n){"use strict";var r=n(35),u=n(11);t.exports=function(t){return r(u(t))}},function(t,e,n){"use strict";var r=n(36);t.exports=0 in Object("z")?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t){"use strict";var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r=n(38)["default"],u={}.toString,o=n(34),s=n(5).getNames,i="object"==typeof window&&r?r(window):[],c=function(t){try{return s(t)}catch(e){return i.slice()}};t.exports.get=function(t){return i&&"[object Window]"==u.call(t)?c(t):s(o(t))}},function(t,e,n){"use strict";t.exports={"default":n(39),__esModule:!0}},function(t,e,n){"use strict";var r=n(5);n(40),t.exports=function(t){return r.getNames(t)}},function(t,e,n){"use strict";n(12)("getOwnPropertyNames",function(){return n(37).get})},function(t,e,n){"use strict";var r=n(5);t.exports=function(t){var e=r.getKeys(t),n=r.getSymbols;if(n)for(var u,o=n(t),s=r.isEnum,i=0;o.length>i;)s.call(t,u=o[i++])&&e.push(u);return e}},function(t,e,n){"use strict";var r=n(36);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(44);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t){"use strict";t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t){"use strict";t.exports=!0},function(t,e){"use strict";e["default"]=function(t){return t&&t.__esModule?t:{"default":t}},e.__esModule=!0},function(t,e,n){"use strict";var r=n(38)["default"],u=n(46)["default"];Object.defineProperty(e,"__esModule",{value:!0});var o=n(48),s=u(o);e["default"]=function(t){return r(Object.getPrototypeOf(t)).filter(function(e){return s["default"](t[e])}).forEach(function(e){return t[e]=t[e].bind(t)})},t.exports=e["default"]},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){return!!(t&&t.constructor&&t.call&&t.apply)},t.exports=e["default"]},function(t,e,n){"use strict";var r=n(46)["default"];Object.defineProperty(e,"__esModule",{value:!0});var u=n(50),o=r(u);e["default"]=function(t,e){return o["default"](t)===o["default"](e)},t.exports=e["default"]},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){return t.trim().replace(/ +(?= )/g,"").replace(/, /g,",").replace(/ ,/g,",")},t.exports=e["default"]},function(t,e,n){"use strict";var r=n(46)["default"];Object.defineProperty(e,"__esModule",{value:!0});var u=n(1),o=r(u);e["default"]={StyleSheet:o["default"]},t.exports=e["default"]}])});

@@ -84,2 +84,6 @@ (function webpackUniversalModuleDefinition(root, factory) {

var _utilsSelectorsEquivalent = __webpack_require__(49);
var _utilsSelectorsEquivalent2 = _interopRequireDefault(_utilsSelectorsEquivalent);
var instanceCount = 0;

@@ -95,3 +99,3 @@

this._rules = null;
this._deleteRule = null;
this._deleteRuleAtIndex = null;

@@ -122,3 +126,10 @@ (0, _utilsBindAll2['default'])(this);

// alias to createStylesForSelector
_createClass(StyleSheet, [{
key: 'stylesForSelector',
value: function stylesForSelector(selector) {
return this.createStylesForSelector(selector);
}
}, {
key: 'setStylesForSelectors',

@@ -142,9 +153,9 @@ value: function setStylesForSelectors(stylesBySelector) {

}, {
key: 'stylesForSelector',
value: function stylesForSelector(selector) {
return this.getStylesForSelector(selector) || this.createStylesForSelector(selector);
}
}, {
key: 'createStylesForSelector',
value: function createStylesForSelector(selector) {
var existing = this.getStylesForSelector(selector);
if (existing) {
return existing;
}
var sheet = this._getSheet();

@@ -169,8 +180,18 @@ var rules = this._getRules();

value: function deleteStylesForSelector(selector) {
var deleteRule = this._getDeleteRule();
var ruleIndex = this._getRuleIndexForSelector(selector);
return ruleIndex === -1 ? false : deleteRule(ruleIndex);
var deleteRuleAtIndex = this._getDeleteRuleAtIndex();
var ruleIndex = undefined;
while ((ruleIndex = this._getRuleIndexForSelector(selector)) !== -1) {
deleteRuleAtIndex(ruleIndex);
}
}
}, {
key: 'deleteStyles',
value: function deleteStyles() {
var deleteRuleAtIndex = this._getDeleteRuleAtIndex();
var ruleIndex = this._getRules().length;
while (ruleIndex--) {
deleteRuleAtIndex(ruleIndex);
}
}
}, {
key: 'disable',

@@ -188,7 +209,7 @@ value: function disable() {

}, {
key: '_getDeleteRule',
value: function _getDeleteRule() {
return this._deleteRule || (function () {
key: '_getDeleteRuleAtIndex',
value: function _getDeleteRuleAtIndex() {
return this._deleteRuleAtIndex || (function () {
var sheet = this._getSheet();
return this._deleteRule = (sheet.removeRule || sheet.deleteRule).bind(sheet);
return this._deleteRuleAtIndex = (sheet.removeRule || sheet.deleteRule).bind(sheet);
}).call(this);

@@ -206,6 +227,8 @@ }

var i = rules.length;
var rule = undefined;
while (i--) {
if (rules[i].selectorText === selector) {
return rules[i];
rule = rules[i];
if ((0, _utilsSelectorsEquivalent2['default'])(selector, rule.selectorText)) {
return rule;
}

@@ -1135,3 +1158,2 @@ }

});
exports['default'] = bindAll;

@@ -1142,4 +1164,4 @@ var _isFunction = __webpack_require__(48);

function bindAll(obj) {
_Object$getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(function (key) {
exports['default'] = function (obj) {
return _Object$getOwnPropertyNames(Object.getPrototypeOf(obj)).filter(function (key) {
return (0, _isFunction2['default'])(obj[key]);

@@ -1149,3 +1171,3 @@ }).forEach(function (method) {

});
}
};

@@ -1163,10 +1185,47 @@ module.exports = exports['default'];

});
exports["default"] = isFunction;
function isFunction(obj) {
exports["default"] = function (obj) {
return !!(obj && obj.constructor && obj.call && obj.apply);
}
};
module.exports = exports["default"];
/***/ },
/* 49 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
var _interopRequireDefault = __webpack_require__(46)['default'];
Object.defineProperty(exports, '__esModule', {
value: true
});
var _normalizeSelector = __webpack_require__(50);
var _normalizeSelector2 = _interopRequireDefault(_normalizeSelector);
exports['default'] = function (first, second) {
return (0, _normalizeSelector2['default'])(first) === (0, _normalizeSelector2['default'])(second);
};
module.exports = exports['default'];
/***/ },
/* 50 */
/***/ function(module, exports) {
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports['default'] = function (selector) {
return selector.trim().replace(/ +(?= )/g, '').replace(/, /g, ',').replace(/ ,/g, ',');
};
module.exports = exports['default'];
/***/ }

@@ -1173,0 +1232,0 @@ /******/ ])

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.StyleSheet=e():t.StyleSheet=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";function r(t){return!!(t&&t.constructor&&t.call&&t.apply)}function o(t){f(Object.getPrototypeOf(t)).filter(function(e){return r(t[e])}).forEach(function(e){return t[e]=t[e].bind(t)})}var u=n(2)["default"],s=n(6)["default"],i=n(7)["default"],c=n(17)["default"],f=n(38)["default"];Object.defineProperty(e,"__esModule",{value:!0});var a=0,l=function(){function t(e){s(this,t),this._instance=++a,this._styleSheet=null,this._sheet=null,this._rules=null,o(this),e&&this.setStylesForSelectors(e)}return u(t,[{key:"setStylesForSelectors",value:function(t){var e=this;return i(t).forEach(function(n){return e.setStylesForSelector(n,t[n])}),this}},{key:"setStylesForSelector",value:function(t,e){return c(this.stylesForSelector(t),e),this}},{key:"stylesForSelector",value:function(t){return this.getStylesForSelector(t)||this.createStylesForSelector(t)}},{key:"createStylesForSelector",value:function(t){var e=this._getSheet(),n=this._getRules(),r=n.length,o=t+" { }";return e.insertRule(o,r),n.item(r).style}},{key:"getStylesForSelector",value:function(t){var e=this._getRule(t);return e?e.style:void 0}},{key:"deleteStylesForSelector",value:function(t){var e=this._getSheet(),n=e.removeRule||e.deleteRule,r=this._getRuleIndex(t);return-1===r?!1:n.call(e,r)}},{key:"disable",value:function(){return this._getSheet().disabled=!0,this}},{key:"enable",value:function(){return this._getSheet().disabled=!1,this}},{key:"_getRuleIndex",value:function(t){var e=this._getRules(),n=this._getRule(t);return Array.prototype.indexOf.call(e,n)}},{key:"_getRule",value:function(t){for(var e=this._getRules(),n=e.length,r=0;n>r;r++)if(e[r].selectorText===t)return e[r];return void 0}},{key:"_getSheet",value:function(){return this._sheet||function(){return this._sheet=this._getStyleSheet().sheet}.call(this)}},{key:"_getRules",value:function(){return this._rules||function(){var t=this._getSheet();return this._rules=t.cssRules||t.rules}.call(this)}},{key:"_getStyleSheet",value:function(){return this._styleSheet||function(){var t=document.createElement("style"),e=document.head||document.getElementsByTagName("head")[0];return t.type="text/css",t.setAttribute("id","sheetjs-"+this._instance),e.appendChild(t),this._styleSheet=t}.call(this)}}]),t}();e["default"]=l,t.exports=e["default"]},function(t,e,n){"use strict";var r=n(3)["default"];e["default"]=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),r(t,o.key,o)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),e.__esModule=!0},function(t,e,n){"use strict";t.exports={"default":n(4),__esModule:!0}},function(t,e,n){"use strict";var r=n(5);t.exports=function(t,e,n){return r.setDesc(t,e,n)}},function(t){"use strict";var e=Object;t.exports={create:e.create,getProto:e.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:e.getOwnPropertyDescriptor,setDesc:e.defineProperty,setDescs:e.defineProperties,getKeys:e.keys,getNames:e.getOwnPropertyNames,getSymbols:e.getOwnPropertySymbols,each:[].forEach}},function(t,e){"use strict";e["default"]=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},e.__esModule=!0},function(t,e,n){"use strict";t.exports={"default":n(8),__esModule:!0}},function(t,e,n){"use strict";n(9),t.exports=n(15).Object.keys},function(t,e,n){"use strict";var r=n(10);n(12)("keys",function(t){return function(e){return t(r(e))}})},function(t,e,n){"use strict";var r=n(11);t.exports=function(t){return Object(r(t))}},function(t){"use strict";t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";t.exports=function(t,e){var r=n(13),o=(n(15).Object||{})[t]||Object[t],u={};u[t]=e(o),r(r.S+r.F*n(16)(function(){o(1)}),"Object",u)}},function(t,e,n){"use strict";var r=n(14),o=n(15),u="prototype",s=function(t,e){return function(){return t.apply(e,arguments)}},i=function c(t,e,n){var i,f,a,l,p=t&c.G,y=t&c.P,h=p?r:t&c.S?r[e]:(r[e]||{})[u],g=p?o:o[e]||(o[e]={});p&&(n=e);for(i in n)f=!(t&c.F)&&h&&i in h,f&&i in g||(a=f?h[i]:n[i],p&&"function"!=typeof h[i]?l=n[i]:t&c.B&&f?l=s(a,r):t&c.W&&h[i]==a?!function(t){l=function(e){return this instanceof t?new t(e):t(e)},l[u]=t[u]}(a):l=y&&"function"==typeof a?s(Function.call,a):a,g[i]=l,y&&((g[u]||(g[u]={}))[i]=a))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,t.exports=i},function(t){"use strict";var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t){"use strict";var e=t.exports={version:"1.2.2"};"number"==typeof __e&&(__e=e)},function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){"use strict";t.exports={"default":n(18),__esModule:!0}},function(t,e,n){"use strict";n(19),t.exports=n(15).Object.assign},function(t,e,n){"use strict";var r=n(13);r(r.S+r.F,"Object",{assign:n(20)})},function(t,e,n){"use strict";var r=n(17)["default"],o=n(21)["default"],u=n(7)["default"],s=n(5),i=n(10),c=n(35);t.exports=n(16)(function(){var t=r,e={},n={},s=o(),i="abcdefghijklmnopqrst";return e[s]=7,i.split("").forEach(function(t){n[t]=t}),7!=t({},e)[s]||u(t({},n)).join("")!=i})?function(t){for(var e=i(t),n=arguments,r=n.length,o=1,u=s.getKeys,f=s.getSymbols,a=s.isEnum;r>o;)for(var l,p=c(n[o++]),y=f?u(p).concat(f(p)):u(p),h=y.length,g=0;h>g;)a.call(p,l=y[g++])&&(e[l]=p[l]);return e}:r},function(t,e,n){"use strict";t.exports={"default":n(22),__esModule:!0}},function(t,e,n){"use strict";n(23),t.exports=n(15).Symbol},function(t,e,n){"use strict";var r=n(5),o=n(14),u=n(24),s=n(25),i=n(13),c=n(26),f=n(16),a=n(29),l=n(30),p=n(32),y=n(31),h=n(33),g=n(37),d=n(41),v=n(42),S=n(43),b=n(34),m=n(28),_=r.getDesc,x=r.setDesc,O=r.create,j=g.get,w=o.Symbol,k=o.JSON,F=k&&k.stringify,P=!1,E=y("_hidden"),M=r.isEnum,D=a("symbol-registry"),R=a("symbols"),N="function"==typeof w,T=Object.prototype,A=s&&f(function(){return 7!=O(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=_(T,e);r&&delete T[e],x(t,e,n),r&&t!==T&&x(T,e,r)}:x,I=function(t){var e=R[t]=O(w.prototype);return e._k=t,s&&P&&A(T,t,{configurable:!0,set:function(e){u(this,E)&&u(this[E],t)&&(this[E][t]=!1),A(this,t,m(1,e))}}),e},C=function(t){return"symbol"==typeof t},J=function(t,e,n){return n&&u(R,e)?(n.enumerable?(u(t,E)&&t[E][e]&&(t[E][e]=!1),n=O(n,{enumerable:m(0,!1)})):(u(t,E)||x(t,E,m(1,{})),t[E][e]=!0),A(t,e,n)):x(t,e,n)},K=function(t,e){S(t);for(var n,r=d(e=b(e)),o=0,u=r.length;u>o;)J(t,n=r[o++],e[n]);return t},W=function(t,e){return void 0===e?O(t):K(O(t),e)},B=function(t){var e=M.call(this,t);return e||!u(this,t)||!u(R,t)||u(this,E)&&this[E][t]?e:!0},G=function(t,e){var n=_(t=b(t),e);return!n||!u(R,e)||u(t,E)&&t[E][e]||(n.enumerable=!0),n},q=function(t){for(var e,n=j(b(t)),r=[],o=0;n.length>o;)u(R,e=n[o++])||e==E||r.push(e);return r},z=function(t){for(var e,n=j(b(t)),r=[],o=0;n.length>o;)u(R,e=n[o++])&&r.push(R[e]);return r},H=function(t){for(var e,n,r=[t],o=1,u=arguments;u.length>o;)r.push(u[o++]);return e=r[1],"function"==typeof e&&(n=e),(n||!v(e))&&(e=function(t,e){return n&&(e=n.call(this,t,e)),C(e)?void 0:e}),r[1]=e,F.apply(k,r)},L=f(function(){var t=w();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))});N||(w=function(){if(C(this))throw TypeError("Symbol is not a constructor");return I(p(arguments.length>0?arguments[0]:void 0))},c(w.prototype,"toString",function(){return this._k}),C=function(t){return t instanceof w},r.create=W,r.isEnum=B,r.getDesc=G,r.setDesc=J,r.setDescs=K,r.getNames=g.get=q,r.getSymbols=z,s&&!n(45)&&c(T,"propertyIsEnumerable",B,!0));var Q={"for":function(t){return u(D,t+="")?D[t]:D[t]=w(t)},keyFor:function(t){return h(D,t)},useSetter:function(){P=!0},useSimple:function(){P=!1}};r.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(t){var e=y(t);Q[t]=N?e:I(e)}),P=!0,i(i.G+i.W,{Symbol:w}),i(i.S,"Symbol",Q),i(i.S+i.F*!N,"Object",{create:W,defineProperty:J,defineProperties:K,getOwnPropertyDescriptor:G,getOwnPropertyNames:q,getOwnPropertySymbols:z}),k&&i(i.S+i.F*(!N||L),"JSON",{stringify:H}),l(w,"Symbol"),l(Math,"Math",!0),l(o.JSON,"JSON",!0)},function(t){"use strict";var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,e,n){"use strict";t.exports=!n(16)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";t.exports=n(27)},function(t,e,n){"use strict";var r=n(5),o=n(28);t.exports=n(25)?function(t,e,n){return r.setDesc(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var r=n(14),o="__core-js_shared__",u=r[o]||(r[o]={});t.exports=function(t){return u[t]||(u[t]={})}},function(t,e,n){"use strict";var r=n(5).setDesc,o=n(24),u=n(31)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,u)&&r(t,u,{configurable:!0,value:e})}},function(t,e,n){"use strict";var r=n(29)("wks"),o=n(14).Symbol;t.exports=function(t){return r[t]||(r[t]=o&&o[t]||(o||n(32))("Symbol."+t))}},function(t){"use strict";var e=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+n).toString(36))}},function(t,e,n){"use strict";var r=n(5),o=n(34);t.exports=function(t,e){for(var n,u=o(t),s=r.getKeys(u),i=s.length,c=0;i>c;)if(u[n=s[c++]]===e)return n}},function(t,e,n){"use strict";var r=n(35),o=n(11);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";var r=n(36);t.exports=0 in Object("z")?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t){"use strict";var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r=n(38)["default"],o={}.toString,u=n(34),s=n(5).getNames,i="object"==typeof window&&r?r(window):[],c=function(t){try{return s(t)}catch(e){return i.slice()}};t.exports.get=function(t){return i&&"[object Window]"==o.call(t)?c(t):s(u(t))}},function(t,e,n){"use strict";t.exports={"default":n(39),__esModule:!0}},function(t,e,n){"use strict";var r=n(5);n(40),t.exports=function(t){return r.getNames(t)}},function(t,e,n){"use strict";n(12)("getOwnPropertyNames",function(){return n(37).get})},function(t,e,n){"use strict";var r=n(5);t.exports=function(t){var e=r.getKeys(t),n=r.getSymbols;if(n)for(var o,u=n(t),s=r.isEnum,i=0;u.length>i;)s.call(t,o=u[i++])&&e.push(o);return e}},function(t,e,n){"use strict";var r=n(36);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(44);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t){"use strict";t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t){"use strict";t.exports=!0}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.StyleSheet=e():t.StyleSheet=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var u=n[r]={exports:{},id:r,loaded:!1};return t[r].call(u.exports,u,u.exports,e),u.loaded=!0,u.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";var r=n(2)["default"],u=n(6)["default"],o=n(7)["default"],s=n(17)["default"],i=n(46)["default"];Object.defineProperty(e,"__esModule",{value:!0});var c=n(47),l=i(c),f=n(49),a=i(f),p=0,d=function(){function t(e){u(this,t),this._instance=++p,this._element=null,this._sheet=null,this._rules=null,this._deleteRuleAtIndex=null,l["default"](this),e&&this.setStylesForSelectors(e)}return r(t,[{key:"stylesForSelector",value:function(t){return this.createStylesForSelector(t)}},{key:"setStylesForSelectors",value:function(t){var e=this;return o(t).forEach(function(n){return e.setStylesForSelector(n,t[n])}),this}},{key:"setStylesForSelector",value:function(t,e){return s(this.stylesForSelector(t),e),this}},{key:"createStylesForSelector",value:function(t){var e=this.getStylesForSelector(t);if(e)return e;var n=this._getSheet(),r=this._getRules(),u=r.length,o=t+" { }";return n.insertRule(o,u),r.item(u).style}},{key:"getStylesForSelector",value:function(t){var e=this._getRuleForSelector(t);return e?e.style:void 0}},{key:"deleteStylesForSelector",value:function(t){for(var e=this._getDeleteRuleAtIndex(),n=void 0;-1!==(n=this._getRuleIndexForSelector(t));)e(n)}},{key:"deleteStyles",value:function(){for(var t=this._getDeleteRuleAtIndex(),e=this._getRules().length;e--;)t(e)}},{key:"disable",value:function(){return this._getSheet().disabled=!0,this}},{key:"enable",value:function(){return this._getSheet().disabled=!1,this}},{key:"_getDeleteRuleAtIndex",value:function(){return this._deleteRuleAtIndex||function(){var t=this._getSheet();return this._deleteRuleAtIndex=(t.removeRule||t.deleteRule).bind(t)}.call(this)}},{key:"_getRuleIndexForSelector",value:function(t){return Array.prototype.indexOf.call(this._getRules(),this._getRuleForSelector(t))}},{key:"_getRuleForSelector",value:function(t){for(var e=this._getRules(),n=e.length,r=void 0;n--;)if(r=e[n],a["default"](t,r.selectorText))return r;return void 0}},{key:"_getRules",value:function(){return this._rules||function(){var t=this._getSheet();return this._rules=t.cssRules||t.rules}.call(this)}},{key:"_getSheet",value:function(){return this._sheet||function(){return this._sheet=this._getElement().sheet}.call(this)}},{key:"_getElement",value:function(){return this._element||function(){var t=document.createElement("style"),e=document.head||document.getElementsByTagName("head")[0];return t.type="text/css",t.setAttribute("id","sheetjs-"+this._instance),e.appendChild(t),this._element=t}.call(this)}}]),t}();e["default"]=d,t.exports=e["default"]},function(t,e,n){"use strict";var r=n(3)["default"];e["default"]=function(){function t(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),r(t,u.key,u)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),e.__esModule=!0},function(t,e,n){"use strict";t.exports={"default":n(4),__esModule:!0}},function(t,e,n){"use strict";var r=n(5);t.exports=function(t,e,n){return r.setDesc(t,e,n)}},function(t){"use strict";var e=Object;t.exports={create:e.create,getProto:e.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:e.getOwnPropertyDescriptor,setDesc:e.defineProperty,setDescs:e.defineProperties,getKeys:e.keys,getNames:e.getOwnPropertyNames,getSymbols:e.getOwnPropertySymbols,each:[].forEach}},function(t,e){"use strict";e["default"]=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},e.__esModule=!0},function(t,e,n){"use strict";t.exports={"default":n(8),__esModule:!0}},function(t,e,n){"use strict";n(9),t.exports=n(15).Object.keys},function(t,e,n){"use strict";var r=n(10);n(12)("keys",function(t){return function(e){return t(r(e))}})},function(t,e,n){"use strict";var r=n(11);t.exports=function(t){return Object(r(t))}},function(t){"use strict";t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";t.exports=function(t,e){var r=n(13),u=(n(15).Object||{})[t]||Object[t],o={};o[t]=e(u),r(r.S+r.F*n(16)(function(){u(1)}),"Object",o)}},function(t,e,n){"use strict";var r=n(14),u=n(15),o="prototype",s=function(t,e){return function(){return t.apply(e,arguments)}},i=function c(t,e,n){var i,l,f,a,p=t&c.G,d=t&c.P,y=p?r:t&c.S?r[e]:(r[e]||{})[o],h=p?u:u[e]||(u[e]={});p&&(n=e);for(i in n)l=!(t&c.F)&&y&&i in y,l&&i in h||(f=l?y[i]:n[i],p&&"function"!=typeof y[i]?a=n[i]:t&c.B&&l?a=s(f,r):t&c.W&&y[i]==f?!function(t){a=function(e){return this instanceof t?new t(e):t(e)},a[o]=t[o]}(f):a=d&&"function"==typeof f?s(Function.call,f):f,h[i]=a,d&&((h[o]||(h[o]={}))[i]=f))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,t.exports=i},function(t){"use strict";var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t){"use strict";var e=t.exports={version:"1.2.2"};"number"==typeof __e&&(__e=e)},function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){"use strict";t.exports={"default":n(18),__esModule:!0}},function(t,e,n){"use strict";n(19),t.exports=n(15).Object.assign},function(t,e,n){"use strict";var r=n(13);r(r.S+r.F,"Object",{assign:n(20)})},function(t,e,n){"use strict";var r=n(17)["default"],u=n(21)["default"],o=n(7)["default"],s=n(5),i=n(10),c=n(35);t.exports=n(16)(function(){var t=r,e={},n={},s=u(),i="abcdefghijklmnopqrst";return e[s]=7,i.split("").forEach(function(t){n[t]=t}),7!=t({},e)[s]||o(t({},n)).join("")!=i})?function(t){for(var e=i(t),n=arguments,r=n.length,u=1,o=s.getKeys,l=s.getSymbols,f=s.isEnum;r>u;)for(var a,p=c(n[u++]),d=l?o(p).concat(l(p)):o(p),y=d.length,h=0;y>h;)f.call(p,a=d[h++])&&(e[a]=p[a]);return e}:r},function(t,e,n){"use strict";t.exports={"default":n(22),__esModule:!0}},function(t,e,n){"use strict";n(23),t.exports=n(15).Symbol},function(t,e,n){"use strict";var r=n(5),u=n(14),o=n(24),s=n(25),i=n(13),c=n(26),l=n(16),f=n(29),a=n(30),p=n(32),d=n(31),y=n(33),h=n(37),v=n(41),g=n(42),_=n(43),b=n(34),S=n(28),m=r.getDesc,x=r.setDesc,O=r.create,j=h.get,w=u.Symbol,F=u.JSON,k=F&&F.stringify,P=!1,M=d("_hidden"),R=r.isEnum,E=f("symbol-registry"),D=f("symbols"),N="function"==typeof w,A=Object.prototype,I=s&&l(function(){return 7!=O(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=m(A,e);r&&delete A[e],x(t,e,n),r&&t!==A&&x(A,e,r)}:x,T=function(t){var e=D[t]=O(w.prototype);return e._k=t,s&&P&&I(A,t,{configurable:!0,set:function(e){o(this,M)&&o(this[M],t)&&(this[M][t]=!1),I(this,t,S(1,e))}}),e},C=function(t){return"symbol"==typeof t},J=function(t,e,n){return n&&o(D,e)?(n.enumerable?(o(t,M)&&t[M][e]&&(t[M][e]=!1),n=O(n,{enumerable:S(0,!1)})):(o(t,M)||x(t,M,S(1,{})),t[M][e]=!0),I(t,e,n)):x(t,e,n)},K=function(t,e){_(t);for(var n,r=v(e=b(e)),u=0,o=r.length;o>u;)J(t,n=r[u++],e[n]);return t},W=function(t,e){return void 0===e?O(t):K(O(t),e)},B=function(t){var e=R.call(this,t);return e||!o(this,t)||!o(D,t)||o(this,M)&&this[M][t]?e:!0},G=function(t,e){var n=m(t=b(t),e);return!n||!o(D,e)||o(t,M)&&t[M][e]||(n.enumerable=!0),n},q=function(t){for(var e,n=j(b(t)),r=[],u=0;n.length>u;)o(D,e=n[u++])||e==M||r.push(e);return r},z=function(t){for(var e,n=j(b(t)),r=[],u=0;n.length>u;)o(D,e=n[u++])&&r.push(D[e]);return r},H=function(t){for(var e,n,r=[t],u=1,o=arguments;o.length>u;)r.push(o[u++]);return e=r[1],"function"==typeof e&&(n=e),(n||!g(e))&&(e=function(t,e){return n&&(e=n.call(this,t,e)),C(e)?void 0:e}),r[1]=e,k.apply(F,r)},L=l(function(){var t=w();return"[null]"!=k([t])||"{}"!=k({a:t})||"{}"!=k(Object(t))});N||(w=function(){if(C(this))throw TypeError("Symbol is not a constructor");return T(p(arguments.length>0?arguments[0]:void 0))},c(w.prototype,"toString",function(){return this._k}),C=function(t){return t instanceof w},r.create=W,r.isEnum=B,r.getDesc=G,r.setDesc=J,r.setDescs=K,r.getNames=h.get=q,r.getSymbols=z,s&&!n(45)&&c(A,"propertyIsEnumerable",B,!0));var Q={"for":function(t){return o(E,t+="")?E[t]:E[t]=w(t)},keyFor:function(t){return y(E,t)},useSetter:function(){P=!0},useSimple:function(){P=!1}};r.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(t){var e=d(t);Q[t]=N?e:T(e)}),P=!0,i(i.G+i.W,{Symbol:w}),i(i.S,"Symbol",Q),i(i.S+i.F*!N,"Object",{create:W,defineProperty:J,defineProperties:K,getOwnPropertyDescriptor:G,getOwnPropertyNames:q,getOwnPropertySymbols:z}),F&&i(i.S+i.F*(!N||L),"JSON",{stringify:H}),a(w,"Symbol"),a(Math,"Math",!0),a(u.JSON,"JSON",!0)},function(t){"use strict";var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,e,n){"use strict";t.exports=!n(16)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";t.exports=n(27)},function(t,e,n){"use strict";var r=n(5),u=n(28);t.exports=n(25)?function(t,e,n){return r.setDesc(t,e,u(1,n))}:function(t,e,n){return t[e]=n,t}},function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var r=n(14),u="__core-js_shared__",o=r[u]||(r[u]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){"use strict";var r=n(5).setDesc,u=n(24),o=n(31)("toStringTag");t.exports=function(t,e,n){t&&!u(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){"use strict";var r=n(29)("wks"),u=n(14).Symbol;t.exports=function(t){return r[t]||(r[t]=u&&u[t]||(u||n(32))("Symbol."+t))}},function(t){"use strict";var e=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+n).toString(36))}},function(t,e,n){"use strict";var r=n(5),u=n(34);t.exports=function(t,e){for(var n,o=u(t),s=r.getKeys(o),i=s.length,c=0;i>c;)if(o[n=s[c++]]===e)return n}},function(t,e,n){"use strict";var r=n(35),u=n(11);t.exports=function(t){return r(u(t))}},function(t,e,n){"use strict";var r=n(36);t.exports=0 in Object("z")?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t){"use strict";var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r=n(38)["default"],u={}.toString,o=n(34),s=n(5).getNames,i="object"==typeof window&&r?r(window):[],c=function(t){try{return s(t)}catch(e){return i.slice()}};t.exports.get=function(t){return i&&"[object Window]"==u.call(t)?c(t):s(o(t))}},function(t,e,n){"use strict";t.exports={"default":n(39),__esModule:!0}},function(t,e,n){"use strict";var r=n(5);n(40),t.exports=function(t){return r.getNames(t)}},function(t,e,n){"use strict";n(12)("getOwnPropertyNames",function(){return n(37).get})},function(t,e,n){"use strict";var r=n(5);t.exports=function(t){var e=r.getKeys(t),n=r.getSymbols;if(n)for(var u,o=n(t),s=r.isEnum,i=0;o.length>i;)s.call(t,u=o[i++])&&e.push(u);return e}},function(t,e,n){"use strict";var r=n(36);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(44);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t){"use strict";t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t){"use strict";t.exports=!0},function(t,e){"use strict";e["default"]=function(t){return t&&t.__esModule?t:{"default":t}},e.__esModule=!0},function(t,e,n){"use strict";var r=n(38)["default"],u=n(46)["default"];Object.defineProperty(e,"__esModule",{value:!0});var o=n(48),s=u(o);e["default"]=function(t){return r(Object.getPrototypeOf(t)).filter(function(e){return s["default"](t[e])}).forEach(function(e){return t[e]=t[e].bind(t)})},t.exports=e["default"]},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){return!!(t&&t.constructor&&t.call&&t.apply)},t.exports=e["default"]},function(t,e,n){"use strict";var r=n(46)["default"];Object.defineProperty(e,"__esModule",{value:!0});var u=n(50),o=r(u);e["default"]=function(t,e){return o["default"](t)===o["default"](e)},t.exports=e["default"]},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){return t.trim().replace(/ +(?= )/g,"").replace(/, /g,",").replace(/ ,/g,",")},t.exports=e["default"]}])});
{
"name": "sheetjs",
"description": "Easily create and manipulate CSSStyleDeclarations with javascript.",
"version": "1.0.20",
"version": "1.0.21",
"keywords": [

@@ -54,3 +54,3 @@ "CSSStyleDeclaration",

"uglify": "node_modules/.bin/uglifyjs dist/sheetjs.js -c -m -o dist/sheetjs.min.js && node_modules/.bin/uglifyjs dist/StyleSheet.js -c -m -o dist/StyleSheet.min.js",
"lint": "node_modules/.bin/eslint src test --ignore-pattern ./**/*/*.{compiled,min}.js --quiet",
"lint": "node_modules/.bin/eslint --quiet .",
"lint-watch": "node_modules/.bin/watch 'npm run lint' test src"

@@ -57,0 +57,0 @@ },

import bindAll from './utils/bindAll';
import selectorsEquivalent from './utils/selectorsEquivalent';

@@ -10,3 +11,3 @@ let instanceCount = 0;

_rules = null
_deleteRule = null
_deleteRuleAtIndex = null

@@ -21,2 +22,7 @@ constructor(stylesBySelector) {

// alias to createStylesForSelector
stylesForSelector(selector) {
return this.createStylesForSelector(selector);
}
setStylesForSelectors(stylesBySelector) {

@@ -35,8 +41,6 @@ Object.keys(stylesBySelector).forEach(selector =>

// returns a CSSStyleDeclaration
stylesForSelector(selector) {
return this.getStylesForSelector(selector) ||
this.createStylesForSelector(selector);
}
createStylesForSelector(selector) {
const existing = this.getStylesForSelector(selector);
if (existing) { return existing; }
createStylesForSelector(selector) {
const sheet = this._getSheet();

@@ -59,8 +63,15 @@ const rules = this._getRules();

deleteStylesForSelector(selector) {
const deleteRule = this._getDeleteRule();
const ruleIndex = this._getRuleIndexForSelector(selector);
const deleteRuleAtIndex = this._getDeleteRuleAtIndex();
let ruleIndex;
while ((ruleIndex = this._getRuleIndexForSelector(selector)) !== -1) {
deleteRuleAtIndex(ruleIndex);
}
}
return ruleIndex === -1 ?
false :
deleteRule(ruleIndex);
deleteStyles() {
const deleteRuleAtIndex = this._getDeleteRuleAtIndex();
let ruleIndex = this._getRules().length;
while (ruleIndex--) {
deleteRuleAtIndex(ruleIndex);
}
}

@@ -78,6 +89,6 @@

_getDeleteRule() {
return this._deleteRule || (function () {
_getDeleteRuleAtIndex() {
return this._deleteRuleAtIndex || (function () {
const sheet = this._getSheet();
return this._deleteRule = (sheet.removeRule || sheet.deleteRule).bind(sheet);
return this._deleteRuleAtIndex = (sheet.removeRule || sheet.deleteRule).bind(sheet);
}).call(this);

@@ -96,6 +107,8 @@ }

let i = rules.length;
let rule;
while (i--) {
if (rules[i].selectorText === selector) {
return rules[i];
rule = rules[i];
if (selectorsEquivalent(selector, rule.selectorText)) {
return rule;
}

@@ -102,0 +115,0 @@ }

import isFunction from './isFunction';
export default function bindAll(obj) {
export default obj =>
Object.getOwnPropertyNames(Object.getPrototypeOf(obj))
.filter(key => isFunction(obj[key]))
.forEach(method => obj[method] = obj[method].bind(obj));
}

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

export default function isFunction(obj) {
return !!(obj && obj.constructor && obj.call && obj.apply);
}
export default obj =>
!!(obj && obj.constructor && obj.call && obj.apply);

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

module.exports = require('./dist/StyleSheet');
module.exports = require('./dist/StyleSheet');

@@ -7,3 +7,3 @@ const path = require('path');

path: path.join(__dirname, '/demo/dist'),
filename: 'index.js'
filename: 'index.compiled.js'
},

@@ -10,0 +10,0 @@ stats: { colors: true },

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 too big to display

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc