Advertisement
Guest User

Minified via command line

a guest
Jun 13th, 2018
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);$jscomp.checkEs6ConformanceViaProxy=function(){try{var b={},g=Object.create(new $jscomp.global.Proxy(b,{get:function(e,d,c){return e==b&&"q"==d&&c==g}}));return!0===g.q}catch(e){return!1}};$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;
  2. $jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,g,e){b!=Array.prototype&&b!=Object.prototype&&(b[g]=e.value)};$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
  3. $jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var b=0;return function(g){return $jscomp.SYMBOL_PREFIX+(g||"")+b++}}();
  4. $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var b=$jscomp.global.Symbol.iterator;b||(b=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[b]&&$jscomp.defineProperty(Array.prototype,b,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(b){var g=0;return $jscomp.iteratorPrototype(function(){return g<b.length?{done:!1,value:b[g++]}:{done:!0}})};
  5. $jscomp.iteratorPrototype=function(b){$jscomp.initSymbolIterator();b={next:b};b[$jscomp.global.Symbol.iterator]=function(){return this};return b};$jscomp.makeIterator=function(b){$jscomp.initSymbolIterator();var g=b[Symbol.iterator];return g?g.call(b):$jscomp.arrayIterator(b)};$jscomp.owns=function(b,g){return Object.prototype.hasOwnProperty.call(b,g)};
  6. $jscomp.polyfill=function(b,g,e,d){if(g){e=$jscomp.global;b=b.split(".");for(d=0;d<b.length-1;d++){var c=b[d];c in e||(e[c]={});e=e[c]}b=b[b.length-1];d=e[b];g=g(d);g!=d&&null!=g&&$jscomp.defineProperty(e,b,{configurable:!0,writable:!0,value:g})}};
  7. $jscomp.polyfill("WeakMap",function(b){function g(){if(!b||!Object.seal)return!1;try{var d=Object.seal({}),f=Object.seal({}),k=new b([[d,2],[f,3]]);if(2!=k.get(d)||3!=k.get(f))return!1;k.delete(d);k.set(f,4);return!k.has(d)&&4==k.get(f)}catch(m){return!1}}function e(b){$jscomp.owns(b,c)||$jscomp.defineProperty(b,c,{value:{}})}function d(b){var f=Object[b];f&&(Object[b]=function(b){e(b);return f(b)})}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(b&&$jscomp.ES6_CONFORMANCE)return b}else if(g())return b;
  8. var c="$jscomp_hidden_"+Math.random();d("freeze");d("preventExtensions");d("seal");var l=0,h=function(b){this.id_=(l+=Math.random()+1).toString();if(b){$jscomp.initSymbol();$jscomp.initSymbolIterator();b=$jscomp.makeIterator(b);for(var f;!(f=b.next()).done;)f=f.value,this.set(f[0],f[1])}};h.prototype.set=function(b,f){e(b);if(!$jscomp.owns(b,c))throw Error("WeakMap key fail: "+b);b[c][this.id_]=f;return this};h.prototype.get=function(b){return $jscomp.owns(b,c)?b[c][this.id_]:void 0};h.prototype.has=
  9. function(b){return $jscomp.owns(b,c)&&$jscomp.owns(b[c],this.id_)};h.prototype.delete=function(b){return $jscomp.owns(b,c)&&$jscomp.owns(b[c],this.id_)?delete b[c][this.id_]:!1};return h},"es6","es3");$jscomp.MapEntry=function(){};
  10. $jscomp.polyfill("Map",function(b){function g(){if($jscomp.ASSUME_NO_NATIVE_MAP||!b||"function"!=typeof b||!b.prototype.entries||"function"!=typeof Object.seal)return!1;try{var f=Object.seal({x:4}),d=new b($jscomp.makeIterator([[f,"s"]]));if("s"!=d.get(f)||1!=d.size||d.get({x:4})||d.set({x:4},"t")!=d||2!=d.size)return!1;var m=d.entries(),c=m.next();if(c.done||c.value[0]!=f||"s"!=c.value[1])return!1;c=m.next();return c.done||4!=c.value[0].x||"t"!=c.value[1]||!m.next().done?!1:!0}catch(p){return!1}}
  11. if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(b&&$jscomp.ES6_CONFORMANCE)return b}else if(g())return b;$jscomp.initSymbol();$jscomp.initSymbolIterator();var e=new WeakMap,d=function(b){this.data_={};this.head_=h();this.size=0;if(b){b=$jscomp.makeIterator(b);for(var f;!(f=b.next()).done;)f=f.value,this.set(f[0],f[1])}};d.prototype.set=function(b,d){b=0===b?0:b;var f=c(this,b);f.list||(f.list=this.data_[f.id]=[]);f.entry?f.entry.value=d:(f.entry={next:this.head_,previous:this.head_.previous,head:this.head_,
  12. key:b,value:d},f.list.push(f.entry),this.head_.previous.next=f.entry,this.head_.previous=f.entry,this.size++);return this};d.prototype.delete=function(b){b=c(this,b);return b.entry&&b.list?(b.list.splice(b.index,1),b.list.length||delete this.data_[b.id],b.entry.previous.next=b.entry.next,b.entry.next.previous=b.entry.previous,b.entry.head=null,this.size--,!0):!1};d.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=h();this.size=0};d.prototype.has=function(b){return!!c(this,b).entry};
  13. d.prototype.get=function(b){return(b=c(this,b).entry)&&b.value};d.prototype.entries=function(){return l(this,function(b){return[b.key,b.value]})};d.prototype.keys=function(){return l(this,function(b){return b.key})};d.prototype.values=function(){return l(this,function(b){return b.value})};d.prototype.forEach=function(b,d){for(var f=this.entries(),c;!(c=f.next()).done;)c=c.value,b.call(d,c[1],c[0],this)};d.prototype[Symbol.iterator]=d.prototype.entries;var c=function(b,d){var c=d&&typeof d;"object"==
  14. c||"function"==c?e.has(d)?c=e.get(d):(c=""+ ++n,e.set(d,c)):c="p_"+d;var f=b.data_[c];if(f&&$jscomp.owns(b.data_,c))for(b=0;b<f.length;b++){var g=f[b];if(d!==d&&g.key!==g.key||d===g.key)return{id:c,list:f,index:b,entry:g}}return{id:c,list:f,index:-1,entry:void 0}},l=function(b,d){var c=b.head_;return $jscomp.iteratorPrototype(function(){if(c){for(;c.head!=b.head_;)c=c.previous;for(;c.next!=c.head;)return c=c.next,{done:!1,value:d(c)};c=null}return{done:!0,value:void 0}})},h=function(){var b={};return b.previous=
  15. b.next=b.head=b},n=0;return d},"es6","es3");
  16. $jscomp.polyfill("Set",function(b){function g(){if($jscomp.ASSUME_NO_NATIVE_SET||!b||"function"!=typeof b||!b.prototype.entries||"function"!=typeof Object.seal)return!1;try{var d=Object.seal({x:4}),c=new b($jscomp.makeIterator([d]));if(!c.has(d)||1!=c.size||c.add(d)!=c||1!=c.size||c.add({x:4})!=c||2!=c.size)return!1;var g=c.entries(),e=g.next();if(e.done||e.value[0]!=d||e.value[1]!=d)return!1;e=g.next();return e.done||e.value[0]==d||4!=e.value[0].x||e.value[1]!=e.value[0]?!1:g.next().done}catch(n){return!1}}
  17. if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(b&&$jscomp.ES6_CONFORMANCE)return b}else if(g())return b;$jscomp.initSymbol();$jscomp.initSymbolIterator();var e=function(b){this.map_=new Map;if(b){b=$jscomp.makeIterator(b);for(var d;!(d=b.next()).done;)this.add(d.value)}this.size=this.map_.size};e.prototype.add=function(b){b=0===b?0:b;this.map_.set(b,b);this.size=this.map_.size;return this};e.prototype.delete=function(b){b=this.map_.delete(b);this.size=this.map_.size;return b};e.prototype.clear=
  18. function(){this.map_.clear();this.size=0};e.prototype.has=function(b){return this.map_.has(b)};e.prototype.entries=function(){return this.map_.entries()};e.prototype.values=function(){return this.map_.values()};e.prototype.keys=e.prototype.values;e.prototype[Symbol.iterator]=e.prototype.values;e.prototype.forEach=function(b,c){var d=this;this.map_.forEach(function(e){return b.call(c,e,e,d)})};return e},"es6","es3");function a(b){alert(b)}
  19. $(document).ready(function(){var b=new Set;$("#myButton").click(function(){a("CLICKED");b.clear();for(var g=0;10>g;g++)b.add(g)})});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement