🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

js-object-to-css

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-object-to-css - npm Package Compare versions

Comparing version

to
1.1.10

2

dist/bundle.js

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("url"),require("path"),require("fs")):"function"==typeof define&&define.amd?define(["exports","url","path","fs"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["js-object-to-css"]={},e.require$$1,e.require$$2,e.require$$2$1)}(this,(function(e,t,n,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(t),s=o(n),a=o(r),u={},c=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function l(e){return e?e.replace(/^\s+|\s+$/g,""):""}function p(e,t){var n=e&&"string"==typeof e.type,r=n?e:t;for(var o in e){var i=e[o];Array.isArray(i)?i.forEach((function(e){p(e,r)})):i&&"object"==typeof i&&p(i,r)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var h=f;function f(e){this.options=e||{}}f.prototype.emit=function(e){return e},f.prototype.visit=function(e){return this[e.type](e)},f.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r<o;r++)n+=this.visit(e[r]),t&&r<o-1&&(n+=this.emit(t));return n};var m,g={exports:{}},d={exports:{}};try{var v=require("util");if("function"!=typeof v.inherits)throw"";g.exports=v.inherits}catch(e){g.exports=(m||(m=1,"function"==typeof Object.create?d.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:d.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}),d.exports)}var y=g.exports,_=h,C=S;function S(e){_.call(this,e)}y(S,_),S.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},S.prototype.comment=function(e){return this.emit("",e.position)},S.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},S.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},S.prototype.document=function(e){var t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},S.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},S.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},S.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},S.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},S.prototype.keyframe=function(e){var t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},S.prototype.page=function(e){var t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},S.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},S.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},S.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},S.prototype.rule=function(e){var t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},S.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var A=h,w=M;function M(e){e=e||{},A.call(this,e),this.indentation=e.indent}y(M,A),M.prototype.compile=function(e){return this.stylesheet(e)},M.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},M.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},M.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},M.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},M.prototype.document=function(e){var t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},M.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},M.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},M.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},M.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.keyframes,"\n")+this.emit(this.indent(-1)+"}")},M.prototype.keyframe=function(e){var t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},M.prototype.page=function(e){var t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},M.prototype["font-face"]=function(e){return this.emit("@font-face ",e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},M.prototype.host=function(e){return this.emit("@host",e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},M.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},M.prototype.rule=function(e){var t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},M.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},M.prototype.indent=function(e){return this.level=this.level||1,null!=e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var L,R,O={exports:{}},E={},b={},j={},x={};function P(){if(L)return x;L=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return x.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},x.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1},x}function U(){if(R)return j;R=1;var e=P();return j.encode=function(t){var n,r="",o=function(e){return e<0?1+(-e<<1):0+(e<<1)}(t);do{n=31&o,(o>>>=5)>0&&(n|=32),r+=e.encode(n)}while(o>0);return r},j.decode=function(t,n,r){var o,i,s,a,u=t.length,c=0,l=0;do{if(n>=u)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=e.decode(t.charCodeAt(n++))))throw new Error("Invalid base64 digit: "+t.charAt(n-1));o=!!(32&i),c+=(i&=31)<<l,l+=5}while(o);r.value=(a=(s=c)>>1,1==(1&s)?-a:a),r.rest=n},j}var I,T={};function k(){return I||(I=1,function(e){e.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function r(e){var n=e.match(t);return n?{scheme:n[1],auth:n[2],host:n[3],port:n[4],path:n[5]}:null}function o(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function i(t){var n=t,i=r(t);if(i){if(!i.path)return t;n=i.path}for(var s,a=e.isAbsolute(n),u=n.split(/\/+/),c=0,l=u.length-1;l>=0;l--)"."===(s=u[l])?u.splice(l,1):".."===s?c++:c>0&&(""===s?(u.splice(l+1,c),c=0):(u.splice(l,2),c--));return""===(n=u.join("/"))&&(n=a?"/":"."),i?(i.path=n,o(i)):n}function s(e,t){""===e&&(e="."),""===t&&(t=".");var s=r(t),a=r(e);if(a&&(e=a.path||"/"),s&&!s.scheme)return a&&(s.scheme=a.scheme),o(s);if(s||t.match(n))return t;if(a&&!a.host&&!a.path)return a.host=t,o(a);var u="/"===t.charAt(0)?t:i(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=u,o(a)):u}e.urlParse=r,e.urlGenerate=o,e.normalize=i,e.join=s,e.isAbsolute=function(e){return"/"===e.charAt(0)||t.test(e)},e.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var a=!("__proto__"in Object.create(null));function u(e){return e}function c(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function l(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=a?u:function(e){return c(e)?"$"+e:e},e.fromSetString=a?u:function(e){return c(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,n){var r=l(e.source,t.source);return 0!==r||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)||n||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:l(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=l(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:l(e.name,t.name)},e.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=l(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:l(e.name,t.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var a=r(n);if(!a)throw new Error("sourceMapURL could not be parsed");if(a.path){var u=a.path.lastIndexOf("/");u>=0&&(a.path=a.path.substring(0,u+1))}t=s(o(a),t)}return i(t)}}(T)),T}var G,N={};function D(){if(G)return N;G=1;var e=k(),t=Object.prototype.hasOwnProperty,n="undefined"!=typeof Map;function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(e,t){for(var n=new r,o=0,i=e.length;o<i;o++)n.add(e[o],t);return n},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(r,o){var i=n?r:e.toSetString(r),s=n?this.has(r):t.call(this._set,i),a=this._array.length;s&&!o||this._array.push(r),s||(n?this._set.set(r,a):this._set[i]=a)},r.prototype.has=function(r){if(n)return this._set.has(r);var o=e.toSetString(r);return t.call(this._set,o)},r.prototype.indexOf=function(r){if(n){var o=this._set.get(r);if(o>=0)return o}else{var i=e.toSetString(r);if(t.call(this._set,i))return this._set[i]}throw new Error('"'+r+'" is not in the set.')},r.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},r.prototype.toArray=function(){return this._array.slice()},N.ArraySet=r,N}var B,F,V={};function $(){if(B)return V;B=1;var e=k();function t(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return t.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},t.prototype.add=function(t){var n,r,o,i,s,a;n=this._last,r=t,o=n.generatedLine,i=r.generatedLine,s=n.generatedColumn,a=r.generatedColumn,i>o||i==o&&a>=s||e.compareByGeneratedPositionsInflated(n,r)<=0?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},t.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},V.MappingList=t,V}function q(){if(F)return b;F=1;var e=U(),t=k(),n=D().ArraySet,r=$().MappingList;function o(e){e||(e={}),this._file=t.getArg(e,"file",null),this._sourceRoot=t.getArg(e,"sourceRoot",null),this._skipValidation=t.getArg(e,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return o.prototype._version=3,o.fromSourceMap=function(e){var n=e.sourceRoot,r=new o({file:e.file,sourceRoot:n});return e.eachMapping((function(e){var o={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(o.source=e.source,null!=n&&(o.source=t.relative(n,o.source)),o.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(o.name=e.name)),r.addMapping(o)})),e.sources.forEach((function(o){var i=o;null!==n&&(i=t.relative(n,o)),r._sources.has(i)||r._sources.add(i);var s=e.sourceContentFor(o);null!=s&&r.setSourceContent(o,s)})),r},o.prototype.addMapping=function(e){var n=t.getArg(e,"generated"),r=t.getArg(e,"original",null),o=t.getArg(e,"source",null),i=t.getArg(e,"name",null);this._skipValidation||this._validateMapping(n,r,o,i),null!=o&&(o=String(o),this._sources.has(o)||this._sources.add(o)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:o,name:i})},o.prototype.setSourceContent=function(e,n){var r=e;null!=this._sourceRoot&&(r=t.relative(this._sourceRoot,r)),null!=n?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(r)]=n):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},o.prototype.applySourceMap=function(e,r,o){var i=r;if(null==r){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');i=e.file}var s=this._sourceRoot;null!=s&&(i=t.relative(s,i));var a=new n,u=new n;this._mappings.unsortedForEach((function(n){if(n.source===i&&null!=n.originalLine){var r=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});null!=r.source&&(n.source=r.source,null!=o&&(n.source=t.join(o,n.source)),null!=s&&(n.source=t.relative(s,n.source)),n.originalLine=r.line,n.originalColumn=r.column,null!=r.name&&(n.name=r.name))}var c=n.source;null==c||a.has(c)||a.add(c);var l=n.name;null==l||u.has(l)||u.add(l)}),this),this._sources=a,this._names=u,e.sources.forEach((function(n){var r=e.sourceContentFor(n);null!=r&&(null!=o&&(n=t.join(o,n)),null!=s&&(n=t.relative(s,n)),this.setSourceContent(n,r))}),this)},o.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},o.prototype._serializeMappings=function(){for(var n,r,o,i,s=0,a=1,u=0,c=0,l=0,p=0,h="",f=this._mappings.toArray(),m=0,g=f.length;m<g;m++){if(n="",(r=f[m]).generatedLine!==a)for(s=0;r.generatedLine!==a;)n+=";",a++;else if(m>0){if(!t.compareByGeneratedPositionsInflated(r,f[m-1]))continue;n+=","}n+=e.encode(r.generatedColumn-s),s=r.generatedColumn,null!=r.source&&(i=this._sources.indexOf(r.source),n+=e.encode(i-p),p=i,n+=e.encode(r.originalLine-1-c),c=r.originalLine-1,n+=e.encode(r.originalColumn-u),u=r.originalColumn,null!=r.name&&(o=this._names.indexOf(r.name),n+=e.encode(o-l),l=o)),h+=n}return h},o.prototype._generateSourcesContent=function(e,n){return e.map((function(e){if(!this._sourcesContents)return null;null!=n&&(e=t.relative(n,e));var r=t.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},o.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},b.SourceMapGenerator=o,b}var z,J={},W={};function Q(){return z||(z=1,function(e){function t(n,r,o,i,s,a){var u=Math.floor((r-n)/2)+n,c=s(o,i[u],!0);return 0===c?u:c>0?r-u>1?t(u,r,o,i,s,a):a==e.LEAST_UPPER_BOUND?r<i.length?r:-1:u:u-n>1?t(n,u,o,i,s,a):a==e.LEAST_UPPER_BOUND?u:n<0?-1:n}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(n,r,o,i){if(0===r.length)return-1;var s=t(-1,r.length,n,r,o,i||e.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===o(r[s],r[s-1],!0);)--s;return s}}(W)),W}var H,K,X={};function Y(){if(H)return X;function e(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function t(n,r,o,i){if(o<i){var s=o-1;e(n,(l=o,p=i,Math.round(l+Math.random()*(p-l))),i);for(var a=n[i],u=o;u<i;u++)r(n[u],a)<=0&&e(n,s+=1,u);e(n,s+1,u);var c=s+1;t(n,r,o,c-1),t(n,r,c+1,i)}var l,p}return H=1,X.quickSort=function(e,n){t(e,n,0,e.length-1)},X}var Z,ee,te,ne,re,oe,ie,se,ae,ue={};function ce(){return ee||(ee=1,E.SourceMapGenerator=q().SourceMapGenerator,E.SourceMapConsumer=function(){if(K)return J;K=1;var e=k(),t=Q(),n=D().ArraySet,r=U(),o=Y().quickSort;function i(t,n){var r=t;return"string"==typeof t&&(r=e.parseSourceMapInput(t)),null!=r.sections?new u(r,n):new s(r,n)}function s(t,r){var o=t;"string"==typeof t&&(o=e.parseSourceMapInput(t));var i=e.getArg(o,"version"),s=e.getArg(o,"sources"),a=e.getArg(o,"names",[]),u=e.getArg(o,"sourceRoot",null),c=e.getArg(o,"sourcesContent",null),l=e.getArg(o,"mappings"),p=e.getArg(o,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);u&&(u=e.normalize(u)),s=s.map(String).map(e.normalize).map((function(t){return u&&e.isAbsolute(u)&&e.isAbsolute(t)?e.relative(u,t):t})),this._names=n.fromArray(a.map(String),!0),this._sources=n.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map((function(t){return e.computeSourceURL(u,t,r)})),this.sourceRoot=u,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=r,this.file=p}function a(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function u(t,r){var o=t;"string"==typeof t&&(o=e.parseSourceMapInput(t));var s=e.getArg(o,"version"),a=e.getArg(o,"sections");if(s!=this._version)throw new Error("Unsupported version: "+s);this._sources=new n,this._names=new n;var u={line:-1,column:0};this._sections=a.map((function(t){if(t.url)throw new Error("Support for url field in sections not implemented.");var n=e.getArg(t,"offset"),o=e.getArg(n,"line"),s=e.getArg(n,"column");if(o<u.line||o===u.line&&s<u.column)throw new Error("Section offsets must be ordered and non-overlapping.");return u=n,{generatedOffset:{generatedLine:o+1,generatedColumn:s+1},consumer:new i(e.getArg(t,"map"),r)}}))}return i.fromSourceMap=function(e,t){return s.fromSourceMap(e,t)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},i.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(t,n,r){var o,s=n||null;switch(r||i.GENERATED_ORDER){case i.GENERATED_ORDER:o=this._generatedMappings;break;case i.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;o.map((function(t){var n=null===t.source?null:this._sources.at(t.source);return{source:n=e.computeSourceURL(a,n,this._sourceMapURL),generatedLine:t.generatedLine,generatedColumn:t.generatedColumn,originalLine:t.originalLine,originalColumn:t.originalColumn,name:null===t.name?null:this._names.at(t.name)}}),this).forEach(t,s)},i.prototype.allGeneratedPositionsFor=function(n){var r=e.getArg(n,"line"),o={source:e.getArg(n,"source"),originalLine:r,originalColumn:e.getArg(n,"column",0)};if(o.source=this._findSourceIndex(o.source),o.source<0)return[];var i=[],s=this._findMapping(o,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(void 0===n.column)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:e.getArg(a,"generatedLine",null),column:e.getArg(a,"generatedColumn",null),lastColumn:e.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var c=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==c;)i.push({line:e.getArg(a,"generatedLine",null),column:e.getArg(a,"generatedColumn",null),lastColumn:e.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},J.SourceMapConsumer=i,s.prototype=Object.create(i.prototype),s.prototype.consumer=i,s.prototype._findSourceIndex=function(t){var n,r=t;if(null!=this.sourceRoot&&(r=e.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(n=0;n<this._absoluteSources.length;++n)if(this._absoluteSources[n]==t)return n;return-1},s.fromSourceMap=function(t,r){var i=Object.create(s.prototype),u=i._names=n.fromArray(t._names.toArray(),!0),c=i._sources=n.fromArray(t._sources.toArray(),!0);i.sourceRoot=t._sourceRoot,i.sourcesContent=t._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=t._file,i._sourceMapURL=r,i._absoluteSources=i._sources.toArray().map((function(t){return e.computeSourceURL(i.sourceRoot,t,r)}));for(var l=t._mappings.toArray().slice(),p=i.__generatedMappings=[],h=i.__originalMappings=[],f=0,m=l.length;f<m;f++){var g=l[f],d=new a;d.generatedLine=g.generatedLine,d.generatedColumn=g.generatedColumn,g.source&&(d.source=c.indexOf(g.source),d.originalLine=g.originalLine,d.originalColumn=g.originalColumn,g.name&&(d.name=u.indexOf(g.name)),h.push(d)),p.push(d)}return o(i.__originalMappings,e.compareByOriginalPositions),i},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),s.prototype._parseMappings=function(t,n){for(var i,s,u,c,l,p=1,h=0,f=0,m=0,g=0,d=0,v=t.length,y=0,_={},C={},S=[],A=[];y<v;)if(";"===t.charAt(y))p++,y++,h=0;else if(","===t.charAt(y))y++;else{for((i=new a).generatedLine=p,c=y;c<v&&!this._charIsMappingSeparator(t,c);c++);if(u=_[s=t.slice(y,c)])y+=s.length;else{for(u=[];y<c;)r.decode(t,y,C),l=C.value,y=C.rest,u.push(l);if(2===u.length)throw new Error("Found a source, but no line and column");if(3===u.length)throw new Error("Found a source and line, but no column");_[s]=u}i.generatedColumn=h+u[0],h=i.generatedColumn,u.length>1&&(i.source=g+u[1],g+=u[1],i.originalLine=f+u[2],f=i.originalLine,i.originalLine+=1,i.originalColumn=m+u[3],m=i.originalColumn,u.length>4&&(i.name=d+u[4],d+=u[4])),A.push(i),"number"==typeof i.originalLine&&S.push(i)}o(A,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=A,o(S,e.compareByOriginalPositions),this.__originalMappings=S},s.prototype._findMapping=function(e,n,r,o,i,s){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[o]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[o]);return t.search(e,n,i,s)},s.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(t){var n={generatedLine:e.getArg(t,"line"),generatedColumn:e.getArg(t,"column")},r=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(t,"bias",i.GREATEST_LOWER_BOUND));if(r>=0){var o=this._generatedMappings[r];if(o.generatedLine===n.generatedLine){var s=e.getArg(o,"source",null);null!==s&&(s=this._sources.at(s),s=e.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=e.getArg(o,"name",null);return null!==a&&(a=this._names.at(a)),{source:s,line:e.getArg(o,"originalLine",null),column:e.getArg(o,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},s.prototype.sourceContentFor=function(t,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];var o,i=t;if(null!=this.sourceRoot&&(i=e.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(o=e.urlParse(this.sourceRoot))){var s=i.replace(/^file:\/\//,"");if("file"==o.scheme&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!o.path||"/"==o.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(n)return null;throw new Error('"'+i+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(t){var n=e.getArg(t,"source");if((n=this._findSourceIndex(n))<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:e.getArg(t,"line"),originalColumn:e.getArg(t,"column")},o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(t,"bias",i.GREATEST_LOWER_BOUND));if(o>=0){var s=this._originalMappings[o];if(s.source===r.source)return{line:e.getArg(s,"generatedLine",null),column:e.getArg(s,"generatedColumn",null),lastColumn:e.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},J.BasicSourceMapConsumer=s,u.prototype=Object.create(i.prototype),u.prototype.constructor=i,u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),u.prototype.originalPositionFor=function(n){var r={generatedLine:e.getArg(n,"line"),generatedColumn:e.getArg(n,"column")},o=t.search(r,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),i=this._sections[o];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:n.bias}):{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},u.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(-1!==r.consumer._findSourceIndex(e.getArg(t,"source"))){var o=r.consumer.generatedPositionFor(t);if(o)return{line:o.line+(r.generatedOffset.generatedLine-1),column:o.column+(r.generatedOffset.generatedLine===o.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},u.prototype._parseMappings=function(t,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var u=s[a],c=i.consumer._sources.at(u.source);c=e.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=i.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var p={source:c,generatedLine:u.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(i.generatedOffset.generatedLine===u.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(p),"number"==typeof p.originalLine&&this.__originalMappings.push(p)}o(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),o(this.__originalMappings,e.compareByOriginalPositions)},J.IndexedSourceMapConsumer=u,J}().SourceMapConsumer,E.SourceNode=function(){if(Z)return ue;Z=1;var e=q().SourceMapGenerator,t=k(),n=/(\r?\n)/,r="$$$isSourceNode$$$";function o(e,t,n,o,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[r]=!0,null!=o&&this.add(o)}return o.fromStringWithSourceMap=function(e,r,i){var s=new o,a=e.split(n),u=0,c=function(){return e()+(e()||"");function e(){return u<a.length?a[u++]:void 0}},l=1,p=0,h=null;return r.eachMapping((function(e){if(null!==h){if(!(l<e.generatedLine)){var t=(n=a[u]||"").substr(0,e.generatedColumn-p);return a[u]=n.substr(e.generatedColumn-p),p=e.generatedColumn,f(h,t),void(h=e)}f(h,c()),l++,p=0}for(;l<e.generatedLine;)s.add(c()),l++;if(p<e.generatedColumn){var n=a[u]||"";s.add(n.substr(0,e.generatedColumn)),a[u]=n.substr(e.generatedColumn),p=e.generatedColumn}h=e}),this),u<a.length&&(h&&f(h,c()),s.add(a.splice(u).join(""))),r.sources.forEach((function(e){var n=r.sourceContentFor(e);null!=n&&(null!=i&&(e=t.join(i,e)),s.setSourceContent(e,n))})),s;function f(e,n){if(null===e||void 0===e.source)s.add(n);else{var r=i?t.join(i,e.source):e.source;s.add(new o(e.originalLine,e.originalColumn,r,n,e.name))}}},o.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[r]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},o.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[r]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},o.prototype.walk=function(e){for(var t,n=0,o=this.children.length;n<o;n++)(t=this.children[n])[r]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},o.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},o.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[r]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},o.prototype.setSourceContent=function(e,n){this.sourceContents[t.toSetString(e)]=n},o.prototype.walkSourceContents=function(e){for(var n=0,o=this.children.length;n<o;n++)this.children[n][r]&&this.children[n].walkSourceContents(e);var i=Object.keys(this.sourceContents);for(n=0,o=i.length;n<o;n++)e(t.fromSetString(i[n]),this.sourceContents[i[n]])},o.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},o.prototype.toStringWithSourceMap=function(t){var n={code:"",line:1,column:0},r=new e(t),o=!1,i=null,s=null,a=null,u=null;return this.walk((function(e,t){n.code+=e,null!==t.source&&null!==t.line&&null!==t.column?(i===t.source&&s===t.line&&a===t.column&&u===t.name||r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),i=t.source,s=t.line,a=t.column,u=t.name,o=!0):o&&(r.addMapping({generated:{line:n.line,column:n.column}}),i=null,o=!1);for(var c=0,l=e.length;c<l;c++)10===e.charCodeAt(c)?(n.line++,n.column=0,c+1===l?(i=null,o=!1):o&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++})),this.walkSourceContents((function(e,t){r.setSourceContent(e,t)})),{code:n.code,map:r}},ue.SourceNode=o,ue}().SourceNode),E}function le(){if(oe)return re;oe=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),n=new RegExp("("+e+")+","gi");function r(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),o=e.slice(t);return Array.prototype.concat.call([],r(n),r(o))}function o(e){try{return decodeURIComponent(e)}catch(i){for(var n=e.match(t)||[],o=1;o<n.length;o++)n=(e=r(n,o).join("")).match(t)||[];return e}}return re=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var i=o(r[0]);i!==r[0]&&(t[r[0]]=i)}r=n.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var u=s[a];e=e.replace(new RegExp(u,"g"),t[u])}return e}(e)}}}function pe(){if(se)return ie;se=1;var e=function(){if(ne)return te;function e(e){return Buffer.from(e,"base64").toString("binary")}return ne=1,te=e.atob=e}(),t=i.default,n=s.default,r=le();function o(){return Array.prototype.reduce.call(arguments,(function(e,n){return t.resolve(e,n)}))}function a(e){return"\\"===n.sep?e.replace(/\\/g,"/").replace(/^[a-z]:\/?/i,"/"):e}function u(e){return r(e.replace(/\+/g,"%2B"))}function c(e,t,n){setImmediate((function(){e(t,n)}))}function l(e,t){try{return JSON.parse(e.replace(/^\)\]\}'/,""))}catch(e){throw e.sourceMapData=t,e}}function p(e,t,n){var r=u(t);try{return String(e(r))}catch(e){throw e.sourceMapData=n,e}}var h=/[#@] sourceMappingURL=([^\s'"]*)/,f=RegExp("(?:/\\*(?:\\s*\r?\n(?://)?)?(?:"+h.source+")\\s*\\*/|//(?:"+h.source+"))\\s*");function m(e,t,n,r){var o;try{o=C(e,t)}catch(e){return c(r,e)}if(!o||o.map)return c(r,null,o);n(u(o.url),(function(e,t){if(e)return e.sourceMapData=o,r(e);o.map=String(t);try{o.map=l(o.map,o)}catch(e){return r(e)}r(null,o)}))}function g(e,t,n){var r=C(e,t);return!r||r.map||(r.map=p(n,r.url,r),r.map=l(r.map,r)),r}var d=/^data:([^,;]*)(;[^,;]*)*(?:,(.*))?$/,v=/^(?:application|text)\/json$/,y="utf-8";function _(t){if("undefined"==typeof TextDecoder||"undefined"==typeof Uint8Array)return e(t);var n=function(t){for(var n=e(t),r=n.length,o=new Uint8Array(r),i=0;i<r;i++)o[i]=n.charCodeAt(i);return o}(t);return new TextDecoder(y,{fatal:!0}).decode(n)}function C(e,t){t=a(t);var n=function(e){var t=e.match(f);return t?t[1]||t[2]||"":null}(e);if(!n)return null;var r=n.match(d);if(r){var i=r[1]||"text/plain",s=r[2]||"",u=r[3]||"",c={sourceMappingURL:n,url:null,sourcesRelativeTo:t,map:u};if(!v.test(i)){var p=new Error("Unuseful data uri mime type: "+i);throw p.sourceMapData=c,p}try{c.map=l(";base64"===s?_(u):decodeURIComponent(u),c)}catch(p){throw p.sourceMapData=c,p}return c}var h=o(t,n);return{sourceMappingURL:n,url:h,sourcesRelativeTo:h,map:null}}function S(e,t,n,r,o){"function"==typeof r&&(o=r,r={});var i=e.sources?e.sources.length:0,s={sourcesResolved:[],sourcesContent:[]};if(0!==i){var a=function(){0===--i&&o(null,s)};M(e,t,r,(function(e,t,r){if(s.sourcesResolved[r]=e,"string"==typeof t)s.sourcesContent[r]=t,c(a,null);else{var o=u(e);n(o,(function(e,t){s.sourcesContent[r]=e||String(t),a()}))}}))}else c(o,null,s)}function A(e,t,n,r){var o={sourcesResolved:[],sourcesContent:[]};return e.sources&&0!==e.sources.length?(M(e,t,r,(function(e,t,r){if(o.sourcesResolved[r]=e,null!==n)if("string"==typeof t)o.sourcesContent[r]=t;else{var i=u(e);try{o.sourcesContent[r]=String(n(i))}catch(e){o.sourcesContent[r]=e}}})),o):o}var w=/\/?$/;function M(e,t,n,r){var i;n=n||{},t=a(t);for(var s=0,u=e.sources.length;s<u;s++)i=null,"string"==typeof n.sourceRoot?i=n.sourceRoot:"string"==typeof e.sourceRoot&&!1!==n.sourceRoot&&(i=e.sourceRoot),r(null===i||""===i?o(t,e.sources[s]):o(t,i.replace(w,"/"),e.sources[s]),(e.sourcesContent||[])[s],s)}return ie={resolveSourceMap:m,resolveSourceMapSync:g,resolveSources:S,resolveSourcesSync:A,resolve:function(e,t,n,r,o){if("function"==typeof r&&(o=r,r={}),null===e){var i={sourceMappingURL:null,url:t,sourcesRelativeTo:t,map:null},s=u(t);n(s,(function(e,t){if(e)return e.sourceMapData=i,o(e);i.map=String(t);try{i.map=l(i.map,i)}catch(e){return o(e)}a(i)}))}else m(e,t,n,(function(e,t){return e?o(e):t?void a(t):o(null,null)}));function a(e){S(e.map,e.sourcesRelativeTo,n,r,(function(t,n){if(t)return o(t);e.sourcesResolved=n.sourcesResolved,e.sourcesContent=n.sourcesContent,o(null,e)}))}},resolveSync:function(e,t,n,r){var o;if(null===e){(o={sourceMappingURL:null,url:t,sourcesRelativeTo:t,map:null}).map=p(n,t,o),o.map=l(o.map,o)}else if(!(o=g(e,t,n)))return null;var i=A(o.map,o.sourcesRelativeTo,n,r);return o.sourcesResolved=i.sourcesResolved,o.sourcesContent=i.sourcesContent,o},parseMapToJSON:l}}var he=C,fe=w;function me(e){return"object"==typeof e&&!Array.isArray(e)&&Object.keys(e).length>0}function ge(e,t=[]){const n=[];for(const[r,o]of Object.entries(e)){if("object"!=typeof o)throw new Error(`Invalid properties for selector '${r}'. Expected an object.`);const e=t.concat(r),i={type:"rule",selectors:[e.join(" ")],declarations:[]};for(const[t,s]of Object.entries(o))if(me(s)){const r=ge({[t]:s},e);n.push(...r)}else{if("string"!=typeof t)throw new Error(`Invalid declaration for selector '${r}'. Expected property to be a string.`);i.declarations.push({type:"declaration",property:t,value:s})}n.unshift(i)}return n}u.parse=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new s(e),d(),t}}function s(e){this.start=e,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;var a=[];function u(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i;a.push(i)}function h(){return g(/^{\s*/)}function f(){return g(/^}/)}function m(){var t,n=[];for(d(),v(n);e.length&&"}"!=e.charAt(0)&&(t=E()||b());)!1!==t&&(n.push(t),v(n));return n}function g(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function d(){g(/^\s*/)}function v(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return u("End of comment missing");var s=e.slice(2,n-2);return r+=2,o(s),e=e.slice(n),r+=2,t({type:"comment",comment:s})}}function _(){var e=g(/^([^{]+)/);if(e)return l(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function C(){var e=i(),t=g(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=l(t[0]),!g(/^:\s*/))return u("property missing ':'");var n=g(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(c,""),value:n?l(n[0]).replace(c,""):""});return g(/^[;\s]*/),r}}function S(){var e,t=[];if(!h())return u("missing '{'");for(v(t);e=C();)!1!==e&&(t.push(e),v(t));return f()?t:u("missing '}'")}function A(){for(var e,t=[],n=i();e=g(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),g(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:S()})}var w,M=O("import"),L=O("charset"),R=O("namespace");function O(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=i(),r=g(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function E(){if("@"==e[0])return function(){var e=i();if(t=g(/^@([-\w]+)?keyframes\s*/)){var t,n=t[1];if(!(t=g(/^([-\w]+)\s*/)))return u("@keyframes missing name");var r,o=t[1];if(!h())return u("@keyframes missing '{'");for(var s=v();r=A();)s.push(r),s=s.concat(v());return f()?e({type:"keyframes",name:o,vendor:n,keyframes:s}):u("@keyframes missing '}'")}}()||function(){var e=i(),t=g(/^@media *([^{]+)/);if(t){var n=l(t[1]);if(!h())return u("@media missing '{'");var r=v().concat(m());return f()?e({type:"media",media:n,rules:r}):u("@media missing '}'")}}()||function(){var e=i(),t=g(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:l(t[1]),media:l(t[2])})}()||function(){var e=i(),t=g(/^@supports *([^{]+)/);if(t){var n=l(t[1]);if(!h())return u("@supports missing '{'");var r=v().concat(m());return f()?e({type:"supports",supports:n,rules:r}):u("@supports missing '}'")}}()||M()||L()||R()||function(){var e=i(),t=g(/^@([-\w]+)?document *([^{]+)/);if(t){var n=l(t[1]),r=l(t[2]);if(!h())return u("@document missing '{'");var o=v().concat(m());return f()?e({type:"document",document:r,vendor:n,rules:o}):u("@document missing '}'")}}()||function(){var e=i();if(g(/^@page */)){var t=_()||[];if(!h())return u("@page missing '{'");for(var n,r=v();n=C();)r.push(n),r=r.concat(v());return f()?e({type:"page",selectors:t,declarations:r}):u("@page missing '}'")}}()||function(){var e=i();if(g(/^@host\s*/)){if(!h())return u("@host missing '{'");var t=v().concat(m());return f()?e({type:"host",rules:t}):u("@host missing '}'")}}()||function(){var e=i();if(g(/^@font-face\s*/)){if(!h())return u("@font-face missing '{'");for(var t,n=v();t=C();)n.push(t),n=n.concat(v());return f()?e({type:"font-face",declarations:n}):u("@font-face missing '}'")}}()}function b(){var e=i(),t=_();return t?(v(),e({type:"rule",selectors:t,declarations:S()})):u("selector missing")}return p((w=m(),{type:"stylesheet",stylesheet:{source:t.source,rules:w,parsingErrors:a}}))},u.stringify=function(e,t){var n=(t=t||{}).compress?new he(t):new fe(t);if(t.sourcemap){var r=(ae||(ae=1,function(e,t){var n=ce().SourceMapGenerator,r=ce().SourceMapConsumer,o=pe(),i=a.default,u=s.default;e.exports=function(e){for(var r in e._comment=e.comment,e.map=new n,e.position={line:1,column:1},e.files={},t)e[r]=t[r]};const c=function(e){return"\\"===u.sep?e.replace(/\\/g,"/").replace(/^[a-z]:\/?/i,"/"):e};t.updatePosition=function(e){var t=e.match(/\n/g);t&&(this.position.line+=t.length);var n=e.lastIndexOf("\n");this.position.column=~n?e.length-n:this.position.column+e.length},t.emit=function(e,t){if(t){var n=c(t.source||"source.css");this.map.addMapping({source:n,generated:{line:this.position.line,column:Math.max(this.position.column-1,0)},original:{line:t.start.line,column:t.start.column-1}}),this.addFile(n,t)}return this.updatePosition(e),e},t.addFile=function(e,t){"string"==typeof t.content&&(Object.prototype.hasOwnProperty.call(this.files,e)||(this.files[e]=t.content))},t.applySourceMaps=function(){Object.keys(this.files).forEach((function(e){var t=this.files[e];if(this.map.setSourceContent(e,t),!1!==this.options.inputSourcemaps){var n=o.resolveSync(t,e,i.readFileSync);if(n){var s=new r(n.map),a=n.sourcesRelativeTo;this.map.applySourceMap(s,e,c(u.dirname(a)))}}}),this)},t.comment=function(e){return/^# sourceMappingURL=/.test(e.comment)?this.emit("",e.position):this._comment(e)}}(O,O.exports)),O.exports);r(n);var o=n.compile(e);return n.applySourceMaps(),{code:o,map:"generator"===t.sourcemap?n.map:n.map.toJSON()}}return o=n.compile(e)},e.ObjectToCSS=function(e){if("object"!=typeof e)throw new Error("Invalid input. Expected an object.");const t={type:"stylesheet",stylesheet:{rules:ge(e)}};return u.stringify(t)},Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("url"),require("path"),require("fs")):"function"==typeof define&&define.amd?define(["exports","url","path","fs"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jsObjectToCss={},e.require$$1,e.require$$2,e.require$$2$1)}(this,(function(e,t,n,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(t),s=o(n),a=o(r),u={},c=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function l(e){return e?e.replace(/^\s+|\s+$/g,""):""}function p(e,t){var n=e&&"string"==typeof e.type,r=n?e:t;for(var o in e){var i=e[o];Array.isArray(i)?i.forEach((function(e){p(e,r)})):i&&"object"==typeof i&&p(i,r)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var h=f;function f(e){this.options=e||{}}f.prototype.emit=function(e){return e},f.prototype.visit=function(e){return this[e.type](e)},f.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r<o;r++)n+=this.visit(e[r]),t&&r<o-1&&(n+=this.emit(t));return n};var m,g={exports:{}},d={exports:{}};try{var v=require("util");if("function"!=typeof v.inherits)throw"";g.exports=v.inherits}catch(e){g.exports=(m||(m=1,"function"==typeof Object.create?d.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:d.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}),d.exports)}var y=g.exports,_=h,C=S;function S(e){_.call(this,e)}y(S,_),S.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},S.prototype.comment=function(e){return this.emit("",e.position)},S.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},S.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},S.prototype.document=function(e){var t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},S.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},S.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},S.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},S.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},S.prototype.keyframe=function(e){var t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},S.prototype.page=function(e){var t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},S.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},S.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},S.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},S.prototype.rule=function(e){var t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},S.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var A=h,w=M;function M(e){e=e||{},A.call(this,e),this.indentation=e.indent}y(M,A),M.prototype.compile=function(e){return this.stylesheet(e)},M.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},M.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},M.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},M.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},M.prototype.document=function(e){var t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},M.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},M.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},M.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},M.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.keyframes,"\n")+this.emit(this.indent(-1)+"}")},M.prototype.keyframe=function(e){var t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},M.prototype.page=function(e){var t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},M.prototype["font-face"]=function(e){return this.emit("@font-face ",e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},M.prototype.host=function(e){return this.emit("@host",e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},M.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},M.prototype.rule=function(e){var t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},M.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},M.prototype.indent=function(e){return this.level=this.level||1,null!=e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var L,R,O={exports:{}},E={},b={},j={},x={};function P(){if(L)return x;L=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return x.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},x.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1},x}function U(){if(R)return j;R=1;var e=P();return j.encode=function(t){var n,r="",o=function(e){return e<0?1+(-e<<1):0+(e<<1)}(t);do{n=31&o,(o>>>=5)>0&&(n|=32),r+=e.encode(n)}while(o>0);return r},j.decode=function(t,n,r){var o,i,s,a,u=t.length,c=0,l=0;do{if(n>=u)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=e.decode(t.charCodeAt(n++))))throw new Error("Invalid base64 digit: "+t.charAt(n-1));o=!!(32&i),c+=(i&=31)<<l,l+=5}while(o);r.value=(a=(s=c)>>1,1==(1&s)?-a:a),r.rest=n},j}var T,I={};function k(){return T||(T=1,function(e){e.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function r(e){var n=e.match(t);return n?{scheme:n[1],auth:n[2],host:n[3],port:n[4],path:n[5]}:null}function o(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function i(t){var n=t,i=r(t);if(i){if(!i.path)return t;n=i.path}for(var s,a=e.isAbsolute(n),u=n.split(/\/+/),c=0,l=u.length-1;l>=0;l--)"."===(s=u[l])?u.splice(l,1):".."===s?c++:c>0&&(""===s?(u.splice(l+1,c),c=0):(u.splice(l,2),c--));return""===(n=u.join("/"))&&(n=a?"/":"."),i?(i.path=n,o(i)):n}function s(e,t){""===e&&(e="."),""===t&&(t=".");var s=r(t),a=r(e);if(a&&(e=a.path||"/"),s&&!s.scheme)return a&&(s.scheme=a.scheme),o(s);if(s||t.match(n))return t;if(a&&!a.host&&!a.path)return a.host=t,o(a);var u="/"===t.charAt(0)?t:i(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=u,o(a)):u}e.urlParse=r,e.urlGenerate=o,e.normalize=i,e.join=s,e.isAbsolute=function(e){return"/"===e.charAt(0)||t.test(e)},e.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var a=!("__proto__"in Object.create(null));function u(e){return e}function c(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function l(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=a?u:function(e){return c(e)?"$"+e:e},e.fromSetString=a?u:function(e){return c(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,n){var r=l(e.source,t.source);return 0!==r||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)||n||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:l(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=l(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:l(e.name,t.name)},e.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=l(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:l(e.name,t.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var a=r(n);if(!a)throw new Error("sourceMapURL could not be parsed");if(a.path){var u=a.path.lastIndexOf("/");u>=0&&(a.path=a.path.substring(0,u+1))}t=s(o(a),t)}return i(t)}}(I)),I}var G,N={};function D(){if(G)return N;G=1;var e=k(),t=Object.prototype.hasOwnProperty,n="undefined"!=typeof Map;function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(e,t){for(var n=new r,o=0,i=e.length;o<i;o++)n.add(e[o],t);return n},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(r,o){var i=n?r:e.toSetString(r),s=n?this.has(r):t.call(this._set,i),a=this._array.length;s&&!o||this._array.push(r),s||(n?this._set.set(r,a):this._set[i]=a)},r.prototype.has=function(r){if(n)return this._set.has(r);var o=e.toSetString(r);return t.call(this._set,o)},r.prototype.indexOf=function(r){if(n){var o=this._set.get(r);if(o>=0)return o}else{var i=e.toSetString(r);if(t.call(this._set,i))return this._set[i]}throw new Error('"'+r+'" is not in the set.')},r.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},r.prototype.toArray=function(){return this._array.slice()},N.ArraySet=r,N}var B,F,V={};function $(){if(B)return V;B=1;var e=k();function t(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return t.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},t.prototype.add=function(t){var n,r,o,i,s,a;n=this._last,r=t,o=n.generatedLine,i=r.generatedLine,s=n.generatedColumn,a=r.generatedColumn,i>o||i==o&&a>=s||e.compareByGeneratedPositionsInflated(n,r)<=0?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},t.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},V.MappingList=t,V}function q(){if(F)return b;F=1;var e=U(),t=k(),n=D().ArraySet,r=$().MappingList;function o(e){e||(e={}),this._file=t.getArg(e,"file",null),this._sourceRoot=t.getArg(e,"sourceRoot",null),this._skipValidation=t.getArg(e,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return o.prototype._version=3,o.fromSourceMap=function(e){var n=e.sourceRoot,r=new o({file:e.file,sourceRoot:n});return e.eachMapping((function(e){var o={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(o.source=e.source,null!=n&&(o.source=t.relative(n,o.source)),o.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(o.name=e.name)),r.addMapping(o)})),e.sources.forEach((function(o){var i=o;null!==n&&(i=t.relative(n,o)),r._sources.has(i)||r._sources.add(i);var s=e.sourceContentFor(o);null!=s&&r.setSourceContent(o,s)})),r},o.prototype.addMapping=function(e){var n=t.getArg(e,"generated"),r=t.getArg(e,"original",null),o=t.getArg(e,"source",null),i=t.getArg(e,"name",null);this._skipValidation||this._validateMapping(n,r,o,i),null!=o&&(o=String(o),this._sources.has(o)||this._sources.add(o)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:o,name:i})},o.prototype.setSourceContent=function(e,n){var r=e;null!=this._sourceRoot&&(r=t.relative(this._sourceRoot,r)),null!=n?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(r)]=n):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},o.prototype.applySourceMap=function(e,r,o){var i=r;if(null==r){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');i=e.file}var s=this._sourceRoot;null!=s&&(i=t.relative(s,i));var a=new n,u=new n;this._mappings.unsortedForEach((function(n){if(n.source===i&&null!=n.originalLine){var r=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});null!=r.source&&(n.source=r.source,null!=o&&(n.source=t.join(o,n.source)),null!=s&&(n.source=t.relative(s,n.source)),n.originalLine=r.line,n.originalColumn=r.column,null!=r.name&&(n.name=r.name))}var c=n.source;null==c||a.has(c)||a.add(c);var l=n.name;null==l||u.has(l)||u.add(l)}),this),this._sources=a,this._names=u,e.sources.forEach((function(n){var r=e.sourceContentFor(n);null!=r&&(null!=o&&(n=t.join(o,n)),null!=s&&(n=t.relative(s,n)),this.setSourceContent(n,r))}),this)},o.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},o.prototype._serializeMappings=function(){for(var n,r,o,i,s=0,a=1,u=0,c=0,l=0,p=0,h="",f=this._mappings.toArray(),m=0,g=f.length;m<g;m++){if(n="",(r=f[m]).generatedLine!==a)for(s=0;r.generatedLine!==a;)n+=";",a++;else if(m>0){if(!t.compareByGeneratedPositionsInflated(r,f[m-1]))continue;n+=","}n+=e.encode(r.generatedColumn-s),s=r.generatedColumn,null!=r.source&&(i=this._sources.indexOf(r.source),n+=e.encode(i-p),p=i,n+=e.encode(r.originalLine-1-c),c=r.originalLine-1,n+=e.encode(r.originalColumn-u),u=r.originalColumn,null!=r.name&&(o=this._names.indexOf(r.name),n+=e.encode(o-l),l=o)),h+=n}return h},o.prototype._generateSourcesContent=function(e,n){return e.map((function(e){if(!this._sourcesContents)return null;null!=n&&(e=t.relative(n,e));var r=t.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},o.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},b.SourceMapGenerator=o,b}var z,J={},W={};function Q(){return z||(z=1,function(e){function t(n,r,o,i,s,a){var u=Math.floor((r-n)/2)+n,c=s(o,i[u],!0);return 0===c?u:c>0?r-u>1?t(u,r,o,i,s,a):a==e.LEAST_UPPER_BOUND?r<i.length?r:-1:u:u-n>1?t(n,u,o,i,s,a):a==e.LEAST_UPPER_BOUND?u:n<0?-1:n}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(n,r,o,i){if(0===r.length)return-1;var s=t(-1,r.length,n,r,o,i||e.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===o(r[s],r[s-1],!0);)--s;return s}}(W)),W}var H,K,X={};function Y(){if(H)return X;function e(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function t(n,r,o,i){if(o<i){var s=o-1;e(n,(l=o,p=i,Math.round(l+Math.random()*(p-l))),i);for(var a=n[i],u=o;u<i;u++)r(n[u],a)<=0&&e(n,s+=1,u);e(n,s+1,u);var c=s+1;t(n,r,o,c-1),t(n,r,c+1,i)}var l,p}return H=1,X.quickSort=function(e,n){t(e,n,0,e.length-1)},X}var Z,ee,te,ne,re,oe,ie,se,ae,ue={};function ce(){return ee||(ee=1,E.SourceMapGenerator=q().SourceMapGenerator,E.SourceMapConsumer=function(){if(K)return J;K=1;var e=k(),t=Q(),n=D().ArraySet,r=U(),o=Y().quickSort;function i(t,n){var r=t;return"string"==typeof t&&(r=e.parseSourceMapInput(t)),null!=r.sections?new u(r,n):new s(r,n)}function s(t,r){var o=t;"string"==typeof t&&(o=e.parseSourceMapInput(t));var i=e.getArg(o,"version"),s=e.getArg(o,"sources"),a=e.getArg(o,"names",[]),u=e.getArg(o,"sourceRoot",null),c=e.getArg(o,"sourcesContent",null),l=e.getArg(o,"mappings"),p=e.getArg(o,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);u&&(u=e.normalize(u)),s=s.map(String).map(e.normalize).map((function(t){return u&&e.isAbsolute(u)&&e.isAbsolute(t)?e.relative(u,t):t})),this._names=n.fromArray(a.map(String),!0),this._sources=n.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map((function(t){return e.computeSourceURL(u,t,r)})),this.sourceRoot=u,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=r,this.file=p}function a(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function u(t,r){var o=t;"string"==typeof t&&(o=e.parseSourceMapInput(t));var s=e.getArg(o,"version"),a=e.getArg(o,"sections");if(s!=this._version)throw new Error("Unsupported version: "+s);this._sources=new n,this._names=new n;var u={line:-1,column:0};this._sections=a.map((function(t){if(t.url)throw new Error("Support for url field in sections not implemented.");var n=e.getArg(t,"offset"),o=e.getArg(n,"line"),s=e.getArg(n,"column");if(o<u.line||o===u.line&&s<u.column)throw new Error("Section offsets must be ordered and non-overlapping.");return u=n,{generatedOffset:{generatedLine:o+1,generatedColumn:s+1},consumer:new i(e.getArg(t,"map"),r)}}))}return i.fromSourceMap=function(e,t){return s.fromSourceMap(e,t)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},i.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(t,n,r){var o,s=n||null;switch(r||i.GENERATED_ORDER){case i.GENERATED_ORDER:o=this._generatedMappings;break;case i.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;o.map((function(t){var n=null===t.source?null:this._sources.at(t.source);return{source:n=e.computeSourceURL(a,n,this._sourceMapURL),generatedLine:t.generatedLine,generatedColumn:t.generatedColumn,originalLine:t.originalLine,originalColumn:t.originalColumn,name:null===t.name?null:this._names.at(t.name)}}),this).forEach(t,s)},i.prototype.allGeneratedPositionsFor=function(n){var r=e.getArg(n,"line"),o={source:e.getArg(n,"source"),originalLine:r,originalColumn:e.getArg(n,"column",0)};if(o.source=this._findSourceIndex(o.source),o.source<0)return[];var i=[],s=this._findMapping(o,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(void 0===n.column)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:e.getArg(a,"generatedLine",null),column:e.getArg(a,"generatedColumn",null),lastColumn:e.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var c=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==c;)i.push({line:e.getArg(a,"generatedLine",null),column:e.getArg(a,"generatedColumn",null),lastColumn:e.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},J.SourceMapConsumer=i,s.prototype=Object.create(i.prototype),s.prototype.consumer=i,s.prototype._findSourceIndex=function(t){var n,r=t;if(null!=this.sourceRoot&&(r=e.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(n=0;n<this._absoluteSources.length;++n)if(this._absoluteSources[n]==t)return n;return-1},s.fromSourceMap=function(t,r){var i=Object.create(s.prototype),u=i._names=n.fromArray(t._names.toArray(),!0),c=i._sources=n.fromArray(t._sources.toArray(),!0);i.sourceRoot=t._sourceRoot,i.sourcesContent=t._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=t._file,i._sourceMapURL=r,i._absoluteSources=i._sources.toArray().map((function(t){return e.computeSourceURL(i.sourceRoot,t,r)}));for(var l=t._mappings.toArray().slice(),p=i.__generatedMappings=[],h=i.__originalMappings=[],f=0,m=l.length;f<m;f++){var g=l[f],d=new a;d.generatedLine=g.generatedLine,d.generatedColumn=g.generatedColumn,g.source&&(d.source=c.indexOf(g.source),d.originalLine=g.originalLine,d.originalColumn=g.originalColumn,g.name&&(d.name=u.indexOf(g.name)),h.push(d)),p.push(d)}return o(i.__originalMappings,e.compareByOriginalPositions),i},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),s.prototype._parseMappings=function(t,n){for(var i,s,u,c,l,p=1,h=0,f=0,m=0,g=0,d=0,v=t.length,y=0,_={},C={},S=[],A=[];y<v;)if(";"===t.charAt(y))p++,y++,h=0;else if(","===t.charAt(y))y++;else{for((i=new a).generatedLine=p,c=y;c<v&&!this._charIsMappingSeparator(t,c);c++);if(u=_[s=t.slice(y,c)])y+=s.length;else{for(u=[];y<c;)r.decode(t,y,C),l=C.value,y=C.rest,u.push(l);if(2===u.length)throw new Error("Found a source, but no line and column");if(3===u.length)throw new Error("Found a source and line, but no column");_[s]=u}i.generatedColumn=h+u[0],h=i.generatedColumn,u.length>1&&(i.source=g+u[1],g+=u[1],i.originalLine=f+u[2],f=i.originalLine,i.originalLine+=1,i.originalColumn=m+u[3],m=i.originalColumn,u.length>4&&(i.name=d+u[4],d+=u[4])),A.push(i),"number"==typeof i.originalLine&&S.push(i)}o(A,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=A,o(S,e.compareByOriginalPositions),this.__originalMappings=S},s.prototype._findMapping=function(e,n,r,o,i,s){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[o]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[o]);return t.search(e,n,i,s)},s.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(t){var n={generatedLine:e.getArg(t,"line"),generatedColumn:e.getArg(t,"column")},r=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(t,"bias",i.GREATEST_LOWER_BOUND));if(r>=0){var o=this._generatedMappings[r];if(o.generatedLine===n.generatedLine){var s=e.getArg(o,"source",null);null!==s&&(s=this._sources.at(s),s=e.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=e.getArg(o,"name",null);return null!==a&&(a=this._names.at(a)),{source:s,line:e.getArg(o,"originalLine",null),column:e.getArg(o,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},s.prototype.sourceContentFor=function(t,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];var o,i=t;if(null!=this.sourceRoot&&(i=e.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(o=e.urlParse(this.sourceRoot))){var s=i.replace(/^file:\/\//,"");if("file"==o.scheme&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!o.path||"/"==o.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(n)return null;throw new Error('"'+i+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(t){var n=e.getArg(t,"source");if((n=this._findSourceIndex(n))<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:e.getArg(t,"line"),originalColumn:e.getArg(t,"column")},o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(t,"bias",i.GREATEST_LOWER_BOUND));if(o>=0){var s=this._originalMappings[o];if(s.source===r.source)return{line:e.getArg(s,"generatedLine",null),column:e.getArg(s,"generatedColumn",null),lastColumn:e.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},J.BasicSourceMapConsumer=s,u.prototype=Object.create(i.prototype),u.prototype.constructor=i,u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),u.prototype.originalPositionFor=function(n){var r={generatedLine:e.getArg(n,"line"),generatedColumn:e.getArg(n,"column")},o=t.search(r,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),i=this._sections[o];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:n.bias}):{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},u.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(-1!==r.consumer._findSourceIndex(e.getArg(t,"source"))){var o=r.consumer.generatedPositionFor(t);if(o)return{line:o.line+(r.generatedOffset.generatedLine-1),column:o.column+(r.generatedOffset.generatedLine===o.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},u.prototype._parseMappings=function(t,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var u=s[a],c=i.consumer._sources.at(u.source);c=e.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=i.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var p={source:c,generatedLine:u.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(i.generatedOffset.generatedLine===u.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(p),"number"==typeof p.originalLine&&this.__originalMappings.push(p)}o(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),o(this.__originalMappings,e.compareByOriginalPositions)},J.IndexedSourceMapConsumer=u,J}().SourceMapConsumer,E.SourceNode=function(){if(Z)return ue;Z=1;var e=q().SourceMapGenerator,t=k(),n=/(\r?\n)/,r="$$$isSourceNode$$$";function o(e,t,n,o,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[r]=!0,null!=o&&this.add(o)}return o.fromStringWithSourceMap=function(e,r,i){var s=new o,a=e.split(n),u=0,c=function(){return e()+(e()||"");function e(){return u<a.length?a[u++]:void 0}},l=1,p=0,h=null;return r.eachMapping((function(e){if(null!==h){if(!(l<e.generatedLine)){var t=(n=a[u]||"").substr(0,e.generatedColumn-p);return a[u]=n.substr(e.generatedColumn-p),p=e.generatedColumn,f(h,t),void(h=e)}f(h,c()),l++,p=0}for(;l<e.generatedLine;)s.add(c()),l++;if(p<e.generatedColumn){var n=a[u]||"";s.add(n.substr(0,e.generatedColumn)),a[u]=n.substr(e.generatedColumn),p=e.generatedColumn}h=e}),this),u<a.length&&(h&&f(h,c()),s.add(a.splice(u).join(""))),r.sources.forEach((function(e){var n=r.sourceContentFor(e);null!=n&&(null!=i&&(e=t.join(i,e)),s.setSourceContent(e,n))})),s;function f(e,n){if(null===e||void 0===e.source)s.add(n);else{var r=i?t.join(i,e.source):e.source;s.add(new o(e.originalLine,e.originalColumn,r,n,e.name))}}},o.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[r]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},o.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[r]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},o.prototype.walk=function(e){for(var t,n=0,o=this.children.length;n<o;n++)(t=this.children[n])[r]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},o.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},o.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[r]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},o.prototype.setSourceContent=function(e,n){this.sourceContents[t.toSetString(e)]=n},o.prototype.walkSourceContents=function(e){for(var n=0,o=this.children.length;n<o;n++)this.children[n][r]&&this.children[n].walkSourceContents(e);var i=Object.keys(this.sourceContents);for(n=0,o=i.length;n<o;n++)e(t.fromSetString(i[n]),this.sourceContents[i[n]])},o.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},o.prototype.toStringWithSourceMap=function(t){var n={code:"",line:1,column:0},r=new e(t),o=!1,i=null,s=null,a=null,u=null;return this.walk((function(e,t){n.code+=e,null!==t.source&&null!==t.line&&null!==t.column?(i===t.source&&s===t.line&&a===t.column&&u===t.name||r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),i=t.source,s=t.line,a=t.column,u=t.name,o=!0):o&&(r.addMapping({generated:{line:n.line,column:n.column}}),i=null,o=!1);for(var c=0,l=e.length;c<l;c++)10===e.charCodeAt(c)?(n.line++,n.column=0,c+1===l?(i=null,o=!1):o&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++})),this.walkSourceContents((function(e,t){r.setSourceContent(e,t)})),{code:n.code,map:r}},ue.SourceNode=o,ue}().SourceNode),E}function le(){if(oe)return re;oe=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),n=new RegExp("("+e+")+","gi");function r(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),o=e.slice(t);return Array.prototype.concat.call([],r(n),r(o))}function o(e){try{return decodeURIComponent(e)}catch(i){for(var n=e.match(t)||[],o=1;o<n.length;o++)n=(e=r(n,o).join("")).match(t)||[];return e}}return re=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var i=o(r[0]);i!==r[0]&&(t[r[0]]=i)}r=n.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var u=s[a];e=e.replace(new RegExp(u,"g"),t[u])}return e}(e)}}}function pe(){if(se)return ie;se=1;var e=function(){if(ne)return te;function e(e){return Buffer.from(e,"base64").toString("binary")}return ne=1,te=e.atob=e}(),t=i.default,n=s.default,r=le();function o(){return Array.prototype.reduce.call(arguments,(function(e,n){return t.resolve(e,n)}))}function a(e){return"\\"===n.sep?e.replace(/\\/g,"/").replace(/^[a-z]:\/?/i,"/"):e}function u(e){return r(e.replace(/\+/g,"%2B"))}function c(e,t,n){setImmediate((function(){e(t,n)}))}function l(e,t){try{return JSON.parse(e.replace(/^\)\]\}'/,""))}catch(e){throw e.sourceMapData=t,e}}function p(e,t,n){var r=u(t);try{return String(e(r))}catch(e){throw e.sourceMapData=n,e}}var h=/[#@] sourceMappingURL=([^\s'"]*)/,f=RegExp("(?:/\\*(?:\\s*\r?\n(?://)?)?(?:"+h.source+")\\s*\\*/|//(?:"+h.source+"))\\s*");function m(e,t,n,r){var o;try{o=C(e,t)}catch(e){return c(r,e)}if(!o||o.map)return c(r,null,o);n(u(o.url),(function(e,t){if(e)return e.sourceMapData=o,r(e);o.map=String(t);try{o.map=l(o.map,o)}catch(e){return r(e)}r(null,o)}))}function g(e,t,n){var r=C(e,t);return!r||r.map||(r.map=p(n,r.url,r),r.map=l(r.map,r)),r}var d=/^data:([^,;]*)(;[^,;]*)*(?:,(.*))?$/,v=/^(?:application|text)\/json$/,y="utf-8";function _(t){if("undefined"==typeof TextDecoder||"undefined"==typeof Uint8Array)return e(t);var n=function(t){for(var n=e(t),r=n.length,o=new Uint8Array(r),i=0;i<r;i++)o[i]=n.charCodeAt(i);return o}(t);return new TextDecoder(y,{fatal:!0}).decode(n)}function C(e,t){t=a(t);var n=function(e){var t=e.match(f);return t?t[1]||t[2]||"":null}(e);if(!n)return null;var r=n.match(d);if(r){var i=r[1]||"text/plain",s=r[2]||"",u=r[3]||"",c={sourceMappingURL:n,url:null,sourcesRelativeTo:t,map:u};if(!v.test(i)){var p=new Error("Unuseful data uri mime type: "+i);throw p.sourceMapData=c,p}try{c.map=l(";base64"===s?_(u):decodeURIComponent(u),c)}catch(p){throw p.sourceMapData=c,p}return c}var h=o(t,n);return{sourceMappingURL:n,url:h,sourcesRelativeTo:h,map:null}}function S(e,t,n,r,o){"function"==typeof r&&(o=r,r={});var i=e.sources?e.sources.length:0,s={sourcesResolved:[],sourcesContent:[]};if(0!==i){var a=function(){0===--i&&o(null,s)};M(e,t,r,(function(e,t,r){if(s.sourcesResolved[r]=e,"string"==typeof t)s.sourcesContent[r]=t,c(a,null);else{var o=u(e);n(o,(function(e,t){s.sourcesContent[r]=e||String(t),a()}))}}))}else c(o,null,s)}function A(e,t,n,r){var o={sourcesResolved:[],sourcesContent:[]};return e.sources&&0!==e.sources.length?(M(e,t,r,(function(e,t,r){if(o.sourcesResolved[r]=e,null!==n)if("string"==typeof t)o.sourcesContent[r]=t;else{var i=u(e);try{o.sourcesContent[r]=String(n(i))}catch(e){o.sourcesContent[r]=e}}})),o):o}var w=/\/?$/;function M(e,t,n,r){var i;n=n||{},t=a(t);for(var s=0,u=e.sources.length;s<u;s++)i=null,"string"==typeof n.sourceRoot?i=n.sourceRoot:"string"==typeof e.sourceRoot&&!1!==n.sourceRoot&&(i=e.sourceRoot),r(null===i||""===i?o(t,e.sources[s]):o(t,i.replace(w,"/"),e.sources[s]),(e.sourcesContent||[])[s],s)}return ie={resolveSourceMap:m,resolveSourceMapSync:g,resolveSources:S,resolveSourcesSync:A,resolve:function(e,t,n,r,o){if("function"==typeof r&&(o=r,r={}),null===e){var i={sourceMappingURL:null,url:t,sourcesRelativeTo:t,map:null},s=u(t);n(s,(function(e,t){if(e)return e.sourceMapData=i,o(e);i.map=String(t);try{i.map=l(i.map,i)}catch(e){return o(e)}a(i)}))}else m(e,t,n,(function(e,t){return e?o(e):t?void a(t):o(null,null)}));function a(e){S(e.map,e.sourcesRelativeTo,n,r,(function(t,n){if(t)return o(t);e.sourcesResolved=n.sourcesResolved,e.sourcesContent=n.sourcesContent,o(null,e)}))}},resolveSync:function(e,t,n,r){var o;if(null===e){(o={sourceMappingURL:null,url:t,sourcesRelativeTo:t,map:null}).map=p(n,t,o),o.map=l(o.map,o)}else if(!(o=g(e,t,n)))return null;var i=A(o.map,o.sourcesRelativeTo,n,r);return o.sourcesResolved=i.sourcesResolved,o.sourcesContent=i.sourcesContent,o},parseMapToJSON:l}}var he=C,fe=w;function me(e){return"object"==typeof e&&!Array.isArray(e)&&Object.keys(e).length>0}function ge(e,t=[]){const n=[];for(const[r,o]of Object.entries(e)){if("object"!=typeof o)throw new Error(`Invalid properties for selector '${r}'. Expected an object.`);const e=t.concat(r),i={type:"rule",selectors:[e.join(" ")],declarations:[]};for(const[t,s]of Object.entries(o))if(me(s)){const r=ge({[t]:s},e);n.push(...r)}else{if("string"!=typeof t)throw new Error(`Invalid declaration for selector '${r}'. Expected property to be a string.`);i.declarations.push({type:"declaration",property:t,value:s})}n.unshift(i)}return n}u.parse=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new s(e),d(),t}}function s(e){this.start=e,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;var a=[];function u(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i;a.push(i)}function h(){return g(/^{\s*/)}function f(){return g(/^}/)}function m(){var t,n=[];for(d(),v(n);e.length&&"}"!=e.charAt(0)&&(t=E()||b());)!1!==t&&(n.push(t),v(n));return n}function g(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function d(){g(/^\s*/)}function v(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return u("End of comment missing");var s=e.slice(2,n-2);return r+=2,o(s),e=e.slice(n),r+=2,t({type:"comment",comment:s})}}function _(){var e=g(/^([^{]+)/);if(e)return l(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function C(){var e=i(),t=g(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=l(t[0]),!g(/^:\s*/))return u("property missing ':'");var n=g(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(c,""),value:n?l(n[0]).replace(c,""):""});return g(/^[;\s]*/),r}}function S(){var e,t=[];if(!h())return u("missing '{'");for(v(t);e=C();)!1!==e&&(t.push(e),v(t));return f()?t:u("missing '}'")}function A(){for(var e,t=[],n=i();e=g(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),g(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:S()})}var w,M=O("import"),L=O("charset"),R=O("namespace");function O(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=i(),r=g(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function E(){if("@"==e[0])return function(){var e=i();if(t=g(/^@([-\w]+)?keyframes\s*/)){var t,n=t[1];if(!(t=g(/^([-\w]+)\s*/)))return u("@keyframes missing name");var r,o=t[1];if(!h())return u("@keyframes missing '{'");for(var s=v();r=A();)s.push(r),s=s.concat(v());return f()?e({type:"keyframes",name:o,vendor:n,keyframes:s}):u("@keyframes missing '}'")}}()||function(){var e=i(),t=g(/^@media *([^{]+)/);if(t){var n=l(t[1]);if(!h())return u("@media missing '{'");var r=v().concat(m());return f()?e({type:"media",media:n,rules:r}):u("@media missing '}'")}}()||function(){var e=i(),t=g(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:l(t[1]),media:l(t[2])})}()||function(){var e=i(),t=g(/^@supports *([^{]+)/);if(t){var n=l(t[1]);if(!h())return u("@supports missing '{'");var r=v().concat(m());return f()?e({type:"supports",supports:n,rules:r}):u("@supports missing '}'")}}()||M()||L()||R()||function(){var e=i(),t=g(/^@([-\w]+)?document *([^{]+)/);if(t){var n=l(t[1]),r=l(t[2]);if(!h())return u("@document missing '{'");var o=v().concat(m());return f()?e({type:"document",document:r,vendor:n,rules:o}):u("@document missing '}'")}}()||function(){var e=i();if(g(/^@page */)){var t=_()||[];if(!h())return u("@page missing '{'");for(var n,r=v();n=C();)r.push(n),r=r.concat(v());return f()?e({type:"page",selectors:t,declarations:r}):u("@page missing '}'")}}()||function(){var e=i();if(g(/^@host\s*/)){if(!h())return u("@host missing '{'");var t=v().concat(m());return f()?e({type:"host",rules:t}):u("@host missing '}'")}}()||function(){var e=i();if(g(/^@font-face\s*/)){if(!h())return u("@font-face missing '{'");for(var t,n=v();t=C();)n.push(t),n=n.concat(v());return f()?e({type:"font-face",declarations:n}):u("@font-face missing '}'")}}()}function b(){var e=i(),t=_();return t?(v(),e({type:"rule",selectors:t,declarations:S()})):u("selector missing")}return p((w=m(),{type:"stylesheet",stylesheet:{source:t.source,rules:w,parsingErrors:a}}))},u.stringify=function(e,t){var n=(t=t||{}).compress?new he(t):new fe(t);if(t.sourcemap){var r=(ae||(ae=1,function(e,t){var n=ce().SourceMapGenerator,r=ce().SourceMapConsumer,o=pe(),i=a.default,u=s.default;e.exports=function(e){for(var r in e._comment=e.comment,e.map=new n,e.position={line:1,column:1},e.files={},t)e[r]=t[r]};const c=function(e){return"\\"===u.sep?e.replace(/\\/g,"/").replace(/^[a-z]:\/?/i,"/"):e};t.updatePosition=function(e){var t=e.match(/\n/g);t&&(this.position.line+=t.length);var n=e.lastIndexOf("\n");this.position.column=~n?e.length-n:this.position.column+e.length},t.emit=function(e,t){if(t){var n=c(t.source||"source.css");this.map.addMapping({source:n,generated:{line:this.position.line,column:Math.max(this.position.column-1,0)},original:{line:t.start.line,column:t.start.column-1}}),this.addFile(n,t)}return this.updatePosition(e),e},t.addFile=function(e,t){"string"==typeof t.content&&(Object.prototype.hasOwnProperty.call(this.files,e)||(this.files[e]=t.content))},t.applySourceMaps=function(){Object.keys(this.files).forEach((function(e){var t=this.files[e];if(this.map.setSourceContent(e,t),!1!==this.options.inputSourcemaps){var n=o.resolveSync(t,e,i.readFileSync);if(n){var s=new r(n.map),a=n.sourcesRelativeTo;this.map.applySourceMap(s,e,c(u.dirname(a)))}}}),this)},t.comment=function(e){return/^# sourceMappingURL=/.test(e.comment)?this.emit("",e.position):this._comment(e)}}(O,O.exports)),O.exports);r(n);var o=n.compile(e);return n.applySourceMaps(),{code:o,map:"generator"===t.sourcemap?n.map:n.map.toJSON()}}return o=n.compile(e)},e.ObjectToCSS=function(e){if("object"!=typeof e)throw new Error("Invalid input. Expected an object.");const t={type:"stylesheet",stylesheet:{rules:ge(e)}};return u.stringify(t)},Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=bundle.js.map
{
"name": "js-object-to-css",
"version": "1.1.9",
"version": "1.1.10",
"description": "convert JavaScript objects to CSS",

@@ -16,4 +16,3 @@ "main": "index.js",

"dependencies": {
"css": "^3.0.0",
"rollup-plugin-node-resolve": "^5.2.0"
"css": "^3.0.0"
},

@@ -20,0 +19,0 @@ "repository": {

@@ -33,3 +33,3 @@ # JS-Object-To-CSS

``` <script src="https://unpkg.com/js-object-to-css@1.1.6/dist/js-object-to-css.js"></script> ```
``` <script src="https://unpkg.com/js-object-to-css@1.1.10/dist/js-object-to-css.js"></script> ```

@@ -36,0 +36,0 @@

Sorry, the diff of this file is not supported yet