mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
40 KiB
9 lines
40 KiB
'use strict';
|
|
/**
|
|
* @license Angular
|
|
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
* License: MIT
|
|
*/(function(g,f){if(typeof define=="function"&&define.amd){define(f)}else if(typeof exports=="object" && typeof module<"u"){module.exports=f()}else{var m=f();for(var i in m) g[i]=m[i]}}(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : this,function(){var exports={};var __exports=exports;var module={exports};
|
|
"use strict";var $=exports&&exports.__generator||function(R,j){var E={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},C,M,k,O=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return O.next=J(0),O.throw=J(1),O.return=J(2),typeof Symbol=="function"&&(O[Symbol.iterator]=function(){return this}),O;function J(P){return function(L){return Y([P,L])}}function Y(P){if(C)throw new TypeError("Generator is already executing.");for(;O&&(O=0,P[0]&&(E=0)),E;)try{if(C=1,M&&(k=P[0]&2?M.return:P[0]?M.throw||((k=M.return)&&k.call(M),0):M.next)&&!(k=k.call(M,P[1])).done)return k;switch(M=0,k&&(P=[P[0]&2,k.value]),P[0]){case 0:case 1:k=P;break;case 4:return E.label++,{value:P[1],done:!1};case 5:E.label++,M=P[1],P=[0];continue;case 7:P=E.ops.pop(),E.trys.pop();continue;default:if(k=E.trys,!(k=k.length>0&&k[k.length-1])&&(P[0]===6||P[0]===2)){E=0;continue}if(P[0]===3&&(!k||P[1]>k[0]&&P[1]<k[3])){E.label=P[1];break}if(P[0]===6&&E.label<k[1]){E.label=k[1],k=P;break}if(k&&E.label<k[2]){E.label=k[2],E.ops.push(P);break}k[2]&&E.ops.pop(),E.trys.pop();continue}P=j.call(R,E)}catch(L){P=[6,L],M=0}finally{C=k=0}if(P[0]&5)throw P[1];return{value:P[0]?P[1]:void 0,done:!0}}},Me=exports&&exports.__spreadArray||function(R,j,E){if(E||arguments.length===2)for(var C=0,M=j.length,k;C<M;C++)(k||!(C in j))&&(k||(k=Array.prototype.slice.call(j,0,C)),k[C]=j[C]);return R.concat(k||Array.prototype.slice.call(j))};(function(R,j){if(typeof define=="function"&&define.amd)define(j);else if(typeof exports=="object"&&typeof module<"u")module.exports=j();else{var E=j();for(var C in E)R[C]=E[C]}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:exports,function(){var R={},j=R,E={exports:R},C=Object.defineProperty,M=Object.defineProperties,k=Object.getOwnPropertyDescriptors,O=Object.getOwnPropertySymbols,J=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,P=function(r,e,t){return e in r?C(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},L=function(r,e){for(var t in e||(e={}))J.call(e,t)&&P(r,t,e[t]);if(O)for(var n=0,i=O(e);n<i.length;n++){var t=i[n];Y.call(e,t)&&P(r,t,e[t])}return r},ae=function(r,e){return M(r,k(e))},g=function(r,e,t){return P(r,typeof e!="symbol"?e+"":e,t),t},G=function(r,e,t){return new Promise(function(n,i){var a=function(f){try{y(t.next(f))}catch(T){i(T)}},u=function(f){try{y(t.throw(f))}catch(T){i(T)}},y=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(a,u)};y((t=t.apply(r,e)).next())})};function ce(r){r.__load_patch("jasmine",function(e,t,n){var i,a=function(s,o){for(var p in o)o.hasOwnProperty(p)&&(s[p]=o[p]);function v(){this.constructor=s}s.prototype=o===null?Object.create(o):(v.prototype=o.prototype,new v)};if(!t)throw new Error("Missing: zone.js");if(typeof jest!="undefined"||typeof jasmine=="undefined"||jasmine.__zone_patch__)return;jasmine.__zone_patch__=!0;var u=t.SyncTestZoneSpec,y=t.ProxyZoneSpec;if(!u)throw new Error("Missing: SyncTestZoneSpec");if(!y)throw new Error("Missing: ProxyZoneSpec");var f=t.current,T=t.__symbol__,b=e[T("fakeAsyncDisablePatchingClock")]===!0,I=!b&&(e[T("fakeAsyncPatchLock")]===!0||e[T("fakeAsyncAutoFakeAsyncWhenClockPatched")]===!0),A=jasmine.getEnv();if(["describe","xdescribe","fdescribe"].forEach(function(s){var o=A[s];A[s]=function(p,v){return o.call(this,p,l(p,v))}}),["it","xit","fit"].forEach(function(s){var o=A[s];A[T(s)]=o,A[s]=function(p,v,F){return arguments[1]=m(v),o.apply(this,arguments)}}),["beforeEach","afterEach","beforeAll","afterAll"].forEach(function(s){var o=A[s];A[T(s)]=o,A[s]=function(p,v){return arguments[0]=m(p),o.apply(this,arguments)}}),!b){var x=jasmine[T("clock")]=jasmine.clock;jasmine.clock=function(){var s=x.apply(this,arguments);if(!s[T("patched")]){s[T("patched")]=T("patched");var o=s[T("tick")]=s.tick;s.tick=function(){var v=t.current.get("FakeAsyncTestZoneSpec");return v?v.tick.apply(v,arguments):o.apply(this,arguments)};var p=s[T("mockDate")]=s.mockDate;s.mockDate=function(){var v=t.current.get("FakeAsyncTestZoneSpec");if(v){var F=arguments.length>0?arguments[0]:new Date;return v.setFakeBaseSystemTime.apply(v,F&&typeof F.getTime=="function"?[F.getTime()]:arguments)}return p.apply(this,arguments)},I&&["install","uninstall"].forEach(function(v){var F=s[T(v)]=s[v];s[v]=function(){var D=t.FakeAsyncTestZoneSpec;if(D){jasmine[T("clockInstalled")]=v==="install";return}return F.apply(this,arguments)}})}return s}}if(!jasmine[t.__symbol__("createSpyObj")]){var _=jasmine.createSpyObj;jasmine[t.__symbol__("createSpyObj")]=_,jasmine.createSpyObj=function(){var s=Array.prototype.slice.call(arguments),o=s.length>=3?s[2]:null,p;if(o){var v=Object.defineProperty;Object.defineProperty=function(F,D,H){return v.call(this,F,D,ae(L({},H),{configurable:!0,enumerable:!0}))};try{p=_.apply(this,s)}finally{Object.defineProperty=v}}else p=_.apply(this,s);return p}}function l(s,o){return function(){var p=f.fork(new u("jasmine.describe#".concat(s)));return p.run(o,this,arguments)}}function h(s,o,p,v){var F=!!jasmine[T("clockInstalled")],D=p.testProxyZoneSpec,H=p.testProxyZone,z;if(F&&I){var W=t[t.__symbol__("fakeAsyncTest")];W&&typeof W.fakeAsync=="function"&&(s=W.fakeAsync(s))}return v?H.run(s,o,[v]):H.run(s,o)}function m(s){return s&&(s.length?function(o){return h(s,this,this.queueRunner,o)}:function(){return h(s,this,this.queueRunner)})}var S=jasmine,c=(i=S==null?void 0:S.private)!=null&&i.QueueRunner?S==null?void 0:S.private:S,d=c.QueueRunner;c.QueueRunner=function(s){a(o,s);function o(p){var v=this;p.onComplete&&(p.onComplete=function(z){return function(){v.testProxyZone=null,v.testProxyZoneSpec=null,f.scheduleMicroTask("jasmine.onComplete",z)}}(p.onComplete));var F=e[t.__symbol__("setTimeout")],D=e[t.__symbol__("clearTimeout")];F&&(p.timeout={setTimeout:F||e.setTimeout,clearTimeout:D||e.clearTimeout}),c.UserContext?(p.userContext||(p.userContext=new c.UserContext),p.userContext.queueRunner=this):(p.userContext||(p.userContext={}),p.userContext.queueRunner=this);var H=p.onException;p.onException=function(z){if(z&&z.message==="Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL."){var W=this&&this.testProxyZoneSpec;if(W){var Ce=W.getAndClearPendingTasksInfo();try{z.message+=Ce}catch(je){}}}H&&H.call(this,z)},s.call(this,p)}return o.prototype.execute=function(){for(var p=this,v=t.current,F=!1;v;){if(v===f){F=!0;break}v=v.parent}if(!F)throw new Error("Unexpected Zone: "+t.current.name);this.testProxyZoneSpec=new y,this.testProxyZone=f.fork(this.testProxyZoneSpec),t.currentTask?s.prototype.execute.call(this):t.current.scheduleMicroTask("jasmine.execute().forceTask",function(){return d.prototype.execute.call(p)})},o}(d)})}function ue(r){r.__load_patch("jest",function(e,t,n){if(typeof jest=="undefined"||jest.__zone_patch__)return;t[n.symbol("ignoreConsoleErrorUncaughtError")]=!0,jest.__zone_patch__=!0;var i=t.ProxyZoneSpec,a=t.SyncTestZoneSpec;if(!i)throw new Error("Missing ProxyZoneSpec");var u=t.current,y=u.fork(new a("jest.describe")),f=new i,T=u.fork(f);function b(_){return function(){for(var l=[],h=0;h<arguments.length;h++)l[h]=arguments[h];var m=_.apply(this,l);return function(){for(var S=[],c=0;c<arguments.length;c++)S[c]=arguments[c];return S[1]=A(S[1]),m.apply(this,S)}}}function I(_){return function(){for(var l=[],h=0;h<arguments.length;h++)l[h]=arguments[h];return function(){for(var m=[],S=0;S<arguments.length;S++)m[S]=arguments[S];return m[1]=x(m[1]),_.apply(this,l).apply(this,m)}}}function A(_){return function(){for(var l=[],h=0;h<arguments.length;h++)l[h]=arguments[h];return y.run(_,this,l)}}function x(_,l){if(l===void 0&&(l=!1),typeof _!="function")return _;var h=function(){if(t[n.symbol("useFakeTimersCalled")]===!0&&_&&!_.isFakeAsync){var m=t[t.__symbol__("fakeAsyncTest")];m&&typeof m.fakeAsync=="function"&&(_=m.fakeAsync(_))}return f.isTestFunc=l,T.run(_,null,arguments)};return Object.defineProperty(h,"length",{configurable:!0,writable:!0,enumerable:!1}),h.length=_.length,h}["describe","xdescribe","fdescribe"].forEach(function(_){var l=e[_];e[t.__symbol__(_)]||(e[t.__symbol__(_)]=l,e[_]=function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return h[1]=A(h[1]),l.apply(this,h)},e[_].each=b(l.each))}),e.describe.only=e.fdescribe,e.describe.skip=e.xdescribe,["it","xit","fit","test","xtest"].forEach(function(_){var l=e[_];e[t.__symbol__(_)]||(e[t.__symbol__(_)]=l,e[_]=function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return h[1]=x(h[1],!0),l.apply(this,h)},e[_].each=I(l.each),e[_].todo=l.todo,e[_].failing=l.failing)}),e.it.only=e.fit,e.it.skip=e.xit,e.test.only=e.fit,e.test.skip=e.xit,["beforeEach","afterEach","beforeAll","afterAll"].forEach(function(_){var l=e[_];e[t.__symbol__(_)]||(e[t.__symbol__(_)]=l,e[_]=function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return h[0]=x(h[0]),l.apply(this,h)})}),t.patchJestObject=function(l,h){h===void 0&&(h=!1);function m(){var c=t.current.get("FakeAsyncTestZoneSpec");return!!c}function S(){var c=t.current.get("ProxyZoneSpec");return c&&c.isTestFunc}l[n.symbol("fakeTimers")]||(l[n.symbol("fakeTimers")]=!0,n.patchMethod(l,"_checkFakeTimers",function(c){return function(d,s){return m()?!0:c.apply(d,s)}}),n.patchMethod(l,"useFakeTimers",function(c){return function(d,s){return t[n.symbol("useFakeTimersCalled")]=!0,h||S()?c.apply(d,s):d}}),n.patchMethod(l,"useRealTimers",function(c){return function(d,s){return t[n.symbol("useFakeTimersCalled")]=!1,h||S()?c.apply(d,s):d}}),n.patchMethod(l,"setSystemTime",function(c){return function(d,s){var o=t.current.get("FakeAsyncTestZoneSpec");if(o&&m())o.setFakeBaseSystemTime(s[0]);else return c.apply(d,s)}}),n.patchMethod(l,"getRealSystemTime",function(c){return function(d,s){var o=t.current.get("FakeAsyncTestZoneSpec");return o&&m()?o.getRealSystemTime():c.apply(d,s)}}),n.patchMethod(l,"runAllTicks",function(c){return function(d,s){var o=t.current.get("FakeAsyncTestZoneSpec");if(o)o.flushMicrotasks();else return c.apply(d,s)}}),n.patchMethod(l,"runAllTimers",function(c){return function(d,s){var o=t.current.get("FakeAsyncTestZoneSpec");if(o)o.flush(100,!0);else return c.apply(d,s)}}),n.patchMethod(l,"advanceTimersByTime",function(c){return function(d,s){var o=t.current.get("FakeAsyncTestZoneSpec");if(o)o.tick(s[0]);else return c.apply(d,s)}}),n.patchMethod(l,"runOnlyPendingTimers",function(c){return function(d,s){var o=t.current.get("FakeAsyncTestZoneSpec");if(o)o.flushOnlyPendingTimers();else return c.apply(d,s)}}),n.patchMethod(l,"advanceTimersToNextTimer",function(c){return function(d,s){var o=t.current.get("FakeAsyncTestZoneSpec");if(o)o.tickToNext(s[0]);else return c.apply(d,s)}}),n.patchMethod(l,"clearAllTimers",function(c){return function(d,s){var o=t.current.get("FakeAsyncTestZoneSpec");if(o)o.removeAllTimers();else return c.apply(d,s)}}),n.patchMethod(l,"getTimerCount",function(c){return function(d,s){var o=t.current.get("FakeAsyncTestZoneSpec");return o?o.getTimerCount():c.apply(d,s)}}))}})}function fe(r){r.__load_patch("mocha",function(e,t){var n=e.Mocha;if(typeof n=="undefined")return;if(typeof t=="undefined")throw new Error("Missing Zone.js");var i=t.ProxyZoneSpec,a=t.SyncTestZoneSpec;if(!i)throw new Error("Missing ProxyZoneSpec");if(n.__zone_patch__)throw new Error('"Mocha" has already been patched with "Zone".');n.__zone_patch__=!0;var u=t.current,y=u.fork(new a("Mocha.describe")),f=null,T=u.fork(new i),b={after:e.after,afterEach:e.afterEach,before:e.before,beforeEach:e.beforeEach,describe:e.describe,it:e.it};function I(l,h,m){for(var S=function(d){var s=l[d];typeof s=="function"&&(l[d]=s.length===0?h(s):m(s),l[d].toString=function(){return s.toString()})},c=0;c<l.length;c++)S(c);return l}function A(l){var h=function(m){return function(){return y.run(m,this,arguments)}};return I(l,h)}function x(l){var h=function(S){return function(c){return f.run(S,this,[c])}},m=function(S){return function(){return f.run(S,this)}};return I(l,m,h)}function _(l){var h=function(S){return function(c){return T.run(S,this,[c])}},m=function(S){return function(){return T.run(S,this)}};return I(l,m,h)}e.describe=e.suite=function(){return b.describe.apply(this,A(arguments))},e.xdescribe=e.suite.skip=e.describe.skip=function(){return b.describe.skip.apply(this,A(arguments))},e.describe.only=e.suite.only=function(){return b.describe.only.apply(this,A(arguments))},e.it=e.specify=e.test=function(){return b.it.apply(this,x(arguments))},e.xit=e.xspecify=e.it.skip=function(){return b.it.skip.apply(this,x(arguments))},e.it.only=e.test.only=function(){return b.it.only.apply(this,x(arguments))},e.after=e.suiteTeardown=function(){return b.after.apply(this,_(arguments))},e.afterEach=e.teardown=function(){return b.afterEach.apply(this,x(arguments))},e.before=e.suiteSetup=function(){return b.before.apply(this,_(arguments))},e.beforeEach=e.setup=function(){return b.beforeEach.apply(this,x(arguments))},function(l,h){n.Runner.prototype.runTest=function(m){var S=this;t.current.scheduleMicroTask("mocha.forceTask",function(){l.call(S,m)})},n.Runner.prototype.run=function(m){return this.on("test",function(S){f=u.fork(new i)}),this.on("fail",function(S,c){var d=f&&f.get("ProxyZoneSpec");if(d&&c)try{c.message+=d.getAndClearPendingTasksInfo()}catch(s){}}),h.call(this,m)}}(n.Runner.prototype.runTest,n.Runner.prototype.run)})}var le=globalThis;function te(r){var e=le.__Zone_symbol_prefix||"__zone_symbol__";return e+r}var he=globalThis,pe=function(){function r(e,t,n){g(this,"finishCallback"),g(this,"failCallback"),g(this,"_pendingMicroTasks",!1),g(this,"_pendingMacroTasks",!1),g(this,"_alreadyErrored",!1),g(this,"_isSync",!1),g(this,"_existingFinishTimer",null),g(this,"entryFunction",null),g(this,"runZone",Zone.current),g(this,"unresolvedChainedPromiseCount",0),g(this,"supportWaitUnresolvedChainedPromise",!1),g(this,"name"),g(this,"properties"),this.finishCallback=e,this.failCallback=t,this.name="asyncTestZone for "+n,this.properties={AsyncTestZoneSpec:this},this.supportWaitUnresolvedChainedPromise=he[te("supportWaitUnResolvedChainedPromise")]===!0}return Object.defineProperty(r,"symbolParentUnresolved",{get:function(){return te("parentUnresolved")},enumerable:!1,configurable:!0}),r.prototype.isUnresolvedChainedPromisePending=function(){return this.unresolvedChainedPromiseCount>0},r.prototype._finishCallbackIfDone=function(){var e=this;this._existingFinishTimer!==null&&(clearTimeout(this._existingFinishTimer),this._existingFinishTimer=null),this._pendingMicroTasks||this._pendingMacroTasks||this.supportWaitUnresolvedChainedPromise&&this.isUnresolvedChainedPromisePending()||this.runZone.run(function(){e._existingFinishTimer=setTimeout(function(){!e._alreadyErrored&&!(e._pendingMicroTasks||e._pendingMacroTasks)&&e.finishCallback()},0)})},r.prototype.patchPromiseForTest=function(){if(this.supportWaitUnresolvedChainedPromise){var e=Promise[Zone.__symbol__("patchPromiseForTest")];e&&e()}},r.prototype.unPatchPromiseForTest=function(){if(this.supportWaitUnresolvedChainedPromise){var e=Promise[Zone.__symbol__("unPatchPromiseForTest")];e&&e()}},r.prototype.onScheduleTask=function(e,t,n,i){return i.type!=="eventTask"&&(this._isSync=!1),i.type==="microTask"&&i.data&&i.data instanceof Promise&&i.data[r.symbolParentUnresolved]===!0&&this.unresolvedChainedPromiseCount--,e.scheduleTask(n,i)},r.prototype.onInvokeTask=function(e,t,n,i,a,u){return i.type!=="eventTask"&&(this._isSync=!1),e.invokeTask(n,i,a,u)},r.prototype.onCancelTask=function(e,t,n,i){return i.type!=="eventTask"&&(this._isSync=!1),e.cancelTask(n,i)},r.prototype.onInvoke=function(e,t,n,i,a,u,y){this.entryFunction||(this.entryFunction=i);try{return this._isSync=!0,e.invoke(n,i,a,u,y)}finally{this._isSync&&this.entryFunction===i&&this._finishCallbackIfDone()}},r.prototype.onHandleError=function(e,t,n,i){var a=e.handleError(n,i);return a&&(this.failCallback(i),this._alreadyErrored=!0),!1},r.prototype.onHasTask=function(e,t,n,i){e.hasTask(n,i),t===n&&(i.change=="microTask"?(this._pendingMicroTasks=i.microTask,this._finishCallbackIfDone()):i.change=="macroTask"&&(this._pendingMacroTasks=i.macroTask,this._finishCallbackIfDone()))},r}();function ye(r){r.AsyncTestZoneSpec=pe,r.__load_patch("asynctest",function(e,t,n){t[n.symbol("asyncTest")]=function(u){return e.jasmine?function(y){y||(y=function(){},y.fail=function(f){throw f}),i(u,this,void 0,y,function(f){if(typeof f=="string")return y.fail(new Error(f));y.fail(f)})}:function(){for(var y=this,f=[],T=0;T<arguments.length;T++)f[T]=arguments[T];return new Promise(function(b,I){i(u,y,f,b,I)})}};function i(a,u,y,f,T){var b=t.current,I=t.AsyncTestZoneSpec;if(I===void 0)throw new Error("AsyncTestZoneSpec is needed for the async() test helper but could not be found. Please make sure that your environment includes zone.js/plugins/async-test");var A=t.ProxyZoneSpec;if(!A)throw new Error("ProxyZoneSpec is needed for the async() test helper but could not be found. Please make sure that your environment includes zone.js/plugins/proxy");var x=A.get();A.assertPresent();var _=t.current.getZoneWith("ProxyZoneSpec"),l=x.getDelegate();return _.parent.run(function(){var h=new I(function(){x.getDelegate()==h&&x.setDelegate(l),h.unPatchPromiseForTest(),b.run(function(){f()})},function(m){x.getDelegate()==h&&x.setDelegate(l),h.unPatchPromiseForTest(),b.run(function(){T(m)})},"test");x.setDelegate(h),h.patchPromiseForTest()}),t.current.runGuarded(a,u,y)}})}function de(){var r=typeof jest!="undefined"&&jest.__zone_patch__;throw r?new Error("Only globals are patched with zone-testing. If you import `it`, `describe`, etc. directly, you cannot use `fakeAsync` or `waitForAsync`."):new Error("ProxyZoneSpec is needed for the fakeAsync and waitForAsync test helpers but could not be found. Make sure that your environment includes zone-testing.js")}var me=function(){function r(e){e===void 0&&(e=null),g(this,"defaultSpecDelegate"),g(this,"name","ProxyZone"),g(this,"_delegateSpec",null),g(this,"properties",{ProxyZoneSpec:this}),g(this,"propertyKeys",null),g(this,"lastTaskState",null),g(this,"isNeedToTriggerHasTask",!1),g(this,"tasks",[]),this.defaultSpecDelegate=e,this.setDelegate(e)}return r.get=function(){return Zone.current.get("ProxyZoneSpec")},r.isLoaded=function(){return r.get()instanceof r},r.assertPresent=function(){var e=r.get();if(e===void 0)throw new Error("Expected to be running in 'ProxyZone', but it was not found.");return e},r.prototype.setDelegate=function(e){var t=this,n=this._delegateSpec!==e;this._delegateSpec=e,this.propertyKeys&&this.propertyKeys.forEach(function(i){return delete t.properties[i]}),this.propertyKeys=null,e&&e.properties&&(this.propertyKeys=Object.keys(e.properties),this.propertyKeys.forEach(function(i){return t.properties[i]=e.properties[i]})),n&&this.lastTaskState&&(this.lastTaskState.macroTask||this.lastTaskState.microTask)&&(this.isNeedToTriggerHasTask=!0)},r.prototype.getDelegate=function(){return this._delegateSpec},r.prototype.resetDelegate=function(){var e=this.getDelegate();this.setDelegate(this.defaultSpecDelegate)},r.prototype.tryTriggerHasTask=function(e,t,n){this.isNeedToTriggerHasTask&&this.lastTaskState&&(this.isNeedToTriggerHasTask=!1,this.onHasTask(e,t,n,this.lastTaskState))},r.prototype.removeFromTasks=function(e){if(this.tasks){for(var t=0;t<this.tasks.length;t++)if(this.tasks[t]===e){this.tasks.splice(t,1);return}}},r.prototype.getAndClearPendingTasksInfo=function(){if(this.tasks.length===0)return"";var e=this.tasks.map(function(n){var i=n.data&&Object.keys(n.data).map(function(a){return a+":"+n.data[a]}).join(",");return"type: ".concat(n.type,", source: ").concat(n.source,", args: {").concat(i,"}")}),t="--Pending async tasks are: ["+e+"]";return this.tasks=[],t},r.prototype.onFork=function(e,t,n,i){return this._delegateSpec&&this._delegateSpec.onFork?this._delegateSpec.onFork(e,t,n,i):e.fork(n,i)},r.prototype.onIntercept=function(e,t,n,i,a){return this._delegateSpec&&this._delegateSpec.onIntercept?this._delegateSpec.onIntercept(e,t,n,i,a):e.intercept(n,i,a)},r.prototype.onInvoke=function(e,t,n,i,a,u,y){return this.tryTriggerHasTask(e,t,n),this._delegateSpec&&this._delegateSpec.onInvoke?this._delegateSpec.onInvoke(e,t,n,i,a,u,y):e.invoke(n,i,a,u,y)},r.prototype.onHandleError=function(e,t,n,i){return this._delegateSpec&&this._delegateSpec.onHandleError?this._delegateSpec.onHandleError(e,t,n,i):e.handleError(n,i)},r.prototype.onScheduleTask=function(e,t,n,i){return i.type!=="eventTask"&&this.tasks.push(i),this._delegateSpec&&this._delegateSpec.onScheduleTask?this._delegateSpec.onScheduleTask(e,t,n,i):e.scheduleTask(n,i)},r.prototype.onInvokeTask=function(e,t,n,i,a,u){return i.type!=="eventTask"&&this.removeFromTasks(i),this.tryTriggerHasTask(e,t,n),this._delegateSpec&&this._delegateSpec.onInvokeTask?this._delegateSpec.onInvokeTask(e,t,n,i,a,u):e.invokeTask(n,i,a,u)},r.prototype.onCancelTask=function(e,t,n,i){return i.type!=="eventTask"&&this.removeFromTasks(i),this.tryTriggerHasTask(e,t,n),this._delegateSpec&&this._delegateSpec.onCancelTask?this._delegateSpec.onCancelTask(e,t,n,i):e.cancelTask(n,i)},r.prototype.onHasTask=function(e,t,n,i){this.lastTaskState=i,this._delegateSpec&&this._delegateSpec.onHasTask?this._delegateSpec.onHasTask(e,t,n,i):e.hasTask(n,i)},r}();function ve(r){r.ProxyZoneSpec=me}var w=typeof window=="object"&&window||typeof self=="object"&&self||globalThis.global,re=w.setImmediate,ne=w.setTimeout,q=w.Date;function U(){if(arguments.length===0){var r=new q;return r.setTime(U.now()),r}else{var e=Array.prototype.slice.call(arguments);return new(q.bind.apply(q,Me([void 0],e,!1)))}}U.now=function(){var r=Zone.current.get("FakeAsyncTestZoneSpec");return r?r.getFakeSystemTime():q.now.apply(this,arguments)},U.UTC=q.UTC,U.parse=q.parse;var Q,Te=function(){},B=function(){function r(){g(this,"_schedulerQueue",[]),g(this,"_currentTickTime",0),g(this,"_currentFakeBaseSystemTime",q.now()),g(this,"_currentTickRequeuePeriodicEntries",[])}return r.getNextId=function(){var e=Q.nativeSetTimeout.call(w,Te,0);return Q.nativeClearTimeout.call(w,e),typeof e=="number"?e:r.nextNodeJSId++},r.prototype.getCurrentTickTime=function(){return this._currentTickTime},r.prototype.getFakeSystemTime=function(){return this._currentFakeBaseSystemTime+this._currentTickTime},r.prototype.setFakeBaseSystemTime=function(e){this._currentFakeBaseSystemTime=e},r.prototype.getRealSystemTime=function(){return q.now()},r.prototype.scheduleFunction=function(e,t,n){n=L(L({},{args:[],isPeriodic:!1,isRequestAnimationFrame:!1,id:-1,isRequeuePeriodic:!1}),n);var i=n.id<0?r.nextId:n.id;r.nextId=r.getNextId();var a=this._currentTickTime+t,u={endTime:a,id:i,func:e,args:n.args,delay:t,isPeriodic:n.isPeriodic,isRequestAnimationFrame:n.isRequestAnimationFrame};n.isRequeuePeriodic&&this._currentTickRequeuePeriodicEntries.push(u);for(var y=0;y<this._schedulerQueue.length;y++){var f=this._schedulerQueue[y];if(u.endTime<f.endTime)break}return this._schedulerQueue.splice(y,0,u),i},r.prototype.removeScheduledFunctionWithId=function(e){for(var t=0;t<this._schedulerQueue.length;t++)if(this._schedulerQueue[t].id==e){this._schedulerQueue.splice(t,1);break}},r.prototype.removeAll=function(){this._schedulerQueue=[]},r.prototype.getTimerCount=function(){return this._schedulerQueue.length},r.prototype.tickToNext=function(e,t,n){if(e===void 0&&(e=1),!(this._schedulerQueue.length<e)){var i=this._currentTickTime,a=this._schedulerQueue[e-1];this.tick(a.endTime-i,t,n)}},r.prototype.tick=function(e,t,n){e===void 0&&(e=0);var i=this._currentTickTime+e,a=0;n=Object.assign({processNewMacroTasksSynchronously:!0},n);var u=n.processNewMacroTasksSynchronously?this._schedulerQueue:this._schedulerQueue.slice();if(u.length===0&&t){t(e);return}for(;u.length>0;){this._currentTickRequeuePeriodicEntries=[];var y=u[0];if(i<y.endTime)break;var f=u.shift();if(!n.processNewMacroTasksSynchronously){var T=this._schedulerQueue.indexOf(f);T>=0&&this._schedulerQueue.splice(T,1)}a=this._currentTickTime,this._currentTickTime=f.endTime,t&&t(this._currentTickTime-a);var b=f.func.apply(w,f.isRequestAnimationFrame?[this._currentTickTime]:f.args);if(!b)break;n.processNewMacroTasksSynchronously||this._currentTickRequeuePeriodicEntries.forEach(function(I){for(var A=0;A<u.length;A++){var x=u[A];if(I.endTime<x.endTime)break}u.splice(A,0,I)})}a=this._currentTickTime,this._currentTickTime=i,t&&t(this._currentTickTime-a)},r.prototype.executeNextTask=function(e){var t=this._schedulerQueue.shift();t!==void 0&&(e==null||e(t.endTime-this._currentTickTime),this._currentTickTime=t.endTime,t.func.apply(w,t.isRequestAnimationFrame?[this._currentTickTime]:t.args))},r.prototype.flushOnlyPendingTimers=function(e){if(this._schedulerQueue.length===0)return 0;var t=this._currentTickTime,n=this._schedulerQueue[this._schedulerQueue.length-1];return this.tick(n.endTime-t,e,{processNewMacroTasksSynchronously:!1}),this._currentTickTime-t},r.prototype.flush=function(e,t,n){return e===void 0&&(e=20),t===void 0&&(t=!1),t?this.flushPeriodic(n):this.flushNonPeriodic(e,n)},r.prototype.flushPeriodic=function(e){if(this._schedulerQueue.length===0)return 0;var t=this._currentTickTime,n=this._schedulerQueue[this._schedulerQueue.length-1];return this.tick(n.endTime-t,e),this._currentTickTime-t},r.prototype.flushNonPeriodic=function(e,t){for(var n=this._currentTickTime,i=0,a=0;this._schedulerQueue.length>0;){if(a++,a>e)throw new Error("flush failed after reaching the limit of "+e+" tasks. Does your code use a polling timeout?");if(this._schedulerQueue.filter(function(f){return!f.isPeriodic&&!f.isRequestAnimationFrame}).length===0)break;var u=this._schedulerQueue.shift();i=this._currentTickTime,this._currentTickTime=u.endTime,t&&t(this._currentTickTime-i);var y=u.func.apply(w,u.args);if(!y)break}return this._currentTickTime-n},r}();g(B,"nextNodeJSId",1),g(B,"nextId",-1);var N=B,_e=function(){function r(e,t,n){t===void 0&&(t=!1),g(this,"trackPendingRequestAnimationFrame"),g(this,"macroTaskOptions"),g(this,"_scheduler",new N),g(this,"_microtasks",[]),g(this,"_lastError",null),g(this,"_uncaughtPromiseErrors",Promise[Zone.__symbol__("uncaughtPromiseErrors")]),g(this,"pendingPeriodicTimers",[]),g(this,"pendingTimers",[]),g(this,"patchDateLocked",!1),g(this,"tickMode",{counter:0,mode:"manual"}),g(this,"name"),g(this,"properties",{FakeAsyncTestZoneSpec:this}),this.trackPendingRequestAnimationFrame=t,this.macroTaskOptions=n,this.name="fakeAsyncTestZone for "+e,this.macroTaskOptions||(this.macroTaskOptions=w[Zone.__symbol__("FakeAsyncTestMacroTask")])}return r.assertInZone=function(){if(Zone.current.get("FakeAsyncTestZoneSpec")==null)throw new Error("The code should be running in the fakeAsync zone to call this function")},r.prototype._fnAndFlush=function(e,t){var n=this;return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return e.apply(w,i),n._lastError===null?(t.onSuccess!=null&&t.onSuccess.apply(w),n.flushMicrotasks()):t.onError!=null&&t.onError.apply(w),n._lastError===null}},r._removeTimer=function(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)},r.prototype._dequeueTimer=function(e){var t=this;return function(){r._removeTimer(t.pendingTimers,e)}},r.prototype._requeuePeriodicTimer=function(e,t,n,i){var a=this;return function(){a.pendingPeriodicTimers.indexOf(i)!==-1&&a._scheduler.scheduleFunction(e,t,{args:n,isPeriodic:!0,id:i,isRequeuePeriodic:!0})}},r.prototype._dequeuePeriodicTimer=function(e){var t=this;return function(){r._removeTimer(t.pendingPeriodicTimers,e)}},r.prototype._setTimeout=function(e,t,n,i){i===void 0&&(i=!0);var a=this._dequeueTimer(N.nextId),u=this._fnAndFlush(e,{onSuccess:a,onError:a}),y=this._scheduler.scheduleFunction(u,t,{args:n,isRequestAnimationFrame:!i});return i&&this.pendingTimers.push(y),y},r.prototype._clearTimeout=function(e){r._removeTimer(this.pendingTimers,e),this._scheduler.removeScheduledFunctionWithId(e)},r.prototype._setInterval=function(e,t,n){var i=N.nextId,a={onSuccess:null,onError:this._dequeuePeriodicTimer(i)},u=this._fnAndFlush(e,a);return a.onSuccess=this._requeuePeriodicTimer(u,t,n,i),this._scheduler.scheduleFunction(u,t,{args:n,isPeriodic:!0}),this.pendingPeriodicTimers.push(i),i},r.prototype._clearInterval=function(e){r._removeTimer(this.pendingPeriodicTimers,e),this._scheduler.removeScheduledFunctionWithId(e)},r.prototype._resetLastErrorAndThrow=function(){var e=this._lastError||this._uncaughtPromiseErrors[0];throw this._uncaughtPromiseErrors.length=0,this._lastError=null,e},r.prototype.getCurrentTickTime=function(){return this._scheduler.getCurrentTickTime()},r.prototype.getFakeSystemTime=function(){return this._scheduler.getFakeSystemTime()},r.prototype.setFakeBaseSystemTime=function(e){this._scheduler.setFakeBaseSystemTime(e)},r.prototype.getRealSystemTime=function(){return this._scheduler.getRealSystemTime()},r.patchDate=function(){w[Zone.__symbol__("disableDatePatching")]||w.Date!==U&&(w.Date=U,U.prototype=q.prototype,r.checkTimerPatch())},r.resetDate=function(){w.Date===U&&(w.Date=q)},r.checkTimerPatch=function(){if(!Q)throw new Error("Expected timers to have been patched.");w.setTimeout!==Q.setTimeout&&(w.setTimeout=Q.setTimeout,w.clearTimeout=Q.clearTimeout),w.setInterval!==Q.setInterval&&(w.setInterval=Q.setInterval,w.clearInterval=Q.clearInterval)},r.prototype.lockDatePatch=function(){this.patchDateLocked=!0,r.patchDate()},r.prototype.unlockDatePatch=function(){this.patchDateLocked=!1,r.resetDate()},r.prototype.setTickMode=function(e,t){e!==this.tickMode.mode&&(this.tickMode.counter++,this.tickMode.mode=e,e==="automatic"&&this.advanceUntilModeChanges(t))},r.prototype.advanceUntilModeChanges=function(e){var t=this;r.assertInZone();var n=Zone.current,i=this.tickMode.counter;Zone.root.run(function(){return G(t,null,function(){var a=this;return $(this,function(u){switch(u.label){case 0:return[4,ee(function(){return G(a,null,function(){var y=this;return $(this,function(f){switch(f.label){case 0:return[4,void 0];case 1:return f.sent(),n.run(function(){y.flushMicrotasks()}),[2]}})})})];case 1:if(u.sent(),this.tickMode.counter!==i)return[2];u.label=2;case 2:return[4,ee(function(){return a.newMacrotask(n)})];case 3:return u.sent(),this.tickMode.counter!==i?[2]:[4,ee(function(){return n.run(function(){a._scheduler.executeNextTask(e)})})];case 4:return u.sent(),[3,2];case 5:return[2]}})})})},r.prototype.newMacrotask=function(e){return G(this,null,function(){var t,n=this;return $(this,function(i){switch(i.label){case 0:return re?[4,new Promise(function(a){re(a)})]:[3,2];case 1:return i.sent(),[3,5];case 2:return t=new MessageChannel,[4,new Promise(function(a){t.port1.onmessage=a,t.port2.postMessage(void 0)})];case 3:return i.sent(),t.port1.close(),t.port2.close(),[4,new Promise(function(a){ne(a)})];case 4:i.sent(),i.label=5;case 5:return e.run(function(){n.flushMicrotasks()}),[2]}})})},r.prototype.tickToNext=function(e,t,n){e===void 0&&(e=1),n===void 0&&(n={processNewMacroTasksSynchronously:!0}),!(e<=0)&&(r.assertInZone(),this.flushMicrotasks(),this._scheduler.tickToNext(e,t,n),this._lastError!==null&&this._resetLastErrorAndThrow())},r.prototype.tick=function(e,t,n){e===void 0&&(e=0),n===void 0&&(n={processNewMacroTasksSynchronously:!0}),r.assertInZone(),this.flushMicrotasks(),this._scheduler.tick(e,t,n),this._lastError!==null&&this._resetLastErrorAndThrow()},r.prototype.flushMicrotasks=function(){var e=this;r.assertInZone();for(var t=function(){(e._lastError!==null||e._uncaughtPromiseErrors.length)&&e._resetLastErrorAndThrow()};this._microtasks.length>0;){var n=this._microtasks.shift();n.func.apply(n.target,n.args)}t()},r.prototype.flush=function(e,t,n){r.assertInZone(),this.flushMicrotasks();var i=this._scheduler.flush(e,t,n);return this._lastError!==null&&this._resetLastErrorAndThrow(),i},r.prototype.flushOnlyPendingTimers=function(e){r.assertInZone(),this.flushMicrotasks();var t=this._scheduler.flushOnlyPendingTimers(e);return this._lastError!==null&&this._resetLastErrorAndThrow(),t},r.prototype.removeAllTimers=function(){r.assertInZone(),this._scheduler.removeAll(),this.pendingPeriodicTimers=[],this.pendingTimers=[]},r.prototype.getTimerCount=function(){return this._scheduler.getTimerCount()+this._microtasks.length},r.prototype.onScheduleTask=function(e,t,n,i){switch(i.type){case"microTask":var a=i.data&&i.data.args,u=void 0;if(a){var y=i.data.cbIdx;typeof a.length=="number"&&a.length>y+1&&(u=Array.prototype.slice.call(a,y+1))}this._microtasks.push({func:i.invoke,args:u,target:i.data&&i.data.target});break;case"macroTask":switch(i.source){case"setTimeout":i.data.handleId=this._setTimeout(i.invoke,i.data.delay,Array.prototype.slice.call(i.data.args,2));break;case"setImmediate":i.data.handleId=this._setTimeout(i.invoke,0,Array.prototype.slice.call(i.data.args,1));break;case"setInterval":i.data.handleId=this._setInterval(i.invoke,i.data.delay,Array.prototype.slice.call(i.data.args,2));break;case"XMLHttpRequest.send":if(this.tickMode.mode==="manual")throw new Error("Cannot make XHRs from within a fake async test. Request URL: "+i.data.url);i=e.scheduleTask(n,i);break;case"requestAnimationFrame":case"webkitRequestAnimationFrame":case"mozRequestAnimationFrame":i.data.handleId=this._setTimeout(i.invoke,16,i.data.args,this.trackPendingRequestAnimationFrame);break;default:var f=this.findMacroTaskOption(i);if(f){var T=i.data&&i.data.args,b=T&&T.length>1?T[1]:0,I=f.callbackArgs?f.callbackArgs:T;f.isPeriodic?(i.data.handleId=this._setInterval(i.invoke,b,I),i.data.isPeriodic=!0):i.data.handleId=this._setTimeout(i.invoke,b,I);break}throw new Error("Unknown macroTask scheduled in fake async test: "+i.source)}break;case"eventTask":i=e.scheduleTask(n,i);break}return i},r.prototype.onCancelTask=function(e,t,n,i){switch(i.source){case"setTimeout":case"requestAnimationFrame":case"webkitRequestAnimationFrame":case"mozRequestAnimationFrame":return this._clearTimeout(i.data.handleId);case"setInterval":return this._clearInterval(i.data.handleId);default:var a=this.findMacroTaskOption(i);if(a){var u=i.data.handleId;return a.isPeriodic?this._clearInterval(u):this._clearTimeout(u)}return e.cancelTask(n,i)}},r.prototype.onInvoke=function(e,t,n,i,a,u,y){try{return r.patchDate(),e.invoke(n,i,a,u,y)}finally{this.patchDateLocked||r.resetDate()}},r.prototype.findMacroTaskOption=function(e){if(!this.macroTaskOptions)return null;for(var t=0;t<this.macroTaskOptions.length;t++){var n=this.macroTaskOptions[t];if(n.source===e.source)return n}return null},r.prototype.onHandleError=function(e,t,n,i){return this._lastError=i,!1},r}(),Z=null;function V(){return Zone&&Zone.ProxyZoneSpec}var K=null,ie=null;function se(){var r,e;Z&&Z.unlockDatePatch(),Z=null,(e=(r=V())==null?void 0:r.get())==null||e.resetDelegate(),K==null||K.resetDelegate()}function ge(r,e){e===void 0&&(e={});var t=e.flush,n=t===void 0?!0:t,i=function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];var y=V();y||de();var f=y.assertPresent();if(Zone.current.get("FakeAsyncTestZoneSpec"))throw new Error("fakeAsync() calls can not be nested");try{if(!Z){var T=Zone&&Zone.FakeAsyncTestZoneSpec;if(f.getDelegate()instanceof T)throw new Error("fakeAsync() calls can not be nested");Z=new T}var b=void 0,I=f.getDelegate();f.setDelegate(Z),Z.lockDatePatch();try{b=r.apply(this,a),n?Z.flush(20,!0):oe()}finally{f.setDelegate(I)}if(!n){if(Z.pendingPeriodicTimers.length>0)throw new Error("".concat(Z.pendingPeriodicTimers.length," periodic timer(s) still in the queue."));if(Z.pendingTimers.length>0)throw new Error("".concat(Z.pendingTimers.length," timer(s) still in the queue."))}return b}finally{se()}};return i.isFakeAsync=!0,i}function X(){if(Z==null&&(Z=Zone.current.get("FakeAsyncTestZoneSpec"),Z==null))throw new Error("The code should be running in the fakeAsync zone to call this function");return Z}function ke(r,e){r===void 0&&(r=0),e===void 0&&(e=!1),X().tick(r,null,e)}function Se(r){return X().flush(r)}function Pe(){var r=X(),e=r.pendingPeriodicTimers;r.pendingPeriodicTimers.length=0}function be(r){var e=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=V();if(i===void 0)throw new Error("ProxyZoneSpec is needed for the withProxyZone() test helper but could not be found. Make sure that your environment includes zone-testing.js");var a=i.get()!==void 0?Zone.current:we();return a.run(r,this,t)};return e}function we(){var r=V();if(r===void 0)throw new Error("ProxyZoneSpec is needed for withProxyZone but could not be found. Make sure that your environment includes zone-testing.js");return K===null&&(K=new r),ie=Zone.root.fork(K),ie}function oe(){X().flushMicrotasks()}function Ae(r){r.FakeAsyncTestZoneSpec=_e,r.__load_patch("fakeasync",function(e,t,n){t[n.symbol("fakeAsyncTest")]={resetFakeAsyncZone:se,flushMicrotasks:oe,discardPeriodicTasks:Pe,tick:ke,flush:Se,fakeAsync:ge,withProxyZone:be}},!0),Q={setTimeout:w.setTimeout,setInterval:w.setInterval,clearTimeout:w.clearTimeout,clearInterval:w.clearInterval,nativeSetTimeout:w[r.__symbol__("setTimeout")],nativeClearTimeout:w[r.__symbol__("clearTimeout")]},N.nextId=N.getNextId()}function ee(r){return G(this,null,function(){var e;return $(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,r()];case 1:return[2,t.sent()];case 2:return e=t.sent(),Ee(e),[3,3];case 3:return[2]}})})}function Ee(r){Zone.root.run(function(){ne(function(){throw r})})}function Fe(r){var e="\n",t={},n="__creationTrace__",i="STACKTRACE TRACKING",a="__SEP_TAG__",u=a+"@[native]",y=function(){function c(){g(this,"error",A()),g(this,"timestamp",new Date)}return c}();function f(){return new Error(i)}function T(){try{throw f()}catch(c){return c}}var b=f(),I=T(),A=b.stack?f:I.stack?T:f;function x(c){return c.stack?c.stack.split(e):[]}function _(c,d){for(var s=x(d),o=0;o<s.length;o++){var p=s[o];t.hasOwnProperty(p)||c.push(s[o])}}function l(c,d){var s=[d?d.trim():""];if(c)for(var o=new Date().getTime(),p=0;p<c.length;p++){var v=c[p],F=v.timestamp,D="____________________Elapsed ".concat(o-F.getTime()," ms; At: ").concat(F);D=D.replace(/[^\w\d]/g,"_"),s.push(u.replace(a,D)),_(s,v.error),o=F.getTime()}return s.join(e)}function h(){return Error.stackTraceLimit>0}r.longStackTraceZoneSpec={name:"long-stack-trace",longStackTraceLimit:10,getLongStackTrace:function(c){if(c){var d=c[r.__symbol__("currentTaskTrace")];return d?l(d,c.stack):c.stack}},onScheduleTask:function(c,d,s,o){if(h()){var p=r.currentTask,v=p&&p.data&&p.data[n]||[];v=[new y].concat(v),v.length>this.longStackTraceLimit&&(v.length=this.longStackTraceLimit),o.data||(o.data={}),o.type==="eventTask"&&(o.data=L({},o.data)),o.data[n]=v}return c.scheduleTask(s,o)},onHandleError:function(c,d,s,o){if(h()){var p=r.currentTask||o.task;if(o instanceof Error&&p){var v=l(p.data&&p.data[n],o.stack);try{o.stack=o.longStack=v}catch(F){}}}return c.handleError(s,o)}};function m(c,d){d>0&&(c.push(x(new y().error)),m(c,d-1))}function S(){if(h()){var c=[];m(c,2);for(var d=c[0],s=c[1],o=0;o<d.length;o++){var p=d[o];if(p.indexOf(i)==-1){var v=p.match(/^\s*at\s+/);if(v){u=v[0]+a+" (http://localhost)";break}}}for(var o=0;o<d.length;o++){var p=d[o],F=s[o];if(p===F)t[p]=!0;else break}}}S()}function Ie(r){var e=function(){function t(n){g(this,"runZone",r.current),g(this,"name"),this.name="syncTestZone for "+n}return t.prototype.onScheduleTask=function(n,i,a,u){switch(u.type){case"microTask":case"macroTask":throw new Error("Cannot call ".concat(u.source," from within a sync test (").concat(this.name,")."));case"eventTask":u=n.scheduleTask(a,u);break}return u},t}();r.SyncTestZoneSpec=e}function xe(r){r.__load_patch("promisefortest",function(e,t,n){var i=n.symbol("state"),a=null,u=n.symbol("parentUnresolved");Promise[n.symbol("patchPromiseForTest")]=function(){var f=Promise[t.__symbol__("ZonePromiseThen")];f||(f=Promise[t.__symbol__("ZonePromiseThen")]=Promise.prototype.then,Promise.prototype.then=function(){var T=f.apply(this,arguments);if(this[i]===a){var b=t.current.get("AsyncTestZoneSpec");b&&(b.unresolvedChainedPromiseCount++,T[u]=!0)}return T})},Promise[n.symbol("unPatchPromiseForTest")]=function(){var f=Promise[t.__symbol__("ZonePromiseThen")];f&&(Promise.prototype.then=f,Promise[t.__symbol__("ZonePromiseThen")]=void 0)}})}function Ze(r){Fe(r),ve(r),Ie(r),ce(r),ue(r),fe(r),ye(r),Ae(r),xe(r)}return Ze(Zone),j!=R&&(E.exports=R),E.exports});
|
|
|
|
if(__exports != exports)module.exports = exports;return module.exports}));
|
|
|