From 2226623eb23ccba7abb8c089fec461bd13f7a092 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 27 Apr 2015 09:15:20 +0300 Subject: [PATCH] Update all dependencies. clean-css 3.2.5, uglifyjs 2.4.20, relateurl 0.2.6. --- assets/cleancss-browser.js | 15 +++++++++------ assets/relateurl-browser.js | 2 +- assets/uglify.js | 4 ++-- package.json | 2 +- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/assets/cleancss-browser.js b/assets/cleancss-browser.js index 2faf239..7f47502 100644 --- a/assets/cleancss-browser.js +++ b/assets/cleancss-browser.js @@ -1,6 +1,9 @@ -!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.CleanCSS=e()}}(function(){var e;return function t(e,r,n){function i(a,s){if(!r[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[a]={exports:{}};e[a][0].call(c.exports,function(t){var r=e[a][1][t];return i(r?r:t)},c,c.exports,t,e,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a0?t.errors:null,r):r}return function(e){return t.options.sourceMap?t.inputSourceMapTracker.track(e,function(){return r(e)}):r(e)}}function i(e,t){return t.stats=e.stats,t.errors=e.errors,t.warnings=e.warnings,t}function o(e,t){var n=r.hrtime();e.stats.originalSize=e.sourceTracker.removeAll(t).length,t=s(e,t);var i=r.hrtime(n);return e.stats.timeSpent=~~(1e3*i[0]+i[1]/1e6),e.stats.efficiency=1-t.styles.length/e.stats.originalSize,e.stats.minifiedSize=t.styles.length,t}function a(e){return function(t,n){var i=t.constructor.name+"#"+n,o=r.hrtime();e(t,n);var a=r.hrtime(o);console.log("%d ms: "+i,1e3*a[0]+a[1]/1e6)}}function s(e,t){var r=e.options,n=e.inputSourceMapTracker,i=new p(e,r.keepSpecialComments,r.keepBreaks,r.sourceMap),o=new d(r.sourceMap),s=new g(r.sourceMap),u=new m(e,r.sourceMap,!r.compatibility.properties.spaceAfterClosingBrace),v=new l(e),b=new c(r,e),y=r.sourceMap?f:h,w=function(e,r){t="function"==typeof e?e(t):e[r](t)};return r.benchmark&&(w=a(w)),w(i,"escape"),w(o,"escape"),w(u,"escape"),w(s,"escape"),w(function(){var e=new y(r,function(e){return e=s.restore(e),e=u.restore(e),e=r.rebase?v.process(e):e,e=o.restore(e),i.restore(e)},n);return b.process(t,e)}),t}var u=e("./imports/inliner"),l=e("./images/url-rebase"),c=e("./selectors/optimizer"),h=e("./selectors/stringifier"),f=e("./selectors/source-map-stringifier"),p=e("./text/comments-processor"),d=e("./text/expressions-processor"),g=e("./text/free-text-processor"),m=e("./text/urls-processor"),v=e("./utils/compatibility"),b=e("./utils/input-source-map-tracker"),y=e("./utils/source-tracker"),w=e("./utils/source-reader"),_=5e3,x=t.exports=function(e){e=e||{},this.options={advanced:void 0===e.advanced?!0:!!e.advanced,aggressiveMerging:void 0===e.aggressiveMerging?!0:!!e.aggressiveMerging,benchmark:e.benchmark,compatibility:new v(e.compatibility).toOptions(),debug:e.debug,inliner:e.inliner||{},keepBreaks:e.keepBreaks||!1,keepSpecialComments:"keepSpecialComments"in e?e.keepSpecialComments:"*",mediaMerging:void 0===e.mediaMerging?!0:!!e.mediaMerging,processImport:void 0===e.processImport?!0:!!e.processImport,rebase:void 0===e.rebase?!0:!!e.rebase,relativeTo:e.relativeTo,restructuring:void 0===e.restructuring?!0:!!e.restructuring,root:e.root,roundingPrecision:e.roundingPrecision,shorthandCompacting:e.sourceMap?!1:void 0===e.shorthandCompacting?!0:!!e.shorthandCompacting,sourceMap:e.sourceMap,target:e.target},this.options.inliner.timeout=this.options.inliner.timeout||_,this.options.inliner.request=this.options.inliner.request||{}};x.prototype.minify=function(e,t){var i={stats:{},errors:[],warnings:[],options:this.options,debug:this.options.debug,sourceTracker:new y};if(i.options.sourceMap&&(i.inputSourceMapTracker=new b(i)),e=new w(i,e).toString(),i.options.processImport||e.indexOf("@shallow")>0){var o=t?r.nextTick:function(e){return e()};return o(function(){return new u(i).process(e,{localOnly:!t,whenDone:n(t,i)})})}return n(t,i)(e)}}).call(this,e("_process"))},{"./images/url-rebase":6,"./imports/inliner":8,"./selectors/optimizer":17,"./selectors/source-map-stringifier":21,"./selectors/stringifier":22,"./text/comments-processor":24,"./text/expressions-processor":26,"./text/free-text-processor":27,"./text/urls-processor":28,"./utils/compatibility":30,"./utils/input-source-map-tracker":32,"./utils/source-reader":36,"./utils/source-tracker":37,_process:56}],3:[function(e,t,r){function n(e,t,r,n){return t+s[r.toLowerCase()]+n}function i(e,t,r){return u[t.toLowerCase()]+r}var o={},a={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"},s={},u={};for(var l in a){var c=a[l];l.length-1,r=e.replace(h,n);return r!=e&&(r=r.replace(h,n)),t?r.replace(f,i):r},t.exports=o},{}],4:[function(e,t,r){function n(e,t,r){this.hue=e,this.saturation=t,this.lightness=r}function i(e,t,r){var n,i,a;if(e%=360,0>e&&(e+=360),e=~~e/360,0>t?t=0:t>100&&(t=100),t=~~t/100,0>r?r=0:r>100&&(r=100),r=~~r/100,0===t)n=i=a=r;else{var s=.5>r?r*(1+t):r+t-r*t,u=2*r-s;n=o(u,s,e+1/3),i=o(u,s,e),a=o(u,s,e-1/3)}return[~~(255*n),~~(255*i),~~(255*a)]}function o(e,t,r){return 0>r&&(r+=1),r>1&&(r-=1),1/6>r?e+6*(t-e)*r:.5>r?t:2/3>r?e+(t-e)*(2/3-r)*6:e}n.prototype.toHex=function(){var e=i(this.hue,this.saturation,this.lightness),t=e[0].toString(16),r=e[1].toString(16),n=e[2].toString(16);return"#"+((1==t.length?"0":"")+t)+((1==r.length?"0":"")+r)+((1==n.length?"0":"")+n)},t.exports=n},{}],5:[function(e,t,r){function n(e,t,r){this.red=e,this.green=t,this.blue=r}n.prototype.toHex=function(){var e=Math.max(0,Math.min(~~this.red,255)),t=Math.max(0,Math.min(~~this.green,255)),r=Math.max(0,Math.min(~~this.blue,255));return"#"+("00000"+(e<<16|t<<8|r).toString(16)).slice(-6)},t.exports=n},{}],6:[function(e,t,r){function n(e){this.outerContext=e}var i=e("fs"),o=e("path"),a=e("./url-rewriter");n.prototype.process=function(e){var t=this.outerContext.options,r={absolute:!!t.root,relative:!t.root&&!!t.target,fromBase:t.relativeTo};if(!r.absolute&&!r.relative)return e;if(r.absolute&&t.target&&this.outerContext.warnings.push("Both 'root' and output file given so rebasing URLs as absolute paths"),r.absolute&&(r.toBase=o.resolve(t.root)),r.relative){var n=i.existsSync(t.target)&&i.statSync(t.target).isDirectory()?t.target:o.dirname(t.target);r.toBase=o.resolve(n)}return r.fromBase&&r.toBase?new a(r).process(e):e},t.exports=n},{"./url-rewriter":7,fs:40,path:55}],7:[function(e,t,r){(function(r){function n(e,t){this.options=e,this.context=t}function i(e,t){var n,i=".css"==e.substring(e.length-4),s=0===e.indexOf("data:"),u="/"==e[0]||"#"==e[0]||!t.imports&&i||s||null!==/^https?:\/\//.exec(e)||null!==/__\w+__/.exec(e);return!1===t.urls&&(u=t.imports&&i?!1:!0),u?s?"'"+e+"'":e:/https?:\/\//.test(t.toBase)?a.resolve(t.toBase,e):(n=t.absolute?o.resolve(o.join(t.fromBase,e)).replace(t.toBase,""):o.relative(t.toBase,o.join(t.fromBase,e)),"win32"==r.platform?n.replace(/\\/g,"/"):n)}var o=e("path"),a=e("url"),s=e("../utils/url-scanner");n.prototype.process=function(e){var t=this;return new s(e,this.context).reduce(function(e,r){e=e.replace(/^url\(\s*['"]?|['"]?\s*\)$/g,""),r.push("url("+i(e,t.options)+")")})},t.exports=n}).call(this,e("_process"))},{"../utils/url-scanner":39,_process:56,path:55,url:74}],8:[function(e,t,r){(function(r){function n(e){this.outerContext=e}function i(e,t){if(t.shallow)return t.shallow=!1,t.done.push(e),s(t);for(var r=0,n=0,i=0,o=u(e);n-1&&-1==n?r:-1==r&&n>-1?n:Math.min(r,n)}function s(e){return e.left.length>0?i.apply(null,e.left.shift()):e.whenDone(e.done.join(""))}function u(e){var t=/(\/\*(?!\*\/)[\s\S]*?\*\/)/,r=0,n=0,i=!1;return function o(a){var s,u=0,l=0,c=0,h=0;return i?!1:a>r&&n>a?!0:(s=e.match(t))?(r=u=s.index,l=u+s[0].length,h=l+n,c=h-s[0].length,e=e.substring(l),n=h,a>h?o(a):h>a&&a>c):(i=!0,!1)}}function l(e){for(var t=u(e),r=-1;;)if(r=e.indexOf("{",r+1),-1==r||!t(r))break;return r>-1}function c(e,t,r,n){n.shallow=e.indexOf("@shallow")>0;var i=e.substring(a(e,t)+"@import".length+1,r).replace(/@shallow\)$/,")").trim(),o=0===i.indexOf("url("),u=o?4:0,c=/^['"]/.exec(i.substring(u,u+2)),d=c?i.indexOf(c[0],u+1):new w(" ").split(i)[0].length-(o?1:0),g=i.substring(u,d).replace(/['"]/g,"").replace(/\)$/,"").trim(),m=i.substring(d+1).replace(/^\)/,"").trim(),v=n.isRemote||k.test(g);if(n.localOnly&&v)return n.afterContent||l(n.done.join(""))?n.warnings.push('Ignoring remote @import of "'+g+'" as no callback given.'):p(g,m,n),s(n);if(!v&&n.afterContent)return n.warnings.push('Ignoring local @import of "'+g+'" as after other CSS content.'),s(n);var b=v?h:f;return b(g,m,n)}function h(e,t,r){function n(e){l||(l=!0,r.errors.push('Broken @import declaration of "'+a+'" - '+e),p(a,t,r),s(r))}var a=k.test(e)?e:b.resolve(r.relativeTo,e);if(0===a.indexOf("//")&&(a="http:"+a),r.visited.indexOf(a)>-1)return s(r);r.debug&&console.error("Inlining remote stylesheet: "+a),r.visited.push(a);var u=0===a.indexOf("http://")?m.get:v.get,l=!1,c=_(b.parse(a),r.inliner.request);u(c,function(e){if(e.statusCode<200||e.statusCode>399)return n("error "+e.statusCode);if(e.statusCode>299){var s=b.resolve(a,e.headers.location);return h(s,t,r)}var u=[],l=b.parse(a);e.on("data",function(e){u.push(e.toString())}),e.on("end",function(){var e=u.join("");r.rebase&&(e=new y({toBase:a},r).process(e)),e=r.sourceTracker.store(a,e),e=o(e,a),t.length>0&&(e="@media "+t+"{"+e+"}");var n=_(r,{isRemote:!0,relativeTo:l.protocol+"//"+l.host+l.pathname});i(e,n)})}).on("error",function(e){n(e.message)}).on("timeout",function(){n("timeout")}).setTimeout(r.inliner.timeout)}function f(e,t,r){var n="/"==e[0]?r.root:r.relativeTo,o=g.resolve(g.join(n,e));if(!d.existsSync(o)||!d.statSync(o).isFile())return r.errors.push('Broken @import declaration of "'+e+'"'),s(r);if(r.visited.indexOf(o)>-1)return s(r);r.debug&&console.error("Inlining local stylesheet: "+o),r.visited.push(o);var a=g.dirname(o),u=d.readFileSync(o,"utf8");if(r.rebase){var l=new y({relative:!0,fromBase:a,toBase:r.baseRelativeTo},r);u=l.process(u)}u=r.sourceTracker.store(g.resolve(r.relativeTo,o),u),t.length>0&&(u="@media "+t+"{"+u+"}");var c=_(r,{relativeTo:a});return i(u,c)}function p(e,t,r){var n="@import url("+e+")"+(t.length>0?" "+t:"")+";";r.done.push(n)}var d=e("fs"),g=e("path"),m=e("http"),v=e("https"),b=e("url"),y=e("../images/url-rewriter"),w=e("../utils/splitter.js"),_=e("../utils/object.js").override,x=/\/\*# sourceMappingURL=(\S+) \*\//,k=/^(https?:)?\/\//;n.prototype.process=function(e,t){var n=this.outerContext.options.root||r.cwd();return t=_(t,{baseRelativeTo:this.outerContext.options.relativeTo||n,debug:this.outerContext.options.debug,done:[],errors:this.outerContext.errors,left:[],inliner:this.outerContext.options.inliner,rebase:this.outerContext.options.rebase,relativeTo:this.outerContext.options.relativeTo||n,root:n,sourceTracker:this.outerContext.sourceTracker,warnings:this.outerContext.warnings,visited:[]}),i(e,t)},t.exports=n}).call(this,e("_process"))},{"../images/url-rewriter":7,"../utils/object.js":33,"../utils/splitter.js":38,_process:56,fs:40,http:47,https:51,path:55,url:74}],9:[function(e,t,r){function n(e){var t=[];if("selector"==e.kind)for(var r=!/[\.\+#>~\s]/.test(e.metadata.selector),o=0,a=e.metadata.bodiesList.length;a>o;o++){var s=e.metadata.bodiesList[o];if(0!==s.indexOf("__ESCAPED")){var u=s.indexOf(":"),l=s.substring(0,u);if(l){var c=i(l);t.push([l,s.substring(u+1),c,s,e.metadata.selectorsList,r])}}}else if("block"==e.kind)for(var h=0,f=e.body.length;f>h;h++)t=t.concat(n(e.body[h]));return t}function i(e){return"list-style"==e?e:e.indexOf("-radius")>0?"border-radius":0===e.indexOf("border-")?e.match(/border\-\w+/)[0]:0===e.indexOf("text-")?e:e.replace(/^\-\w+\-/,"").match(/([a-zA-Z]+)/)[0].toLowerCase()}t.exports=n},{}],10:[function(e,t,r){function n(e){return e.value}var i=e("./processable"),o=e("./override-compactor"),a=e("./shorthand-compactor");t.exports=function(e,t){var r={"animation-delay":["animation"],"animation-direction":["animation"],"animation-duration":["animation"],"animation-fill-mode":["animation"],"animation-iteration-count":["animation"],"animation-name":["animation"],"animation-play-state":["animation"],"animation-timing-function":["animation"],"-moz-animation-delay":["-moz-animation"],"-moz-animation-direction":["-moz-animation"],"-moz-animation-duration":["-moz-animation"],"-moz-animation-fill-mode":["-moz-animation"],"-moz-animation-iteration-count":["-moz-animation"],"-moz-animation-name":["-moz-animation"],"-moz-animation-play-state":["-moz-animation"],"-moz-animation-timing-function":["-moz-animation"],"-o-animation-delay":["-o-animation"],"-o-animation-direction":["-o-animation"],"-o-animation-duration":["-o-animation"],"-o-animation-fill-mode":["-o-animation"],"-o-animation-iteration-count":["-o-animation"],"-o-animation-name":["-o-animation"],"-o-animation-play-state":["-o-animation"],"-o-animation-timing-function":["-o-animation"],"-webkit-animation-delay":["-webkit-animation"],"-webkit-animation-direction":["-webkit-animation"],"-webkit-animation-duration":["-webkit-animation"],"-webkit-animation-fill-mode":["-webkit-animation"],"-webkit-animation-iteration-count":["-webkit-animation"],"-webkit-animation-name":["-webkit-animation"],"-webkit-animation-play-state":["-webkit-animation"],"-webkit-animation-timing-function":["-webkit-animation"],"background-clip":["background"],"background-origin":["background"],"border-color":["border"],"border-style":["border"],"border-width":["border"],"border-bottom":["border"],"border-bottom-color":["border-bottom","border-color","border"],"border-bottom-style":["border-bottom","border-style","border"],"border-bottom-width":["border-bottom","border-width","border"],"border-left":["border"],"border-left-color":["border-left","border-color","border"],"border-left-style":["border-left","border-style","border"],"border-left-width":["border-left","border-width","border"],"border-right":["border"],"border-right-color":["border-right","border-color","border"],"border-right-style":["border-right","border-style","border"],"border-right-width":["border-right","border-width","border"],"border-top":["border"],"border-top-color":["border-top","border-color","border"],"border-top-style":["border-top","border-style","border"],"border-top-width":["border-top","border-width","border"],"font-family":["font"],"font-size":["font"],"font-style":["font"],"font-variant":["font"],"font-weight":["font"],"margin-bottom":["margin"],"margin-left":["margin"],"margin-right":["margin"],"margin-top":["margin"],"padding-bottom":["padding"],"padding-left":["padding"],"padding-right":["padding"],"padding-top":["padding"],"transition-delay":["transition"],"transition-duration":["transition"],"transition-property":["transition"],"transition-timing-function":["transition"],"-moz-transition-delay":["-moz-transition"],"-moz-transition-duration":["-moz-transition"],"-moz-transition-property":["-moz-transition"],"-moz-transition-timing-function":["-moz-transition"],"-o-transition-delay":["-o-transition"],"-o-transition-duration":["-o-transition"],"-o-transition-property":["-o-transition"],"-o-transition-timing-function":["-o-transition"],"-webkit-transition-delay":["-webkit-transition"],"-webkit-transition-duration":["-webkit-transition"],"-webkit-transition-property":["-webkit-transition"],"-webkit-transition-timing-function":["-webkit-transition"]},s=e.compatibility,u=e.aggressiveMerging,l=e.shorthandCompacting,c="\\9",h=i.processable(s),f={};for(var p in r)for(var d=0;do;o++){var s=e[o],u=s.value.indexOf(":"),l=s.value.substring(0,u),h=s.value.substring(u+1);""!==h?i.push([l,h,s.value.indexOf("!important")>-1,s.value.indexOf(c,u+1)===s.value.length-c.length,s.metadata]):t.warnings.push("Empty property '"+l+"' inside '"+r.map(n).join(",")+"' selector. Ignoring.")}return i},b=function(e,t){var n=[],i=[],o=null,a={},l=function(e,t){for(var r=f[e],o=0,a=r.length;a>o;o++)for(var s=0;s-1};e:for(var p=0,d=e.length;d>p;p++){var g=e[p],m=g[0],v=g[1],b=g[2],y=g[3],w=!("-ms-filter"!=m&&"filter"!=m||"background"!=o&&"background-image"!=o)?o:m,_=0;if(!y||s.properties.ieSuffixHack){if(u&&""!==m&&w!=o||c(p))for(;;){if(_=i.indexOf(w,_),-1==_)break;var x=n[_],k=x[2],S=x[3];if(k&&!b)continue e;if(s.properties.ieSuffixHack&&!S&&y)break;var O=h[w];if(!y&&!S&&O&&O.canOverride&&!O.canOverride(e[_][1],v))break;n.splice(_,1),i.splice(_,1)}n.push(g),i.push(w),a[w]&&l(w,b);for(var E=0,C=r[w]||[],A=C.length;A>E;E++)a[C[E]]=!0;o=w}}return n},y=function(e){for(var t=[],r=[],n=!1,o=0,a=e.length;a>o;o++){!n&&i.implementedFor.test(e[o][0])&&(n=!0);var s=e[o][0]||0!==e[o][1].indexOf("__ESCAPED_")?e[o][0]+":"+e[o][1]:e[o][1];t.push({value:s,metadata:e[o][4]}),r.push(s)}return{compactFurther:n,list:r,tokenized:t}},w=function(e){var t=i.Token,r=t.tokenize(e);return r=o.compactOverrides(r,h,t,s),r=a.compactShorthands(r,!1,h,t),r=a.compactShorthands(r,!0,h,t),t.detokenize(r)};return{process:function(e,t,r,n){var i=v(t,e),o=b(i,r),a=y(o);return l&&n&&a.compactFurther?w(a.tokenized):a}}}},{"./override-compactor":11,"./processable":12,"./shorthand-compactor":14}],11:[function(e,t,r){var n=e("./validator");t.exports=function(){var e=function(e,t){return e===t},t=function(t,r,i,o){function a(e,t){var r=e.clone();return r.isDirty=!0,r.isShorthand=!0,r.components=[],e.components.forEach(function(e){var n=e.clone();e.prop==t.prop&&(n.value=t.value),r.components.push(n)}),i.getDetokenizedLength([e,t])>=i.getDetokenizedLength([r])}var s,u,l,c,h,f,p,d,g,m=function(e){return e.prop===l.prop},v=function(e){return e.prop===c.prop};for(s=t,h=0;(f=s.length-1-h)>=0;h++){l=s[f],u=r[l.prop]&&r[l.prop].canOverride||e,d=s,s=[];for(var b=!1,y=d.length,w=0;y>w;w++)if(c=d[w],c!==l||b)if(w>f&&!l.isImportant)s.push(c);else if(w>f&&c.isImportant&&l.isImportant&&c.prop!=l.prop&&c.isComponentOf(l))s.push(c);else if(!c.isImportant||l.isImportant)if(l.isShorthand&&!c.isShorthand&&c.isComponentOf(l))g=l.components.filter(v)[0],u=r[c.prop]&&r[c.prop].canOverride||e,u(c.value,g.value)||s.push(c);else if(c.isShorthand&&!l.isShorthand&&l.isComponentOf(c)){if(g=c.components.filter(m)[0],u(g.value,l.value)){var _=!o.properties.backgroundSizeMerging&&l.prop.indexOf("background-size")>-1||r[l.prop].nonMergeableValue&&r[l.prop].nonMergeableValue==l.value;if(_){s.push(c);continue}if(!o.properties.merging){var x=!1;for(p=0;p4)return[t];i.lengtho;o++)t.value=r[o],i.push(e(t));t.value=r.join(",");for(var s=0,u=i[0].length;u>s;s++){for(var l=0,c=i.length,h=[];c>l;l++)h.push(i[l][s].value);i[0][s].value=h.join(",")}return i[0]}},o.background=function(e){var t=f.makeDefaults(["background-image","background-position","background-size","background-repeat","background-attachment","background-origin","background-clip","background-color"],e.isImportant),i=t[0],o=t[1],a=t[2],u=t[3],l=t[4],c=t[5],h=t[6],p=t[7],d=!1,g=!1,m=!1,v=!1;if("inherit"===e.value)return p.value=i.value=u.value=o.value=a.value=l.value=c.value=h.value="inherit",t;var b=new n(" ").split(e.value);if(0===b.length)return t;for(var y=b.length-1;y>=0;y--){var w=b[y];if(r.isValidBackgroundAttachment(w))l.value=w;else if(r.isValidBackgroundBox(w))g?(c.value=w,m=!0):(h.value=w,g=!0);else if(r.isValidBackgroundRepeat(w))v?u.value=w+" "+u.value:(u.value=w,v=!0);else if(r.isValidBackgroundPositionPart(w)||r.isValidBackgroundSizePart(w))if(y>0){var _=b[y-1];if(_.indexOf("/")>0){var x=new n("/").split(_);a.value=x.pop()+" "+w,b[y-1]=x.pop()}else y>1&&"/"==b[y-2]?(a.value=_+" "+w,y-=2):"/"==b[y-1]?a.value=w:(o.value=w+(d?" "+o.value:""),d=!0)}else o.value=w+(d?" "+o.value:""),d=!0;else if(r.isValidBackgroundPositionAndSize(w)){var k=new n("/").split(w);a.value=k.pop(),o.value=k.pop()}else p.value!=s[p.prop].defaultValue&&"none"!=p.value||!r.isValidColor(w)?(r.isValidUrl(w)||r.isValidFunction(w))&&(i.value=w):p.value=w}return g&&!m&&(c.value=h.value),t},o.listStyle=function(e){var t=f.makeDefaults(["list-style-type","list-style-position","list-style-image"],e.isImportant),i=t[0],o=t[1],a=t[2];if("inherit"===e.value)return i.value=o.value=a.value="inherit",t;var s=new n(" ").split(e.value),u=0;return u=1&&(c=h.filter(function(e){return"inherit"!==e&&r.isValidOutlineWidth(e)}),c.length&&(l.value=c[0],h.splice(h.indexOf(c[0]),1))),h.length>=1&&(c=h.filter(function(e){return"inherit"!==e&&r.isValidOutlineStyle(e)}),c.length&&(u.value=c[0],h.splice(h.indexOf(c[0]),1))),h.length>=1&&(c=h.filter(function(e){return r.isValidOutlineColor(e)}),c.length&&(s.value=c[0],h.splice(h.indexOf(c[0]),1))),a)},o.outline=function(e){return o._widthStyleColor(e,"outline",["color","style","width"])},o.border=function(e){return o._widthStyleColor(e,"border",["width","style","color"])},o.borderRadius=function(e){var t=e.value.split("/");if(1==t.length)return o.fourBySpaces(e);var r=e.clone(),n=e.clone();r.value=t[0],n.value=t[1];for(var i=o.fourBySpaces(r),a=o.fourBySpaces(n),s=0;4>s;s++)i[s].value=[i[s].value,a[s].value];return i};var a={fourUnits:function(e,t,r){t[0].isIrrelevant&&(t[0].value=t[2].value),t[2].isIrrelevant&&(t[2].value=t[0].value),t[1].isIrrelevant&&(t[1].value=t[3].value),t[3].isIrrelevant&&(t[3].value=t[1].value),t[0].isIrrelevant&&t[2].isIrrelevant&&(t[0].value=t[2].value=t[1].value===t[3].value?t[1].value:"0"),t[1].isIrrelevant&&t[3].isIrrelevant&&(t[1].value=t[3].value=t[0].value===t[2].value?t[0].value:"0");var n=new f(e,t[0].value,r);return n.granularValues=[],n.granularValues[t[0].prop]=t[0].value,n.granularValues[t[1].prop]=t[1].value,n.granularValues[t[2].prop]=t[2].value,n.granularValues[t[3].prop]=t[3].value,t[0].isIrrelevant&&t[1].isIrrelevant&&t[2].isIrrelevant&&t[3].isIrrelevant?(n.value=s[e].shortestValue||s[e].defaultValue,n):t[0].value===t[1].value&&t[0].value===t[2].value&&t[0].value===t[3].value?n:(n.value+=" "+t[1].value,t[0].value===t[2].value&&t[1].value===t[3].value?n:(n.value+=" "+t[2].value,t[1].value===t[3].value?n:(n.value+=" "+t[3].value,n)))},bySpacesOmitDefaults:function(e,t,r,n){var i=new f(e,"",r),o=t.filter(function(e){return e.isIrrelevant});if(o.length===t.length)return i.isIrrelevant=!0,i.value=s[e].shortestValue||s[e].defaultValue,i;for(var a=s[e].defaultValue,u=0;uu;u++){s.push([]);for(var l=0;lu;u++){for(var p=[],d=0,g=s[u].length;g>d;d++){var m=r[d].clone();m.value=s[u][d],p.push(m)}var v={partsCount:a,position:u},b=e(t,p,i,v);f.push(b.value),h||(h=b)}return h.value=f.join(","),h}},takeCareOfInherit:function(e){return function(t,r,n,i){var o,a=[],s=[],u=[];for(o=0;o0){var c=[new f(t,"inherit",n)].concat(s),h=[e(t,u,n,i)].concat(a),p=f.getDetokenizedLength(c),d=f.getDetokenizedLength(h);return d>p?c:h}return e(t,r,n,i)}},borderRadius:function(e,t,r){for(var n=[],i=[],o=0,s=t.length;s>o;o++){var u=t[o],l=u.clone();i.push(l),Array.isArray(u.value)&&(u.value.length>1&&n.push({prop:u.prop,value:u.value[1],isImportant:u.isImportant}),l.value=u.value[0])}var c=a.takeCareOfInherit(a.fourUnits)(e,i,r);if(n.length>0){var h=a.takeCareOfInherit(a.fourUnits)(e,n,r);c.value!=h.value&&(c.value+="/"+h.value)}return c}},s={color:{canOverride:i.color,defaultValue:"transparent",shortestValue:"red"},background:{components:["background-image","background-position","background-size","background-repeat","background-attachment","background-origin","background-clip","background-color"],breakUp:o.commaSeparatedMulitpleValues(o.background),putTogether:a.commaSeparatedMulitpleValues(a.takeCareOfInherit(a.bySpacesOmitDefaults)),defaultValue:"0 0",shortestValue:"0"},"background-clip":{canOverride:i.always,defaultValue:"border-box",shortestValue:"border-box",shorthandFollows:"background-origin",mergeWithPrevious:!0},"background-color":{canOverride:i.color,defaultValue:"transparent",multiValueLastOnly:!0,nonMergeableValue:"none",shortestValue:"red"},"background-image":{canOverride:i.backgroundImage,defaultValue:"none"},"background-origin":{canOverride:i.always,defaultValue:"padding-box",shortestValue:"border-box"},"background-repeat":{canOverride:i.always,defaultValue:"repeat"},"background-position":{canOverride:i.always,defaultValue:"0 0",shortestValue:"0" -},"background-size":{canOverride:i.always,defaultValue:"auto",shortestValue:"0 0",prefixShorthandValueWith:"/",shorthandFollows:"background-position"},"background-attachment":{canOverride:i.always,defaultValue:"scroll"},border:{breakUp:o.border,canOverride:i.border,components:["border-width","border-style","border-color"],defaultValue:"none",putTogether:a.takeCareOfInherit(a.bySpacesOmitDefaults)},"border-color":{canOverride:i.color,defaultValue:"none"},"border-style":{canOverride:i.always,defaultValue:"none"},"border-width":{canOverride:i.unit,defaultValue:"medium",shortestValue:"0"},"list-style":{components:["list-style-type","list-style-position","list-style-image"],canOverride:i.always,breakUp:o.listStyle,putTogether:a.takeCareOfInherit(a.bySpacesOmitDefaults),defaultValue:"outside",shortestValue:"none"},"list-style-type":{canOverride:i.always,shortestValue:"none",defaultValue:"__hack"},"list-style-position":{canOverride:i.always,defaultValue:"outside",shortestValue:"inside"},"list-style-image":{canOverride:i.always,defaultValue:"none"},outline:{components:["outline-color","outline-style","outline-width"],breakUp:o.outline,putTogether:a.takeCareOfInherit(a.bySpacesOmitDefaults),defaultValue:"0"},"outline-color":{canOverride:i.color,defaultValue:"invert",shortestValue:"red"},"outline-style":{canOverride:i.always,defaultValue:"none"},"outline-width":{canOverride:i.unit,defaultValue:"medium",shortestValue:"0"},"-moz-transform":{canOverride:i.sameFunctionOrValue},"-ms-transform":{canOverride:i.sameFunctionOrValue},"-webkit-transform":{canOverride:i.sameFunctionOrValue},transform:{canOverride:i.sameFunctionOrValue}},u=function(e,t,r){r=r||{},s[e]={components:t,breakUp:r.breakUp||o.fourBySpaces,putTogether:r.putTogether||a.takeCareOfInherit(a.fourUnits),defaultValue:r.defaultValue||"0",shortestValue:r.shortestValue};for(var n=0;n=0;r--)for(var n=e.length-1;n>=0;n--)if(!i(e[n],t[r]))return!1;return!0}function i(e,t){var r=e[0],n=e[1],i=e[2],s=e[4],u=e[5],l=t[0],c=t[1],h=t[2],f=t[4],p=t[5];return"font"==r&&"line-height"==l||"font"==l&&"line-height"==r?!1:a.test(r)&&a.test(l)?!1:i!=h?!0:r==l&&i==h&&n==c?!0:r!=l&&i==h&&r!=i&&l!=h?!0:r!=l&&i==h&&n==c?!0:p&&u&&o(f,s)?!0:!1}function o(e,t){for(var r=0,n=e.length;n>r;r++)if(t.indexOf(e[r])>-1)return!1;return!0}var a=/align\-items|box\-align|box\-pack|flex|justify/;t.exports={canReorder:n,canReorderSingle:i}},{}],14:[function(e,t,r){t.exports=function(){var e=function(e){return"__hack"===e.value},t=function(t,r,n,i){var o,a,s={},u=function(e,t,r){var i,o={};if(!r&&s[e])for(var a=0;aa;a++){var p=n[o].components[a];if(s[o].found[p]&&s[o].found[p].length){var d=s[o].found[p][0];h.push(d),d.isReal!==!1&&f.push(d)}else{if(!s[o].lastShorthand)return!1;var g=s[o].lastShorthand.components[a].clone(r);h.push(g)}}if(0===f.length)return!1;if(f.length===c){for(var m,v=!0,b=!0,y=0;y=0){var x=w.value.substring(0,_);m?b=b&&x===m:m=x}}if(!v||!b)return!1}var k=n[o].putTogether(o,h,r);k instanceof Array||(k=[k]);var S=i.getDetokenizedLength(k),O=i.getDetokenizedLength(f);if(f.length===c||O>S||h.some(e)){for(k[0].isShorthand=!0,k[0].components=n[o].breakUp(k[0]),a=0;a=0:!1},t.prototype.clone=function(e){var r=new t(this.prop,this.value,"undefined"!=typeof e?e:this.isImportant);return r},t.prototype.cloneIrrelevant=function(e){var r=t.makeDefault(this.prop,"undefined"!=typeof e?e:this.isImportant);return r.isIrrelevant=!0,r},t.makeDefaults=function(e,r){return e.map(function(e){return new t(e,r)})},t.tokenizeOne=function(n){var i=n.value.indexOf(":");if(0>i)return new t("",n.value);var o=n.value.substr(0,i).trim(),a=n.value.substr(i+1).trim(),s=!1,u=a.indexOf(r);u>=1&&u===a.length-r.length&&(a=a.substr(0,u).trim(),s=!0);var l=new t(o,a,s);return e[o]&&e[o].isShorthand&&(l.isShorthand=!0,l.components=e[o].breakUp(l),l.isDirty=!0),l.metadata=n.metadata,l},t.tokenize=function(e){var r=e.map(t.tokenizeOne);return r},t.detokenize=function(t){t instanceof Array||(t=[t]);for(var n=[],i=[],o=0;o0&&0===e.indexOf("rgba(")&&e.indexOf(")")===e.length-1},isValidHslaColor:function(e){return e=e.split(" ").join(""),e.length>0&&0===e.indexOf("hsla(")&&e.indexOf(")")===e.length-1},isValidNamedColor:function(e){return"auto"!==e&&("transparent"===e||"inherit"===e||/^[a-zA-Z]+$/.test(e))},isValidVariable:function(e){return g.test(e)},isValidColor:function(e){return A.isValidNamedColor(e)||A.isValidHexColor(e)||A.isValidRgbaColor(e)||A.isValidHslaColor(e)||A.isValidVariable(e)},isValidUrl:function(e){return 0===e.indexOf("__ESCAPED_URL_CLEAN_CSS")},isValidUnit:function(e){return y.test(e)},isValidUnitWithoutFunction:function(e){return v.test(e)},isValidAndCompatibleUnit:function(e){return t.test(e)},isValidAndCompatibleUnitWithoutFunction:function(t){return e.test(t)},isValidFunctionWithoutVendorPrefix:function(e){return p.test(e)},isValidFunctionWithVendorPrefix:function(e){return d.test(e)},isValidFunction:function(e){return m.test(e)},isValidBackgroundRepeat:function(e){return w.indexOf(e)>=0||A.isValidVariable(e)},isValidBackgroundAttachment:function(e){return _.indexOf(e)>=0||A.isValidVariable(e)},isValidBackgroundBox:function(e){return S.indexOf(e)>=0||A.isValidVariable(e)},isValidBackgroundPositionPart:function(e){return x.indexOf(e)>=0||b.test(e)||A.isValidVariable(e)},isValidBackgroundPosition:function(e){if("inherit"===e)return!0;for(var t=e.split(" "),r=0,n=t.length;n>r;r++)if(""!==t[r]&&!A.isValidBackgroundPositionPart(t[r])&&!A.isValidVariable(t[r]))return!1;return!0},isValidBackgroundSizePart:function(e){return k.indexOf(e)>=0||v.test(e)||A.isValidVariable(e)},isValidBackgroundPositionAndSize:function(e){if(e.indexOf("/")<0)return!1;var t=new n("/").split(e);return A.isValidBackgroundSizePart(t.pop())&&A.isValidBackgroundPositionPart(t.pop())},isValidListStyleType:function(e){return O.indexOf(e)>=0||A.isValidVariable(e)},isValidListStylePosition:function(e){return E.indexOf(e)>=0||A.isValidVariable(e)},isValidOutlineColor:function(e){return"invert"===e||A.isValidColor(e)||A.isValidVendorPrefixedValue(e)},isValidOutlineStyle:function(e){return C.indexOf(e)>=0||A.isValidVariable(e)},isValidOutlineWidth:function(e){return A.isValidUnit(e)||r.indexOf(e)>=0||A.isValidVariable(e)},isValidVendorPrefixedValue:function(e){return/^-([A-Za-z0-9]|-)*$/gi.test(e)},areSameFunction:function(e,t){if(!A.isValidFunction(e)||!A.isValidFunction(t))return!1;var r=e.substring(0,e.indexOf("(")),n=t.substring(0,t.indexOf("("));return r===n}};return A}()},{"../utils/splitter":38}],17:[function(e,t,r){function n(e,t){this.options=e||{},this.context=t||{}}var i=e("./tokenizer"),o=e("./optimizers/simple"),a=e("./optimizers/advanced");n.prototype.process=function(e,t){var r=new i(this.context,this.options.advanced,this.options.sourceMap).toTokens(e);return new o(this.options).optimize(r),this.options.advanced&&new a(this.options,this.context).optimize(r),t.toString(r)},t.exports=n},{"./optimizers/advanced":18,"./optimizers/simple":20,"./tokenizer":23}],18:[function(e,t,r){function n(e,t){this.options=e,this.minificationsMade=[],this.propertyOptimizer=new l(this.options,t)}function i(e,t){e.body=t.tokenized,e.metadata.body=t.list.join(";"),e.metadata.bodiesList=t.list}function o(e,t){e.value=t.tokenized,e.metadata.selector=t.list.join(","),e.metadata.selectorsList=t.list}function a(e){return/\.|\*| :/.test(e)}function s(e,t){return e>t}function u(e,t){for(var r=0,n=e.length;n>r;r++){var o=e[r];"selector"==o.kind?i(o,t.process(o.value,o.body,!1,!0)):"block"==o.kind&&u(o.body,t)}}var l=e("../../properties/optimizer"),c=e("./clean-up"),h=e("../../properties/extractor"),f=e("../../properties/reorderable").canReorder,p=e("../../properties/reorderable").canReorderSingle;n.prototype.isSpecial=function(e){return this.options.compatibility.selectors.special.test(e)},n.prototype.removeDuplicates=function(e){for(var t={},r=[],n=0,i=e.length;i>n;n++){var o=e[n];if("selector"==o.kind){var a=o.metadata.body+"@"+o.metadata.selector,s=t[a];s?(r.push(s[0]),s.unshift(n)):t[a]=[n]}}r=r.sort(function(e,t){return e>t?1:-1});for(var u=0,l=r.length;l>u;u++)e.splice(r[u]-u,1);this.minificationsMade.unshift(r.length>0)},n.prototype.mergeAdjacent=function(e){for(var t=[],r={selector:null,body:null},n=this.options.compatibility.selectors.adjacentSpace,a=0,s=e.length;s>a;a++){var u=e[a];if("selector"==u.kind)if("selector"==r.kind&&u.metadata.selector==r.metadata.selector){var l=[r.body.length];i(r,this.propertyOptimizer.process(u.value,r.body.concat(u.body),l,!0)),t.push(a)}else!r.body||u.metadata.body!=r.metadata.body||this.isSpecial(u.metadata.selector)||this.isSpecial(r.metadata.selector)?r=u:(o(r,c.selectors(r.value.concat(u.value),!1,n)),t.push(a));else r={selector:null,body:null}}for(var h=0,f=t.length;f>h;h++)e.splice(t[h]-h,1);this.minificationsMade.unshift(t.length>0)},n.prototype.reduceNonAdjacent=function(e){for(var t={},r=[],n=e.length-1;n>=0;n--){var i=e[n];if("selector"==i.kind)for(var o=i.value.length>1&&!this.isSpecial(i.metadata.selector),a=o?[i.metadata.selector].concat(i.metadata.selectorsList):[i.metadata.selector],s=0,u=a.length;u>s;s++){var l=a[s];t[l]?r.push(l):t[l]=[],t[l].push({where:n,list:i.metadata.selectorsList,isPartial:o&&s>0,isComplex:o&&0===s})}}var c=this.reduceSimpleNonAdjacentCases(e,r,t),h=this.reduceComplexNonAdjacentCases(e,t);this.minificationsMade.unshift(c||h)},n.prototype.reduceSimpleNonAdjacentCases=function(e,t,r){function n(e,t){return c[e].isPartial&&0===t.length}function o(e,t,r,n){c[r-n-1].isPartial||(i(e,t),a=!0)}for(var a=!1,s=0,u=t.length;u>s;s++){var l=t[s],c=r[l];this.reduceSelector(e,l,c,{filterOut:n,callback:o})}return a},n.prototype.reduceComplexNonAdjacentCases=function(e,t){function r(e){return o.data[e].wheref;f++){var d=h[f],g=t[d];if(g.length<2)continue e;if(o.data=g,this.reduceSelector(e,d,g,{filterOut:r,callback:n}),c[c.length-1].list.join(";")!=c[0].list.join(";"))continue e}l.body=c[0].tokenized,i=!0}}return i},n.prototype.reduceSelector=function(e,t,r,n){for(var i=[],o=[],a=[],s=[],u=r.length-1,l=0;u>=0;u--)if(!n.filterOut(u,i)){var c=r[u].where,h=e[c];i=i.concat(h.body),o.push(h.metadata.bodiesList),s.push(c)}for(u=0,l=o.length;l>u;u++)o[u].length>0&&a.push((a[u-1]||0)+o[u].length);for(var f=this.propertyOptimizer.process(t,i,a,!1),p=s.length,d=f.tokenized.length-1,g=p-1;g>=0;)if((0===g||f.tokenized[d]&&o[g].indexOf(f.tokenized[d].value)>-1)&&d>-1)d--;else{var m={list:f.list.splice(d+1),tokenized:f.tokenized.splice(d+1)};n.callback(e[s[g]],m,p,g),g--}},n.prototype.mergeNonAdjacentBySelector=function(e){var t,r={},n=[];for(t=e.length-1;t>=0;t--)if("selector"==e[t].kind&&0!==e[t].body.length){var o=e[t].metadata.selector;r[o]=[t].concat(r[o]||[]),2==r[o].length&&n.push(o)}for(t=n.length-1;t>=0;t--){var a=r[n[t]];e:for(var s=a.length-1;s>0;s--){var u=a[s-1],l=e[u],c=a[s],p=e[c];t:for(var d=1;d>=-1;d-=2){for(var g=1==d,m=g?u+1:c-1,v=g?c:u,b=g?1:-1,y=g?l:p,w=g?p:l,_=h(y);m!=v;){var x=h(e[m]);m+=b;var k=g?f(_,x):f(x,_);if(!k&&!g)continue e;if(!k&&g)continue t}var S=g?[w.body.length]:[y.body.length],O=g?y.body.concat(w.body):w.body.concat(y.body),E=this.propertyOptimizer.process(w.value,O,S,!0);i(w,E),i(y,{tokenized:[],list:[]})}}}},n.prototype.mergeNonAdjacentByBody=function(e){for(var t={},r=this.options.compatibility.selectors.adjacentSpace,n=e.length-1;n>=0;n--){var s=e[n];if("selector"==s.kind){s.body.length>0&&a(s.metadata.selector)&&(t={});var u=t[s.metadata.body];!u||this.isSpecial(s.metadata.selector)||this.isSpecial(u.metadata.selector)||(o(s,c.selectors(u.value.concat(s.value),!1,r)),i(u,{tokenized:[],list:[]}),t[s.metadata.body]=null),t[s.metadata.body]=s}}},n.prototype.restructure=function(e){function t(e,t,i){for(var o=i.length-1;o>=0;o--){var a=i[o][0],s=r(t,a);if(x[s].length>1&&y(e,x[s])){n(s);break}}}function r(e,t){var r=a(t);return x[r]=x[r]||[],x[r].push([e,t]),r}function n(e){var t,r=e.split(E),n=[];for(var i in x){var o=i.split(E);for(t=o.length-1;t>=0;t--)if(r.indexOf(o[t])>-1){n.push(i);break}}for(t=n.length-1;t>=0;t--)delete x[n[t]]}function a(e){for(var t=[],r=0,n=e.length;n>r;r++)t.push(e[r].metadata.selector);return t.join(E)}function u(e){for(var t=[],r=[],n=e.length-1;n>=0;n--)S.isSpecial(e[n].metadata.selector)||(r.unshift(e[n]),e[n].body.length>0&&-1==t.indexOf(e[n])&&t.push(e[n]));return t.length>1?r:[]}function l(e,r){var n=r[0],i=r[1],o=r[3],a=n.length+i.length+1,s=[],l=[],h=u(w[o]);if(!(h.length<2)){var f=d(h,a,1),p=f[0];if(p[1]>0)return t(e,r,f);for(var g=p[0].length-1;g>=0;g--)s=p[0][g].value.concat(s),l.unshift(p[0][g]);s=c.selectorDuplicates(s),v(e,[r],s,l)}}function f(e,t){return e[1]>t[1]}function d(e,t,r){var n=g(e,t,r,O-1);return n.sort(f)}function g(e,t,r,n){var i=[[e,m(e,t,r)]];if(e.length>2&&n>0)for(var o=e.length-1;o>=0;o--){var a=Array.prototype.slice.call(e,0);a.splice(o,1),i=i.concat(g(a,t,r,n-1))}return i}function m(e,t,r){for(var n=0,i=e.length-1;i>=0;i--)n+=e[i].body.length>r?e[i].metadata.selector.length:-1;return n-(e.length-1)*t+1}function v(t,r,n,a){var s,u,l,c,h={};for(s=a.length-1;s>=0;s--){var f=a[s];for(u=f.body.length-1;u>=0;u--)for(l=0,c=r.length;c>l;l++){var p=r[l];if(f.body[u].value===p[3]){h[p[3]]=f.body[u].metadata,f.body.splice(u,1),f.metadata.bodiesList.splice(u,1),f.metadata.body=f.metadata.bodiesList.join(";");break}}}var d={kind:"selector",metadata:{}},g={tokenized:[],list:[]};for(s=r.length-1;s>=0;s--)g.tokenized.push({value:r[s][3]}),g.list.push(r[s][3]);for(o(d,n),i(d,g),s=r.length-1;s>=0;s--)d.body[s].metadata=h[r[s][3]];e.splice(t,0,d)}function b(e,t){var r=t[3];w[r]&&w[r].length>1&&l(e,t)}function y(e,t){for(var r,n=0,i=[],o=t.length-1;o>=0;o--){r=t[o][0];var a=r[3];n+=a.length+(o>0?1:0),i.push(r)}var s=t[0][1],u=d(s,n,i.length)[0];if(u[1]>0)return!1;var l=[],h=[];for(o=u[0].length-1;o>=0;o--)l=u[0][o].value.concat(l),h.unshift(u[0][o]);for(l=c.selectorDuplicates(l),v(e,i,l,h),o=i.length-1;o>=0;o--){r=i[o];var f=_.indexOf(r);delete w[r[3]],f>-1&&-1==k.indexOf(f)&&k.push(f)}return!0}for(var w={},_=[],x={},k=[],S=this,O=2,E="%",C=e.length-1;C>=0;C--){var A,M,L,R,j=e[C];if("selector"==j.kind)A=!0;else{if("block"!=j.kind||j.isFlatBlock)continue;A=!1}var I=_.length,T=h(j);k=[];var B=[];for(M=T.length-1;M>=0;M--)for(L=M-1;L>=0;L--)if(!p(T[M],T[L])){B.push(M);break}for(M=0,R=T.length;R>M;M++){var V=T[M],P=!1;for(L=0;I>L;L++){var U=_[L];-1!=k.indexOf(L)||p(V,U)||(b(C+1,U),k.push(L),delete w[U[3]]),P||(P=V[0]==U[0]&&V[1]==U[1])}if(A&&!(B.indexOf(M)>-1)){var z=V[3];w[z]=w[z]||[],w[z].push(j),P||_.push(V)}}for(k=k.sort(s),M=0,R=k.length;R>M;M++)_.splice(k[M]-M,1)}for(var D=e[0]&&"at-rule"==e[0].kind&&0===e[0].value.indexOf("@charset")?1:0;D=0;n--){var i=e[n];if("block"==i.kind&&i.isFlatBlock!==!0){var o=t[i.value];o||(o=[],t[i.value]=o),o.push(n)}}for(var a in t){var s=t[a];e:for(var u=s.length-1;u>0;u--){for(var l=e[s[u]],c=e[s[u-1]],p=h(l),d=s[u]+1;d=0;o--)t(i[o].body)}var r=this;t(e,!0)},t.exports=n},{"../../properties/extractor":9,"../../properties/optimizer":10,"../../properties/reorderable":13,"./clean-up":19}],19:[function(e,t,r){function n(e,t){return"["+t.replace(/ /g,"")+"]"}function i(e,t){return e.value>t.value?1:-1}var o={selectors:function(e,t,r){for(var o=[],a=[],s=0,u=e.length;u>s;s++){var l=e[s],c=l.value.replace(/\s+/g," ").replace(/ ?, ?/g,",").replace(/\s*([>\+\~])\s*/g,"$1").trim();r&&c.indexOf("nav")>0&&(c=c.replace(/\+nav(\S|$)/,"+ nav$1")),(!t||-1==c.indexOf("*+html ")&&-1==c.indexOf("*:first-child+html "))&&(c.indexOf("*")>-1&&(c=c.replace(/\*([:#\.\[])/g,"$1").replace(/^(\:first\-child)?\+html/,"*$1+html")),c.indexOf("[")>-1&&(c=c.replace(/\[([^\]]+)\]/g,n)),-1==o.indexOf(c)&&(o.push(c),l.value=c,a.push(l)))}return{list:o.sort(),tokenized:a.sort(i)}},selectorDuplicates:function(e){for(var t=[],r=[],n=0,o=e.length;o>n;n++){var a=e[n];-1==t.indexOf(a.value)&&(t.push(a.value),r.push(a))}return{list:t.sort(),tokenized:r.sort(i)}},block:function(e){return e.replace(/\s+/g," ").replace(/(,|:|\() /g,"$1").replace(/ ?\) ?/g,")")},atRule:function(e){return e.replace(/\s+/g," ").trim()}};t.exports=o},{}],20:[function(e,t,r){function n(e){this.options=e;var t=["px","em","ex","cm","mm","in","pt","pc","%"];e.compatibility.units.rem&&t.push("rem"),e.unitsRegexp=new RegExp("(^|\\s|\\(|,)0(?:"+t.join("|")+")","g"),e.precision={},e.precision.value=void 0===e.roundingPrecision?y:e.roundingPrecision,e.precision.multiplier=Math.pow(10,e.precision.value),e.precision.regexp=new RegExp("(\\d*\\.\\d{"+(e.precision.value+1)+",})px","g"),e.updateMetadata=this.options.advanced}function i(e){for(var t=new d(",").split(e),r=0,n=t.length;n>r;r++)if("-"==t[r][0]&&parseFloat(t[r])<0)return!0;return!1}function o(e,t){return-1==t.indexOf("0")?t:(t.indexOf("-")>-1&&(t=t.replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2").replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2")),t.replace(/(^|\s)0+([1-9])/g,"$1$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/\.([1-9]*)0+(\D|$)/g,function(e,t,r){return(t.length>0?".":"")+t+r}).replace(/(^|\D)0\.(\d)/g,"$1.$2"))}function a(e,t){return-1==t.indexOf("0deg")?t:t.replace(/\(0deg\)/g,"(0)")}function s(e,t,r){return-1===r.value||-1===t.indexOf(".")?t:t.replace(r.regexp,function(e,t){return Math.round(parseFloat(t)*r.multiplier)/r.multiplier+"px"}).replace(/(\d)\.($|\D)/g,"$1$2")}function u(e,t,r){return t.replace(r,"$10")}function l(e,t){return-1==t.indexOf("0 0 0 0")?t:e.indexOf("box-shadow")>-1?"0 0 0 0"==t?"0 0":t:t.replace(/^0 0 0 0$/,"0")}function c(e,t,r){return-1===t.indexOf("#")&&-1==t.indexOf("rgb")&&-1==t.indexOf("hsl")?v.shorten(t):(t=t.replace(/rgb\((\-?\d+),(\-?\d+),(\-?\d+)\)/g,function(e,t,r,n){return new g(t,r,n).toHex()}).replace(/hsl\((-?\d+),(-?\d+)%?,(-?\d+)%?\)/g,function(e,t,r,n){return new m(t,r,n).toHex()}).replace(/(^|[^='"])#([0-9a-f]{6})/gi,function(e,t,r){return r[0]==r[1]&&r[2]==r[3]&&r[4]==r[5]?t+"#"+r[0]+r[2]+r[4]:t+"#"+r}).replace(/(rgb|rgba|hsl|hsla)\(([^\)]+)\)/g,function(e,t,r){var n=r.split(","),i="hsl"==t||"hsla"==t||n[0].indexOf("%")>-1;return i?(-1==n[1].indexOf("%")&&(n[1]+="%"),-1==n[2].indexOf("%")&&(n[2]+="%"),t+"("+n.join(",")+")"):e}),r.colors.opacity&&(t=t.replace(/(?:rgba|hsla)\(0,0%?,0%?,0\)/g,function(e){return new d(",").split(t).pop().indexOf("gradient(")>-1?e:"transparent"})),v.shorten(t))}function h(e,t){return"filter"==e||-1==t.indexOf(") ")||b.implementedFor.test(e)?t:t.replace(/\) ((?![\+\-] )|$)/g,")$1")}function f(e,t){for(var r,n=[],f=[],p=0,d=e.length;d>p;p++){var g=e[p];if(0!==g.value.indexOf("__ESCAPED_")){var m=g.value.indexOf(":"),v=g.value.substring(0,m),b=g.value.substring(m+1),y=!1;(t.compatibility.properties.iePrefixHack||"_"!=v[0]&&"*"!=v[0])&&((b.indexOf("!important")>0||b.indexOf("! important")>0)&&(b=b.substring(0,b.indexOf("!")).trim(),y=!0),0===v.indexOf("padding")&&i(b)||(0===v.indexOf("border")&&v.indexOf("radius")>0&&(b=x["border-*-radius"](b)),x[v]&&(b=x[v](b)),b=s(v,b,t.precision),b=o(v,b),b=a(v,b),b=u(v,b,t.unitsRegexp),b=l(v,b),b=c(v,b,t.compatibility),t.compatibility.properties.spaceAfterClosingBrace||(b=h(v,b)),r=v+":"+b+(y?"!important":""),n.push({value:r,metadata:g.metadata}),f.push(r)))}else n.push(g),f.push(g.value)}return{tokenized:n,list:f}}var p=e("./clean-up"),d=e("../../utils/splitter"),g=e("../../colors/rgb"),m=e("../../colors/hsl"),v=e("../../colors/hex-name-shortener"),b=e("../../properties/processable"),y=2,w="@charset",_=new RegExp("^"+w,"i"),x={background:function(e){return"none"==e||"transparent"==e?"0 0":e},"border-*-radius":function(e){if(-1==e.indexOf("/"))return e;var t=e.split(/\s*\/\s*/);return t[0]==t[1]?t[0]:t[0]+"/"+t[1]},filter:function(e){return e.indexOf("DXImageTransform")===e.lastIndexOf("DXImageTransform")&&(e=e.replace(/progid:DXImageTransform\.Microsoft\.(Alpha|Chroma)(\W)/,function(e,t,r){return t.toLowerCase()+r})),e.replace(/,(\S)/g,", $1").replace(/ ?= ?/g,"=")},font:function(e){var t=e.split(" ");return"normal"==t[1]||"bold"==t[1]||/^[1-9]00/.test(t[1])||(t[0]=this["font-weight"](t[0])),t.join(" ")},"font-weight":function(e){return"normal"==e?"400":"bold"==e?"700":e},outline:function(e){return"none"==e?"0":e}};n.prototype.optimize=function(e){function t(e){for(var o=0,a=e.length;a>o;o++){var s=e[o];if(!s)break;if("selector"==s.kind){var u=p.selectors(s.value,!i.compatibility.selectors.ie7Hack,i.compatibility.selectors.adjacentSpace);if(s.value=u.tokenized,0===s.value.length){e.splice(o,1),o--;continue}var l=f(s.body,r.options);s.body=l.tokenized,i.updateMetadata&&(s.metadata.body=l.list.join(";"),s.metadata.bodiesList=l.list,s.metadata.selector=u.list.join(","),s.metadata.selectorsList=u.list)}else"block"==s.kind?(s.value=p.block(s.value),s.isFlatBlock?s.body=f(s.body,r.options).tokenized:t(s.body)):"at-rule"==s.kind&&(s.value=p.atRule(s.value),_.test(s.value)&&(n||-1==s.value.indexOf(w)?(e.splice(o,1),o--):(n=!0,e.splice(o,1),e.unshift({kind:"at-rule",value:s.value.replace(_,w)}))))}}var r=this,n=!1,i=this.options;t(e)},t.exports=n},{"../../colors/hex-name-shortener":3,"../../colors/hsl":4,"../../colors/rgb":5,"../../properties/processable":12,"../../utils/splitter":38,"./clean-up":19}],21:[function(e,t,r){(function(r){function n(e,t,n){this.column=0,this.line=1,this.output=[],this.keepBreaks=e.keepBreaks,this.restore=t,this.inputMapTracker=n,this.outputMap=new u,e.root?(this.rebaseTo=o.resolve(e.root),this.resolvePath=this.rootPathResolver):e.target&&(this.rebaseTo=o.resolve(r.cwd(),e.target),(!a.existsSync(this.rebaseTo)||a.statSync(this.rebaseTo).isFile())&&(this.rebaseTo=o.dirname(this.rebaseTo)),this.resolvePath=this.relativePathResolver)}function i(e,t,r){this.rebuilder=new n(e,t,r)}var o=e("path"),a=e("fs"),s=e("url"),u=e("source-map").SourceMapGenerator,l=e("os").EOL;n.prototype.rootPathResolver=function(e){return e.replace(this.rebaseTo,"")},n.prototype.relativePathResolver=function(e,t){return t&&(e=o.resolve(o.dirname(t),e)),o.relative(this.rebaseTo,e)},n.prototype.rebuildValue=function(e,t,r){for(var n=0,i=0,o=e.length;o>i;i++){var a=e[i];0===a.value.indexOf("__ESCAPED_")?(this.store(a),n++,i===o-1&&n>0&&this.output.splice(this.output.length-n-1,1)):(this.store(a,r?o:0),this.store(o-1>i?t:""),n=0)}},n.prototype.store=function(e,t){var r="string"==typeof e?e:e.value.indexOf("_")>-1?this.restore(e.value):e.value;this.track(r,e.metadata,t),this.output.push(r)},n.prototype.rebuildList=function(e,t){for(var r=t?";":this.keepBreaks?l:"",n=0,i=e.length;i>n;n++){var o=e[n];"text"!==o.kind&&"at-rule"!=o.kind?o.body&&(0===o.body.length||1==o.body.length&&""===o.body[0].value)||("block"==o.kind?o.body.length>0&&(this.rebuildValue([{value:o.value,metadata:o.metadata}],""),this.store("{"),o.isFlatBlock?this.rebuildValue(o.body,";"):this.rebuildList(o.body,!1),this.store("}")):(this.rebuildValue(o.value,",",!0),this.store("{"),this.rebuildValue(o.body,";"),this.store("}")),this.store(r)):this.store(o)}},n.prototype.track=function(e,t,r){t&&this.trackMetadata(t,e,r);var n=e.split("\n");this.line+=n.length-1,this.column=n.length>1?0:this.column+n.pop().length},n.prototype.trackMetadata=function(e,t,r){var n=this.inputMapTracker.isTracking(e)?this.inputMapTracker.originalPositionFor(e,t,r):{};this.outputMap.addMapping({generated:{line:this.line,column:this.column},source:this.stylingSourceFor(n,e)||"__stdin__.css",original:{line:n.line||e.line,column:n.column||e.column}})},n.prototype.stylingSourceFor=function(e,t){var r=e.source||t.source;return r&&t.source&&(/^https?:\/\//.test(t.source)||/^\/\//.test(t.source))&&r!=t.source?s.resolve(t.source,r):r&&this.resolvePath?this.resolvePath(r,t.source):r},i.prototype.toString=function(e){return this.rebuilder.rebuildList(e),{sourceMap:this.rebuilder.outputMap,styles:this.rebuilder.output.join("").trim()}},t.exports=i}).call(this,e("_process"))},{_process:56,fs:40,os:54,path:55,"source-map":77,url:74}],22:[function(e,t,r){function n(e,t){this.keepBreaks=e.keepBreaks,this.restoreCallback=t}function i(e,t){for(var r="",n=0,i=e.length;i>n;n++){var o=e[n];if(0===o.value.indexOf("__ESCAPED_")){if(r+=o.value,n===i-1){var a=r.lastIndexOf(";");r=r.substring(0,a)+r.substring(a+1)}}else r+=e[n].value+(i-1>n?t:"")}return r}function o(e,t,r){for(var n,s,u=r?";":t?a:"",l=[],c=0,h=e.length;h>c;c++){var f=e[c];"text"!==f.kind&&"at-rule"!=f.kind?f.body&&(0===f.body.length||1==f.body.length&&""===f.body[0].value)||("block"==f.kind?(n=f.isFlatBlock?i(f.body,";"):o(f.body,t,f.isFlatBlock),n.length>0&&l.push(f.value+"{"+n+"}")):(s=i(f.value,","), -n=i(f.body,";"),l.push(s+"{"+n+"}"))):l.push(f.value)}return l.join(u)}var a=e("os").EOL;n.prototype.toString=function(e){var t=o(e,this.keepBreaks,!1);return{styles:this.restoreCallback(t).trim()}},t.exports=n},{os:54}],23:[function(e,t,r){function n(e,t,r){this.minifyContext=e,this.addMetadata=t,this.addSourceMap=r}function i(e){var t,r=e.mode,n=e.chunk;if(n.length==e.cursor){if(e.chunker.isEmpty())return null;e.chunk=n=e.chunker.next(),e.cursor=0}if("body"==r)return t=n.indexOf("}",e.cursor),t>-1?[t,"bodyEnd"]:null;var i=n.indexOf("@",e.cursor),o=n.indexOf("__ESCAPED_",e.cursor),a=n.indexOf("{",e.cursor),s=n.indexOf("}",e.cursor);return o>-1&&/\S/.test(n.substring(e.cursor,o))&&(o=-1),t=i,(-1==t||o>-1&&t>o)&&(t=o),(-1==t||a>-1&&t>a)&&(t=a),(-1==t||s>-1&&t>s)&&(t=s),-1!=t?o===t?[t,"escape"]:a===t?[t,"bodyStart"]:s===t?[t,"bodyEnd"]:i===t?[t,"special"]:void 0:void 0}function o(e){for(var t,r,n=e.chunk,a=[],c=e.addSourceMap;;){var h=i(e);if(!h){var f=e.chunk.substring(e.cursor);f.trim().length>0&&("body"==e.mode?e.outer.warnings.push("Missing '}' after '"+f+"'. Ignoring."):a.push({kind:"text",value:f}),e.cursor+=f.length);break}var p,d,g=h[0],m=h[1];if(n=e.chunk,e.cursor!=g&&"bodyEnd"!=m){var v=n.substring(e.cursor,g),b=/^\s+/.exec(v);b&&(e.cursor+=b[0].length,c&&u.track(b[0],e))}if("special"==m){var y=n.indexOf("{",g),w=n.indexOf(";",g),_=w>-1&&(-1==y||y>w),x=-1==y&&-1==w;if(x)e.outer.warnings.push("Broken declaration: '"+n.substring(e.cursor)+"'."),e.cursor=n.length;else if(_)p=n.indexOf(";",g+1),r=n.substring(e.cursor,p+1),t={kind:"at-rule",value:r},a.push(t),c&&(t.metadata=u.saveAndTrack(r,e,!0)),e.cursor=p+1;else{p=n.indexOf("{",g+1),r=n.substring(e.cursor,p);var k=r.trim(),S=l.test(k);d=e.mode,e.cursor=p+1,e.mode=S?"body":"block",t={kind:"block",value:k,isFlatBlock:S},c&&(t.metadata=u.saveAndTrack(r,e,!0)),t.body=o(e),"string"==typeof t.body&&(t.body=s.properties(t.body,e).tokenized),e.mode=d,c&&u.suffix(e),a.push(t)}}else if("escape"==m){p=n.indexOf("__",g+1);var O=n.substring(e.cursor,p+2),E=!!e.outer.sourceTracker.nextStart(O),C=!!e.outer.sourceTracker.nextEnd(O);if(E)c&&u.track(O,e),e.state.push({source:e.source,line:e.line,column:e.column}),e.source=e.outer.sourceTracker.nextStart(O).filename,e.line=1,e.column=0;else if(C){var A=e.state.pop();e.source=A.source,e.line=A.line,e.column=A.column,c&&u.track(O,e)}else 0===O.indexOf("__ESCAPED_COMMENT_SPECIAL")&&a.push({kind:"text",value:O}),c&&u.track(O,e);e.cursor=p+2}else if("bodyStart"==m){var M=s.selectors(n.substring(e.cursor,g),e);d=e.mode,e.cursor=g+1,e.mode="body";var L=s.properties(o(e),e);c&&u.suffix(e),e.mode=d,t={kind:"selector",value:M.tokenized,body:L.tokenized},e.addMetadata&&(t.metadata={body:L.list.join(","),bodiesList:L.list,selector:M.list.join(","),selectorsList:M.list}),a.push(t)}else if("bodyEnd"==m){if("top"==e.mode){var R=e.cursor,j="}"==n[e.cursor]?"Unexpected '}' in '"+n.substring(R-20,R+20)+"'. Ignoring.":"Unexpected content: '"+n.substring(R,g+1)+"'. Ignoring.";e.outer.warnings.push(j),e.cursor=g+1;continue}"block"==e.mode&&e.addSourceMap&&u.track(n.substring(e.cursor,g),e),"block"!=e.mode&&(a=n.substring(e.cursor,g)),e.cursor=g+1;break}}return a}var a=e("../utils/chunker"),s=e("../utils/extractors"),u=e("../utils/source-maps"),l=/(^@(font\-face|page|\-ms\-viewport|\-o\-viewport|viewport|counter\-style)|\\@.+?)/;n.prototype.toTokens=function(e){e=e.replace(/\r\n/g,"\n");var t=new a(e,"}",128);if(t.isEmpty())return[];var r={cursor:0,mode:"top",chunker:t,chunk:t.next(),outer:this.minifyContext,addMetadata:this.addMetadata,addSourceMap:this.addSourceMap,state:[],line:1,column:0,source:void 0};return o(r)},t.exports=n},{"../utils/chunker":29,"../utils/extractors":31,"../utils/source-maps":35}],24:[function(e,t,r){function n(e,t,r,n){this.comments=new a("COMMENT"),this.specialComments=new a("COMMENT_SPECIAL"),this.context=e,this.keepAll="*"==t,this.keepOne="1"==t||1===t,this.keepBreaks=r,this.saveWaypoints=n}function i(e){var t=[];return new s(e).each(function(e,r,n){t.push([n,n+e.length])}),function(e){for(var r=0,n=t.length;n>r;r++)if(t[r][0]e)return!0;return!1}}function o(e,t,r,n){for(var i,o=[],a=0,s=0;s0?o.join("")+t.substring(s,t.length):t}var a=e("./escape-store"),s=e("../utils/quote-scanner"),u="/*!",l="/*",c="*/",h=e("os").EOL;n.prototype.escape=function(e){for(var t,r,n,o=[],a=0,s=0,f=0,p=0,d=i(e),g=this.saveWaypoints;s0?m.substring(r+h.length).length:p+m.length),g||v){var b=g?[t,n]:null,y=v?this.specialComments.store(m,b):this.comments.store(m,b);o.push(y)}g&&(p=n+1),f=s+c.length}return o.length>0?o.join("")+e.substring(f,e.length):e},n.prototype.restore=function(e){return e=o(this,e,this.comments,!1),e=o(this,e,this.specialComments,!0)},t.exports=n},{"../utils/quote-scanner":34,"./escape-store":25,os:54}],25:[function(e,t,r){function n(e){this.placeholderRoot="ESCAPED_"+e+"_CLEAN_CSS",this.placeholderToData={},this.dataToPlaceholder={},this.count=0,this.restoreMatcher=new RegExp(this.placeholderRoot+"(\\d+)")}var i="__";n.prototype._nextPlaceholder=function(e){return{index:this.count,value:i+this.placeholderRoot+this.count++ +e+i}},n.prototype.store=function(e,t){var r=t?"("+t.join(",")+")":"",n=this.dataToPlaceholder[e];if(!n){var i=this._nextPlaceholder(r);n=i.value,this.placeholderToData[i.index]=e,this.dataToPlaceholder[e]=i.value}return t&&(n=n.replace(/\([^\)]+\)/,r)),n},n.prototype.nextMatch=function(e,t){var r={};return r.start=e.indexOf(this.placeholderRoot,t)-i.length,r.end=e.indexOf(i,r.start+i.length)+i.length,r.start>-1&&r.end>-1&&(r.match=e.substring(r.start,r.end)),r},n.prototype.restore=function(e){var t=this.restoreMatcher.exec(e)[1];return this.placeholderToData[t]},t.exports=n},{}],26:[function(e,t,r){function n(e,t){for(var r=t+a.length,n=0,i=!1,o=!1;;){var l=e[r++];if(i?i="'"!=l&&'"'!=l:(i="'"==l||'"'==l,l==s&&n++,l==u&&n--,l==c&&(o=!0),l!=h||o||1!=n||(r--,n--)),0===n&&l==u)break;if(!l){r=e.substring(0,r).lastIndexOf(h);break}}return r}function i(e){this.expressions=new o("EXPRESSION"),this.saveWaypoints=e}var o=e("./escape-store"),a="expression",s="(",u=")",l=a+s,c="{",h="}",f=e("os").EOL;i.prototype.escape=function(e){for(var t,r,i,o=0,a=0,s=0,u=[],c=0,h=this.saveWaypoints;a0?p.substring(r+f.length).length:c+p.length);var d=h?[t,i]:null,g=this.expressions.store(p,d);u.push(e.substring(s,o)),u.push(g),h&&(c=i+1),s=a}return u.length>0?u.join("")+e.substring(s,e.length):e},i.prototype.restore=function(e){for(var t=[],r=0;r0?t.join("")+e.substring(r,e.length):e},t.exports=i},{"./escape-store":25,os:54}],27:[function(e,t,r){function n(e){this.matches=new o("FREE_TEXT"),this.saveWaypoints=e}function i(e,t,r){var n=t.lastIndexOf(";",r),i=t.lastIndexOf("{",r),o=0;o=n>-1&&i>-1?Math.max(n,i):-1==n?i:n;var a=t.substring(o+1,r);if(/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(a)&&(e=e.replace(/\\\n|\\\r\n/g,"")),/^['"][a-zA-Z][a-zA-Z\d\-_]+['"]$/.test(e)&&!/format\($/.test(a)){var s=/^(font|font\-family):/.test(a),u=/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(a),l=/@(-moz-|-o-|-webkit-)?keyframes /.test(a),c=/^(-moz-|-o-|-webkit-)?animation(-name)?:/.test(a);(s||u||l||c)&&(e=e.substring(1,e.length-1))}return e}var o=e("./escape-store"),a=e("../utils/quote-scanner"),s=e("os").EOL;n.prototype.escape=function(e){var t,r,n,i,o=this,u=this.saveWaypoints;return new a(e).each(function(e,a){u&&(t=e.split(s).length-1,r=e.lastIndexOf(s),n=r>0?e.substring(r+s.length).length:e.length,i=[t,n]);var l=o.matches.store(e,i);a.push(l)})},n.prototype.restore=function(e){for(var t=[],r=0;r0?t.join("")+e.substring(r,e.length):e},t.exports=n},{"../utils/quote-scanner":34,"./escape-store":25,os:54}],28:[function(e,t,r){function n(e,t,r){this.urls=new o("URL"),this.context=e,this.saveWaypoints=t,this.removeTrailingSpace=r}function i(e){return e=e.replace(/^url/gi,"url").replace(/\\?\n|\\?\r\n/g,"").replace(/(\s{2,}|\s)/g," ").replace(/^url\((['"])? /,"url($1").replace(/ (['"])?\)$/,"$1)"),/url\(.*[\s\(\)].*\)/.test(e)||/url\(['"]data:[^;]+;charset/.test(e)||(e=e.replace(/["']/g,"")),e}var o=e("./escape-store"),a=e("../utils/url-scanner"),s=e("os").EOL;n.prototype.escape=function(e){var t,r,n,i=this.saveWaypoints,o=this;return new a(e,this.context).reduce(function(e,a){i&&(t=e.split(s).length-1,r=e.lastIndexOf(s),n=r>0?e.substring(r+s.length).length:e.length);var u=o.urls.store(e,i?[t,n]:null);a.push(u)})},n.prototype.restore=function(e){for(var t=[],r=0;r0?t.join("")+e.substring(r,e.length):e},t.exports=n},{"../utils/url-scanner":39,"./escape-store":25,os:54}],29:[function(e,t,r){function n(e,t,r){this.chunks=[];for(var n=0,i=e.length;i>n;){var o=n+r>i?i-1:n+r;e[o]!=t&&(o=e.indexOf(t,o)),-1==o&&(o=e.length-1),this.chunks.push(e.substring(n,o+t.length)),n=o+t.length}}n.prototype.isEmpty=function(){return 0===this.chunks.length},n.prototype.next=function(){return this.chunks.shift()},t.exports=n},{}],30:[function(e,t,r){function n(e){this.source=e||{}}function i(e,t){for(var r in e){var n=e[r];t[r]="object"!=typeof n||a.isRegExp(n)?r in t?t[r]:n:i(n,t[r]||{})}return t}function o(e){if("object"==typeof e)return e;if(!/[,\+\-]/.test(e))return s[e]||s["*"];var t=e.split(","),r=t[0]in s?s[t.shift()]:s["*"];return e={},t.forEach(function(t){var r="+"==t[0],n=t.substring(1).split("."),i=n[0],o=n[1];e[i]=e[i]||{},e[i][o]=r}),i(r,e)}var a=e("util"),s={"*":{colors:{opacity:!0},properties:{backgroundSizeMerging:!1,iePrefixHack:!1,ieSuffixHack:!1,merging:!0,spaceAfterClosingBrace:!1},selectors:{adjacentSpace:!1,ie7Hack:!1,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:dir\([a-z-]*\)|:first(?![a-z-])|:fullscreen|:left|:read-only|:read-write|:right)/},units:{rem:!0}},ie8:{colors:{opacity:!1},properties:{backgroundSizeMerging:!1,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,spaceAfterClosingBrace:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not)/},units:{rem:!1}},ie7:{colors:{opacity:!1},properties:{backgroundSizeMerging:!1,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,spaceAfterClosingBrace:!0},selectors:{adjacentSpace:!1,ie7Hack:!0,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:focus|:before|:after|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not)/},units:{rem:!1}}};n.prototype.toOptions=function(){return i(s["*"],o(this.source))},t.exports=n},{util:76}],31:[function(e,t,r){var n=e("./splitter"),i=e("../utils/source-maps"),o={properties:function(e,t){var r,n,o,a,s,u,l,c,h,f,p,d,g=[],m=[],v=[],b=[],y=t.addSourceMap;e.replace&&e.indexOf(")")>0&&(e=e.replace(/\)([^\s_;:,\)])/g,t.addSourceMap?") __ESCAPED_COMMENT_CLEAN_CSS(0,-1)__$1":") $1"));for(var w=0,_=e.length;_>w;w++){if(l=e[w],n=";"===l,p=!n&&"_"==l&&e.indexOf("__ESCAPED_COMMENT",w)===w)if(v.length>0)w--,n=!0;else{var x=e.indexOf("__",w+1)+2,k=e.substring(w,x);if(w=x-1,-1===k.indexOf("__ESCAPED_COMMENT_SPECIAL")){y&&i.track(k,t,!0);continue}v=b=[k]}n||p?(a&&" "===v[v.length-1]&&v.pop(),v.length>0&&(r=v.join(""),-1===r.indexOf("{")&&(d={value:r},g.push(d),m.push(r),y&&(d.metadata=i.saveAndTrack(b.join(""),t,!p)))),v=[],b=[]):(o=" "===l||" "===l||"\n"===l,s=":"===l||"["===l||"]"===l||","===l||"("===l||")"===l,a&&s?(c=v[v.length-1],h=v[v.length-2],"+"!=h&&"-"!=h&&"/"!=h&&"*"!=h&&"("!=c&&v.pop(),v.push(l)):o&&u&&!f||(o&&!a&&v.length>0?v.push(" "):o&&0===v.length||o&&a||v.push(o?" ":l)),b.push(l)),u=s,a=o,f=")"===l}return a&&" "===v[v.length-1]&&v.pop(),v.length>0?(r=v.join(""),-1===r.indexOf("{")&&(d={value:r},g.push(d),m.push(r),y&&(d.metadata=i.saveAndTrack(b.join(""),t,!1)))):b.indexOf("\n")>-1&&i.track(b.join(""),t),{list:m,tokenized:g}},selectors:function(e,t){for(var r=[],o=[],a=new n(",").split(e),s=t.addSourceMap,u=0,l=a.length;l>u;u++){var c=a[u];o.push(c);var h={value:c};r.push(h),s&&(h.metadata=i.saveAndTrack(c,t,!0))}return{list:o,tokenized:r}}};t.exports=o},{"../utils/source-maps":35,"./splitter":38}],32:[function(e,t,r){function n(e){this.options=e.options,this.errors=e.errors,this.sourceTracker=e.sourceTracker,this.timeout=this.options.inliner.timeout,this.requestOptions=this.options.inliner.request,this.maps={}}function i(e,t,r){return e.maps[void 0]=new u(e.options.sourceMap),r()}function o(e,t,r,n){function i(){n.cursor+=s+1,o(e,t,r,n)}for(var s=0;n.cursor-1&&(s=f.index),p.index>-1&&p.index-1&&d.index299)return i(t.statusCode);var o=[];t.on("data",function(e){o.push(e.toString())}),t.on("end",function(){e.maps[r.files[r.files.length-1]||void 0]=new u(o.join("")),n()})}).on("error",function(e){i(e.message)}).on("timeout",function(){i("timeout")}).setTimeout(e.timeout)}function s(e,t,r,n){for(var i,o=r.replace(/[>\+~]/g," $1 ").length,a={line:t.line,column:t.column+o};o-->0&&(a.column--,!(i=e.originalPositionFor(a))););return null===i.line&&t.line>1&&n>0?s(e,{line:t.line-1,column:t.column},r,n-1):i}var u=e("source-map").SourceMapConsumer,l=e("fs"),c=e("path"),h=e("http"),f=e("https"),p=e("url"),d=e("../utils/object.js").override,g=/\/\*# sourceMappingURL=(\S+) \*\//;n.prototype.track=function(e,t){return"string"==typeof this.options.sourceMap?i(this,e,t):o(this,e,t,{files:[],cursor:0,errors:this.errors})},n.prototype.trackLoaded=function(e,t){this.maps[e]=new u(t)},n.prototype.isTracking=function(e){return!!this.maps[e.source]},n.prototype.originalPositionFor=function(e,t,r){return s(this.maps[e.source],e,t,r)},t.exports=n},{"../utils/object.js":33,fs:40,http:47,https:51,path:55,"source-map":77,url:74}],33:[function(e,t,r){t.exports={override:function(e,t){var r={};for(var n in e)r[n]=e[n];for(var i in t)r[i]=t[i];return r}}},{}],34:[function(e,t,r){function n(e){this.data=e}function i(e,t,r){for(var n="\\",i=r;;){if(i=e.indexOf(t,i+1),-1==i)return-1;if(e[i-1]!=n)return i}}var o=function(e,t,r,n){var i="/*",o="*/",a="\\",s="}",u=e.substring(n,r),l=u.lastIndexOf(o,r),c=u.lastIndexOf(i,r),h=!1;if(l>=r&&c>-1&&(h=!0),r>c&&c>l&&(h=!0),h){var f=e.indexOf(o,r);return f>-1?f:(f=e.indexOf(s,r),f>-1?f-1:e.length)}for(;;){if(void 0===e[r])break;if(e[r]==t&&(e[r-1]!=a||e[r-2]==a))break;r++}return r};n.prototype.each=function(e){for(var t=this.data,r=[],n=0,a=0,s=0,u=null,l="'",c='"',h=t.length;af?(n=f,u=l):(n=p,u=c),-1==n)break;if(a=o(t,u,n+1,s),-1==a)break;var d=t.substring(n,a+1);r.push(t.substring(s,n)),d.length>0&&e(d,r,n),s=a+1}return r.length>0?r.join("")+t.substring(s,t.length):t},t.exports=n},{}],35:[function(e,t,r){function n(e,t){var r,n,i=e.split("\n"),o=0;for(r=0,n=i.length;n>r;r++){var a=i[r];if(/\S/.test(a))break;o+=a.length+1}return t.line+=r,t.column=r>0?0:t.column,t.column+=/^(\s)*/.exec(i[r])[0].length,e.substring(o).trimLeft()}var i={saveAndTrack:function(e,t,r){var i=n(e,t),o={line:t.line,column:t.column,source:t.source};return this.track(i,t),r&&t.column++,o},suffix:function(e){e.column++},track:function(e,t){for(var r=e.split("\n"),n=0,i=r.length;i>n;n++){var o=r[n],a=0;for(n>0&&(t.line++,t.column=0);;){var s=o.indexOf("__ESCAPED_",a);if(-1==s){t.column+=o.substring(a).length;break}t.column+=s-a,a+=s-a;var u=o.substring(s,o.indexOf("__",s+1)+2),l=u.substring(u.indexOf("(")+1,u.indexOf(")")).split(",");t.line+=~~l[0],t.column=(0===~~l[0]?t.column:0)+~~l[1],a+=u.length}}}};t.exports=i},{}],36:[function(e,t,r){(function(r,n){function i(e,t){this.outerContext=e,this.data=t}function o(e,t){return t.map(function(t){return e.options.processImport===!1?t+"@shallow":t}).map(function(t){return!e.options.relativeTo||/^https?:\/\//.test(t)?t:s.relative(e.options.relativeTo,t)}).map(function(e){return"@import url("+e+");"}).join("")}function a(e,t){var n=[],i=s.resolve(e.options.target||r.cwd());for(var o in t){var a=t[o].styles,l=t[o].sourceMap,c=new u({absolute:!!e.options.root,relative:!e.options.root,imports:!0,urls:e.options.rebase,fromBase:s.dirname(s.resolve(o)),toBase:i},this.outerContext);if(a=c.process(a),e.options.sourceMap&&l){var h=s.resolve(o);a=e.sourceTracker.store(h,a),e.inputSourceMapTracker.trackLoaded(h,l)}n.push(a)}return n.join("")}var s=e("path"),u=e("../images/url-rewriter");i.prototype.toString=function(){return"string"==typeof this.data?this.data:n.isBuffer(this.data)?this.data.toString():Array.isArray(this.data)?o(this.outerContext,this.data):a(this.outerContext,this.data)},t.exports=i}).call(this,e("_process"),e("buffer").Buffer)},{"../images/url-rewriter":7,_process:56,buffer:42,path:55}],37:[function(e,t,r){function n(){this.sources=[]}n.prototype.store=function(e,t){return this.sources.push(e),"__ESCAPED_SOURCE_CLEAN_CSS"+(this.sources.length-1)+"__"+t+"__ESCAPED_SOURCE_END_CLEAN_CSS__"},n.prototype.nextStart=function(e){var t=/__ESCAPED_SOURCE_CLEAN_CSS(\d+)__/.exec(e);return t?{index:t.index,filename:this.sources[~~t[1]]}:null},n.prototype.nextEnd=function(e){return/__ESCAPED_SOURCE_END_CLEAN_CSS__/g.exec(e)},n.prototype.removeAll=function(e){return e.replace(/__ESCAPED_SOURCE_CLEAN_CSS\d+__/g,"").replace(/__ESCAPED_SOURCE_END_CLEAN_CSS__/g,"")},t.exports=n},{}],38:[function(e,t,r){function n(e){this.separator=e}n.prototype.split=function(e){if(-1===e.indexOf(this.separator))return[e];if(-1===e.indexOf("("))return e.split(this.separator);for(var t=0,r=0,n=0,i=e.length,o=[];r++n&&o.push(e.substring(n)),o},t.exports=n},{}],39:[function(e,t,r){function n(e,t){this.data=e,this.context=t}var i="url(",o="URL(",a=")";n.prototype.reduce=function(e){for(var t=0,r=0,n=0,s=0,u=[],l=this.data,c=l.indexOf(o)>-1;n-1&&(t=r),n='"'==l[t+i.length]?l.indexOf('"',t+i.length+1):"'"==l[t+i.length]?l.indexOf("'",t+i.length+1):l.indexOf(a,t),-1==n?(n=l.indexOf("}",t),-1==n?n=l.length:n--,this.context.warnings.push("Broken URL declaration: '"+l.substring(t,n+1)+"'.")):l[n]!=a&&(n=l.indexOf(a,n)),u.push(l.substring(s,t));var h=l.substring(t,n+1);e(h,u),s=n+1}return u.length>0?u.join("")+l.substring(s,l.length):l},t.exports=n},{}],40:[function(e,t,r){},{}],41:[function(e,t,r){arguments[4][40][0].apply(r,arguments)},{dup:40}],42:[function(e,t,r){function n(e,t){var r=this;if(!(r instanceof n))return new n(e,t);var i,o=typeof e;if("number"===o)i=+e;else if("string"===o)i=n.byteLength(e,t);else{if("object"!==o||null===e)throw new TypeError("must start with number, buffer, array or string");"Buffer"===e.type&&V(e.data)&&(e=e.data),i=+e.length}if(i>P)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+P.toString(16)+" bytes");0>i?i=0:i>>>=0,n.TYPED_ARRAY_SUPPORT?r=n._augment(new Uint8Array(i)):(r.length=i,r._isBuffer=!0);var a;if(n.TYPED_ARRAY_SUPPORT&&"number"==typeof e.byteLength)r._set(e);else if(E(e))if(n.isBuffer(e))for(a=0;i>a;a++)r[a]=e.readUInt8(a);else for(a=0;i>a;a++)r[a]=(e[a]%256+256)%256;else if("string"===o)r.write(e,0,t);else if("number"===o&&!n.TYPED_ARRAY_SUPPORT)for(a=0;i>a;a++)r[a]=0;return i>0&&i<=n.poolSize&&(r.parent=U),r}function i(e,t){if(!(this instanceof i))return new i(e,t);var r=new n(e,t);return delete r.parent,r}function o(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=t.length;if(o%2!==0)throw new Error("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;n>a;a++){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))throw new Error("Invalid hex string");e[r+a]=s}return a}function a(e,t,r,n){var i=j(A(t,e.length-r),e,r,n);return i}function s(e,t,r,n){var i=j(M(t),e,r,n);return i}function u(e,t,r,n){return s(e,t,r,n)}function l(e,t,r,n){var i=j(R(t),e,r,n);return i}function c(e,t,r,n){var i=j(L(t,e.length-r),e,r,n);return i}function h(e,t,r){return T.fromByteArray(0===t&&r===e.length?e:e.slice(t,r))}function f(e,t,r){var n="",i="";r=Math.min(e.length,r);for(var o=t;r>o;o++)e[o]<=127?(n+=I(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return n+I(i)}function p(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;r>i;i++)n+=String.fromCharCode(127&e[i]);return n}function d(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;r>i;i++)n+=String.fromCharCode(e[i]);return n}function g(e,t,r){var n=e.length;(!t||0>t)&&(t=0),(!r||0>r||r>n)&&(r=n);for(var i="",o=t;r>o;o++)i+=C(e[o]);return i}function m(e,t,r){for(var n=e.slice(t,r),i="",o=0;oe)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function b(e,t,r,i,o,a){if(!n.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(t>o||a>t)throw new RangeError("value is out of bounds");if(r+i>e.length)throw new RangeError("index out of range")}function y(e,t,r,n){0>t&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);o>i;i++)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function w(e,t,r,n){0>t&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);o>i;i++)e[r+i]=t>>>8*(n?i:3-i)&255}function _(e,t,r,n,i,o){if(t>i||o>t)throw new RangeError("value is out of bounds");if(r+n>e.length)throw new RangeError("index out of range");if(0>r)throw new RangeError("index out of range")}function x(e,t,r,n,i){return i||_(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),B.write(e,t,r,n,23,4),r+4}function k(e,t,r,n,i){return i||_(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),B.write(e,t,r,n,52,8),r+8}function S(e){if(e=O(e).replace(D,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function O(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function E(e){return V(e)||n.isBuffer(e)||e&&"object"==typeof e&&"number"==typeof e.length}function C(e){return 16>e?"0"+e.toString(16):e.toString(16)}function A(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;n>a;a++){if(r=e.charCodeAt(a),r>55295&&57344>r){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(56320>r){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&((t-=3)>-1&&o.push(239,191,189),i=null);if(128>r){if((t-=1)<0)break;o.push(r)}else if(2048>r){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(65536>r){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(2097152>r))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function M(e){for(var t=[],r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function R(e){return T.toByteArray(S(e))}function j(e,t,r,n){for(var i=0;n>i&&!(i+r>=t.length||i>=e.length);i++)t[i+r]=e[i];return i}function I(e){try{return decodeURIComponent(e)}catch(t){return String.fromCharCode(65533)}}var T=e("base64-js"),B=e("ieee754"),V=e("is-array");r.Buffer=n,r.SlowBuffer=i,r.INSPECT_MAX_BYTES=50,n.poolSize=8192;var P=1073741823,U={};n.TYPED_ARRAY_SUPPORT=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(r){return!1}}(),n.isBuffer=function(e){return!(null==e||!e._isBuffer)},n.compare=function(e,t){if(!n.isBuffer(e)||!n.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,i=t.length,o=0,a=Math.min(r,i);a>o&&e[o]===t[o];o++);return o!==a&&(r=e[o],i=t[o]),i>r?-1:r>i?1:0},n.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.concat=function(e,t){if(!V(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new n(0);if(1===e.length)return e[0];var r;if(void 0===t)for(t=0,r=0;r>>1;break;case"utf8":case"utf-8":r=A(e).length;break;case"base64":r=R(e).length;break;default:r=e.length}return r},n.prototype.length=void 0,n.prototype.parent=void 0,n.prototype.toString=function(e,t,r){var n=!1;if(t>>>=0,r=void 0===r||r===1/0?this.length:r>>>0,e||(e="utf8"),0>t&&(t=0),r>this.length&&(r=this.length),t>=r)return"";for(;;)switch(e){case"hex":return g(this,t,r);case"utf8":case"utf-8":return f(this,t,r);case"ascii":return p(this,t,r);case"binary":return d(this,t,r);case"base64":return h(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}},n.prototype.equals=function(e){if(!n.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===n.compare(this,e)},n.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},n.prototype.compare=function(e){if(!n.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:n.compare(this,e)},n.prototype.indexOf=function(e,t){function r(e,t,r){for(var n=-1,i=0;r+i2147483647?t=2147483647:-2147483648>t&&(t=-2147483648),t>>=0,0===this.length)return-1;if(t>=this.length)return-1;if(0>t&&(t=Math.max(this.length+t,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,t);if(n.isBuffer(e))return r(this,e,t);if("number"==typeof e)return n.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,t):r(this,[e],t);throw new TypeError("val must be string, number or Buffer")},n.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},n.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},n.prototype.write=function(e,t,r,n){if(isFinite(t))isFinite(r)||(n=r,r=void 0);else{var i=n;n=t,t=r,r=i}if(t=Number(t)||0,0>r||0>t||t>this.length)throw new RangeError("attempt to write outside buffer bounds");var h=this.length-t;r?(r=Number(r),r>h&&(r=h)):r=h,n=String(n||"utf8").toLowerCase();var f;switch(n){case"hex":f=o(this,e,t,r);break;case"utf8":case"utf-8":f=a(this,e,t,r);break;case"ascii":f=s(this,e,t,r);break;case"binary":f=u(this,e,t,r);break;case"base64":f=l(this,e,t,r);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":f=c(this,e,t,r);break;default:throw new TypeError("Unknown encoding: "+n)}return f},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},n.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,0>e?(e+=r,0>e&&(e=0)):e>r&&(e=r),0>t?(t+=r,0>t&&(t=0)):t>r&&(t=r),e>t&&(t=e);var i;if(n.TYPED_ARRAY_SUPPORT)i=n._augment(this.subarray(e,t));else{var o=t-e;i=new n(o,void 0);for(var a=0;o>a;a++)i[a]=this[a+e]}return i.length&&(i.parent=this.parent||this),i},n.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||v(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},n.prototype.readUInt8=function(e,t){return t||v(e,1,this.length),this[e]},n.prototype.readUInt16LE=function(e,t){return t||v(e,2,this.length),this[e]|this[e+1]<<8},n.prototype.readUInt16BE=function(e,t){return t||v(e,2,this.length),this[e]<<8|this[e+1]},n.prototype.readUInt32LE=function(e,t){return t||v(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},n.prototype.readUInt32BE=function(e,t){return t||v(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},n.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var n=this[e],i=1,o=0;++o=i&&(n-=Math.pow(2,8*t)),n},n.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},n.prototype.readInt8=function(e,t){return t||v(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},n.prototype.readInt16LE=function(e,t){t||v(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},n.prototype.readInt16BE=function(e,t){t||v(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},n.prototype.readInt32LE=function(e,t){return t||v(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},n.prototype.readInt32BE=function(e,t){return t||v(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},n.prototype.readFloatLE=function(e,t){return t||v(e,4,this.length),B.read(this,e,!0,23,4)},n.prototype.readFloatBE=function(e,t){return t||v(e,4,this.length),B.read(this,e,!1,23,4)},n.prototype.readDoubleLE=function(e,t){return t||v(e,8,this.length),B.read(this,e,!0,52,8)},n.prototype.readDoubleBE=function(e,t){return t||v(e,8,this.length),B.read(this,e,!1,52,8)},n.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||b(this,e,t,r,Math.pow(2,8*r),0);var i=1,o=0;for(this[t]=255&e;++o>>0&255;return t+r},n.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||b(this,e,t,r,Math.pow(2,8*r),0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o>>>0&255;return t+r},n.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,1,255,0),n.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=e,t+1},n.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,2,65535,0), -n.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):y(this,e,t,!0),t+2},n.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):y(this,e,t,!1),t+2},n.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e):w(this,e,t,!0),t+4},n.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):w(this,e,t,!1),t+4},n.prototype.writeIntLE=function(e,t,r,n){e=+e,t>>>=0,n||b(this,e,t,r,Math.pow(2,8*r-1)-1,-Math.pow(2,8*r-1));var i=0,o=1,a=0>e?1:0;for(this[t]=255&e;++i>0)-a&255;return t+r},n.prototype.writeIntBE=function(e,t,r,n){e=+e,t>>>=0,n||b(this,e,t,r,Math.pow(2,8*r-1)-1,-Math.pow(2,8*r-1));var i=r-1,o=1,a=0>e?1:0;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=(e/o>>0)-a&255;return t+r},n.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,1,127,-128),n.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[t]=e,t+1},n.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):y(this,e,t,!0),t+2},n.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):y(this,e,t,!1),t+2},n.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,4,2147483647,-2147483648),n.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):w(this,e,t,!0),t+4},n.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||b(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):w(this,e,t,!1),t+4},n.prototype.writeFloatLE=function(e,t,r){return x(this,e,t,!0,r)},n.prototype.writeFloatBE=function(e,t,r){return x(this,e,t,!1,r)},n.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},n.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},n.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&r>i&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(0>t)throw new RangeError("targetStart out of bounds");if(0>r||r>=this.length)throw new RangeError("sourceStart out of bounds");if(0>i)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-to||!n.TYPED_ARRAY_SUPPORT)for(var a=0;o>a;a++)e[a+t]=this[a+r];else e._set(this.subarray(r,r+o),t);return o},n.prototype.fill=function(e,t,r){if(e||(e=0),t||(t=0),r||(r=this.length),t>r)throw new RangeError("end < start");if(r!==t&&0!==this.length){if(0>t||t>=this.length)throw new RangeError("start out of bounds");if(0>r||r>this.length)throw new RangeError("end out of bounds");var n;if("number"==typeof e)for(n=t;r>n;n++)this[n]=e;else{var i=A(e.toString()),o=i.length;for(n=t;r>n;n++)this[n]=i[n%o]}return this}},n.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(n.TYPED_ARRAY_SUPPORT)return new n(this).buffer;for(var e=new Uint8Array(this.length),t=0,r=e.length;r>t;t+=1)e[t]=this[t];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var z=n.prototype;n._augment=function(e){return e.constructor=n,e._isBuffer=!0,e._set=e.set,e.get=z.get,e.set=z.set,e.write=z.write,e.toString=z.toString,e.toLocaleString=z.toString,e.toJSON=z.toJSON,e.equals=z.equals,e.compare=z.compare,e.indexOf=z.indexOf,e.copy=z.copy,e.slice=z.slice,e.readUIntLE=z.readUIntLE,e.readUIntBE=z.readUIntBE,e.readUInt8=z.readUInt8,e.readUInt16LE=z.readUInt16LE,e.readUInt16BE=z.readUInt16BE,e.readUInt32LE=z.readUInt32LE,e.readUInt32BE=z.readUInt32BE,e.readIntLE=z.readIntLE,e.readIntBE=z.readIntBE,e.readInt8=z.readInt8,e.readInt16LE=z.readInt16LE,e.readInt16BE=z.readInt16BE,e.readInt32LE=z.readInt32LE,e.readInt32BE=z.readInt32BE,e.readFloatLE=z.readFloatLE,e.readFloatBE=z.readFloatBE,e.readDoubleLE=z.readDoubleLE,e.readDoubleBE=z.readDoubleBE,e.writeUInt8=z.writeUInt8,e.writeUIntLE=z.writeUIntLE,e.writeUIntBE=z.writeUIntBE,e.writeUInt16LE=z.writeUInt16LE,e.writeUInt16BE=z.writeUInt16BE,e.writeUInt32LE=z.writeUInt32LE,e.writeUInt32BE=z.writeUInt32BE,e.writeIntLE=z.writeIntLE,e.writeIntBE=z.writeIntBE,e.writeInt8=z.writeInt8,e.writeInt16LE=z.writeInt16LE,e.writeInt16BE=z.writeInt16BE,e.writeInt32LE=z.writeInt32LE,e.writeInt32BE=z.writeInt32BE,e.writeFloatLE=z.writeFloatLE,e.writeFloatBE=z.writeFloatBE,e.writeDoubleLE=z.writeDoubleLE,e.writeDoubleBE=z.writeDoubleBE,e.fill=z.fill,e.inspect=z.inspect,e.toArrayBuffer=z.toArrayBuffer,e};var D=/[^+\/0-9A-z\-]/g},{"base64-js":43,ieee754:44,"is-array":45}],43:[function(e,t,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";function t(e){var t=e.charCodeAt(0);return t===a||t===h?62:t===s||t===f?63:u>t?-1:u+10>t?t-u+26+26:c+26>t?t-c:l+26>t?t-l+26:void 0}function r(e){function r(e){l[h++]=e}var n,i,a,s,u,l;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=e.length;u="="===e.charAt(c-2)?2:"="===e.charAt(c-1)?1:0,l=new o(3*e.length/4-u),a=u>0?e.length-4:e.length;var h=0;for(n=0,i=0;a>n;n+=4,i+=3)s=t(e.charAt(n))<<18|t(e.charAt(n+1))<<12|t(e.charAt(n+2))<<6|t(e.charAt(n+3)),r((16711680&s)>>16),r((65280&s)>>8),r(255&s);return 2===u?(s=t(e.charAt(n))<<2|t(e.charAt(n+1))>>4,r(255&s)):1===u&&(s=t(e.charAt(n))<<10|t(e.charAt(n+1))<<4|t(e.charAt(n+2))>>2,r(s>>8&255),r(255&s)),l}function i(e){function t(e){return n.charAt(e)}function r(e){return t(e>>18&63)+t(e>>12&63)+t(e>>6&63)+t(63&e)}var i,o,a,s=e.length%3,u="";for(i=0,a=e.length-s;a>i;i+=3)o=(e[i]<<16)+(e[i+1]<<8)+e[i+2],u+=r(o);switch(s){case 1:o=e[e.length-1],u+=t(o>>2),u+=t(o<<4&63),u+="==";break;case 2:o=(e[e.length-2]<<8)+e[e.length-1],u+=t(o>>10),u+=t(o>>4&63),u+=t(o<<2&63),u+="="}return u}var o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="+".charCodeAt(0),s="/".charCodeAt(0),u="0".charCodeAt(0),l="a".charCodeAt(0),c="A".charCodeAt(0),h="-".charCodeAt(0),f="_".charCodeAt(0);e.toByteArray=r,e.fromByteArray=i}("undefined"==typeof r?this.base64js={}:r)},{}],44:[function(e,t,r){r.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,c=-7,h=r?i-1:0,f=r?-1:1,p=e[t+h];for(h+=f,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+h],h+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?0/0:(p?-1:1)*(1/0);a+=Math.pow(2,n),o-=l}return(p?-1:1)*a*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+h>=1?f/u:f*Math.pow(2,1-h),t*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(t*u-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<0;e[r+p]=255&a,p+=d,a/=256,l-=8);e[r+p-d]|=128*g}},{}],45:[function(e,t,r){var n=Array.isArray,i=Object.prototype.toString;t.exports=n||function(e){return!!e&&"[object Array]"==i.call(e)}},{}],46:[function(e,t,r){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function o(e){return"number"==typeof e}function a(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!o(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,r,n,o,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(r=this._events[e],s(r))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),u=1;n>u;u++)o[u-1]=arguments[u];r.apply(this,o)}else if(a(r)){for(n=arguments.length,o=new Array(n-1),u=1;n>u;u++)o[u-1]=arguments[u];for(l=r.slice(),n=l.length,u=0;n>u;u++)l[u].apply(this,o)}return!0},n.prototype.addListener=function(e,t){var r;if(!i(t))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned){var r;r=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,r&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())}return this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var n=!1;return r.listener=t,this.on(e,r),this},n.prototype.removeListener=function(e,t){var r,n,o,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],o=r.length,n=-1,r===t||i(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(r)){for(s=o;s-->0;)if(r[s]===t||r[s].listener&&r[s].listener===t){n=s;break}if(0>n)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],i(r))this.removeListener(e,r);else for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.listenerCount=function(e,t){var r;return r=e._events&&e._events[t]?i(e._events[t])?1:e._events[t].length:0}},{}],47:[function(e,t,r){var n=t.exports,i=(e("events").EventEmitter,e("./lib/request")),o=e("url");n.request=function(e,t){"string"==typeof e&&(e=o.parse(e)),e||(e={}),e.host||e.port||(e.port=parseInt(window.location.port,10)),!e.host&&e.hostname&&(e.host=e.hostname),e.protocol||(e.protocol=e.scheme?e.scheme+":":window.location.protocol),e.host||(e.host=window.location.hostname||window.location.host),/:/.test(e.host)&&(e.port||(e.port=e.host.split(":")[1]),e.host=e.host.split(":")[0]),e.port||(e.port="https:"==e.protocol?443:80);var r=new i(new a,e);return t&&r.on("response",t),r},n.get=function(e,t){e.method="GET";var r=n.request(e,t);return r.end(),r},n.Agent=function(){},n.Agent.defaultMaxSockets=4;var a=function(){if("undefined"==typeof window)throw new Error("no window object present");if(window.XMLHttpRequest)return window.XMLHttpRequest;if(window.ActiveXObject){for(var e=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Microsoft.XMLHTTP"],t=0;tthis.offset&&(this.emit("data",t.slice(this.offset)),this.offset=t.length))};var u=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{stream:72,util:76}],50:[function(e,t,r){!function(){function e(e){this.message=e}var t="undefined"!=typeof r?r:this,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.prototype=new Error,e.prototype.name="InvalidCharacterError",t.btoa||(t.btoa=function(t){for(var r,i,o=0,a=n,s="";t.charAt(0|o)||(a="=",o%1);s+=a.charAt(63&r>>8-o%1*8)){if(i=t.charCodeAt(o+=.75),i>255)throw new e("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|i}return s}),t.atob||(t.atob=function(t){if(t=t.replace(/=+$/,""),t.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,o=0,a=0,s="";i=t.charAt(a++);~i&&(r=o%4?64*r+i:i,o++%4)?s+=String.fromCharCode(255&r>>(-2*o&6)):0)i=n.indexOf(i);return s})}()},{}],51:[function(e,t,r){var n=e("http"),i=t.exports;for(var o in n)n.hasOwnProperty(o)&&(i[o]=n[o]);i.request=function(e,t){return e||(e={}),e.scheme="https",n.request.call(this,e,t)}},{http:47}],52:[function(e,t,r){t.exports="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],53:[function(e,t,r){t.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},{}],54:[function(e,t,r){r.endianness=function(){return"LE"},r.hostname=function(){return"undefined"!=typeof location?location.hostname:""},r.loadavg=function(){return[]},r.uptime=function(){return 0},r.freemem=function(){return Number.MAX_VALUE},r.totalmem=function(){return Number.MAX_VALUE},r.cpus=function(){return[]},r.type=function(){return"Browser"},r.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},r.networkInterfaces=r.getNetworkInterfaces=function(){return{}},r.arch=function(){return"javascript"},r.platform=function(){return"browser"},r.tmpdir=r.tmpDir=function(){return"/tmp"},r.EOL="\n"},{}],55:[function(e,t,r){(function(e){function t(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(r=a+"/"+r,i="/"===a.charAt(0))}return r=t(n(r.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+r||"."},r.normalize=function(e){var i=r.isAbsolute(e),o="/"===a(e,-1);return e=t(n(e.split("/"),function(e){return!!e}),!i).join("/"),e||i||(e="."),e&&o&&(e+="/"),(i?"/":"")+e},r.isAbsolute=function(e){return"/"===e.charAt(0)},r.join=function(){var e=Array.prototype.slice.call(arguments,0);return r.normalize(n(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},r.relative=function(e,t){function n(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=r.resolve(e).substr(1),t=r.resolve(t).substr(1);for(var i=n(e.split("/")),o=n(t.split("/")),a=Math.min(i.length,o.length),s=a,u=0;a>u;u++)if(i[u]!==o[u]){s=u;break}for(var l=[],u=s;ut&&(t=e.length+t),e.substr(t,r)}}).call(this,e("_process"))},{_process:56}],56:[function(e,t,r){function n(){if(!s){s=!0;for(var e,t=a.length;t;){e=a,a=[];for(var r=-1;++ri;)t=e.charCodeAt(i++),t>=55296&&56319>=t&&o>i?(r=e.charCodeAt(i++),56320==(64512&r)?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--)):n.push(t);return n}function l(e){return a(e,function(e){var t="";return e>65535&&(e-=65536,t+=P(e>>>10&1023|55296),e=56320|1023&e),t+=P(e)}).join("")}function c(e){return 10>e-48?e-22:26>e-65?e-65:26>e-97?e-97:k}function h(e,t){return e+22+75*(26>e)-((0!=t)<<5)}function f(e,t,r){var n=0;for(e=r?V(e/C):e>>1,e+=V(e/t);e>B*O>>1;n+=k)e=V(e/B);return V(n+(B+1)*e/(e+E))}function p(e){var t,r,n,i,a,s,u,h,p,d,g=[],m=e.length,v=0,b=M,y=A;for(r=e.lastIndexOf(L),0>r&&(r=0),n=0;r>n;++n)e.charCodeAt(n)>=128&&o("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;m>i;){for(a=v,s=1,u=k;i>=m&&o("invalid-input"),h=c(e.charCodeAt(i++)),(h>=k||h>V((x-v)/s))&&o("overflow"),v+=h*s,p=y>=u?S:u>=y+O?O:u-y,!(p>h);u+=k)d=k-p,s>V(x/d)&&o("overflow"),s*=d;t=g.length+1,y=f(v-a,t,0==a),V(v/t)>x-b&&o("overflow"),b+=V(v/t),v%=t,g.splice(v++,0,b)}return l(g)}function d(e){var t,r,n,i,a,s,l,c,p,d,g,m,v,b,y,w=[];for(e=u(e),m=e.length,t=M,r=0,a=A,s=0;m>s;++s)g=e[s],128>g&&w.push(P(g));for(n=i=w.length,i&&w.push(L);m>n;){for(l=x,s=0;m>s;++s)g=e[s],g>=t&&l>g&&(l=g);for(v=n+1,l-t>V((x-r)/v)&&o("overflow"),r+=(l-t)*v,t=l,s=0;m>s;++s)if(g=e[s],t>g&&++r>x&&o("overflow"),g==t){for(c=r,p=k;d=a>=p?S:p>=a+O?O:p-a,!(d>c);p+=k)y=c-d,b=k-d,w.push(P(h(d+y%b,0))),c=V(y/b);w.push(P(h(c,0))),a=f(r,v,n==i),r=0,++n}++r,++t}return w.join("")}function g(e){return s(e,function(e){return R.test(e)?p(e.slice(4).toLowerCase()):e})}function m(e){return s(e,function(e){return j.test(e)?"xn--"+d(e):e})}var v="object"==typeof n&&n,b="object"==typeof r&&r&&r.exports==v&&r,y="object"==typeof t&&t;(y.global===y||y.window===y)&&(i=y);var w,_,x=2147483647,k=36,S=1,O=26,E=38,C=700,A=72,M=128,L="-",R=/^xn--/,j=/[^ -~]/,I=/\x2E|\u3002|\uFF0E|\uFF61/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},B=k-S,V=Math.floor,P=String.fromCharCode;if(w={version:"1.2.4",ucs2:{decode:u,encode:l},decode:p,encode:d,toASCII:m,toUnicode:g},"function"==typeof e&&"object"==typeof e.amd&&e.amd)e("punycode",function(){return w});else if(v&&!v.nodeType)if(b)b.exports=w;else for(_ in w)w.hasOwnProperty(_)&&(v[_]=w[_]);else i.punycode=w}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],58:[function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var l=e.length;u>0&&l>u&&(l=u);for(var c=0;l>c;++c){var h,f,p,d,g=e[c].replace(s,"%20"),m=g.indexOf(r);m>=0?(h=g.substr(0,m),f=g.substr(m+1)):(h=g,f=""),p=decodeURIComponent(h),d=decodeURIComponent(f),n(a,p)?i(a[p])?a[p].push(d):a[p]=[a[p],d]:a[p]=d}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],59:[function(e,t,r){"use strict";function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;nr;r++)t(e[r],r)}t.exports=n;var a=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},s=e("core-util-is");s.inherits=e("inherits");var u=e("./_stream_readable"),l=e("./_stream_writable");s.inherits(n,u),o(a(l.prototype),function(e){n.prototype[e]||(n.prototype[e]=l.prototype[e])})}).call(this,e("_process"))},{"./_stream_readable":64,"./_stream_writable":66,_process:56,"core-util-is":67,inherits:52}],63:[function(e,t,r){function n(e){return this instanceof n?void i.call(this,e):new n(e)}t.exports=n;var i=e("./_stream_transform"),o=e("core-util-is");o.inherits=e("inherits"),o.inherits(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":65,"core-util-is":67,inherits:52}],64:[function(e,t,r){(function(r){function n(t,r){var n=e("./_stream_duplex");t=t||{};var i=t.highWaterMark,o=t.objectMode?16:16384;this.highWaterMark=i||0===i?i:o,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!t.objectMode,r instanceof n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(A||(A=e("string_decoder/").StringDecoder),this.decoder=new A(t.encoding),this.encoding=t.encoding)}function i(t){e("./_stream_duplex");return this instanceof i?(this._readableState=new n(t,this),this.readable=!0,void E.call(this)):new i(t)}function o(e,t,r,n,i){var o=l(t,r);if(o)e.emit("error",o);else if(C.isNullOrUndefined(r))t.reading=!1,t.ended||c(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!i){var s=new Error("stream.push() after EOF");e.emit("error",s)}else if(t.endEmitted&&i){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else!t.decoder||i||n||(r=t.decoder.write(r)),i||(t.reading=!1),t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&h(e)),p(e,t);else i||(t.reading=!1);return a(t)}function a(e){return!e.ended&&(e.needReadable||e.length=L)e=L;else{e--;for(var t=1;32>t;t<<=1)e|=e>>t;e++}return e}function u(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:isNaN(e)||C.isNull(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:0>=e?0:(e>t.highWaterMark&&(t.highWaterMark=s(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function l(e,t){var r=null;return C.isBuffer(t)||C.isString(t)||C.isNullOrUndefined(t)||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function c(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,h(e)}function h(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(M("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(function(){f(e)}):f(e))}function f(e){M("emit readable"),e.emit("readable"),b(e)}function p(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(function(){d(e,t)}))}function d(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=i)r=o?n.join(""):S.concat(n,i),n.length=0;else if(el&&e>u;l++){var s=n[0],h=Math.min(e-u,s.length);o?r+=s.slice(0,h):s.copy(r,u,0,h),h0)throw new Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,r.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function _(e,t){for(var r=0,n=e.length;n>r;r++)t(e[r],r)}function x(e,t){for(var r=0,n=e.length;n>r;r++)if(e[r]===t)return r;return-1}t.exports=i;var k=e("isarray"),S=e("buffer").Buffer;i.ReadableState=n;var O=e("events").EventEmitter;O.listenerCount||(O.listenerCount=function(e,t){return e.listeners(t).length});var E=e("stream"),C=e("core-util-is");C.inherits=e("inherits");var A,M=e("util");M=M&&M.debuglog?M.debuglog("stream"):function(){},C.inherits(i,E),i.prototype.push=function(e,t){var r=this._readableState;return C.isString(e)&&!r.objectMode&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=new S(e,t),t="")),o(this,r,e,t,!1)},i.prototype.unshift=function(e){var t=this._readableState;return o(this,t,e,"",!0)},i.prototype.setEncoding=function(t){return A||(A=e("string_decoder/").StringDecoder),this._readableState.decoder=new A(t),this._readableState.encoding=t,this};var L=8388608;i.prototype.read=function(e){M("read",e);var t=this._readableState,r=e;if((!C.isNumber(e)||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return M("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?w(this):h(this),null;if(e=u(e,t),0===e&&t.ended)return 0===t.length&&w(this),null;var n=t.needReadable;M("need readable",n),(0===t.length||t.length-e0?y(e,t):null,C.isNull(i)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),r!==e&&t.ended&&0===t.length&&w(this),C.isNull(i)||this.emit("data",i),i},i.prototype._read=function(e){this.emit("error",new Error("not implemented"))},i.prototype.pipe=function(e,t){function n(e){M("onunpipe"),e===h&&o()}function i(){M("onend"),e.end()}function o(){M("cleanup"),e.removeListener("close",u),e.removeListener("finish",l),e.removeListener("drain",m),e.removeListener("error",s),e.removeListener("unpipe",n),h.removeListener("end",i),h.removeListener("end",o),h.removeListener("data",a),!f.awaitDrain||e._writableState&&!e._writableState.needDrain||m()}function a(t){M("ondata");var r=e.write(t);!1===r&&(M("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++,h.pause())}function s(t){M("onerror",t),c(),e.removeListener("error",s),0===O.listenerCount(e,"error")&&e.emit("error",t)}function u(){e.removeListener("finish",l),c()}function l(){M("onfinish"),e.removeListener("close",u),c()}function c(){M("unpipe"),h.unpipe(e)}var h=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=e;break;case 1:f.pipes=[f.pipes,e];break;default:f.pipes.push(e)}f.pipesCount+=1,M("pipe count=%d opts=%j",f.pipesCount,t);var p=(!t||t.end!==!1)&&e!==r.stdout&&e!==r.stderr,d=p?i:o;f.endEmitted?r.nextTick(d):h.once("end",d),e.on("unpipe",n);var m=g(h);return e.on("drain",m),h.on("data",a),e._events&&e._events.error?k(e._events.error)?e._events.error.unshift(s):e._events.error=[s,e._events.error]:e.on("error",s),e.once("close",u),e.once("finish",l),e.emit("pipe",h),f.flowing||(M("pipe resume"),h.resume()),e},i.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;n>i;i++)r[i].emit("unpipe",this);return this}var i=x(t.pipes,e);return-1===i?this:(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},i.prototype.on=function(e,t){var n=E.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&this.readable){var i=this._readableState;if(!i.readableListening)if(i.readableListening=!0,i.emittedReadable=!1,i.needReadable=!0,i.reading)i.length&&h(this,i);else{var o=this;r.nextTick(function(){M("readable nexttick read 0"),o.read(0)})}}return n},i.prototype.addListener=i.prototype.on,i.prototype.resume=function(){var e=this._readableState;return e.flowing||(M("resume"),e.flowing=!0,e.reading||(M("resume read 0"),this.read(0)),m(this,e)),this},i.prototype.pause=function(){return M("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(M("pause"),this._readableState.flowing=!1,this.emit("pause")),this},i.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;e.on("end",function(){if(M("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)}),e.on("data",function(i){if(M("wrapped data"),t.decoder&&(i=t.decoder.write(i)),i&&(t.objectMode||i.length)){var o=n.push(i);o||(r=!0,e.pause())}});for(var i in e)C.isFunction(e[i])&&C.isUndefined(this[i])&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));var o=["error","close","destroy","pause","resume"];return _(o,function(t){e.on(t,n.emit.bind(n,t))}),n._read=function(t){M("wrapped _read",t),r&&(r=!1,e.resume())},n},i._fromList=y}).call(this,e("_process"))},{"./_stream_duplex":62,_process:56,buffer:42,"core-util-is":67,events:46,inherits:52,isarray:53,stream:72,"string_decoder/":73,util:41}],65:[function(e,t,r){function n(e,t){this.afterTransform=function(e,r){return i(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function i(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,u.isNullOrUndefined(r)||e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length1){for(var r=[],n=0;n=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&56319>=n)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),t+=e.toString(this.encoding,0,i);var i=t.length-1,n=t.charCodeAt(i);if(n>=55296&&56319>=n){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},l.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(2>=t&&r>>4==14){this.charLength=3;break}if(3>=t&&r>>3==30){this.charLength=4;break}}this.charReceived=t},l.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},{buffer:42}],74:[function(e,t,r){function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(e,t,r){if(e&&l(e)&&e instanceof n)return e;var i=new n;return i.parse(e,t,r),i}function o(e){return u(e)&&(e=i(e)),e instanceof n?e.format():n.prototype.format.call(e)}function a(e,t){return i(e,!1,!0).resolve(t)}function s(e,t){return e?i(e,!1,!0).resolveObject(t):t}function u(e){return"string"==typeof e}function l(e){return"object"==typeof e&&null!==e}function c(e){return null===e}function h(e){return null==e}var f=e("punycode");r.parse=i,r.resolve=a,r.resolveObject=s,r.format=o,r.Url=n;var p=/^([a-z0-9.+-]+:)/i,d=/:[0-9]*$/,g=["<",">",'"',"`"," ","\r","\n"," "],m=["{","}","|","\\","^","`"].concat(g),v=["'"].concat(m),b=["%","/","?",";","#"].concat(v),y=["/","?","#"],w=255,_=/^[a-z0-9A-Z_-]{0,63}$/,x=/^([a-z0-9A-Z_-]{0,63})(.*)$/,k={javascript:!0,"javascript:":!0},S={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},E=e("querystring");n.prototype.parse=function(e,t,r){if(!u(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e;n=n.trim();var i=p.exec(n);if(i){i=i[0];var o=i.toLowerCase();this.protocol=o,n=n.substr(i.length)}if(r||i||n.match(/^\/\/[^@\/]+@[^@\/]+/)){var a="//"===n.substr(0,2);!a||i&&S[i]||(n=n.substr(2),this.slashes=!0)}if(!S[i]&&(a||i&&!O[i])){for(var s=-1,l=0;lc)&&(s=c)}var h,d;d=-1===s?n.lastIndexOf("@"):n.lastIndexOf("@",s),-1!==d&&(h=n.slice(0,d),n=n.slice(d+1),this.auth=decodeURIComponent(h)),s=-1;for(var l=0;lc)&&(s=c)}-1===s&&(s=n.length),this.host=n.slice(0,s),n=n.slice(s),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var m=this.hostname.split(/\./),l=0,C=m.length;C>l;l++){var A=m[l];if(A&&!A.match(_)){for(var M="",L=0,R=A.length;R>L;L++)M+=A.charCodeAt(L)>127?"x":A[L];if(!M.match(_)){var j=m.slice(0,l),I=m.slice(l+1),T=A.match(x);T&&(j.push(T[1]),I.unshift(T[2])),I.length&&(n="/"+I.join(".")+n),this.hostname=j.join(".");break}}}if(this.hostname=this.hostname.length>w?"":this.hostname.toLowerCase(),!g){for(var B=this.hostname.split("."),V=[],l=0;ll;l++){var D=v[l],N=encodeURIComponent(D);N===D&&(N=escape(D)),n=n.split(D).join(N)}var F=n.indexOf("#");-1!==F&&(this.hash=n.substr(F),n=n.slice(0,F));var q=n.indexOf("?");if(-1!==q?(this.search=n.substr(q),this.query=n.substr(q+1),t&&(this.query=E.parse(this.query)),n=n.slice(0,q)):t&&(this.search="",this.query={}),n&&(this.pathname=n),O[o]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var U=this.pathname||"",P=this.search||"";this.path=U+P}return this.href=this.format(),this},n.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&l(this.query)&&Object.keys(this.query).length&&(o=E.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||O[t])&&i!==!1?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),a=a.replace("#","%23"),t+i+r+a+n},n.prototype.resolve=function(e){return this.resolveObject(i(e,!1,!0)).format()},n.prototype.resolveObject=function(e){if(u(e)){var t=new n;t.parse(e,!1,!0),e=t}var r=new n;if(Object.keys(this).forEach(function(e){r[e]=this[e]},this),r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol)return Object.keys(e).forEach(function(t){"protocol"!==t&&(r[t]=e[t])}),O[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r;if(e.protocol&&e.protocol!==r.protocol){if(!O[e.protocol])return Object.keys(e).forEach(function(t){r[t]=e[t]}),r.href=r.format(),r;if(r.protocol=e.protocol,e.host||S[e.protocol])r.pathname=e.pathname;else{for(var i=(e.pathname||"").split("/");i.length&&!(e.host=i.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==i[0]&&i.unshift(""),i.length<2&&i.unshift(""),r.pathname=i.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var o=r.pathname||"",a=r.search||"";r.path=o+a}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var s=r.pathname&&"/"===r.pathname.charAt(0),l=e.host||e.pathname&&"/"===e.pathname.charAt(0),f=l||s||r.host&&e.pathname,p=f,d=r.pathname&&r.pathname.split("/")||[],i=e.pathname&&e.pathname.split("/")||[],g=r.protocol&&!O[r.protocol];if(g&&(r.hostname="",r.port=null,r.host&&(""===d[0]?d[0]=r.host:d.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===i[0]?i[0]=e.host:i.unshift(e.host)),e.host=null),f=f&&(""===i[0]||""===d[0])),l)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,d=i;else if(i.length)d||(d=[]),d.pop(),d=d.concat(i),r.search=e.search,r.query=e.query;else if(!h(e.search)){if(g){r.hostname=r.host=d.shift();var m=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;m&&(r.auth=m.shift(),r.host=r.hostname=m.shift())}return r.search=e.search,r.query=e.query,c(r.pathname)&&c(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!d.length)return r.pathname=null,r.path=r.search?"/"+r.search:null,r.href=r.format(),r;for(var v=d.slice(-1)[0],b=(r.host||e.host)&&("."===v||".."===v)||""===v,y=0,w=d.length;w>=0;w--)v=d[w],"."==v?d.splice(w,1):".."===v?(d.splice(w,1),y++):y&&(d.splice(w,1),y--);if(!f&&!p)for(;y--;y)d.unshift("..");!f||""===d[0]||d[0]&&"/"===d[0].charAt(0)||d.unshift(""),b&&"/"!==d.join("/").substr(-1)&&d.push("");var _=""===d[0]||d[0]&&"/"===d[0].charAt(0);if(g){r.hostname=r.host=_?"":d.length?d.shift():"";var m=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;m&&(r.auth=m.shift(),r.host=r.hostname=m.shift())}return f=f||r.host&&d.length,f&&!_&&d.unshift(""),d.length?r.pathname=d.join("/"):(r.pathname=null,r.path=null),c(r.pathname)&&c(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=d.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{punycode:57,querystring:60}],75:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],76:[function(e,t,r){(function(t,n){function i(e,t){var n={seen:[],stylize:a};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(t)?n.showHidden=t:t&&r._extend(n,t),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=o),u(n,e,n.depth)}function o(e,t){var r=i.styles[t];return r?"["+i.colors[r][0]+"m"+e+"["+i.colors[r][1]+"m":e}function a(e,t){return e}function s(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function u(e,t,n){if(e.customInspect&&t&&E(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return y(i)||(i=u(e,i,n)),i}var o=l(e,t);if(o)return o;var a=Object.keys(t),g=s(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),O(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return c(t);if(0===a.length){if(E(t)){var m=t.name?": "+t.name:"";return e.stylize("[Function"+m+"]","special")}if(x(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(S(t))return e.stylize(Date.prototype.toString.call(t),"date");if(O(t))return c(t)}var v="",b=!1,w=["{","}"];if(d(t)&&(b=!0,w=["[","]"]),E(t)){var _=t.name?": "+t.name:"";v=" [Function"+_+"]"}if(x(t)&&(v=" "+RegExp.prototype.toString.call(t)),S(t)&&(v=" "+Date.prototype.toUTCString.call(t)),O(t)&&(v=" "+c(t)),0===a.length&&(!b||0==t.length))return w[0]+v+w[1];if(0>n)return x(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var k;return k=b?h(e,t,n,g,a):a.map(function(r){return f(e,t,n,g,r,b)}),e.seen.pop(),p(k,v,w)}function l(e,t){if(_(t))return e.stylize("undefined","undefined");if(y(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return b(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i){for(var o=[],a=0,s=t.length;s>a;++a)o.push(R(t,String(a))?f(e,t,r,n,String(a),!0):"");return i.forEach(function(i){i.match(/^\d+$/)||o.push(f(e,t,r,n,i,!0))}),o}function f(e,t,r,n,i,o){var a,s,l;if(l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},l.get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),R(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=m(r)?u(e,l.value,null):u(e,l.value,r-1),s.indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),_(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e,t,r){var n=0,i=e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function d(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function m(e){return null===e}function v(e){return null==e}function b(e){return"number"==typeof e}function y(e){return"string"==typeof e}function w(e){return"symbol"==typeof e}function _(e){return void 0===e}function x(e){return k(e)&&"[object RegExp]"===A(e)}function k(e){return"object"==typeof e&&null!==e}function S(e){return k(e)&&"[object Date]"===A(e)}function O(e){return k(e)&&("[object Error]"===A(e)||e instanceof Error)}function E(e){return"function"==typeof e}function C(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function A(e){return Object.prototype.toString.call(e)}function M(e){return 10>e?"0"+e.toString(10):e.toString(10)}function L(){var e=new Date,t=[M(e.getHours()),M(e.getMinutes()),M(e.getSeconds())].join(":");return[e.getDate(),B[e.getMonth()],t].join(" ")}function R(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var j=/%[sdj%]/g;r.format=function(e){if(!y(e)){for(var t=[],r=0;r=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}}),s=n[r];o>r;s=n[++r])a+=m(s)||!k(s)?" "+s:" "+i(s);return a},r.deprecate=function(e,i){function o(){if(!a){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),a=!0}return e.apply(this,arguments)}if(_(n.process))return function(){return r.deprecate(e,i).apply(this,arguments)};if(t.noDeprecation===!0)return e;var a=!1;return o};var I,T={};r.debuglog=function(e){if(_(I)&&(I=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!T[e])if(new RegExp("\\b"+e+"\\b","i").test(I)){var n=t.pid;T[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else T[e]=function(){};return T[e]},r.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=d,r.isBoolean=g,r.isNull=m,r.isNullOrUndefined=v,r.isNumber=b,r.isString=y,r.isSymbol=w,r.isUndefined=_,r.isRegExp=x,r.isObject=k,r.isDate=S,r.isError=O,r.isFunction=E,r.isPrimitive=C,r.isBuffer=e("./support/isBuffer");var B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){console.log("%s - %s",L(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!k(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":75,_process:56,inherits:52}],77:[function(e,t,r){r.SourceMapGenerator=e("./source-map/source-map-generator").SourceMapGenerator,r.SourceMapConsumer=e("./source-map/source-map-consumer").SourceMapConsumer,r.SourceNode=e("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":83,"./source-map/source-map-generator":84,"./source-map/source-node":85}],78:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(){this._array=[],this._set={}}var i=e("./util");n.fromArray=function(e,t){for(var r=new n,i=0,o=e.length;o>i;i++)r.add(e[i],t);return r},n.prototype.add=function(e,t){var r=this.has(e),n=this._array.length;(!r||t)&&this._array.push(e),r||(this._set[i.toSetString(e)]=n)},n.prototype.has=function(e){return Object.prototype.hasOwnProperty.call(this._set,i.toSetString(e))},n.prototype.indexOf=function(e){if(this.has(e))return this._set[i.toSetString(e)];throw new Error('"'+e+'" is not in the set.')},n.prototype.at=function(e){if(e>=0&&ee?(-e<<1)+1:(e<<1)+0}function i(e){var t=1===(1&e),r=e>>1;return t?-r:r}var o=e("./base64"),a=5,s=1<>>=a,i>0&&(t|=l),r+=o.encode(t);while(i>0);return r},t.decode=function(e,t){var r,n,s=0,c=e.length,h=0,f=0;do{if(s>=c)throw new Error("Expected more digits in base 64 VLQ value.");n=o.decode(e.charAt(s++)),r=!!(n&l),n&=u,h+=n<0?t-a>1?n(a,t,r,i,o):a:a-e>1?n(e,a,r,i,o):0>e?-1:e}t.search=function(e,t,r){return 0===t.length?-1:n(-1,t.length,e,t,r)}})},{amdefine:87}],82:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,a=t.generatedColumn;return n>r||n==r&&a>=i||o.compareByGeneratedPositions(e,t)<=0}function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var o=e("./util");i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(o.compareByGeneratedPositions),this._sorted=!0),this._array},t.MappingList=i})},{"./util":86,amdefine:87}],83:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=i.getArg(t,"version"),n=i.getArg(t,"sources"),o=i.getArg(t,"names",[]),s=i.getArg(t,"sourceRoot",null),u=i.getArg(t,"sourcesContent",null),l=i.getArg(t,"mappings"),c=i.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);n=n.map(i.normalize),this._names=a.fromArray(o,!0),this._sources=a.fromArray(n,!0),this.sourceRoot=s,this.sourcesContent=u,this._mappings=l,this.file=c}var i=e("./util"),o=e("./binary-search"),a=e("./array-set").ArraySet,s=e("./base64-vlq");n.fromSourceMap=function(e){var t=Object.create(n.prototype);return t._names=a.fromArray(e._names.toArray(),!0),t._sources=a.fromArray(e._sources.toArray(),!0),t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file,t.__generatedMappings=e._mappings.toArray().slice(),t.__originalMappings=e._mappings.toArray().slice().sort(i.compareByOriginalPositions),t},n.prototype._version=3,Object.defineProperty(n.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return null!=this.sourceRoot?i.join(this.sourceRoot,e):e},this)}}),n.prototype.__generatedMappings=null,Object.defineProperty(n.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot)),this.__generatedMappings}}),n.prototype.__originalMappings=null,Object.defineProperty(n.prototype,"_originalMappings",{get:function(){return this.__originalMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot)),this.__originalMappings}}),n.prototype._nextCharIsMappingSeparator=function(e){var t=e.charAt(0);return";"===t||","===t},n.prototype._parseMappings=function(e,t){for(var r,n=1,o=0,a=0,u=0,l=0,c=0,h=e,f={};h.length>0;)if(";"===h.charAt(0))n++,h=h.slice(1),o=0;else if(","===h.charAt(0))h=h.slice(1);else{if(r={},r.generatedLine=n,s.decode(h,f),r.generatedColumn=o+f.value,o=r.generatedColumn,h=f.rest,h.length>0&&!this._nextCharIsMappingSeparator(h)){if(s.decode(h,f),r.source=this._sources.at(l+f.value),l+=f.value,h=f.rest,0===h.length||this._nextCharIsMappingSeparator(h))throw new Error("Found a source, but no line and column");if(s.decode(h,f),r.originalLine=a+f.value,a=r.originalLine,r.originalLine+=1,h=f.rest,0===h.length||this._nextCharIsMappingSeparator(h))throw new Error("Found a source and line, but no column");s.decode(h,f),r.originalColumn=u+f.value,u=r.originalColumn,h=f.rest,h.length>0&&!this._nextCharIsMappingSeparator(h)&&(s.decode(h,f),r.name=this._names.at(c+f.value),c+=f.value,h=f.rest)}this.__generatedMappings.push(r),"number"==typeof r.originalLine&&this.__originalMappings.push(r)}this.__generatedMappings.sort(i.compareByGeneratedPositions),this.__originalMappings.sort(i.compareByOriginalPositions)},n.prototype._findMapping=function(e,t,r,n,i){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return o.search(e,t,i)},n.prototype.computeColumnSpans=function(){for(var e=0;e=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var o=i.getArg(n,"source",null);return null!=o&&null!=this.sourceRoot&&(o=i.join(this.sourceRoot,o)),{source:o,line:i.getArg(n,"originalLine",null),column:i.getArg(n,"originalColumn",null),name:i.getArg(n,"name",null)}}}return{source:null,line:null,column:null,name:null}},n.prototype.sourceContentFor=function(e){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=i.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var t;if(null!=this.sourceRoot&&(t=i.urlParse(this.sourceRoot))){var r=e.replace(/^file:\/\//,"");if("file"==t.scheme&&this._sources.has(r))return this.sourcesContent[this._sources.indexOf(r)];if((!t.path||"/"==t.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}throw new Error('"'+e+'" is not in the SourceMap.')},n.prototype.generatedPositionFor=function(e){var t={source:i.getArg(e,"source"),originalLine:i.getArg(e,"line"),originalColumn:i.getArg(e,"column")};null!=this.sourceRoot&&(t.source=i.relative(this.sourceRoot,t.source));var r=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions);if(r>=0){var n=this._originalMappings[r];return{line:i.getArg(n,"generatedLine",null),column:i.getArg(n,"generatedColumn",null),lastColumn:i.getArg(n,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},n.prototype.allGeneratedPositionsFor=function(e){var t={source:i.getArg(e,"source"),originalLine:i.getArg(e,"line"),originalColumn:1/0};null!=this.sourceRoot&&(t.source=i.relative(this.sourceRoot,t.source));var r=[],n=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions);if(n>=0)for(var o=this._originalMappings[n];o&&o.originalLine===t.originalLine;)r.push({line:i.getArg(o,"generatedLine",null),column:i.getArg(o,"generatedColumn",null),lastColumn:i.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[--n];return r.reverse()},n.GENERATED_ORDER=1,n.ORIGINAL_ORDER=2,n.prototype.eachMapping=function(e,t,r){var o,a=t||null,s=r||n.GENERATED_ORDER;switch(s){case n.GENERATED_ORDER:o=this._generatedMappings;break;case n.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;o.map(function(e){var t=e.source;return null!=t&&null!=u&&(t=i.join(u,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name}}).forEach(e,a)},t.SourceMapConsumer=n})},{"./array-set":78,"./base64-vlq":79,"./binary-search":81,"./util":86,amdefine:87}],84:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new s,this._sourcesContents=null}var i=e("./base64-vlq"),o=e("./util"),a=e("./array-set").ArraySet,s=e("./mapping-list").MappingList;n.prototype._version=3,n.fromSourceMap=function(e){var t=e.sourceRoot,r=new n({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=o.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)}),e.sources.forEach(function(t){var n=e.sourceContentFor(t);null!=n&&r.setSourceContent(t,n)}),r},n.prototype.addMapping=function(e){var t=o.getArg(e,"generated"),r=o.getArg(e,"original",null),n=o.getArg(e,"source",null),i=o.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,i),null==n||this._sources.has(n)||this._sources.add(n),null==i||this._names.has(i)||this._names.add(i),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:i})},n.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=o.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[o.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},n.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){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.');n=e.file}var i=this._sourceRoot;null!=i&&(n=o.relative(i,n));var s=new a,u=new a;this._mappings.unsortedForEach(function(t){if(t.source===n&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=r&&(t.source=o.join(r,t.source)),null!=i&&(t.source=o.relative(i,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var l=t.source;null==l||s.has(l)||s.add(l);var c=t.name;null==c||u.has(c)||u.add(c)},this),this._sources=s,this._names=u,e.sources.forEach(function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=o.join(r,t)),null!=i&&(t=o.relative(i,t)),this.setSourceContent(t,n))},this)},n.prototype._validateMapping=function(e,t,r,n){if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!r&&!n||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&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},n.prototype._serializeMappings=function(){for(var e,t=0,r=1,n=0,a=0,s=0,u=0,l="",c=this._mappings.toArray(),h=0,f=c.length;f>h;h++){if(e=c[h],e.generatedLine!==r)for(t=0;e.generatedLine!==r;)l+=";",r++;else if(h>0){if(!o.compareByGeneratedPositions(e,c[h-1]))continue;l+=","}l+=i.encode(e.generatedColumn-t),t=e.generatedColumn,null!=e.source&&(l+=i.encode(this._sources.indexOf(e.source)-u),u=this._sources.indexOf(e.source),l+=i.encode(e.originalLine-1-a),a=e.originalLine-1,l+=i.encode(e.originalColumn-n),n=e.originalColumn,null!=e.name&&(l+=i.encode(this._names.indexOf(e.name)-s),s=this._names.indexOf(e.name)))}return l},n.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var r=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},n.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},n.prototype.toString=function(){return JSON.stringify(this)},t.SourceMapGenerator=n})},{"./array-set":78,"./base64-vlq":79,"./mapping-list":82,"./util":86,amdefine:87}],85:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[u]=!0,null!=n&&this.add(n)}var i=e("./source-map-generator").SourceMapGenerator,o=e("./util"),a=/(\r?\n)/,s=10,u="$$$isSourceNode$$$";n.fromStringWithSourceMap=function(e,t,r){function i(e,t){if(null===e||void 0===e.source)s.add(t);else{var i=r?o.join(r,e.source):e.source;s.add(new n(e.originalLine,e.originalColumn,i,t,e.name))}}var s=new n,u=e.split(a),l=function(){var e=u.shift(),t=u.shift()||"";return e+t},c=1,h=0,f=null;return t.eachMapping(function(e){if(null!==f){if(!(c0&&(f&&i(f,l()),s.add(u.join(""))),t.sources.forEach(function(e){var n=t.sourceContentFor(e);null!=n&&(null!=r&&(e=o.join(r,e)),s.setSourceContent(e,n))}),s},n.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[u]&&"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},n.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[u]&&"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},n.prototype.walk=function(e){for(var t,r=0,n=this.children.length;n>r;r++)t=this.children[r],t[u]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},n.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;n-1>r;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},n.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[u]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},n.prototype.setSourceContent=function(e,t){this.sourceContents[o.toSetString(e)]=t},n.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;r>t;t++)this.children[t][u]&&this.children[t].walkSourceContents(e);for(var n=Object.keys(this.sourceContents),t=0,r=n.length;r>t;t++)e(o.fromSetString(n[t]),this.sourceContents[n[t]])},n.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},n.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new i(e),n=!1,o=null,a=null,u=null,l=null;return this.walk(function(e,i){t.code+=e,null!==i.source&&null!==i.line&&null!==i.column?((o!==i.source||a!==i.line||u!==i.column||l!==i.name)&&r.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name}),o=i.source,a=i.line,u=i.column,l=i.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),o=null,n=!1);for(var c=0,h=e.length;h>c;c++)e.charCodeAt(c)===s?(t.line++,t.column=0,c+1===h?(o=null,n=!1):n&&r.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name})):t.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:t.code,map:r}},t.SourceNode=n})},{"./source-map-generator":84,"./util":86,amdefine:87}],86:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')}function i(e){var t=e.match(d);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[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 a(e){var t=e,r=i(e);if(r){if(!r.path)return e;t=r.path}for(var n,a="/"===t.charAt(0),s=t.split(/\/+/),u=0,l=s.length-1;l>=0;l--)n=s[l],"."===n?s.splice(l,1):".."===n?u++:u>0&&(""===n?(s.splice(l+1,u),u=0):(s.splice(l,2),u--));return t=s.join("/"),""===t&&(t=a?"/":"."),r?(r.path=t,o(r)):t}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),n=i(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),o(r);if(r||t.match(g))return t;if(n&&!n.host&&!n.path)return n.host=t,o(n);var s="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=s,o(n)):s}function u(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");var r=i(e);return"/"==t.charAt(0)&&r&&"/"==r.path?t.slice(1):0===t.indexOf(e+"/")?t.substr(e.length+1):t}function l(e){return"$"+e}function c(e){return e.substr(1)}function h(e,t){var r=e||"",n=t||"";return(r>n)-(n>r)}function f(e,t,r){var n;return(n=h(e.source,t.source))?n:(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,n||r?n:(n=h(e.name,t.name))?n:(n=e.generatedLine-t.generatedLine,n?n:e.generatedColumn-t.generatedColumn))}function p(e,t,r){var n;return(n=e.generatedLine-t.generatedLine)?n:(n=e.generatedColumn-t.generatedColumn,n||r?n:(n=h(e.source,t.source))?n:(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,n?n:h(e.name,t.name)))}t.getArg=n;var d=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,g=/^data:.+\,.+$/;t.urlParse=i,t.urlGenerate=o,t.normalize=a,t.join=s,t.relative=u,t.toSetString=l,t.fromSetString=c,t.compareByOriginalPositions=f,t.compareByGeneratedPositions=p})},{amdefine:87}],87:[function(e,t,r){(function(r,n){"use strict";function i(t,i){function o(e){var t,r;for(t=0;e[t];t+=1)if(r=e[t],"."===r)e.splice(t,1),t-=1;else if(".."===r){if(1===t&&(".."===e[2]||".."===e[0]))break;t>0&&(e.splice(t-1,2),t-=2)}}function a(e,t){var r;return e&&"."===e.charAt(0)&&t&&(r=t.split("/"),r=r.slice(0,r.length-1),r=r.concat(e.split("/")),o(r),e=r.join("/")),e}function s(e){return function(t){return a(t,e)}}function u(e){function t(t){d[e]=t}return t.fromText=function(e,t){throw new Error("amdefine does not implement load.fromText")},t}function l(e,r,o){var a,s,u,l;if(e)s=d[e]={},u={id:e,uri:n,exports:s},a=h(i,s,u,e);else{if(g)throw new Error("amdefine with no module ID cannot be called more than once per file.");g=!0,s=t.exports,u=t,a=h(i,s,u,t.id)}r&&(r=r.map(function(e){return a(e)})),l="function"==typeof o?o.apply(u.exports,r):o,void 0!==l&&(u.exports=l,e&&(d[e]=u.exports))}function c(e,t,r){Array.isArray(e)?(r=t,t=e,e=void 0):"string"!=typeof e&&(r=e,e=t=void 0),t&&!Array.isArray(t)&&(r=t,t=void 0),t||(t=["require","exports","module"]),e?p[e]=[e,t,r]:l(e,t,r)}var h,f,p={},d={},g=!1,m=e("path");return h=function(e,t,n,i){function o(o,a){return"string"==typeof o?f(e,t,n,o,i):(o=o.map(function(r){return f(e,t,n,r,i)}),void r.nextTick(function(){a.apply(null,o)}))}return o.toUrl=function(e){return 0===e.indexOf(".")?a(e,m.dirname(n.filename)):e},o},i=i||function(){return t.require.apply(t,arguments)},f=function(e,t,r,n,i){var o,c,g=n.indexOf("!"),m=n;if(-1===g){if(n=a(n,i),"require"===n)return h(e,t,r,i);if("exports"===n)return t;if("module"===n)return r;if(d.hasOwnProperty(n))return d[n];if(p[n])return l.apply(null,p[n]),d[n];if(e)return e(m);throw new Error("No module with ID: "+n)}return o=n.substring(0,g),n=n.substring(g+1,n.length),c=f(e,t,r,o,i),n=c.normalize?c.normalize(n,s(i)):a(n,i),d[n]?d[n]:(c.load(n,h(e,t,r,i),u(n),{}),d[n])},c.require=function(e){return d[e]?d[e]:p[e]?(l.apply(null,p[e]),d[e]):void 0},c.amd={},c}t.exports=i}).call(this,e("_process"),"/node_modules\\source-map\\node_modules\\amdefine\\amdefine.js")},{_process:56,path:55}]},{},[1])(1)}); \ No newline at end of file +!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.CleanCSS=e()}}(function(){var e;return function t(e,r,n){function i(a,s){if(!r[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[a]={exports:{}};e[a][0].call(c.exports,function(t){var r=e[a][1][t];return i(r?r:t)},c,c.exports,t,e,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a0?t.errors:null,r):r}return function(e){return t.options.sourceMap?t.inputSourceMapTracker.track(e,function(){return t.options.sourceMapInlineSources?t.inputSourceMapTracker.resolveSources(function(){return r(e)}):r(e)}):r(e)}}function i(e,t){return t.stats=e.stats,t.errors=e.errors,t.warnings=e.warnings,t}function o(e,t){var n=r.hrtime();e.stats.originalSize=e.sourceTracker.removeAll(t).length,t=s(e,t);var i=r.hrtime(n);return e.stats.timeSpent=~~(1e3*i[0]+i[1]/1e6),e.stats.efficiency=1-t.styles.length/e.stats.originalSize,e.stats.minifiedSize=t.styles.length,t}function a(e){return function(t,n){var i=t.constructor.name+"#"+n,o=r.hrtime();e(t,n);var a=r.hrtime(o);console.log("%d ms: "+i,1e3*a[0]+a[1]/1e6)}}function s(e,t){var r=e.options,n=e.inputSourceMapTracker,i=new p(e,r.keepSpecialComments,r.keepBreaks,r.sourceMap),o=new d(r.sourceMap),s=new g(r.sourceMap),u=new m(e,r.sourceMap,r.compatibility.properties.urlQuotes),v=new l(e),b=new c(r,e),y=r.sourceMap?h:f,w=function(e,r){t="function"==typeof e?e(t):e[r](t)};return r.benchmark&&(w=a(w)),w(i,"escape"),w(o,"escape"),w(u,"escape"),w(s,"escape"),w(function(){return b.process(t,y,function(e){return e=s.restore(e),e=u.restore(e),e=r.rebase?v.process(e):e,e=o.restore(e),i.restore(e)},n)}),t}var u=e("./imports/inliner"),l=e("./images/url-rebase"),c=e("./selectors/optimizer"),f=e("./stringifier/simple"),h=e("./stringifier/source-maps"),p=e("./text/comments-processor"),d=e("./text/expressions-processor"),g=e("./text/free-text-processor"),m=e("./text/urls-processor"),v=e("./utils/compatibility"),b=e("./utils/input-source-map-tracker"),y=e("./utils/source-tracker"),w=e("./utils/source-reader"),_=e("./properties/validator"),x=e("fs"),k=e("path"),E=5e3,S=t.exports=function(e){e=e||{},this.options={advanced:void 0===e.advanced?!0:!!e.advanced,aggressiveMerging:void 0===e.aggressiveMerging?!0:!!e.aggressiveMerging,benchmark:e.benchmark,compatibility:new v(e.compatibility).toOptions(),debug:e.debug,explicitRoot:!!e.root,explicitTarget:!!e.target,inliner:e.inliner||{},keepBreaks:e.keepBreaks||!1,keepSpecialComments:"keepSpecialComments"in e?e.keepSpecialComments:"*",mediaMerging:void 0===e.mediaMerging?!0:!!e.mediaMerging,processImport:void 0===e.processImport?!0:!!e.processImport,rebase:void 0===e.rebase?!0:!!e.rebase,relativeTo:e.relativeTo,restructuring:void 0===e.restructuring?!0:!!e.restructuring,root:e.root||r.cwd(),roundingPrecision:e.roundingPrecision,shorthandCompacting:void 0===e.shorthandCompacting?!0:!!e.shorthandCompacting,sourceMap:e.sourceMap,sourceMapInlineSources:!!e.sourceMapInlineSources,target:e.target&&x.existsSync(e.target)&&x.statSync(e.target).isDirectory()?e.target:k.dirname(e.target)},this.options.inliner.timeout=this.options.inliner.timeout||E,this.options.inliner.request=this.options.inliner.request||{}};S.prototype.minify=function(e,t){var i={stats:{},errors:[],warnings:[],options:this.options,debug:this.options.debug,localOnly:!t,sourceTracker:new y,validator:new _(this.options.compatibility)};if(i.options.sourceMap&&(i.inputSourceMapTracker=new b(i)),i.sourceReader=new w(i,e),e=i.sourceReader.toString(),i.options.processImport||e.indexOf("@shallow")>0){var o=t?r.nextTick:function(e){return e()};return o(function(){return new u(i).process(e,{localOnly:i.localOnly,whenDone:n(t,i)})})}return n(t,i)(e)}}).call(this,e("_process"))},{"./images/url-rebase":6,"./imports/inliner":8,"./properties/validator":22,"./selectors/optimizer":26,"./stringifier/simple":34,"./stringifier/source-maps":35,"./text/comments-processor":36,"./text/expressions-processor":38,"./text/free-text-processor":39,"./text/urls-processor":40,"./utils/compatibility":42,"./utils/input-source-map-tracker":44,"./utils/source-reader":48,"./utils/source-tracker":49,_process:68,fs:52,path:67}],3:[function(e,t,r){function n(e,t,r,n){return t+s[r.toLowerCase()]+n}function i(e,t,r){return u[t.toLowerCase()]+r}var o={},a={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"},s={},u={};for(var l in a){var c=a[l];l.length-1,r=e.replace(f,n);return r!=e&&(r=r.replace(f,n)),t?r.replace(h,i):r},t.exports=o},{}],4:[function(e,t,r){function n(e,t,r){this.hue=e,this.saturation=t,this.lightness=r}function i(e,t,r){var n,i,a;if(e%=360,0>e&&(e+=360),e=~~e/360,0>t?t=0:t>100&&(t=100),t=~~t/100,0>r?r=0:r>100&&(r=100),r=~~r/100,0===t)n=i=a=r;else{var s=.5>r?r*(1+t):r+t-r*t,u=2*r-s;n=o(u,s,e+1/3),i=o(u,s,e),a=o(u,s,e-1/3)}return[~~(255*n),~~(255*i),~~(255*a)]}function o(e,t,r){return 0>r&&(r+=1),r>1&&(r-=1),1/6>r?e+6*(t-e)*r:.5>r?t:2/3>r?e+(t-e)*(2/3-r)*6:e}n.prototype.toHex=function(){var e=i(this.hue,this.saturation,this.lightness),t=e[0].toString(16),r=e[1].toString(16),n=e[2].toString(16);return"#"+((1==t.length?"0":"")+t)+((1==r.length?"0":"")+r)+((1==n.length?"0":"")+n)},t.exports=n},{}],5:[function(e,t,r){function n(e,t,r){this.red=e,this.green=t,this.blue=r}n.prototype.toHex=function(){var e=Math.max(0,Math.min(~~this.red,255)),t=Math.max(0,Math.min(~~this.green,255)),r=Math.max(0,Math.min(~~this.blue,255));return"#"+("00000"+(e<<16|t<<8|r).toString(16)).slice(-6)},t.exports=n},{}],6:[function(e,t,r){function n(e){this.outerContext=e}var i=e("path"),o=e("./url-rewriter");n.prototype.process=function(e){var t=this.outerContext.options,r={absolute:t.explicitRoot,relative:!t.explicitRoot&&t.explicitTarget,fromBase:t.relativeTo};return r.absolute||r.relative?(r.absolute&&t.explicitTarget&&this.outerContext.warnings.push("Both 'root' and output file given so rebasing URLs as absolute paths"),r.absolute&&(r.toBase=i.resolve(t.root)),r.relative&&(r.toBase=i.resolve(t.target)),r.fromBase&&r.toBase?new o(r).process(e):e):e},t.exports=n},{"./url-rewriter":7,path:67}],7:[function(e,t,r){(function(r){function n(e,t){this.options=e,this.context=t}function i(e,t){var n,i=".css"==e.substring(e.length-4),s=0===e.indexOf("data:"),u="/"==e[0]||"#"==e[0]||!t.imports&&i||s||null!==/^https?:\/\//.exec(e)||null!==/__\w+__/.exec(e);return!1===t.urls&&(u=t.imports&&i?!1:!0),u?s?"'"+e+"'":e:/https?:\/\//.test(t.toBase)?a.resolve(t.toBase,e):(n=t.absolute?o.resolve(o.join(t.fromBase,e)).replace(t.toBase,""):o.relative(t.toBase,o.join(t.fromBase,e)),"win32"==r.platform?n.replace(/\\/g,"/"):n)}var o=e("path"),a=e("url"),s=e("../utils/url-scanner");n.prototype.process=function(e){var t=this;return new s(e,this.context).reduce(function(e,r){e=e.replace(/^url\(\s*['"]?|['"]?\s*\)$/g,""),r.push("url("+i(e,t.options)+")")})},t.exports=n}).call(this,e("_process"))},{"../utils/url-scanner":51,_process:68,path:67,url:86}],8:[function(e,t,r){(function(r){function n(e){this.outerContext=e}function i(e,t){if(t.shallow)return t.shallow=!1,t.done.push(e),s(t);for(var r=0,n=0,i=0,o=u(e);n-1&&-1==n?r:-1==r&&n>-1?n:Math.min(r,n)}function s(e){return e.left.length>0?i.apply(null,e.left.shift()):e.whenDone(e.done.join(""))}function u(e){var t=/(\/\*(?!\*\/)[\s\S]*?\*\/)/,r=0,n=0,i=!1;return function o(a){var s,u=0,l=0,c=0,f=0;return i?!1:a>r&&n>a?!0:(s=e.match(t))?(r=u=s.index,l=u+s[0].length,f=l+n,c=f-s[0].length,e=e.substring(l),n=f,a>f?o(a):f>a&&a>c):(i=!0,!1)}}function l(e){for(var t=u(e),r=-1;;)if(r=e.indexOf("{",r+1),-1==r||!t(r))break;return r>-1}function c(e,t,r,n){n.shallow=e.indexOf("@shallow")>0;var i=e.substring(a(e,t)+"@import".length+1,r).replace(/@shallow\)$/,")").trim(),o=0===i.indexOf("url("),u=o?4:0,c=/^['"]/.exec(i.substring(u,u+2)),d=c?i.indexOf(c[0],u+1):new w(" ").split(i)[0].length-(o?1:0),g=i.substring(u,d).replace(/['"]/g,"").replace(/\)$/,"").trim(),m=i.substring(d+1).replace(/^\)/,"").trim(),v=n.isRemote||k.test(g);if(n.localOnly&&v)return n.afterContent||l(n.done.join(""))?n.warnings.push('Ignoring remote @import of "'+g+'" as no callback given.'):p(g,m,n),s(n);if(!v&&n.afterContent)return n.warnings.push('Ignoring local @import of "'+g+'" as after other CSS content.'),s(n);var b=v?f:h;return b(g,m,n)}function f(e,t,n){function a(e){c||(c=!0,n.errors.push('Broken @import declaration of "'+u+'" - '+e),p(u,t,n),r.nextTick(function(){s(n)}))}var u=k.test(e)?e:b.resolve(n.relativeTo,e);if(0===u.indexOf("//")&&(u="http:"+u),n.visited.indexOf(u)>-1)return s(n);n.debug&&console.error("Inlining remote stylesheet: "+u),n.visited.push(u);var l=0===u.indexOf("http://")?m.get:v.get,c=!1,h=_(b.parse(u),n.inliner.request);l(h,function(e){if(e.statusCode<200||e.statusCode>399)return a("error "+e.statusCode);if(e.statusCode>299){var s=b.resolve(u,e.headers.location);return f(s,t,n)}var l=[],c=b.parse(u);e.on("data",function(e){l.push(e.toString())}),e.on("end",function(){var e=l.join("");n.rebase&&(e=new y({toBase:u},n).process(e)),n.sourceReader.trackSource(u,e),e=n.sourceTracker.store(u,e),e=o(e,u),t.length>0&&(e="@media "+t+"{"+e+"}");var a=_(n,{isRemote:!0,relativeTo:c.protocol+"//"+c.host+c.pathname});r.nextTick(function(){i(e,a)})})}).on("error",function(e){a(e.message)}).on("timeout",function(){a("timeout")}).setTimeout(n.inliner.timeout)}function h(e,t,r){var n="/"==e[0]?r.root:r.relativeTo,o=g.resolve(g.join(n,e));if(!d.existsSync(o)||!d.statSync(o).isFile())return r.errors.push('Broken @import declaration of "'+e+'"'),s(r);if(r.visited.indexOf(o)>-1)return s(r);r.debug&&console.error("Inlining local stylesheet: "+o),r.visited.push(o);var a=g.dirname(o),u=d.readFileSync(o,"utf8");if(r.rebase){var l=new y({relative:!0,fromBase:a,toBase:r.baseRelativeTo},r);u=l.process(u)}var c=g.relative(r.root,o);r.sourceReader.trackSource(c,u),u=r.sourceTracker.store(c,u),t.length>0&&(u="@media "+t+"{"+u+"}");var f=_(r,{relativeTo:a});return i(u,f)}function p(e,t,r){var n="@import url("+e+")"+(t.length>0?" "+t:"")+";";r.done.push(n)}var d=e("fs"),g=e("path"),m=e("http"),v=e("https"),b=e("url"),y=e("../images/url-rewriter"),w=e("../utils/splitter.js"),_=e("../utils/object.js").override,x=/\/\*# sourceMappingURL=(\S+) \*\//,k=/^(https?:)?\/\//;n.prototype.process=function(e,t){var r=this.outerContext.options.root;return t=_(t,{baseRelativeTo:this.outerContext.options.relativeTo||r,debug:this.outerContext.options.debug,done:[],errors:this.outerContext.errors,left:[],inliner:this.outerContext.options.inliner,rebase:this.outerContext.options.rebase,relativeTo:this.outerContext.options.relativeTo||r,root:r,sourceReader:this.outerContext.sourceReader,sourceTracker:this.outerContext.sourceTracker,warnings:this.outerContext.warnings,visited:[]}),i(e,t)},t.exports=n}).call(this,e("_process"))},{"../images/url-rewriter":7,"../utils/object.js":45,"../utils/splitter.js":50,_process:68,fs:52,http:59,https:63,path:67,url:86}],9:[function(e,t,r){function n(e){return function(t){return"invert"==t[0]||e.isValidColor(t[0])}}function i(e){return function(t){return"inherit"!=t[0]&&e.isValidStyle(t[0])}}function o(e,t,r){var n=r[e];return p(n.doubleValues&&2==n.defaultValue.length?[[e,t.important],[n.defaultValue[0]],[n.defaultValue[1]]]:n.doubleValues&&1==n.defaultValue.length?[[e,t.important],[n.defaultValue[0]]]:[[e,t.important],[n.defaultValue]])}function a(e){return function(t){return"inherit"!=t[0]&&e.isValidWidth(t[0])}}function s(e,t,r){var n=o("background-image",e,t),i=o("background-position",e,t),a=o("background-size",e,t),s=o("background-repeat",e,t),u=o("background-attachment",e,t),l=o("background-origin",e,t),c=o("background-clip",e,t),f=o("background-color",e,t),h=[n,i,a,s,u,l,c,f],p=e.value,g=!1,m=!1,v=!1,b=!1;if(1==e.value.length&&"inherit"==e.value[0][0])return f.value=n.value=s.value=i.value=a.value=l.value=c.value=e.value,h;for(var y=p.length-1;y>=0;y--){var w=p[y];if(r.isValidBackgroundAttachment(w[0]))u.value=[w];else if(r.isValidBackgroundBox(w[0]))m?(l.value=[w],v=!0):(c.value=[w],m=!0);else if(r.isValidBackgroundRepeat(w[0]))b?s.value.unshift(w):(s.value=[w],b=!0);else if(r.isValidBackgroundPositionPart(w[0])||r.isValidBackgroundSizePart(w[0]))if(y>0){var _=p[y-1];if(_[0].indexOf("/")>0){var x=new d("/").split(_[0]);a.value=[[x.pop()].concat(_.slice(1)),w],p[y-1]=[x.pop()].concat(_.slice(1))}else y>1&&"/"==p[y-2]?(a.value=[_,w],y-=2):"/"==p[y-1]?a.value=[w]:(g||(i.value=[]),i.value.unshift(w),g=!0)}else g||(i.value=[]),i.value.unshift(w),g=!0;else if(r.isValidBackgroundPositionAndSize(w[0])){var k=new d("/").split(w[0]);a.value=[[k.pop()].concat(w.slice(1))],i.value=[[k.pop()].concat(w.slice(1))]}else f.value!=t[f.name].defaultValue&&"none"!=f.value||!r.isValidColor(w[0])?(r.isValidUrl(w[0])||r.isValidFunction(w[0]))&&(n.value=[w]):f.value=[w]}return m&&!v&&(l.value=c.value.slice(0)),h}function u(e,t){for(var r=e.value,n=-1,i=0,a=r.length;a>i;i++)if("/"==r[i][0]){n=i;break}if(-1==n)return l(e,t);var s=o(e.name,e,t);s.value=r.slice(0,n),s.components=l(s,t);var u=o(e.name,e,t);u.value=r.slice(n+1),u.components=l(u,t);for(var c=0;4>c;c++)s.components[c].multiplex=!0,s.components[c].value=s.components[c].value.concat([["/"]]).concat(u.components[c].value);return s.components}function l(e,t){var r=t[e.name].components,n=[],i=e.value;if(i.length<1)return[];i.length<2&&(i[1]=i[0]),i.length<3&&(i[2]=i[0]),i.length<4&&(i[3]=i[1]);for(var o=r.length-1;o>=0;o--){var a=p([[r[o],e.important]]);a.value=[i[o]],n.unshift(a)}return n}function c(e){return function(t,r,n){var i,a,s,u,l=[],c=t.value;for(i=0,s=c.length;s>i;i++)","==c[i][0]&&l.push(i);if(0===l.length)return e(t,r,n);var f=[];for(i=0,s=l.length;s>=i;i++){var h=0===i?0:l[i-1]+1,p=s>i?l[i]:c.length,d=o(t.name,t,r);d.value=c.slice(h,p),f.push(e(d,r,n))}var m=f[0];for(i=0,s=m.length;s>i;i++)for(m[i].multiplex=!0,a=1,u=f.length;u>a;a++)m[i].value.push([g]),Array.prototype.push.apply(m[i].value,f[a][i].value);return m}}function f(e,t,r){var n=o("list-style-type",e,t),i=o("list-style-position",e,t),a=o("list-style-image",e,t),s=[n,i,a];if(1==e.value.length&&"inherit"==e.value[0][0])return n.value=i.value=a.value=[e.value[0]],s;var u=e.value.slice(0),l=u.length,c=0;for(c=0,l=u.length;l>c;c++)if(r.isValidUrl(u[c][0])||"0"==u[c][0]){a.value=[u[c]],u.splice(c,1);break}for(c=0,l=u.length;l>c;c++)if(r.isValidListStyleType(u[c][0])){n.value=[u[c]],u.splice(c,1);break}return u.length>0&&r.isValidListStylePosition(u[0][0])&&(i.value=[u[0]]),s}function h(e,t,r){for(var s,u,l,c=t[e.name],f=[o(c.components[0],e,t),o(c.components[1],e,t),o(c.components[2],e,t)],h=0;3>h;h++){var p=f[h];p.name.indexOf("color")>0?s=p:p.name.indexOf("style")>0?u=p:l=p}if(1==e.value.length&&"inherit"==e.value[0][0]||3==e.value.length&&"inherit"==e.value[0][0]&&"inherit"==e.value[1][0]&&"inherit"==e.value[2][0])return s.value=u.value=l.value=[e.value[0]],f;var d,g,m=e.value.slice(0);return m.length>0&&(g=m.filter(a(r)),d=g.length>1&&("none"==g[0]||"auto"==g[0])?g[1]:g[0],d&&(l.value=[d],m.splice(m.indexOf(d),1))),m.length>0&&(d=m.filter(i(r))[0],d&&(u.value=[d],m.splice(m.indexOf(d),1))),m.length>0&&(d=m.filter(n(r))[0],d&&(s.value=[d],m.splice(m.indexOf(d),1))),f}var p=e("./wrap-for-optimizing").single,d=e("../utils/splitter"),g=",";t.exports={background:s,border:h,borderRadius:u,fourValues:l,listStyle:f,multiplex:c,outline:h}},{"../utils/splitter":50,"./wrap-for-optimizing":23}],10:[function(e,t,r){function n(){return!0}function i(e,t,r){var n=e.value[0][0],i=t.value[0][0];return"none"==i||"inherit"==i||r.isValidUrl(i)?!0:"none"==n||"inherit"==n||r.isValidUrl(n)?!1:l(e,t,r)}function o(e,t,r){return a(e.components[2],t.components[2],r)}function a(e,t,r){var n=e.value[0][0],i=t.value[0][0];return r.isValidNamedColor(i)||r.isValidHexColor(i)?!0:r.isValidNamedColor(n)||r.isValidHexColor(n)?!1:r.isValidRgbaColor(i)||r.isValidHslaColor(i)?!0:r.isValidRgbaColor(n)||r.isValidHslaColor(n)?!1:l(e,t)}function s(e,t,r){var n=e.value[0][0],i=t.value[0][0];return!(r.isValidFunction(n)^r.isValidFunction(i))}function u(e,t){var r=e.value[0][0],n=t.value[0][0];return r===n}function l(e,t,r){var n=e.value[0][0],i=t.value[0][0];return r.areSameFunction(n,i)?!0:n===i}function c(e,t,r){var n=e.value[0][0],i=t.value[0][0];return r.isValidAndCompatibleUnitWithoutFunction(n)&&!r.isValidAndCompatibleUnitWithoutFunction(i)?!1:r.isValidUnitWithoutFunction(i)?!0:r.isValidUnitWithoutFunction(n)?!1:r.isValidFunctionWithoutVendorPrefix(i)&&r.isValidFunctionWithoutVendorPrefix(n)?!0:l(e,t,r)}t.exports={always:n,backgroundImage:i,border:o,color:a,sameValue:u,sameFunctionOrValue:l,twoOptionalFunctions:s,unit:c}},{}],11:[function(e,t,r){function n(e){for(var t=i(e),r=e.components.length-1;r>=0;r--){var n=i(e.components[r]);n.value=e.components[r].value.slice(0),t.components.unshift(n)}return t.dirty=!0,t.value=e.value.slice(0),t}function i(e){var t=o([[e.name,e.important,e.hack]]);return t.unused=!1,t}var o=e("./wrap-for-optimizing").single;t.exports={deep:n,shallow:i}},{"./wrap-for-optimizing":23}],12:[function(e,t,r){var n=e("./break-up"),i=e("./can-override"),o=e("./restore"),a={color:{canOverride:i.color,defaultValue:"transparent",shortestValue:"red"},background:{components:["background-image","background-position","background-size","background-repeat","background-attachment","background-origin","background-clip","background-color"],breakUp:n.multiplex(n.background),defaultValue:"0 0",restore:o.multiplex(o.background),shortestValue:"0",shorthand:!0},"background-clip":{canOverride:i.always,defaultValue:"border-box",shortestValue:"border-box"},"background-color":{canOverride:i.color,defaultValue:"transparent",multiplexLastOnly:!0,nonMergeableValue:"none",shortestValue:"red"},"background-image":{canOverride:i.backgroundImage,defaultValue:"none"},"background-origin":{canOverride:i.always,defaultValue:"padding-box",shortestValue:"border-box"},"background-repeat":{canOverride:i.always,defaultValue:["repeat"],doubleValues:!0},"background-position":{canOverride:i.always,defaultValue:["0","0"],doubleValues:!0,shortestValue:"0"},"background-size":{canOverride:i.always,defaultValue:["auto"],doubleValues:!0,shortestValue:"0 0"},"background-attachment":{canOverride:i.always,defaultValue:"scroll"},border:{breakUp:n.border,canOverride:i.border,components:["border-width","border-style","border-color"],defaultValue:"none",restore:o.withoutDefaults,shorthand:!0},"border-color":{canOverride:i.color,defaultValue:"none",shorthand:!0},"border-style":{canOverride:i.always,defaultValue:"none",shorthand:!0},"border-width":{canOverride:i.unit,defaultValue:"medium",shortestValue:"0",shorthand:!0},"list-style":{components:["list-style-type","list-style-position","list-style-image"],canOverride:i.always,breakUp:n.listStyle,restore:o.withoutDefaults,defaultValue:"outside",shortestValue:"none",shorthand:!0},"list-style-type":{canOverride:i.always,defaultValue:"__hack",shortestValue:"none"},"list-style-position":{canOverride:i.always,defaultValue:"outside",shortestValue:"inside"},"list-style-image":{canOverride:i.always,defaultValue:"none"},outline:{components:["outline-color","outline-style","outline-width"],breakUp:n.outline,restore:o.withoutDefaults,defaultValue:"0",shorthand:!0},"outline-color":{canOverride:i.color,defaultValue:"invert",shortestValue:"red"},"outline-style":{canOverride:i.always,defaultValue:"none"},"outline-width":{canOverride:i.unit,defaultValue:"medium",shortestValue:"0"},"-moz-transform":{canOverride:i.sameFunctionOrValue},"-ms-transform":{canOverride:i.sameFunctionOrValue},"-webkit-transform":{canOverride:i.sameFunctionOrValue},transform:{canOverride:i.sameFunctionOrValue}},s=function(e,t,r){r=r||{},a[e]={canOverride:r.canOverride,components:t,breakUp:r.breakUp||n.fourValues,defaultValue:r.defaultValue||"0",restore:r.restore||o.fourValues,shortestValue:r.shortestValue,shorthand:!0};for(var s=0;sl;l++)a[a[u].components[l]].componentOf=u;t.exports=a},{"./break-up":9,"./can-override":10,"./restore":20}],13:[function(e,t,r){function n(e,t,r,n){for(var a=i(t),s=i(r),u=0,l=t.value.length;l>u;u++)for(var c=0,f=r.value.length;f>c;c++)if(t.value[u][0]!=o&&r.value[c][0]!=o&&(a.value=[t.value[u]],s.value=[r.value[c]],!e(a,s,n)))return!1;return!0}var i=e("./clone").shallow,o=",";t.exports=n},{"./clone":11}],14:[function(e,t,r){function n(e){for(var t=e.value.length-1;t>=0;t--)if("inherit"==e.value[t][0])return!0;return!1}t.exports=n},{}],15:[function(e,t,r){function n(e,t,r,n){function i(e){return t===!1||t===!0?t:t.indexOf(e)>-1}function a(t){var r=e[t-1],n=e[t];return h(r.all,r.position)==h(n.all,n.position)}var s,u={},l=null;e:for(var c=0,f=e.length;f>c;c++){var d=e[c],g=!("-ms-filter"!=d.name&&"filter"!=d.name||"background"!=l&&"background-image"!=l)?l:d.name,m=d.important,v=d.hack;if(!d.unused)if(c>0&&g==l&&a(c))d.unused=!0;else{if(g in u&&(r&&g!=l||i(c))){var b=u[g],y=o[g]&&o[g].canOverride,w=!1;for(s=b.length-1;s>=0;s--){var _=e[b[s]],x=_.name!=g,k=_.important,E=_.hack;if(!_.unused&&!(x&&k||!k&&(E&&!v||!E&&v)||k&&("star"==v||"underscore"==v)||!(E||v||x||!y||y(_,d,n)))){if(k&&!m||k&&v){d.unused=!0;continue e}w=!0,_.unused=!0}}w&&(c=-1,u={})}else{u[g]=u[g]||[],u[g].push(c);var S=p[g];if(S)for(s=S.length-1;s>=0;s--){var O=S[s];u[O]=u[O]||[],u[O].push(c)}}l=g}}}function i(e,t,r,i,o,h){var p=a(t);s(p,h),n(p,r,o.aggressiveMerging,h),i&&o.shorthandCompacting&&(u(p,o.compatibility,h),l(p,o.sourceMap,h)),f(p),c(p)}var o=e("./compactable"),a=e("./wrap-for-optimizing").all,s=e("./populate-components"),u=e("./override-compactor"),l=e("./shorthand-compactor"),c=e("./remove-unused"),f=e("./restore-shorthands"),h=e("../stringifier/one-time").property,p={"animation-delay":["animation"],"animation-direction":["animation"],"animation-duration":["animation"],"animation-fill-mode":["animation"],"animation-iteration-count":["animation"],"animation-name":["animation"],"animation-play-state":["animation"],"animation-timing-function":["animation"],"-moz-animation-delay":["-moz-animation"],"-moz-animation-direction":["-moz-animation"],"-moz-animation-duration":["-moz-animation"],"-moz-animation-fill-mode":["-moz-animation"],"-moz-animation-iteration-count":["-moz-animation"],"-moz-animation-name":["-moz-animation"],"-moz-animation-play-state":["-moz-animation"],"-moz-animation-timing-function":["-moz-animation"],"-o-animation-delay":["-o-animation"],"-o-animation-direction":["-o-animation"],"-o-animation-duration":["-o-animation"],"-o-animation-fill-mode":["-o-animation"],"-o-animation-iteration-count":["-o-animation"],"-o-animation-name":["-o-animation"],"-o-animation-play-state":["-o-animation"],"-o-animation-timing-function":["-o-animation"],"-webkit-animation-delay":["-webkit-animation"],"-webkit-animation-direction":["-webkit-animation"],"-webkit-animation-duration":["-webkit-animation"],"-webkit-animation-fill-mode":["-webkit-animation"],"-webkit-animation-iteration-count":["-webkit-animation"],"-webkit-animation-name":["-webkit-animation"],"-webkit-animation-play-state":["-webkit-animation"],"-webkit-animation-timing-function":["-webkit-animation"],"border-color":["border"],"border-style":["border"],"border-width":["border"],"border-bottom":["border"],"border-bottom-color":["border-bottom","border-color","border"],"border-bottom-style":["border-bottom","border-style","border"],"border-bottom-width":["border-bottom","border-width","border"],"border-left":["border"],"border-left-color":["border-left","border-color","border"],"border-left-style":["border-left","border-style","border"],"border-left-width":["border-left","border-width","border"],"border-right":["border"],"border-right-color":["border-right","border-color","border"],"border-right-style":["border-right","border-style","border"],"border-right-width":["border-right","border-width","border"],"border-top":["border"],"border-top-color":["border-top","border-color","border"],"border-top-style":["border-top","border-style","border"],"border-top-width":["border-top","border-width","border"],"font-family":["font"],"font-size":["font"],"font-style":["font"],"font-variant":["font"],"font-weight":["font"],"transition-delay":["transition"],"transition-duration":["transition"],"transition-property":["transition"],"transition-timing-function":["transition"],"-moz-transition-delay":["-moz-transition"],"-moz-transition-duration":["-moz-transition"],"-moz-transition-property":["-moz-transition"],"-moz-transition-timing-function":["-moz-transition"],"-o-transition-delay":["-o-transition"],"-o-transition-duration":["-o-transition"],"-o-transition-property":["-o-transition"],"-o-transition-timing-function":["-o-transition"],"-webkit-transition-delay":["-webkit-transition"],"-webkit-transition-duration":["-webkit-transition"],"-webkit-transition-property":["-webkit-transition"],"-webkit-transition-timing-function":["-webkit-transition"]};t.exports=i},{"../stringifier/one-time":33,"./compactable":12,"./override-compactor":16,"./populate-components":17,"./remove-unused":18,"./restore-shorthands":19,"./shorthand-compactor":21,"./wrap-for-optimizing":23}],16:[function(e,t,r){function n(e){return function(t){return e.name===t.name}}function i(e,t){for(var r=0;r-1}function a(e,t){t.unused=!0,f(t,h(e)),e.value=t.value}function s(e,t){t.unused=!0,e.multiplex=!0,e.value=t.value}function u(e,t){t.unused=!0,e.value=t.value}function l(e,t){t.multiplex?s(e,t):e.multiplex?a(e,t):u(e,t)}function c(e,t){t.unused=!0;for(var r=0,n=e.components.length;n>r;r++)l(e.components[r],t.components[r],e.multiplex)}function f(e,t){e.multiplex=!0;for(var r=0,n=e.components.length;n>r;r++){var i=e.components[r];if(!i.multiplex)for(var o=i.value.slice(0),a=1;t>a;a++)i.value.push([M]),Array.prototype.push.apply(i.value,o)}}function h(e){for(var t=0,r=0,n=e.value.length;n>r;r++)e.value[r][0]==M&&t++;return t+1}function p(e){var t=[[e.name]].concat(e.value);return A([t],0).length}function d(e,t,r){for(var n=0,i=t;i>=0&&(e[i].name!=r||e[i].unused||n++,!(n>1));i--);return n>1}function g(e,t,r){for(var n=0,i=e.components.length;i>n;n++)if(m(r.isValidFunction,e.components[n]))return!0;return!1}function m(e,t){for(var r=0,n=t.value.length;n>r;r++)if(t.value[r][0]!=M&&e(t.value[r][0]))return!0;return!1}function v(e,t){if(!e.multiplex&&!t.multiplex||e.multiplex&&t.multiplex)return!1;var r,i=e.multiplex?e:t,o=e.multiplex?t:e,u=k(i);O([u]);var l=k(o);O([l]);var c=p(u)+1+p(l);e.multiplex?(r=u.components.filter(n(l))[0],a(r,l)):(r=l.components.filter(n(u))[0],f(l,h(u)),s(r,u)),O([l]);var d=p(l);return d>c}function b(e){return e.name in x}function y(e,t){return!(e.multiplex||"background"!=e.name&&"background-image"!=e.name||!t.multiplex||"background"!=t.name&&"background-image"!=t.name||"none"!=t.value[t.value.length-1][0]); + +}function w(e,t,r){var a,s,u,p,m,w,k;e:for(m=e.length-1;m>=0;m--)if(s=e[m],b(s))for(a=x[s.name].canOverride||_.sameValue,w=m-1;w>=0;w--)if(u=e[w],b(u)&&!u.unused&&!s.unused&&!(u.hack&&!s.hack||!u.hack&&s.hack||S(s)||y(u,s)))if(!u.shorthand&&s.shorthand&&o(s,u)){if(!s.important&&u.important)continue;p=s.components.filter(n(u))[0],a=x[u.name]&&x[u.name].canOverride||_.sameValue,C(a,u,p,r)&&(u.unused=!0)}else if(u.shorthand&&!s.shorthand&&o(u,s)){if(s.important&&!u.important)continue;if(d(e,m-1,u.name))continue;if(g(u,s,r))continue;if(p=u.components.filter(n(s))[0],C(a,p,s,r)){var E=!t.properties.backgroundSizeMerging&&p.name.indexOf("background-size")>-1,O=x[s.name].nonMergeableValue===s.value[0][0];if(E||O)continue;if(!t.properties.merging&&i(u,r))continue;if(p.value[0][0]!=s.value[0][0]&&(S(u)||S(s)))continue;if(v(u,s))continue;!u.multiplex&&s.multiplex&&f(u,h(s)),l(p,s),u.dirty=!0}}else if(u.shorthand&&s.shorthand&&u.name==s.name){if(!s.important&&u.important){s.unused=!0;continue e}if(s.important&&!u.important){u.unused=!0;continue}for(k=u.components.length-1;k>=0;k--){var A=u.components[k],M=s.components[k];if(a=x[A.name].canOverride||_.sameValue,!C(a,A,M,r))continue e;if(!C(_.twoOptionalFunctions,A,M,r)&&r.isValidFunction(M))continue e}c(u,s),u.dirty=!0}else if(u.shorthand&&s.shorthand&&o(u,s)){if(!u.important&&s.important)continue;if(p=u.components.filter(n(s))[0],a=x[s.name].canOverride||_.sameValue,!C(a,p,s,r))continue;if(u.important&&!s.important){s.unused=!0;continue}var R=x[s.name].restore(s,x);if(R.length>1)continue;p=u.components.filter(n(s))[0],l(p,s),s.dirty=!0}else if(u.name==s.name){if(u.important&&!s.important){s.unused=!0;continue}if(a=x[s.name].canOverride||_.sameValue,!C(a,u,s,r))continue;u.unused=!0}}var _=e("./can-override"),x=e("./compactable"),k=e("./clone").deep,E=e("./clone").shallow,S=e("./has-inherit"),O=e("./restore-shorthands"),C=e("./every-combination"),A=e("../stringifier/one-time").property,M=",";t.exports=w},{"../stringifier/one-time":33,"./can-override":10,"./clone":11,"./compactable":12,"./every-combination":13,"./has-inherit":14,"./restore-shorthands":19}],17:[function(e,t,r){function n(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r],o=i[n.name];o&&o.shorthand&&(n.shorthand=!0,n.dirty=!0,n.components=o.breakUp(n,i,t),n.components.length>0?n.multiplex=n.components[0].multiplex:n.unused=!0)}}var i=e("./compactable");t.exports=n},{"./compactable":12}],18:[function(e,t,r){function n(e){for(var t=e.length-1;t>=0;t--)e[t].unused&&e[t].all.splice(t,1)}t.exports=n},{}],19:[function(e,t,r){function n(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=i[r.name];if(n&&n.shorthand&&r.dirty&&!r.unused){var o=n.restore(r,i);if(r.value=o,!("all"in r))continue;var a=r.all[r.position];a.splice(1,a.length-1),Array.prototype.push.apply(a,o)}}}var i=e("./compactable");t.exports=n},{"./compactable":12}],20:[function(e,t,r){function n(e,t,r){function n(e){Array.prototype.unshift.apply(u,e.value)}function i(e){var r=t[e.name];return r.doubleValues?1==r.defaultValue.length?e.value[0][0]==r.defaultValue[0]&&(e.value[1]?e.value[1][0]==r.defaultValue[0]:!0):e.value[0][0]==r.defaultValue[0]&&(e.value[1]?e.value[1][0]:e.value[0][0])==r.defaultValue[1]:e.value[0][0]==r.defaultValue}for(var o,a,s=e.components,u=[],l=s.length-1;l>=0;l--){var c=s[l],f=i(c);if("background-clip"==c.name){var h=s[l-1],p=i(h);o=c.value[0][0]==h.value[0][0],a=!o&&(p&&!f||!p&&!f||!p&&f&&c.value[0][0]!=h.value[0][0]),o?n(h):a&&(n(c),n(h)),l--}else if("background-size"==c.name){var d=s[l-1],g=i(d);o=!g&&f,a=!o&&(g&&!f||!g&&!f),o?n(d):a?(n(c),u.unshift(["/"]),n(d)):1==d.value.length&&n(d),l--}else{if(f||t[c.name].multiplexLastOnly&&!r)continue;n(c)}}return 0===u.length&&1==e.value.length&&"0"==e.value[0][0]&&u.push(e.value[0]),0===u.length&&u.push([t[e.name].defaultValue]),u}function i(e,t){if(e.multiplex){for(var r=u(e),n=u(e),i=0;4>i;i++){var a=e.components[i],s=u(e);s.value=[a.value[0]],r.components.push(s);var l=u(e);l.value=[a.value[2]],n.components.push(l)}var c=o(r,t),f=o(n,t);return c.length!=f.length||c[0][0]!=f[0][0]||(c.length>1?c[1][0]!=f[1][0]:0)||(c.length>2?c[2][0]!=f[2][0]:0)||(c.length>3?c[3][0]!=f[3][0]:0)?c.concat([["/"]]).concat(f):c}return o(e,t)}function o(e){var t=e.components,r=t[0].value[0],n=t[1].value[0],i=t[2].value[0],o=t[3].value[0];return r[0]==n[0]&&r[0]==i[0]&&r[0]==o[0]?[r]:r[0]==i[0]&&n[0]==o[0]?[r,n]:n[0]==o[0]?[r,n,i]:[r,n,i,o]}function a(e){return function(t,r){if(!t.multiplex)return e(t,r,!0);var n,i,o=0,a=[],s={};for(n=0,i=t.components[0].value.length;i>n;n++)t.components[0].value[n][0]==l&&o++;for(n=0;o>=n;n++){for(var c=u(t),f=0,h=t.components.length;h>f;f++){var p=t.components[f],d=u(p);c.components.push(d);for(var g=s[d.name]||0,m=p.value.length;m>g;g++){if(p.value[g][0]==l){s[d.name]=g+1;break}d.value.push(p.value[g])}}var v=n==o,b=e(c,r,v);Array.prototype.push.apply(a,b),o>n&&a.push([","])}return a}}function s(e,t){for(var r=e.components,n=[],i=r.length-1;i>=0;i--){var o=r[i],a=t[o.name];o.value[0][0]!=a.defaultValue&&n.unshift(o.value[0])}return 0===n.length&&n.push([t[e.name].defaultValue]),n}var u=e("./clone").shallow,l=",";t.exports={background:n,borderRadius:i,fourValues:o,multiplex:a,withoutDefaults:s}},{"./clone":11}],21:[function(e,t,r){function n(e){var t;for(var r in e){if(void 0!==t&&e[r].important!=t)return!0;t=e[r].important}return!1}function i(e){var t=[];for(var r in e){var n=e[r],i=n.all[n.position],o=i[0][i[0].length-1];Array.isArray(o)&&Array.prototype.push.apply(t,o)}return t}function o(e,t,r,n,o){var a,s=u[r],d=[[r,!1,!1],[s.defaultValue]],g=h(d);g.shorthand=!0,g.dirty=!0,f([g],o);for(var m=0,v=s.components.length;v>m;m++){var b=t[s.components[m]],y=u[b.name].canOverride;if(c(b))return;if(!p(y,g.components[m],b,o))return;g.components[m]=l(b),g.important=b.important,a=b.all}for(var w in t)t[w].unused=!0;if(n){var _=i(t);_.length>0&&d[0].push(_)}g.position=a.length,g.all=a,g.all.push(d),d[0][1]=g.important,e.push(g)}function a(e,t,r,i,a){var s=e[t];for(var l in r)if(void 0===s||l!=s.name){var c=u[l],f=r[l];c.components.length>Object.keys(f).length?delete r[l]:n(f)||o(e,f,l,i,a)}}function s(e,t,r){var n={};if(!(e.length<3)){for(var i=0,o=e.length;o>i;i++){var s=e[i];if(!s.unused&&!s.hack){var l=u[s.name];if(l&&l.componentOf)if(s.shorthand)a(e,i,n,t,r);else{var c=l.componentOf;n[c]=n[c]||{},n[c][s.name]=s}}}a(e,i,n,t,r)}}var u=e("./compactable"),l=e("./clone").deep,c=e("./has-inherit"),f=e("./populate-components"),h=e("./wrap-for-optimizing").single,p=e("./every-combination");t.exports=s},{"./clone":11,"./compactable":12,"./every-combination":13,"./has-inherit":14,"./populate-components":17,"./wrap-for-optimizing":23}],22:[function(e,t,r){function n(e){if(e.units.rem)this.compatibleCssUnitRegex=y,this.compatibleCssUnitAnyRegex=_;else{var t=a.slice(0).filter(function(e){return"rem"!=e}),r="(\\-?\\.?\\d+\\.?\\d*("+t.join("|")+")|auto|inherit)";this.compatibleCssUnitRegex=new RegExp("^"+r+"$","i"),this.compatibleCssUnitAnyRegex=new RegExp("^(none|"+o.join("|")+"|"+r+"|"+f+"|"+l+"|"+c+")$","i")}}var i=e("../utils/splitter"),o=["thin","thick","medium","inherit","initial"],a=["px","%","em","rem","in","cm","mm","ex","pt","pc","vw","vh","vmin","vmax"],s="(\\-?\\.?\\d+\\.?\\d*("+a.join("|")+"|)|auto|inherit)",u="(\\-moz\\-|\\-webkit\\-)?calc\\([^\\)]+\\)",l="[A-Z]+(\\-|[A-Z]|[0-9])+\\(([A-Z]|[0-9]|\\ |\\,|\\#|\\+|\\-|\\%|\\.|\\(|\\))*\\)",c="\\-(\\-|[A-Z]|[0-9])+\\(([A-Z]|[0-9]|\\ |\\,|\\#|\\+|\\-|\\%|\\.|\\(|\\))*\\)",f="var\\(\\-\\-[^\\)]+\\)",h="("+f+"|"+l+"|"+c+")",p="("+s+"|"+u+")",d="(none|"+o.join("|")+"|"+s+"|"+f+"|"+l+"|"+c+")",g=new RegExp("^"+l+"$","i"),m=new RegExp("^"+c+"$","i"),v=new RegExp("^"+f+"$","i"),b=new RegExp("^"+h+"$","i"),y=new RegExp("^"+s+"$","i"),w=new RegExp("^"+p+"$","i"),_=new RegExp("^"+d+"$","i"),x=["repeat","no-repeat","repeat-x","repeat-y","inherit"],k=["inherit","scroll","fixed","local"],E=["center","top","bottom","left","right"],S=["contain","cover"],O=["border-box","content-box","padding-box"],C=["auto","inherit","hidden","none","dotted","dashed","solid","double","groove","ridge","inset","outset"],A=["armenian","circle","cjk-ideographic","decimal","decimal-leading-zero","disc","georgian","hebrew","hiragana","hiragana-iroha","inherit","katakana","katakana-iroha","lower-alpha","lower-greek","lower-latin","lower-roman","none","square","upper-alpha","upper-latin","upper-roman"],M=["inside","outside","inherit"];n.prototype.isValidHexColor=function(e){return(4===e.length||7===e.length)&&"#"===e[0]},n.prototype.isValidRgbaColor=function(e){return e=e.split(" ").join(""),e.length>0&&0===e.indexOf("rgba(")&&e.indexOf(")")===e.length-1},n.prototype.isValidHslaColor=function(e){return e=e.split(" ").join(""),e.length>0&&0===e.indexOf("hsla(")&&e.indexOf(")")===e.length-1},n.prototype.isValidNamedColor=function(e){return"auto"!==e&&("transparent"===e||"inherit"===e||/^[a-zA-Z]+$/.test(e))},n.prototype.isValidVariable=function(e){return v.test(e)},n.prototype.isValidColor=function(e){return this.isValidNamedColor(e)||this.isValidHexColor(e)||this.isValidRgbaColor(e)||this.isValidHslaColor(e)||this.isValidVariable(e)||this.isValidVendorPrefixedValue(e)},n.prototype.isValidUrl=function(e){return 0===e.indexOf("__ESCAPED_URL_CLEAN_CSS")},n.prototype.isValidUnit=function(e){return _.test(e)},n.prototype.isValidUnitWithoutFunction=function(e){return y.test(e)},n.prototype.isValidAndCompatibleUnit=function(e){return this.compatibleCssUnitAnyRegex.test(e)},n.prototype.isValidAndCompatibleUnitWithoutFunction=function(e){return this.compatibleCssUnitRegex.test(e)},n.prototype.isValidFunctionWithoutVendorPrefix=function(e){return g.test(e)},n.prototype.isValidFunctionWithVendorPrefix=function(e){return m.test(e)},n.prototype.isValidFunction=function(e){return b.test(e)},n.prototype.isValidBackgroundRepeat=function(e){return x.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidBackgroundAttachment=function(e){return k.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidBackgroundBox=function(e){return O.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidBackgroundPositionPart=function(e){return E.indexOf(e)>=0||w.test(e)||this.isValidVariable(e)},n.prototype.isValidBackgroundPosition=function(e){if("inherit"===e)return!0;for(var t=e.split(" "),r=0,n=t.length;n>r;r++)if(""!==t[r]&&!this.isValidBackgroundPositionPart(t[r])&&!this.isValidVariable(t[r]))return!1;return!0},n.prototype.isValidBackgroundSizePart=function(e){return S.indexOf(e)>=0||y.test(e)||this.isValidVariable(e)},n.prototype.isValidBackgroundPositionAndSize=function(e){if(e.indexOf("/")<0)return!1;var t=new i("/").split(e);return this.isValidBackgroundSizePart(t.pop())&&this.isValidBackgroundPositionPart(t.pop())},n.prototype.isValidListStyleType=function(e){return A.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidListStylePosition=function(e){return M.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidStyle=function(e){return C.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidWidth=function(e){return this.isValidUnit(e)||o.indexOf(e)>=0||this.isValidVariable(e)},n.prototype.isValidVendorPrefixedValue=function(e){return/^-([A-Za-z0-9]|-)*$/gi.test(e)},n.prototype.areSameFunction=function(e,t){if(!this.isValidFunction(e)||!this.isValidFunction(t))return!1;var r=e.substring(0,e.indexOf("(")),n=t.substring(0,t.indexOf("("));return r===n},t.exports=n},{"../utils/splitter":50}],23:[function(e,t,r){function n(e){for(var t=[],r=e.length-1;r>=0;r--)if("string"!=typeof e[r][0]){var n=o(e[r]);n.all=e,n.position=r,t.unshift(n)}return t}function i(e){for(var t=1,r=e.length;r>t;t++)if(","==e[t][0]||"/"==e[t][0])return!0;return!1}function o(e){return{components:[],dirty:!1,hack:e[0][2],important:e[0][1],name:e[0][0],multiplex:e.length>2?i(e):!1,position:0,shorthand:!1,unused:e.length<2,value:e.slice(1)}}t.exports={all:n,single:o}},{}],24:[function(e,t,r){function n(e){var t=[];if("selector"==e[0])for(var r=!/[\.\+#>~\s]/.test(o(e[1])),s=0,u=e[2].length;u>s;s++){var l=e[2][s];if(0!==l.indexOf("__ESCAPED")){var c=e[2][s][0][0];if(0!==c.length){var f=a(e[2],s);t.push([c,f,i(c),e[2][s],c+":"+f,e[1],r])}}}else if("block"==e[0])for(var h=0,p=e[2].length;p>h;h++)t=t.concat(n(e[2][h]));return t}function i(e){return"list-style"==e?e:e.indexOf("-radius")>0?"border-radius":0===e.indexOf("border-")?e.match(/border\-\w+/)[0]:0===e.indexOf("text-")?e:e.replace(/^\-\w+\-/,"").match(/([a-zA-Z]+)/)[0].toLowerCase()}var o=e("../stringifier/one-time").selectors,a=e("../stringifier/one-time").value;t.exports=n},{"../stringifier/one-time":33}],25:[function(e,t,r){function n(e){for(var t=e.length-1;t>=0;t--){var r=e[t];switch(r[0]){case"flat-block":case"selector":i(r[2]);break;case"block":n(r[2])}}}function i(e){for(var t=e.length-1;t>=0;t--)"string"!=typeof e[t]&&o(e[t])}function o(e){var t=e[0][0],r=e[e.length-1],n=r[0].indexOf(s)>0,i=!1;t[0]==l?(e[0][0]=t.substring(1),i="underscore"):t[0]==u?(e[0][0]=t.substring(1),i="star"):r[0].indexOf(a)>0&&r[0].indexOf(a)==r[0].length-a.length-1&&(r[0]=r[0].substring(0,r[0].length-a.length-1),i="suffix"),n&&(r[0]=r[0].substring(0,r[0].length-s.length)),e[0].splice(1,0,n,i)}var a="\\",s="!important",u="*",l="_";t.exports=n},{}],26:[function(e,t,r){function n(e,t){this.options=e||{},this.context=t||{}}var i=e("./tokenizer"),o=e("./optimizers/simple"),a=e("./optimizers/advanced"),s=e("./optimization-metadata");n.prototype.process=function(e,t,r,n){var u=new i(this.context,this.options.sourceMap).toTokens(e);return s(u),new o(this.options).optimize(u),this.options.advanced&&new a(this.options,this.context).optimize(u),t(u,this.options,r,n)},t.exports=n},{"./optimization-metadata":25,"./optimizers/advanced":27,"./optimizers/simple":29,"./tokenizer":31}],27:[function(e,t,r){function n(e,t){this.options=e,this.validator=t.validator}function i(e){return/\.|\*| :/.test(e)}function o(e,t){return e>t}function a(e,t,r){for(var n=0,i=e.length;i>n;n++){var o=e[n];switch(o[0]){case"selector":s(o[1],o[2],!1,!0,t,r);break;case"block":a(o[2],t,r)}}}var s=e("../../properties/optimizer"),u=e("./clean-up"),l=e("../extractor"),c=e("../reorderable").canReorder,f=e("../reorderable").canReorderSingle,h=e("../../stringifier/one-time").all,p=e("../../stringifier/one-time").body,d=e("../../stringifier/one-time").selectors;n.prototype.isSpecial=function(e){return this.options.compatibility.selectors.special.test(e)},n.prototype.removeDuplicates=function(e){for(var t,r,n,i,o={},a=[],s=0,u=e.length;u>s;s++)r=e[s],"selector"==r[0]&&(t=d(r[1]),o[t]&&1==o[t].length?a.push(t):o[t]=o[t]||[],o[t].push(s));for(s=0,u=a.length;u>s;s++){t=a[s],i=[];for(var l=o[t].length-1;l>=0;l--)r=e[o[t][l]],n=p(r[2]),i.indexOf(n)>-1?r[2]=[]:i.push(n)}},n.prototype.mergeAdjacent=function(e){for(var t=[null,[],[]],r=this.options.compatibility.selectors.adjacentSpace,n=0,i=e.length;i>n;n++){var o=e[n];if("selector"==o[0])if("selector"==t[0]&&d(o[1])==d(t[1])){var a=[t[2].length];Array.prototype.push.apply(t[2],o[2]),s(o[1],t[2],a,!0,this.options,this.validator),o[2]=[]}else"selector"!=t[0]||p(o[2])!=p(t[2])||this.isSpecial(d(o[1]))||this.isSpecial(d(t[1]))?t=o:(t[1]=u.selectors(t[1].concat(o[1]),!1,r),o[2]=[]);else t=[null,[],[]]}},n.prototype.reduceNonAdjacent=function(e){for(var t={},r=[],n=e.length-1;n>=0;n--){var i=e[n];if("selector"==i[0]&&0!==i[2].length)for(var o=d(i[1]),a=i[1].length>1&&!this.isSpecial(o),s=a?[o].concat(i[1]):[o],u=0,l=s.length;l>u;u++){var c=s[u];t[c]?r.push(c):t[c]=[],t[c].push({where:n,list:i[1],isPartial:a&&u>0,isComplex:a&&0===u})}}this.reduceSimpleNonAdjacentCases(e,r,t),this.reduceComplexNonAdjacentCases(e,t)},n.prototype.reduceSimpleNonAdjacentCases=function(e,t,r){function n(e,t){return u[e].isPartial&&0===t.length}function i(e,t,r,n){u[r-n-1].isPartial||(e[2]=t)}for(var o=0,a=t.length;a>o;o++){var s=t[o],u=r[s];this.reduceSelector(e,s,u,{filterOut:n,callback:i})}},n.prototype.reduceComplexNonAdjacentCases=function(e,t){function r(e){return i.data[e].wheref;f++){var d=c[f],g=t[d];if(g.length<2)continue e;if(i.data=g,this.reduceSelector(e,d,g,{filterOut:r,callback:n}),p(l[l.length-1])!=p(l[0]))continue e}u[2]=l[0]}}},n.prototype.reduceSelector=function(e,t,r,n){for(var i=[],o=[],a=[],u=[],l=r.length-1,c=0;l>=0;l--)if(!n.filterOut(l,i)){var f=r[l].where,h=e[f];i=i.concat(h[2]),o.push(h[2]),u.push(f)}for(l=0,c=o.length;c>l;l++)o[l].length>0&&a.push((a[l-1]||0)+o[l].length);s(t,i,a,!1,this.options,this.validator);for(var p=u.length,d=i.length-1,g=p-1;g>=0;)if((0===g||i[d]&&o[g].indexOf(i[d])>-1)&&d>-1)d--;else{var m=i.splice(d+1);n.callback(e[u[g]],m,p,g),g--}},n.prototype.mergeNonAdjacentBySelector=function(e){var t,r={},n=[];for(t=e.length-1;t>=0;t--)if("selector"==e[t][0]&&0!==e[t][2].length){var i=d(e[t][1]);r[i]=[t].concat(r[i]||[]),2==r[i].length&&n.push(i)}for(t=n.length-1;t>=0;t--){var o=r[n[t]];e:for(var a=o.length-1;a>0;a--){var u=o[a-1],f=e[u],h=o[a],p=e[h];t:for(var g=1;g>=-1;g-=2){for(var m=1==g,v=m?u+1:h-1,b=m?h:u,y=m?1:-1,w=m?f:p,_=m?p:f,x=l(w);v!=b;){var k=l(e[v]);v+=y;var E=m?c(x,k):c(k,x);if(!E&&!m)continue e;if(!E&&m)continue t}var S=m?[_[2].length]:[w[2].length];m?(Array.prototype.push.apply(w[2],_[2]),_[2]=w[2]):Array.prototype.push.apply(_[2],w[2]),s(_[1],_[2],S,!0,this.options,this.validator),w[2]=[]}}}},n.prototype.mergeNonAdjacentByBody=function(e){for(var t={},r=this.options.compatibility.selectors.adjacentSpace,n=e.length-1;n>=0;n--){var o=e[n];if("selector"==o[0]){o[2].length>0&&i(d(o[1]))&&(t={});var a=t[p(o[2])];!a||this.isSpecial(d(o[1]))||this.isSpecial(d(a[1]))||(o[1]=u.selectors(a[1].concat(o[1]),!1,r),a[2]=[],t[p(o[2])]=null),t[p(o[2])]=o}}},n.prototype.restructure=function(e){function t(e,t,i){for(var o=i.length-1;o>=0;o--){var a=i[o][0],s=r(t,a);if(k[s].length>1&&y(e,k[s])){n(s);break}}}function r(e,t){var r=i(t);return k[r]=k[r]||[],k[r].push([e,t]),r}function n(e){var t,r=e.split(C),n=[];for(var i in k){var o=i.split(C);for(t=o.length-1;t>=0;t--)if(r.indexOf(o[t])>-1){n.push(i);break}}for(t=n.length-1;t>=0;t--)delete k[n[t]]}function i(e){for(var t=[],r=0,n=e.length;n>r;r++)t.push(d(e[r][1]));return t.join(C)}function a(e){for(var t=[],r=[],n=e.length-1;n>=0;n--)S.isSpecial(d(e[n][1]))||(r.unshift(e[n]),e[n][2].length>0&&-1==t.indexOf(e[n])&&t.push(e[n]));return t.length>1?r:[]}function s(e,r){var n=r[0],i=r[1],o=r[4],s=n.length+i.length+1,l=[],c=[],f=a(_[o]);if(!(f.length<2)){var p=h(f,s,1),d=p[0];if(d[1]>0)return t(e,r,p);for(var g=d[0].length-1;g>=0;g--)l=d[0][g][1].concat(l),c.unshift(d[0][g]);l=u.selectorDuplicates(l),v(e,[r],l,c)}}function c(e,t){return e[1]>t[1]}function h(e,t,r){var n=g(e,t,r,O-1);return n.sort(c)}function g(e,t,r,n){var i=[[e,m(e,t,r)]];if(e.length>2&&n>0)for(var o=e.length-1;o>=0;o--){var a=Array.prototype.slice.call(e,0);a.splice(o,1),i=i.concat(g(a,t,r,n-1))}return i}function m(e,t,r){for(var n=0,i=e.length-1;i>=0;i--)n+=e[i][2].length>r?d(e[i][1]).length:-1;return n-(e.length-1)*t+1}function v(t,r,n,i){var o,a,s,u,l=[];for(o=i.length-1;o>=0;o--){var c=i[o];for(a=c[2].length-1;a>=0;a--){var f=c[2][a];for(s=0,u=r.length;u>s;s++){var h=r[s],d=f[0][0],g=h[0],m=h[4];if(d==g&&p([f])==m){c[2].splice(a,1);break}}}}for(o=r.length-1;o>=0;o--)l.push(r[o][3]);var v=["selector",n,l];e.splice(t,0,v)}function b(e,t){var r=t[4],n=_[r];n&&n.length>1&&s(e,t)}function y(e,t){for(var r,n=0,i=[],o=t.length-1;o>=0;o--){r=t[o][0];var a=r[4];n+=a.length+(o>0?1:0),i.push(r)}var s=t[0][1],l=h(s,n,i.length)[0];if(l[1]>0)return!1;var c=[],f=[];for(o=l[0].length-1;o>=0;o--)c=l[0][o][1].concat(c),f.unshift(l[0][o]);for(c=u.selectorDuplicates(c),v(e,i,c,f),o=i.length-1;o>=0;o--){r=i[o];var p=x.indexOf(r);delete _[r[4]],p>-1&&-1==E.indexOf(p)&&E.push(p)}return!0}function w(e,t,r){var n=e[0],i=t[0];if(n!=i)return!1;var o=t[4],a=_[o];return a&&a.indexOf(r)>-1}for(var _={},x=[],k={},E=[],S=this,O=2,C="%",A=e.length-1;A>=0;A--){var M,R,L,j,T=e[A];if("selector"==T[0])M=!0;else{if("block"!=T[0])continue;M=!1}var B=x.length,V=l(T);E=[];var P=[];for(R=V.length-1;R>=0;R--)for(L=R-1;L>=0;L--)if(!f(V[R],V[L])){P.push(R);break}for(R=0,j=V.length;j>R;R++){var U=V[R],I=!1;for(L=0;B>L;L++){var D=x[L];-1!=E.indexOf(L)||f(U,D)||w(U,D,T)||(b(A+1,D,T),E.push(L),delete _[D[4]]),I||(I=U[0]==D[0]&&U[1]==D[1])}if(M&&!(P.indexOf(R)>-1)){var N=U[4];_[N]=_[N]||[],_[N].push(T),I||x.push(U)}}for(E=E.sort(o),R=0,j=E.length;j>R;R++)x.splice(E[R]-R,1)}for(var z=e[0]&&"at-rule"==e[0][0]&&0===e[0][1][0].indexOf("@charset")?1:0;zr;r++){var i=e[r];if("block"==i[0]){var o=i[1][0]+"%"+h(i[2]),a=t[o];a&&(a[2]=[]),t[o]=i}}},n.prototype.mergeMediaQueries=function(e){for(var t={},r=[],n=e.length-1;n>=0;n--){var i=e[n];if("block"==i[0]){var o=t[i[1][0]];o||(o=[],t[i[1][0]]=o),o.push(n)}}for(var a in t){var s=t[a];e:for(var u=s.length-1;u>0;u--){for(var f=e[s[u]],h=e[s[u-1]],p=l(f),d=s[u]+1;dt;t++){var n=e[t],i=!1;switch(n[0]){case"selector":i=0===n[1].length||0===n[2].length;break;case"block":this.removeEmpty(n[2]),i=0===n[2].length}i&&(e.splice(t,1),t--,r--)}},n.prototype.optimize=function(e){function t(e,n){if(e.forEach(function(e){if("block"==e[0]){var r=/@(-moz-|-o-|-webkit-)?keyframes/.test(e[1][0]);t(e[2],!r)}}),a(e,r.options,r.validator),r.removeDuplicates(e),r.mergeAdjacent(e),r.reduceNonAdjacent(e),r.mergeNonAdjacentBySelector(e),r.mergeNonAdjacentByBody(e),r.options.restructuring&&n&&(r.restructure(e),r.mergeAdjacent(e)),r.options.mediaMerging){r.removeDuplicateMediaQueries(e);for(var i=r.mergeMediaQueries(e),o=i.length-1;o>=0;o--)t(i[o][2])}r.removeEmpty(e)}var r=this;t(e,!0)},t.exports=n},{"../../properties/optimizer":15,"../../stringifier/one-time":33,"../extractor":24,"../reorderable":30,"./clean-up":28}],28:[function(e,t,r){function n(e,t){return"["+t.replace(/ /g,"")+"]"}function i(e,t){return e[0]>t[0]?1:-1}var o={selectors:function(e,t,r){for(var o=[],a=[],s=0,u=e.length;u>s;s++){var l=e[s],c=l[0].replace(/\s+/g," ").replace(/ ?, ?/g,",").replace(/\s*([>\+\~])\s*/g,"$1").trim();r&&c.indexOf("nav")>0&&(c=c.replace(/\+nav(\S|$)/,"+ nav$1")),(!t||-1==c.indexOf("*+html ")&&-1==c.indexOf("*:first-child+html "))&&(c.indexOf("*")>-1&&(c=c.replace(/\*([:#\.\[])/g,"$1").replace(/^(\:first\-child)?\+html/,"*$1+html")),c.indexOf("[")>-1&&(c=c.replace(/\[([^\]]+)\]/g,n)),-1==a.indexOf(c)&&(l[0]=c,a.push(c),o.push(l)))}return o.sort(i)},selectorDuplicates:function(e){for(var t=[],r=[],n=0,o=e.length;o>n;n++){var a=e[n];-1==r.indexOf(a[0])&&(r.push(a[0]),t.push(a))}return t.sort(i)},block:function(e){e[0]=e[0].replace(/\s+/g," ").replace(/(,|:|\() /g,"$1").replace(/ ?\) ?/g,")")},atRule:function(e){e[0]=e[0].replace(/\s+/g," ").trim()}};t.exports=o},{}],29:[function(e,t,r){function n(e){this.options=e;var t=["px","em","ex","cm","mm","in","pt","pc","%"];e.compatibility.units.rem&&t.push("rem"),e.unitsRegexp=new RegExp("(^|\\s|\\(|,)0(?:"+t.join("|")+")","g"),e.precision={},e.precision.value=void 0===e.roundingPrecision?_:e.roundingPrecision,e.precision.multiplier=Math.pow(10,e.precision.value),e.precision.regexp=new RegExp("(\\d*\\.\\d{"+(e.precision.value+1)+",})px","g")}function i(e,t){return e[t]&&"-"==e[t][0][0]&&parseFloat(e[t][0])<0}function o(e,t){return-1==t.indexOf("0")?t:(t.indexOf("-")>-1&&(t=t.replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2").replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2")),t.replace(/(^|\s)0+([1-9])/g,"$1$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/\.([1-9]*)0+(\D|$)/g,function(e,t,r){return(t.length>0?".":"")+t+r}).replace(/(^|\D)0\.(\d)/g,"$1.$2"))}function a(e,t){return-1==t.indexOf("0deg")?t:t.replace(/\(0deg\)/g,"(0)")}function s(e,t){return e.indexOf("filter")>-1||-1==t.indexOf(" ")?t:(t=t.replace(/\s+/g," "),t.indexOf("calc")>-1&&(t=t.replace(/\) ?\/ ?/g,")/ ")),t.replace(/\( /g,"(").replace(/ \)/g,")").replace(/, /g,","))}function u(e,t,r){return-1===r.value||-1===t.indexOf(".")?t:t.replace(r.regexp,function(e,t){return Math.round(parseFloat(t)*r.multiplier)/r.multiplier+"px"}).replace(/(\d)\.($|\D)/g,"$1$2")}function l(e,t,r){return/^(?:\-moz\-calc|\-webkit\-calc|calc)\(/.test(t)?t:t.replace(r,"$10")}function c(e){5==e.length&&"0"===e[1][0]&&"0"===e[2][0]&&"0"===e[3][0]&&"0"===e[4][0]&&e.splice(e[0][0].indexOf("box-shadow")>-1?3:2)}function f(e,t,r){return-1===t.indexOf("#")&&-1==t.indexOf("rgb")&&-1==t.indexOf("hsl")?w.shorten(t):(t=t.replace(/rgb\((\-?\d+),(\-?\d+),(\-?\d+)\)/g,function(e,t,r,n){return new b(t,r,n).toHex()}).replace(/hsl\((-?\d+),(-?\d+)%?,(-?\d+)%?\)/g,function(e,t,r,n){return new y(t,r,n).toHex()}).replace(/(^|[^='"])#([0-9a-f]{6})/gi,function(e,t,r){return r[0]==r[1]&&r[2]==r[3]&&r[4]==r[5]?t+"#"+r[0]+r[2]+r[4]:t+"#"+r}).replace(/(rgb|rgba|hsl|hsla)\(([^\)]+)\)/g,function(e,t,r){var n=r.split(","),i="hsl"==t||"hsla"==t||n[0].indexOf("%")>-1;return i?(-1==n[1].indexOf("%")&&(n[1]+="%"),-1==n[2].indexOf("%")&&(n[2]+="%"),t+"("+n.join(",")+")"):e}),r.colors.opacity&&(t=t.replace(/(?:rgba|hsla)\(0,0%?,0%?,0\)/g,function(e){return new v(",").split(t).pop().indexOf("gradient(")>-1?e:"transparent"})),w.shorten(t))}function h(e){4==e.length&&"/"==e[2][0]&&e[1][0]==e[3][0]?e.splice(2):6==e.length&&"/"==e[3][0]&&e[1][0]==e[4][0]&&e[2][0]==e[5][0]?e.splice(3):8==e.length&&"/"==e[4][0]&&e[1][0]==e[5][0]&&e[2][0]==e[6][0]&&e[3][0]==e[7][0]?e.splice(4):10==e.length&&"/"==e[5][0]&&e[1][0]==e[6][0]&&e[2][0]==e[7][0]&&e[3][0]==e[8][0]&&e[4][0]==e[9][0]&&e.splice(5)}function p(e){e.length<3&&(e[1][0]=e[1][0].replace(/progid:DXImageTransform\.Microsoft\.(Alpha|Chroma)(\W)/,function(e,t,r){return t.toLowerCase()+r})),e[1][0]=e[1][0].replace(/,(\S)/g,", $1").replace(/ ?= ?/g,"=")}function d(e){var t=E.indexOf(e[1][0])>-1||e[2]&&E.indexOf(e[2][0])>-1||e[3]&&E.indexOf(e[3][0])>-1;if(!t&&"/"!=e[2]){var r=0;if("normal"==e[1][0]&&r++,e[2]&&"normal"==e[2][0]&&r++,e[3]&&"normal"==e[3][0]&&r++,!(r>1)){var n;S.indexOf(e[1][0])>-1?n=1:e[2]&&S.indexOf(e[2][0])>-1?n=2:e[3]&&S.indexOf(e[3][0])>-1&&(n=3),n&&(e[n][0]=O["font-weight"](e[n][0]))}}}function g(e,t){for(var r,n,g,m,v=0,b=e.length;b>v;v++)if(m=!1,r=e[v],"string"!=typeof r||0!==r.indexOf("__ESCAPED_")){n=r[0][0];var y=r[0][2];if(y&&(("star"==y||"underscore"==y)&&!t.compatibility.properties.iePrefixHack||"suffix"==y&&!t.compatibility.properties.ieSuffixHack)&&(m=!0),0===n.indexOf("padding")&&(i(r,1)||i(r,2)||i(r,3)||i(r,4))&&(m=!0),m)e.splice(v,1),v--,b--;else{for(var w=1,_=r.length;_>w;w++)g=r[w][0],O[n]&&(g=O[n](g,w,_)),g=s(n,g),g=u(n,g,t.precision),g=o(n,g),t.compatibility.properties.zeroUnits&&(g=a(n,g),g=l(n,g,t.unitsRegexp)),g=f(n,g,t.compatibility),r[w][0]=g;c(r),0===n.indexOf("border")&&n.indexOf("radius")>0?h(r):"filter"==n?p(r):"font"==n&&d(r)}}}var m=e("./clean-up"),v=e("../../utils/splitter"),b=e("../../colors/rgb"),y=e("../../colors/hsl"),w=e("../../colors/hex-name-shortener"),_=2,x="@charset",k=new RegExp("^"+x,"i"),E=["100","200","300","400","500","600","700","800","900"],S=["normal","bold","bolder","lighter"],O={background:function(e,t,r){return 1!=t||2!=r||"none"!=e&&"transparent"!=e?e:"0 0"},"font-weight":function(e){return"normal"==e?"400":"bold"==e?"700":e},outline:function(e,t,r){return 1==t&&2==r&&"none"==e?"0":e}};n.prototype.optimize=function(e){function t(e){for(var t=0,r=e.length;r>t;t++)n=e[t],"at-rule"==n[0]&&k.test(n[1][0])&&(o||-1==n[1][0].indexOf(x)?(e.splice(t,1),t--,r--):(o=!0,e.splice(t,1),e.unshift(["at-rule",[n[1][0].replace(k,x)]])))}function r(e){for(var o=!1,a=0,l=e.length;l>a;a++){switch(n=e[a],n[0]){case"selector":n[1]=m.selectors(n[1],!s,u),g(n[2],i.options);break;case"block":m.block(n[1]),r(n[2]);break;case"flat-block":m.block(n[1]),g(n[2],i.options);break;case"at-rule":m.atRule(n[1]),o=!0}(0===n[1].length||n[2]&&0===n[2].length)&&(e.splice(a,1),a--,l--)}o&&t(e)}var n,i=this,o=!1,a=this.options,s=a.compatibility.selectors.ie7Hack,u=a.compatibility.selectors.adjacentSpace;r(e)},t.exports=n},{"../../colors/hex-name-shortener":3,"../../colors/hsl":4,"../../colors/rgb":5,"../../utils/splitter":50,"./clean-up":28}],30:[function(e,t,r){function n(e,t){for(var r=t.length-1;r>=0;r--)for(var n=e.length-1;n>=0;n--)if(!i(e[n],t[r]))return!1;return!0}function i(e,t){var r=e[0],n=e[1],i=e[2],c=e[5],f=e[6],h=t[0],p=t[1],d=t[2],g=t[5],m=t[6];return"font"==r&&"line-height"==h||"font"==h&&"line-height"==r?!1:l.test(r)&&l.test(h)?!1:i==d&&a(r)==a(h)&&o(r)^o(h)?!1:i!=d?!0:r!=h||i!=d||n!=p&&!s(n,p)?r!=h&&i==d&&r!=i&&h!=d?!0:r!=h&&i==d&&n==p?!0:m&&f&&u(g,c)?!0:!1:!0}function o(e){return/^\-(?:moz|webkit|ms|o)\-/.test(e)}function a(e){return e.replace(/^\-(?:moz|webkit|ms|o)\-/,"")}function s(e,t){return o(e)&&o(t)&&e.split("-")[1]!=t.split("-")[2]}function u(e,t){for(var r=0,n=e.length;n>r;r++)for(var i=0,o=t.length;o>i;i++)if(e[r][0]==t[i][0])return!1;return!0}var l=/align\-items|box\-align|box\-pack|flex|justify/;t.exports={canReorder:n,canReorderSingle:i}},{}],31:[function(e,t,r){function n(e,t){this.minifyContext=e,this.sourceMaps=t}function i(e){var t=c.relative(e.outer.options.root,e.outer.options.target);return function(e,r){return e!=r?c.normalize(c.join(c.relative(t,c.dirname(e)),r)):r}}function o(e){var t,r=e.mode,n=e.chunk;if(n.length==e.cursor){if(e.chunker.isEmpty())return null;e.chunk=n=e.chunker.next(),e.cursor=0}if("body"==r)return t=n.indexOf("}",e.cursor),t>-1?[t,"bodyEnd"]:null;var i=n.indexOf("@",e.cursor),o=n.indexOf("__ESCAPED_",e.cursor),a=n.indexOf("{",e.cursor),s=n.indexOf("}",e.cursor);return o>-1&&/\S/.test(n.substring(e.cursor,o))&&(o=-1),t=i,(-1==t||o>-1&&t>o)&&(t=o),(-1==t||a>-1&&t>a)&&(t=a),(-1==t||s>-1&&t>s)&&(t=s),-1!=t?o===t?[t,"escape"]:a===t?[t,"bodyStart"]:s===t?[t,"bodyEnd"]:i===t?[t,"special"]:void 0:void 0}function a(e){for(var t,r,n=e.chunk,i=[];;){var s=o(e);if(!s){var l=e.chunk.substring(e.cursor);l.trim().length>0&&("body"==e.mode?e.outer.warnings.push("Missing '}' after '"+l+"'. Ignoring."):i.push(["text",[l]]),e.cursor+=l.length);break}var c,h,p=s[0],d=s[1];if(n=e.chunk,e.cursor!=p&&"bodyEnd"!=d){var g=n.substring(e.cursor,p),m=/^\s+/.exec(g);m&&(e.cursor+=m[0].length,e.track(m[0]))}if("special"==d){var v=n.indexOf("{",p),b=n.indexOf(";",p),y=b>-1&&(-1==v||v>b),w=-1==v&&-1==b;if(w)e.outer.warnings.push("Broken declaration: '"+n.substring(e.cursor)+"'."),e.cursor=n.length;else if(y)c=n.indexOf(";",p+1),r=n.substring(e.cursor,c+1),i.push(["at-rule",[r].concat(e.track(r,!0))]),e.track(";"),e.cursor=c+1;else{c=n.indexOf("{",p+1),r=n.substring(e.cursor,c);var _=r.trim(),x=f.test(_);h=e.mode,e.cursor=c+1,e.mode=x?"body":"block",t=[x?"flat-block":"block"],t.push([_].concat(e.track(r,!0))),e.track("{"),t.push(a(e)),"string"==typeof t[2]&&(t[2]=u.properties(t[2],[[_]],e)),e.mode=h,e.track("}"),i.push(t)}}else if("escape"==d){c=n.indexOf("__",p+1);var k=n.substring(e.cursor,c+2),E=!!e.outer.sourceTracker.nextStart(k),S=!!e.outer.sourceTracker.nextEnd(k);if(E)e.track(k),e.state.push({source:e.source,line:e.line,column:e.column}),e.source=e.outer.sourceTracker.nextStart(k).filename,e.line=1,e.column=0;else if(S){var O=e.state.pop();e.source=O.source,e.line=O.line,e.column=O.column,e.track(k)}else 0===k.indexOf("__ESCAPED_COMMENT_SPECIAL")&&i.push(["text",[k]]),e.track(k);e.cursor=c+2}else if("bodyStart"==d){var C=u.selectors(n.substring(e.cursor,p),e);h=e.mode,e.cursor=p+1,e.mode="body";var A=u.properties(a(e),C,e);e.track("{"),e.mode=h,i.push(["selector",C,A])}else if("bodyEnd"==d){if("top"==e.mode){ +var M=e.cursor,R="}"==n[e.cursor]?"Unexpected '}' in '"+n.substring(M-20,M+20)+"'. Ignoring.":"Unexpected content: '"+n.substring(M,p+1)+"'. Ignoring.";e.outer.warnings.push(R),e.cursor=p+1;continue}"block"==e.mode&&e.track(n.substring(e.cursor,p)),"block"!=e.mode&&(i=n.substring(e.cursor,p)),e.cursor=p+1;break}}return i}var s=e("../utils/chunker"),u=e("../utils/extractors"),l=e("../utils/source-maps"),c=e("path"),f=/(^@(font\-face|page|\-ms\-viewport|\-o\-viewport|viewport|counter\-style)|\\@.+?)/;n.prototype.toTokens=function(e){e=e.replace(/\r\n/g,"\n");var t=new s(e,"}",128);if(t.isEmpty())return[];var r={cursor:0,mode:"top",chunker:t,chunk:t.next(),outer:this.minifyContext,track:this.sourceMaps?function(e,t,n){return[[l(e,r,t,n)]]}:function(){return[]},sourceMaps:this.sourceMaps,state:[],line:1,column:0,source:void 0};return this.minifyContext.options.explicitTarget&&(r.resolvePath=i(r)),a(r)},t.exports=n},{"../utils/chunker":41,"../utils/extractors":43,"../utils/source-maps":47,path:67}],32:[function(e,t,r){function n(e,t){for(var r=t,n=e.length;n>r;r++)if("string"!=typeof e[r])return!0;return!1}function i(e,t){return")"==e[t][0][e[t][0].length-1]||0===e[t][0].indexOf("__ESCAPED_URL_CLEAN_CSS")}function o(e,t){return 0===e[t][0].indexOf("calc(")}function a(e,t){return","==e[t][0]}function s(e,t){return"/"==e[t][0]}function u(e,t){return e[t+1]&&","==e[t+1][0]}function l(e,t){return e[t+1]&&"/"==e[t+1][0]}function c(e){return"filter"==e[0][0]||"-ms-filter"==e[0][0]}function f(e,t,r){return!r.spaceAfterClosingBrace&&i(e,t)&&!o(e,t)||l(e,t)||s(e,t)||u(e,t)||a(e,t)}function h(e,t){var r=e[2];"underscore"==r?t.store(_,t):"star"==r&&t.store(y,t)}function p(e,t){for(var r=t.store,n=0,i=e.length;i>n;n++)r(e[n],t),i-1>n&&r(",",t)}function d(e,t){for(var r=0,n=e.length;n>r;r++)g(e,r,r==n-1,t)}function g(e,t,r,n){var i=n.store,o=e[t];"string"==typeof o?i(o,n):(h(o[0],n),i(o[0],n),i(":",n),m(e,t,r,n))}function m(e,t,r,i){for(var o=i.store,a=e[t],s=a[0][1],u=a[0][2],l=1,h=a.length;h>l;l++)o(a[l],i),l==h-1&&"suffix"==u&&o(w,i),l==h-1&&s&&o("!important",i),h-1>l&&(c(a)||!f(a,l,i))?o(" ",i):l==h-1&&!r&&n(e,t+1)&&o(";",i)}function v(e,t){for(var r=t.keepBreaks?b:"",n=t.store,i=0,o=e.length;o>i;i++){var a=e[i];switch(a[0]){case"at-rule":case"text":n(a[1][0],t),n(r,t);break;case"block":p([a[1]],t),n("{",t),v(a[2],t),n("}",t),n(r,t);break;case"flat-block":p([a[1]],t),n("{",t),d(a[2],t),n("}",t),n(r,t);break;default:p(a[1],t),n("{",t),d(a[2],t),n("}",t),n(r,t)}}}var b=e("os").EOL,y="*",w="\\0",_="_";t.exports={all:v,body:d,property:g,selectors:p,value:m}},{os:66}],33:[function(e,t,r){function n(e,t){t.output.push("string"==typeof e?e:e[0])}function i(){return{output:[],store:n}}function o(e){var t=i();return c.all(e,t),t.output.join("")}function a(e){var t=i();return c.body(e,t),t.output.join("")}function s(e,t){var r=i();return c.property(e,t,!0,r),r.output.join("")}function u(e){var t=i();return c.selectors(e,t),t.output.join("")}function l(e,t){var r=i();return c.value(e,t,!0,r),r.output.join("")}var c=e("./helpers");t.exports={all:o,body:a,property:s,selectors:u,value:l}},{"./helpers":32}],34:[function(e,t,r){function n(e,t){t.output.push("string"==typeof e?e:e[0])}function i(e,t,r){var i={keepBreaks:t.keepBreaks,output:[],spaceAfterClosingBrace:t.compatibility.properties.spaceAfterClosingBrace,store:n};return o(e,i,!1),{styles:r(i.output.join("")).trim()}}var o=e("./helpers").all;t.exports=i},{"./helpers":32}],35:[function(e,t,r){(function(r){function n(e,t){var r="string"==typeof e,n=r?e:e[0];n.indexOf("_")>-1&&(n=t.restore(n)),i(n,r?null:e,t),t.output.push(n)}function i(e,t,r){t&&o(t,r);var n=e.split("\n");r.line+=n.length-1,r.column=n.length>1?0:r.column+n.pop().length}function o(e,t){var r=e[e.length-1];if(Array.isArray(r))for(var n=0,i=r.length;i>n;n++)a(r[n],t)}function a(e,t){var r=e[2]||f;c&&(r=r.replace(/\\/g,"/")),t.outputMap.addMapping({generated:{line:t.line,column:t.column},source:r,original:{line:e[0],column:e[1]}}),e[3]&&t.outputMap.setSourceContent(r,e[3][e[2]])}function s(e,t,r,i){var o={column:0,inputMapTracker:i,keepBreaks:t.keepBreaks,line:1,output:[],outputMap:new u,restore:r,sourceMapInlineSources:t.sourceMapInlineSources,spaceAfterClosingBrace:t.compatibility.properties.spaceAfterClosingBrace,store:n};return l(e,o,!1),{sourceMap:o.outputMap,styles:o.output.join("").trim()}}var u=e("source-map").SourceMapGenerator,l=e("./helpers").all,c="win32"==r.platform,f="$stdin";t.exports=s}).call(this,e("_process"))},{"./helpers":32,_process:68,"source-map":89}],36:[function(e,t,r){function n(e,t,r,n){this.comments=new a("COMMENT"),this.specialComments=new a("COMMENT_SPECIAL"),this.context=e,this.restored=0,this.keepAll="*"==t,this.keepOne="1"==t||1===t,this.keepBreaks=r,this.saveWaypoints=n}function i(e){var t=[];return new s(e).each(function(e,r,n){t.push([n,n+e.length])}),function(e){for(var r=0,n=t.length;n>r;r++)if(t[r][0]e)return!0;return!1}}function o(e,t,r,n){for(var i,o=[],a=0;a0?o.join("")+t.substring(a,t.length):t}var a=e("./escape-store"),s=e("../utils/quote-scanner"),u="/*!",l="/*",c="*/",f=e("os").EOL;n.prototype.escape=function(e){for(var t,r,n,o=[],a=0,s=0,h=0,p=0,d=i(e),g=this.saveWaypoints;s0?m.substring(r+f.length).length:p+m.length),g||v){var b=g?[t,n]:null,y=v?this.specialComments.store(m,b):this.comments.store(m,b);o.push(y)}g&&(p=n+1),h=s+c.length}return o.length>0?o.join("")+e.substring(h,e.length):e},n.prototype.restore=function(e){return e=o(this,e,this.comments,!1),e=o(this,e,this.specialComments,!0)},t.exports=n},{"../utils/quote-scanner":46,"./escape-store":37,os:66}],37:[function(e,t,r){function n(e){this.placeholderRoot="ESCAPED_"+e+"_CLEAN_CSS",this.placeholderToData={},this.dataToPlaceholder={},this.count=0,this.restoreMatcher=new RegExp(this.placeholderRoot+"(\\d+)")}var i="__";n.prototype._nextPlaceholder=function(e){return{index:this.count,value:i+this.placeholderRoot+this.count++ +e+i}},n.prototype.store=function(e,t){var r=t?"("+t.join(",")+")":"",n=this.dataToPlaceholder[e];if(!n){var i=this._nextPlaceholder(r);n=i.value,this.placeholderToData[i.index]=e,this.dataToPlaceholder[e]=i.value}return t&&(n=n.replace(/\([^\)]+\)/,r)),n},n.prototype.nextMatch=function(e,t){var r={};return r.start=e.indexOf(this.placeholderRoot,t)-i.length,r.end=e.indexOf(i,r.start+i.length)+i.length,r.start>-1&&r.end>-1&&(r.match=e.substring(r.start,r.end)),r},n.prototype.restore=function(e){var t=this.restoreMatcher.exec(e)[1];return this.placeholderToData[t]},t.exports=n},{}],38:[function(e,t,r){function n(e,t){for(var r=t+a.length,n=0,i=!1,o=!1;;){var l=e[r++];if(i?i="'"!=l&&'"'!=l:(i="'"==l||'"'==l,l==s&&n++,l==u&&n--,l==c&&(o=!0),l!=f||o||1!=n||(r--,n--)),0===n&&l==u)break;if(!l){r=e.substring(0,r).lastIndexOf(f);break}}return r}function i(e){this.expressions=new o("EXPRESSION"),this.saveWaypoints=e}var o=e("./escape-store"),a="expression",s="(",u=")",l=a+s,c="{",f="}",h=e("os").EOL;i.prototype.escape=function(e){for(var t,r,i,o=0,a=0,s=0,u=[],c=0,f=this.saveWaypoints;a0?p.substring(r+h.length).length:c+p.length);var d=f?[t,i]:null,g=this.expressions.store(p,d);u.push(e.substring(s,o)),u.push(g),f&&(c=i+1),s=a}return u.length>0?u.join("")+e.substring(s,e.length):e},i.prototype.restore=function(e){for(var t=[],r=0;r0?t.join("")+e.substring(r,e.length):e},t.exports=i},{"./escape-store":37,os:66}],39:[function(e,t,r){function n(e){this.matches=new o("FREE_TEXT"),this.saveWaypoints=e}function i(e,t,r){var n=t.lastIndexOf(";",r),i=t.lastIndexOf("{",r),o=0;o=n>-1&&i>-1?Math.max(n,i):-1==n?i:n;var a=t.substring(o+1,r);if(/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(a)&&(e=e.replace(/\\\n|\\\r\n/g,"")),/^['"][a-zA-Z][a-zA-Z\d\-_]+['"]$/.test(e)&&!/format\($/.test(a)){var s=/^(font|font\-family):/.test(a),u=/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(a),l=/@(-moz-|-o-|-webkit-)?keyframes /.test(a),c=/^(-moz-|-o-|-webkit-)?animation(-name)?:/.test(a);(s||u||l||c)&&(e=e.substring(1,e.length-1))}return e}var o=e("./escape-store"),a=e("../utils/quote-scanner"),s=e("os").EOL;n.prototype.escape=function(e){var t,r,n,i,o=this,u=this.saveWaypoints;return new a(e).each(function(e,a){u&&(t=e.split(s).length-1,r=e.lastIndexOf(s),n=r>0?e.substring(r+s.length).length:e.length,i=[t,n]);var l=o.matches.store(e,i);a.push(l)})},n.prototype.restore=function(e){for(var t=[],r=0;r0?t.join("")+e.substring(r,e.length):e},t.exports=n},{"../utils/quote-scanner":46,"./escape-store":37,os:66}],40:[function(e,t,r){function n(e,t,r){this.urls=new o("URL"),this.context=e,this.saveWaypoints=t,this.keepUrlQuotes=r}function i(e,t){return e=e.replace(/^url/gi,"url").replace(/\\?\n|\\?\r\n/g,"").replace(/(\s{2,}|\s)/g," ").replace(/^url\((['"])? /,"url($1").replace(/ (['"])?\)$/,"$1)"),t||/url\(.*[\s\(\)].*\)/.test(e)||/url\(['"]data:[^;]+;charset/.test(e)||(e=e.replace(/["']/g,"")),e}var o=e("./escape-store"),a=e("../utils/url-scanner"),s=e("os").EOL;n.prototype.escape=function(e){var t,r,n,i=this.saveWaypoints,o=this;return new a(e,this.context).reduce(function(e,a){i&&(t=e.split(s).length-1,r=e.lastIndexOf(s),n=r>0?e.substring(r+s.length).length:e.length);var u=o.urls.store(e,i?[t,n]:null);a.push(u)})},n.prototype.restore=function(e){for(var t=[],r=0;r0?t.join("")+e.substring(r,e.length):e},t.exports=n},{"../utils/url-scanner":51,"./escape-store":37,os:66}],41:[function(e,t,r){function n(e,t,r){this.chunks=[];for(var n=0,i=e.length;i>n;){var o=n+r>i?i-1:n+r;e[o]!=t&&(o=e.indexOf(t,o)),-1==o&&(o=e.length-1),this.chunks.push(e.substring(n,o+t.length)),n=o+t.length}}n.prototype.isEmpty=function(){return 0===this.chunks.length},n.prototype.next=function(){return this.chunks.shift()},t.exports=n},{}],42:[function(e,t,r){function n(e){this.source=e||{}}function i(e,t){for(var r in e){var n=e[r];"object"!=typeof n||a.isRegExp(n)?t[r]=r in t?t[r]:n:t[r]=i(n,t[r]||{})}return t}function o(e){if("object"==typeof e)return e;if(!/[,\+\-]/.test(e))return s[e]||s["*"];var t=e.split(","),r=t[0]in s?s[t.shift()]:s["*"];return e={},t.forEach(function(t){var r="+"==t[0],n=t.substring(1).split("."),i=n[0],o=n[1];e[i]=e[i]||{},e[i][o]=r}),i(r,e)}var a=e("util"),s={"*":{colors:{opacity:!0},properties:{backgroundSizeMerging:!1,iePrefixHack:!1,ieSuffixHack:!1,merging:!0,spaceAfterClosingBrace:!1,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:dir\([a-z-]*\)|:first(?![a-z-])|:fullscreen|:left|:read-only|:read-write|:right)/},units:{rem:!0}},ie8:{colors:{opacity:!1},properties:{backgroundSizeMerging:!1,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not)/},units:{rem:!1}},ie7:{colors:{opacity:!1},properties:{backgroundSizeMerging:!1,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!0,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:focus|:before|:after|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not)/},units:{rem:!1}}};n.prototype.toOptions=function(){return i(s["*"],o(this.source))},t.exports=n},{util:88}],43:[function(e,t,r){function n(e){return e[0]}function i(){}function o(e,t,r,n){for(var o=r?/^__ESCAPED_COMMENT_/:/__ESCAPED_COMMENT_/,a=r?n.track:i;o.test(e);){var s=e.indexOf("__"),u=e.indexOf("__",s+1)+2,l=e.substring(s,u);e=e.substring(0,s)+e.substring(u),a(l),t.push(l)}return e}function a(e,t,r){return o(e,t,!0,r)}function s(e,t,r){return o(e,t,!1,r)}function u(e,t,r){for(var n=0,i=e.length;i>n;n++)r.track(e[n]),t.push(e[n])}var l=e("./splitter"),c=",",f="/",h={properties:function(e,t,r){var i=[],o=[],h=new l(/[ ,\/]/);if("string"!=typeof e)return[];e.indexOf(")")>-1&&(e=e.replace(/\)([^\s_;:,\)])/g,r.sourceMaps?") __ESCAPED_COMMENT_CLEAN_CSS(0,-1)__ $1":") $1")),e.indexOf("ESCAPED_URL_CLEAN_CSS")>-1&&(e=e.replace(/(ESCAPED_URL_CLEAN_CSS[^_]+?__)/g,r.sourceMaps?"$1 __ESCAPED_COMMENT_CLEAN_CSS(0,-1)__ ":"$1 "));for(var p=e.split(";"),d=0,g=p.length;g>d;d++){var m=p[d],v=m.indexOf(":");if(-1!=v)if(m.indexOf("{")>0)r.track(m);else{var b=[],y=m.substring(0,v);o=[],y.indexOf("__ESCAPED_COMMENT")>-1&&(y=a(y,i,r)),y.indexOf("__ESCAPED_COMMENT")>-1&&(y=s(y,o,r)),b.push([y.trim()].concat(r.track(y,!0))),r.track(":"),u(o,i,r);var w=h.split(m.substring(v+1),!0);if(1!=w.length||""!==w[0]){for(var _=0,x=w.length;x>_;_++){var k=w[_],E=k.trim();if(0!==E.length){var S=E[E.length-1],O=E.length>1&&(S==c||S==f);if(O&&(E=E.substring(0,E.length-1)),E.indexOf("__ESCAPED_COMMENT_CLEAN_CSS(0,-")>-1)r.track(E);else if(o=[],E.indexOf("__ESCAPED_COMMENT")>-1&&(E=a(E,i,r)),E.indexOf("__ESCAPED_COMMENT")>-1&&(E=s(E,o,r)),0!==E.length){var C=b.length-1;"important"!=E||"!"!=b[C][0]?"!important"==E||"important"==E&&"!"==b[C][0][b[C][0].length-1]?(r.track(E),b[C][0]+=E):(b.push([E].concat(r.track(k,!0))),u(o,i,r),O&&(b.push([S]),r.track(S))):(r.track(E),b[C-1][0]+="!important",b.pop())}else u(o,i,r)}}g-1>d&&r.track(";"),i.push(b)}else r.outer.warnings.push("Empty property '"+y+"' inside '"+t.filter(n).join(",")+"' selector. Ignoring.")}else r.track(m),m.indexOf("__ESCAPED_COMMENT_")>-1&&i.push(m.trim())}return i},selectors:function(e,t){for(var r,n=[],i=new l(",").split(e),o=0,a=i.length;a>o;o++)r=t.track(i[o],!0,o),t.track(","),n.push([i[o].trim()].concat(r));return n}};t.exports=h},{"./splitter":50}],44:[function(e,t,r){(function(r){function n(e){this.options=e.options,this.errors=e.errors,this.warnings=e.warnings,this.sourceTracker=e.sourceTracker,this.timeout=this.options.inliner.timeout,this.requestOptions=this.options.inliner.request,this.localOnly=e.localOnly,this.relativeTo=e.options.target||r.cwd(),this.maps={},this.sourcesContent={}}function i(e,t,r){return e.trackLoaded(void 0,void 0,e.options.sourceMap),r()}function o(e,t,r,n){function i(){n.cursor+=s+1,o(e,t,r,n)}for(var s=0;n.cursor-1&&(s=l.index),c.index>-1&&c.index-1&&f.index299)return n(e.statusCode);var t=[];e.on("data",function(e){t.push(e.toString())}),e.on("end",function(){r(t.join(""))})}).on("error",function(e){a||(n(e.message),a=!0)}).on("timeout",function(){a||(n("timeout"),a=!0)}).setTimeout(e.timeout)}function u(e,t,r,n,i){for(var o,a=n.length,s={line:t,column:r+a};a-->0&&(s.column--,!(o=e.data.originalPositionFor(s))););return null===o.line&&t>1&&i>0?u(e,t-1,r,n,i-1):(e.path&&(o.source=y.test(e.path)?m.resolve(e.path,o.source):p.join(e.path,o.source),o.sourceResolved=!0),o)}function l(e,t){var r=e.maps[t].data,n=y.test(t),i={};r.sources.forEach(function(o,a){var s=n?m.resolve(p.dirname(t),o):p.relative(e.relativeTo,p.resolve(p.dirname(t),o));i[s]=r.sourcesContent&&r.sourcesContent[a]}),e.sourcesContent[t]=i}function c(e,t,r){function n(){return c(e,t,r)}if(0===t.length)return r();var i=t.shift(),o=i[0],a=i[1],u=y.test(o);if(u&&e.localOnly)return e.warnings.push('No callback given to `#minify` method, cannot fetch a remote file from "'+a+'"'),n();if(!u){var l=p.join(e.options.root,a);return h.existsSync(l)?e.sourcesContent[o][a]=h.readFileSync(l,"utf-8"):e.warnings.push('Missing original source file at "'+l+'".'),n()}s(e,a,function(t){e.sourcesContent[o][a]=t,n()},function(t){e.warnings.push('Broken original source file at "'+a+'" - '+t),n()})}var f=e("source-map").SourceMapConsumer,h=e("fs"),p=e("path"),d=e("http"),g=e("https"),m=e("url"),v=e("../utils/object.js").override,b=/\/\*# sourceMappingURL=(\S+) \*\//,y=/^(https?:)?\/\//;n.prototype.track=function(e,t){return"string"==typeof this.options.sourceMap?i(this,e,t):o(this,e,t,{files:[],cursor:0,errors:this.errors})},n.prototype.trackLoaded=function(e,t,r){var n=this.options.explicitTarget?this.options.target:this.options.root,i=y.test(e);t&&(t=p.dirname(i?t:p.relative(n,t))),this.maps[e]={path:t,data:new f(r)},l(this,e)},n.prototype.isTracking=function(e){return!!this.maps[e]},n.prototype.originalPositionFor=function(e,t,r){return u(this.maps[e.source],e.line,e.column,t,r)},n.prototype.sourcesContentFor=function(e){return this.sourcesContent[e]},n.prototype.resolveSources=function(e){var t=[];for(var r in this.sourcesContent){var n=this.sourcesContent[r];for(var i in n)n[i]||t.push([r,i])}return c(this,t,e)},t.exports=n}).call(this,e("_process"))},{"../utils/object.js":45,_process:68,fs:52,http:59,https:63,path:67,"source-map":89,url:86}],45:[function(e,t,r){t.exports={override:function(e,t){var r={};for(var n in e)r[n]=e[n];for(var i in t)r[i]=t[i];return r}}},{}],46:[function(e,t,r){function n(e){this.data=e}function i(e,t,r){for(var n="\\",i=r;;){if(i=e.indexOf(t,i+1),-1==i)return-1;if(e[i-1]!=n)return i}}var o=function(e,t,r,n){var i="/*",o="*/",a="\\",s="}",u=e.substring(n,r),l=u.lastIndexOf(o,r),c=u.lastIndexOf(i,r),f=!1;if(l>=r&&c>-1&&(f=!0),r>c&&c>l&&(f=!0),f){var h=e.indexOf(o,r);return h>-1?h:(h=e.indexOf(s,r),h>-1?h-1:e.length)}for(;;){if(void 0===e[r])break;if(e[r]==t&&(e[r-1]!=a||e[r-2]==a))break;r++}return r};n.prototype.each=function(e){for(var t=this.data,r=[],n=0,a=0,s=0,u=null,l="'",c='"',f=t.length;ah?(n=h,u=l):(n=p,u=c),-1==n)break;if(a=o(t,u,n+1,s),-1==a)break;var d=t.substring(n,a+1);r.push(t.substring(s,n)),d.length>0&&e(d,r,n),s=a+1}return r.length>0?r.join("")+t.substring(s,t.length):t},t.exports=n},{}],47:[function(e,t,r){function n(e,t,r){if(!r&&-1==e.indexOf("\n"))return 0===e.indexOf(u)?e:void(t.column+=e.length);for(var n=0,i=e.split("\n"),o=i.length,a=0;;){if(n==o-1)break;var s=i[n];if(/\S/.test(s))break;a+=s.length+1,n++}return t.line+=n,t.column=n>0?0:t.column,t.column+=/^(\s)*/.exec(i[n])[0].length,e.substring(a).trimLeft()}function i(e,t,r){var n=e.source||t.source;return n&&r.resolvePath?r.resolvePath(t.source,n):n}function o(e,t,r){var n={line:t.line,column:t.column,source:t.source},o=null,a=t.outer.inputSourceMapTracker.isTracking(n.source)?t.outer.inputSourceMapTracker.originalPositionFor(n,e,r||0):{};if(n.line=a.line||n.line,n.column=a.column||n.column,n.source=a.sourceResolved?a.source:i(a,n,t),t.outer.options.sourceMapInlineSources){var s=t.outer.inputSourceMapTracker.sourcesContentFor(t.source);o=s&&s[n.source]?s:t.outer.sourceReader.sourceAt(t.source)}return o?[n.line,n.column,n.source,o]:[n.line,n.column,n.source]}function a(e,t){for(var r=e.split("\n"),n=0,i=r.length;i>n;n++){var o=r[n],a=0;for(n>0&&(t.line++,t.column=0);;){var s=o.indexOf(u,a);if(-1==s){t.column+=o.substring(a).length;break}t.column+=s-a,a+=s-a;var l=o.substring(s,o.indexOf("__",s+1)+2),c=l.substring(l.indexOf("(")+1,l.indexOf(")")).split(",");t.line+=~~c[0],t.column=(0===~~c[0]?t.column:0)+~~c[1],a+=l.length}}}function s(e,t,r,i){var s=n(e,t,r),u=r?o(s,t,i):[];return s&&a(s,t),u}var u="__ESCAPED_";t.exports=s},{}],48:[function(e,t,r){(function(r){function n(e,t){this.outerContext=e,this.data=t,this.sources={}}function i(e){var t=e.data;return e.trackSource(void 0,t),t}function o(e){var t=e.data.toString();return e.trackSource(void 0,t),t}function a(e){return e.data.map(function(t){return e.outerContext.options.processImport===!1?t+"@shallow":t}).map(function(t){return!e.outerContext.options.relativeTo||/^https?:\/\//.test(t)?t:u.relative(e.outerContext.options.relativeTo,t)}).map(function(e){return"@import url("+e+");"}).join("")}function s(e){var t=[],r=u.resolve(e.outerContext.options.target||e.outerContext.options.root);for(var n in e.data){var i=e.data[n].styles,o=e.data[n].sourceMap,a=c.test(n),s=a?n:u.resolve(n),f=u.dirname(s),h=new l({absolute:e.outerContext.options.explicitRoot,relative:!e.outerContext.options.explicitRoot,imports:!0,urls:e.outerContext.options.rebase,fromBase:f,toBase:a?f:r},e.outerContext);i=h.process(i),e.trackSource(n,i),i=e.outerContext.sourceTracker.store(n,i),e.outerContext.options.sourceMap&&o&&e.outerContext.inputSourceMapTracker.trackLoaded(n,n,o),t.push(i)}return t.join("")}var u=e("path"),l=e("../images/url-rewriter"),c=/^(https?:)?\/\//;n.prototype.sourceAt=function(e){return this.sources[e]},n.prototype.trackSource=function(e,t){this.sources[e]={},this.sources[e][e]=t},n.prototype.toString=function(){return"string"==typeof this.data?i(this):r.isBuffer(this.data)?o(this):Array.isArray(this.data)?a(this):s(this)},t.exports=n}).call(this,e("buffer").Buffer)},{"../images/url-rewriter":7,buffer:54,path:67}],49:[function(e,t,r){function n(){this.sources=[]}n.prototype.store=function(e,t){return this.sources.push(e),"__ESCAPED_SOURCE_CLEAN_CSS"+(this.sources.length-1)+"__"+t+"__ESCAPED_SOURCE_END_CLEAN_CSS__"},n.prototype.nextStart=function(e){var t=/__ESCAPED_SOURCE_CLEAN_CSS(\d+)__/.exec(e);return t?{index:t.index,filename:this.sources[~~t[1]]}:null},n.prototype.nextEnd=function(e){return/__ESCAPED_SOURCE_END_CLEAN_CSS__/g.exec(e)},n.prototype.removeAll=function(e){return e.replace(/__ESCAPED_SOURCE_CLEAN_CSS\d+__/g,"").replace(/__ESCAPED_SOURCE_END_CLEAN_CSS__/g,"")},t.exports=n},{}],50:[function(e,t,r){function n(e){this.separator=e,this.withRegex="string"!=typeof e}n.prototype.split=function(e,t){var r=this.withRegex?this.separator.test(e):e.indexOf(this.separator);if(!r)return[e];if(-1===e.indexOf("(")&&!t)return e.split(this.separator);for(var n=0,i=0,o=0,a=e.length,s=[];i++o&&s.push(e.substring(o)),s},t.exports=n},{}],51:[function(e,t,r){function n(e,t){this.data=e,this.context=t}var i="url(",o="URL(",a=")";n.prototype.reduce=function(e){for(var t=0,r=0,n=0,s=0,u=[],l=this.data,c=l.indexOf(o)>-1;n-1&&(t=r),n='"'==l[t+i.length]?l.indexOf('"',t+i.length+1):"'"==l[t+i.length]?l.indexOf("'",t+i.length+1):l.indexOf(a,t),-1==n?(n=l.indexOf("}",t),-1==n?n=l.length:n--,this.context.warnings.push("Broken URL declaration: '"+l.substring(t,n+1)+"'.")):l[n]!=a&&(n=l.indexOf(a,n)),u.push(l.substring(s,t));var f=l.substring(t,n+1);e(f,u),s=n+1}return u.length>0?u.join("")+l.substring(s,l.length):l},t.exports=n},{}],52:[function(e,t,r){},{}],53:[function(e,t,r){arguments[4][52][0].apply(r,arguments)},{dup:52}],54:[function(e,t,r){function n(e){return this instanceof n?(this.length=0,this.parent=void 0,"number"==typeof e?i(this,e):"string"==typeof e?o(this,e,arguments.length>1?arguments[1]:"utf8"):a(this,e)):arguments.length>1?new n(e,arguments[1]):new n(e)}function i(e,t){if(e=h(e,0>t?0:0|p(t)),!n.TYPED_ARRAY_SUPPORT)for(var r=0;t>r;r++)e[r]=0;return e}function o(e,t,r){("string"!=typeof r||""===r)&&(r="utf8");var n=0|g(t,r);return e=h(e,n),e.write(t,r),e}function a(e,t){if(n.isBuffer(t))return s(e,t);if(W(t))return u(e,t);if(null==t)throw new TypeError("must start with number, buffer, array or string");return"undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer?l(e,t):t.length?c(e,t):f(e,t)}function s(e,t){var r=0|p(t.length);return e=h(e,r),t.copy(e,0,0,r),e}function u(e,t){var r=0|p(t.length);e=h(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function l(e,t){var r=0|p(t.length);e=h(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function c(e,t){var r=0|p(t.length);e=h(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function f(e,t){var r,n=0;"Buffer"===t.type&&W(t.data)&&(r=t.data,n=0|p(r.length)),e=h(e,n);for(var i=0;n>i;i+=1)e[i]=255&r[i];return e}function h(e,t){n.TYPED_ARRAY_SUPPORT?e=n._augment(new Uint8Array(t)):(e.length=t,e._isBuffer=!0);var r=0!==t&&t<=n.poolSize>>>1;return r&&(e.parent=Y),e}function p(e){if(e>=G)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G.toString(16)+" bytes");return 0|e}function d(e,t){if(!(this instanceof d))return new d(e,t);var r=new n(e,t);return delete r.parent,r}function g(e,t){if("string"!=typeof e&&(e=String(e)),0===e.length)return 0;switch(t||"utf8"){case"ascii":case"binary":case"raw":return e.length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e.length;case"hex":return e.length>>>1;case"utf8":case"utf-8":return I(e).length;case"base64":return z(e).length;default:return e.length}}function m(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=t.length;if(o%2!==0)throw new Error("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;n>a;a++){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))throw new Error("Invalid hex string");e[r+a]=s}return a}function v(e,t,r,n){return F(I(t,e.length-r),e,r,n)}function b(e,t,r,n){return F(D(t),e,r,n)}function y(e,t,r,n){return b(e,t,r,n)}function w(e,t,r,n){return F(z(t),e,r,n)}function _(e,t,r,n){return F(N(t,e.length-r),e,r,n)}function x(e,t,r){return $.fromByteArray(0===t&&r===e.length?e:e.slice(t,r))}function k(e,t,r){var n="",i="";r=Math.min(e.length,r);for(var o=t;r>o;o++)e[o]<=127?(n+=q(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return n+q(i)}function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;r>i;i++)n+=String.fromCharCode(127&e[i]);return n}function S(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;r>i;i++)n+=String.fromCharCode(e[i]);return n}function O(e,t,r){var n=e.length;(!t||0>t)&&(t=0),(!r||0>r||r>n)&&(r=n);for(var i="",o=t;r>o;o++)i+=U(e[o]);return i}function C(e,t,r){for(var n=e.slice(t,r),i="",o=0;oe)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,r,i,o,a){if(!n.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(t>o||a>t)throw new RangeError("value is out of bounds");if(r+i>e.length)throw new RangeError("index out of range")}function R(e,t,r,n){0>t&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);o>i;i++)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function L(e,t,r,n){0>t&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);o>i;i++)e[r+i]=t>>>8*(n?i:3-i)&255}function j(e,t,r,n,i,o){if(t>i||o>t)throw new RangeError("value is out of bounds");if(r+n>e.length)throw new RangeError("index out of range");if(0>r)throw new RangeError("index out of range")}function T(e,t,r,n,i){return i||j(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),H.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,i){return i||j(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),H.write(e,t,r,n,52,8),r+8}function V(e){if(e=P(e).replace(X,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function P(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function U(e){return 16>e?"0"+e.toString(16):e.toString(16)}function I(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;n>a;a++){if(r=e.charCodeAt(a),r>55295&&57344>r){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(56320>r){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&((t-=3)>-1&&o.push(239,191,189),i=null);if(128>r){if((t-=1)<0)break;o.push(r)}else if(2048>r){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(65536>r){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(2097152>r))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function D(e){for(var t=[],r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function z(e){return $.toByteArray(V(e))}function F(e,t,r,n){for(var i=0;n>i&&!(i+r>=t.length||i>=e.length);i++)t[i+r]=e[i];return i}function q(e){try{return decodeURIComponent(e)}catch(t){return String.fromCharCode(65533)}}var $=e("base64-js"),H=e("ieee754"),W=e("is-array");r.Buffer=n,r.SlowBuffer=d,r.INSPECT_MAX_BYTES=50,n.poolSize=8192;var G=1073741823,Y={};n.TYPED_ARRAY_SUPPORT=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(r){return!1}}(),n.isBuffer=function(e){return!(null==e||!e._isBuffer)},n.compare=function(e,t){if(!n.isBuffer(e)||!n.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,i=t.length,o=0,a=Math.min(r,i);a>o&&e[o]===t[o];)++o;return o!==a&&(r=e[o],i=t[o]),i>r?-1:r>i?1:0},n.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.concat=function(e,t){if(!W(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new n(0);if(1===e.length)return e[0];var r;if(void 0===t)for(t=0,r=0;rt&&(t=0),r>this.length&&(r=this.length),t>=r)return"";for(;;)switch(e){case"hex":return O(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return E(this,t,r);case"binary":return S(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}},n.prototype.equals=function(e){if(!n.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===n.compare(this,e)},n.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""; + +},n.prototype.compare=function(e){if(!n.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:n.compare(this,e)},n.prototype.indexOf=function(e,t){function r(e,t,r){for(var n=-1,i=0;r+i2147483647?t=2147483647:-2147483648>t&&(t=-2147483648),t>>=0,0===this.length)return-1;if(t>=this.length)return-1;if(0>t&&(t=Math.max(this.length+t,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,t);if(n.isBuffer(e))return r(this,e,t);if("number"==typeof e)return n.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,t):r(this,[e],t);throw new TypeError("val must be string, number or Buffer")},n.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},n.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},n.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t=0|t,isFinite(r)?(r=0|r,void 0===n&&(n="utf8")):(n=r,r=void 0);else{var i=n;n=t,t=0|r,r=i}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(0>r||0>t)||t>this.length)throw new RangeError("attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return m(this,e,t,r);case"utf8":case"utf-8":return v(this,e,t,r);case"ascii":return b(this,e,t,r);case"binary":return y(this,e,t,r);case"base64":return w(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},n.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,0>e?(e+=r,0>e&&(e=0)):e>r&&(e=r),0>t?(t+=r,0>t&&(t=0)):t>r&&(t=r),e>t&&(t=e);var i;if(n.TYPED_ARRAY_SUPPORT)i=n._augment(this.subarray(e,t));else{var o=t-e;i=new n(o,void 0);for(var a=0;o>a;a++)i[a]=this[a+e]}return i.length&&(i.parent=this.parent||this),i},n.prototype.readUIntLE=function(e,t,r){e=0|e,t=0|t,r||A(e,t,this.length);for(var n=this[e],i=1,o=0;++o0&&(i*=256);)n+=this[e+--t]*i;return n},n.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},n.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},n.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},n.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},n.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},n.prototype.readIntLE=function(e,t,r){e=0|e,t=0|t,r||A(e,t,this.length);for(var n=this[e],i=1,o=0;++o=i&&(n-=Math.pow(2,8*t)),n},n.prototype.readIntBE=function(e,t,r){e=0|e,t=0|t,r||A(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},n.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},n.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},n.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},n.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},n.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},n.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),H.read(this,e,!0,23,4)},n.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),H.read(this,e,!1,23,4)},n.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),H.read(this,e,!0,52,8)},n.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),H.read(this,e,!1,52,8)},n.prototype.writeUIntLE=function(e,t,r,n){e=+e,t=0|t,r=0|r,n||M(this,e,t,r,Math.pow(2,8*r),0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},n.prototype.writeUInt8=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,1,255,0),n.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=e,t+1},n.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},n.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):R(this,e,t,!1),t+2},n.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e):L(this,e,t,!0),t+4},n.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):L(this,e,t,!1),t+4},n.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=0|t,!n){var i=Math.pow(2,8*r-1);M(this,e,t,r,i-1,-i)}var o=0,a=1,s=0>e?1:0;for(this[t]=255&e;++o>0)-s&255;return t+r},n.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=0|t,!n){var i=Math.pow(2,8*r-1);M(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0>e?1:0;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=(e/a>>0)-s&255;return t+r},n.prototype.writeInt8=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,1,127,-128),n.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[t]=e,t+1},n.prototype.writeInt16LE=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},n.prototype.writeInt16BE=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):R(this,e,t,!1),t+2},n.prototype.writeInt32LE=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,4,2147483647,-2147483648),n.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},n.prototype.writeInt32BE=function(e,t,r){return e=+e,t=0|t,r||M(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):L(this,e,t,!1),t+4},n.prototype.writeFloatLE=function(e,t,r){return T(this,e,t,!0,r)},n.prototype.writeFloatBE=function(e,t,r){return T(this,e,t,!1,r)},n.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},n.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},n.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&r>i&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(0>t)throw new RangeError("targetStart out of bounds");if(0>r||r>=this.length)throw new RangeError("sourceStart out of bounds");if(0>i)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-to||!n.TYPED_ARRAY_SUPPORT)for(var a=0;o>a;a++)e[a+t]=this[a+r];else e._set(this.subarray(r,r+o),t);return o},n.prototype.fill=function(e,t,r){if(e||(e=0),t||(t=0),r||(r=this.length),t>r)throw new RangeError("end < start");if(r!==t&&0!==this.length){if(0>t||t>=this.length)throw new RangeError("start out of bounds");if(0>r||r>this.length)throw new RangeError("end out of bounds");var n;if("number"==typeof e)for(n=t;r>n;n++)this[n]=e;else{var i=I(e.toString()),o=i.length;for(n=t;r>n;n++)this[n]=i[n%o]}return this}},n.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(n.TYPED_ARRAY_SUPPORT)return new n(this).buffer;for(var e=new Uint8Array(this.length),t=0,r=e.length;r>t;t+=1)e[t]=this[t];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var J=n.prototype;n._augment=function(e){return e.constructor=n,e._isBuffer=!0,e._set=e.set,e.get=J.get,e.set=J.set,e.write=J.write,e.toString=J.toString,e.toLocaleString=J.toString,e.toJSON=J.toJSON,e.equals=J.equals,e.compare=J.compare,e.indexOf=J.indexOf,e.copy=J.copy,e.slice=J.slice,e.readUIntLE=J.readUIntLE,e.readUIntBE=J.readUIntBE,e.readUInt8=J.readUInt8,e.readUInt16LE=J.readUInt16LE,e.readUInt16BE=J.readUInt16BE,e.readUInt32LE=J.readUInt32LE,e.readUInt32BE=J.readUInt32BE,e.readIntLE=J.readIntLE,e.readIntBE=J.readIntBE,e.readInt8=J.readInt8,e.readInt16LE=J.readInt16LE,e.readInt16BE=J.readInt16BE,e.readInt32LE=J.readInt32LE,e.readInt32BE=J.readInt32BE,e.readFloatLE=J.readFloatLE,e.readFloatBE=J.readFloatBE,e.readDoubleLE=J.readDoubleLE,e.readDoubleBE=J.readDoubleBE,e.writeUInt8=J.writeUInt8,e.writeUIntLE=J.writeUIntLE,e.writeUIntBE=J.writeUIntBE,e.writeUInt16LE=J.writeUInt16LE,e.writeUInt16BE=J.writeUInt16BE,e.writeUInt32LE=J.writeUInt32LE,e.writeUInt32BE=J.writeUInt32BE,e.writeIntLE=J.writeIntLE,e.writeIntBE=J.writeIntBE,e.writeInt8=J.writeInt8,e.writeInt16LE=J.writeInt16LE,e.writeInt16BE=J.writeInt16BE,e.writeInt32LE=J.writeInt32LE,e.writeInt32BE=J.writeInt32BE,e.writeFloatLE=J.writeFloatLE,e.writeFloatBE=J.writeFloatBE,e.writeDoubleLE=J.writeDoubleLE,e.writeDoubleBE=J.writeDoubleBE,e.fill=J.fill,e.inspect=J.inspect,e.toArrayBuffer=J.toArrayBuffer,e};var X=/[^+\/0-9A-z\-]/g},{"base64-js":55,ieee754:56,"is-array":57}],55:[function(e,t,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";function t(e){var t=e.charCodeAt(0);return t===a||t===f?62:t===s||t===h?63:u>t?-1:u+10>t?t-u+26+26:c+26>t?t-c:l+26>t?t-l+26:void 0}function r(e){function r(e){l[f++]=e}var n,i,a,s,u,l;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=e.length;u="="===e.charAt(c-2)?2:"="===e.charAt(c-1)?1:0,l=new o(3*e.length/4-u),a=u>0?e.length-4:e.length;var f=0;for(n=0,i=0;a>n;n+=4,i+=3)s=t(e.charAt(n))<<18|t(e.charAt(n+1))<<12|t(e.charAt(n+2))<<6|t(e.charAt(n+3)),r((16711680&s)>>16),r((65280&s)>>8),r(255&s);return 2===u?(s=t(e.charAt(n))<<2|t(e.charAt(n+1))>>4,r(255&s)):1===u&&(s=t(e.charAt(n))<<10|t(e.charAt(n+1))<<4|t(e.charAt(n+2))>>2,r(s>>8&255),r(255&s)),l}function i(e){function t(e){return n.charAt(e)}function r(e){return t(e>>18&63)+t(e>>12&63)+t(e>>6&63)+t(63&e)}var i,o,a,s=e.length%3,u="";for(i=0,a=e.length-s;a>i;i+=3)o=(e[i]<<16)+(e[i+1]<<8)+e[i+2],u+=r(o);switch(s){case 1:o=e[e.length-1],u+=t(o>>2),u+=t(o<<4&63),u+="==";break;case 2:o=(e[e.length-2]<<8)+e[e.length-1],u+=t(o>>10),u+=t(o>>4&63),u+=t(o<<2&63),u+="="}return u}var o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="+".charCodeAt(0),s="/".charCodeAt(0),u="0".charCodeAt(0),l="a".charCodeAt(0),c="A".charCodeAt(0),f="-".charCodeAt(0),h="_".charCodeAt(0);e.toByteArray=r,e.fromByteArray=i}("undefined"==typeof r?this.base64js={}:r)},{}],56:[function(e,t,r){r.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,c=-7,f=r?i-1:0,h=r?-1:1,p=e[t+f];for(f+=h,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+f],f+=h,c-=8);if(0===o)o=1-l;else{if(o===u)return a?0/0:(p?-1:1)*(1/0);a+=Math.pow(2,n),o-=l}return(p?-1:1)*a*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+f>=1?h/u:h*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<0;e[r+p]=255&a,p+=d,a/=256,l-=8);e[r+p-d]|=128*g}},{}],57:[function(e,t,r){var n=Array.isArray,i=Object.prototype.toString;t.exports=n||function(e){return!!e&&"[object Array]"==i.call(e)}},{}],58:[function(e,t,r){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function o(e){return"number"==typeof e}function a(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!o(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,r,n,o,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(r=this._events[e],s(r))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),u=1;n>u;u++)o[u-1]=arguments[u];r.apply(this,o)}else if(a(r)){for(n=arguments.length,o=new Array(n-1),u=1;n>u;u++)o[u-1]=arguments[u];for(l=r.slice(),n=l.length,u=0;n>u;u++)l[u].apply(this,o)}return!0},n.prototype.addListener=function(e,t){var r;if(!i(t))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned){var r;r=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,r&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())}return this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var n=!1;return r.listener=t,this.on(e,r),this},n.prototype.removeListener=function(e,t){var r,n,o,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],o=r.length,n=-1,r===t||i(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(r)){for(s=o;s-->0;)if(r[s]===t||r[s].listener&&r[s].listener===t){n=s;break}if(0>n)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],i(r))this.removeListener(e,r);else for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.listenerCount=function(e,t){var r;return r=e._events&&e._events[t]?i(e._events[t])?1:e._events[t].length:0}},{}],59:[function(e,t,r){var n=t.exports,i=(e("events").EventEmitter,e("./lib/request")),o=e("url");n.request=function(e,t){"string"==typeof e&&(e=o.parse(e)),e||(e={}),e.host||e.port||(e.port=parseInt(window.location.port,10)),!e.host&&e.hostname&&(e.host=e.hostname),e.protocol||(e.scheme?e.protocol=e.scheme+":":e.protocol=window.location.protocol),e.host||(e.host=window.location.hostname||window.location.host),/:/.test(e.host)&&(e.port||(e.port=e.host.split(":")[1]),e.host=e.host.split(":")[0]),e.port||(e.port="https:"==e.protocol?443:80);var r=new i(new a,e);return t&&r.on("response",t),r},n.get=function(e,t){e.method="GET";var r=n.request(e,t);return r.end(),r},n.Agent=function(){},n.Agent.defaultMaxSockets=4;var a=function(){if("undefined"==typeof window)throw new Error("no window object present");if(window.XMLHttpRequest)return window.XMLHttpRequest;if(window.ActiveXObject){for(var e=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Microsoft.XMLHTTP"],t=0;tthis.offset&&(this.emit("data",t.slice(this.offset)),this.offset=t.length))};var u=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{stream:84,util:88}],62:[function(e,t,r){!function(){function e(e){this.message=e}var t="undefined"!=typeof r?r:this,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.prototype=new Error,e.prototype.name="InvalidCharacterError",t.btoa||(t.btoa=function(t){for(var r,i,o=0,a=n,s="";t.charAt(0|o)||(a="=",o%1);s+=a.charAt(63&r>>8-o%1*8)){if(i=t.charCodeAt(o+=.75),i>255)throw new e("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|i}return s}),t.atob||(t.atob=function(t){if(t=t.replace(/=+$/,""),t.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,o=0,a=0,s="";i=t.charAt(a++);~i&&(r=o%4?64*r+i:i,o++%4)?s+=String.fromCharCode(255&r>>(-2*o&6)):0)i=n.indexOf(i);return s})}()},{}],63:[function(e,t,r){var n=e("http"),i=t.exports;for(var o in n)n.hasOwnProperty(o)&&(i[o]=n[o]);i.request=function(e,t){return e||(e={}),e.scheme="https",n.request.call(this,e,t)}},{http:59}],64:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],65:[function(e,t,r){t.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},{}],66:[function(e,t,r){r.endianness=function(){return"LE"},r.hostname=function(){return"undefined"!=typeof location?location.hostname:""},r.loadavg=function(){return[]},r.uptime=function(){return 0},r.freemem=function(){return Number.MAX_VALUE},r.totalmem=function(){return Number.MAX_VALUE},r.cpus=function(){return[]},r.type=function(){return"Browser"},r.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},r.networkInterfaces=r.getNetworkInterfaces=function(){return{}},r.arch=function(){return"javascript"},r.platform=function(){return"browser"},r.tmpdir=r.tmpDir=function(){return"/tmp"},r.EOL="\n"},{}],67:[function(e,t,r){(function(e){function t(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(r=a+"/"+r,i="/"===a.charAt(0))}return r=t(n(r.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+r||"."},r.normalize=function(e){var i=r.isAbsolute(e),o="/"===a(e,-1);return e=t(n(e.split("/"),function(e){return!!e}),!i).join("/"),e||i||(e="."),e&&o&&(e+="/"),(i?"/":"")+e},r.isAbsolute=function(e){return"/"===e.charAt(0)},r.join=function(){var e=Array.prototype.slice.call(arguments,0);return r.normalize(n(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},r.relative=function(e,t){function n(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=r.resolve(e).substr(1),t=r.resolve(t).substr(1);for(var i=n(e.split("/")),o=n(t.split("/")),a=Math.min(i.length,o.length),s=a,u=0;a>u;u++)if(i[u]!==o[u]){s=u;break}for(var l=[],u=s;ut&&(t=e.length+t),e.substr(t,r)}}).call(this,e("_process"))},{_process:68}],68:[function(e,t,r){function n(){if(!s){s=!0;for(var e,t=a.length;t;){e=a,a=[];for(var r=-1;++ri;)t=e.charCodeAt(i++),t>=55296&&56319>=t&&o>i?(r=e.charCodeAt(i++),56320==(64512&r)?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--)):n.push(t);return n}function l(e){return a(e,function(e){var t="";return e>65535&&(e-=65536,t+=U(e>>>10&1023|55296),e=56320|1023&e),t+=U(e)}).join("")}function c(e){return 10>e-48?e-22:26>e-65?e-65:26>e-97?e-97:k}function f(e,t){return e+22+75*(26>e)-((0!=t)<<5)}function h(e,t,r){var n=0;for(e=r?P(e/C):e>>1,e+=P(e/t);e>V*S>>1;n+=k)e=P(e/V);return P(n+(V+1)*e/(e+O))}function p(e){var t,r,n,i,a,s,u,f,p,d,g=[],m=e.length,v=0,b=M,y=A;for(r=e.lastIndexOf(R),0>r&&(r=0),n=0;r>n;++n)e.charCodeAt(n)>=128&&o("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;m>i;){for(a=v,s=1,u=k;i>=m&&o("invalid-input"),f=c(e.charCodeAt(i++)),(f>=k||f>P((x-v)/s))&&o("overflow"),v+=f*s,p=y>=u?E:u>=y+S?S:u-y,!(p>f);u+=k)d=k-p,s>P(x/d)&&o("overflow"),s*=d;t=g.length+1,y=h(v-a,t,0==a),P(v/t)>x-b&&o("overflow"),b+=P(v/t),v%=t,g.splice(v++,0,b)}return l(g)}function d(e){var t,r,n,i,a,s,l,c,p,d,g,m,v,b,y,w=[];for(e=u(e),m=e.length,t=M,r=0,a=A,s=0;m>s;++s)g=e[s],128>g&&w.push(U(g));for(n=i=w.length,i&&w.push(R);m>n;){for(l=x,s=0;m>s;++s)g=e[s],g>=t&&l>g&&(l=g);for(v=n+1,l-t>P((x-r)/v)&&o("overflow"),r+=(l-t)*v,t=l,s=0;m>s;++s)if(g=e[s],t>g&&++r>x&&o("overflow"),g==t){for(c=r,p=k;d=a>=p?E:p>=a+S?S:p-a,!(d>c);p+=k)y=c-d,b=k-d,w.push(U(f(d+y%b,0))),c=P(y/b);w.push(U(f(c,0))),a=h(r,v,n==i),r=0,++n}++r,++t}return w.join("")}function g(e){return s(e,function(e){return L.test(e)?p(e.slice(4).toLowerCase()):e})}function m(e){return s(e,function(e){return j.test(e)?"xn--"+d(e):e})}var v="object"==typeof n&&n,b="object"==typeof r&&r&&r.exports==v&&r,y="object"==typeof t&&t;(y.global===y||y.window===y)&&(i=y);var w,_,x=2147483647,k=36,E=1,S=26,O=38,C=700,A=72,M=128,R="-",L=/^xn--/,j=/[^ -~]/,T=/\x2E|\u3002|\uFF0E|\uFF61/g,B={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},V=k-E,P=Math.floor,U=String.fromCharCode;if(w={version:"1.2.4",ucs2:{decode:u,encode:l},decode:p,encode:d,toASCII:m,toUnicode:g},"function"==typeof e&&"object"==typeof e.amd&&e.amd)e("punycode",function(){return w});else if(v&&!v.nodeType)if(b)b.exports=w;else for(_ in w)w.hasOwnProperty(_)&&(v[_]=w[_]);else i.punycode=w}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],70:[function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var l=e.length;u>0&&l>u&&(l=u);for(var c=0;l>c;++c){var f,h,p,d,g=e[c].replace(s,"%20"),m=g.indexOf(r);m>=0?(f=g.substr(0,m),h=g.substr(m+1)):(f=g,h=""),p=decodeURIComponent(f),d=decodeURIComponent(h),n(a,p)?i(a[p])?a[p].push(d):a[p]=[a[p],d]:a[p]=d}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],71:[function(e,t,r){"use strict";function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;nr;r++)t(e[r],r)}t.exports=n;var a=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},s=e("core-util-is");s.inherits=e("inherits");var u=e("./_stream_readable"),l=e("./_stream_writable");s.inherits(n,u),o(a(l.prototype),function(e){n.prototype[e]||(n.prototype[e]=l.prototype[e])})}).call(this,e("_process"))},{"./_stream_readable":76,"./_stream_writable":78,_process:68,"core-util-is":79,inherits:64}],75:[function(e,t,r){function n(e){return this instanceof n?void i.call(this,e):new n(e)}t.exports=n;var i=e("./_stream_transform"),o=e("core-util-is");o.inherits=e("inherits"),o.inherits(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":77,"core-util-is":79,inherits:64}],76:[function(e,t,r){(function(r){function n(t,r){var n=e("./_stream_duplex");t=t||{};var i=t.highWaterMark,o=t.objectMode?16:16384;this.highWaterMark=i||0===i?i:o,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!t.objectMode,r instanceof n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(A||(A=e("string_decoder/").StringDecoder),this.decoder=new A(t.encoding),this.encoding=t.encoding)}function i(t){e("./_stream_duplex");return this instanceof i?(this._readableState=new n(t,this),this.readable=!0,void O.call(this)):new i(t)}function o(e,t,r,n,i){var o=l(t,r);if(o)e.emit("error",o);else if(C.isNullOrUndefined(r))t.reading=!1,t.ended||c(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!i){var s=new Error("stream.push() after EOF");e.emit("error",s)}else if(t.endEmitted&&i){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else!t.decoder||i||n||(r=t.decoder.write(r)),i||(t.reading=!1),t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&f(e)),p(e,t);else i||(t.reading=!1);return a(t)}function a(e){return!e.ended&&(e.needReadable||e.length=R)e=R;else{e--;for(var t=1;32>t;t<<=1)e|=e>>t;e++}return e}function u(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:isNaN(e)||C.isNull(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:0>=e?0:(e>t.highWaterMark&&(t.highWaterMark=s(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function l(e,t){var r=null;return C.isBuffer(t)||C.isString(t)||C.isNullOrUndefined(t)||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function c(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,f(e)}function f(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(M("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(function(){h(e)}):h(e))}function h(e){M("emit readable"),e.emit("readable"),b(e)}function p(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(function(){d(e,t)}))}function d(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=i)r=o?n.join(""):E.concat(n,i),n.length=0;else if(el&&e>u;l++){var s=n[0],f=Math.min(e-u,s.length);o?r+=s.slice(0,f):s.copy(r,u,0,f),f0)throw new Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,r.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function _(e,t){for(var r=0,n=e.length;n>r;r++)t(e[r],r)}function x(e,t){for(var r=0,n=e.length;n>r;r++)if(e[r]===t)return r;return-1}t.exports=i;var k=e("isarray"),E=e("buffer").Buffer;i.ReadableState=n;var S=e("events").EventEmitter;S.listenerCount||(S.listenerCount=function(e,t){return e.listeners(t).length});var O=e("stream"),C=e("core-util-is");C.inherits=e("inherits");var A,M=e("util");M=M&&M.debuglog?M.debuglog("stream"):function(){},C.inherits(i,O),i.prototype.push=function(e,t){var r=this._readableState;return C.isString(e)&&!r.objectMode&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=new E(e,t),t="")),o(this,r,e,t,!1)},i.prototype.unshift=function(e){var t=this._readableState;return o(this,t,e,"",!0)},i.prototype.setEncoding=function(t){return A||(A=e("string_decoder/").StringDecoder),this._readableState.decoder=new A(t),this._readableState.encoding=t,this};var R=8388608;i.prototype.read=function(e){M("read",e);var t=this._readableState,r=e;if((!C.isNumber(e)||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return M("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?w(this):f(this),null;if(e=u(e,t),0===e&&t.ended)return 0===t.length&&w(this),null;var n=t.needReadable;M("need readable",n),(0===t.length||t.length-e0?y(e,t):null,C.isNull(i)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),r!==e&&t.ended&&0===t.length&&w(this),C.isNull(i)||this.emit("data",i),i},i.prototype._read=function(e){this.emit("error",new Error("not implemented"))},i.prototype.pipe=function(e,t){function n(e){M("onunpipe"),e===f&&o()}function i(){M("onend"),e.end()}function o(){M("cleanup"),e.removeListener("close",u),e.removeListener("finish",l),e.removeListener("drain",m),e.removeListener("error",s),e.removeListener("unpipe",n),f.removeListener("end",i),f.removeListener("end",o),f.removeListener("data",a),!h.awaitDrain||e._writableState&&!e._writableState.needDrain||m()}function a(t){M("ondata");var r=e.write(t);!1===r&&(M("false write response, pause",f._readableState.awaitDrain),f._readableState.awaitDrain++,f.pause())}function s(t){M("onerror",t),c(),e.removeListener("error",s),0===S.listenerCount(e,"error")&&e.emit("error",t)}function u(){e.removeListener("finish",l),c()}function l(){M("onfinish"),e.removeListener("close",u),c()}function c(){M("unpipe"),f.unpipe(e)}var f=this,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=e;break;case 1:h.pipes=[h.pipes,e];break;default:h.pipes.push(e)}h.pipesCount+=1,M("pipe count=%d opts=%j",h.pipesCount,t);var p=(!t||t.end!==!1)&&e!==r.stdout&&e!==r.stderr,d=p?i:o;h.endEmitted?r.nextTick(d):f.once("end",d),e.on("unpipe",n);var m=g(f);return e.on("drain",m),f.on("data",a),e._events&&e._events.error?k(e._events.error)?e._events.error.unshift(s):e._events.error=[s,e._events.error]:e.on("error",s),e.once("close",u),e.once("finish",l),e.emit("pipe",f),h.flowing||(M("pipe resume"),f.resume()),e},i.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;n>i;i++)r[i].emit("unpipe",this);return this}var i=x(t.pipes,e);return-1===i?this:(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},i.prototype.on=function(e,t){var n=O.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&this.readable){var i=this._readableState;if(!i.readableListening)if(i.readableListening=!0,i.emittedReadable=!1,i.needReadable=!0,i.reading)i.length&&f(this,i);else{var o=this;r.nextTick(function(){M("readable nexttick read 0"),o.read(0)})}}return n},i.prototype.addListener=i.prototype.on,i.prototype.resume=function(){var e=this._readableState;return e.flowing||(M("resume"),e.flowing=!0,e.reading||(M("resume read 0"),this.read(0)),m(this,e)),this},i.prototype.pause=function(){return M("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(M("pause"),this._readableState.flowing=!1,this.emit("pause")),this},i.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;e.on("end",function(){if(M("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)}),e.on("data",function(i){if(M("wrapped data"),t.decoder&&(i=t.decoder.write(i)),i&&(t.objectMode||i.length)){var o=n.push(i);o||(r=!0,e.pause())}});for(var i in e)C.isFunction(e[i])&&C.isUndefined(this[i])&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));var o=["error","close","destroy","pause","resume"];return _(o,function(t){e.on(t,n.emit.bind(n,t))}),n._read=function(t){M("wrapped _read",t),r&&(r=!1,e.resume())},n},i._fromList=y}).call(this,e("_process"))},{"./_stream_duplex":74,_process:68,buffer:54,"core-util-is":79,events:58,inherits:64,isarray:65,stream:84,"string_decoder/":85,util:53}],77:[function(e,t,r){function n(e,t){this.afterTransform=function(e,r){return i(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function i(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,u.isNullOrUndefined(r)||e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length1){for(var r=[],n=0;n=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&56319>=n)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),t+=e.toString(this.encoding,0,i);var i=t.length-1,n=t.charCodeAt(i);if(n>=55296&&56319>=n){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},l.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(2>=t&&r>>4==14){this.charLength=3;break}if(3>=t&&r>>3==30){this.charLength=4;break}}this.charReceived=t},l.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},{buffer:54}],86:[function(e,t,r){function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(e,t,r){if(e&&l(e)&&e instanceof n)return e;var i=new n;return i.parse(e,t,r),i}function o(e){return u(e)&&(e=i(e)),e instanceof n?e.format():n.prototype.format.call(e)}function a(e,t){return i(e,!1,!0).resolve(t)}function s(e,t){return e?i(e,!1,!0).resolveObject(t):t}function u(e){return"string"==typeof e}function l(e){return"object"==typeof e&&null!==e}function c(e){return null===e}function f(e){return null==e}var h=e("punycode");r.parse=i,r.resolve=a,r.resolveObject=s,r.format=o,r.Url=n;var p=/^([a-z0-9.+-]+:)/i,d=/:[0-9]*$/,g=["<",">",'"',"`"," ","\r","\n"," "],m=["{","}","|","\\","^","`"].concat(g),v=["'"].concat(m),b=["%","/","?",";","#"].concat(v),y=["/","?","#"],w=255,_=/^[a-z0-9A-Z_-]{0,63}$/,x=/^([a-z0-9A-Z_-]{0,63})(.*)$/,k={javascript:!0,"javascript:":!0},E={javascript:!0,"javascript:":!0},S={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=e("querystring");n.prototype.parse=function(e,t,r){if(!u(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e;n=n.trim();var i=p.exec(n);if(i){i=i[0];var o=i.toLowerCase();this.protocol=o,n=n.substr(i.length)}if(r||i||n.match(/^\/\/[^@\/]+@[^@\/]+/)){var a="//"===n.substr(0,2);!a||i&&E[i]||(n=n.substr(2),this.slashes=!0)}if(!E[i]&&(a||i&&!S[i])){for(var s=-1,l=0;lc)&&(s=c)}var f,d;d=-1===s?n.lastIndexOf("@"):n.lastIndexOf("@",s),-1!==d&&(f=n.slice(0,d),n=n.slice(d+1),this.auth=decodeURIComponent(f)),s=-1;for(var l=0;lc)&&(s=c)}-1===s&&(s=n.length),this.host=n.slice(0,s),n=n.slice(s),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var m=this.hostname.split(/\./),l=0,C=m.length;C>l;l++){var A=m[l];if(A&&!A.match(_)){for(var M="",R=0,L=A.length;L>R;R++)M+=A.charCodeAt(R)>127?"x":A[R];if(!M.match(_)){var j=m.slice(0,l),T=m.slice(l+1),B=A.match(x);B&&(j.push(B[1]),T.unshift(B[2])),T.length&&(n="/"+T.join(".")+n),this.hostname=j.join(".");break}}}if(this.hostname.length>w?this.hostname="":this.hostname=this.hostname.toLowerCase(),!g){for(var V=this.hostname.split("."),P=[],l=0;ll;l++){var N=v[l],z=encodeURIComponent(N);z===N&&(z=escape(N)),n=n.split(N).join(z)}var F=n.indexOf("#");-1!==F&&(this.hash=n.substr(F),n=n.slice(0,F));var q=n.indexOf("?");if(-1!==q?(this.search=n.substr(q),this.query=n.substr(q+1),t&&(this.query=O.parse(this.query)),n=n.slice(0,q)):t&&(this.search="",this.query={}),n&&(this.pathname=n),S[o]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var I=this.pathname||"",U=this.search||"";this.path=I+U}return this.href=this.format(),this},n.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&l(this.query)&&Object.keys(this.query).length&&(o=O.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||S[t])&&i!==!1?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),a=a.replace("#","%23"),t+i+r+a+n},n.prototype.resolve=function(e){return this.resolveObject(i(e,!1,!0)).format()},n.prototype.resolveObject=function(e){if(u(e)){var t=new n;t.parse(e,!1,!0),e=t}var r=new n;if(Object.keys(this).forEach(function(e){r[e]=this[e]},this),r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol)return Object.keys(e).forEach(function(t){"protocol"!==t&&(r[t]=e[t])}),S[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r;if(e.protocol&&e.protocol!==r.protocol){if(!S[e.protocol])return Object.keys(e).forEach(function(t){r[t]=e[t]}),r.href=r.format(),r;if(r.protocol=e.protocol,e.host||E[e.protocol])r.pathname=e.pathname;else{for(var i=(e.pathname||"").split("/");i.length&&!(e.host=i.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==i[0]&&i.unshift(""),i.length<2&&i.unshift(""),r.pathname=i.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var o=r.pathname||"",a=r.search||"";r.path=o+a}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var s=r.pathname&&"/"===r.pathname.charAt(0),l=e.host||e.pathname&&"/"===e.pathname.charAt(0),h=l||s||r.host&&e.pathname,p=h,d=r.pathname&&r.pathname.split("/")||[],i=e.pathname&&e.pathname.split("/")||[],g=r.protocol&&!S[r.protocol];if(g&&(r.hostname="",r.port=null,r.host&&(""===d[0]?d[0]=r.host:d.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===i[0]?i[0]=e.host:i.unshift(e.host)),e.host=null),h=h&&(""===i[0]||""===d[0])),l)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,d=i;else if(i.length)d||(d=[]),d.pop(),d=d.concat(i),r.search=e.search,r.query=e.query;else if(!f(e.search)){if(g){r.hostname=r.host=d.shift();var m=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;m&&(r.auth=m.shift(),r.host=r.hostname=m.shift())}return r.search=e.search,r.query=e.query,c(r.pathname)&&c(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!d.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var v=d.slice(-1)[0],b=(r.host||e.host)&&("."===v||".."===v)||""===v,y=0,w=d.length;w>=0;w--)v=d[w],"."==v?d.splice(w,1):".."===v?(d.splice(w,1),y++):y&&(d.splice(w,1),y--);if(!h&&!p)for(;y--;y)d.unshift("..");!h||""===d[0]||d[0]&&"/"===d[0].charAt(0)||d.unshift(""),b&&"/"!==d.join("/").substr(-1)&&d.push("");var _=""===d[0]||d[0]&&"/"===d[0].charAt(0);if(g){r.hostname=r.host=_?"":d.length?d.shift():"";var m=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;m&&(r.auth=m.shift(),r.host=r.hostname=m.shift())}return h=h||r.host&&d.length,h&&!_&&d.unshift(""),d.length?r.pathname=d.join("/"):(r.pathname=null,r.path=null),c(r.pathname)&&c(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=d.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{punycode:69,querystring:72}],87:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],88:[function(e,t,r){(function(t,n){function i(e,t){var n={seen:[],stylize:a};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(t)?n.showHidden=t:t&&r._extend(n,t),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=o),u(n,e,n.depth)}function o(e,t){var r=i.styles[t];return r?"["+i.colors[r][0]+"m"+e+"["+i.colors[r][1]+"m":e}function a(e,t){return e}function s(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function u(e,t,n){if(e.customInspect&&t&&O(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return y(i)||(i=u(e,i,n)),i}var o=l(e,t);if(o)return o;var a=Object.keys(t),g=s(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),S(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return c(t);if(0===a.length){if(O(t)){var m=t.name?": "+t.name:"";return e.stylize("[Function"+m+"]","special")}if(x(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(E(t))return e.stylize(Date.prototype.toString.call(t),"date");if(S(t))return c(t)}var v="",b=!1,w=["{","}"];if(d(t)&&(b=!0,w=["[","]"]),O(t)){var _=t.name?": "+t.name:"";v=" [Function"+_+"]"}if(x(t)&&(v=" "+RegExp.prototype.toString.call(t)),E(t)&&(v=" "+Date.prototype.toUTCString.call(t)),S(t)&&(v=" "+c(t)),0===a.length&&(!b||0==t.length))return w[0]+v+w[1];if(0>n)return x(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var k;return k=b?f(e,t,n,g,a):a.map(function(r){return h(e,t,n,g,r,b)}),e.seen.pop(),p(k,v,w)}function l(e,t){if(_(t))return e.stylize("undefined","undefined");if(y(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return b(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,i){for(var o=[],a=0,s=t.length;s>a;++a)o.push(L(t,String(a))?h(e,t,r,n,String(a),!0):"");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(e,t,r,n,i,!0))}),o}function h(e,t,r,n,i,o){var a,s,l;if(l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},l.get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),L(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=m(r)?u(e,l.value,null):u(e,l.value,r-1),s.indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){ +return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),_(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e,t,r){var n=0,i=e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function d(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function m(e){return null===e}function v(e){return null==e}function b(e){return"number"==typeof e}function y(e){return"string"==typeof e}function w(e){return"symbol"==typeof e}function _(e){return void 0===e}function x(e){return k(e)&&"[object RegExp]"===A(e)}function k(e){return"object"==typeof e&&null!==e}function E(e){return k(e)&&"[object Date]"===A(e)}function S(e){return k(e)&&("[object Error]"===A(e)||e instanceof Error)}function O(e){return"function"==typeof e}function C(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function A(e){return Object.prototype.toString.call(e)}function M(e){return 10>e?"0"+e.toString(10):e.toString(10)}function R(){var e=new Date,t=[M(e.getHours()),M(e.getMinutes()),M(e.getSeconds())].join(":");return[e.getDate(),V[e.getMonth()],t].join(" ")}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var j=/%[sdj%]/g;r.format=function(e){if(!y(e)){for(var t=[],r=0;r=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}}),s=n[r];o>r;s=n[++r])a+=m(s)||!k(s)?" "+s:" "+i(s);return a},r.deprecate=function(e,i){function o(){if(!a){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),a=!0}return e.apply(this,arguments)}if(_(n.process))return function(){return r.deprecate(e,i).apply(this,arguments)};if(t.noDeprecation===!0)return e;var a=!1;return o};var T,B={};r.debuglog=function(e){if(_(T)&&(T=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!B[e])if(new RegExp("\\b"+e+"\\b","i").test(T)){var n=t.pid;B[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else B[e]=function(){};return B[e]},r.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=d,r.isBoolean=g,r.isNull=m,r.isNullOrUndefined=v,r.isNumber=b,r.isString=y,r.isSymbol=w,r.isUndefined=_,r.isRegExp=x,r.isObject=k,r.isDate=E,r.isError=S,r.isFunction=O,r.isPrimitive=C,r.isBuffer=e("./support/isBuffer");var V=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){console.log("%s - %s",R(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!k(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":87,_process:68,inherits:64}],89:[function(e,t,r){r.SourceMapGenerator=e("./source-map/source-map-generator").SourceMapGenerator,r.SourceMapConsumer=e("./source-map/source-map-consumer").SourceMapConsumer,r.SourceNode=e("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":95,"./source-map/source-map-generator":96,"./source-map/source-node":97}],90:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(){this._array=[],this._set={}}var i=e("./util");n.fromArray=function(e,t){for(var r=new n,i=0,o=e.length;o>i;i++)r.add(e[i],t);return r},n.prototype.add=function(e,t){var r=this.has(e),n=this._array.length;(!r||t)&&this._array.push(e),r||(this._set[i.toSetString(e)]=n)},n.prototype.has=function(e){return Object.prototype.hasOwnProperty.call(this._set,i.toSetString(e))},n.prototype.indexOf=function(e){if(this.has(e))return this._set[i.toSetString(e)];throw new Error('"'+e+'" is not in the set.')},n.prototype.at=function(e){if(e>=0&&ee?(-e<<1)+1:(e<<1)+0}function i(e){var t=1===(1&e),r=e>>1;return t?-r:r}var o=e("./base64"),a=5,s=1<>>=a,i>0&&(t|=l),r+=o.encode(t);while(i>0);return r},t.decode=function(e,t,r){var n,s,c=e.length,f=0,h=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");s=o.decode(e.charAt(t++)),n=!!(s&l),s&=u,f+=s<0?r-u>1?n(u,r,i,o,a,s):s==t.LEAST_UPPER_BOUND?r1?n(e,u,i,o,a,s):s==t.LEAST_UPPER_BOUND?u:0>e?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,i,o){if(0===r.length)return-1;var a=n(-1,r.length,e,r,i,o||t.GREATEST_LOWER_BOUND);if(0>a)return-1;for(;a-1>=0&&0===i(r[a],r[a-1],!0);)--a;return a}})},{amdefine:99}],94:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,a=t.generatedColumn;return n>r||n==r&&a>=i||o.compareByGeneratedPositions(e,t)<=0}function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var o=e("./util");i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(o.compareByGeneratedPositions),this._sorted=!0),this._array},t.MappingList=i})},{"./util":98,amdefine:99}],95:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new o(t):new i(t)}function i(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=a.getArg(t,"version"),n=a.getArg(t,"sources"),i=a.getArg(t,"names",[]),o=a.getArg(t,"sourceRoot",null),s=a.getArg(t,"sourcesContent",null),l=a.getArg(t,"mappings"),c=a.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);n=n.map(a.normalize),this._names=u.fromArray(i,!0),this._sources=u.fromArray(n,!0),this.sourceRoot=o,this.sourcesContent=s,this._mappings=l,this.file=c}function o(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=a.getArg(t,"version"),i=a.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);var o={line:-1,column:0};this._sections=i.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=a.getArg(e,"offset"),r=a.getArg(t,"line"),i=a.getArg(t,"column");if(r=0)for(var i=this._originalMappings[n],o=i.originalLine,u=i.originalColumn;i&&i.originalLine===o&&(void 0===e.column||i.originalColumn===u);)r.push({line:a.getArg(i,"generatedLine",null),column:a.getArg(i,"generatedColumn",null),lastColumn:a.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++n];return r},t.SourceMapConsumer=n,i.prototype=Object.create(n.prototype),i.prototype.consumer=n,i.fromSourceMap=function(e){var t=Object.create(i.prototype);return t._names=u.fromArray(e._names.toArray(),!0),t._sources=u.fromArray(e._sources.toArray(),!0),t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file,t.__generatedMappings=e._mappings.toArray().slice(),t.__originalMappings=e._mappings.toArray().slice().sort(a.compareByOriginalPositions),t},i.prototype._version=3,Object.defineProperty(i.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return null!=this.sourceRoot?a.join(this.sourceRoot,e):e},this)}}),i.prototype._parseMappings=function(e,t){for(var r,n,i,o,s,u=1,c=0,f=0,h=0,p=0,d=0,g=e.length,m=0,v={},b={};g>m;)if(";"===e.charAt(m))u++,++m,c=0;else if(","===e.charAt(m))++m;else{for(r={},r.generatedLine=u,o=m;g>o&&!this._nextCharIsMappingSeparator(e,o);++o);if(n=e.slice(m,o),i=v[n])m+=n.length;else{for(i=[];o>m;)l.decode(e,m,b),s=b.value,m=b.rest,i.push(s);v[n]=i}if(r.generatedColumn=c+i[0],c=r.generatedColumn,i.length>1){if(r.source=this._sources.at(p+i[1]),p+=i[1],2===i.length)throw new Error("Found a source, but no line and column");if(r.originalLine=f+i[2],f=r.originalLine,r.originalLine+=1,3===i.length)throw new Error("Found a source and line, but no column");r.originalColumn=h+i[3],h=r.originalColumn,i.length>4&&(r.name=this._names.at(d+i[4]),d+=i[4])}this.__generatedMappings.push(r),"number"==typeof r.originalLine&&this.__originalMappings.push(r)}this.__generatedMappings.sort(a.compareByGeneratedPositions),this.__originalMappings.sort(a.compareByOriginalPositions)},i.prototype._findMapping=function(e,t,r,n,i,o){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return s.search(e,t,i,o)},i.prototype.computeColumnSpans=function(){for(var e=0;e=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var o=a.getArg(i,"source",null);return null!=o&&null!=this.sourceRoot&&(o=a.join(this.sourceRoot,o)),{source:o,line:a.getArg(i,"originalLine",null),column:a.getArg(i,"originalColumn",null),name:a.getArg(i,"name",null)}}}return{source:null,line:null,column:null,name:null}},i.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=a.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=a.urlParse(this.sourceRoot))){var n=e.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!r.path||"/"==r.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(e){var t={source:a.getArg(e,"source"),originalLine:a.getArg(e,"line"),originalColumn:a.getArg(e,"column")};null!=this.sourceRoot&&(t.source=a.relative(this.sourceRoot,t.source));var r=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",a.compareByOriginalPositions,a.getArg(e,"bias",n.GREATEST_LOWER_BOUND));if(r>=0){var i=this._originalMappings[r];if(i.source===t.source)return{line:a.getArg(i,"generatedLine",null),column:a.getArg(i,"generatedColumn",null),lastColumn:a.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=i,o.prototype=Object.create(n.prototype),o.prototype.constructor=n,o.prototype._version=3,Object.defineProperty(o.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&e.column>=0&&!t&&!r&&!n||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&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},n.prototype._serializeMappings=function(){for(var e,t=0,r=1,n=0,a=0,s=0,u=0,l="",c=this._mappings.toArray(),f=0,h=c.length;h>f;f++){if(e=c[f],e.generatedLine!==r)for(t=0;e.generatedLine!==r;)l+=";",r++;else if(f>0){if(!o.compareByGeneratedPositions(e,c[f-1]))continue;l+=","}l+=i.encode(e.generatedColumn-t),t=e.generatedColumn,null!=e.source&&(l+=i.encode(this._sources.indexOf(e.source)-u),u=this._sources.indexOf(e.source),l+=i.encode(e.originalLine-1-a),a=e.originalLine-1,l+=i.encode(e.originalColumn-n),n=e.originalColumn,null!=e.name&&(l+=i.encode(this._names.indexOf(e.name)-s),s=this._names.indexOf(e.name)))}return l},n.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var r=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},n.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},n.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=n})},{"./array-set":90,"./base64-vlq":91,"./mapping-list":94,"./util":98,amdefine:99}],97:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[u]=!0,null!=n&&this.add(n)}var i=e("./source-map-generator").SourceMapGenerator,o=e("./util"),a=/(\r?\n)/,s=10,u="$$$isSourceNode$$$";n.fromStringWithSourceMap=function(e,t,r){function i(e,t){if(null===e||void 0===e.source)s.add(t);else{var i=r?o.join(r,e.source):e.source;s.add(new n(e.originalLine,e.originalColumn,i,t,e.name))}}var s=new n,u=e.split(a),l=function(){var e=u.shift(),t=u.shift()||"";return e+t},c=1,f=0,h=null;return t.eachMapping(function(e){if(null!==h){if(!(c0&&(h&&i(h,l()),s.add(u.join(""))),t.sources.forEach(function(e){var n=t.sourceContentFor(e);null!=n&&(null!=r&&(e=o.join(r,e)),s.setSourceContent(e,n))}),s},n.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[u]&&"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},n.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[u]&&"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},n.prototype.walk=function(e){for(var t,r=0,n=this.children.length;n>r;r++)t=this.children[r],t[u]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},n.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;n-1>r;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},n.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[u]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},n.prototype.setSourceContent=function(e,t){this.sourceContents[o.toSetString(e)]=t},n.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;r>t;t++)this.children[t][u]&&this.children[t].walkSourceContents(e);for(var n=Object.keys(this.sourceContents),t=0,r=n.length;r>t;t++)e(o.fromSetString(n[t]),this.sourceContents[n[t]])},n.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},n.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new i(e),n=!1,o=null,a=null,u=null,l=null;return this.walk(function(e,i){t.code+=e,null!==i.source&&null!==i.line&&null!==i.column?((o!==i.source||a!==i.line||u!==i.column||l!==i.name)&&r.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name}),o=i.source,a=i.line,u=i.column,l=i.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),o=null,n=!1);for(var c=0,f=e.length;f>c;c++)e.charCodeAt(c)===s?(t.line++,t.column=0,c+1===f?(o=null,n=!1):n&&r.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name})):t.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:t.code,map:r}},t.SourceNode=n})},{"./source-map-generator":96,"./util":98,amdefine:99}],98:[function(e,t,r){if("function"!=typeof n)var n=e("amdefine")(t,e);n(function(e,t,r){function n(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')}function i(e){var t=e.match(d);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[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 a(e){var t=e,r=i(e);if(r){if(!r.path)return e;t=r.path}for(var n,a="/"===t.charAt(0),s=t.split(/\/+/),u=0,l=s.length-1;l>=0;l--)n=s[l],"."===n?s.splice(l,1):".."===n?u++:u>0&&(""===n?(s.splice(l+1,u),u=0):(s.splice(l,2),u--));return t=s.join("/"),""===t&&(t=a?"/":"."),r?(r.path=t,o(r)):t}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),n=i(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),o(r);if(r||t.match(g))return t;if(n&&!n.host&&!n.path)return n.host=t,o(n);var s="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=s,o(n)):s}function u(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");var r=i(e);return"/"==t.charAt(0)&&r&&"/"==r.path?t.slice(1):0===t.indexOf(e+"/")?t.substr(e.length+1):t}function l(e){return"$"+e}function c(e){return e.substr(1)}function f(e,t){var r=e||"",n=t||"";return(r>n)-(n>r)}function h(e,t,r){var n;return(n=f(e.source,t.source))?n:(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,n||r?n:(n=e.generatedColumn-t.generatedColumn)?n:(n=e.generatedLine-t.generatedLine,n?n:f(e.name,t.name)))}function p(e,t,r){var n;return(n=e.generatedLine-t.generatedLine)?n:(n=e.generatedColumn-t.generatedColumn,n||r?n:(n=f(e.source,t.source))?n:(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,n?n:f(e.name,t.name)))}t.getArg=n;var d=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,g=/^data:.+\,.+$/;t.urlParse=i,t.urlGenerate=o,t.normalize=a,t.join=s,t.relative=u,t.toSetString=l,t.fromSetString=c,t.compareByOriginalPositions=h,t.compareByGeneratedPositions=p})},{amdefine:99}],99:[function(e,t,r){(function(r,n){"use strict";function i(t,i){function o(e){var t,r;for(t=0;e[t];t+=1)if(r=e[t],"."===r)e.splice(t,1),t-=1;else if(".."===r){if(1===t&&(".."===e[2]||".."===e[0]))break;t>0&&(e.splice(t-1,2),t-=2)}}function a(e,t){var r;return e&&"."===e.charAt(0)&&t&&(r=t.split("/"),r=r.slice(0,r.length-1),r=r.concat(e.split("/")),o(r),e=r.join("/")),e}function s(e){return function(t){return a(t,e)}}function u(e){function t(t){d[e]=t}return t.fromText=function(e,t){throw new Error("amdefine does not implement load.fromText")},t}function l(e,r,o){var a,s,u,l;if(e)s=d[e]={},u={id:e,uri:n,exports:s},a=f(i,s,u,e);else{if(g)throw new Error("amdefine with no module ID cannot be called more than once per file.");g=!0,s=t.exports,u=t,a=f(i,s,u,t.id)}r&&(r=r.map(function(e){return a(e)})),l="function"==typeof o?o.apply(u.exports,r):o,void 0!==l&&(u.exports=l,e&&(d[e]=u.exports))}function c(e,t,r){Array.isArray(e)?(r=t,t=e,e=void 0):"string"!=typeof e&&(r=e,e=t=void 0),t&&!Array.isArray(t)&&(r=t,t=void 0),t||(t=["require","exports","module"]),e?p[e]=[e,t,r]:l(e,t,r)}var f,h,p={},d={},g=!1,m=e("path");return f=function(e,t,n,i){function o(o,a){return"string"==typeof o?h(e,t,n,o,i):(o=o.map(function(r){return h(e,t,n,r,i)}),void r.nextTick(function(){a.apply(null,o)}))}return o.toUrl=function(e){return 0===e.indexOf(".")?a(e,m.dirname(n.filename)):e},o},i=i||function(){return t.require.apply(t,arguments)},h=function(e,t,r,n,i){var o,c,g=n.indexOf("!"),m=n;if(-1===g){if(n=a(n,i),"require"===n)return f(e,t,r,i);if("exports"===n)return t;if("module"===n)return r;if(d.hasOwnProperty(n))return d[n];if(p[n])return l.apply(null,p[n]),d[n];if(e)return e(m);throw new Error("No module with ID: "+n)}return o=n.substring(0,g),n=n.substring(g+1,n.length),c=h(e,t,r,o,i),n=c.normalize?c.normalize(n,s(i)):a(n,i),d[n]?d[n]:(c.load(n,f(e,t,r,i),u(n),{}),d[n])},c.require=function(e){return d[e]?d[e]:p[e]?(l.apply(null,p[e]),d[e]):void 0},c.amd={},c}t.exports=i}).call(this,e("_process"),"/node_modules\\source-map\\node_modules\\amdefine\\amdefine.js")},{_process:68,path:67}]},{},[1])(1)}); \ No newline at end of file diff --git a/assets/relateurl-browser.js b/assets/relateurl-browser.js index a4fb46b..fe1f59a 100644 --- a/assets/relateurl-browser.js +++ b/assets/relateurl-browser.js @@ -1 +1 @@ -!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.RelateUrl=t()}}(function(){var t;return function e(t,r,n){function o(s,i){if(!r[s]){if(!t[s]){var u="function"==typeof require&&require;if(!i&&u)return u(s,!0);if(a)return a(s,!0);var h=new Error("Cannot find module '"+s+"'");throw h.code="MODULE_NOT_FOUND",h}var l=r[s]={exports:{}};t[s][0].call(l.exports,function(e){var r=t[s][1][e];return o(r?r:e)},l,l.exports,e,t,r,n)}return r[s].exports}for(var a="function"==typeof require&&require,s=0;s-1){if(++a-1&&(r=r.toString(),null===t.port&&(t.port=r),t.extra.portIsDefault=t.port===r)}e.exports=r},{}],9:[function(t,e){"use strict";function r(t,e){t.query.string.full=n(t.query.object,!1),e.removeEmptyQueries&&(t.query.string.stripped=n(t.query.object,!0))}function n(t,e){var r=0,n="";for(var o in t)if(""!==o&&t.hasOwnProperty(o)){var a=t[o];""===a&&e||(n+=1===++r?"?":"&",o=encodeURIComponent(o),n+=""!==a?o+"="+encodeURIComponent(a).replace(/%20/g,"+"):o)}return n}e.exports=r},{}],10:[function(t,e){"use strict";function r(t){var e=t.protocol;return e&&e.indexOf(":")===e.length-1&&(e=e.substr(0,e.length-1)),t.host={full:t.hostname,stripped:null},t.path={absolute:{array:null,string:t.pathname},relative:{array:null,string:null}},t.query={object:t.query,string:{full:null,stripped:null}},t.extra={hrefInfo:{minimumPathOnly:null,minimumResourceOnly:null,minimumQueryOnly:null,minimumHashOnly:null,empty:null,separatorOnlyQuery:"?"===t.search},portIsDefault:null,relation:{maximumScheme:null,maximumAuth:null,maximumHost:null,maximumPort:null,maximumPath:null,maximumResource:null,maximumQuery:null,maximumHash:null,minimumScheme:null,minimumAuth:null,minimumHost:null,minimumPort:null,minimumPath:null,minimumResource:null,minimumQuery:null,minimumHash:null,overridesQuery:null},resourceIsIndex:null,slashes:t.slashes},t.resource=null,t.scheme=e,delete t.hostname,delete t.pathname,delete t.protocol,delete t.search,delete t.slashes,t}function n(t,e){var r=!0;return e.rejectedSchemes.every(function(e){return r=!(0===t.indexOf(e+":"))}),r}function o(t,e){return n(t,e)?r(a(t,!0,e.slashesDenoteHost)):{href:t,valid:!1}}var a=t("url").parse;e.exports=o},{url:22}],11:[function(t,e){"use strict";function r(t,e,r){s.upToPath(t,e,r),t.extra.relation.minimumScheme&&(t.scheme=e.scheme),t.extra.relation.minimumAuth&&(t.auth=e.auth),t.extra.relation.minimumHost&&(t.host=i.clone(e.host)),t.extra.relation.minimumPort&&o(t,e),t.extra.relation.minimumScheme&&n(t,e),s.pathOn(t,e,r),t.extra.relation.minimumResource&&a(t,e),t.extra.relation.minimumQuery&&(t.query=i.clone(e.query)),t.extra.relation.minimumHash&&(t.hash=e.hash)}function n(t,e){if(t.extra.relation.maximumHost||!t.extra.hrefInfo.minimumResourceOnly){var r=t.path.absolute.array,n="/";r?(t.extra.hrefInfo.minimumPathOnly&&0!==t.path.absolute.string.indexOf("/")&&(r=e.path.absolute.array.concat(r)),r=u.resolveDotSegments(r),n+=u.join(r)):r=[],t.path.absolute.array=r,t.path.absolute.string=n}else t.path=i.clone(e.path)}function o(t,e){t.port=e.port,t.extra.portIsDefault=e.extra.portIsDefault}function a(t,e){t.resource=e.resource,t.extra.resourceIsIndex=e.extra.resourceIsIndex}var s=t("./findRelation"),i=t("../util/object"),u=t("../util/path");e.exports=r},{"../util/object":15,"../util/path":16,"./findRelation":12}],12:[function(t,e){"use strict";function r(t,e,r){var n=t.extra.hrefInfo.minimumPathOnly,o=t.scheme===e.scheme||!t.scheme,a=o&&(t.auth===e.auth||r.removeAuth||n),s=r.ignore_www?"stripped":"full",i=a&&(t.host[s]===e.host[s]||n),u=i&&(t.port===e.port||n);t.extra.relation.minimumScheme=o,t.extra.relation.minimumAuth=a,t.extra.relation.minimumHost=i,t.extra.relation.minimumPort=u,t.extra.relation.maximumScheme=!o||o&&!a,t.extra.relation.maximumAuth=!o||o&&!i,t.extra.relation.maximumHost=!o||o&&!u}function n(t,e,r){var n=t.extra.hrefInfo.minimumQueryOnly,o=t.extra.hrefInfo.minimumHashOnly,a=t.extra.hrefInfo.empty,s=t.extra.relation.minimumPort,i=t.extra.relation.minimumScheme,u=s&&t.path.absolute.string===e.path.absolute.string,h=t.resource===e.resource||!t.resource&&e.extra.resourceIsIndex||r.removeDirectoryIndexes&&t.extra.resourceIsIndex&&!e.resource,l=u&&(h||n||o||a),c=r.removeEmptyQueries?"stripped":"full",f=t.query.string[c],m=e.query.string[c],p=l&&!!f&&f===m||(o||a)&&!t.extra.hrefInfo.separatorOnlyQuery,v=p&&t.hash===e.hash;t.extra.relation.minimumPath=u,t.extra.relation.minimumResource=l,t.extra.relation.minimumQuery=p,t.extra.relation.minimumHash=v,t.extra.relation.maximumPort=!i||i&&!u,t.extra.relation.maximumPath=!i||i&&!l,t.extra.relation.maximumResource=!i||i&&!p,t.extra.relation.maximumQuery=!i||i&&!v,t.extra.relation.maximumHash=!i||i&&!v,t.extra.relation.overridesQuery=u&&t.extra.relation.maximumResource&&!p&&!!m}e.exports={pathOn:n,upToPath:r}},{}],13:[function(t,e){"use strict";function r(t,e,r){return n(e,t,r),o(e,t,r),e}var n=t("./absolutize"),o=t("./relativize");e.exports=r},{"./absolutize":11,"./relativize":14}],14:[function(t,e){"use strict";function r(t,e){var r=[],n=!0,o=-1;return e.forEach(function(e,a){n&&(t[a]!==e?n=!1:o=a),n||r.push("..")}),t.forEach(function(t,e){e>o&&r.push(t)}),r}function n(t,e){if(t.extra.relation.minimumScheme){var n=r(t.path.absolute.array,e.path.absolute.array);t.path.relative.array=n,t.path.relative.string=o.join(n)}}var o=t("../util/path");e.exports=n},{"../util/path":16}],15:[function(t,e){"use strict";function r(t){if(t instanceof Object){var e=t instanceof Array?[]:{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=r(t[n]));return e}return t}function n(t){return!!t&&"object"==typeof t&&t.constructor===Object}function o(t,e){if(t instanceof Object&&e instanceof Object)for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}e.exports={clone:r,isPlainObject:n,shallowMerge:o}},{}],16:[function(t,e){"use strict";function r(t){return t.length?t.join("/")+"/":""}function n(t){var e=[];return t.forEach(function(t){".."!==t?"."!==t&&e.push(t):e.length&&e.splice(e.length-1,1)}),e}e.exports={join:r,resolveDotSegments:n}},{}],17:[function(t,e){"use strict";function r(t,e){this.options=a(e,{defaultPorts:{ftp:21,http:80,https:443},directoryIndexes:["index.html"],ignore_www:!1,output:r.SHORTEST,rejectedSchemes:["data","javascript","mailto"],removeAuth:!1,removeDirectoryIndexes:!0,removeEmptyQueries:!1,removeRootTrailingSlash:!0,schemeRelative:!0,site:void 0,slashesDenoteHost:!0}),this.from=i.from(t,this.options,null)}var n=t("./constants"),o=t("./format"),a=t("./options"),s=t("./util/object"),i=t("./parse"),u=t("./relate");r.prototype.relate=function(t,e,r){if(s.isPlainObject(e)?(r=e,e=t,t=null):e||(e=t,t=null),r=a(r,this.options),t=t||r.site,t=i.from(t,r,this.from),!t||!t.href)throw new Error("from value not defined.");if(t.extra.hrefInfo.minimumPathOnly)throw new Error("from value supplied is not absolute: "+t.href);return e=i.to(e,r),e.valid===!1?e.href:(e=u(t,e,r),e=o(e,r))},r.relate=function(t,e,n){return(new r).relate(t,e,n)},s.shallowMerge(r,n),e.exports=r},{"./constants":1,"./format":2,"./options":3,"./parse":6,"./relate":13,"./util/object":15}],18:[function(e,r,n){(function(e){!function(o){function a(t){throw RangeError(C[t])}function s(t,e){for(var r=t.length;r--;)t[r]=e(t[r]);return t}function i(t,e){return s(t.split(U),e).join(".")}function u(t){for(var e,r,n=[],o=0,a=t.length;a>o;)e=t.charCodeAt(o++),e>=55296&&56319>=e&&a>o?(r=t.charCodeAt(o++),56320==(64512&r)?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),o--)):n.push(e);return n}function h(t){return s(t,function(t){var e="";return t>65535&&(t-=65536,e+=D(t>>>10&1023|55296),t=56320|1023&t),e+=D(t)}).join("")}function l(t){return 10>t-48?t-22:26>t-65?t-65:26>t-97?t-97:j}function c(t,e){return t+22+75*(26>t)-((0!=e)<<5)}function f(t,e,r){var n=0;for(t=r?Q(t/E):t>>1,t+=Q(t/e);t>L*A>>1;n+=j)t=Q(t/L);return Q(n+(L+1)*t/(t+R))}function m(t){var e,r,n,o,s,i,u,c,m,p,v=[],x=t.length,y=0,d=q,g=P;for(r=t.lastIndexOf(S),0>r&&(r=0),n=0;r>n;++n)t.charCodeAt(n)>=128&&a("not-basic"),v.push(t.charCodeAt(n));for(o=r>0?r+1:0;x>o;){for(s=y,i=1,u=j;o>=x&&a("invalid-input"),c=l(t.charCodeAt(o++)),(c>=j||c>Q((I-y)/i))&&a("overflow"),y+=c*i,m=g>=u?w:u>=g+A?A:u-g,!(m>c);u+=j)p=j-m,i>Q(I/p)&&a("overflow"),i*=p;e=v.length+1,g=f(y-s,e,0==s),Q(y/e)>I-d&&a("overflow"),d+=Q(y/e),y%=e,v.splice(y++,0,d)}return h(v)}function p(t){var e,r,n,o,s,i,h,l,m,p,v,x,y,d,g,b=[];for(t=u(t),x=t.length,e=q,r=0,s=P,i=0;x>i;++i)v=t[i],128>v&&b.push(D(v));for(n=o=b.length,o&&b.push(S);x>n;){for(h=I,i=0;x>i;++i)v=t[i],v>=e&&h>v&&(h=v);for(y=n+1,h-e>Q((I-r)/y)&&a("overflow"),r+=(h-e)*y,e=h,i=0;x>i;++i)if(v=t[i],e>v&&++r>I&&a("overflow"),v==e){for(l=r,m=j;p=s>=m?w:m>=s+A?A:m-s,!(p>l);m+=j)g=l-p,d=j-p,b.push(D(c(p+g%d,0))),l=Q(g/d);b.push(D(c(l,0))),s=f(r,y,n==o),r=0,++n}++r,++e}return b.join("")}function v(t){return i(t,function(t){return T.test(t)?m(t.slice(4).toLowerCase()):t})}function x(t){return i(t,function(t){return H.test(t)?"xn--"+p(t):t})}var y="object"==typeof n&&n,d="object"==typeof r&&r&&r.exports==y&&r,g="object"==typeof e&&e;(g.global===g||g.window===g)&&(o=g);var b,O,I=2147483647,j=36,w=1,A=26,R=38,E=700,P=72,q=128,S="-",T=/^xn--/,H=/[^ -~]/,U=/\x2E|\u3002|\uFF0E|\uFF61/g,C={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=j-w,Q=Math.floor,D=String.fromCharCode;if(b={version:"1.2.4",ucs2:{decode:u,encode:h},decode:m,encode:p,toASCII:x,toUnicode:v},"function"==typeof t&&"object"==typeof t.amd&&t.amd)t("punycode",function(){return b});else if(y&&!y.nodeType)if(d)d.exports=b;else for(O in b)b.hasOwnProperty(O)&&(y[O]=b[O]);else o.punycode=b}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],19:[function(t,e){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.exports=function(t,e,o,a){e=e||"&",o=o||"=";var s={};if("string"!=typeof t||0===t.length)return s;var i=/\+/g;t=t.split(e);var u=1e3;a&&"number"==typeof a.maxKeys&&(u=a.maxKeys);var h=t.length;u>0&&h>u&&(h=u);for(var l=0;h>l;++l){var c,f,m,p,v=t[l].replace(i,"%20"),x=v.indexOf(o);x>=0?(c=v.substr(0,x),f=v.substr(x+1)):(c=v,f=""),m=decodeURIComponent(c),p=decodeURIComponent(f),r(s,m)?n(s[m])?s[m].push(p):s[m]=[s[m],p]:s[m]=p}return s};var n=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],20:[function(t,e){"use strict";function r(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n",'"',"`"," ","\r","\n"," "],x=["{","}","|","\\","^","`"].concat(v),y=["'"].concat(x),d=["%","/","?",";","#"].concat(y),g=["/","?","#"],b=255,O=/^[a-z0-9A-Z_-]{0,63}$/,I=/^([a-z0-9A-Z_-]{0,63})(.*)$/,j={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},A={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},R=t("querystring");n.prototype.parse=function(t,e,r){if(!u(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t;n=n.trim();var o=m.exec(n);if(o){o=o[0];var a=o.toLowerCase();this.protocol=a,n=n.substr(o.length)}if(r||o||n.match(/^\/\/[^@\/]+@[^@\/]+/)){var s="//"===n.substr(0,2);!s||o&&w[o]||(n=n.substr(2),this.slashes=!0)}if(!w[o]&&(s||o&&!A[o])){for(var i=-1,h=0;hl)&&(i=l)}var c,p;p=-1===i?n.lastIndexOf("@"):n.lastIndexOf("@",i),-1!==p&&(c=n.slice(0,p),n=n.slice(p+1),this.auth=decodeURIComponent(c)),i=-1;for(var h=0;hl)&&(i=l)}-1===i&&(i=n.length),this.host=n.slice(0,i),n=n.slice(i),this.parseHost(),this.hostname=this.hostname||"";var v="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!v)for(var x=this.hostname.split(/\./),h=0,E=x.length;E>h;h++){var P=x[h];if(P&&!P.match(O)){for(var q="",S=0,T=P.length;T>S;S++)q+=P.charCodeAt(S)>127?"x":P[S];if(!q.match(O)){var H=x.slice(0,h),U=x.slice(h+1),C=P.match(I);C&&(H.push(C[1]),U.unshift(C[2])),U.length&&(n="/"+U.join(".")+n),this.hostname=H.join(".");break}}}if(this.hostname=this.hostname.length>b?"":this.hostname.toLowerCase(),!v){for(var L=this.hostname.split("."),Q=[],h=0;hh;h++){var z=y[h],k=encodeURIComponent(z);k===z&&(k=escape(z)),n=n.split(z).join(k)}var F=n.indexOf("#");-1!==F&&(this.hash=n.substr(F),n=n.slice(0,F));var V=n.indexOf("?");if(-1!==V?(this.search=n.substr(V),this.query=n.substr(V+1),e&&(this.query=R.parse(this.query)),n=n.slice(0,V)):e&&(this.search="",this.query={}),n&&(this.pathname=n),A[a]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var _=this.pathname||"",D=this.search||"";this.path=_+D}return this.href=this.format(),this},n.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,a="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&h(this.query)&&Object.keys(this.query).length&&(a=R.stringify(this.query));var s=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||A[e])&&o!==!1?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),r=r.replace(/[?#]/g,function(t){return encodeURIComponent(t)}),s=s.replace("#","%23"),e+o+r+s+n},n.prototype.resolve=function(t){return this.resolveObject(o(t,!1,!0)).format()},n.prototype.resolveObject=function(t){if(u(t)){var e=new n;e.parse(t,!1,!0),t=e}var r=new n;if(Object.keys(this).forEach(function(t){r[t]=this[t]},this),r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol)return Object.keys(t).forEach(function(e){"protocol"!==e&&(r[e]=t[e])}),A[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r;if(t.protocol&&t.protocol!==r.protocol){if(!A[t.protocol])return Object.keys(t).forEach(function(e){r[e]=t[e]}),r.href=r.format(),r;if(r.protocol=t.protocol,t.host||w[t.protocol])r.pathname=t.pathname;else{for(var o=(t.pathname||"").split("/");o.length&&!(t.host=o.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==o[0]&&o.unshift(""),o.length<2&&o.unshift(""),r.pathname=o.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var a=r.pathname||"",s=r.search||"";r.path=a+s}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var i=r.pathname&&"/"===r.pathname.charAt(0),h=t.host||t.pathname&&"/"===t.pathname.charAt(0),f=h||i||r.host&&t.pathname,m=f,p=r.pathname&&r.pathname.split("/")||[],o=t.pathname&&t.pathname.split("/")||[],v=r.protocol&&!A[r.protocol];if(v&&(r.hostname="",r.port=null,r.host&&(""===p[0]?p[0]=r.host:p.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===o[0]?o[0]=t.host:o.unshift(t.host)),t.host=null),f=f&&(""===o[0]||""===p[0])),h)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,p=o;else if(o.length)p||(p=[]),p.pop(),p=p.concat(o),r.search=t.search,r.query=t.query;else if(!c(t.search)){if(v){r.hostname=r.host=p.shift();var x=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;x&&(r.auth=x.shift(),r.host=r.hostname=x.shift())}return r.search=t.search,r.query=t.query,l(r.pathname)&&l(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!p.length)return r.pathname=null,r.path=r.search?"/"+r.search:null,r.href=r.format(),r;for(var y=p.slice(-1)[0],d=(r.host||t.host)&&("."===y||".."===y)||""===y,g=0,b=p.length;b>=0;b--)y=p[b],"."==y?p.splice(b,1):".."===y?(p.splice(b,1),g++):g&&(p.splice(b,1),g--);if(!f&&!m)for(;g--;g)p.unshift("..");!f||""===p[0]||p[0]&&"/"===p[0].charAt(0)||p.unshift(""),d&&"/"!==p.join("/").substr(-1)&&p.push("");var O=""===p[0]||p[0]&&"/"===p[0].charAt(0);if(v){r.hostname=r.host=O?"":p.length?p.shift():"";var x=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;x&&(r.auth=x.shift(),r.host=r.hostname=x.shift())}return f=f||r.host&&p.length,f&&!O&&p.unshift(""),p.length?r.pathname=p.join("/"):(r.pathname=null,r.path=null),l(r.pathname)&&l(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var t=this.host,e=p.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},{punycode:18,querystring:21}]},{},[17])(17)}); \ No newline at end of file +!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.RelateUrl=t()}}(function(){var t;return function e(t,r,n){function o(s,i){if(!r[s]){if(!t[s]){var u="function"==typeof require&&require;if(!i&&u)return u(s,!0);if(a)return a(s,!0);var h=new Error("Cannot find module '"+s+"'");throw h.code="MODULE_NOT_FOUND",h}var l=r[s]={exports:{}};t[s][0].call(l.exports,function(e){var r=t[s][1][e];return o(r?r:e)},l,l.exports,e,t,r,n)}return r[s].exports}for(var a="function"==typeof require&&require,s=0;s-1){if(++o-1&&(r=r.toString(),null===t.port&&(t.port=r),t.extra.portIsDefault=t.port===r)}e.exports=n},{}],9:[function(t,e,r){"use strict";function n(t,e){t.query.string.full=o(t.query.object,!1),e.removeEmptyQueries&&(t.query.string.stripped=o(t.query.object,!0))}function o(t,e){var r=0,n="";for(var o in t)if(""!==o&&t.hasOwnProperty(o)){var a=t[o];""===a&&e||(n+=1===++r?"?":"&",o=encodeURIComponent(o),n+=""!==a?o+"="+encodeURIComponent(a).replace(/%20/g,"+"):o)}return n}e.exports=n},{}],10:[function(t,e,r){"use strict";function n(t){var e=t.protocol;return e&&e.indexOf(":")===e.length-1&&(e=e.substr(0,e.length-1)),t.host={full:t.hostname,stripped:null},t.path={absolute:{array:null,string:t.pathname},relative:{array:null,string:null}},t.query={object:t.query,string:{full:null,stripped:null}},t.extra={hrefInfo:{minimumPathOnly:null,minimumResourceOnly:null,minimumQueryOnly:null,minimumHashOnly:null,empty:null,separatorOnlyQuery:"?"===t.search},portIsDefault:null,relation:{maximumScheme:null,maximumAuth:null,maximumHost:null,maximumPort:null,maximumPath:null,maximumResource:null,maximumQuery:null,maximumHash:null,minimumScheme:null,minimumAuth:null,minimumHost:null,minimumPort:null,minimumPath:null,minimumResource:null,minimumQuery:null,minimumHash:null,overridesQuery:null},resourceIsIndex:null,slashes:t.slashes},t.resource=null,t.scheme=e,delete t.hostname,delete t.pathname,delete t.protocol,delete t.search,delete t.slashes,t}function o(t,e){var r=!0;return e.rejectedSchemes.every(function(e){return r=!(0===t.indexOf(e+":"))}),r}function a(t,e){return o(t,e)?n(s(t,!0,e.slashesDenoteHost)):{href:t,valid:!1}}var s=t("url").parse;e.exports=a},{url:22}],11:[function(t,e,r){"use strict";function n(t,e,r){i.upToPath(t,e,r),t.extra.relation.minimumScheme&&(t.scheme=e.scheme),t.extra.relation.minimumAuth&&(t.auth=e.auth),t.extra.relation.minimumHost&&(t.host=u.clone(e.host)),t.extra.relation.minimumPort&&a(t,e),t.extra.relation.minimumScheme&&o(t,e),i.pathOn(t,e,r),t.extra.relation.minimumResource&&s(t,e),t.extra.relation.minimumQuery&&(t.query=u.clone(e.query)),t.extra.relation.minimumHash&&(t.hash=e.hash)}function o(t,e){if(t.extra.relation.maximumHost||!t.extra.hrefInfo.minimumResourceOnly){var r=t.path.absolute.array,n="/";r?(t.extra.hrefInfo.minimumPathOnly&&0!==t.path.absolute.string.indexOf("/")&&(r=e.path.absolute.array.concat(r)),r=h.resolveDotSegments(r),n+=h.join(r)):r=[],t.path.absolute.array=r,t.path.absolute.string=n}else t.path=u.clone(e.path)}function a(t,e){t.port=e.port,t.extra.portIsDefault=e.extra.portIsDefault}function s(t,e){t.resource=e.resource,t.extra.resourceIsIndex=e.extra.resourceIsIndex}var i=t("./findRelation"),u=t("../util/object"),h=t("../util/path");e.exports=n},{"../util/object":15,"../util/path":16,"./findRelation":12}],12:[function(t,e,r){"use strict";function n(t,e,r){var n=t.extra.hrefInfo.minimumPathOnly,o=t.scheme===e.scheme||!t.scheme,a=o&&(t.auth===e.auth||r.removeAuth||n),s=r.ignore_www?"stripped":"full",i=a&&(t.host[s]===e.host[s]||n),u=i&&(t.port===e.port||n);t.extra.relation.minimumScheme=o,t.extra.relation.minimumAuth=a,t.extra.relation.minimumHost=i,t.extra.relation.minimumPort=u,t.extra.relation.maximumScheme=!o||o&&!a,t.extra.relation.maximumAuth=!o||o&&!i,t.extra.relation.maximumHost=!o||o&&!u}function o(t,e,r){var n=t.extra.hrefInfo.minimumQueryOnly,o=t.extra.hrefInfo.minimumHashOnly,a=t.extra.hrefInfo.empty,s=t.extra.relation.minimumPort,i=t.extra.relation.minimumScheme,u=s&&t.path.absolute.string===e.path.absolute.string,h=t.resource===e.resource||!t.resource&&e.extra.resourceIsIndex||r.removeDirectoryIndexes&&t.extra.resourceIsIndex&&!e.resource,l=u&&(h||n||o||a),c=r.removeEmptyQueries?"stripped":"full",f=t.query.string[c],m=e.query.string[c],p=l&&!!f&&f===m||(o||a)&&!t.extra.hrefInfo.separatorOnlyQuery,v=p&&t.hash===e.hash;t.extra.relation.minimumPath=u,t.extra.relation.minimumResource=l,t.extra.relation.minimumQuery=p,t.extra.relation.minimumHash=v,t.extra.relation.maximumPort=!i||i&&!u,t.extra.relation.maximumPath=!i||i&&!l,t.extra.relation.maximumResource=!i||i&&!p,t.extra.relation.maximumQuery=!i||i&&!v,t.extra.relation.maximumHash=!i||i&&!v,t.extra.relation.overridesQuery=u&&t.extra.relation.maximumResource&&!p&&!!m}e.exports={pathOn:o,upToPath:n}},{}],13:[function(t,e,r){"use strict";function n(t,e,r){return o(e,t,r),a(e,t,r),e}var o=t("./absolutize"),a=t("./relativize");e.exports=n},{"./absolutize":11,"./relativize":14}],14:[function(t,e,r){"use strict";function n(t,e){var r=[],n=!0,o=-1;return e.forEach(function(e,a){n&&(t[a]!==e?n=!1:o=a),n||r.push("..")}),t.forEach(function(t,e){e>o&&r.push(t)}),r}function o(t,e,r){if(t.extra.relation.minimumScheme){var o=n(t.path.absolute.array,e.path.absolute.array);t.path.relative.array=o,t.path.relative.string=a.join(o)}}var a=t("../util/path");e.exports=o},{"../util/path":16}],15:[function(t,e,r){"use strict";function n(t){if(t instanceof Object){var e=t instanceof Array?[]:{};for(var r in t)t.hasOwnProperty(r)&&(e[r]=n(t[r]));return e}return t}function o(t){return!!t&&"object"==typeof t&&t.constructor===Object}function a(t,e){if(t instanceof Object&&e instanceof Object)for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}e.exports={clone:n,isPlainObject:o,shallowMerge:a}},{}],16:[function(t,e,r){"use strict";function n(t){return t.length?t.join("/")+"/":""}function o(t){var e=[];return t.forEach(function(t){".."!==t?"."!==t&&e.push(t):e.length&&e.splice(e.length-1,1)}),e}e.exports={join:n,resolveDotSegments:o}},{}],17:[function(t,e,r){"use strict";function n(t,e){this.options=s(e,{defaultPorts:{ftp:21,http:80,https:443},directoryIndexes:["index.html"],ignore_www:!1,output:n.SHORTEST,rejectedSchemes:["data","javascript","mailto"],removeAuth:!1,removeDirectoryIndexes:!0,removeEmptyQueries:!1,removeRootTrailingSlash:!0,schemeRelative:!0,site:void 0,slashesDenoteHost:!0}),this.from=u.from(t,this.options,null)}var o=t("./constants"),a=t("./format"),s=t("./options"),i=t("./util/object"),u=t("./parse"),h=t("./relate");n.prototype.relate=function(t,e,r){if(i.isPlainObject(e)?(r=e,e=t,t=null):e||(e=t,t=null),r=s(r,this.options),t=t||r.site,t=u.from(t,r,this.from),!t||!t.href)throw new Error("from value not defined.");if(t.extra.hrefInfo.minimumPathOnly)throw new Error("from value supplied is not absolute: "+t.href);return e=u.to(e,r),e.valid===!1?e.href:(e=h(t,e,r),e=a(e,r))},n.relate=function(t,e,r){return(new n).relate(t,e,r)},i.shallowMerge(n,o),e.exports=n},{"./constants":1,"./format":2,"./options":3,"./parse":6,"./relate":13,"./util/object":15}],18:[function(e,r,n){(function(e){!function(o){function a(t){throw RangeError(C[t])}function s(t,e){for(var r=t.length;r--;)t[r]=e(t[r]);return t}function i(t,e){return s(t.split(U),e).join(".")}function u(t){for(var e,r,n=[],o=0,a=t.length;a>o;)e=t.charCodeAt(o++),e>=55296&&56319>=e&&a>o?(r=t.charCodeAt(o++),56320==(64512&r)?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),o--)):n.push(e);return n}function h(t){return s(t,function(t){var e="";return t>65535&&(t-=65536,e+=D(t>>>10&1023|55296),t=56320|1023&t),e+=D(t)}).join("")}function l(t){return 10>t-48?t-22:26>t-65?t-65:26>t-97?t-97:j}function c(t,e){return t+22+75*(26>t)-((0!=e)<<5)}function f(t,e,r){var n=0;for(t=r?Q(t/E):t>>1,t+=Q(t/e);t>L*A>>1;n+=j)t=Q(t/L);return Q(n+(L+1)*t/(t+R))}function m(t){var e,r,n,o,s,i,u,c,m,p,v=[],x=t.length,y=0,d=q,g=P;for(r=t.lastIndexOf(S),0>r&&(r=0),n=0;r>n;++n)t.charCodeAt(n)>=128&&a("not-basic"),v.push(t.charCodeAt(n));for(o=r>0?r+1:0;x>o;){for(s=y,i=1,u=j;o>=x&&a("invalid-input"),c=l(t.charCodeAt(o++)),(c>=j||c>Q((I-y)/i))&&a("overflow"),y+=c*i,m=g>=u?w:u>=g+A?A:u-g,!(m>c);u+=j)p=j-m,i>Q(I/p)&&a("overflow"),i*=p;e=v.length+1,g=f(y-s,e,0==s),Q(y/e)>I-d&&a("overflow"),d+=Q(y/e),y%=e,v.splice(y++,0,d)}return h(v)}function p(t){var e,r,n,o,s,i,h,l,m,p,v,x,y,d,g,b=[];for(t=u(t),x=t.length,e=q,r=0,s=P,i=0;x>i;++i)v=t[i],128>v&&b.push(D(v));for(n=o=b.length,o&&b.push(S);x>n;){for(h=I,i=0;x>i;++i)v=t[i],v>=e&&h>v&&(h=v);for(y=n+1,h-e>Q((I-r)/y)&&a("overflow"),r+=(h-e)*y,e=h,i=0;x>i;++i)if(v=t[i],e>v&&++r>I&&a("overflow"),v==e){for(l=r,m=j;p=s>=m?w:m>=s+A?A:m-s,!(p>l);m+=j)g=l-p,d=j-p,b.push(D(c(p+g%d,0))),l=Q(g/d);b.push(D(c(l,0))),s=f(r,y,n==o),r=0,++n}++r,++e}return b.join("")}function v(t){return i(t,function(t){return T.test(t)?m(t.slice(4).toLowerCase()):t})}function x(t){return i(t,function(t){return H.test(t)?"xn--"+p(t):t})}var y="object"==typeof n&&n,d="object"==typeof r&&r&&r.exports==y&&r,g="object"==typeof e&&e;(g.global===g||g.window===g)&&(o=g);var b,O,I=2147483647,j=36,w=1,A=26,R=38,E=700,P=72,q=128,S="-",T=/^xn--/,H=/[^ -~]/,U=/\x2E|\u3002|\uFF0E|\uFF61/g,C={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=j-w,Q=Math.floor,D=String.fromCharCode;if(b={version:"1.2.4",ucs2:{decode:u,encode:h},decode:m,encode:p,toASCII:x,toUnicode:v},"function"==typeof t&&"object"==typeof t.amd&&t.amd)t("punycode",function(){return b});else if(y&&!y.nodeType)if(d)d.exports=b;else for(O in b)b.hasOwnProperty(O)&&(y[O]=b[O]);else o.punycode=b}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],19:[function(t,e,r){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.exports=function(t,e,r,a){e=e||"&",r=r||"=";var s={};if("string"!=typeof t||0===t.length)return s;var i=/\+/g;t=t.split(e);var u=1e3;a&&"number"==typeof a.maxKeys&&(u=a.maxKeys);var h=t.length;u>0&&h>u&&(h=u);for(var l=0;h>l;++l){var c,f,m,p,v=t[l].replace(i,"%20"),x=v.indexOf(r);x>=0?(c=v.substr(0,x),f=v.substr(x+1)):(c=v,f=""),m=decodeURIComponent(c),p=decodeURIComponent(f),n(s,m)?o(s[m])?s[m].push(p):s[m]=[s[m],p]:s[m]=p}return s};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],20:[function(t,e,r){"use strict";function n(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n",'"',"`"," ","\r","\n"," "],x=["{","}","|","\\","^","`"].concat(v),y=["'"].concat(x),d=["%","/","?",";","#"].concat(y),g=["/","?","#"],b=255,O=/^[a-z0-9A-Z_-]{0,63}$/,I=/^([a-z0-9A-Z_-]{0,63})(.*)$/,j={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},A={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},R=t("querystring");n.prototype.parse=function(t,e,r){if(!u(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t;n=n.trim();var o=m.exec(n);if(o){o=o[0];var a=o.toLowerCase();this.protocol=a,n=n.substr(o.length)}if(r||o||n.match(/^\/\/[^@\/]+@[^@\/]+/)){var s="//"===n.substr(0,2);!s||o&&w[o]||(n=n.substr(2),this.slashes=!0)}if(!w[o]&&(s||o&&!A[o])){for(var i=-1,h=0;hl)&&(i=l)}var c,p;p=-1===i?n.lastIndexOf("@"):n.lastIndexOf("@",i),-1!==p&&(c=n.slice(0,p),n=n.slice(p+1),this.auth=decodeURIComponent(c)),i=-1;for(var h=0;hl)&&(i=l)}-1===i&&(i=n.length),this.host=n.slice(0,i),n=n.slice(i),this.parseHost(),this.hostname=this.hostname||"";var v="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!v)for(var x=this.hostname.split(/\./),h=0,E=x.length;E>h;h++){var P=x[h];if(P&&!P.match(O)){for(var q="",S=0,T=P.length;T>S;S++)q+=P.charCodeAt(S)>127?"x":P[S];if(!q.match(O)){var H=x.slice(0,h),U=x.slice(h+1),C=P.match(I);C&&(H.push(C[1]),U.unshift(C[2])),U.length&&(n="/"+U.join(".")+n),this.hostname=H.join(".");break}}}if(this.hostname.length>b?this.hostname="":this.hostname=this.hostname.toLowerCase(),!v){for(var L=this.hostname.split("."),Q=[],h=0;hh;h++){var z=y[h],k=encodeURIComponent(z);k===z&&(k=escape(z)),n=n.split(z).join(k)}var F=n.indexOf("#");-1!==F&&(this.hash=n.substr(F),n=n.slice(0,F));var V=n.indexOf("?");if(-1!==V?(this.search=n.substr(V),this.query=n.substr(V+1),e&&(this.query=R.parse(this.query)),n=n.slice(0,V)):e&&(this.search="",this.query={}),n&&(this.pathname=n),A[a]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var _=this.pathname||"",D=this.search||"";this.path=_+D}return this.href=this.format(),this},n.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,a="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&h(this.query)&&Object.keys(this.query).length&&(a=R.stringify(this.query));var s=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||A[e])&&o!==!1?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),r=r.replace(/[?#]/g,function(t){return encodeURIComponent(t)}),s=s.replace("#","%23"),e+o+r+s+n},n.prototype.resolve=function(t){return this.resolveObject(o(t,!1,!0)).format()},n.prototype.resolveObject=function(t){if(u(t)){var e=new n;e.parse(t,!1,!0),t=e}var r=new n;if(Object.keys(this).forEach(function(t){r[t]=this[t]},this),r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol)return Object.keys(t).forEach(function(e){"protocol"!==e&&(r[e]=t[e])}),A[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r;if(t.protocol&&t.protocol!==r.protocol){if(!A[t.protocol])return Object.keys(t).forEach(function(e){r[e]=t[e]}),r.href=r.format(),r;if(r.protocol=t.protocol,t.host||w[t.protocol])r.pathname=t.pathname;else{for(var o=(t.pathname||"").split("/");o.length&&!(t.host=o.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==o[0]&&o.unshift(""),o.length<2&&o.unshift(""),r.pathname=o.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var a=r.pathname||"",s=r.search||"";r.path=a+s}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var i=r.pathname&&"/"===r.pathname.charAt(0),h=t.host||t.pathname&&"/"===t.pathname.charAt(0),f=h||i||r.host&&t.pathname,m=f,p=r.pathname&&r.pathname.split("/")||[],o=t.pathname&&t.pathname.split("/")||[],v=r.protocol&&!A[r.protocol];if(v&&(r.hostname="",r.port=null,r.host&&(""===p[0]?p[0]=r.host:p.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===o[0]?o[0]=t.host:o.unshift(t.host)),t.host=null),f=f&&(""===o[0]||""===p[0])),h)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,p=o;else if(o.length)p||(p=[]),p.pop(),p=p.concat(o),r.search=t.search,r.query=t.query;else if(!c(t.search)){if(v){r.hostname=r.host=p.shift();var x=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;x&&(r.auth=x.shift(),r.host=r.hostname=x.shift())}return r.search=t.search,r.query=t.query,l(r.pathname)&&l(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!p.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var y=p.slice(-1)[0],d=(r.host||t.host)&&("."===y||".."===y)||""===y,g=0,b=p.length;b>=0;b--)y=p[b],"."==y?p.splice(b,1):".."===y?(p.splice(b,1),g++):g&&(p.splice(b,1),g--);if(!f&&!m)for(;g--;g)p.unshift("..");!f||""===p[0]||p[0]&&"/"===p[0].charAt(0)||p.unshift(""),d&&"/"!==p.join("/").substr(-1)&&p.push("");var O=""===p[0]||p[0]&&"/"===p[0].charAt(0);if(v){r.hostname=r.host=O?"":p.length?p.shift():"";var x=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;x&&(r.auth=x.shift(),r.host=r.hostname=x.shift())}return f=f||r.host&&p.length,f&&!O&&p.unshift(""),p.length?r.pathname=p.join("/"):(r.pathname=null,r.path=null),l(r.pathname)&&l(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var t=this.host,e=p.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},{punycode:18,querystring:21}]},{},[17])(17)}); \ No newline at end of file diff --git a/assets/uglify.js b/assets/uglify.js index 869be28..30657c3 100644 --- a/assets/uglify.js +++ b/assets/uglify.js @@ -4,6 +4,6 @@ var scope=self.parent_scope=null;var defun=null;var nesting=0;var tw=new TreeWal });function force_statement(stat,output){if(output.option("bracketize")){if(!stat||stat instanceof AST_EmptyStatement)output.print("{}");else if(stat instanceof AST_BlockStatement)stat.print(output);else output.with_block(function(){output.indent();stat.print(output);output.newline()})}else{if(!stat||stat instanceof AST_EmptyStatement)output.force_semicolon();else stat.print(output)}}function first_in_statement(output){var a=output.stack(),i=a.length,node=a[--i],p=a[--i];while(i>0){if(p instanceof AST_Statement&&p.body===node)return true;if(p instanceof AST_Seq&&p.car===node||p instanceof AST_Call&&p.expression===node&&!(p instanceof AST_New)||p instanceof AST_Dot&&p.expression===node||p instanceof AST_Sub&&p.expression===node||p instanceof AST_Conditional&&p.condition===node||p instanceof AST_Binary&&p.left===node||p instanceof AST_UnaryPostfix&&p.expression===node){node=p;p=a[--i]}else{return false}}}function no_constructor_parens(self,output){return self.args.length==0&&!output.option("beautify")}function best_of(a){var best=a[0],len=best.length;for(var i=1;i=0){a.push("0x"+num.toString(16).toLowerCase(),"0"+num.toString(8))}else{a.push("-0x"+(-num).toString(16).toLowerCase(),"-0"+(-num).toString(8))}if(m=/^(.*?)(0+)$/.exec(num)){a.push(m[1]+"e"+m[2].length)}}else if(m=/^0?\.(0+)(.*)$/.exec(num)){a.push(m[2]+"e-"+(m[1].length+m[2].length),str.substr(str.indexOf(".")))}return best_of(a)}function make_block(stmt,output){if(stmt instanceof AST_BlockStatement){stmt.print(output);return}output.with_block(function(){output.indent();stmt.print(output);output.newline()})}function DEFMAP(nodetype,generator){nodetype.DEFMETHOD("add_source_map",function(stream){generator(this,stream)})}DEFMAP(AST_Node,noop);function basic_sourcemap_gen(self,output){output.add_mapping(self.start)}DEFMAP(AST_Directive,basic_sourcemap_gen);DEFMAP(AST_Debugger,basic_sourcemap_gen);DEFMAP(AST_Symbol,basic_sourcemap_gen);DEFMAP(AST_Jump,basic_sourcemap_gen);DEFMAP(AST_StatementWithBody,basic_sourcemap_gen);DEFMAP(AST_LabeledStatement,noop);DEFMAP(AST_Lambda,basic_sourcemap_gen);DEFMAP(AST_Switch,basic_sourcemap_gen);DEFMAP(AST_SwitchBranch,basic_sourcemap_gen);DEFMAP(AST_BlockStatement,basic_sourcemap_gen);DEFMAP(AST_Toplevel,noop);DEFMAP(AST_New,basic_sourcemap_gen);DEFMAP(AST_Try,basic_sourcemap_gen);DEFMAP(AST_Catch,basic_sourcemap_gen);DEFMAP(AST_Finally,basic_sourcemap_gen);DEFMAP(AST_Definitions,basic_sourcemap_gen);DEFMAP(AST_Constant,basic_sourcemap_gen);DEFMAP(AST_ObjectProperty,function(self,output){output.add_mapping(self.start,self.key)})})();"use strict";function Compressor(options,false_by_default){if(!(this instanceof Compressor))return new Compressor(options,false_by_default);TreeTransformer.call(this,this.before,this.after);this.options=defaults(options,{sequences:!false_by_default,properties:!false_by_default,dead_code:!false_by_default,drop_debugger:!false_by_default,unsafe:false,unsafe_comps:false,conditionals:!false_by_default,comparisons:!false_by_default,evaluate:!false_by_default,booleans:!false_by_default,loops:!false_by_default,unused:!false_by_default,hoist_funs:!false_by_default,keep_fargs:false,keep_fnames:false,hoist_vars:false,if_return:!false_by_default,join_vars:!false_by_default,cascade:!false_by_default,side_effects:!false_by_default,pure_getters:false,pure_funcs:null,negate_iife:!false_by_default,screw_ie8:false,drop_console:false,angular:false,warnings:true,global_defs:{}},true)}Compressor.prototype=new TreeTransformer;merge(Compressor.prototype,{option:function(key){return this.options[key]},warn:function(){if(this.options.warnings)AST_Node.warn.apply(AST_Node,arguments)},before:function(node,descend,in_list){if(node._squeezed)return node;var was_scope=false;if(node instanceof AST_Scope){node=node.hoist_declarations(this);was_scope=true}descend(node,this);node=node.optimize(this);if(was_scope&&node instanceof AST_Scope){node.drop_unused(this);descend(node,this)}node._squeezed=true;return node}});(function(){function OPT(node,optimizer){node.DEFMETHOD("optimize",function(compressor){var self=this;if(self._optimized)return self;var opt=optimizer(self,compressor);opt._optimized=true;if(opt===self)return opt;return opt.transform(compressor)})}OPT(AST_Node,function(self,compressor){return self});AST_Node.DEFMETHOD("equivalent_to",function(node){return this.print_to_string()==node.print_to_string()});function make_node(ctor,orig,props){if(!props)props={};if(orig){if(!props.start)props.start=orig.start;if(!props.end)props.end=orig.end}return new ctor(props)}function make_node_from_constant(compressor,val,orig){if(val instanceof AST_Node)return val.transform(compressor);switch(typeof val){case"string":return make_node(AST_String,orig,{value:val}).optimize(compressor);case"number":return make_node(isNaN(val)?AST_NaN:AST_Number,orig,{value:val}).optimize(compressor);case"boolean":return make_node(val?AST_True:AST_False,orig).optimize(compressor);case"undefined":return make_node(AST_Undefined,orig).optimize(compressor);default:if(val===null){return make_node(AST_Null,orig,{value:null}).optimize(compressor)}if(val instanceof RegExp){return make_node(AST_RegExp,orig,{value:val}).optimize(compressor)}throw new Error(string_template("Can't handle constant of type: {type}",{type:typeof val}))}}function as_statement_array(thing){if(thing===null)return[];if(thing instanceof AST_BlockStatement)return thing.body;if(thing instanceof AST_EmptyStatement)return[];if(thing instanceof AST_Statement)return[thing];throw new Error("Can't convert thing to statement array")}function is_empty(thing){if(thing===null)return true;if(thing instanceof AST_EmptyStatement)return true;if(thing instanceof AST_BlockStatement)return thing.body.length==0;return false}function loop_body(x){if(x instanceof AST_Switch)return x;if(x instanceof AST_For||x instanceof AST_ForIn||x instanceof AST_DWLoop){return x.body instanceof AST_BlockStatement?x.body:x}return x}function tighten_body(statements,compressor){var CHANGED;do{CHANGED=false;if(compressor.option("angular")){statements=process_for_angular(statements)}statements=eliminate_spurious_blocks(statements);if(compressor.option("dead_code")){statements=eliminate_dead_code(statements,compressor)}if(compressor.option("if_return")){statements=handle_if_return(statements,compressor)}if(compressor.option("sequences")){statements=sequencesize(statements,compressor)}if(compressor.option("join_vars")){statements=join_consecutive_vars(statements,compressor)}}while(CHANGED);if(compressor.option("negate_iife")){negate_iifes(statements,compressor)}return statements;function process_for_angular(statements){function has_inject(comment){return/@ngInject/.test(comment.value)}function make_arguments_names_list(func){return func.argnames.map(function(sym){return make_node(AST_String,sym,{value:sym.name})})}function make_array(orig,elements){return make_node(AST_Array,orig,{elements:elements})}function make_injector(func,name){return make_node(AST_SimpleStatement,func,{body:make_node(AST_Assign,func,{operator:"=",left:make_node(AST_Dot,name,{expression:make_node(AST_SymbolRef,name,name),property:"$inject"}),right:make_array(func,make_arguments_names_list(func))})})}function check_expression(body){if(body&&body.args){body.args.forEach(function(argument,index,array){var comments=argument.start.comments_before;if(argument instanceof AST_Lambda&&comments.length&&has_inject(comments[0])){array[index]=make_array(argument,make_arguments_names_list(argument).concat(argument))}});if(body.expression&&body.expression.expression){check_expression(body.expression.expression)}}}return statements.reduce(function(a,stat){a.push(stat);if(stat.body&&stat.body.args){check_expression(stat.body)}else{var token=stat.start;var comments=token.comments_before;if(comments&&comments.length>0){var last=comments.pop();if(has_inject(last)){if(stat instanceof AST_Defun){a.push(make_injector(stat,stat.name))}else if(stat instanceof AST_Definitions){stat.definitions.forEach(function(def){if(def.value&&def.value instanceof AST_Lambda){a.push(make_injector(def.value,def.name))}})}else{compressor.warn("Unknown statement marked with @ngInject [{file}:{line},{col}]",token)}}}}return a},[])}function eliminate_spurious_blocks(statements){var seen_dirs=[];return statements.reduce(function(a,stat){if(stat instanceof AST_BlockStatement){CHANGED=true;a.push.apply(a,eliminate_spurious_blocks(stat.body))}else if(stat instanceof AST_EmptyStatement){CHANGED=true}else if(stat instanceof AST_Directive){if(seen_dirs.indexOf(stat.value)<0){a.push(stat);seen_dirs.push(stat.value)}else{CHANGED=true}}else{a.push(stat)}return a},[])}function handle_if_return(statements,compressor){var self=compressor.self();var in_lambda=self instanceof AST_Lambda;var ret=[];loop:for(var i=statements.length;--i>=0;){var stat=statements[i];switch(true){case in_lambda&&stat instanceof AST_Return&&!stat.value&&ret.length==0:CHANGED=true;continue loop;case stat instanceof AST_If:if(stat.body instanceof AST_Return){if((in_lambda&&ret.length==0||ret[0]instanceof AST_Return&&!ret[0].value)&&!stat.body.value&&!stat.alternative){CHANGED=true;var cond=make_node(AST_SimpleStatement,stat.condition,{body:stat.condition});ret.unshift(cond);continue loop}if(ret[0]instanceof AST_Return&&stat.body.value&&ret[0].value&&!stat.alternative){CHANGED=true;stat=stat.clone();stat.alternative=ret[0];ret[0]=stat.transform(compressor);continue loop}if((ret.length==0||ret[0]instanceof AST_Return)&&stat.body.value&&!stat.alternative&&in_lambda){CHANGED=true;stat=stat.clone();stat.alternative=ret[0]||make_node(AST_Return,stat,{value:make_node(AST_Undefined,stat)});ret[0]=stat.transform(compressor);continue loop}if(!stat.body.value&&in_lambda){CHANGED=true;stat=stat.clone();stat.condition=stat.condition.negate(compressor);stat.body=make_node(AST_BlockStatement,stat,{body:as_statement_array(stat.alternative).concat(ret)});stat.alternative=null;ret=[stat.transform(compressor)];continue loop}if(ret.length==1&&in_lambda&&ret[0]instanceof AST_SimpleStatement&&(!stat.alternative||stat.alternative instanceof AST_SimpleStatement)){CHANGED=true;ret.push(make_node(AST_Return,ret[0],{value:make_node(AST_Undefined,ret[0])}).transform(compressor));ret=as_statement_array(stat.alternative).concat(ret);ret.unshift(stat);continue loop}}var ab=aborts(stat.body);var lct=ab instanceof AST_LoopControl?compressor.loopcontrol_target(ab.label):null;if(ab&&(ab instanceof AST_Return&&!ab.value&&in_lambda||ab instanceof AST_Continue&&self===loop_body(lct)||ab instanceof AST_Break&&lct instanceof AST_BlockStatement&&self===lct)){if(ab.label){remove(ab.label.thedef.references,ab)}CHANGED=true;var body=as_statement_array(stat.body).slice(0,-1);stat=stat.clone();stat.condition=stat.condition.negate(compressor);stat.body=make_node(AST_BlockStatement,stat,{body:as_statement_array(stat.alternative).concat(ret)});stat.alternative=make_node(AST_BlockStatement,stat,{body:body});ret=[stat.transform(compressor)];continue loop}var ab=aborts(stat.alternative);var lct=ab instanceof AST_LoopControl?compressor.loopcontrol_target(ab.label):null;if(ab&&(ab instanceof AST_Return&&!ab.value&&in_lambda||ab instanceof AST_Continue&&self===loop_body(lct)||ab instanceof AST_Break&&lct instanceof AST_BlockStatement&&self===lct)){if(ab.label){remove(ab.label.thedef.references,ab)}CHANGED=true;stat=stat.clone();stat.body=make_node(AST_BlockStatement,stat.body,{body:as_statement_array(stat.body).concat(ret)});stat.alternative=make_node(AST_BlockStatement,stat.alternative,{body:as_statement_array(stat.alternative).slice(0,-1)});ret=[stat.transform(compressor)];continue loop}ret.unshift(stat);break;default:ret.unshift(stat);break}}return ret}function eliminate_dead_code(statements,compressor){var has_quit=false;var orig=statements.length;var self=compressor.self();statements=statements.reduce(function(a,stat){if(has_quit){extract_declarations_from_unreachable_code(compressor,stat,a)}else{if(stat instanceof AST_LoopControl){var lct=compressor.loopcontrol_target(stat.label);if(stat instanceof AST_Break&&lct instanceof AST_BlockStatement&&loop_body(lct)===self||stat instanceof AST_Continue&&loop_body(lct)===self){if(stat.label){remove(stat.label.thedef.references,stat)}}else{a.push(stat)}}else{a.push(stat)}if(aborts(stat))has_quit=true}return a},[]);CHANGED=statements.length!=orig;return statements}function sequencesize(statements,compressor){if(statements.length<2)return statements;var seq=[],ret=[];function push_seq(){seq=AST_Seq.from_array(seq);if(seq)ret.push(make_node(AST_SimpleStatement,seq,{body:seq}));seq=[]}statements.forEach(function(stat){if(stat instanceof AST_SimpleStatement&&seq.length<2e3)seq.push(stat.body);else push_seq(),ret.push(stat)});push_seq();ret=sequencesize_2(ret,compressor);CHANGED=ret.length!=statements.length;return ret}function sequencesize_2(statements,compressor){function cons_seq(right){ret.pop();var left=prev.body;if(left instanceof AST_Seq){left.add(right)}else{left=AST_Seq.cons(left,right)}return left.transform(compressor)}var ret=[],prev=null;statements.forEach(function(stat){if(prev){if(stat instanceof AST_For){var opera={};try{prev.body.walk(new TreeWalker(function(node){if(node instanceof AST_Binary&&node.operator=="in")throw opera}));if(stat.init&&!(stat.init instanceof AST_Definitions)){stat.init=cons_seq(stat.init)}else if(!stat.init){stat.init=prev.body;ret.pop()}}catch(ex){if(ex!==opera)throw ex}}else if(stat instanceof AST_If){stat.condition=cons_seq(stat.condition)}else if(stat instanceof AST_With){stat.expression=cons_seq(stat.expression)}else if(stat instanceof AST_Exit&&stat.value){stat.value=cons_seq(stat.value)}else if(stat instanceof AST_Exit){stat.value=cons_seq(make_node(AST_Undefined,stat))}else if(stat instanceof AST_Switch){stat.expression=cons_seq(stat.expression)}}ret.push(stat);prev=stat instanceof AST_SimpleStatement?stat:null});return ret}function join_consecutive_vars(statements,compressor){var prev=null;return statements.reduce(function(a,stat){if(stat instanceof AST_Definitions&&prev&&prev.TYPE==stat.TYPE){prev.definitions=prev.definitions.concat(stat.definitions);CHANGED=true}else if(stat instanceof AST_For&&prev instanceof AST_Definitions&&(!stat.init||stat.init.TYPE==prev.TYPE)){CHANGED=true;a.pop();if(stat.init){stat.init.definitions=prev.definitions.concat(stat.init.definitions)}else{stat.init=prev}a.push(stat);prev=stat}else{prev=stat;a.push(stat)}return a},[])}function negate_iifes(statements,compressor){statements.forEach(function(stat){if(stat instanceof AST_SimpleStatement){stat.body=function transform(thing){return thing.transform(new TreeTransformer(function(node){if(node instanceof AST_Call&&node.expression instanceof AST_Function){return make_node(AST_UnaryPrefix,node,{operator:"!",expression:node})}else if(node instanceof AST_Call){node.expression=transform(node.expression)}else if(node instanceof AST_Seq){node.car=transform(node.car)}else if(node instanceof AST_Conditional){var expr=transform(node.condition);if(expr!==node.condition){node.condition=expr;var tmp=node.consequent;node.consequent=node.alternative;node.alternative=tmp}}return node}))}(stat.body)}})}}function extract_declarations_from_unreachable_code(compressor,stat,target){compressor.warn("Dropping unreachable code [{file}:{line},{col}]",stat.start);stat.walk(new TreeWalker(function(node){if(node instanceof AST_Definitions){compressor.warn("Declarations in unreachable code! [{file}:{line},{col}]",node.start);node.remove_initializers();target.push(node);return true}if(node instanceof AST_Defun){target.push(node);return true}if(node instanceof AST_Scope){return true}}))}(function(def){var unary_bool=["!","delete"];var binary_bool=["in","instanceof","==","!=","===","!==","<","<=",">=",">"];def(AST_Node,function(){return false});def(AST_UnaryPrefix,function(){return member(this.operator,unary_bool)});def(AST_Binary,function(){return member(this.operator,binary_bool)||(this.operator=="&&"||this.operator=="||")&&this.left.is_boolean()&&this.right.is_boolean()});def(AST_Conditional,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()});def(AST_Assign,function(){return this.operator=="="&&this.right.is_boolean()});def(AST_Seq,function(){return this.cdr.is_boolean()});def(AST_True,function(){return true});def(AST_False,function(){return true})})(function(node,func){node.DEFMETHOD("is_boolean",func)});(function(def){def(AST_Node,function(){return false});def(AST_String,function(){return true});def(AST_UnaryPrefix,function(){return this.operator=="typeof"});def(AST_Binary,function(compressor){return this.operator=="+"&&(this.left.is_string(compressor)||this.right.is_string(compressor))});def(AST_Assign,function(compressor){return(this.operator=="="||this.operator=="+=")&&this.right.is_string(compressor)});def(AST_Seq,function(compressor){return this.cdr.is_string(compressor)});def(AST_Conditional,function(compressor){return this.consequent.is_string(compressor)&&this.alternative.is_string(compressor)});def(AST_Call,function(compressor){return compressor.option("unsafe")&&this.expression instanceof AST_SymbolRef&&this.expression.name=="String"&&this.expression.undeclared()})})(function(node,func){node.DEFMETHOD("is_string",func)});function best_of(ast1,ast2){return ast1.print_to_string().length>ast2.print_to_string().length?ast2:ast1}(function(def){AST_Node.DEFMETHOD("evaluate",function(compressor){if(!compressor.option("evaluate"))return[this];try{var val=this._eval(compressor);return[best_of(make_node_from_constant(compressor,val,this),this),val]}catch(ex){if(ex!==def)throw ex;return[this]}});def(AST_Statement,function(){throw new Error(string_template("Cannot evaluate a statement [{file}:{line},{col}]",this.start))});def(AST_Function,function(){throw def});function ev(node,compressor){if(!compressor)throw new Error("Compressor must be passed");return node._eval(compressor)}def(AST_Node,function(){throw def});def(AST_Constant,function(){return this.getValue()});def(AST_UnaryPrefix,function(compressor){var e=this.expression;switch(this.operator){case"!":return!ev(e,compressor);case"typeof":if(e instanceof AST_Function)return typeof function(){};e=ev(e,compressor);if(e instanceof RegExp)throw def;return typeof e;case"void":return void ev(e,compressor);case"~":return~ev(e,compressor);case"-":e=ev(e,compressor);if(e===0)throw def;return-e;case"+":return+ev(e,compressor)}throw def});def(AST_Binary,function(c){var left=this.left,right=this.right;switch(this.operator){case"&&":return ev(left,c)&&ev(right,c);case"||":return ev(left,c)||ev(right,c);case"|":return ev(left,c)|ev(right,c);case"&":return ev(left,c)&ev(right,c);case"^":return ev(left,c)^ev(right,c);case"+":return ev(left,c)+ev(right,c);case"*":return ev(left,c)*ev(right,c);case"/":return ev(left,c)/ev(right,c);case"%":return ev(left,c)%ev(right,c);case"-":return ev(left,c)-ev(right,c);case"<<":return ev(left,c)<>":return ev(left,c)>>ev(right,c);case">>>":return ev(left,c)>>>ev(right,c);case"==":return ev(left,c)==ev(right,c);case"===":return ev(left,c)===ev(right,c);case"!=":return ev(left,c)!=ev(right,c);case"!==":return ev(left,c)!==ev(right,c);case"<":return ev(left,c)":return ev(left,c)>ev(right,c);case">=":return ev(left,c)>=ev(right,c);case"in":return ev(left,c)in ev(right,c);case"instanceof":return ev(left,c)instanceof ev(right,c)}throw def});def(AST_Conditional,function(compressor){return ev(this.condition,compressor)?ev(this.consequent,compressor):ev(this.alternative,compressor)});def(AST_SymbolRef,function(compressor){var d=this.definition();if(d&&d.constant&&d.init)return ev(d.init,compressor);throw def});def(AST_Dot,function(compressor){if(compressor.option("unsafe")&&this.property=="length"){var str=ev(this.expression,compressor);if(typeof str=="string")return str.length}throw def})})(function(node,func){node.DEFMETHOD("_eval",func)});(function(def){function basic_negation(exp){return make_node(AST_UnaryPrefix,exp,{operator:"!",expression:exp})}def(AST_Node,function(){return basic_negation(this)});def(AST_Statement,function(){throw new Error("Cannot negate a statement")});def(AST_Function,function(){return basic_negation(this)});def(AST_UnaryPrefix,function(){if(this.operator=="!")return this.expression;return basic_negation(this)});def(AST_Seq,function(compressor){var self=this.clone();self.cdr=self.cdr.negate(compressor);return self});def(AST_Conditional,function(compressor){var self=this.clone();self.consequent=self.consequent.negate(compressor);self.alternative=self.alternative.negate(compressor);return best_of(basic_negation(this),self)});def(AST_Binary,function(compressor){var self=this.clone(),op=this.operator;if(compressor.option("unsafe_comps")){switch(op){case"<=":self.operator=">";return self;case"<":self.operator=">=";return self;case">=":self.operator="<";return self;case">":self.operator="<=";return self}}switch(op){case"==":self.operator="!=";return self;case"!=":self.operator="==";return self;case"===":self.operator="!==";return self;case"!==":self.operator="===";return self;case"&&":self.operator="||";self.left=self.left.negate(compressor);self.right=self.right.negate(compressor);return best_of(basic_negation(this),self);case"||":self.operator="&&";self.left=self.left.negate(compressor);self.right=self.right.negate(compressor);return best_of(basic_negation(this),self)}return basic_negation(this)})})(function(node,func){node.DEFMETHOD("negate",function(compressor){return func.call(this,compressor)})});(function(def){def(AST_Node,function(compressor){return true});def(AST_EmptyStatement,function(compressor){return false});def(AST_Constant,function(compressor){return false});def(AST_This,function(compressor){return false});def(AST_Call,function(compressor){var pure=compressor.option("pure_funcs");if(!pure)return true;return pure.indexOf(this.expression.print_to_string())<0});def(AST_Block,function(compressor){for(var i=this.body.length;--i>=0;){if(this.body[i].has_side_effects(compressor))return true}return false});def(AST_SimpleStatement,function(compressor){return this.body.has_side_effects(compressor)});def(AST_Defun,function(compressor){return true});def(AST_Function,function(compressor){return false});def(AST_Binary,function(compressor){return this.left.has_side_effects(compressor)||this.right.has_side_effects(compressor)});def(AST_Assign,function(compressor){return true});def(AST_Conditional,function(compressor){return this.condition.has_side_effects(compressor)||this.consequent.has_side_effects(compressor)||this.alternative.has_side_effects(compressor)});def(AST_Unary,function(compressor){return this.operator=="delete"||this.operator=="++"||this.operator=="--"||this.expression.has_side_effects(compressor)});def(AST_SymbolRef,function(compressor){return this.global()&&this.undeclared()});def(AST_Object,function(compressor){for(var i=this.properties.length;--i>=0;)if(this.properties[i].has_side_effects(compressor))return true;return false});def(AST_ObjectProperty,function(compressor){return this.value.has_side_effects(compressor)});def(AST_Array,function(compressor){for(var i=this.elements.length;--i>=0;)if(this.elements[i].has_side_effects(compressor))return true;return false});def(AST_Dot,function(compressor){if(!compressor.option("pure_getters"))return true;return this.expression.has_side_effects(compressor)});def(AST_Sub,function(compressor){if(!compressor.option("pure_getters"))return true;return this.expression.has_side_effects(compressor)||this.property.has_side_effects(compressor)});def(AST_PropAccess,function(compressor){return!compressor.option("pure_getters")});def(AST_Seq,function(compressor){return this.car.has_side_effects(compressor)||this.cdr.has_side_effects(compressor)})})(function(node,func){node.DEFMETHOD("has_side_effects",func)});function aborts(thing){return thing&&thing.aborts()}(function(def){def(AST_Statement,function(){return null});def(AST_Jump,function(){return this});function block_aborts(){var n=this.body.length;return n>0&&aborts(this.body[n-1])}def(AST_BlockStatement,block_aborts);def(AST_SwitchBranch,block_aborts);def(AST_If,function(){return this.alternative&&aborts(this.body)&&aborts(this.alternative)&&this})})(function(node,func){node.DEFMETHOD("aborts",func)});OPT(AST_Directive,function(self,compressor){if(self.scope.has_directive(self.value)!==self.scope){return make_node(AST_EmptyStatement,self)}return self});OPT(AST_Debugger,function(self,compressor){if(compressor.option("drop_debugger"))return make_node(AST_EmptyStatement,self);return self});OPT(AST_LabeledStatement,function(self,compressor){if(self.body instanceof AST_Break&&compressor.loopcontrol_target(self.body.label)===self.body){return make_node(AST_EmptyStatement,self)}return self.label.references.length==0?self.body:self});OPT(AST_Block,function(self,compressor){self.body=tighten_body(self.body,compressor);return self});OPT(AST_BlockStatement,function(self,compressor){self.body=tighten_body(self.body,compressor);switch(self.body.length){case 1:return self.body[0];case 0:return make_node(AST_EmptyStatement,self)}return self});AST_Scope.DEFMETHOD("drop_unused",function(compressor){var self=this;if(compressor.option("unused")&&!(self instanceof AST_Toplevel)&&!self.uses_eval){var in_use=[];var initializations=new Dictionary;var scope=this;var tw=new TreeWalker(function(node,descend){if(node!==self){if(node instanceof AST_Defun){initializations.add(node.name.name,node);return true}if(node instanceof AST_Definitions&&scope===self){node.definitions.forEach(function(def){if(def.value){initializations.add(def.name.name,def.value);if(def.value.has_side_effects(compressor)){def.value.walk(tw)}}});return true}if(node instanceof AST_SymbolRef){push_uniq(in_use,node.definition());return true}if(node instanceof AST_Scope){var save_scope=scope;scope=node;descend();scope=save_scope;return true}}});self.walk(tw);for(var i=0;i=0;){var sym=a[i];if(sym.unreferenced()){a.pop();compressor.warn("Dropping unused function argument {name} [{file}:{line},{col}]",{name:sym.name,file:sym.start.file,line:sym.start.line,col:sym.start.col})}else break}}}if(node instanceof AST_Defun&&node!==self){if(!member(node.name.definition(),in_use)){compressor.warn("Dropping unused function {name} [{file}:{line},{col}]",{name:node.name.name,file:node.name.start.file,line:node.name.start.line,col:node.name.start.col});return make_node(AST_EmptyStatement,node)}return node}if(node instanceof AST_Definitions&&!(tt.parent()instanceof AST_ForIn)){var def=node.definitions.filter(function(def){if(member(def.name.definition(),in_use))return true;var w={name:def.name.name,file:def.name.start.file,line:def.name.start.line,col:def.name.start.col};if(def.value&&def.value.has_side_effects(compressor)){def._unused_side_effects=true;compressor.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",w);return true}compressor.warn("Dropping unused variable {name} [{file}:{line},{col}]",w);return false});def=mergeSort(def,function(a,b){if(!a.value&&b.value)return-1;if(!b.value&&a.value)return 1;return 0});var side_effects=[];for(var i=0;i0){side_effects.push(x.value);x.value=AST_Seq.from_array(side_effects);side_effects=[]}++i}}if(side_effects.length>0){side_effects=make_node(AST_BlockStatement,node,{body:[make_node(AST_SimpleStatement,node,{body:AST_Seq.from_array(side_effects)})]})}else{side_effects=null}if(def.length==0&&!side_effects){return make_node(AST_EmptyStatement,node)}if(def.length==0){return side_effects}node.definitions=def;if(side_effects){side_effects.body.unshift(node);node=side_effects}return node}if(node instanceof AST_For){descend(node,this);if(node.init instanceof AST_BlockStatement){var body=node.init.body.slice(0,-1);node.init=node.init.body.slice(-1)[0].body;body.push(node);return in_list?MAP.splice(body):make_node(AST_BlockStatement,node,{body:body})}}if(node instanceof AST_Scope&&node!==self)return node});self.transform(tt)}});AST_Scope.DEFMETHOD("hoist_declarations",function(compressor){var hoist_funs=compressor.option("hoist_funs");var hoist_vars=compressor.option("hoist_vars");var self=this;if(hoist_funs||hoist_vars){var dirs=[];var hoisted=[];var vars=new Dictionary,vars_found=0,var_decl=0;self.walk(new TreeWalker(function(node){if(node instanceof AST_Scope&&node!==self)return true;if(node instanceof AST_Var){++var_decl;return true}}));hoist_vars=hoist_vars&&var_decl>1;var tt=new TreeTransformer(function before(node){if(node!==self){if(node instanceof AST_Directive){dirs.push(node);return make_node(AST_EmptyStatement,node)}if(node instanceof AST_Defun&&hoist_funs){hoisted.push(node);return make_node(AST_EmptyStatement,node)}if(node instanceof AST_Var&&hoist_vars){node.definitions.forEach(function(def){vars.set(def.name.name,def);++vars_found});var seq=node.to_assignments();var p=tt.parent();if(p instanceof AST_ForIn&&p.init===node){if(seq==null)return node.definitions[0].name;return seq}if(p instanceof AST_For&&p.init===node){return seq}if(!seq)return make_node(AST_EmptyStatement,node);return make_node(AST_SimpleStatement,node,{body:seq})}if(node instanceof AST_Scope)return node}});self=self.transform(tt);if(vars_found>0){var defs=[];vars.each(function(def,name){if(self instanceof AST_Lambda&&find_if(function(x){return x.name==def.name.name},self.argnames)){vars.del(name)}else{def=def.clone();def.value=null;defs.push(def);vars.set(name,def)}});if(defs.length>0){for(var i=0;i1){if(cond[1]){return make_node(AST_For,self,{body:self.body})}else if(self instanceof AST_While){if(compressor.option("dead_code")){var a=[];extract_declarations_from_unreachable_code(compressor,self.body,a);return make_node(AST_BlockStatement,self,{body:a})}}}return self; -});function if_break_in_loop(self,compressor){function drop_it(rest){rest=as_statement_array(rest);if(self.body instanceof AST_BlockStatement){self.body=self.body.clone();self.body.body=rest.concat(self.body.body.slice(1));self.body=self.body.transform(compressor)}else{self.body=make_node(AST_BlockStatement,self.body,{body:rest}).transform(compressor)}if_break_in_loop(self,compressor)}var first=self.body instanceof AST_BlockStatement?self.body.body[0]:self.body;if(first instanceof AST_If){if(first.body instanceof AST_Break&&compressor.loopcontrol_target(first.body.label)===self){if(self.condition){self.condition=make_node(AST_Binary,self.condition,{left:self.condition,operator:"&&",right:first.condition.negate(compressor)})}else{self.condition=first.condition.negate(compressor)}drop_it(first.alternative)}else if(first.alternative instanceof AST_Break&&compressor.loopcontrol_target(first.alternative.label)===self){if(self.condition){self.condition=make_node(AST_Binary,self.condition,{left:self.condition,operator:"&&",right:first.condition})}else{self.condition=first.condition}drop_it(first.body)}}}OPT(AST_While,function(self,compressor){if(!compressor.option("loops"))return self;self=AST_DWLoop.prototype.optimize.call(self,compressor);if(self instanceof AST_While){if_break_in_loop(self,compressor);self=make_node(AST_For,self,self).transform(compressor)}return self});OPT(AST_For,function(self,compressor){var cond=self.condition;if(cond){cond=cond.evaluate(compressor);self.condition=cond[0]}if(!compressor.option("loops"))return self;if(cond){if(cond.length>1&&!cond[1]){if(compressor.option("dead_code")){var a=[];if(self.init instanceof AST_Statement){a.push(self.init)}else if(self.init){a.push(make_node(AST_SimpleStatement,self.init,{body:self.init}))}extract_declarations_from_unreachable_code(compressor,self.body,a);return make_node(AST_BlockStatement,self,{body:a})}}}if_break_in_loop(self,compressor);return self});OPT(AST_If,function(self,compressor){if(!compressor.option("conditionals"))return self;var cond=self.condition.evaluate(compressor);self.condition=cond[0];if(cond.length>1){if(cond[1]){compressor.warn("Condition always true [{file}:{line},{col}]",self.condition.start);if(compressor.option("dead_code")){var a=[];if(self.alternative){extract_declarations_from_unreachable_code(compressor,self.alternative,a)}a.push(self.body);return make_node(AST_BlockStatement,self,{body:a}).transform(compressor)}}else{compressor.warn("Condition always false [{file}:{line},{col}]",self.condition.start);if(compressor.option("dead_code")){var a=[];extract_declarations_from_unreachable_code(compressor,self.body,a);if(self.alternative)a.push(self.alternative);return make_node(AST_BlockStatement,self,{body:a}).transform(compressor)}}}if(is_empty(self.alternative))self.alternative=null;var negated=self.condition.negate(compressor);var negated_is_best=best_of(self.condition,negated)===negated;if(self.alternative&&negated_is_best){negated_is_best=false;self.condition=negated;var tmp=self.body;self.body=self.alternative||make_node(AST_EmptyStatement);self.alternative=tmp}if(is_empty(self.body)&&is_empty(self.alternative)){return make_node(AST_SimpleStatement,self.condition,{body:self.condition}).transform(compressor)}if(self.body instanceof AST_SimpleStatement&&self.alternative instanceof AST_SimpleStatement){return make_node(AST_SimpleStatement,self,{body:make_node(AST_Conditional,self,{condition:self.condition,consequent:self.body.body,alternative:self.alternative.body})}).transform(compressor)}if(is_empty(self.alternative)&&self.body instanceof AST_SimpleStatement){if(negated_is_best)return make_node(AST_SimpleStatement,self,{body:make_node(AST_Binary,self,{operator:"||",left:negated,right:self.body.body})}).transform(compressor);return make_node(AST_SimpleStatement,self,{body:make_node(AST_Binary,self,{operator:"&&",left:self.condition,right:self.body.body})}).transform(compressor)}if(self.body instanceof AST_EmptyStatement&&self.alternative&&self.alternative instanceof AST_SimpleStatement){return make_node(AST_SimpleStatement,self,{body:make_node(AST_Binary,self,{operator:"||",left:self.condition,right:self.alternative.body})}).transform(compressor)}if(self.body instanceof AST_Exit&&self.alternative instanceof AST_Exit&&self.body.TYPE==self.alternative.TYPE){return make_node(self.body.CTOR,self,{value:make_node(AST_Conditional,self,{condition:self.condition,consequent:self.body.value||make_node(AST_Undefined,self.body).optimize(compressor),alternative:self.alternative.value||make_node(AST_Undefined,self.alternative).optimize(compressor)})}).transform(compressor)}if(self.body instanceof AST_If&&!self.body.alternative&&!self.alternative){self.condition=make_node(AST_Binary,self.condition,{operator:"&&",left:self.condition,right:self.body.condition}).transform(compressor);self.body=self.body.body}if(aborts(self.body)){if(self.alternative){var alt=self.alternative;self.alternative=null;return make_node(AST_BlockStatement,self,{body:[self,alt]}).transform(compressor)}}if(aborts(self.alternative)){var body=self.body;self.body=self.alternative;self.condition=negated_is_best?negated:self.condition.negate(compressor);self.alternative=null;return make_node(AST_BlockStatement,self,{body:[self,body]}).transform(compressor)}return self});OPT(AST_Switch,function(self,compressor){if(self.body.length==0&&compressor.option("conditionals")){return make_node(AST_SimpleStatement,self,{body:self.expression}).transform(compressor)}for(;;){var last_branch=self.body[self.body.length-1];if(last_branch){var stat=last_branch.body[last_branch.body.length-1];if(stat instanceof AST_Break&&loop_body(compressor.loopcontrol_target(stat.label))===self)last_branch.body.pop();if(last_branch instanceof AST_Default&&last_branch.body.length==0){self.body.pop();continue}}break}var exp=self.expression.evaluate(compressor);out:if(exp.length==2)try{self.expression=exp[0];if(!compressor.option("dead_code"))break out;var value=exp[1];var in_if=false;var in_block=false;var started=false;var stopped=false;var ruined=false;var tt=new TreeTransformer(function(node,descend,in_list){if(node instanceof AST_Lambda||node instanceof AST_SimpleStatement){return node}else if(node instanceof AST_Switch&&node===self){node=node.clone();descend(node,this);return ruined?node:make_node(AST_BlockStatement,node,{body:node.body.reduce(function(a,branch){return a.concat(branch.body)},[])}).transform(compressor)}else if(node instanceof AST_If||node instanceof AST_Try){var save=in_if;in_if=!in_block;descend(node,this);in_if=save;return node}else if(node instanceof AST_StatementWithBody||node instanceof AST_Switch){var save=in_block;in_block=true;descend(node,this);in_block=save;return node}else if(node instanceof AST_Break&&this.loopcontrol_target(node.label)===self){if(in_if){ruined=true;return node}if(in_block)return node;stopped=true;return in_list?MAP.skip:make_node(AST_EmptyStatement,node)}else if(node instanceof AST_SwitchBranch&&this.parent()===self){if(stopped)return MAP.skip;if(node instanceof AST_Case){var exp=node.expression.evaluate(compressor);if(exp.length<2){throw self}if(exp[1]===value||started){started=true;if(aborts(node))stopped=true;descend(node,this);return node}return MAP.skip}descend(node,this);return node}});tt.stack=compressor.stack.slice();self=self.transform(tt)}catch(ex){if(ex!==self)throw ex}return self});OPT(AST_Case,function(self,compressor){self.body=tighten_body(self.body,compressor);return self});OPT(AST_Try,function(self,compressor){self.body=tighten_body(self.body,compressor);return self});AST_Definitions.DEFMETHOD("remove_initializers",function(){this.definitions.forEach(function(def){def.value=null})});AST_Definitions.DEFMETHOD("to_assignments",function(){var assignments=this.definitions.reduce(function(a,def){if(def.value){var name=make_node(AST_SymbolRef,def.name,def.name);a.push(make_node(AST_Assign,def,{operator:"=",left:name,right:def.value}))}return a},[]);if(assignments.length==0)return null;return AST_Seq.from_array(assignments)});OPT(AST_Definitions,function(self,compressor){if(self.definitions.length==0)return make_node(AST_EmptyStatement,self);return self});OPT(AST_Function,function(self,compressor){self=AST_Lambda.prototype.optimize.call(self,compressor);if(compressor.option("unused")&&!compressor.option("keep_fnames")){if(self.name&&self.name.unreferenced()){self.name=null}}return self});OPT(AST_Call,function(self,compressor){if(compressor.option("unsafe")){var exp=self.expression;if(exp instanceof AST_SymbolRef&&exp.undeclared()){switch(exp.name){case"Array":if(self.args.length!=1){return make_node(AST_Array,self,{elements:self.args}).transform(compressor)}break;case"Object":if(self.args.length==0){return make_node(AST_Object,self,{properties:[]})}break;case"String":if(self.args.length==0)return make_node(AST_String,self,{value:""});if(self.args.length<=1)return make_node(AST_Binary,self,{left:self.args[0],operator:"+",right:make_node(AST_String,self,{value:""})}).transform(compressor);break;case"Number":if(self.args.length==0)return make_node(AST_Number,self,{value:0});if(self.args.length==1)return make_node(AST_UnaryPrefix,self,{expression:self.args[0],operator:"+"}).transform(compressor);case"Boolean":if(self.args.length==0)return make_node(AST_False,self);if(self.args.length==1)return make_node(AST_UnaryPrefix,self,{expression:make_node(AST_UnaryPrefix,null,{expression:self.args[0],operator:"!"}),operator:"!"}).transform(compressor);break;case"Function":if(self.args.length==0)return make_node(AST_Function,self,{argnames:[],body:[]});if(all(self.args,function(x){return x instanceof AST_String})){try{var code="(function("+self.args.slice(0,-1).map(function(arg){return arg.value}).join(",")+"){"+self.args[self.args.length-1].value+"})()";var ast=parse(code);ast.figure_out_scope({screw_ie8:compressor.option("screw_ie8")});var comp=new Compressor(compressor.options);ast=ast.transform(comp);ast.figure_out_scope({screw_ie8:compressor.option("screw_ie8")});ast.mangle_names();var fun;try{ast.walk(new TreeWalker(function(node){if(node instanceof AST_Lambda){fun=node;throw ast}}))}catch(ex){if(ex!==ast)throw ex}if(!fun)return self;var args=fun.argnames.map(function(arg,i){return make_node(AST_String,self.args[i],{value:arg.print_to_string()})});var code=OutputStream();AST_BlockStatement.prototype._codegen.call(fun,fun,code);code=code.toString().replace(/^\{|\}$/g,"");args.push(make_node(AST_String,self.args[self.args.length-1],{value:code}));self.args=args;return self}catch(ex){if(ex instanceof JS_Parse_Error){compressor.warn("Error parsing code passed to new Function [{file}:{line},{col}]",self.args[self.args.length-1].start);compressor.warn(ex.toString())}else{console.log(ex);throw ex}}}break}}else if(exp instanceof AST_Dot&&exp.property=="toString"&&self.args.length==0){return make_node(AST_Binary,self,{left:make_node(AST_String,self,{value:""}),operator:"+",right:exp.expression}).transform(compressor)}else if(exp instanceof AST_Dot&&exp.expression instanceof AST_Array&&exp.property=="join")EXIT:{var separator=self.args.length==0?",":self.args[0].evaluate(compressor)[1];if(separator==null)break EXIT;var elements=exp.expression.elements.reduce(function(a,el){el=el.evaluate(compressor);if(a.length==0||el.length==1){a.push(el)}else{var last=a[a.length-1];if(last.length==2){var val=""+last[1]+separator+el[1];a[a.length-1]=[make_node_from_constant(compressor,val,last[0]),val]}else{a.push(el)}}return a},[]);if(elements.length==0)return make_node(AST_String,self,{value:""});if(elements.length==1)return elements[0][0];if(separator==""){var first;if(elements[0][0]instanceof AST_String||elements[1][0]instanceof AST_String){first=elements.shift()[0]}else{first=make_node(AST_String,self,{value:""})}return elements.reduce(function(prev,el){return make_node(AST_Binary,el[0],{operator:"+",left:prev,right:el[0]})},first).transform(compressor)}var node=self.clone();node.expression=node.expression.clone();node.expression.expression=node.expression.expression.clone();node.expression.expression.elements=elements.map(function(el){return el[0]});return best_of(self,node)}}if(compressor.option("side_effects")){if(self.expression instanceof AST_Function&&self.args.length==0&&!AST_Block.prototype.has_side_effects.call(self.expression,compressor)){return make_node(AST_Undefined,self).transform(compressor)}}if(compressor.option("drop_console")){if(self.expression instanceof AST_PropAccess){var name=self.expression.expression;while(name.expression){name=name.expression}if(name instanceof AST_SymbolRef&&name.name=="console"&&name.undeclared()){return make_node(AST_Undefined,self).transform(compressor)}}}return self.evaluate(compressor)[0]});OPT(AST_New,function(self,compressor){if(compressor.option("unsafe")){var exp=self.expression;if(exp instanceof AST_SymbolRef&&exp.undeclared()){switch(exp.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return make_node(AST_Call,self,self).transform(compressor)}}}return self});OPT(AST_Seq,function(self,compressor){if(!compressor.option("side_effects"))return self;if(!self.car.has_side_effects(compressor)){var p;if(!(self.cdr instanceof AST_SymbolRef&&self.cdr.name=="eval"&&self.cdr.undeclared()&&(p=compressor.parent())instanceof AST_Call&&p.expression===self)){return self.cdr}}if(compressor.option("cascade")){if(self.car instanceof AST_Assign&&!self.car.left.has_side_effects(compressor)){if(self.car.left.equivalent_to(self.cdr)){return self.car}if(self.cdr instanceof AST_Call&&self.cdr.expression.equivalent_to(self.car.left)){self.cdr.expression=self.car;return self.cdr}}if(!self.car.has_side_effects(compressor)&&!self.cdr.has_side_effects(compressor)&&self.car.equivalent_to(self.cdr)){return self.car}}if(self.cdr instanceof AST_UnaryPrefix&&self.cdr.operator=="void"&&!self.cdr.expression.has_side_effects(compressor)){self.cdr.expression=self.car;return self.cdr}if(self.cdr instanceof AST_Undefined){return make_node(AST_UnaryPrefix,self,{operator:"void",expression:self.car})}return self});AST_Unary.DEFMETHOD("lift_sequences",function(compressor){if(compressor.option("sequences")){if(this.expression instanceof AST_Seq){var seq=this.expression;var x=seq.to_array();this.expression=x.pop();x.push(this);seq=AST_Seq.from_array(x).transform(compressor);return seq}}return this});OPT(AST_UnaryPostfix,function(self,compressor){return self.lift_sequences(compressor)});OPT(AST_UnaryPrefix,function(self,compressor){self=self.lift_sequences(compressor);var e=self.expression;if(compressor.option("booleans")&&compressor.in_boolean_context()){switch(self.operator){case"!":if(e instanceof AST_UnaryPrefix&&e.operator=="!"){return e.expression}break;case"typeof":compressor.warn("Boolean expression always true [{file}:{line},{col}]",self.start);return make_node(AST_True,self)}if(e instanceof AST_Binary&&self.operator=="!"){self=best_of(self,e.negate(compressor))}}return self.evaluate(compressor)[0]});function has_side_effects_or_prop_access(node,compressor){var save_pure_getters=compressor.option("pure_getters");compressor.options.pure_getters=false;var ret=node.has_side_effects(compressor);compressor.options.pure_getters=save_pure_getters;return ret}AST_Binary.DEFMETHOD("lift_sequences",function(compressor){if(compressor.option("sequences")){if(this.left instanceof AST_Seq){var seq=this.left;var x=seq.to_array();this.left=x.pop();x.push(this);seq=AST_Seq.from_array(x).transform(compressor);return seq}if(this.right instanceof AST_Seq&&this instanceof AST_Assign&&!has_side_effects_or_prop_access(this.left,compressor)){var seq=this.right;var x=seq.to_array();this.right=x.pop();x.push(this);seq=AST_Seq.from_array(x).transform(compressor);return seq}}return this});var commutativeOperators=makePredicate("== === != !== * & | ^");OPT(AST_Binary,function(self,compressor){var reverse=compressor.has_directive("use asm")?noop:function(op,force){if(force||!(self.left.has_side_effects(compressor)||self.right.has_side_effects(compressor))){if(op)self.operator=op;var tmp=self.left;self.left=self.right;self.right=tmp}};if(commutativeOperators(self.operator)){if(self.right instanceof AST_Constant&&!(self.left instanceof AST_Constant)){if(!(self.left instanceof AST_Binary&&PRECEDENCE[self.left.operator]>=PRECEDENCE[self.operator])){reverse(null,true)}}if(/^[!=]==?$/.test(self.operator)){if(self.left instanceof AST_SymbolRef&&self.right instanceof AST_Conditional){if(self.right.consequent instanceof AST_SymbolRef&&self.right.consequent.definition()===self.left.definition()){if(/^==/.test(self.operator))return self.right.condition;if(/^!=/.test(self.operator))return self.right.condition.negate(compressor)}if(self.right.alternative instanceof AST_SymbolRef&&self.right.alternative.definition()===self.left.definition()){if(/^==/.test(self.operator))return self.right.condition.negate(compressor);if(/^!=/.test(self.operator))return self.right.condition}}if(self.right instanceof AST_SymbolRef&&self.left instanceof AST_Conditional){if(self.left.consequent instanceof AST_SymbolRef&&self.left.consequent.definition()===self.right.definition()){if(/^==/.test(self.operator))return self.left.condition;if(/^!=/.test(self.operator))return self.left.condition.negate(compressor)}if(self.left.alternative instanceof AST_SymbolRef&&self.left.alternative.definition()===self.right.definition()){if(/^==/.test(self.operator))return self.left.condition.negate(compressor);if(/^!=/.test(self.operator))return self.left.condition}}}}self=self.lift_sequences(compressor);if(compressor.option("comparisons"))switch(self.operator){case"===":case"!==":if(self.left.is_string(compressor)&&self.right.is_string(compressor)||self.left.is_boolean()&&self.right.is_boolean()){self.operator=self.operator.substr(0,2)}case"==":case"!=":if(self.left instanceof AST_String&&self.left.value=="undefined"&&self.right instanceof AST_UnaryPrefix&&self.right.operator=="typeof"&&compressor.option("unsafe")){if(!(self.right.expression instanceof AST_SymbolRef)||!self.right.expression.undeclared()){self.right=self.right.expression;self.left=make_node(AST_Undefined,self.left).optimize(compressor);if(self.operator.length==2)self.operator+="="}}break}if(compressor.option("booleans")&&compressor.in_boolean_context())switch(self.operator){case"&&":var ll=self.left.evaluate(compressor);var rr=self.right.evaluate(compressor);if(ll.length>1&&!ll[1]||rr.length>1&&!rr[1]){compressor.warn("Boolean && always false [{file}:{line},{col}]",self.start);if(self.left.has_side_effects(compressor)){return make_node(AST_Seq,self,{car:self.left,cdr:make_node(AST_False)}).optimize(compressor)}return make_node(AST_False,self)}if(ll.length>1&&ll[1]){return rr[0]}if(rr.length>1&&rr[1]){return ll[0]}break;case"||":var ll=self.left.evaluate(compressor);var rr=self.right.evaluate(compressor);if(ll.length>1&&ll[1]||rr.length>1&&rr[1]){compressor.warn("Boolean || always true [{file}:{line},{col}]",self.start);if(self.left.has_side_effects(compressor)){return make_node(AST_Seq,self,{car:self.left,cdr:make_node(AST_True)}).optimize(compressor)}return make_node(AST_True,self)}if(ll.length>1&&!ll[1]){return rr[0]}if(rr.length>1&&!rr[1]){return ll[0]}break;case"+":var ll=self.left.evaluate(compressor);var rr=self.right.evaluate(compressor);if(ll.length>1&&ll[0]instanceof AST_String&&ll[1]||rr.length>1&&rr[0]instanceof AST_String&&rr[1]){compressor.warn("+ in boolean context always true [{file}:{line},{col}]",self.start);return make_node(AST_True,self)}break}if(compressor.option("comparisons")){if(!(compressor.parent()instanceof AST_Binary)||compressor.parent()instanceof AST_Assign){var negated=make_node(AST_UnaryPrefix,self,{operator:"!",expression:self.negate(compressor)});self=best_of(self,negated)}switch(self.operator){case"<":reverse(">");break;case"<=":reverse(">=");break}}if(self.operator=="+"&&self.right instanceof AST_String&&self.right.getValue()===""&&self.left instanceof AST_Binary&&self.left.operator=="+"&&self.left.is_string(compressor)){return self.left}if(compressor.option("evaluate")){if(self.operator=="+"){if(self.left instanceof AST_Constant&&self.right instanceof AST_Binary&&self.right.operator=="+"&&self.right.left instanceof AST_Constant&&self.right.is_string(compressor)){self=make_node(AST_Binary,self,{operator:"+",left:make_node(AST_String,null,{value:""+self.left.getValue()+self.right.left.getValue(),start:self.left.start,end:self.right.left.end}),right:self.right.right})}if(self.right instanceof AST_Constant&&self.left instanceof AST_Binary&&self.left.operator=="+"&&self.left.right instanceof AST_Constant&&self.left.is_string(compressor)){self=make_node(AST_Binary,self,{operator:"+",left:self.left.left,right:make_node(AST_String,null,{value:""+self.left.right.getValue()+self.right.getValue(),start:self.left.right.start,end:self.right.end})})}if(self.left instanceof AST_Binary&&self.left.operator=="+"&&self.left.is_string(compressor)&&self.left.right instanceof AST_Constant&&self.right instanceof AST_Binary&&self.right.operator=="+"&&self.right.left instanceof AST_Constant&&self.right.is_string(compressor)){self=make_node(AST_Binary,self,{operator:"+",left:make_node(AST_Binary,self.left,{operator:"+",left:self.left.left,right:make_node(AST_String,null,{value:""+self.left.right.getValue()+self.right.left.getValue(),start:self.left.right.start,end:self.right.left.end})}),right:self.right.right})}}}if(self.right instanceof AST_Binary&&self.right.operator==self.operator&&(self.operator=="*"||self.operator=="&&"||self.operator=="||")){self.left=make_node(AST_Binary,self.left,{operator:self.operator,left:self.left,right:self.right.left});self.right=self.right.right;return self.transform(compressor)}return self.evaluate(compressor)[0]});OPT(AST_SymbolRef,function(self,compressor){if(self.undeclared()){var defines=compressor.option("global_defs");if(defines&&defines.hasOwnProperty(self.name)){return make_node_from_constant(compressor,defines[self.name],self)}switch(self.name){case"undefined":return make_node(AST_Undefined,self);case"NaN":return make_node(AST_NaN,self).transform(compressor);case"Infinity":return make_node(AST_Infinity,self).transform(compressor)}}return self});OPT(AST_Infinity,function(self,compressor){return make_node(AST_Binary,self,{operator:"/",left:make_node(AST_Number,self,{value:1}),right:make_node(AST_Number,self,{value:0})})});OPT(AST_NaN,function(self,compressor){return make_node(AST_Binary,self,{operator:"/",left:make_node(AST_Number,self,{value:0}),right:make_node(AST_Number,self,{value:0})})});OPT(AST_Undefined,function(self,compressor){if(compressor.option("unsafe")){var scope=compressor.find_parent(AST_Scope);var undef=scope.find_variable("undefined");if(undef){var ref=make_node(AST_SymbolRef,self,{name:"undefined",scope:scope,thedef:undef});ref.reference();return ref}}return self});var ASSIGN_OPS=["+","-","/","*","%",">>","<<",">>>","|","^","&"];OPT(AST_Assign,function(self,compressor){self=self.lift_sequences(compressor);if(self.operator=="="&&self.left instanceof AST_SymbolRef&&self.right instanceof AST_Binary&&self.right.left instanceof AST_SymbolRef&&self.right.left.name==self.left.name&&member(self.right.operator,ASSIGN_OPS)){self.operator=self.right.operator+"=";self.right=self.right.right}return self});OPT(AST_Conditional,function(self,compressor){if(!compressor.option("conditionals"))return self;if(self.condition instanceof AST_Seq){var car=self.condition.car;self.condition=self.condition.cdr;return AST_Seq.cons(car,self)}var cond=self.condition.evaluate(compressor);if(cond.length>1){if(cond[1]){compressor.warn("Condition always true [{file}:{line},{col}]",self.start);return self.consequent}else{compressor.warn("Condition always false [{file}:{line},{col}]",self.start);return self.alternative}}var negated=cond[0].negate(compressor);if(best_of(cond[0],negated)===negated){self=make_node(AST_Conditional,self,{condition:negated,consequent:self.alternative,alternative:self.consequent})}var consequent=self.consequent;var alternative=self.alternative;if(consequent instanceof AST_Assign&&alternative instanceof AST_Assign&&consequent.operator==alternative.operator&&consequent.left.equivalent_to(alternative.left)){return make_node(AST_Assign,self,{operator:consequent.operator,left:consequent.left,right:make_node(AST_Conditional,self,{condition:self.condition,consequent:consequent.right,alternative:alternative.right})})}if(consequent instanceof AST_Call&&alternative.TYPE===consequent.TYPE&&consequent.args.length==alternative.args.length&&consequent.expression.equivalent_to(alternative.expression)){if(consequent.args.length==0){return make_node(AST_Seq,self,{car:self.condition,cdr:consequent})}if(consequent.args.length==1){consequent.args[0]=make_node(AST_Conditional,self,{condition:self.condition,consequent:consequent.args[0],alternative:alternative.args[0]});return consequent}}if(consequent instanceof AST_Conditional&&consequent.alternative.equivalent_to(alternative)){return make_node(AST_Conditional,self,{condition:make_node(AST_Binary,self,{left:self.condition,operator:"&&",right:consequent.condition}),consequent:consequent.consequent,alternative:alternative})}if(consequent instanceof AST_Constant&&alternative instanceof AST_Constant&&consequent.equivalent_to(alternative)){if(self.condition.has_side_effects(compressor)){return AST_Seq.from_array([self.condition,make_node_from_constant(compressor,consequent.value,self)])}else{return make_node_from_constant(compressor,consequent.value,self)}}if(consequent instanceof AST_True&&alternative instanceof AST_False){self.condition=self.condition.negate(compressor);return make_node(AST_UnaryPrefix,self.condition,{operator:"!",expression:self.condition})}if(consequent instanceof AST_False&&alternative instanceof AST_True){return self.condition.negate(compressor)}return self});OPT(AST_Boolean,function(self,compressor){if(compressor.option("booleans")){var p=compressor.parent();if(p instanceof AST_Binary&&(p.operator=="=="||p.operator=="!=")){compressor.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:p.operator,value:self.value,file:p.start.file,line:p.start.line,col:p.start.col});return make_node(AST_Number,self,{value:+self.value})}return make_node(AST_UnaryPrefix,self,{operator:"!",expression:make_node(AST_Number,self,{value:1-self.value})})}return self});OPT(AST_Sub,function(self,compressor){var prop=self.property;if(prop instanceof AST_String&&compressor.option("properties")){prop=prop.getValue();if(RESERVED_WORDS(prop)?compressor.option("screw_ie8"):is_identifier_string(prop)){return make_node(AST_Dot,self,{expression:self.expression,property:prop}).optimize(compressor)}var v=parseFloat(prop);if(!isNaN(v)&&v.toString()==prop){self.property=make_node(AST_Number,self.property,{value:v})}}return self});OPT(AST_Dot,function(self,compressor){var prop=self.property;if(RESERVED_WORDS(prop)&&!compressor.option("screw_ie8")){return make_node(AST_Sub,self,{expression:self.expression,property:make_node(AST_String,self,{value:prop})}).optimize(compressor)}return self.evaluate(compressor)[0]});function literals_in_boolean_context(self,compressor){if(compressor.option("booleans")&&compressor.in_boolean_context()&&!self.has_side_effects(compressor)){return make_node(AST_True,self)}return self}OPT(AST_Array,literals_in_boolean_context);OPT(AST_Object,literals_in_boolean_context);OPT(AST_RegExp,literals_in_boolean_context)})();"use strict";function SourceMap(options){options=defaults(options,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var orig_map=options.orig&&new MOZ_SourceMap.SourceMapConsumer(options.orig);var generator;if(orig_map){generator=MOZ_SourceMap.SourceMapGenerator.fromSourceMap(orig_map)}else{generator=new MOZ_SourceMap.SourceMapGenerator({file:options.file,sourceRoot:options.root})}function add(source,gen_line,gen_col,orig_line,orig_col,name){if(orig_map){var info=orig_map.originalPositionFor({line:orig_line,column:orig_col});if(info.source===null){return}source=info.source;orig_line=info.line;orig_col=info.column;name=info.name||name}generator.addMapping({generated:{line:gen_line+options.dest_line_diff,column:gen_col},original:{line:orig_line+options.orig_line_diff,column:orig_col},source:source,name:name})}return{add:add,get:function(){return generator},toString:function(){return JSON.stringify(generator.toJSON())}}}"use strict";(function(){var MOZ_TO_ME={ExpressionStatement:function(M){var expr=M.expression;if(expr.type==="Literal"&&typeof expr.value==="string"){return new AST_Directive({start:my_start_token(M),end:my_end_token(M),value:expr.value})}return new AST_SimpleStatement({start:my_start_token(M),end:my_end_token(M),body:from_moz(expr)})},TryStatement:function(M){var handlers=M.handlers||[M.handler];if(handlers.length>1||M.guardedHandlers&&M.guardedHandlers.length){throw new Error("Multiple catch clauses are not supported.")}return new AST_Try({start:my_start_token(M),end:my_end_token(M),body:from_moz(M.block).body,bcatch:from_moz(handlers[0]),bfinally:M.finalizer?new AST_Finally(from_moz(M.finalizer)):null})},Property:function(M){var key=M.key;var name=key.type=="Identifier"?key.name:key.value;var args={start:my_start_token(key),end:my_end_token(M.value),key:name,value:from_moz(M.value)};switch(M.kind){case"init":return new AST_ObjectKeyVal(args);case"set":args.value.name=from_moz(key);return new AST_ObjectSetter(args);case"get":args.value.name=from_moz(key);return new AST_ObjectGetter(args)}},ObjectExpression:function(M){return new AST_Object({start:my_start_token(M),end:my_end_token(M),properties:M.properties.map(function(prop){prop.type="Property";return from_moz(prop)})})},SequenceExpression:function(M){return AST_Seq.from_array(M.expressions.map(from_moz))},MemberExpression:function(M){return new(M.computed?AST_Sub:AST_Dot)({start:my_start_token(M),end:my_end_token(M),property:M.computed?from_moz(M.property):M.property.name,expression:from_moz(M.object)})},SwitchCase:function(M){return new(M.test?AST_Case:AST_Default)({start:my_start_token(M),end:my_end_token(M),expression:from_moz(M.test),body:M.consequent.map(from_moz)})},VariableDeclaration:function(M){return new(M.kind==="const"?AST_Const:AST_Var)({start:my_start_token(M),end:my_end_token(M),definitions:M.declarations.map(from_moz)})},Literal:function(M){var val=M.value,args={start:my_start_token(M),end:my_end_token(M)};if(val===null)return new AST_Null(args);switch(typeof val){case"string":args.value=val;return new AST_String(args);case"number":args.value=val;return new AST_Number(args);case"boolean":return new(val?AST_True:AST_False)(args);default:args.value=val;return new AST_RegExp(args)}},Identifier:function(M){var p=FROM_MOZ_STACK[FROM_MOZ_STACK.length-2];return new(p.type=="LabeledStatement"?AST_Label:p.type=="VariableDeclarator"&&p.id===M?p.kind=="const"?AST_SymbolConst:AST_SymbolVar:p.type=="FunctionExpression"?p.id===M?AST_SymbolLambda:AST_SymbolFunarg:p.type=="FunctionDeclaration"?p.id===M?AST_SymbolDefun:AST_SymbolFunarg:p.type=="CatchClause"?AST_SymbolCatch:p.type=="BreakStatement"||p.type=="ContinueStatement"?AST_LabelRef:AST_SymbolRef)({start:my_start_token(M),end:my_end_token(M),name:M.name})}};MOZ_TO_ME.UpdateExpression=MOZ_TO_ME.UnaryExpression=function To_Moz_Unary(M){var prefix="prefix"in M?M.prefix:M.type=="UnaryExpression"?true:false;return new(prefix?AST_UnaryPrefix:AST_UnaryPostfix)({start:my_start_token(M),end:my_end_token(M),operator:M.operator,expression:from_moz(M.argument)})};map("Program",AST_Toplevel,"body@body");map("EmptyStatement",AST_EmptyStatement);map("BlockStatement",AST_BlockStatement,"body@body");map("IfStatement",AST_If,"test>condition, consequent>body, alternate>alternative");map("LabeledStatement",AST_LabeledStatement,"label>label, body>body");map("BreakStatement",AST_Break,"label>label");map("ContinueStatement",AST_Continue,"label>label");map("WithStatement",AST_With,"object>expression, body>body");map("SwitchStatement",AST_Switch,"discriminant>expression, cases@body"); +});function if_break_in_loop(self,compressor){function drop_it(rest){rest=as_statement_array(rest);if(self.body instanceof AST_BlockStatement){self.body=self.body.clone();self.body.body=rest.concat(self.body.body.slice(1));self.body=self.body.transform(compressor)}else{self.body=make_node(AST_BlockStatement,self.body,{body:rest}).transform(compressor)}if_break_in_loop(self,compressor)}var first=self.body instanceof AST_BlockStatement?self.body.body[0]:self.body;if(first instanceof AST_If){if(first.body instanceof AST_Break&&compressor.loopcontrol_target(first.body.label)===self){if(self.condition){self.condition=make_node(AST_Binary,self.condition,{left:self.condition,operator:"&&",right:first.condition.negate(compressor)})}else{self.condition=first.condition.negate(compressor)}drop_it(first.alternative)}else if(first.alternative instanceof AST_Break&&compressor.loopcontrol_target(first.alternative.label)===self){if(self.condition){self.condition=make_node(AST_Binary,self.condition,{left:self.condition,operator:"&&",right:first.condition})}else{self.condition=first.condition}drop_it(first.body)}}}OPT(AST_While,function(self,compressor){if(!compressor.option("loops"))return self;self=AST_DWLoop.prototype.optimize.call(self,compressor);if(self instanceof AST_While){if_break_in_loop(self,compressor);self=make_node(AST_For,self,self).transform(compressor)}return self});OPT(AST_For,function(self,compressor){var cond=self.condition;if(cond){cond=cond.evaluate(compressor);self.condition=cond[0]}if(!compressor.option("loops"))return self;if(cond){if(cond.length>1&&!cond[1]){if(compressor.option("dead_code")){var a=[];if(self.init instanceof AST_Statement){a.push(self.init)}else if(self.init){a.push(make_node(AST_SimpleStatement,self.init,{body:self.init}))}extract_declarations_from_unreachable_code(compressor,self.body,a);return make_node(AST_BlockStatement,self,{body:a})}}}if_break_in_loop(self,compressor);return self});OPT(AST_If,function(self,compressor){if(!compressor.option("conditionals"))return self;var cond=self.condition.evaluate(compressor);self.condition=cond[0];if(cond.length>1){if(cond[1]){compressor.warn("Condition always true [{file}:{line},{col}]",self.condition.start);if(compressor.option("dead_code")){var a=[];if(self.alternative){extract_declarations_from_unreachable_code(compressor,self.alternative,a)}a.push(self.body);return make_node(AST_BlockStatement,self,{body:a}).transform(compressor)}}else{compressor.warn("Condition always false [{file}:{line},{col}]",self.condition.start);if(compressor.option("dead_code")){var a=[];extract_declarations_from_unreachable_code(compressor,self.body,a);if(self.alternative)a.push(self.alternative);return make_node(AST_BlockStatement,self,{body:a}).transform(compressor)}}}if(is_empty(self.alternative))self.alternative=null;var negated=self.condition.negate(compressor);var negated_is_best=best_of(self.condition,negated)===negated;if(self.alternative&&negated_is_best){negated_is_best=false;self.condition=negated;var tmp=self.body;self.body=self.alternative||make_node(AST_EmptyStatement);self.alternative=tmp}if(is_empty(self.body)&&is_empty(self.alternative)){return make_node(AST_SimpleStatement,self.condition,{body:self.condition}).transform(compressor)}if(self.body instanceof AST_SimpleStatement&&self.alternative instanceof AST_SimpleStatement){return make_node(AST_SimpleStatement,self,{body:make_node(AST_Conditional,self,{condition:self.condition,consequent:self.body.body,alternative:self.alternative.body})}).transform(compressor)}if(is_empty(self.alternative)&&self.body instanceof AST_SimpleStatement){if(negated_is_best)return make_node(AST_SimpleStatement,self,{body:make_node(AST_Binary,self,{operator:"||",left:negated,right:self.body.body})}).transform(compressor);return make_node(AST_SimpleStatement,self,{body:make_node(AST_Binary,self,{operator:"&&",left:self.condition,right:self.body.body})}).transform(compressor)}if(self.body instanceof AST_EmptyStatement&&self.alternative&&self.alternative instanceof AST_SimpleStatement){return make_node(AST_SimpleStatement,self,{body:make_node(AST_Binary,self,{operator:"||",left:self.condition,right:self.alternative.body})}).transform(compressor)}if(self.body instanceof AST_Exit&&self.alternative instanceof AST_Exit&&self.body.TYPE==self.alternative.TYPE){return make_node(self.body.CTOR,self,{value:make_node(AST_Conditional,self,{condition:self.condition,consequent:self.body.value||make_node(AST_Undefined,self.body).optimize(compressor),alternative:self.alternative.value||make_node(AST_Undefined,self.alternative).optimize(compressor)})}).transform(compressor)}if(self.body instanceof AST_If&&!self.body.alternative&&!self.alternative){self.condition=make_node(AST_Binary,self.condition,{operator:"&&",left:self.condition,right:self.body.condition}).transform(compressor);self.body=self.body.body}if(aborts(self.body)){if(self.alternative){var alt=self.alternative;self.alternative=null;return make_node(AST_BlockStatement,self,{body:[self,alt]}).transform(compressor)}}if(aborts(self.alternative)){var body=self.body;self.body=self.alternative;self.condition=negated_is_best?negated:self.condition.negate(compressor);self.alternative=null;return make_node(AST_BlockStatement,self,{body:[self,body]}).transform(compressor)}return self});OPT(AST_Switch,function(self,compressor){if(self.body.length==0&&compressor.option("conditionals")){return make_node(AST_SimpleStatement,self,{body:self.expression}).transform(compressor)}for(;;){var last_branch=self.body[self.body.length-1];if(last_branch){var stat=last_branch.body[last_branch.body.length-1];if(stat instanceof AST_Break&&loop_body(compressor.loopcontrol_target(stat.label))===self)last_branch.body.pop();if(last_branch instanceof AST_Default&&last_branch.body.length==0){self.body.pop();continue}}break}var exp=self.expression.evaluate(compressor);out:if(exp.length==2)try{self.expression=exp[0];if(!compressor.option("dead_code"))break out;var value=exp[1];var in_if=false;var in_block=false;var started=false;var stopped=false;var ruined=false;var tt=new TreeTransformer(function(node,descend,in_list){if(node instanceof AST_Lambda||node instanceof AST_SimpleStatement){return node}else if(node instanceof AST_Switch&&node===self){node=node.clone();descend(node,this);return ruined?node:make_node(AST_BlockStatement,node,{body:node.body.reduce(function(a,branch){return a.concat(branch.body)},[])}).transform(compressor)}else if(node instanceof AST_If||node instanceof AST_Try){var save=in_if;in_if=!in_block;descend(node,this);in_if=save;return node}else if(node instanceof AST_StatementWithBody||node instanceof AST_Switch){var save=in_block;in_block=true;descend(node,this);in_block=save;return node}else if(node instanceof AST_Break&&this.loopcontrol_target(node.label)===self){if(in_if){ruined=true;return node}if(in_block)return node;stopped=true;return in_list?MAP.skip:make_node(AST_EmptyStatement,node)}else if(node instanceof AST_SwitchBranch&&this.parent()===self){if(stopped)return MAP.skip;if(node instanceof AST_Case){var exp=node.expression.evaluate(compressor);if(exp.length<2){throw self}if(exp[1]===value||started){started=true;if(aborts(node))stopped=true;descend(node,this);return node}return MAP.skip}descend(node,this);return node}});tt.stack=compressor.stack.slice();self=self.transform(tt)}catch(ex){if(ex!==self)throw ex}return self});OPT(AST_Case,function(self,compressor){self.body=tighten_body(self.body,compressor);return self});OPT(AST_Try,function(self,compressor){self.body=tighten_body(self.body,compressor);return self});AST_Definitions.DEFMETHOD("remove_initializers",function(){this.definitions.forEach(function(def){def.value=null})});AST_Definitions.DEFMETHOD("to_assignments",function(){var assignments=this.definitions.reduce(function(a,def){if(def.value){var name=make_node(AST_SymbolRef,def.name,def.name);a.push(make_node(AST_Assign,def,{operator:"=",left:name,right:def.value}))}return a},[]);if(assignments.length==0)return null;return AST_Seq.from_array(assignments)});OPT(AST_Definitions,function(self,compressor){if(self.definitions.length==0)return make_node(AST_EmptyStatement,self);return self});OPT(AST_Function,function(self,compressor){self=AST_Lambda.prototype.optimize.call(self,compressor);if(compressor.option("unused")&&!compressor.option("keep_fnames")){if(self.name&&self.name.unreferenced()){self.name=null}}return self});OPT(AST_Call,function(self,compressor){if(compressor.option("unsafe")){var exp=self.expression;if(exp instanceof AST_SymbolRef&&exp.undeclared()){switch(exp.name){case"Array":if(self.args.length!=1){return make_node(AST_Array,self,{elements:self.args}).transform(compressor)}break;case"Object":if(self.args.length==0){return make_node(AST_Object,self,{properties:[]})}break;case"String":if(self.args.length==0)return make_node(AST_String,self,{value:""});if(self.args.length<=1)return make_node(AST_Binary,self,{left:self.args[0],operator:"+",right:make_node(AST_String,self,{value:""})}).transform(compressor);break;case"Number":if(self.args.length==0)return make_node(AST_Number,self,{value:0});if(self.args.length==1)return make_node(AST_UnaryPrefix,self,{expression:self.args[0],operator:"+"}).transform(compressor);case"Boolean":if(self.args.length==0)return make_node(AST_False,self);if(self.args.length==1)return make_node(AST_UnaryPrefix,self,{expression:make_node(AST_UnaryPrefix,null,{expression:self.args[0],operator:"!"}),operator:"!"}).transform(compressor);break;case"Function":if(self.args.length==0)return make_node(AST_Function,self,{argnames:[],body:[]});if(all(self.args,function(x){return x instanceof AST_String})){try{var code="(function("+self.args.slice(0,-1).map(function(arg){return arg.value}).join(",")+"){"+self.args[self.args.length-1].value+"})()";var ast=parse(code);ast.figure_out_scope({screw_ie8:compressor.option("screw_ie8")});var comp=new Compressor(compressor.options);ast=ast.transform(comp);ast.figure_out_scope({screw_ie8:compressor.option("screw_ie8")});ast.mangle_names();var fun;try{ast.walk(new TreeWalker(function(node){if(node instanceof AST_Lambda){fun=node;throw ast}}))}catch(ex){if(ex!==ast)throw ex}if(!fun)return self;var args=fun.argnames.map(function(arg,i){return make_node(AST_String,self.args[i],{value:arg.print_to_string()})});var code=OutputStream();AST_BlockStatement.prototype._codegen.call(fun,fun,code);code=code.toString().replace(/^\{|\}$/g,"");args.push(make_node(AST_String,self.args[self.args.length-1],{value:code}));self.args=args;return self}catch(ex){if(ex instanceof JS_Parse_Error){compressor.warn("Error parsing code passed to new Function [{file}:{line},{col}]",self.args[self.args.length-1].start);compressor.warn(ex.toString())}else{console.log(ex);throw ex}}}break}}else if(exp instanceof AST_Dot&&exp.property=="toString"&&self.args.length==0){return make_node(AST_Binary,self,{left:make_node(AST_String,self,{value:""}),operator:"+",right:exp.expression}).transform(compressor)}else if(exp instanceof AST_Dot&&exp.expression instanceof AST_Array&&exp.property=="join")EXIT:{var separator=self.args.length==0?",":self.args[0].evaluate(compressor)[1];if(separator==null)break EXIT;var elements=exp.expression.elements.reduce(function(a,el){el=el.evaluate(compressor);if(a.length==0||el.length==1){a.push(el)}else{var last=a[a.length-1];if(last.length==2){var val=""+last[1]+separator+el[1];a[a.length-1]=[make_node_from_constant(compressor,val,last[0]),val]}else{a.push(el)}}return a},[]);if(elements.length==0)return make_node(AST_String,self,{value:""});if(elements.length==1)return elements[0][0];if(separator==""){var first;if(elements[0][0]instanceof AST_String||elements[1][0]instanceof AST_String){first=elements.shift()[0]}else{first=make_node(AST_String,self,{value:""})}return elements.reduce(function(prev,el){return make_node(AST_Binary,el[0],{operator:"+",left:prev,right:el[0]})},first).transform(compressor)}var node=self.clone();node.expression=node.expression.clone();node.expression.expression=node.expression.expression.clone();node.expression.expression.elements=elements.map(function(el){return el[0]});return best_of(self,node)}}if(compressor.option("side_effects")){if(self.expression instanceof AST_Function&&self.args.length==0&&!AST_Block.prototype.has_side_effects.call(self.expression,compressor)){return make_node(AST_Undefined,self).transform(compressor)}}if(compressor.option("drop_console")){if(self.expression instanceof AST_PropAccess){var name=self.expression.expression;while(name.expression){name=name.expression}if(name instanceof AST_SymbolRef&&name.name=="console"&&name.undeclared()){return make_node(AST_Undefined,self).transform(compressor)}}}return self.evaluate(compressor)[0]});OPT(AST_New,function(self,compressor){if(compressor.option("unsafe")){var exp=self.expression;if(exp instanceof AST_SymbolRef&&exp.undeclared()){switch(exp.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return make_node(AST_Call,self,self).transform(compressor)}}}return self});OPT(AST_Seq,function(self,compressor){if(!compressor.option("side_effects"))return self;if(!self.car.has_side_effects(compressor)){var p;if(!(self.cdr instanceof AST_SymbolRef&&self.cdr.name=="eval"&&self.cdr.undeclared()&&(p=compressor.parent())instanceof AST_Call&&p.expression===self)){return self.cdr}}if(compressor.option("cascade")){if(self.car instanceof AST_Assign&&!self.car.left.has_side_effects(compressor)){if(self.car.left.equivalent_to(self.cdr)){return self.car}if(self.cdr instanceof AST_Call&&self.cdr.expression.equivalent_to(self.car.left)){self.cdr.expression=self.car;return self.cdr}}if(!self.car.has_side_effects(compressor)&&!self.cdr.has_side_effects(compressor)&&self.car.equivalent_to(self.cdr)){return self.car}}if(self.cdr instanceof AST_UnaryPrefix&&self.cdr.operator=="void"&&!self.cdr.expression.has_side_effects(compressor)){self.cdr.expression=self.car;return self.cdr}if(self.cdr instanceof AST_Undefined){return make_node(AST_UnaryPrefix,self,{operator:"void",expression:self.car})}return self});AST_Unary.DEFMETHOD("lift_sequences",function(compressor){if(compressor.option("sequences")){if(this.expression instanceof AST_Seq){var seq=this.expression;var x=seq.to_array();this.expression=x.pop();x.push(this);seq=AST_Seq.from_array(x).transform(compressor);return seq}}return this});OPT(AST_UnaryPostfix,function(self,compressor){return self.lift_sequences(compressor)});OPT(AST_UnaryPrefix,function(self,compressor){self=self.lift_sequences(compressor);var e=self.expression;if(compressor.option("booleans")&&compressor.in_boolean_context()){switch(self.operator){case"!":if(e instanceof AST_UnaryPrefix&&e.operator=="!"){return e.expression}break;case"typeof":compressor.warn("Boolean expression always true [{file}:{line},{col}]",self.start);return make_node(AST_True,self)}if(e instanceof AST_Binary&&self.operator=="!"){self=best_of(self,e.negate(compressor))}}return self.evaluate(compressor)[0]});function has_side_effects_or_prop_access(node,compressor){var save_pure_getters=compressor.option("pure_getters");compressor.options.pure_getters=false;var ret=node.has_side_effects(compressor);compressor.options.pure_getters=save_pure_getters;return ret}AST_Binary.DEFMETHOD("lift_sequences",function(compressor){if(compressor.option("sequences")){if(this.left instanceof AST_Seq){var seq=this.left;var x=seq.to_array();this.left=x.pop();x.push(this);seq=AST_Seq.from_array(x).transform(compressor);return seq}if(this.right instanceof AST_Seq&&this instanceof AST_Assign&&!has_side_effects_or_prop_access(this.left,compressor)){var seq=this.right;var x=seq.to_array();this.right=x.pop();x.push(this);seq=AST_Seq.from_array(x).transform(compressor);return seq}}return this});var commutativeOperators=makePredicate("== === != !== * & | ^");OPT(AST_Binary,function(self,compressor){var reverse=compressor.has_directive("use asm")?noop:function(op,force){if(force||!(self.left.has_side_effects(compressor)||self.right.has_side_effects(compressor))){if(op)self.operator=op;var tmp=self.left;self.left=self.right;self.right=tmp}};if(commutativeOperators(self.operator)){if(self.right instanceof AST_Constant&&!(self.left instanceof AST_Constant)){if(!(self.left instanceof AST_Binary&&PRECEDENCE[self.left.operator]>=PRECEDENCE[self.operator])){reverse(null,true)}}if(/^[!=]==?$/.test(self.operator)){if(self.left instanceof AST_SymbolRef&&self.right instanceof AST_Conditional){if(self.right.consequent instanceof AST_SymbolRef&&self.right.consequent.definition()===self.left.definition()){if(/^==/.test(self.operator))return self.right.condition;if(/^!=/.test(self.operator))return self.right.condition.negate(compressor)}if(self.right.alternative instanceof AST_SymbolRef&&self.right.alternative.definition()===self.left.definition()){if(/^==/.test(self.operator))return self.right.condition.negate(compressor);if(/^!=/.test(self.operator))return self.right.condition}}if(self.right instanceof AST_SymbolRef&&self.left instanceof AST_Conditional){if(self.left.consequent instanceof AST_SymbolRef&&self.left.consequent.definition()===self.right.definition()){if(/^==/.test(self.operator))return self.left.condition;if(/^!=/.test(self.operator))return self.left.condition.negate(compressor)}if(self.left.alternative instanceof AST_SymbolRef&&self.left.alternative.definition()===self.right.definition()){if(/^==/.test(self.operator))return self.left.condition.negate(compressor);if(/^!=/.test(self.operator))return self.left.condition}}}}self=self.lift_sequences(compressor);if(compressor.option("comparisons"))switch(self.operator){case"===":case"!==":if(self.left.is_string(compressor)&&self.right.is_string(compressor)||self.left.is_boolean()&&self.right.is_boolean()){self.operator=self.operator.substr(0,2)}case"==":case"!=":if(self.left instanceof AST_String&&self.left.value=="undefined"&&self.right instanceof AST_UnaryPrefix&&self.right.operator=="typeof"&&compressor.option("unsafe")){if(!(self.right.expression instanceof AST_SymbolRef)||!self.right.expression.undeclared()){self.right=self.right.expression;self.left=make_node(AST_Undefined,self.left).optimize(compressor);if(self.operator.length==2)self.operator+="="}}break}if(compressor.option("booleans")&&compressor.in_boolean_context())switch(self.operator){case"&&":var ll=self.left.evaluate(compressor);var rr=self.right.evaluate(compressor);if(ll.length>1&&!ll[1]||rr.length>1&&!rr[1]){compressor.warn("Boolean && always false [{file}:{line},{col}]",self.start);if(self.left.has_side_effects(compressor)){return make_node(AST_Seq,self,{car:self.left,cdr:make_node(AST_False)}).optimize(compressor)}return make_node(AST_False,self)}if(ll.length>1&&ll[1]){return rr[0]}if(rr.length>1&&rr[1]){return ll[0]}break;case"||":var ll=self.left.evaluate(compressor);var rr=self.right.evaluate(compressor);if(ll.length>1&&ll[1]||rr.length>1&&rr[1]){compressor.warn("Boolean || always true [{file}:{line},{col}]",self.start);if(self.left.has_side_effects(compressor)){return make_node(AST_Seq,self,{car:self.left,cdr:make_node(AST_True)}).optimize(compressor)}return make_node(AST_True,self)}if(ll.length>1&&!ll[1]){return rr[0]}if(rr.length>1&&!rr[1]){return ll[0]}break;case"+":var ll=self.left.evaluate(compressor);var rr=self.right.evaluate(compressor);if(ll.length>1&&ll[0]instanceof AST_String&&ll[1]||rr.length>1&&rr[0]instanceof AST_String&&rr[1]){compressor.warn("+ in boolean context always true [{file}:{line},{col}]",self.start);return make_node(AST_True,self)}break}if(compressor.option("comparisons")){if(!(compressor.parent()instanceof AST_Binary)||compressor.parent()instanceof AST_Assign){var negated=make_node(AST_UnaryPrefix,self,{operator:"!",expression:self.negate(compressor)});self=best_of(self,negated)}switch(self.operator){case"<":reverse(">");break;case"<=":reverse(">=");break}}if(self.operator=="+"&&self.right instanceof AST_String&&self.right.getValue()===""&&self.left instanceof AST_Binary&&self.left.operator=="+"&&self.left.is_string(compressor)){return self.left}if(compressor.option("evaluate")){if(self.operator=="+"){if(self.left instanceof AST_Constant&&self.right instanceof AST_Binary&&self.right.operator=="+"&&self.right.left instanceof AST_Constant&&self.right.is_string(compressor)){self=make_node(AST_Binary,self,{operator:"+",left:make_node(AST_String,null,{value:""+self.left.getValue()+self.right.left.getValue(),start:self.left.start,end:self.right.left.end}),right:self.right.right})}if(self.right instanceof AST_Constant&&self.left instanceof AST_Binary&&self.left.operator=="+"&&self.left.right instanceof AST_Constant&&self.left.is_string(compressor)){self=make_node(AST_Binary,self,{operator:"+",left:self.left.left,right:make_node(AST_String,null,{value:""+self.left.right.getValue()+self.right.getValue(),start:self.left.right.start,end:self.right.end})})}if(self.left instanceof AST_Binary&&self.left.operator=="+"&&self.left.is_string(compressor)&&self.left.right instanceof AST_Constant&&self.right instanceof AST_Binary&&self.right.operator=="+"&&self.right.left instanceof AST_Constant&&self.right.is_string(compressor)){self=make_node(AST_Binary,self,{operator:"+",left:make_node(AST_Binary,self.left,{operator:"+",left:self.left.left,right:make_node(AST_String,null,{value:""+self.left.right.getValue()+self.right.left.getValue(),start:self.left.right.start,end:self.right.left.end})}),right:self.right.right})}}}if(self.right instanceof AST_Binary&&self.right.operator==self.operator&&(self.operator=="*"||self.operator=="&&"||self.operator=="||")){self.left=make_node(AST_Binary,self.left,{operator:self.operator,left:self.left,right:self.right.left});self.right=self.right.right;return self.transform(compressor)}return self.evaluate(compressor)[0]});OPT(AST_SymbolRef,function(self,compressor){if(self.undeclared()){var defines=compressor.option("global_defs");if(defines&&defines.hasOwnProperty(self.name)){return make_node_from_constant(compressor,defines[self.name],self)}switch(self.name){case"undefined":return make_node(AST_Undefined,self);case"NaN":return make_node(AST_NaN,self).transform(compressor);case"Infinity":return make_node(AST_Infinity,self).transform(compressor)}}return self});OPT(AST_Infinity,function(self,compressor){return make_node(AST_Binary,self,{operator:"/",left:make_node(AST_Number,self,{value:1}),right:make_node(AST_Number,self,{value:0})})});OPT(AST_NaN,function(self,compressor){return make_node(AST_Binary,self,{operator:"/",left:make_node(AST_Number,self,{value:0}),right:make_node(AST_Number,self,{value:0})})});OPT(AST_Undefined,function(self,compressor){if(compressor.option("unsafe")){var scope=compressor.find_parent(AST_Scope);var undef=scope.find_variable("undefined");if(undef){var ref=make_node(AST_SymbolRef,self,{name:"undefined",scope:scope,thedef:undef});ref.reference();return ref}}return self});var ASSIGN_OPS=["+","-","/","*","%",">>","<<",">>>","|","^","&"];OPT(AST_Assign,function(self,compressor){self=self.lift_sequences(compressor);if(self.operator=="="&&self.left instanceof AST_SymbolRef&&self.right instanceof AST_Binary&&self.right.left instanceof AST_SymbolRef&&self.right.left.name==self.left.name&&member(self.right.operator,ASSIGN_OPS)){self.operator=self.right.operator+"=";self.right=self.right.right}return self});OPT(AST_Conditional,function(self,compressor){if(!compressor.option("conditionals"))return self;if(self.condition instanceof AST_Seq){var car=self.condition.car;self.condition=self.condition.cdr;return AST_Seq.cons(car,self)}var cond=self.condition.evaluate(compressor);if(cond.length>1){if(cond[1]){compressor.warn("Condition always true [{file}:{line},{col}]",self.start);return self.consequent}else{compressor.warn("Condition always false [{file}:{line},{col}]",self.start);return self.alternative}}var negated=cond[0].negate(compressor);if(best_of(cond[0],negated)===negated){self=make_node(AST_Conditional,self,{condition:negated,consequent:self.alternative,alternative:self.consequent})}var consequent=self.consequent;var alternative=self.alternative;if(consequent instanceof AST_Assign&&alternative instanceof AST_Assign&&consequent.operator==alternative.operator&&consequent.left.equivalent_to(alternative.left)&&!consequent.left.has_side_effects(compressor)){return make_node(AST_Assign,self,{operator:consequent.operator,left:consequent.left,right:make_node(AST_Conditional,self,{condition:self.condition,consequent:consequent.right,alternative:alternative.right})})}if(consequent instanceof AST_Call&&alternative.TYPE===consequent.TYPE&&consequent.args.length==alternative.args.length&&consequent.expression.equivalent_to(alternative.expression)){if(consequent.args.length==0){return make_node(AST_Seq,self,{car:self.condition,cdr:consequent})}if(consequent.args.length==1){consequent.args[0]=make_node(AST_Conditional,self,{condition:self.condition,consequent:consequent.args[0],alternative:alternative.args[0]});return consequent}}if(consequent instanceof AST_Conditional&&consequent.alternative.equivalent_to(alternative)){return make_node(AST_Conditional,self,{condition:make_node(AST_Binary,self,{left:self.condition,operator:"&&",right:consequent.condition}),consequent:consequent.consequent,alternative:alternative})}if(consequent instanceof AST_Constant&&alternative instanceof AST_Constant&&consequent.equivalent_to(alternative)){if(self.condition.has_side_effects(compressor)){return AST_Seq.from_array([self.condition,make_node_from_constant(compressor,consequent.value,self)])}else{return make_node_from_constant(compressor,consequent.value,self)}}if(consequent instanceof AST_True&&alternative instanceof AST_False){self.condition=self.condition.negate(compressor);return make_node(AST_UnaryPrefix,self.condition,{operator:"!",expression:self.condition})}if(consequent instanceof AST_False&&alternative instanceof AST_True){return self.condition.negate(compressor)}return self});OPT(AST_Boolean,function(self,compressor){if(compressor.option("booleans")){var p=compressor.parent();if(p instanceof AST_Binary&&(p.operator=="=="||p.operator=="!=")){compressor.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:p.operator,value:self.value,file:p.start.file,line:p.start.line,col:p.start.col});return make_node(AST_Number,self,{value:+self.value})}return make_node(AST_UnaryPrefix,self,{operator:"!",expression:make_node(AST_Number,self,{value:1-self.value})})}return self});OPT(AST_Sub,function(self,compressor){var prop=self.property;if(prop instanceof AST_String&&compressor.option("properties")){prop=prop.getValue();if(RESERVED_WORDS(prop)?compressor.option("screw_ie8"):is_identifier_string(prop)){return make_node(AST_Dot,self,{expression:self.expression,property:prop}).optimize(compressor)}var v=parseFloat(prop);if(!isNaN(v)&&v.toString()==prop){self.property=make_node(AST_Number,self.property,{value:v})}}return self});OPT(AST_Dot,function(self,compressor){var prop=self.property;if(RESERVED_WORDS(prop)&&!compressor.option("screw_ie8")){return make_node(AST_Sub,self,{expression:self.expression,property:make_node(AST_String,self,{value:prop})}).optimize(compressor)}return self.evaluate(compressor)[0]});function literals_in_boolean_context(self,compressor){if(compressor.option("booleans")&&compressor.in_boolean_context()&&!self.has_side_effects(compressor)){return make_node(AST_True,self)}return self}OPT(AST_Array,literals_in_boolean_context);OPT(AST_Object,literals_in_boolean_context);OPT(AST_RegExp,literals_in_boolean_context)})();"use strict";function SourceMap(options){options=defaults(options,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var orig_map=options.orig&&new MOZ_SourceMap.SourceMapConsumer(options.orig);var generator;if(orig_map){generator=MOZ_SourceMap.SourceMapGenerator.fromSourceMap(orig_map)}else{generator=new MOZ_SourceMap.SourceMapGenerator({file:options.file,sourceRoot:options.root})}function add(source,gen_line,gen_col,orig_line,orig_col,name){if(orig_map){var info=orig_map.originalPositionFor({line:orig_line,column:orig_col});if(info.source===null){return}source=info.source;orig_line=info.line;orig_col=info.column;name=info.name||name}generator.addMapping({generated:{line:gen_line+options.dest_line_diff,column:gen_col},original:{line:orig_line+options.orig_line_diff,column:orig_col},source:source,name:name})}return{add:add,get:function(){return generator},toString:function(){return JSON.stringify(generator.toJSON())}}}"use strict";(function(){var MOZ_TO_ME={ExpressionStatement:function(M){var expr=M.expression;if(expr.type==="Literal"&&typeof expr.value==="string"){return new AST_Directive({start:my_start_token(M),end:my_end_token(M),value:expr.value})}return new AST_SimpleStatement({start:my_start_token(M),end:my_end_token(M),body:from_moz(expr)})},TryStatement:function(M){var handlers=M.handlers||[M.handler];if(handlers.length>1||M.guardedHandlers&&M.guardedHandlers.length){throw new Error("Multiple catch clauses are not supported.")}return new AST_Try({start:my_start_token(M),end:my_end_token(M),body:from_moz(M.block).body,bcatch:from_moz(handlers[0]),bfinally:M.finalizer?new AST_Finally(from_moz(M.finalizer)):null})},Property:function(M){var key=M.key;var name=key.type=="Identifier"?key.name:key.value;var args={start:my_start_token(key),end:my_end_token(M.value),key:name,value:from_moz(M.value)};switch(M.kind){case"init":return new AST_ObjectKeyVal(args);case"set":args.value.name=from_moz(key);return new AST_ObjectSetter(args);case"get":args.value.name=from_moz(key);return new AST_ObjectGetter(args)}},ObjectExpression:function(M){return new AST_Object({start:my_start_token(M),end:my_end_token(M),properties:M.properties.map(function(prop){prop.type="Property";return from_moz(prop)})})},SequenceExpression:function(M){return AST_Seq.from_array(M.expressions.map(from_moz))},MemberExpression:function(M){return new(M.computed?AST_Sub:AST_Dot)({start:my_start_token(M),end:my_end_token(M),property:M.computed?from_moz(M.property):M.property.name,expression:from_moz(M.object)})},SwitchCase:function(M){return new(M.test?AST_Case:AST_Default)({start:my_start_token(M),end:my_end_token(M),expression:from_moz(M.test),body:M.consequent.map(from_moz)})},VariableDeclaration:function(M){return new(M.kind==="const"?AST_Const:AST_Var)({start:my_start_token(M),end:my_end_token(M),definitions:M.declarations.map(from_moz)})},Literal:function(M){var val=M.value,args={start:my_start_token(M),end:my_end_token(M)};if(val===null)return new AST_Null(args);switch(typeof val){case"string":args.value=val;return new AST_String(args);case"number":args.value=val;return new AST_Number(args);case"boolean":return new(val?AST_True:AST_False)(args);default:args.value=val;return new AST_RegExp(args)}},Identifier:function(M){var p=FROM_MOZ_STACK[FROM_MOZ_STACK.length-2];return new(p.type=="LabeledStatement"?AST_Label:p.type=="VariableDeclarator"&&p.id===M?p.kind=="const"?AST_SymbolConst:AST_SymbolVar:p.type=="FunctionExpression"?p.id===M?AST_SymbolLambda:AST_SymbolFunarg:p.type=="FunctionDeclaration"?p.id===M?AST_SymbolDefun:AST_SymbolFunarg:p.type=="CatchClause"?AST_SymbolCatch:p.type=="BreakStatement"||p.type=="ContinueStatement"?AST_LabelRef:AST_SymbolRef)({start:my_start_token(M),end:my_end_token(M),name:M.name})}};MOZ_TO_ME.UpdateExpression=MOZ_TO_ME.UnaryExpression=function To_Moz_Unary(M){var prefix="prefix"in M?M.prefix:M.type=="UnaryExpression"?true:false;return new(prefix?AST_UnaryPrefix:AST_UnaryPostfix)({start:my_start_token(M),end:my_end_token(M),operator:M.operator,expression:from_moz(M.argument)})};map("Program",AST_Toplevel,"body@body");map("EmptyStatement",AST_EmptyStatement);map("BlockStatement",AST_BlockStatement,"body@body");map("IfStatement",AST_If,"test>condition, consequent>body, alternate>alternative");map("LabeledStatement",AST_LabeledStatement,"label>label, body>body");map("BreakStatement",AST_Break,"label>label");map("ContinueStatement",AST_Continue,"label>label");map("WithStatement",AST_With,"object>expression, body>body"); -map("ReturnStatement",AST_Return,"argument>value");map("ThrowStatement",AST_Throw,"argument>value");map("WhileStatement",AST_While,"test>condition, body>body");map("DoWhileStatement",AST_Do,"test>condition, body>body");map("ForStatement",AST_For,"init>init, test>condition, update>step, body>body");map("ForInStatement",AST_ForIn,"left>init, right>object, body>body");map("DebuggerStatement",AST_Debugger);map("FunctionDeclaration",AST_Defun,"id>name, params@argnames, body%body");map("VariableDeclarator",AST_VarDef,"id>name, init>value");map("CatchClause",AST_Catch,"param>argname, body%body");map("ThisExpression",AST_This);map("ArrayExpression",AST_Array,"elements@elements");map("FunctionExpression",AST_Function,"id>name, params@argnames, body%body");map("BinaryExpression",AST_Binary,"operator=operator, left>left, right>right");map("LogicalExpression",AST_Binary,"operator=operator, left>left, right>right");map("AssignmentExpression",AST_Assign,"operator=operator, left>left, right>right");map("ConditionalExpression",AST_Conditional,"test>condition, consequent>consequent, alternate>alternative");map("NewExpression",AST_New,"callee>expression, arguments@args");map("CallExpression",AST_Call,"callee>expression, arguments@args");def_to_moz(AST_Directive,function To_Moz_Directive(M){return{type:"ExpressionStatement",expression:{type:"Literal",value:M.value}}});def_to_moz(AST_SimpleStatement,function To_Moz_ExpressionStatement(M){return{type:"ExpressionStatement",expression:to_moz(M.body)}});def_to_moz(AST_SwitchBranch,function To_Moz_SwitchCase(M){return{type:"SwitchCase",test:to_moz(M.expression),consequent:M.body.map(to_moz)}});def_to_moz(AST_Try,function To_Moz_TryStatement(M){return{type:"TryStatement",block:to_moz_block(M),handler:to_moz(M.bcatch),guardedHandlers:[],finalizer:to_moz(M.bfinally)}});def_to_moz(AST_Catch,function To_Moz_CatchClause(M){return{type:"CatchClause",param:to_moz(M.argname),guard:null,body:to_moz_block(M)}});def_to_moz(AST_Definitions,function To_Moz_VariableDeclaration(M){return{type:"VariableDeclaration",kind:M instanceof AST_Const?"const":"var",declarations:M.definitions.map(to_moz)}});def_to_moz(AST_Seq,function To_Moz_SequenceExpression(M){return{type:"SequenceExpression",expressions:M.to_array().map(to_moz)}});def_to_moz(AST_PropAccess,function To_Moz_MemberExpression(M){var isComputed=M instanceof AST_Sub;return{type:"MemberExpression",object:to_moz(M.expression),computed:isComputed,property:isComputed?to_moz(M.property):{type:"Identifier",name:M.property}}});def_to_moz(AST_Unary,function To_Moz_Unary(M){return{type:M.operator=="++"||M.operator=="--"?"UpdateExpression":"UnaryExpression",operator:M.operator,prefix:M instanceof AST_UnaryPrefix,argument:to_moz(M.expression)}});def_to_moz(AST_Binary,function To_Moz_BinaryExpression(M){return{type:M.operator=="&&"||M.operator=="||"?"LogicalExpression":"BinaryExpression",left:to_moz(M.left),operator:M.operator,right:to_moz(M.right)}});def_to_moz(AST_Object,function To_Moz_ObjectExpression(M){return{type:"ObjectExpression",properties:M.properties.map(to_moz)}});def_to_moz(AST_ObjectProperty,function To_Moz_Property(M){var key=is_identifier(M.key)?{type:"Identifier",name:M.key}:{type:"Literal",value:M.key};var kind;if(M instanceof AST_ObjectKeyVal){kind="init"}else if(M instanceof AST_ObjectGetter){kind="get"}else if(M instanceof AST_ObjectSetter){kind="set"}return{type:"Property",kind:kind,key:key,value:to_moz(M.value)}});def_to_moz(AST_Symbol,function To_Moz_Identifier(M){var def=M.definition();return{type:"Identifier",name:def?def.mangled_name||def.name:M.name}});def_to_moz(AST_Constant,function To_Moz_Literal(M){var value=M.value;if(typeof value==="number"&&(value<0||value===0&&1/value<0)){return{type:"UnaryExpression",operator:"-",prefix:true,argument:{type:"Literal",value:-value}}}return{type:"Literal",value:value}});def_to_moz(AST_Atom,function To_Moz_Atom(M){return{type:"Identifier",name:String(M.value)}});AST_Boolean.DEFMETHOD("to_mozilla_ast",AST_Constant.prototype.to_mozilla_ast);AST_Null.DEFMETHOD("to_mozilla_ast",AST_Constant.prototype.to_mozilla_ast);AST_Hole.DEFMETHOD("to_mozilla_ast",function To_Moz_ArrayHole(){return null});AST_Block.DEFMETHOD("to_mozilla_ast",AST_BlockStatement.prototype.to_mozilla_ast);AST_Lambda.DEFMETHOD("to_mozilla_ast",AST_Function.prototype.to_mozilla_ast);function my_start_token(moznode){var loc=moznode.loc,start=loc&&loc.start;var range=moznode.range;return new AST_Token({file:loc&&loc.source,line:start&&start.line,col:start&&start.column,pos:range?range[0]:moznode.start,endline:start&&start.line,endcol:start&&start.column,endpos:range?range[0]:moznode.start})}function my_end_token(moznode){var loc=moznode.loc,end=loc&&loc.end;var range=moznode.range;return new AST_Token({file:loc&&loc.source,line:end&&end.line,col:end&&end.column,pos:range?range[1]:moznode.end,endline:end&&end.line,endcol:end&&end.column,endpos:range?range[1]:moznode.end})}function map(moztype,mytype,propmap){var moz_to_me="function From_Moz_"+moztype+"(M){\n";moz_to_me+="return new "+mytype.name+"({\n"+"start: my_start_token(M),\n"+"end: my_end_token(M)";var me_to_moz="function To_Moz_"+moztype+"(M){\n";me_to_moz+="return {\n"+"type: "+JSON.stringify(moztype);if(propmap)propmap.split(/\s*,\s*/).forEach(function(prop){var m=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(prop);if(!m)throw new Error("Can't understand property map: "+prop);var moz=m[1],how=m[2],my=m[3];moz_to_me+=",\n"+my+": ";me_to_moz+=",\n"+moz+": ";switch(how){case"@":moz_to_me+="M."+moz+".map(from_moz)";me_to_moz+="M."+my+".map(to_moz)";break;case">":moz_to_me+="from_moz(M."+moz+")";me_to_moz+="to_moz(M."+my+")";break;case"=":moz_to_me+="M."+moz;me_to_moz+="M."+my;break;case"%":moz_to_me+="from_moz(M."+moz+").body";me_to_moz+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+prop)}});moz_to_me+="\n})\n}";me_to_moz+="\n}\n}";moz_to_me=new Function("my_start_token","my_end_token","from_moz","return("+moz_to_me+")")(my_start_token,my_end_token,from_moz);me_to_moz=new Function("to_moz","to_moz_block","return("+me_to_moz+")")(to_moz,to_moz_block);MOZ_TO_ME[moztype]=moz_to_me;def_to_moz(mytype,me_to_moz)}var FROM_MOZ_STACK=null;function from_moz(node){FROM_MOZ_STACK.push(node);var ret=node!=null?MOZ_TO_ME[node.type](node):null;FROM_MOZ_STACK.pop();return ret}AST_Node.from_mozilla_ast=function(node){var save_stack=FROM_MOZ_STACK;FROM_MOZ_STACK=[];var ast=from_moz(node);FROM_MOZ_STACK=save_stack;return ast};function set_moz_loc(mynode,moznode,myparent){var start=mynode.start;var end=mynode.end;if(start.pos!=null&&end.endpos!=null){moznode.range=[start.pos,end.endpos]}if(start.line){moznode.loc={start:{line:start.line,column:start.col},end:end.endline?{line:end.endline,column:end.endcol}:null};if(start.file){moznode.loc.source=start.file}}return moznode}function def_to_moz(mytype,handler){mytype.DEFMETHOD("to_mozilla_ast",function(){return set_moz_loc(this,handler(this))})}function to_moz(node){return node!=null?node.to_mozilla_ast():null}function to_moz_block(node){return{type:"BlockStatement",body:node.body.map(to_moz)}}})();"use strict";function find_builtins(){var a=[];[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp].forEach(function(ctor){Object.getOwnPropertyNames(ctor).map(add);if(ctor.prototype){Object.getOwnPropertyNames(ctor.prototype).map(add)}});function add(name){push_uniq(a,name)}return a}function mangle_properties(ast,options){options=defaults(options,{reserved:null,cache:null});var reserved=options.reserved;if(reserved==null)reserved=find_builtins();var cache=options.cache;if(cache==null){cache={cname:-1,props:new Dictionary}}var names_to_mangle=[];ast.walk(new TreeWalker(function(node){if(node instanceof AST_ObjectKeyVal){add(node.key)}else if(node instanceof AST_ObjectProperty){add(node.key.name)}else if(node instanceof AST_Dot){if(this.parent()instanceof AST_Assign){add(node.property)}}else if(node instanceof AST_Sub){if(this.parent()instanceof AST_Assign){addStrings(node.property)}}}));return ast.transform(new TreeTransformer(null,function(node){if(node instanceof AST_ObjectKeyVal){if(should_mangle(node.key)){node.key=mangle(node.key)}}else if(node instanceof AST_ObjectProperty){if(should_mangle(node.key.name)){node.key.name=mangle(node.key.name)}}else if(node instanceof AST_Dot){if(should_mangle(node.property)){node.property=mangle(node.property)}}else if(node instanceof AST_Sub){node.property=mangleStrings(node.property)}}));function can_mangle(name){if(reserved.indexOf(name)>=0)return false;if(/^[0-9.]+$/.test(name))return false;return true}function should_mangle(name){return cache.props.has(name)||names_to_mangle.indexOf(name)>=0}function add(name){if(can_mangle(name))push_uniq(names_to_mangle,name)}function mangle(name){var mangled=cache.props.get(name);if(!mangled){do{mangled=base54(++cache.cname)}while(!can_mangle(mangled));cache.props.set(name,mangled)}return mangled}function addStrings(node){var out={};try{(function walk(node){node.walk(new TreeWalker(function(node){if(node instanceof AST_Seq){walk(node.cdr);return true}if(node instanceof AST_String){add(node.value);return true}if(node instanceof AST_Conditional){walk(node.consequent);walk(node.alternative);return true}throw out}))})(node)}catch(ex){if(ex!==out)throw ex}}function mangleStrings(node){return node.transform(new TreeTransformer(function(node){if(node instanceof AST_Seq){node.cdr=mangleStrings(node.cdr)}else if(node instanceof AST_String){if(should_mangle(node.value)){node.value=mangle(node.value)}}else if(node instanceof AST_Conditional){node.consequent=mangleStrings(node.consequent);node.alternative=mangleStrings(node.alternative)}return node}))}}exports["array_to_hash"]=array_to_hash;exports["slice"]=slice;exports["characters"]=characters;exports["member"]=member;exports["find_if"]=find_if;exports["repeat_string"]=repeat_string;exports["DefaultsError"]=DefaultsError;exports["defaults"]=defaults;exports["merge"]=merge;exports["noop"]=noop;exports["MAP"]=MAP;exports["push_uniq"]=push_uniq;exports["string_template"]=string_template;exports["remove"]=remove;exports["mergeSort"]=mergeSort;exports["set_difference"]=set_difference;exports["set_intersection"]=set_intersection;exports["makePredicate"]=makePredicate;exports["all"]=all;exports["Dictionary"]=Dictionary;exports["DEFNODE"]=DEFNODE;exports["AST_Token"]=AST_Token;exports["AST_Node"]=AST_Node;exports["AST_Statement"]=AST_Statement;exports["AST_Debugger"]=AST_Debugger;exports["AST_Directive"]=AST_Directive;exports["AST_SimpleStatement"]=AST_SimpleStatement;exports["walk_body"]=walk_body;exports["AST_Block"]=AST_Block;exports["AST_BlockStatement"]=AST_BlockStatement;exports["AST_EmptyStatement"]=AST_EmptyStatement;exports["AST_StatementWithBody"]=AST_StatementWithBody;exports["AST_LabeledStatement"]=AST_LabeledStatement;exports["AST_IterationStatement"]=AST_IterationStatement;exports["AST_DWLoop"]=AST_DWLoop;exports["AST_Do"]=AST_Do;exports["AST_While"]=AST_While;exports["AST_For"]=AST_For;exports["AST_ForIn"]=AST_ForIn;exports["AST_With"]=AST_With;exports["AST_Scope"]=AST_Scope;exports["AST_Toplevel"]=AST_Toplevel;exports["AST_Lambda"]=AST_Lambda;exports["AST_Accessor"]=AST_Accessor;exports["AST_Function"]=AST_Function;exports["AST_Defun"]=AST_Defun;exports["AST_Jump"]=AST_Jump;exports["AST_Exit"]=AST_Exit;exports["AST_Return"]=AST_Return;exports["AST_Throw"]=AST_Throw;exports["AST_LoopControl"]=AST_LoopControl;exports["AST_Break"]=AST_Break;exports["AST_Continue"]=AST_Continue;exports["AST_If"]=AST_If;exports["AST_Switch"]=AST_Switch;exports["AST_SwitchBranch"]=AST_SwitchBranch;exports["AST_Default"]=AST_Default;exports["AST_Case"]=AST_Case;exports["AST_Try"]=AST_Try;exports["AST_Catch"]=AST_Catch;exports["AST_Finally"]=AST_Finally;exports["AST_Definitions"]=AST_Definitions;exports["AST_Var"]=AST_Var;exports["AST_Const"]=AST_Const;exports["AST_VarDef"]=AST_VarDef;exports["AST_Call"]=AST_Call;exports["AST_New"]=AST_New;exports["AST_Seq"]=AST_Seq;exports["AST_PropAccess"]=AST_PropAccess;exports["AST_Dot"]=AST_Dot;exports["AST_Sub"]=AST_Sub;exports["AST_Unary"]=AST_Unary;exports["AST_UnaryPrefix"]=AST_UnaryPrefix;exports["AST_UnaryPostfix"]=AST_UnaryPostfix;exports["AST_Binary"]=AST_Binary;exports["AST_Conditional"]=AST_Conditional;exports["AST_Assign"]=AST_Assign;exports["AST_Array"]=AST_Array;exports["AST_Object"]=AST_Object;exports["AST_ObjectProperty"]=AST_ObjectProperty;exports["AST_ObjectKeyVal"]=AST_ObjectKeyVal;exports["AST_ObjectSetter"]=AST_ObjectSetter;exports["AST_ObjectGetter"]=AST_ObjectGetter;exports["AST_Symbol"]=AST_Symbol;exports["AST_SymbolAccessor"]=AST_SymbolAccessor;exports["AST_SymbolDeclaration"]=AST_SymbolDeclaration;exports["AST_SymbolVar"]=AST_SymbolVar;exports["AST_SymbolConst"]=AST_SymbolConst;exports["AST_SymbolFunarg"]=AST_SymbolFunarg;exports["AST_SymbolDefun"]=AST_SymbolDefun;exports["AST_SymbolLambda"]=AST_SymbolLambda;exports["AST_SymbolCatch"]=AST_SymbolCatch;exports["AST_Label"]=AST_Label;exports["AST_SymbolRef"]=AST_SymbolRef;exports["AST_LabelRef"]=AST_LabelRef;exports["AST_This"]=AST_This;exports["AST_Constant"]=AST_Constant;exports["AST_String"]=AST_String;exports["AST_Number"]=AST_Number;exports["AST_RegExp"]=AST_RegExp;exports["AST_Atom"]=AST_Atom;exports["AST_Null"]=AST_Null;exports["AST_NaN"]=AST_NaN;exports["AST_Undefined"]=AST_Undefined;exports["AST_Hole"]=AST_Hole;exports["AST_Infinity"]=AST_Infinity;exports["AST_Boolean"]=AST_Boolean;exports["AST_False"]=AST_False;exports["AST_True"]=AST_True;exports["TreeWalker"]=TreeWalker;exports["KEYWORDS"]=KEYWORDS;exports["KEYWORDS_ATOM"]=KEYWORDS_ATOM;exports["RESERVED_WORDS"]=RESERVED_WORDS;exports["KEYWORDS_BEFORE_EXPRESSION"]=KEYWORDS_BEFORE_EXPRESSION;exports["OPERATOR_CHARS"]=OPERATOR_CHARS;exports["RE_HEX_NUMBER"]=RE_HEX_NUMBER;exports["RE_OCT_NUMBER"]=RE_OCT_NUMBER;exports["RE_DEC_NUMBER"]=RE_DEC_NUMBER;exports["OPERATORS"]=OPERATORS;exports["WHITESPACE_CHARS"]=WHITESPACE_CHARS;exports["PUNC_BEFORE_EXPRESSION"]=PUNC_BEFORE_EXPRESSION;exports["PUNC_CHARS"]=PUNC_CHARS;exports["REGEXP_MODIFIERS"]=REGEXP_MODIFIERS;exports["UNICODE"]=UNICODE;exports["is_letter"]=is_letter;exports["is_digit"]=is_digit;exports["is_alphanumeric_char"]=is_alphanumeric_char;exports["is_unicode_digit"]=is_unicode_digit;exports["is_unicode_combining_mark"]=is_unicode_combining_mark;exports["is_unicode_connector_punctuation"]=is_unicode_connector_punctuation;exports["is_identifier"]=is_identifier;exports["is_identifier_start"]=is_identifier_start;exports["is_identifier_char"]=is_identifier_char;exports["is_identifier_string"]=is_identifier_string;exports["parse_js_number"]=parse_js_number;exports["JS_Parse_Error"]=JS_Parse_Error;exports["js_error"]=js_error;exports["is_token"]=is_token;exports["EX_EOF"]=EX_EOF;exports["tokenizer"]=tokenizer;exports["UNARY_PREFIX"]=UNARY_PREFIX;exports["UNARY_POSTFIX"]=UNARY_POSTFIX;exports["ASSIGNMENT"]=ASSIGNMENT;exports["PRECEDENCE"]=PRECEDENCE;exports["STATEMENTS_WITH_LABELS"]=STATEMENTS_WITH_LABELS;exports["ATOMIC_START_TOKEN"]=ATOMIC_START_TOKEN;exports["parse"]=parse;exports["TreeTransformer"]=TreeTransformer;exports["SymbolDef"]=SymbolDef;exports["base54"]=base54;exports["OutputStream"]=OutputStream;exports["Compressor"]=Compressor;exports["SourceMap"]=SourceMap;exports["find_builtins"]=find_builtins;exports["mangle_properties"]=mangle_properties})({},function(){return this}()); \ No newline at end of file +map("SwitchStatement",AST_Switch,"discriminant>expression, cases@body");map("ReturnStatement",AST_Return,"argument>value");map("ThrowStatement",AST_Throw,"argument>value");map("WhileStatement",AST_While,"test>condition, body>body");map("DoWhileStatement",AST_Do,"test>condition, body>body");map("ForStatement",AST_For,"init>init, test>condition, update>step, body>body");map("ForInStatement",AST_ForIn,"left>init, right>object, body>body");map("DebuggerStatement",AST_Debugger);map("FunctionDeclaration",AST_Defun,"id>name, params@argnames, body%body");map("VariableDeclarator",AST_VarDef,"id>name, init>value");map("CatchClause",AST_Catch,"param>argname, body%body");map("ThisExpression",AST_This);map("ArrayExpression",AST_Array,"elements@elements");map("FunctionExpression",AST_Function,"id>name, params@argnames, body%body");map("BinaryExpression",AST_Binary,"operator=operator, left>left, right>right");map("LogicalExpression",AST_Binary,"operator=operator, left>left, right>right");map("AssignmentExpression",AST_Assign,"operator=operator, left>left, right>right");map("ConditionalExpression",AST_Conditional,"test>condition, consequent>consequent, alternate>alternative");map("NewExpression",AST_New,"callee>expression, arguments@args");map("CallExpression",AST_Call,"callee>expression, arguments@args");def_to_moz(AST_Directive,function To_Moz_Directive(M){return{type:"ExpressionStatement",expression:{type:"Literal",value:M.value}}});def_to_moz(AST_SimpleStatement,function To_Moz_ExpressionStatement(M){return{type:"ExpressionStatement",expression:to_moz(M.body)}});def_to_moz(AST_SwitchBranch,function To_Moz_SwitchCase(M){return{type:"SwitchCase",test:to_moz(M.expression),consequent:M.body.map(to_moz)}});def_to_moz(AST_Try,function To_Moz_TryStatement(M){return{type:"TryStatement",block:to_moz_block(M),handler:to_moz(M.bcatch),guardedHandlers:[],finalizer:to_moz(M.bfinally)}});def_to_moz(AST_Catch,function To_Moz_CatchClause(M){return{type:"CatchClause",param:to_moz(M.argname),guard:null,body:to_moz_block(M)}});def_to_moz(AST_Definitions,function To_Moz_VariableDeclaration(M){return{type:"VariableDeclaration",kind:M instanceof AST_Const?"const":"var",declarations:M.definitions.map(to_moz)}});def_to_moz(AST_Seq,function To_Moz_SequenceExpression(M){return{type:"SequenceExpression",expressions:M.to_array().map(to_moz)}});def_to_moz(AST_PropAccess,function To_Moz_MemberExpression(M){var isComputed=M instanceof AST_Sub;return{type:"MemberExpression",object:to_moz(M.expression),computed:isComputed,property:isComputed?to_moz(M.property):{type:"Identifier",name:M.property}}});def_to_moz(AST_Unary,function To_Moz_Unary(M){return{type:M.operator=="++"||M.operator=="--"?"UpdateExpression":"UnaryExpression",operator:M.operator,prefix:M instanceof AST_UnaryPrefix,argument:to_moz(M.expression)}});def_to_moz(AST_Binary,function To_Moz_BinaryExpression(M){return{type:M.operator=="&&"||M.operator=="||"?"LogicalExpression":"BinaryExpression",left:to_moz(M.left),operator:M.operator,right:to_moz(M.right)}});def_to_moz(AST_Object,function To_Moz_ObjectExpression(M){return{type:"ObjectExpression",properties:M.properties.map(to_moz)}});def_to_moz(AST_ObjectProperty,function To_Moz_Property(M){var key=is_identifier(M.key)?{type:"Identifier",name:M.key}:{type:"Literal",value:M.key};var kind;if(M instanceof AST_ObjectKeyVal){kind="init"}else if(M instanceof AST_ObjectGetter){kind="get"}else if(M instanceof AST_ObjectSetter){kind="set"}return{type:"Property",kind:kind,key:key,value:to_moz(M.value)}});def_to_moz(AST_Symbol,function To_Moz_Identifier(M){var def=M.definition();return{type:"Identifier",name:def?def.mangled_name||def.name:M.name}});def_to_moz(AST_Constant,function To_Moz_Literal(M){var value=M.value;if(typeof value==="number"&&(value<0||value===0&&1/value<0)){return{type:"UnaryExpression",operator:"-",prefix:true,argument:{type:"Literal",value:-value}}}return{type:"Literal",value:value}});def_to_moz(AST_Atom,function To_Moz_Atom(M){return{type:"Identifier",name:String(M.value)}});AST_Boolean.DEFMETHOD("to_mozilla_ast",AST_Constant.prototype.to_mozilla_ast);AST_Null.DEFMETHOD("to_mozilla_ast",AST_Constant.prototype.to_mozilla_ast);AST_Hole.DEFMETHOD("to_mozilla_ast",function To_Moz_ArrayHole(){return null});AST_Block.DEFMETHOD("to_mozilla_ast",AST_BlockStatement.prototype.to_mozilla_ast);AST_Lambda.DEFMETHOD("to_mozilla_ast",AST_Function.prototype.to_mozilla_ast);function my_start_token(moznode){var loc=moznode.loc,start=loc&&loc.start;var range=moznode.range;return new AST_Token({file:loc&&loc.source,line:start&&start.line,col:start&&start.column,pos:range?range[0]:moznode.start,endline:start&&start.line,endcol:start&&start.column,endpos:range?range[0]:moznode.start})}function my_end_token(moznode){var loc=moznode.loc,end=loc&&loc.end;var range=moznode.range;return new AST_Token({file:loc&&loc.source,line:end&&end.line,col:end&&end.column,pos:range?range[1]:moznode.end,endline:end&&end.line,endcol:end&&end.column,endpos:range?range[1]:moznode.end})}function map(moztype,mytype,propmap){var moz_to_me="function From_Moz_"+moztype+"(M){\n";moz_to_me+="return new "+mytype.name+"({\n"+"start: my_start_token(M),\n"+"end: my_end_token(M)";var me_to_moz="function To_Moz_"+moztype+"(M){\n";me_to_moz+="return {\n"+"type: "+JSON.stringify(moztype);if(propmap)propmap.split(/\s*,\s*/).forEach(function(prop){var m=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(prop);if(!m)throw new Error("Can't understand property map: "+prop);var moz=m[1],how=m[2],my=m[3];moz_to_me+=",\n"+my+": ";me_to_moz+=",\n"+moz+": ";switch(how){case"@":moz_to_me+="M."+moz+".map(from_moz)";me_to_moz+="M."+my+".map(to_moz)";break;case">":moz_to_me+="from_moz(M."+moz+")";me_to_moz+="to_moz(M."+my+")";break;case"=":moz_to_me+="M."+moz;me_to_moz+="M."+my;break;case"%":moz_to_me+="from_moz(M."+moz+").body";me_to_moz+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+prop)}});moz_to_me+="\n})\n}";me_to_moz+="\n}\n}";moz_to_me=new Function("my_start_token","my_end_token","from_moz","return("+moz_to_me+")")(my_start_token,my_end_token,from_moz);me_to_moz=new Function("to_moz","to_moz_block","return("+me_to_moz+")")(to_moz,to_moz_block);MOZ_TO_ME[moztype]=moz_to_me;def_to_moz(mytype,me_to_moz)}var FROM_MOZ_STACK=null;function from_moz(node){FROM_MOZ_STACK.push(node);var ret=node!=null?MOZ_TO_ME[node.type](node):null;FROM_MOZ_STACK.pop();return ret}AST_Node.from_mozilla_ast=function(node){var save_stack=FROM_MOZ_STACK;FROM_MOZ_STACK=[];var ast=from_moz(node);FROM_MOZ_STACK=save_stack;return ast};function set_moz_loc(mynode,moznode,myparent){var start=mynode.start;var end=mynode.end;if(start.pos!=null&&end.endpos!=null){moznode.range=[start.pos,end.endpos]}if(start.line){moznode.loc={start:{line:start.line,column:start.col},end:end.endline?{line:end.endline,column:end.endcol}:null};if(start.file){moznode.loc.source=start.file}}return moznode}function def_to_moz(mytype,handler){mytype.DEFMETHOD("to_mozilla_ast",function(){return set_moz_loc(this,handler(this))})}function to_moz(node){return node!=null?node.to_mozilla_ast():null}function to_moz_block(node){return{type:"BlockStatement",body:node.body.map(to_moz)}}})();"use strict";function find_builtins(){var a=[];[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp].forEach(function(ctor){Object.getOwnPropertyNames(ctor).map(add);if(ctor.prototype){Object.getOwnPropertyNames(ctor.prototype).map(add)}});function add(name){push_uniq(a,name)}return a}function mangle_properties(ast,options){options=defaults(options,{reserved:null,cache:null});var reserved=options.reserved;if(reserved==null)reserved=find_builtins();var cache=options.cache;if(cache==null){cache={cname:-1,props:new Dictionary}}var names_to_mangle=[];ast.walk(new TreeWalker(function(node){if(node instanceof AST_ObjectKeyVal){add(node.key)}else if(node instanceof AST_ObjectProperty){add(node.key.name)}else if(node instanceof AST_Dot){if(this.parent()instanceof AST_Assign){add(node.property)}}else if(node instanceof AST_Sub){if(this.parent()instanceof AST_Assign){addStrings(node.property)}}}));return ast.transform(new TreeTransformer(function(node){if(node instanceof AST_ObjectKeyVal){if(should_mangle(node.key)){node.key=mangle(node.key)}}else if(node instanceof AST_ObjectProperty){if(should_mangle(node.key.name)){node.key.name=mangle(node.key.name)}}else if(node instanceof AST_Dot){if(should_mangle(node.property)){node.property=mangle(node.property)}}else if(node instanceof AST_Sub){node.property=mangleStrings(node.property)}}));function can_mangle(name){if(reserved.indexOf(name)>=0)return false;if(/^[0-9.]+$/.test(name))return false;return true}function should_mangle(name){return cache.props.has(name)||names_to_mangle.indexOf(name)>=0}function add(name){if(can_mangle(name))push_uniq(names_to_mangle,name)}function mangle(name){var mangled=cache.props.get(name);if(!mangled){do{mangled=base54(++cache.cname)}while(!can_mangle(mangled));cache.props.set(name,mangled)}return mangled}function addStrings(node){var out={};try{(function walk(node){node.walk(new TreeWalker(function(node){if(node instanceof AST_Seq){walk(node.cdr);return true}if(node instanceof AST_String){add(node.value);return true}if(node instanceof AST_Conditional){walk(node.consequent);walk(node.alternative);return true}throw out}))})(node)}catch(ex){if(ex!==out)throw ex}}function mangleStrings(node){return node.transform(new TreeTransformer(function(node){if(node instanceof AST_Seq){node.cdr=mangleStrings(node.cdr)}else if(node instanceof AST_String){if(should_mangle(node.value)){node.value=mangle(node.value)}}else if(node instanceof AST_Conditional){node.consequent=mangleStrings(node.consequent);node.alternative=mangleStrings(node.alternative)}return node}))}}exports["array_to_hash"]=array_to_hash;exports["slice"]=slice;exports["characters"]=characters;exports["member"]=member;exports["find_if"]=find_if;exports["repeat_string"]=repeat_string;exports["DefaultsError"]=DefaultsError;exports["defaults"]=defaults;exports["merge"]=merge;exports["noop"]=noop;exports["MAP"]=MAP;exports["push_uniq"]=push_uniq;exports["string_template"]=string_template;exports["remove"]=remove;exports["mergeSort"]=mergeSort;exports["set_difference"]=set_difference;exports["set_intersection"]=set_intersection;exports["makePredicate"]=makePredicate;exports["all"]=all;exports["Dictionary"]=Dictionary;exports["DEFNODE"]=DEFNODE;exports["AST_Token"]=AST_Token;exports["AST_Node"]=AST_Node;exports["AST_Statement"]=AST_Statement;exports["AST_Debugger"]=AST_Debugger;exports["AST_Directive"]=AST_Directive;exports["AST_SimpleStatement"]=AST_SimpleStatement;exports["walk_body"]=walk_body;exports["AST_Block"]=AST_Block;exports["AST_BlockStatement"]=AST_BlockStatement;exports["AST_EmptyStatement"]=AST_EmptyStatement;exports["AST_StatementWithBody"]=AST_StatementWithBody;exports["AST_LabeledStatement"]=AST_LabeledStatement;exports["AST_IterationStatement"]=AST_IterationStatement;exports["AST_DWLoop"]=AST_DWLoop;exports["AST_Do"]=AST_Do;exports["AST_While"]=AST_While;exports["AST_For"]=AST_For;exports["AST_ForIn"]=AST_ForIn;exports["AST_With"]=AST_With;exports["AST_Scope"]=AST_Scope;exports["AST_Toplevel"]=AST_Toplevel;exports["AST_Lambda"]=AST_Lambda;exports["AST_Accessor"]=AST_Accessor;exports["AST_Function"]=AST_Function;exports["AST_Defun"]=AST_Defun;exports["AST_Jump"]=AST_Jump;exports["AST_Exit"]=AST_Exit;exports["AST_Return"]=AST_Return;exports["AST_Throw"]=AST_Throw;exports["AST_LoopControl"]=AST_LoopControl;exports["AST_Break"]=AST_Break;exports["AST_Continue"]=AST_Continue;exports["AST_If"]=AST_If;exports["AST_Switch"]=AST_Switch;exports["AST_SwitchBranch"]=AST_SwitchBranch;exports["AST_Default"]=AST_Default;exports["AST_Case"]=AST_Case;exports["AST_Try"]=AST_Try;exports["AST_Catch"]=AST_Catch;exports["AST_Finally"]=AST_Finally;exports["AST_Definitions"]=AST_Definitions;exports["AST_Var"]=AST_Var;exports["AST_Const"]=AST_Const;exports["AST_VarDef"]=AST_VarDef;exports["AST_Call"]=AST_Call;exports["AST_New"]=AST_New;exports["AST_Seq"]=AST_Seq;exports["AST_PropAccess"]=AST_PropAccess;exports["AST_Dot"]=AST_Dot;exports["AST_Sub"]=AST_Sub;exports["AST_Unary"]=AST_Unary;exports["AST_UnaryPrefix"]=AST_UnaryPrefix;exports["AST_UnaryPostfix"]=AST_UnaryPostfix;exports["AST_Binary"]=AST_Binary;exports["AST_Conditional"]=AST_Conditional;exports["AST_Assign"]=AST_Assign;exports["AST_Array"]=AST_Array;exports["AST_Object"]=AST_Object;exports["AST_ObjectProperty"]=AST_ObjectProperty;exports["AST_ObjectKeyVal"]=AST_ObjectKeyVal;exports["AST_ObjectSetter"]=AST_ObjectSetter;exports["AST_ObjectGetter"]=AST_ObjectGetter;exports["AST_Symbol"]=AST_Symbol;exports["AST_SymbolAccessor"]=AST_SymbolAccessor;exports["AST_SymbolDeclaration"]=AST_SymbolDeclaration;exports["AST_SymbolVar"]=AST_SymbolVar;exports["AST_SymbolConst"]=AST_SymbolConst;exports["AST_SymbolFunarg"]=AST_SymbolFunarg;exports["AST_SymbolDefun"]=AST_SymbolDefun;exports["AST_SymbolLambda"]=AST_SymbolLambda;exports["AST_SymbolCatch"]=AST_SymbolCatch;exports["AST_Label"]=AST_Label;exports["AST_SymbolRef"]=AST_SymbolRef;exports["AST_LabelRef"]=AST_LabelRef;exports["AST_This"]=AST_This;exports["AST_Constant"]=AST_Constant;exports["AST_String"]=AST_String;exports["AST_Number"]=AST_Number;exports["AST_RegExp"]=AST_RegExp;exports["AST_Atom"]=AST_Atom;exports["AST_Null"]=AST_Null;exports["AST_NaN"]=AST_NaN;exports["AST_Undefined"]=AST_Undefined;exports["AST_Hole"]=AST_Hole;exports["AST_Infinity"]=AST_Infinity;exports["AST_Boolean"]=AST_Boolean;exports["AST_False"]=AST_False;exports["AST_True"]=AST_True;exports["TreeWalker"]=TreeWalker;exports["KEYWORDS"]=KEYWORDS;exports["KEYWORDS_ATOM"]=KEYWORDS_ATOM;exports["RESERVED_WORDS"]=RESERVED_WORDS;exports["KEYWORDS_BEFORE_EXPRESSION"]=KEYWORDS_BEFORE_EXPRESSION;exports["OPERATOR_CHARS"]=OPERATOR_CHARS;exports["RE_HEX_NUMBER"]=RE_HEX_NUMBER;exports["RE_OCT_NUMBER"]=RE_OCT_NUMBER;exports["RE_DEC_NUMBER"]=RE_DEC_NUMBER;exports["OPERATORS"]=OPERATORS;exports["WHITESPACE_CHARS"]=WHITESPACE_CHARS;exports["PUNC_BEFORE_EXPRESSION"]=PUNC_BEFORE_EXPRESSION;exports["PUNC_CHARS"]=PUNC_CHARS;exports["REGEXP_MODIFIERS"]=REGEXP_MODIFIERS;exports["UNICODE"]=UNICODE;exports["is_letter"]=is_letter;exports["is_digit"]=is_digit;exports["is_alphanumeric_char"]=is_alphanumeric_char;exports["is_unicode_digit"]=is_unicode_digit;exports["is_unicode_combining_mark"]=is_unicode_combining_mark;exports["is_unicode_connector_punctuation"]=is_unicode_connector_punctuation;exports["is_identifier"]=is_identifier;exports["is_identifier_start"]=is_identifier_start;exports["is_identifier_char"]=is_identifier_char;exports["is_identifier_string"]=is_identifier_string;exports["parse_js_number"]=parse_js_number;exports["JS_Parse_Error"]=JS_Parse_Error;exports["js_error"]=js_error;exports["is_token"]=is_token;exports["EX_EOF"]=EX_EOF;exports["tokenizer"]=tokenizer;exports["UNARY_PREFIX"]=UNARY_PREFIX;exports["UNARY_POSTFIX"]=UNARY_POSTFIX;exports["ASSIGNMENT"]=ASSIGNMENT;exports["PRECEDENCE"]=PRECEDENCE;exports["STATEMENTS_WITH_LABELS"]=STATEMENTS_WITH_LABELS;exports["ATOMIC_START_TOKEN"]=ATOMIC_START_TOKEN;exports["parse"]=parse;exports["TreeTransformer"]=TreeTransformer;exports["SymbolDef"]=SymbolDef;exports["base54"]=base54;exports["OutputStream"]=OutputStream;exports["Compressor"]=Compressor;exports["SourceMap"]=SourceMap;exports["find_builtins"]=find_builtins;exports["mangle_properties"]=mangle_properties})({},function(){return this}()); \ No newline at end of file diff --git a/package.json b/package.json index 65950d2..345da4b 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ }, "dependencies": { "change-case": "2.3.x", - "clean-css": "3.1.x", + "clean-css": "3.2.x", "cli": "0.6.x", "concat-stream": "1.4.x", "uglify-js": "2.4.x", -- 2.34.1