Comparing version 0.6.1 to 0.6.2
@@ -336,4 +336,5 @@ /******/ (function(modules) { // webpackBootstrap | ||
var _uncaughtPromiseErrors = []; | ||
function scheduleMicroTask(task) { | ||
if (!_currentTask && _microTaskQueue.length == 0) { | ||
var _drainScheduled = false; | ||
function scheduleQueueDrain() { | ||
if (!_drainScheduled && !_currentTask && _microTaskQueue.length == 0) { | ||
// We are not running in Task, so we need to kickstart the microtask queue. | ||
@@ -347,4 +348,14 @@ if (global[symbolPromise]) { | ||
} | ||
} | ||
function scheduleMicroTask(task) { | ||
scheduleQueueDrain(); | ||
_microTaskQueue.push(task); | ||
} | ||
function consoleError(e) { | ||
var rejection = e && e.rejection; | ||
if (rejection) { | ||
console.error('Unhandled Promise rejection:', rejection instanceof Error ? rejection.message : rejection, '; Zone:', e.zone.name, '; Task:', e.task && e.task.source, '; Value:', rejection); | ||
} | ||
console.error(e); | ||
} | ||
function drainMicroTaskQueue() { | ||
@@ -362,3 +373,3 @@ if (!_isDrainingMicrotaskQueue) { | ||
catch (e) { | ||
console.error(e, e instanceof Error ? e.stack : undefined); | ||
consoleError(e); | ||
} | ||
@@ -376,3 +387,3 @@ } | ||
catch (e) { | ||
console.error(e, e instanceof Error ? e.stack : undefined); | ||
consoleError(e); | ||
} | ||
@@ -382,2 +393,3 @@ } | ||
_isDrainingMicrotaskQueue = false; | ||
_drainScheduled = false; | ||
} | ||
@@ -431,2 +443,3 @@ } | ||
_uncaughtPromiseErrors.push(error); | ||
scheduleQueueDrain(); | ||
} | ||
@@ -433,0 +446,0 @@ } |
@@ -414,4 +414,5 @@ /******/ (function(modules) { // webpackBootstrap | ||
var _uncaughtPromiseErrors = []; | ||
function scheduleMicroTask(task) { | ||
if (!_currentTask && _microTaskQueue.length == 0) { | ||
var _drainScheduled = false; | ||
function scheduleQueueDrain() { | ||
if (!_drainScheduled && !_currentTask && _microTaskQueue.length == 0) { | ||
// We are not running in Task, so we need to kickstart the microtask queue. | ||
@@ -425,4 +426,14 @@ if (global[symbolPromise]) { | ||
} | ||
} | ||
function scheduleMicroTask(task) { | ||
scheduleQueueDrain(); | ||
_microTaskQueue.push(task); | ||
} | ||
function consoleError(e) { | ||
var rejection = e && e.rejection; | ||
if (rejection) { | ||
console.error('Unhandled Promise rejection:', rejection instanceof Error ? rejection.message : rejection, '; Zone:', e.zone.name, '; Task:', e.task && e.task.source, '; Value:', rejection); | ||
} | ||
console.error(e); | ||
} | ||
function drainMicroTaskQueue() { | ||
@@ -440,3 +451,3 @@ if (!_isDrainingMicrotaskQueue) { | ||
catch (e) { | ||
console.error(e, e instanceof Error ? e.stack : undefined); | ||
consoleError(e); | ||
} | ||
@@ -454,3 +465,3 @@ } | ||
catch (e) { | ||
console.error(e, e instanceof Error ? e.stack : undefined); | ||
consoleError(e); | ||
} | ||
@@ -460,2 +471,3 @@ } | ||
_isDrainingMicrotaskQueue = false; | ||
_drainScheduled = false; | ||
} | ||
@@ -509,2 +521,3 @@ } | ||
_uncaughtPromiseErrors.push(error); | ||
scheduleQueueDrain(); | ||
} | ||
@@ -511,0 +524,0 @@ } |
@@ -1,1 +0,1 @@ | ||
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,exports,t){(function(e){"use strict";function n(e,t,n,r){function o(t){var n=t.data;return n.args[0]=t.invoke,n.handleId=i.apply(e,n.args),t}function a(e){return c(e.data.handleId)}t+=r,n+=r;var i=s.patchMethod(e,t,function(){return function(n,s){if("function"==typeof s[0]){var c=Zone.current,u={handleId:null,isPeriodic:"Interval"==r,delay:"Timeout"==r||"Interval"==r?s[1]||0:null,args:s};return c.scheduleMacroTask(t,s[0],u,o,a)}return i.apply(e,s)}}),c=s.patchMethod(e,n,function(){return function(e,t){var n=t[0];n.zone.cancelTask(n)}})}t(1);var r=t(2),o=t(4),a=t(5),i=t(6),s=t(3),c="set",u="clear",l=["alert","prompt","confirm"];n(e,c,u,"Timeout"),n(e,c,u,"Interval"),n(e,c,u,"Immediate"),n(e,"request","cancelMacroTask","AnimationFrame"),n(e,"mozRequest","mozCancel","AnimationFrame"),n(e,"webkitRequest","webkitCancel","AnimationFrame");for(var h=0;h<l.length;h++){var p=l[h];s.patchMethod(e,p,function(t,n,r){return function(n,o){return Zone.current.run(t,e,o,r)}})}r.eventTargetPatch(),i.propertyDescriptorPatch(),s.patchClass("MutationObserver"),s.patchClass("WebKitMutationObserver"),s.patchClass("FileReader"),o.propertyPatch(),a.registerElementPatch(),e.navigator&&e.navigator.geolocation&&s.patchPrototype(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}).call(exports,function(){return this}())},function(e,exports){(function(e){(function(e){function t(e){return"__zone_symbol__"+e}function n(t){y||0!=m.length||(e[v]?e[v].resolve(0)[k](r):e[d](r,0)),m.push(t)}function r(){if(!T){for(T=!0;m.length;){var e=m;m=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(r){console.error(r,r instanceof Error?r.stack:void 0)}}}for(;_.length;){var o=_;_=[];for(var t=0;t<o.length;t++){var a=o[t];try{a.zone.runGuarded(function(){throw a})}catch(r){console.error(r,r instanceof Error?r.stack:void 0)}}}T=!1}}function o(e){return e&&e.then}function a(e){return e}function i(e){return O.reject(e)}function s(e,t){return function(n){c(e,t,n)}}function c(e,t,n){if(e[b]===S)if(n instanceof O&&n[b]!==S)u(n),c(e,n[b],n[w]);else if(o(n))n.then(s(e,t),s(e,!1));else{e[b]=t;var r=e[w];e[w]=n;for(var a=0;a<r.length;)l(e,r[a++],r[a++],r[a++],r[a++]);if(0==r.length&&t==D){e[b]=z;try{throw new Error("Uncaught (in promise): "+n)}catch(i){var p=i;p.rejection=n,p.promise=e,p.zone=h.current,p.task=h.currentTask,_.push(p)}}}return e}function u(e){if(e[b]===z){e[b]=D;for(var t=0;t<_.length;t++)if(e===_[t].promise){_.splice(t,1);break}}}function l(e,t,n,r,o){u(e);var s=e[b]?r||a:o||i;t.scheduleMicroTask(E,function(){try{c(n,!0,t.run(s,null,[e[w]]))}catch(r){c(n,!1,r)}})}var h=function(){function e(e,t){this._properties=null,this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new p(this,this._parent&&this._parent._zoneDelegate,t)}return Object.defineProperty(e,"current",{get:function(){return g},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentTask",{get:function(){return y},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),e.prototype.get=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t._properties[e];t=t._parent}},e.prototype.fork=function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)},e.prototype.wrap=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var e=this._zoneDelegate.intercept(this,e,t),n=this;return function(){return n.runGuarded(e,this,arguments,t)}},e.prototype.run=function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null);var o=g;g=this;try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{g=o}},e.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null);var o=g;g=this;try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{g=o}},e.prototype.runTask=function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone which created it! (Creation: "+e.zone.name+"; Execution: "+this.name+")");var r=y;y=e;var o=g;g=this;try{try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{g=o,y=r,"microTask"==e.type}},e.prototype.scheduleMicroTask=function(e,t,n,r){return this._zoneDelegate.scheduleTask(this,new f("microTask",this,e,t,n,r,null))},e.prototype.scheduleMacroTask=function(e,t,n,r,o){return this._zoneDelegate.scheduleTask(this,new f("macroTask",this,e,t,n,r,o))},e.prototype.scheduleEventTask=function(e,t,n,r,o){return this._zoneDelegate.scheduleTask(this,new f("eventTask",this,e,t,n,r,o))},e.prototype.cancelTask=function(e){var t=this._zoneDelegate.cancelTask(this,e);return e.cancelFn=null,t},e.__symbol__=t,e}(),p=function(){function e(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._hasTaskZS=n&&(n.onHasTask?n:t._hasTaskZS),this._hasTaskDlgt=n&&(n.onHasTask?t:t._hasTaskDlgt)}return e.prototype.fork=function(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new h(e,t)},e.prototype.intercept=function(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this.zone,e,t,n):t},e.prototype.invoke=function(e,t,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this.zone,e,t,n,r,o):t.apply(n,r)},e.prototype.handleError=function(e,t){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this.zone,e,t):!0},e.prototype.scheduleTask=function(e,t){try{if(this._scheduleTaskZS)return this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this.zone,e,t);if(t.scheduleFn)t.scheduleFn(t);else{if("microTask"!=t.type)throw new Error("Task is missing scheduleFn.");n(t)}return t}finally{e==this.zone&&this._updateTaskCount(t.type,1)}},e.prototype.invokeTask=function(e,t,n,r){try{return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this.zone,e,t,n,r):t.callback.apply(n,r)}finally{e!=this.zone||"eventTask"==t.type||t.data&&t.data.isPeriodic||this._updateTaskCount(t.type,-1)}},e.prototype.cancelTask=function(e,t){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this.zone,e,t);else{if(!t.cancelFn)throw new Error("Task does not support cancellation, or is already canceled.");n=t.cancelFn(t)}return e==this.zone&&this._updateTaskCount(t.type,-1),n},e.prototype.hasTask=function(e,t){return this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this.zone,e,t)},e.prototype._updateTaskCount=function(e,t){var n=this._taskCounts,r=n[e],o=n[e]=r+t;if(0>o)throw new Error("More tasks executed then were scheduled.");if(0==r||0==o){var a={microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e};try{this.hasTask(this.zone,a)}finally{this._parentDelegate&&this._parentDelegate._updateTaskCount(e,t)}}},e}(),f=function(){function e(e,t,n,o,a,i,s){this.type=e,this.zone=t,this.source=n,this.data=a,this.scheduleFn=i,this.cancelFn=s,this.callback=o;var c=this;this.invoke=function(){try{return t.runTask(c,this,arguments)}finally{r()}}}return e}(),d=t("setTimeout"),v=t("Promise"),k=t("then"),g=new h(null,null),y=null,m=[],T=!1,_=[],b=t("state"),w=t("value"),E="Promise.then",S=null,P=!0,D=!1,z=0,O=function(){function e(e){var t=this;t[b]=S,t[w]=[];try{e&&e(s(t,P),s(t,D))}catch(n){c(t,!1,n)}}return e.resolve=function(e){return c(new this(null),P,e)},e.reject=function(e){return c(new this(null),D,e)},e.race=function(e){function t(e){i&&(i=r(e))}function n(e){i&&(i=a(e))}for(var r,a,i=new this(function(e,t){r=e,a=t}),s=0,c=e;s<c.length;s++){var u=c[s];o(u)||(u=this.resolve(u)),u.then(t,n)}return i},e.all=function(e){function t(e){a&&r(e),a=null}for(var n,r,a=new this(function(e,t){n=e,r=t}),i=[],s=0,c=0,u=e;c<u.length;c++){var l=u[c];o(l)||(l=this.resolve(l)),l.then(function(e){return function(t){i[e]=t,s--,a&&!s&&n(i)}}(s),t),s++}return s||n(i),a},e.prototype.then=function(t,n){var r=new e(null),o=h.current;return this[b]==S?this[w].push(o,r,t,n):l(this,o,r,t,n),r},e.prototype["catch"]=function(e){return this.then(null,e)},e}(),Z=e[t("Promise")]=e.Promise;if(e.Promise=O,Z){var C=Z.prototype,M=C[t("then")]=C.then;C.then=function(e,t){var n=this;return new O(function(e,t){M.call(n,e,t)}).then(e,t)}}return e.Zone=h})(function(){try{return window}catch(t){return e}}())}).call(exports,function(){return this}())},function(e,exports,t){(function(e){"use strict";function n(){var t=[],n=e.wtf;n?t=o.split(",").map(function(e){return"HTML"+e+"Element"}).concat(a):e[i]?t.push(i):t=a;for(var s=0;s<t.length;s++){var c=e[t[s]];r.patchEventTargetMethods(c&&c.prototype)}}var r=t(3),o="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video",a="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),i="EventTarget";exports.eventTargetPatch=n}).call(exports,function(){return this}())},function(e,exports){(function(e){"use strict";function t(e,t){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=Zone.current.wrap(e[n],t+"_"+n));return e}function n(e,n){for(var r=e.constructor.name,o=0;o<n.length;o++){var a=n[o],i=e[a];i&&(e[a]=function(e){return function(){return e.apply(this,t(arguments,r+"."+a))}}(i))}}function r(e,t){var n=Object.getOwnPropertyDescriptor(e,t)||{enumerable:!0,configurable:!0};delete n.writable,delete n.value;var r=t.substr(2),o="_"+t;n.set=function(e){this[o]&&this.removeEventListener(r,this[o]),"function"==typeof e?(this[o]=e,this.addEventListener(r,e,!1)):this[o]=null},n.get=function(){return this[o]},Object.defineProperty(e,t,n)}function o(e,t){var n=[];for(var o in e)"on"==o.substr(0,2)&&n.push(o);for(var a=0;a<n.length;a++)r(e,n[a]);if(t)for(var i=0;i<t.length;i++)r(e,"on"+t[i])}function a(e,t,n,r,o){var a=e[v];if(a)for(var i=0;i<a.length;i++){var s=a[i],c=s.data;if(c.handler===t&&c.useCapturing===r&&c.eventName===n)return o&&a.splice(i,1),s}return null}function i(e,t){var n=e[v];n||(n=e[v]=[]),n.push(t)}function s(e){var t=e.data;return i(t.target,e),t.target[y](t.eventName,e.invoke,t.useCapturing)}function c(e){var t=e.data;a(t.target,e.invoke,t.eventName,t.useCapturing,!0),t.target[m](t.eventName,e.invoke,t.useCapturing)}function u(t,n){var r=n[0],o=n[1],i=n[2]||!1,u=t||e,l=null;if("function"==typeof o?l=o:o&&o.handleEvent&&(l=function(e){return o.handleEvent(e)}),!l||o&&"[object FunctionWrapper]"===o.toString())return u[y](r,o,i);var h=a(u,o,r,i,!1);if(h)return u[y](r,h.invoke,i);var p=Zone.current,f=u.constructor.name+".addEventListener:"+r,d={target:u,eventName:r,name:r,useCapturing:i,handler:o};p.scheduleEventTask(f,l,d,s,c)}function l(t,n){var r=n[0],o=n[1],i=n[2]||!1,s=t||e,c=a(s,o,r,i,!1);c?c.zone.cancelTask(c):s[m](r,o,i)}function h(e){return e&&e.addEventListener?(d(e,k,function(){return u}),d(e,g,function(){return l}),!0):!1}function p(n){var r=e[n];if(r){e[n]=function(){var e=t(arguments,n);switch(e.length){case 0:this[T]=new r;break;case 1:this[T]=new r(e[0]);break;case 2:this[T]=new r(e[0],e[1]);break;case 3:this[T]=new r(e[0],e[1],e[2]);break;case 4:this[T]=new r(e[0],e[1],e[2],e[3]);break;default:throw new Error("Arg list too long.")}};var o,a=new r(function(){});for(o in a)!function(t){"function"==typeof a[t]?e[n].prototype[t]=function(){return this[T][t].apply(this[T],arguments)}:Object.defineProperty(e[n].prototype,t,{set:function(e){"function"==typeof e?this[T][t]=Zone.current.wrap(e,n+"."+t):this[T][t]=e},get:function(){return this[T][t]}})}(o);for(o in r)"prototype"!==o&&r.hasOwnProperty(o)&&(e[n][o]=r[o])}}function f(e,t){try{return Function("f","return function "+e+"(){return f(this, arguments)}")(t)}catch(n){return function(){return t(this,arguments)}}}function d(e,t,n){for(var r=e;r&&!r.hasOwnProperty(t);)r=Object.getPrototypeOf(r);!r&&e[t]&&(r=e);var o,a=exports.zoneSymbol(t);return r&&!(o=r[a])&&(o=r[a]=r[t],r[t]=f(t,n(o,a,t))),o}exports.zoneSymbol=Zone.__symbol__,exports.bindArguments=t,exports.patchPrototype=n,exports.isWebWorker="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,exports.isNode="undefined"!=typeof process&&"[object process]"==={}.toString.call(process),exports.isBrowser=!exports.isNode&&!exports.isWebWorker&&!(!window||!window.HTMLElement),exports.patchProperty=r,exports.patchOnProperties=o;var v=exports.zoneSymbol("eventTasks"),k="addEventListener",g="removeEventListener",y=exports.zoneSymbol(k),m=exports.zoneSymbol(g);exports.patchEventTargetMethods=h;var T=exports.zoneSymbol("originalInstance");exports.patchClass=p,exports.createNamedFn=f,exports.patchMethod=d}).call(exports,function(){return this}())},function(e,exports,t){"use strict";function n(){Object.defineProperty=function(e,t,n){if(o(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);return"prototype"!==t&&(n=a(e,t,n)),s(e,t,n)},Object.defineProperties=function(e,t){return Object.keys(t).forEach(function(n){Object.defineProperty(e,n,t[n])}),e},Object.create=function(e,t){return"object"==typeof t&&Object.keys(t).forEach(function(n){t[n]=a(e,n,t[n])}),u(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=c(e,t);return o(e,t)&&(n.configurable=!1),n}}function r(e,t,n){return n=a(e,t,n),s(e,t,n)}function o(e,t){return e&&e[l]&&e[l][t]}function a(e,t,n){return n.configurable=!0,n.configurable||(e[l]||s(e,l,{writable:!0,value:{}}),e[l][t]=!0),n}var i=t(3),s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.create,l=i.zoneSymbol("unconfigurables");exports.propertyPatch=n,exports._redefineProperty=r},function(e,exports,t){(function(e){"use strict";function n(){if(o.isBrowser&&"registerElement"in e.document){var t=document.registerElement,n=["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"];document.registerElement=function(e,o){return o&&o.prototype&&n.forEach(function(e){var t="Document.registerElement::"+e;if(o.prototype.hasOwnProperty(e)){var n=Object.getOwnPropertyDescriptor(o.prototype,e);n&&n.value?(n.value=Zone.current.wrap(n.value,t),r._redefineProperty(o.prototype,e,n)):o.prototype[e]=Zone.current.wrap(o.prototype[e],t)}else o.prototype[e]&&(o.prototype[e]=Zone.current.wrap(o.prototype[e],t))}),t.apply(document,[e,o])}}}var r=t(4),o=t(3);exports.registerElementPatch=n}).call(exports,function(){return this}())},function(e,exports,t){"use strict";function n(){if(!i.isNode){var e="undefined"!=typeof WebSocket;r()?(i.isBrowser&&i.patchOnProperties(HTMLElement.prototype,s),i.patchOnProperties(XMLHttpRequest.prototype,null),e&&i.patchOnProperties(WebSocket.prototype,null)):(o(),i.patchClass("XMLHttpRequest"),e&&a.apply())}}function r(){if(i.isBrowser&&!Object.getOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var e=Object.getOwnPropertyDescriptor(Element.prototype,"onclick");if(e&&!e.configurable)return!1}Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",{get:function(){return!0}});var t=new XMLHttpRequest,n=!!t.onreadystatechange;return Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",{}),n}function o(){for(var e=0;e<s.length;e++){var t=s[e],n="on"+t;document.addEventListener(t,function(e){for(var t,r=e.target,o=r.constructor.name+"."+n;r;)r[n]&&!r[n][c]&&(t=Zone.current.wrap(r[n],o),t[c]=r[n],r[n]=t),r=r.parentElement},!0)}}var a=t(7),i=t(3),s="copy cut paste abort blur focus canplay canplaythrough change click contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop durationchange emptied ended input invalid keydown keypress keyup load loadeddata loadedmetadata loadstart message mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup pause play playing progress ratechange reset scroll seeked seeking select show stalled submit suspend timeupdate volumechange waiting mozfullscreenchange mozfullscreenerror mozpointerlockchange mozpointerlockerror error webglcontextrestored webglcontextlost webglcontextcreationerror".split(" ");exports.propertyDescriptorPatch=n;var c=i.zoneSymbol("unbound")},function(e,exports,t){(function(e){"use strict";function n(){var t=e.WebSocket;e.EventTarget||r.patchEventTargetMethods(t.prototype),e.WebSocket=function(e,n){var o,a=arguments.length>1?new t(e,n):new t(e),i=Object.getOwnPropertyDescriptor(a,"onmessage");return i&&i.configurable===!1?(o=Object.create(a),["addEventListener","removeEventListener","send","close"].forEach(function(e){o[e]=function(){return a[e].apply(a,arguments)}})):o=a,r.patchOnProperties(o,["close","error","message","open"]),o}}var r=t(3);exports.apply=n}).call(exports,function(){return this}())}]); | ||
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,exports,t){(function(e){"use strict";function n(e,t,n,r){function o(t){var n=t.data;return n.args[0]=t.invoke,n.handleId=i.apply(e,n.args),t}function a(e){return c(e.data.handleId)}t+=r,n+=r;var i=s.patchMethod(e,t,function(){return function(n,s){if("function"==typeof s[0]){var c=Zone.current,u={handleId:null,isPeriodic:"Interval"==r,delay:"Timeout"==r||"Interval"==r?s[1]||0:null,args:s};return c.scheduleMacroTask(t,s[0],u,o,a)}return i.apply(e,s)}}),c=s.patchMethod(e,n,function(){return function(e,t){var n=t[0];n.zone.cancelTask(n)}})}t(1);var r=t(2),o=t(4),a=t(5),i=t(6),s=t(3),c="set",u="clear",l=["alert","prompt","confirm"];n(e,c,u,"Timeout"),n(e,c,u,"Interval"),n(e,c,u,"Immediate"),n(e,"request","cancelMacroTask","AnimationFrame"),n(e,"mozRequest","mozCancel","AnimationFrame"),n(e,"webkitRequest","webkitCancel","AnimationFrame");for(var h=0;h<l.length;h++){var p=l[h];s.patchMethod(e,p,function(t,n,r){return function(n,o){return Zone.current.run(t,e,o,r)}})}r.eventTargetPatch(),i.propertyDescriptorPatch(),s.patchClass("MutationObserver"),s.patchClass("WebKitMutationObserver"),s.patchClass("FileReader"),o.propertyPatch(),a.registerElementPatch(),e.navigator&&e.navigator.geolocation&&s.patchPrototype(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}).call(exports,function(){return this}())},function(e,exports){(function(e){(function(e){function t(e){return"__zone_symbol__"+e}function n(){E||T||0!=_.length||(e[g]?e[g].resolve(0)[y](a):e[k](a,0))}function r(e){n(),_.push(e)}function o(e){var t=e&&e.rejection;t&&console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t),console.error(e)}function a(){if(!b){for(b=!0;_.length;){var e=_;_=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(r){o(r)}}}for(;w.length;){var a=w;w=[];for(var t=0;t<a.length;t++){var i=a[t];try{i.zone.runGuarded(function(){throw i})}catch(r){o(r)}}}b=!1,E=!1}}function i(e){return e&&e.then}function s(e){return e}function c(e){return M.reject(e)}function u(e,t){return function(n){l(e,t,n)}}function l(e,t,r){if(e[S]===z)if(r instanceof M&&r[S]!==z)h(r),l(e,r[S],r[P]);else if(i(r))r.then(u(e,t),u(e,!1));else{e[S]=t;var o=e[P];e[P]=r;for(var a=0;a<o.length;)p(e,o[a++],o[a++],o[a++],o[a++]);if(0==o.length&&t==Z){e[S]=C;try{throw new Error("Uncaught (in promise): "+r)}catch(s){var c=s;c.rejection=r,c.promise=e,c.zone=f.current,c.task=f.currentTask,w.push(c),n()}}}return e}function h(e){if(e[S]===C){e[S]=Z;for(var t=0;t<w.length;t++)if(e===w[t].promise){w.splice(t,1);break}}}function p(e,t,n,r,o){h(e);var a=e[S]?r||s:o||c;t.scheduleMicroTask(D,function(){try{l(n,!0,t.run(a,null,[e[P]]))}catch(r){l(n,!1,r)}})}var f=function(){function e(e,t){this._properties=null,this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new d(this,this._parent&&this._parent._zoneDelegate,t)}return Object.defineProperty(e,"current",{get:function(){return m},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentTask",{get:function(){return T},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),e.prototype.get=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t._properties[e];t=t._parent}},e.prototype.fork=function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)},e.prototype.wrap=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var e=this._zoneDelegate.intercept(this,e,t),n=this;return function(){return n.runGuarded(e,this,arguments,t)}},e.prototype.run=function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null);var o=m;m=this;try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{m=o}},e.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null);var o=m;m=this;try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{m=o}},e.prototype.runTask=function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone which created it! (Creation: "+e.zone.name+"; Execution: "+this.name+")");var r=T;T=e;var o=m;m=this;try{try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{m=o,T=r,"microTask"==e.type}},e.prototype.scheduleMicroTask=function(e,t,n,r){return this._zoneDelegate.scheduleTask(this,new v("microTask",this,e,t,n,r,null))},e.prototype.scheduleMacroTask=function(e,t,n,r,o){return this._zoneDelegate.scheduleTask(this,new v("macroTask",this,e,t,n,r,o))},e.prototype.scheduleEventTask=function(e,t,n,r,o){return this._zoneDelegate.scheduleTask(this,new v("eventTask",this,e,t,n,r,o))},e.prototype.cancelTask=function(e){var t=this._zoneDelegate.cancelTask(this,e);return e.cancelFn=null,t},e.__symbol__=t,e}(),d=function(){function e(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._hasTaskZS=n&&(n.onHasTask?n:t._hasTaskZS),this._hasTaskDlgt=n&&(n.onHasTask?t:t._hasTaskDlgt)}return e.prototype.fork=function(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new f(e,t)},e.prototype.intercept=function(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this.zone,e,t,n):t},e.prototype.invoke=function(e,t,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this.zone,e,t,n,r,o):t.apply(n,r)},e.prototype.handleError=function(e,t){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this.zone,e,t):!0},e.prototype.scheduleTask=function(e,t){try{if(this._scheduleTaskZS)return this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this.zone,e,t);if(t.scheduleFn)t.scheduleFn(t);else{if("microTask"!=t.type)throw new Error("Task is missing scheduleFn.");r(t)}return t}finally{e==this.zone&&this._updateTaskCount(t.type,1)}},e.prototype.invokeTask=function(e,t,n,r){try{return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this.zone,e,t,n,r):t.callback.apply(n,r)}finally{e!=this.zone||"eventTask"==t.type||t.data&&t.data.isPeriodic||this._updateTaskCount(t.type,-1)}},e.prototype.cancelTask=function(e,t){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this.zone,e,t);else{if(!t.cancelFn)throw new Error("Task does not support cancellation, or is already canceled.");n=t.cancelFn(t)}return e==this.zone&&this._updateTaskCount(t.type,-1),n},e.prototype.hasTask=function(e,t){return this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this.zone,e,t)},e.prototype._updateTaskCount=function(e,t){var n=this._taskCounts,r=n[e],o=n[e]=r+t;if(0>o)throw new Error("More tasks executed then were scheduled.");if(0==r||0==o){var a={microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e};try{this.hasTask(this.zone,a)}finally{this._parentDelegate&&this._parentDelegate._updateTaskCount(e,t)}}},e}(),v=function(){function e(e,t,n,r,o,i,s){this.type=e,this.zone=t,this.source=n,this.data=o,this.scheduleFn=i,this.cancelFn=s,this.callback=r;var c=this;this.invoke=function(){try{return t.runTask(c,this,arguments)}finally{a()}}}return e}(),k=t("setTimeout"),g=t("Promise"),y=t("then"),m=new f(null,null),T=null,_=[],b=!1,w=[],E=!1,S=t("state"),P=t("value"),D="Promise.then",z=null,O=!0,Z=!1,C=0,M=function(){function e(e){var t=this;t[S]=z,t[P]=[];try{e&&e(u(t,O),u(t,Z))}catch(n){l(t,!1,n)}}return e.resolve=function(e){return l(new this(null),O,e)},e.reject=function(e){return l(new this(null),Z,e)},e.race=function(e){function t(e){a&&(a=r(e))}function n(e){a&&(a=o(e))}for(var r,o,a=new this(function(e,t){r=e,o=t}),s=0,c=e;s<c.length;s++){var u=c[s];i(u)||(u=this.resolve(u)),u.then(t,n)}return a},e.all=function(e){function t(e){o&&r(e),o=null}for(var n,r,o=new this(function(e,t){n=e,r=t}),a=[],s=0,c=0,u=e;c<u.length;c++){var l=u[c];i(l)||(l=this.resolve(l)),l.then(function(e){return function(t){a[e]=t,s--,o&&!s&&n(a)}}(s),t),s++}return s||n(a),o},e.prototype.then=function(t,n){var r=new e(null),o=f.current;return this[S]==z?this[P].push(o,r,t,n):p(this,o,r,t,n),r},e.prototype["catch"]=function(e){return this.then(null,e)},e}(),j=e[t("Promise")]=e.Promise;if(e.Promise=M,j){var L=j.prototype,F=L[t("then")]=L.then;L.then=function(e,t){var n=this;return new M(function(e,t){F.call(n,e,t)}).then(e,t)}}return e.Zone=f})(function(){try{return window}catch(t){return e}}())}).call(exports,function(){return this}())},function(e,exports,t){(function(e){"use strict";function n(){var t=[],n=e.wtf;n?t=o.split(",").map(function(e){return"HTML"+e+"Element"}).concat(a):e[i]?t.push(i):t=a;for(var s=0;s<t.length;s++){var c=e[t[s]];r.patchEventTargetMethods(c&&c.prototype)}}var r=t(3),o="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video",a="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),i="EventTarget";exports.eventTargetPatch=n}).call(exports,function(){return this}())},function(e,exports){(function(e){"use strict";function t(e,t){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=Zone.current.wrap(e[n],t+"_"+n));return e}function n(e,n){for(var r=e.constructor.name,o=0;o<n.length;o++){var a=n[o],i=e[a];i&&(e[a]=function(e){return function(){return e.apply(this,t(arguments,r+"."+a))}}(i))}}function r(e,t){var n=Object.getOwnPropertyDescriptor(e,t)||{enumerable:!0,configurable:!0};delete n.writable,delete n.value;var r=t.substr(2),o="_"+t;n.set=function(e){this[o]&&this.removeEventListener(r,this[o]),"function"==typeof e?(this[o]=e,this.addEventListener(r,e,!1)):this[o]=null},n.get=function(){return this[o]},Object.defineProperty(e,t,n)}function o(e,t){var n=[];for(var o in e)"on"==o.substr(0,2)&&n.push(o);for(var a=0;a<n.length;a++)r(e,n[a]);if(t)for(var i=0;i<t.length;i++)r(e,"on"+t[i])}function a(e,t,n,r,o){var a=e[v];if(a)for(var i=0;i<a.length;i++){var s=a[i],c=s.data;if(c.handler===t&&c.useCapturing===r&&c.eventName===n)return o&&a.splice(i,1),s}return null}function i(e,t){var n=e[v];n||(n=e[v]=[]),n.push(t)}function s(e){var t=e.data;return i(t.target,e),t.target[y](t.eventName,e.invoke,t.useCapturing)}function c(e){var t=e.data;a(t.target,e.invoke,t.eventName,t.useCapturing,!0),t.target[m](t.eventName,e.invoke,t.useCapturing)}function u(t,n){var r=n[0],o=n[1],i=n[2]||!1,u=t||e,l=null;if("function"==typeof o?l=o:o&&o.handleEvent&&(l=function(e){return o.handleEvent(e)}),!l||o&&"[object FunctionWrapper]"===o.toString())return u[y](r,o,i);var h=a(u,o,r,i,!1);if(h)return u[y](r,h.invoke,i);var p=Zone.current,f=u.constructor.name+".addEventListener:"+r,d={target:u,eventName:r,name:r,useCapturing:i,handler:o};p.scheduleEventTask(f,l,d,s,c)}function l(t,n){var r=n[0],o=n[1],i=n[2]||!1,s=t||e,c=a(s,o,r,i,!1);c?c.zone.cancelTask(c):s[m](r,o,i)}function h(e){return e&&e.addEventListener?(d(e,k,function(){return u}),d(e,g,function(){return l}),!0):!1}function p(n){var r=e[n];if(r){e[n]=function(){var e=t(arguments,n);switch(e.length){case 0:this[T]=new r;break;case 1:this[T]=new r(e[0]);break;case 2:this[T]=new r(e[0],e[1]);break;case 3:this[T]=new r(e[0],e[1],e[2]);break;case 4:this[T]=new r(e[0],e[1],e[2],e[3]);break;default:throw new Error("Arg list too long.")}};var o,a=new r(function(){});for(o in a)!function(t){"function"==typeof a[t]?e[n].prototype[t]=function(){return this[T][t].apply(this[T],arguments)}:Object.defineProperty(e[n].prototype,t,{set:function(e){"function"==typeof e?this[T][t]=Zone.current.wrap(e,n+"."+t):this[T][t]=e},get:function(){return this[T][t]}})}(o);for(o in r)"prototype"!==o&&r.hasOwnProperty(o)&&(e[n][o]=r[o])}}function f(e,t){try{return Function("f","return function "+e+"(){return f(this, arguments)}")(t)}catch(n){return function(){return t(this,arguments)}}}function d(e,t,n){for(var r=e;r&&!r.hasOwnProperty(t);)r=Object.getPrototypeOf(r);!r&&e[t]&&(r=e);var o,a=exports.zoneSymbol(t);return r&&!(o=r[a])&&(o=r[a]=r[t],r[t]=f(t,n(o,a,t))),o}exports.zoneSymbol=Zone.__symbol__,exports.bindArguments=t,exports.patchPrototype=n,exports.isWebWorker="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,exports.isNode="undefined"!=typeof process&&"[object process]"==={}.toString.call(process),exports.isBrowser=!exports.isNode&&!exports.isWebWorker&&!(!window||!window.HTMLElement),exports.patchProperty=r,exports.patchOnProperties=o;var v=exports.zoneSymbol("eventTasks"),k="addEventListener",g="removeEventListener",y=exports.zoneSymbol(k),m=exports.zoneSymbol(g);exports.patchEventTargetMethods=h;var T=exports.zoneSymbol("originalInstance");exports.patchClass=p,exports.createNamedFn=f,exports.patchMethod=d}).call(exports,function(){return this}())},function(e,exports,t){"use strict";function n(){Object.defineProperty=function(e,t,n){if(o(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);return"prototype"!==t&&(n=a(e,t,n)),s(e,t,n)},Object.defineProperties=function(e,t){return Object.keys(t).forEach(function(n){Object.defineProperty(e,n,t[n])}),e},Object.create=function(e,t){return"object"==typeof t&&Object.keys(t).forEach(function(n){t[n]=a(e,n,t[n])}),u(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=c(e,t);return o(e,t)&&(n.configurable=!1),n}}function r(e,t,n){return n=a(e,t,n),s(e,t,n)}function o(e,t){return e&&e[l]&&e[l][t]}function a(e,t,n){return n.configurable=!0,n.configurable||(e[l]||s(e,l,{writable:!0,value:{}}),e[l][t]=!0),n}var i=t(3),s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.create,l=i.zoneSymbol("unconfigurables");exports.propertyPatch=n,exports._redefineProperty=r},function(e,exports,t){(function(e){"use strict";function n(){if(o.isBrowser&&"registerElement"in e.document){var t=document.registerElement,n=["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"];document.registerElement=function(e,o){return o&&o.prototype&&n.forEach(function(e){var t="Document.registerElement::"+e;if(o.prototype.hasOwnProperty(e)){var n=Object.getOwnPropertyDescriptor(o.prototype,e);n&&n.value?(n.value=Zone.current.wrap(n.value,t),r._redefineProperty(o.prototype,e,n)):o.prototype[e]=Zone.current.wrap(o.prototype[e],t)}else o.prototype[e]&&(o.prototype[e]=Zone.current.wrap(o.prototype[e],t))}),t.apply(document,[e,o])}}}var r=t(4),o=t(3);exports.registerElementPatch=n}).call(exports,function(){return this}())},function(e,exports,t){"use strict";function n(){if(!i.isNode){var e="undefined"!=typeof WebSocket;r()?(i.isBrowser&&i.patchOnProperties(HTMLElement.prototype,s),i.patchOnProperties(XMLHttpRequest.prototype,null),e&&i.patchOnProperties(WebSocket.prototype,null)):(o(),i.patchClass("XMLHttpRequest"),e&&a.apply())}}function r(){if(i.isBrowser&&!Object.getOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var e=Object.getOwnPropertyDescriptor(Element.prototype,"onclick");if(e&&!e.configurable)return!1}Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",{get:function(){return!0}});var t=new XMLHttpRequest,n=!!t.onreadystatechange;return Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",{}),n}function o(){for(var e=0;e<s.length;e++){var t=s[e],n="on"+t;document.addEventListener(t,function(e){for(var t,r=e.target,o=r.constructor.name+"."+n;r;)r[n]&&!r[n][c]&&(t=Zone.current.wrap(r[n],o),t[c]=r[n],r[n]=t),r=r.parentElement},!0)}}var a=t(7),i=t(3),s="copy cut paste abort blur focus canplay canplaythrough change click contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop durationchange emptied ended input invalid keydown keypress keyup load loadeddata loadedmetadata loadstart message mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup pause play playing progress ratechange reset scroll seeked seeking select show stalled submit suspend timeupdate volumechange waiting mozfullscreenchange mozfullscreenerror mozpointerlockchange mozpointerlockerror error webglcontextrestored webglcontextlost webglcontextcreationerror".split(" ");exports.propertyDescriptorPatch=n;var c=i.zoneSymbol("unbound")},function(e,exports,t){(function(e){"use strict";function n(){var t=e.WebSocket;e.EventTarget||r.patchEventTargetMethods(t.prototype),e.WebSocket=function(e,n){var o,a=arguments.length>1?new t(e,n):new t(e),i=Object.getOwnPropertyDescriptor(a,"onmessage");return i&&i.configurable===!1?(o=Object.create(a),["addEventListener","removeEventListener","send","close"].forEach(function(e){o[e]=function(){return a[e].apply(a,arguments)}})):o=a,r.patchOnProperties(o,["close","error","message","open"]),o}}var r=t(3);exports.apply=n}).call(exports,function(){return this}())}]); |
@@ -834,5 +834,6 @@ /** | ||
var _uncaughtPromiseErrors: UncaughtPromiseError[] = []; | ||
var _drainScheduled: boolean = false; | ||
function scheduleMicroTask(task: MicroTask) { | ||
if (!_currentTask && _microTaskQueue.length == 0) { | ||
function scheduleQueueDrain() { | ||
if (!_drainScheduled && !_currentTask && _microTaskQueue.length == 0) { | ||
// We are not running in Task, so we need to kickstart the microtask queue. | ||
@@ -845,5 +846,22 @@ if (global[symbolPromise]) { | ||
} | ||
} | ||
function scheduleMicroTask(task: MicroTask) { | ||
scheduleQueueDrain(); | ||
_microTaskQueue.push(task); | ||
} | ||
function consoleError(e:any) { | ||
var rejection = e && e.rejection; | ||
if (rejection) { | ||
console.error( | ||
'Unhandled Promise rejection:', rejection instanceof Error ? rejection.message : rejection, | ||
'; Zone:', (<Zone>e.zone).name, | ||
'; Task:', e.task && (<Task>e.task).source, | ||
'; Value:', rejection | ||
); | ||
} | ||
console.error(e); | ||
} | ||
function drainMicroTaskQueue() { | ||
@@ -860,3 +878,3 @@ if (!_isDrainingMicrotaskQueue) { | ||
} catch (e) { | ||
console.error(e, e instanceof Error ? e.stack : undefined); | ||
consoleError(e); | ||
} | ||
@@ -873,3 +891,3 @@ } | ||
} catch (e) { | ||
console.error(e, e instanceof Error ? e.stack : undefined); | ||
consoleError(e); | ||
} | ||
@@ -879,2 +897,3 @@ } | ||
_isDrainingMicrotaskQueue = false; | ||
_drainScheduled = false; | ||
} | ||
@@ -933,2 +952,3 @@ } | ||
_uncaughtPromiseErrors.push(error); | ||
scheduleQueueDrain(); | ||
} | ||
@@ -935,0 +955,0 @@ } |
{ | ||
"name": "zone.js", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "Zones for JavaScript", | ||
@@ -16,3 +16,3 @@ "main": "dist/zone.js", | ||
"scripts": { | ||
"prepublish": "./node_modules/.bin/tsc && gulp build", | ||
"prepublish": "./node_modules/.bin/typings install && ./node_modules/.bin/tsc && gulp build", | ||
"typings": "./node_modules/.bin/typings install", | ||
@@ -19,0 +19,0 @@ "tsc": "./node_modules/.bin/tsc", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
216773
4313