1 line
66 KiB
JavaScript
1 line
66 KiB
JavaScript
"use strict";(self.webpackChunkstaffdb=self.webpackChunkstaffdb||[]).push([[461],{12523:(xe,Oe,ot)=>{const Ye=":";Error;const I=function(e,...t){if(I.translate){const d=I.translate(e,t);e=d[0],t=d[1]}let a=P(e[0],e.raw[0]);for(let d=1;d<e.length;d++)a+=t[d-1]+P(e[d],e.raw[d]);return a},B=":";function P(e,t){return t.charAt(0)===B?e.substring(function o(e,t){for(let a=1,d=1;a<e.length;a++,d++)if("\\"===t[d])d++;else if(e[a]===Ye)return a;throw new Error(`Unterminated $localize metadata block in "${t}".`)}(e,t)+1):e}globalThis.$localize=I,ot(96935),ot(70542)},70542:()=>{const Ye=globalThis;function Ge(A){return(Ye.__Zone_symbol_prefix||"__zone_symbol__")+A}const tt=typeof window<"u"&&window||typeof self<"u"&&self||global;class Ke{static get symbolParentUnresolved(){return Ge("parentUnresolved")}constructor(n,s,c){this.finishCallback=n,this.failCallback=s,this._pendingMicroTasks=!1,this._pendingMacroTasks=!1,this._alreadyErrored=!1,this._isSync=!1,this._existingFinishTimer=null,this.entryFunction=null,this.runZone=Zone.current,this.unresolvedChainedPromiseCount=0,this.supportWaitUnresolvedChainedPromise=!1,this.name="asyncTestZone for "+c,this.properties={AsyncTestZoneSpec:this},this.supportWaitUnresolvedChainedPromise=!0===tt[Ge("supportWaitUnResolvedChainedPromise")]}isUnresolvedChainedPromisePending(){return this.unresolvedChainedPromiseCount>0}_finishCallbackIfDone(){null!==this._existingFinishTimer&&(clearTimeout(this._existingFinishTimer),this._existingFinishTimer=null),this._pendingMicroTasks||this._pendingMacroTasks||this.supportWaitUnresolvedChainedPromise&&this.isUnresolvedChainedPromisePending()||this.runZone.run(()=>{this._existingFinishTimer=setTimeout(()=>{!this._alreadyErrored&&!this._pendingMicroTasks&&!this._pendingMacroTasks&&this.finishCallback()},0)})}patchPromiseForTest(){if(!this.supportWaitUnresolvedChainedPromise)return;const n=Promise[Zone.__symbol__("patchPromiseForTest")];n&&n()}unPatchPromiseForTest(){if(!this.supportWaitUnresolvedChainedPromise)return;const n=Promise[Zone.__symbol__("unPatchPromiseForTest")];n&&n()}onScheduleTask(n,s,c,o){return"eventTask"!==o.type&&(this._isSync=!1),"microTask"===o.type&&o.data&&o.data instanceof Promise&&!0===o.data[Ke.symbolParentUnresolved]&&this.unresolvedChainedPromiseCount--,n.scheduleTask(c,o)}onInvokeTask(n,s,c,o,E,R){return"eventTask"!==o.type&&(this._isSync=!1),n.invokeTask(c,o,E,R)}onCancelTask(n,s,c,o){return"eventTask"!==o.type&&(this._isSync=!1),n.cancelTask(c,o)}onInvoke(n,s,c,o,E,R,v){this.entryFunction||(this.entryFunction=o);try{return this._isSync=!0,n.invoke(c,o,E,R,v)}finally{this._isSync&&this.entryFunction===o&&this._finishCallbackIfDone()}}onHandleError(n,s,c,o){return n.handleError(c,o)&&(this.failCallback(o),this._alreadyErrored=!0),!1}onHasTask(n,s,c,o){n.hasTask(c,o),s===c&&("microTask"==o.change?(this._pendingMicroTasks=o.microTask,this._finishCallbackIfDone()):"macroTask"==o.change&&(this._pendingMacroTasks=o.macroTask,this._finishCallbackIfDone()))}}const ue="object"==typeof window&&window||"object"==typeof self&&self||globalThis.global,je=ue.Date;function Ze(){if(0===arguments.length){const A=new je;return A.setTime(Ze.now()),A}{const A=Array.prototype.slice.call(arguments);return new je(...A)}}let Ne;Ze.now=function(){const A=Zone.current.get("FakeAsyncTestZoneSpec");return A?A.getFakeSystemTime():je.now.apply(this,arguments)},Ze.UTC=je.UTC,Ze.parse=je.parse;const ct=function(){};let Me=(()=>{class A{static#e=this.nextNodeJSId=1;static#t=this.nextId=-1;constructor(){this._schedulerQueue=[],this._currentTickTime=0,this._currentFakeBaseSystemTime=je.now(),this._currentTickRequeuePeriodicEntries=[]}static getNextId(){const s=Ne.nativeSetTimeout.call(ue,ct,0);return Ne.nativeClearTimeout.call(ue,s),"number"==typeof s?s:A.nextNodeJSId++}getCurrentTickTime(){return this._currentTickTime}getFakeSystemTime(){return this._currentFakeBaseSystemTime+this._currentTickTime}setFakeBaseSystemTime(s){this._currentFakeBaseSystemTime=s}getRealSystemTime(){return je.now()}scheduleFunction(s,c,o){let E=(o={args:[],isPeriodic:!1,isRequestAnimationFrame:!1,id:-1,isRequeuePeriodic:!1,...o}).id<0?A.nextId:o.id;A.nextId=A.getNextId();let v={endTime:this._currentTickTime+c,id:E,func:s,args:o.args,delay:c,isPeriodic:o.isPeriodic,isRequestAnimationFrame:o.isRequestAnimationFrame};o.isRequeuePeriodic&&this._currentTickRequeuePeriodicEntries.push(v);let w=0;for(;w<this._schedulerQueue.length&&!(v.endTime<this._schedulerQueue[w].endTime);w++);return this._schedulerQueue.splice(w,0,v),E}removeScheduledFunctionWithId(s){for(let c=0;c<this._schedulerQueue.length;c++)if(this._schedulerQueue[c].id==s){this._schedulerQueue.splice(c,1);break}}removeAll(){this._schedulerQueue=[]}getTimerCount(){return this._schedulerQueue.length}tickToNext(s=1,c,o){this._schedulerQueue.length<s||this.tick(this._schedulerQueue[s-1].endTime-this._currentTickTime,c,o)}tick(s=0,c,o){let E=this._currentTickTime+s,R=0;const v=(o=Object.assign({processNewMacroTasksSynchronously:!0},o)).processNewMacroTasksSynchronously?this._schedulerQueue:this._schedulerQueue.slice();if(0===v.length&&c)c(s);else{for(;v.length>0&&(this._currentTickRequeuePeriodicEntries=[],!(E<v[0].endTime));){let re=v.shift();if(!o.processNewMacroTasksSynchronously){const ke=this._schedulerQueue.indexOf(re);ke>=0&&this._schedulerQueue.splice(ke,1)}if(R=this._currentTickTime,this._currentTickTime=re.endTime,c&&c(this._currentTickTime-R),!re.func.apply(ue,re.isRequestAnimationFrame?[this._currentTickTime]:re.args))break;o.processNewMacroTasksSynchronously||this._currentTickRequeuePeriodicEntries.forEach(ke=>{let ne=0;for(;ne<v.length&&!(ke.endTime<v[ne].endTime);ne++);v.splice(ne,0,ke)})}R=this._currentTickTime,this._currentTickTime=E,c&&c(this._currentTickTime-R)}}flushOnlyPendingTimers(s){if(0===this._schedulerQueue.length)return 0;const c=this._currentTickTime;return this.tick(this._schedulerQueue[this._schedulerQueue.length-1].endTime-c,s,{processNewMacroTasksSynchronously:!1}),this._currentTickTime-c}flush(s=20,c=!1,o){return c?this.flushPeriodic(o):this.flushNonPeriodic(s,o)}flushPeriodic(s){if(0===this._schedulerQueue.length)return 0;const c=this._currentTickTime;return this.tick(this._schedulerQueue[this._schedulerQueue.length-1].endTime-c,s),this._currentTickTime-c}flushNonPeriodic(s,c){const o=this._currentTickTime;let E=0,R=0;for(;this._schedulerQueue.length>0;){if(R++,R>s)throw new Error("flush failed after reaching the limit of "+s+" tasks. Does your code use a polling timeout?");if(0===this._schedulerQueue.filter(re=>!re.isPeriodic&&!re.isRequestAnimationFrame).length)break;const v=this._schedulerQueue.shift();if(E=this._currentTickTime,this._currentTickTime=v.endTime,c&&c(this._currentTickTime-E),!v.func.apply(ue,v.args))break}return this._currentTickTime-o}}return A})();class le{static assertInZone(){if(null==Zone.current.get("FakeAsyncTestZoneSpec"))throw new Error("The code should be running in the fakeAsync zone to call this function")}constructor(n,s=!1,c){this.trackPendingRequestAnimationFrame=s,this.macroTaskOptions=c,this._scheduler=new Me,this._microtasks=[],this._lastError=null,this._uncaughtPromiseErrors=Promise[Zone.__symbol__("uncaughtPromiseErrors")],this.pendingPeriodicTimers=[],this.pendingTimers=[],this.patchDateLocked=!1,this.properties={FakeAsyncTestZoneSpec:this},this.name="fakeAsyncTestZone for "+n,this.macroTaskOptions||(this.macroTaskOptions=ue[Zone.__symbol__("FakeAsyncTestMacroTask")])}_fnAndFlush(n,s){return(...c)=>(n.apply(ue,c),null===this._lastError?(null!=s.onSuccess&&s.onSuccess.apply(ue),this.flushMicrotasks()):null!=s.onError&&s.onError.apply(ue),null===this._lastError)}static _removeTimer(n,s){let c=n.indexOf(s);c>-1&&n.splice(c,1)}_dequeueTimer(n){return()=>{le._removeTimer(this.pendingTimers,n)}}_requeuePeriodicTimer(n,s,c,o){return()=>{-1!==this.pendingPeriodicTimers.indexOf(o)&&this._scheduler.scheduleFunction(n,s,{args:c,isPeriodic:!0,id:o,isRequeuePeriodic:!0})}}_dequeuePeriodicTimer(n){return()=>{le._removeTimer(this.pendingPeriodicTimers,n)}}_setTimeout(n,s,c,o=!0){let E=this._dequeueTimer(Me.nextId),R=this._fnAndFlush(n,{onSuccess:E,onError:E}),v=this._scheduler.scheduleFunction(R,s,{args:c,isRequestAnimationFrame:!o});return o&&this.pendingTimers.push(v),v}_clearTimeout(n){le._removeTimer(this.pendingTimers,n),this._scheduler.removeScheduledFunctionWithId(n)}_setInterval(n,s,c){let o=Me.nextId,E={onSuccess:null,onError:this._dequeuePeriodicTimer(o)},R=this._fnAndFlush(n,E);return E.onSuccess=this._requeuePeriodicTimer(R,s,c,o),this._scheduler.scheduleFunction(R,s,{args:c,isPeriodic:!0}),this.pendingPeriodicTimers.push(o),o}_clearInterval(n){le._removeTimer(this.pendingPeriodicTimers,n),this._scheduler.removeScheduledFunctionWithId(n)}_resetLastErrorAndThrow(){let n=this._lastError||this._uncaughtPromiseErrors[0];throw this._uncaughtPromiseErrors.length=0,this._lastError=null,n}getCurrentTickTime(){return this._scheduler.getCurrentTickTime()}getFakeSystemTime(){return this._scheduler.getFakeSystemTime()}setFakeBaseSystemTime(n){this._scheduler.setFakeBaseSystemTime(n)}getRealSystemTime(){return this._scheduler.getRealSystemTime()}static patchDate(){ue[Zone.__symbol__("disableDatePatching")]||ue.Date!==Ze&&(ue.Date=Ze,Ze.prototype=je.prototype,le.checkTimerPatch())}static resetDate(){ue.Date===Ze&&(ue.Date=je)}static checkTimerPatch(){if(!Ne)throw new Error("Expected timers to have been patched.");ue.setTimeout!==Ne.setTimeout&&(ue.setTimeout=Ne.setTimeout,ue.clearTimeout=Ne.clearTimeout),ue.setInterval!==Ne.setInterval&&(ue.setInterval=Ne.setInterval,ue.clearInterval=Ne.clearInterval)}lockDatePatch(){this.patchDateLocked=!0,le.patchDate()}unlockDatePatch(){this.patchDateLocked=!1,le.resetDate()}tickToNext(n=1,s,c={processNewMacroTasksSynchronously:!0}){n<=0||(le.assertInZone(),this.flushMicrotasks(),this._scheduler.tickToNext(n,s,c),null!==this._lastError&&this._resetLastErrorAndThrow())}tick(n=0,s,c={processNewMacroTasksSynchronously:!0}){le.assertInZone(),this.flushMicrotasks(),this._scheduler.tick(n,s,c),null!==this._lastError&&this._resetLastErrorAndThrow()}flushMicrotasks(){for(le.assertInZone();this._microtasks.length>0;){let s=this._microtasks.shift();s.func.apply(s.target,s.args)}(()=>{(null!==this._lastError||this._uncaughtPromiseErrors.length)&&this._resetLastErrorAndThrow()})()}flush(n,s,c){le.assertInZone(),this.flushMicrotasks();const o=this._scheduler.flush(n,s,c);return null!==this._lastError&&this._resetLastErrorAndThrow(),o}flushOnlyPendingTimers(n){le.assertInZone(),this.flushMicrotasks();const s=this._scheduler.flushOnlyPendingTimers(n);return null!==this._lastError&&this._resetLastErrorAndThrow(),s}removeAllTimers(){le.assertInZone(),this._scheduler.removeAll(),this.pendingPeriodicTimers=[],this.pendingTimers=[]}getTimerCount(){return this._scheduler.getTimerCount()+this._microtasks.length}onScheduleTask(n,s,c,o){switch(o.type){case"microTask":let R,E=o.data&&o.data.args;if(E){let v=o.data.cbIdx;"number"==typeof E.length&&E.length>v+1&&(R=Array.prototype.slice.call(E,v+1))}this._microtasks.push({func:o.invoke,args:R,target:o.data&&o.data.target});break;case"macroTask":switch(o.source){case"setTimeout":o.data.handleId=this._setTimeout(o.invoke,o.data.delay,Array.prototype.slice.call(o.data.args,2));break;case"setImmediate":o.data.handleId=this._setTimeout(o.invoke,0,Array.prototype.slice.call(o.data.args,1));break;case"setInterval":o.data.handleId=this._setInterval(o.invoke,o.data.delay,Array.prototype.slice.call(o.data.args,2));break;case"XMLHttpRequest.send":throw new Error("Cannot make XHRs from within a fake async test. Request URL: "+o.data.url);case"requestAnimationFrame":case"webkitRequestAnimationFrame":case"mozRequestAnimationFrame":o.data.handleId=this._setTimeout(o.invoke,16,o.data.args,this.trackPendingRequestAnimationFrame);break;default:const v=this.findMacroTaskOption(o);if(v){const w=o.data&&o.data.args,re=w&&w.length>1?w[1]:0;let ce=v.callbackArgs?v.callbackArgs:w;v.isPeriodic?(o.data.handleId=this._setInterval(o.invoke,re,ce),o.data.isPeriodic=!0):o.data.handleId=this._setTimeout(o.invoke,re,ce);break}throw new Error("Unknown macroTask scheduled in fake async test: "+o.source)}break;case"eventTask":o=n.scheduleTask(c,o)}return o}onCancelTask(n,s,c,o){switch(o.source){case"setTimeout":case"requestAnimationFrame":case"webkitRequestAnimationFrame":case"mozRequestAnimationFrame":return this._clearTimeout(o.data.handleId);case"setInterval":return this._clearInterval(o.data.handleId);default:const E=this.findMacroTaskOption(o);if(E){const R=o.data.handleId;return E.isPeriodic?this._clearInterval(R):this._clearTimeout(R)}return n.cancelTask(c,o)}}onInvoke(n,s,c,o,E,R,v){try{return le.patchDate(),n.invoke(c,o,E,R,v)}finally{this.patchDateLocked||le.resetDate()}}findMacroTaskOption(n){if(!this.macroTaskOptions)return null;for(let s=0;s<this.macroTaskOptions.length;s++){const c=this.macroTaskOptions[s];if(c.source===n.source)return c}return null}onHandleError(n,s,c,o){return this._lastError=o,!1}}let ye=null;function et(){return Zone&&Zone.ProxyZoneSpec}function Ue(){ye&&ye.unlockDatePatch(),ye=null,et()&&et().assertPresent().resetDelegate()}function oe(A){const n=function(...s){const c=et();if(!c)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");const o=c.assertPresent();if(Zone.current.get("FakeAsyncTestZoneSpec"))throw new Error("fakeAsync() calls can not be nested");try{if(!ye){const v=Zone&&Zone.FakeAsyncTestZoneSpec;if(o.getDelegate()instanceof v)throw new Error("fakeAsync() calls can not be nested");ye=new v}let E;const R=o.getDelegate();o.setDelegate(ye),ye.lockDatePatch();try{E=A.apply(this,s),Ve()}finally{o.setDelegate(R)}if(ye.pendingPeriodicTimers.length>0)throw new Error(`${ye.pendingPeriodicTimers.length} periodic timer(s) still in the queue.`);if(ye.pendingTimers.length>0)throw new Error(`${ye.pendingTimers.length} timer(s) still in the queue.`);return E}finally{Ue()}};return n.isFakeAsync=!0,n}function ze(){if(null==ye&&(ye=Zone.current.get("FakeAsyncTestZoneSpec"),null==ye))throw new Error("The code should be running in the fakeAsync zone to call this function");return ye}function qe(A=0,n=!1){ze().tick(A,null,n)}function ge(A){return ze().flush(A)}function ft(){ze().pendingPeriodicTimers.length=0}function Ve(){ze().flushMicrotasks()}function dt(A){const n="\n",s={},c="__creationTrace__",o="STACKTRACE TRACKING",E="__SEP_TAG__";let R=E+"@[native]";class v{constructor(){this.error=ne(),this.timestamp=new Date}}function w(){return new Error(o)}function re(){try{throw w()}catch(T){return T}}const ce=w(),ke=re(),ne=ce.stack?w:ke.stack?re:w;function ve(T){return T.stack?T.stack.split(n):[]}function O(T,e){let t=ve(e);for(let a=0;a<t.length;a++)s.hasOwnProperty(t[a])||T.push(t[a])}function I(T,e){const t=[e?e.trim():""];if(T){let a=(new Date).getTime();for(let d=0;d<T.length;d++){const y=T[d],D=y.timestamp;let Pe=`____________________Elapsed ${a-D.getTime()} ms; At: ${D}`;Pe=Pe.replace(/[^\w\d]/g,"_"),t.push(R.replace(E,Pe)),O(t,y.error),a=D.getTime()}}return t.join(n)}function B(){return Error.stackTraceLimit>0}function P(T,e){e>0&&(T.push(ve((new v).error)),P(T,e-1))}A.longStackTraceZoneSpec={name:"long-stack-trace",longStackTraceLimit:10,getLongStackTrace:function(T){if(!T)return;const e=T[A.__symbol__("currentTaskTrace")];return e?I(e,T.stack):T.stack},onScheduleTask:function(T,e,t,a){if(B()){const d=A.currentTask;let y=d&&d.data&&d.data[c]||[];y=[new v].concat(y),y.length>this.longStackTraceLimit&&(y.length=this.longStackTraceLimit),a.data||(a.data={}),"eventTask"===a.type&&(a.data={...a.data}),a.data[c]=y}return T.scheduleTask(t,a)},onHandleError:function(T,e,t,a){if(B()){const d=A.currentTask||a.task;if(a instanceof Error&&d){const y=I(d.data&&d.data[c],a.stack);try{a.stack=a.longStack=y}catch{}}}return T.handleError(t,a)}},function S(){if(!B())return;const T=[];P(T,2);const e=T[0],t=T[1];for(let a=0;a<e.length;a++){const d=e[a];if(-1==d.indexOf(o)){let y=d.match(/^\s*at\s+/);if(y){R=y[0]+E+" (http://localhost)";break}}}for(let a=0;a<e.length;a++){const d=e[a];if(d!==t[a])break;s[d]=!0}}()}class Le{static get(){return Zone.current.get("ProxyZoneSpec")}static isLoaded(){return Le.get()instanceof Le}static assertPresent(){if(!Le.isLoaded())throw new Error("Expected to be running in 'ProxyZone', but it was not found.");return Le.get()}constructor(n=null){this.defaultSpecDelegate=n,this.name="ProxyZone",this._delegateSpec=null,this.properties={ProxyZoneSpec:this},this.propertyKeys=null,this.lastTaskState=null,this.isNeedToTriggerHasTask=!1,this.tasks=[],this.setDelegate(n)}setDelegate(n){const s=this._delegateSpec!==n;this._delegateSpec=n,this.propertyKeys&&this.propertyKeys.forEach(c=>delete this.properties[c]),this.propertyKeys=null,n&&n.properties&&(this.propertyKeys=Object.keys(n.properties),this.propertyKeys.forEach(c=>this.properties[c]=n.properties[c])),s&&this.lastTaskState&&(this.lastTaskState.macroTask||this.lastTaskState.microTask)&&(this.isNeedToTriggerHasTask=!0)}getDelegate(){return this._delegateSpec}resetDelegate(){this.getDelegate(),this.setDelegate(this.defaultSpecDelegate)}tryTriggerHasTask(n,s,c){this.isNeedToTriggerHasTask&&this.lastTaskState&&(this.isNeedToTriggerHasTask=!1,this.onHasTask(n,s,c,this.lastTaskState))}removeFromTasks(n){if(this.tasks)for(let s=0;s<this.tasks.length;s++)if(this.tasks[s]===n)return void this.tasks.splice(s,1)}getAndClearPendingTasksInfo(){if(0===this.tasks.length)return"";const s="--Pending async tasks are: ["+this.tasks.map(c=>{const o=c.data&&Object.keys(c.data).map(E=>E+":"+c.data[E]).join(",");return`type: ${c.type}, source: ${c.source}, args: {${o}}`})+"]";return this.tasks=[],s}onFork(n,s,c,o){return this._delegateSpec&&this._delegateSpec.onFork?this._delegateSpec.onFork(n,s,c,o):n.fork(c,o)}onIntercept(n,s,c,o,E){return this._delegateSpec&&this._delegateSpec.onIntercept?this._delegateSpec.onIntercept(n,s,c,o,E):n.intercept(c,o,E)}onInvoke(n,s,c,o,E,R,v){return this.tryTriggerHasTask(n,s,c),this._delegateSpec&&this._delegateSpec.onInvoke?this._delegateSpec.onInvoke(n,s,c,o,E,R,v):n.invoke(c,o,E,R,v)}onHandleError(n,s,c,o){return this._delegateSpec&&this._delegateSpec.onHandleError?this._delegateSpec.onHandleError(n,s,c,o):n.handleError(c,o)}onScheduleTask(n,s,c,o){return"eventTask"!==o.type&&this.tasks.push(o),this._delegateSpec&&this._delegateSpec.onScheduleTask?this._delegateSpec.onScheduleTask(n,s,c,o):n.scheduleTask(c,o)}onInvokeTask(n,s,c,o,E,R){return"eventTask"!==o.type&&this.removeFromTasks(o),this.tryTriggerHasTask(n,s,c),this._delegateSpec&&this._delegateSpec.onInvokeTask?this._delegateSpec.onInvokeTask(n,s,c,o,E,R):n.invokeTask(c,o,E,R)}onCancelTask(n,s,c,o){return"eventTask"!==o.type&&this.removeFromTasks(o),this.tryTriggerHasTask(n,s,c),this._delegateSpec&&this._delegateSpec.onCancelTask?this._delegateSpec.onCancelTask(n,s,c,o):n.cancelTask(c,o)}onHasTask(n,s,c,o){this.lastTaskState=o,this._delegateSpec&&this._delegateSpec.onHasTask?this._delegateSpec.onHasTask(n,s,c,o):n.hasTask(c,o)}}!function it(A){dt(A),function rt(A){A.ProxyZoneSpec=Le}(A),function st(A){A.SyncTestZoneSpec=class n{constructor(c){this.runZone=A.current,this.name="syncTestZone for "+c}onScheduleTask(c,o,E,R){switch(R.type){case"microTask":case"macroTask":throw new Error(`Cannot call ${R.source} from within a sync test (${this.name}).`);case"eventTask":R=c.scheduleTask(E,R)}return R}}}(A),function xe(A){A.__load_patch("jasmine",(n,s,c)=>{if(!s)throw new Error("Missing: zone.js");if(typeof jest<"u"||typeof jasmine>"u"||jasmine.__zone_patch__)return;jasmine.__zone_patch__=!0;const E=s.SyncTestZoneSpec,R=s.ProxyZoneSpec;if(!E)throw new Error("Missing: SyncTestZoneSpec");if(!R)throw new Error("Missing: ProxyZoneSpec");const v=s.current,w=s.__symbol__,re=!0===n[w("fakeAsyncDisablePatchingClock")],ce=!re&&(!0===n[w("fakeAsyncPatchLock")]||!0===n[w("fakeAsyncAutoFakeAsyncWhenClockPatched")]);if(!0!==n[w("ignoreUnhandledRejection")]){const P=jasmine.GlobalErrors;P&&!jasmine[w("GlobalErrors")]&&(jasmine[w("GlobalErrors")]=P,jasmine.GlobalErrors=function(){const S=new P,T=S.install;return T&&!S[w("install")]&&(S[w("install")]=T,S.install=function(){const e=typeof process<"u"&&!!process.on,t=e?process.listeners("unhandledRejection"):n.eventListeners("unhandledrejection"),a=T.apply(this,arguments);return e?process.removeAllListeners("unhandledRejection"):n.removeAllListeners("unhandledrejection"),t&&t.forEach(d=>{e?process.on("unhandledRejection",d):n.addEventListener("unhandledrejection",d)}),a}),S})}const ne=jasmine.getEnv();if(["describe","xdescribe","fdescribe"].forEach(P=>{let S=ne[P];ne[P]=function(T,e){return S.call(this,T,function ve(P,S){return function(){return v.fork(new E(`jasmine.describe#${P}`)).run(S,this,arguments)}}(T,e))}}),["it","xit","fit"].forEach(P=>{let S=ne[P];ne[w(P)]=S,ne[P]=function(T,e,t){return arguments[1]=I(e),S.apply(this,arguments)}}),["beforeEach","afterEach","beforeAll","afterAll"].forEach(P=>{let S=ne[P];ne[w(P)]=S,ne[P]=function(T,e){return arguments[0]=I(T),S.apply(this,arguments)}}),!re){const P=jasmine[w("clock")]=jasmine.clock;jasmine.clock=function(){const S=P.apply(this,arguments);if(!S[w("patched")]){S[w("patched")]=w("patched");const T=S[w("tick")]=S.tick;S.tick=function(){const t=s.current.get("FakeAsyncTestZoneSpec");return t?t.tick.apply(t,arguments):T.apply(this,arguments)};const e=S[w("mockDate")]=S.mockDate;S.mockDate=function(){const t=s.current.get("FakeAsyncTestZoneSpec");if(t){const a=arguments.length>0?arguments[0]:new Date;return t.setFakeBaseSystemTime.apply(t,a&&"function"==typeof a.getTime?[a.getTime()]:arguments)}return e.apply(this,arguments)},ce&&["install","uninstall"].forEach(t=>{const a=S[w(t)]=S[t];S[t]=function(){if(!s.FakeAsyncTestZoneSpec)return a.apply(this,arguments);jasmine[w("clockInstalled")]="install"===t}})}return S}}if(!jasmine[s.__symbol__("createSpyObj")]){const P=jasmine.createSpyObj;jasmine[s.__symbol__("createSpyObj")]=P,jasmine.createSpyObj=function(){const S=Array.prototype.slice.call(arguments);let e;if(S.length>=3&&S[2]){const t=Object.defineProperty;Object.defineProperty=function(a,d,y){return t.call(this,a,d,{...y,configurable:!0,enumerable:!0})};try{e=P.apply(this,S)}finally{Object.defineProperty=t}}else e=P.apply(this,S);return e}}function O(P,S,T,e){const t=!!jasmine[w("clockInstalled")],a=T.testProxyZone;if(t&&ce){const d=s[s.__symbol__("fakeAsyncTest")];d&&"function"==typeof d.fakeAsync&&(P=d.fakeAsync(P))}return e?a.run(P,S,[e]):a.run(P,S)}function I(P){return P&&(P.length?function(S){return O(P,this,this.queueRunner,S)}:function(){return O(P,this,this.queueRunner)})}const B=jasmine.QueueRunner;jasmine.QueueRunner=function(P){function S(T){T.onComplete&&(T.onComplete=(d=>()=>{this.testProxyZone=null,this.testProxyZoneSpec=null,v.scheduleMicroTask("jasmine.onComplete",d)})(T.onComplete));const e=n[s.__symbol__("setTimeout")],t=n[s.__symbol__("clearTimeout")];e&&(T.timeout={setTimeout:e||n.setTimeout,clearTimeout:t||n.clearTimeout}),jasmine.UserContext?(T.userContext||(T.userContext=new jasmine.UserContext),T.userContext.queueRunner=this):(T.userContext||(T.userContext={}),T.userContext.queueRunner=this);const a=T.onException;T.onException=function(d){if(d&&"Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL."===d.message){const y=this&&this.testProxyZoneSpec;if(y){const D=y.getAndClearPendingTasksInfo();try{d.message+=D}catch{}}}a&&a.call(this,d)},P.call(this,T)}return function(P,S){for(const e in S)S.hasOwnProperty(e)&&(P[e]=S[e]);function T(){this.constructor=P}P.prototype=null===S?Object.create(S):(T.prototype=S.prototype,new T)}(S,P),S.prototype.execute=function(){let T=s.current,e=!1;for(;T;){if(T===v){e=!0;break}T=T.parent}if(!e)throw new Error("Unexpected Zone: "+s.current.name);this.testProxyZoneSpec=new R,this.testProxyZone=v.fork(this.testProxyZoneSpec),s.currentTask?P.prototype.execute.call(this):s.current.scheduleMicroTask("jasmine.execute().forceTask",()=>B.prototype.execute.call(this))},S}(B)})}(A),function Oe(A){A.__load_patch("jest",(n,s,c)=>{if(typeof jest>"u"||jest.__zone_patch__)return;s[c.symbol("ignoreConsoleErrorUncaughtError")]=!0,jest.__zone_patch__=!0;const o=s.ProxyZoneSpec,E=s.SyncTestZoneSpec;if(!o)throw new Error("Missing ProxyZoneSpec");const R=s.current,v=R.fork(new E("jest.describe")),w=new o,re=R.fork(w);function ne(O){return function(...I){return v.run(O,this,I)}}function ve(O,I=!1){if("function"!=typeof O)return O;const B=function(){if(!0===s[c.symbol("useFakeTimersCalled")]&&O&&!O.isFakeAsync){const P=s[s.__symbol__("fakeAsyncTest")];P&&"function"==typeof P.fakeAsync&&(O=P.fakeAsync(O))}return w.isTestFunc=I,re.run(O,null,arguments)};return Object.defineProperty(B,"length",{configurable:!0,writable:!0,enumerable:!1}),B.length=O.length,B}["describe","xdescribe","fdescribe"].forEach(O=>{let I=n[O];n[s.__symbol__(O)]||(n[s.__symbol__(O)]=I,n[O]=function(...B){return B[1]=ne(B[1]),I.apply(this,B)},n[O].each=function ce(O){return function(...I){const B=O.apply(this,I);return function(...P){return P[1]=ne(P[1]),B.apply(this,P)}}}(I.each))}),n.describe.only=n.fdescribe,n.describe.skip=n.xdescribe,["it","xit","fit","test","xtest"].forEach(O=>{let I=n[O];n[s.__symbol__(O)]||(n[s.__symbol__(O)]=I,n[O]=function(...B){return B[1]=ve(B[1],!0),I.apply(this,B)},n[O].each=function ke(O){return function(...I){return function(...B){return B[1]=ve(B[1]),O.apply(this,I).apply(this,B)}}}(I.each),n[O].todo=I.todo)}),n.it.only=n.fit,n.it.skip=n.xit,n.test.only=n.fit,n.test.skip=n.xit,["beforeEach","afterEach","beforeAll","afterAll"].forEach(O=>{let I=n[O];n[s.__symbol__(O)]||(n[s.__symbol__(O)]=I,n[O]=function(...B){return B[0]=ve(B[0]),I.apply(this,B)})}),s.patchJestObject=function(I,B=!1){function P(){return!!s.current.get("FakeAsyncTestZoneSpec")}function S(){const T=s.current.get("ProxyZoneSpec");return T&&T.isTestFunc}I[c.symbol("fakeTimers")]||(I[c.symbol("fakeTimers")]=!0,c.patchMethod(I,"_checkFakeTimers",T=>function(e,t){return!!P()||T.apply(e,t)}),c.patchMethod(I,"useFakeTimers",T=>function(e,t){return s[c.symbol("useFakeTimersCalled")]=!0,B||S()?T.apply(e,t):e}),c.patchMethod(I,"useRealTimers",T=>function(e,t){return s[c.symbol("useFakeTimersCalled")]=!1,B||S()?T.apply(e,t):e}),c.patchMethod(I,"setSystemTime",T=>function(e,t){const a=s.current.get("FakeAsyncTestZoneSpec");if(!a||!P())return T.apply(e,t);a.setFakeBaseSystemTime(t[0])}),c.patchMethod(I,"getRealSystemTime",T=>function(e,t){const a=s.current.get("FakeAsyncTestZoneSpec");return a&&P()?a.getRealSystemTime():T.apply(e,t)}),c.patchMethod(I,"runAllTicks",T=>function(e,t){const a=s.current.get("FakeAsyncTestZoneSpec");if(!a)return T.apply(e,t);a.flushMicrotasks()}),c.patchMethod(I,"runAllTimers",T=>function(e,t){const a=s.current.get("FakeAsyncTestZoneSpec");if(!a)return T.apply(e,t);a.flush(100,!0)}),c.patchMethod(I,"advanceTimersByTime",T=>function(e,t){const a=s.current.get("FakeAsyncTestZoneSpec");if(!a)return T.apply(e,t);a.tick(t[0])}),c.patchMethod(I,"runOnlyPendingTimers",T=>function(e,t){const a=s.current.get("FakeAsyncTestZoneSpec");if(!a)return T.apply(e,t);a.flushOnlyPendingTimers()}),c.patchMethod(I,"advanceTimersToNextTimer",T=>function(e,t){const a=s.current.get("FakeAsyncTestZoneSpec");if(!a)return T.apply(e,t);a.tickToNext(t[0])}),c.patchMethod(I,"clearAllTimers",T=>function(e,t){const a=s.current.get("FakeAsyncTestZoneSpec");if(!a)return T.apply(e,t);a.removeAllTimers()}),c.patchMethod(I,"getTimerCount",T=>function(e,t){const a=s.current.get("FakeAsyncTestZoneSpec");return a?a.getTimerCount():T.apply(e,t)}))}})}(A),function ot(A){A.__load_patch("mocha",(n,s)=>{const c=n.Mocha;if(typeof c>"u")return;if(typeof s>"u")throw new Error("Missing Zone.js");const o=s.ProxyZoneSpec,E=s.SyncTestZoneSpec;if(!o)throw new Error("Missing ProxyZoneSpec");if(c.__zone_patch__)throw new Error('"Mocha" has already been patched with "Zone".');c.__zone_patch__=!0;const R=s.current,v=R.fork(new E("Mocha.describe"));let w=null;const re=R.fork(new o),ce={after:n.after,afterEach:n.afterEach,before:n.before,beforeEach:n.beforeEach,describe:n.describe,it:n.it};function ke(I,B,P){for(let S=0;S<I.length;S++){let T=I[S];"function"==typeof T&&(I[S]=0===T.length?B(T):P(T),I[S].toString=function(){return T.toString()})}return I}function ne(I){return ke(I,function(P){return function(){return v.run(P,this,arguments)}})}function ve(I){return ke(I,function(S){return function(){return w.run(S,this)}},function(S){return function(T){return w.run(S,this,[T])}})}function O(I){return ke(I,function(S){return function(){return re.run(S,this)}},function(S){return function(T){return re.run(S,this,[T])}})}var I,B;n.describe=n.suite=function(){return ce.describe.apply(this,ne(arguments))},n.xdescribe=n.suite.skip=n.describe.skip=function(){return ce.describe.skip.apply(this,ne(arguments))},n.describe.only=n.suite.only=function(){return ce.describe.only.apply(this,ne(arguments))},n.it=n.specify=n.test=function(){return ce.it.apply(this,ve(arguments))},n.xit=n.xspecify=n.it.skip=function(){return ce.it.skip.apply(this,ve(arguments))},n.it.only=n.test.only=function(){return ce.it.only.apply(this,ve(arguments))},n.after=n.suiteTeardown=function(){return ce.after.apply(this,O(arguments))},n.afterEach=n.teardown=function(){return ce.afterEach.apply(this,ve(arguments))},n.before=n.suiteSetup=function(){return ce.before.apply(this,O(arguments))},n.beforeEach=n.setup=function(){return ce.beforeEach.apply(this,ve(arguments))},I=c.Runner.prototype.runTest,B=c.Runner.prototype.run,c.Runner.prototype.runTest=function(P){s.current.scheduleMicroTask("mocha.forceTask",()=>{I.call(this,P)})},c.Runner.prototype.run=function(P){return this.on("test",S=>{w=R.fork(new o)}),this.on("fail",(S,T)=>{const e=w&&w.get("ProxyZoneSpec");if(e&&T)try{T.message+=e.getAndClearPendingTasksInfo()}catch{}}),B.call(this,P)}})}(A),function nt(A){A.AsyncTestZoneSpec=Ke,A.__load_patch("asynctest",(n,s,c)=>{function o(E,R,v,w){const re=s.current,ce=s.AsyncTestZoneSpec;if(void 0===ce)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");const ke=s.ProxyZoneSpec;if(!ke)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");const ne=ke.get();ke.assertPresent();const ve=s.current.getZoneWith("ProxyZoneSpec"),O=ne.getDelegate();return ve.parent.run(()=>{const I=new ce(()=>{ne.getDelegate()==I&&ne.setDelegate(O),I.unPatchPromiseForTest(),re.run(()=>{v()})},B=>{ne.getDelegate()==I&&ne.setDelegate(O),I.unPatchPromiseForTest(),re.run(()=>{w(B)})},"test");ne.setDelegate(I),I.patchPromiseForTest()}),s.current.runGuarded(E,R)}s[c.symbol("asyncTest")]=function(R){return n.jasmine?function(v){v||((v=function(){}).fail=function(w){throw w}),o(R,this,v,w=>{if("string"==typeof w)return v.fail(new Error(w));v.fail(w)})}:function(){return new Promise((v,w)=>{o(R,this,v,w)})}}})}(A),function We(A){A.FakeAsyncTestZoneSpec=le,A.__load_patch("fakeasync",(n,s,c)=>{s[c.symbol("fakeAsyncTest")]={resetFakeAsyncZone:Ue,flushMicrotasks:Ve,discardPeriodicTasks:ft,tick:qe,flush:ge,fakeAsync:oe}},!0),Ne={setTimeout:ue.setTimeout,setInterval:ue.setInterval,clearTimeout:ue.clearTimeout,clearInterval:ue.clearInterval,nativeSetTimeout:ue[A.__symbol__("setTimeout")],nativeClearTimeout:ue[A.__symbol__("clearTimeout")]},Me.nextId=Me.getNextId()}(A),function pt(A){A.__load_patch("promisefortest",(n,s,c)=>{const o=c.symbol("state"),R=c.symbol("parentUnresolved");Promise[c.symbol("patchPromiseForTest")]=function(){let w=Promise[s.__symbol__("ZonePromiseThen")];w||(w=Promise[s.__symbol__("ZonePromiseThen")]=Promise.prototype.then,Promise.prototype.then=function(){const re=w.apply(this,arguments);if(null===this[o]){const ce=s.current.get("AsyncTestZoneSpec");ce&&(ce.unresolvedChainedPromiseCount++,re[R]=!0)}return re})},Promise[c.symbol("unPatchPromiseForTest")]=function(){const w=Promise[s.__symbol__("ZonePromiseThen")];w&&(Promise.prototype.then=w,Promise[s.__symbol__("ZonePromiseThen")]=void 0)}})}(A)}(Zone)},96935:()=>{const xe=globalThis;function Oe(i){return(xe.__Zone_symbol_prefix||"__zone_symbol__")+i}const Ge=Object.getOwnPropertyDescriptor,tt=Object.defineProperty,Ke=Object.getPrototypeOf,nt=Object.create,ue=Array.prototype.slice,je="addEventListener",Ze="removeEventListener",Ne=Oe(je),ct=Oe(Ze),Me="true",le="false",ye=Oe("");function et(i,l){return Zone.current.wrap(i,l)}function Ue(i,l,m,u,p){return Zone.current.scheduleMacroTask(i,l,m,u,p)}const oe=Oe,ze=typeof window<"u",qe=ze?window:void 0,ge=ze&&qe||globalThis,ft="removeAttribute";function Ve(i,l){for(let m=i.length-1;m>=0;m--)"function"==typeof i[m]&&(i[m]=et(i[m],l+"_"+m));return i}function dt(i){return!i||!1!==i.writable&&!("function"==typeof i.get&&typeof i.set>"u")}const Le=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,rt=!("nw"in ge)&&typeof ge.process<"u"&&"[object process]"===ge.process.toString(),st=!rt&&!Le&&!(!ze||!qe.HTMLElement),pt=typeof ge.process<"u"&&"[object process]"===ge.process.toString()&&!Le&&!(!ze||!qe.HTMLElement),it={},A=function(i){if(!(i=i||ge.event))return;let l=it[i.type];l||(l=it[i.type]=oe("ON_PROPERTY"+i.type));const m=this||i.target||ge,u=m[l];let p;return st&&m===qe&&"error"===i.type?(p=u&&u.call(this,i.message,i.filename,i.lineno,i.colno,i.error),!0===p&&i.preventDefault()):(p=u&&u.apply(this,arguments),null!=p&&!p&&i.preventDefault()),p};function n(i,l,m){let u=Ge(i,l);if(!u&&m&&Ge(m,l)&&(u={enumerable:!0,configurable:!0}),!u||!u.configurable)return;const p=oe("on"+l+"patched");if(i.hasOwnProperty(p)&&i[p])return;delete u.writable,delete u.value;const g=u.get,x=u.set,N=l.slice(2);let Z=it[N];Z||(Z=it[N]=oe("ON_PROPERTY"+N)),u.set=function(W){let j=this;!j&&i===ge&&(j=ge),j&&("function"==typeof j[Z]&&j.removeEventListener(N,A),x&&x.call(j,null),j[Z]=W,"function"==typeof W&&j.addEventListener(N,A,!1))},u.get=function(){let W=this;if(!W&&i===ge&&(W=ge),!W)return null;const j=W[Z];if(j)return j;if(g){let te=g.call(this);if(te)return u.set.call(this,te),"function"==typeof W[ft]&&W.removeAttribute(l),te}return null},tt(i,l,u),i[p]=!0}function s(i,l,m){if(l)for(let u=0;u<l.length;u++)n(i,"on"+l[u],m);else{const u=[];for(const p in i)"on"==p.slice(0,2)&&u.push(p);for(let p=0;p<u.length;p++)n(i,u[p],m)}}const c=oe("originalInstance");function o(i){const l=ge[i];if(!l)return;ge[oe(i)]=l,ge[i]=function(){const p=Ve(arguments,i);switch(p.length){case 0:this[c]=new l;break;case 1:this[c]=new l(p[0]);break;case 2:this[c]=new l(p[0],p[1]);break;case 3:this[c]=new l(p[0],p[1],p[2]);break;case 4:this[c]=new l(p[0],p[1],p[2],p[3]);break;default:throw new Error("Arg list too long.")}},v(ge[i],l);const m=new l(function(){});let u;for(u in m)"XMLHttpRequest"===i&&"responseBlob"===u||function(p){"function"==typeof m[p]?ge[i].prototype[p]=function(){return this[c][p].apply(this[c],arguments)}:tt(ge[i].prototype,p,{set:function(g){"function"==typeof g?(this[c][p]=et(g,i+"."+p),v(this[c][p],g)):this[c][p]=g},get:function(){return this[c][p]}})}(u);for(u in l)"prototype"!==u&&l.hasOwnProperty(u)&&(ge[i][u]=l[u])}function E(i,l,m){let u=i;for(;u&&!u.hasOwnProperty(l);)u=Ke(u);!u&&i[l]&&(u=i);const p=oe(l);let g=null;if(u&&(!(g=u[p])||!u.hasOwnProperty(p))&&(g=u[p]=u[l],dt(u&&Ge(u,l)))){const N=m(g,p,l);u[l]=function(){return N(this,arguments)},v(u[l],g)}return g}function R(i,l,m){let u=null;function p(g){const x=g.data;return x.args[x.cbIdx]=function(){g.invoke.apply(this,arguments)},u.apply(x.target,x.args),g}u=E(i,l,g=>function(x,N){const Z=m(x,N);return Z.cbIdx>=0&&"function"==typeof N[Z.cbIdx]?Ue(Z.name,N[Z.cbIdx],Z,p):g.apply(x,N)})}function v(i,l){i[oe("OriginalDelegate")]=l}let w=!1,re=!1;function ke(){if(w)return re;w=!0;try{const i=qe.navigator.userAgent;(-1!==i.indexOf("MSIE ")||-1!==i.indexOf("Trident/")||-1!==i.indexOf("Edge/"))&&(re=!0)}catch{}return re}let ne=!1;if(typeof window<"u")try{const i=Object.defineProperty({},"passive",{get:function(){ne=!0}});window.addEventListener("test",i,i),window.removeEventListener("test",i,i)}catch{ne=!1}const ve={useG:!0},O={},I={},B=new RegExp("^"+ye+"(\\w+)(true|false)$"),P=oe("propagationStopped");function S(i,l){const m=(l?l(i):i)+le,u=(l?l(i):i)+Me,p=ye+m,g=ye+u;O[i]={},O[i][le]=p,O[i][Me]=g}function T(i,l,m,u){const p=u&&u.add||je,g=u&&u.rm||Ze,x=u&&u.listeners||"eventListeners",N=u&&u.rmAll||"removeAllListeners",Z=oe(p),W="."+p+":",j="prependListener",te="."+j+":",G=function(U,C,pe){if(U.isRemoved)return;const be=U.callback;let Ae;"object"==typeof be&&be.handleEvent&&(U.callback=F=>be.handleEvent(F),U.originalDelegate=be);try{U.invoke(U,C,[pe])}catch(F){Ae=F}const Te=U.options;return Te&&"object"==typeof Te&&Te.once&&C[g].call(C,pe.type,U.originalDelegate?U.originalDelegate:U.callback,Te),Ae};function ae(U,C,pe){if(!(C=C||i.event))return;const be=U||C.target||i,Ae=be[O[C.type][pe?Me:le]];if(Ae){const Te=[];if(1===Ae.length){const F=G(Ae[0],be,C);F&&Te.push(F)}else{const F=Ae.slice();for(let me=0;me<F.length&&(!C||!0!==C[P]);me++){const ee=G(F[me],be,C);ee&&Te.push(ee)}}if(1===Te.length)throw Te[0];for(let F=0;F<Te.length;F++){const me=Te[F];l.nativeScheduleMicroTask(()=>{throw me})}}}const Ee=function(U){return ae(this,U,!1)},he=function(U){return ae(this,U,!0)};function Be(U,C){if(!U)return!1;let pe=!0;C&&void 0!==C.useG&&(pe=C.useG);const be=C&&C.vh;let Ae=!0;C&&void 0!==C.chkDup&&(Ae=C.chkDup);let Te=!1;C&&void 0!==C.rt&&(Te=C.rt);let F=U;for(;F&&!F.hasOwnProperty(p);)F=Ke(F);if(!F&&U[p]&&(F=U),!F||F[Z])return!1;const me=C&&C.eventNameToString,ee={},V=F[Z]=F[p],$=F[oe(g)]=F[g],J=F[oe(x)]=F[x],Fe=F[oe(N)]=F[N];let Se;C&&C.prepend&&(Se=F[oe(C.prepend)]=F[C.prepend]);const Ce=pe?function(f){if(!ee.isExisting)return V.call(ee.target,ee.eventName,ee.capture?he:Ee,ee.options)}:function(f){return V.call(ee.target,ee.eventName,f.invoke,ee.options)},se=pe?function(f){if(!f.isRemoved){const _=O[f.eventName];let b;_&&(b=_[f.capture?Me:le]);const z=b&&f.target[b];if(z)for(let Q=0;Q<z.length;Q++)if(z[Q]===f){z.splice(Q,1),f.isRemoved=!0,0===z.length&&(f.allRemoved=!0,f.target[b]=null);break}}if(f.allRemoved)return $.call(f.target,f.eventName,f.capture?he:Ee,f.options)}:function(f){return $.call(f.target,f.eventName,f.invoke,f.options)},kt=C&&C.diff?C.diff:function(f,_){const b=typeof _;return"function"===b&&f.callback===_||"object"===b&&f.originalDelegate===_},lt=Zone[oe("UNPATCHED_EVENTS")],St=i[oe("PASSIVE_EVENTS")],k=function(f,_,b,z,Q=!1,H=!1){return function(){const q=this||i;let X=arguments[0];C&&C.transferEventName&&(X=C.transferEventName(X));let ie=arguments[1];if(!ie)return f.apply(this,arguments);if(rt&&"uncaughtException"===X)return f.apply(this,arguments);let _e=!1;if("function"!=typeof ie){if(!ie.handleEvent)return f.apply(this,arguments);_e=!0}if(be&&!be(f,ie,q,arguments))return;const De=ne&&!!St&&-1!==St.indexOf(X),$e=function K(f,_){return!ne&&"object"==typeof f&&f?!!f.capture:ne&&_?"boolean"==typeof f?{capture:f,passive:!0}:f?"object"==typeof f&&!1!==f.passive?{...f,passive:!0}:f:{passive:!0}:f}(arguments[2],De),_t=$e?.signal;if(_t?.aborted)return;if(lt)for(let Je=0;Je<lt.length;Je++)if(X===lt[Je])return De?f.call(q,X,ie,$e):f.apply(this,arguments);const Pt=!!$e&&("boolean"==typeof $e||$e.capture),It=!(!$e||"object"!=typeof $e)&&$e.once,Ot=Zone.current;let wt=O[X];wt||(S(X,me),wt=O[X]);const At=wt[Pt?Me:le];let vt,yt=q[At],Ct=!1;if(yt){if(Ct=!0,Ae)for(let Je=0;Je<yt.length;Je++)if(kt(yt[Je],ie))return}else yt=q[At]=[];const Rt=q.constructor.name,Dt=I[Rt];Dt&&(vt=Dt[X]),vt||(vt=Rt+_+(me?me(X):X)),ee.options=$e,It&&(ee.options.once=!1),ee.target=q,ee.capture=Pt,ee.eventName=X,ee.isExisting=Ct;const ht=pe?ve:void 0;ht&&(ht.taskData=ee),_t&&(ee.options.signal=void 0);const Xe=Ot.scheduleEventTask(vt,ie,ht,b,z);if(_t){ee.options.signal=_t;const Je=()=>Xe.zone.cancelTask(Xe);f.call(_t,"abort",Je,{once:!0}),ht&&(ht.removeAbortListener=()=>_t.removeEventListener("abort",Je))}return ee.target=null,ht&&(ht.taskData=null),It&&($e.once=!0),!ne&&"boolean"==typeof Xe.options||(Xe.options=$e),Xe.target=q,Xe.capture=Pt,Xe.eventName=X,_e&&(Xe.originalDelegate=ie),H?yt.unshift(Xe):yt.push(Xe),Q?q:void 0}};return F[p]=k(V,W,Ce,se,Te),Se&&(F[j]=k(Se,te,function(f){return Se.call(ee.target,ee.eventName,f.invoke,ee.options)},se,Te,!0)),F[g]=function(){const f=this||i;let _=arguments[0];C&&C.transferEventName&&(_=C.transferEventName(_));const b=arguments[2],z=!!b&&("boolean"==typeof b||b.capture),Q=arguments[1];if(!Q)return $.apply(this,arguments);if(be&&!be($,Q,f,arguments))return;const H=O[_];let q;H&&(q=H[z?Me:le]);const X=q&&f[q];if(X)for(let ie=0;ie<X.length;ie++){const _e=X[ie];if(kt(_e,Q)){X.splice(ie,1),_e.isRemoved=!0,0!==X.length||(_e.allRemoved=!0,f[q]=null,z||"string"!=typeof _)||(f[ye+"ON_PROPERTY"+_]=null);const De=_e.data;return De?.removeAbortListener&&(De.removeAbortListener(),De.removeAbortListener=null),_e.zone.cancelTask(_e),Te?f:void 0}}return $.apply(this,arguments)},F[x]=function(){const f=this||i;let _=arguments[0];C&&C.transferEventName&&(_=C.transferEventName(_));const b=[],z=e(f,me?me(_):_);for(let Q=0;Q<z.length;Q++){const H=z[Q];b.push(H.originalDelegate?H.originalDelegate:H.callback)}return b},F[N]=function(){const f=this||i;let _=arguments[0];if(_){C&&C.transferEventName&&(_=C.transferEventName(_));const b=O[_];if(b){const H=f[b[le]],q=f[b[Me]];if(H){const X=H.slice();for(let ie=0;ie<X.length;ie++){const _e=X[ie];this[g].call(this,_,_e.originalDelegate?_e.originalDelegate:_e.callback,_e.options)}}if(q){const X=q.slice();for(let ie=0;ie<X.length;ie++){const _e=X[ie];this[g].call(this,_,_e.originalDelegate?_e.originalDelegate:_e.callback,_e.options)}}}}else{const b=Object.keys(f);for(let z=0;z<b.length;z++){const H=B.exec(b[z]);let q=H&&H[1];q&&"removeListener"!==q&&this[N].call(this,q)}this[N].call(this,"removeListener")}if(Te)return this},v(F[p],V),v(F[g],$),Fe&&v(F[N],Fe),J&&v(F[x],J),!0}let Ie=[];for(let U=0;U<m.length;U++)Ie[U]=Be(m[U],u);return Ie}function e(i,l){if(!l){const g=[];for(let x in i){const N=B.exec(x);let Z=N&&N[1];if(Z&&(!l||Z===l)){const W=i[x];if(W)for(let j=0;j<W.length;j++)g.push(W[j])}}return g}let m=O[l];m||(S(l),m=O[l]);const u=i[m[le]],p=i[m[Me]];return u?p?u.concat(p):u.slice():p?p.slice():[]}function t(i,l){const m=i.Event;m&&m.prototype&&l.patchMethod(m.prototype,"stopImmediatePropagation",u=>function(p,g){p[P]=!0,u&&u.apply(p,g)})}const d=oe("zoneTask");function y(i,l,m,u){let p=null,g=null;m+=u;const x={};function N(W){const j=W.data;return j.args[0]=function(){return W.invoke.apply(this,arguments)},j.handleId=p.apply(i,j.args),W}function Z(W){return g.call(i,W.data.handleId)}p=E(i,l+=u,W=>function(j,te){if("function"==typeof te[0]){const G={isPeriodic:"Interval"===u,delay:"Timeout"===u||"Interval"===u?te[1]||0:void 0,args:te},ae=te[0];te[0]=function(){try{return ae.apply(this,arguments)}finally{G.isPeriodic||("number"==typeof G.handleId?delete x[G.handleId]:G.handleId&&(G.handleId[d]=null))}};const Ee=Ue(l,te[0],G,N,Z);if(!Ee)return Ee;const he=Ee.data.handleId;return"number"==typeof he?x[he]=Ee:he&&(he[d]=Ee),he&&he.ref&&he.unref&&"function"==typeof he.ref&&"function"==typeof he.unref&&(Ee.ref=he.ref.bind(he),Ee.unref=he.unref.bind(he)),"number"==typeof he||he?he:Ee}return W.apply(i,te)}),g=E(i,m,W=>function(j,te){const G=te[0];let ae;"number"==typeof G?ae=x[G]:(ae=G&&G[d],ae||(ae=G)),ae&&"string"==typeof ae.type?"notScheduled"!==ae.state&&(ae.cancelFn&&ae.data.isPeriodic||0===ae.runCount)&&("number"==typeof G?delete x[G]:G&&(G[d]=null),ae.zone.cancelTask(ae)):W.apply(i,te)})}function fe(i,l,m){if(!m||0===m.length)return l;const u=m.filter(g=>g.target===i);if(!u||0===u.length)return l;const p=u[0].ignoreProperties;return l.filter(g=>-1===p.indexOf(g))}function Re(i,l,m,u){i&&s(i,fe(i,l,m),u)}function Qe(i){return Object.getOwnPropertyNames(i).filter(l=>l.startsWith("on")&&l.length>2).map(l=>l.substring(2))}function mt(i,l,m,u,p){const g=Zone.__symbol__(u);if(l[g])return;const x=l[g]=l[u];l[u]=function(N,Z,W){return Z&&Z.prototype&&p.forEach(function(j){const te=`${m}.${u}::`+j,G=Z.prototype;try{if(G.hasOwnProperty(j)){const ae=i.ObjectGetOwnPropertyDescriptor(G,j);ae&&ae.value?(ae.value=i.wrapWithCurrentZone(ae.value,te),i._redefineProperty(Z.prototype,j,ae)):G[j]&&(G[j]=i.wrapWithCurrentZone(G[j],te))}else G[j]&&(G[j]=i.wrapWithCurrentZone(G[j],te))}catch{}}),x.call(l,N,Z,W)},i.attachOriginToPatched(l[u],x)}const Et=function Ye(){const i=globalThis,l=!0===i[Oe("forceDuplicateZoneCheck")];if(i.Zone&&(l||"function"!=typeof i.Zone.__symbol__))throw new Error("Zone already loaded.");return i.Zone??=function ot(){const i=xe.performance;function l(K){i&&i.mark&&i.mark(K)}function m(K,M){i&&i.measure&&i.measure(K,M)}l("Zone");let u=(()=>{class K{static#e=this.__symbol__=Oe;static assertZonePatched(){if(xe.Promise!==ee.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let r=K.current;for(;r.parent;)r=r.parent;return r}static get current(){return $.zone}static get currentTask(){return J}static __load_patch(r,h,L=!1){if(ee.hasOwnProperty(r)){const Y=!0===xe[Oe("forceDuplicateZoneCheck")];if(!L&&Y)throw Error("Already loaded patch: "+r)}else if(!xe["__Zone_disable_"+r]){const Y="Zone:"+r;l(Y),ee[r]=h(xe,K,V),m(Y,Y)}}get parent(){return this._parent}get name(){return this._name}constructor(r,h){this._parent=r,this._name=h?h.name||"unnamed":"<root>",this._properties=h&&h.properties||{},this._zoneDelegate=new g(this,this._parent&&this._parent._zoneDelegate,h)}get(r){const h=this.getZoneWith(r);if(h)return h._properties[r]}getZoneWith(r){let h=this;for(;h;){if(h._properties.hasOwnProperty(r))return h;h=h._parent}return null}fork(r){if(!r)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,r)}wrap(r,h){if("function"!=typeof r)throw new Error("Expecting function got: "+r);const L=this._zoneDelegate.intercept(this,r,h),Y=this;return function(){return Y.runGuarded(L,this,arguments,h)}}run(r,h,L,Y){$={parent:$,zone:this};try{return this._zoneDelegate.invoke(this,r,h,L,Y)}finally{$=$.parent}}runGuarded(r,h=null,L,Y){$={parent:$,zone:this};try{try{return this._zoneDelegate.invoke(this,r,h,L,Y)}catch(Ce){if(this._zoneDelegate.handleError(this,Ce))throw Ce}}finally{$=$.parent}}runTask(r,h,L){if(r.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(r.zone||Be).name+"; Execution: "+this.name+")");if(r.state===Ie&&(r.type===me||r.type===F))return;const Y=r.state!=pe;Y&&r._transitionTo(pe,C),r.runCount++;const Ce=J;J=r,$={parent:$,zone:this};try{r.type==F&&r.data&&!r.data.isPeriodic&&(r.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,r,h,L)}catch(se){if(this._zoneDelegate.handleError(this,se))throw se}}finally{r.state!==Ie&&r.state!==Ae&&(r.type==me||r.data&&r.data.isPeriodic?Y&&r._transitionTo(C,pe):(r.runCount=0,this._updateTaskCount(r,-1),Y&&r._transitionTo(Ie,pe,Ie))),$=$.parent,J=Ce}}scheduleTask(r){if(r.zone&&r.zone!==this){let L=this;for(;L;){if(L===r.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${r.zone.name}`);L=L.parent}}r._transitionTo(U,Ie);const h=[];r._zoneDelegates=h,r._zone=this;try{r=this._zoneDelegate.scheduleTask(this,r)}catch(L){throw r._transitionTo(Ae,U,Ie),this._zoneDelegate.handleError(this,L),L}return r._zoneDelegates===h&&this._updateTaskCount(r,1),r.state==U&&r._transitionTo(C,U),r}scheduleMicroTask(r,h,L,Y){return this.scheduleTask(new x(Te,r,h,L,Y,void 0))}scheduleMacroTask(r,h,L,Y,Ce){return this.scheduleTask(new x(F,r,h,L,Y,Ce))}scheduleEventTask(r,h,L,Y,Ce){return this.scheduleTask(new x(me,r,h,L,Y,Ce))}cancelTask(r){if(r.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(r.zone||Be).name+"; Execution: "+this.name+")");if(r.state===C||r.state===pe){r._transitionTo(be,C,pe);try{this._zoneDelegate.cancelTask(this,r)}catch(h){throw r._transitionTo(Ae,be),this._zoneDelegate.handleError(this,h),h}return this._updateTaskCount(r,-1),r._transitionTo(Ie,be),r.runCount=0,r}}_updateTaskCount(r,h){const L=r._zoneDelegates;-1==h&&(r._zoneDelegates=null);for(let Y=0;Y<L.length;Y++)L[Y]._updateTaskCount(r.type,h)}}return K})();const p={name:"",onHasTask:(K,M,r,h)=>K.hasTask(r,h),onScheduleTask:(K,M,r,h)=>K.scheduleTask(r,h),onInvokeTask:(K,M,r,h,L,Y)=>K.invokeTask(r,h,L,Y),onCancelTask:(K,M,r,h)=>K.cancelTask(r,h)};class g{get zone(){return this._zone}constructor(M,r,h){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=M,this._parentDelegate=r,this._forkZS=h&&(h&&h.onFork?h:r._forkZS),this._forkDlgt=h&&(h.onFork?r:r._forkDlgt),this._forkCurrZone=h&&(h.onFork?this._zone:r._forkCurrZone),this._interceptZS=h&&(h.onIntercept?h:r._interceptZS),this._interceptDlgt=h&&(h.onIntercept?r:r._interceptDlgt),this._interceptCurrZone=h&&(h.onIntercept?this._zone:r._interceptCurrZone),this._invokeZS=h&&(h.onInvoke?h:r._invokeZS),this._invokeDlgt=h&&(h.onInvoke?r:r._invokeDlgt),this._invokeCurrZone=h&&(h.onInvoke?this._zone:r._invokeCurrZone),this._handleErrorZS=h&&(h.onHandleError?h:r._handleErrorZS),this._handleErrorDlgt=h&&(h.onHandleError?r:r._handleErrorDlgt),this._handleErrorCurrZone=h&&(h.onHandleError?this._zone:r._handleErrorCurrZone),this._scheduleTaskZS=h&&(h.onScheduleTask?h:r._scheduleTaskZS),this._scheduleTaskDlgt=h&&(h.onScheduleTask?r:r._scheduleTaskDlgt),this._scheduleTaskCurrZone=h&&(h.onScheduleTask?this._zone:r._scheduleTaskCurrZone),this._invokeTaskZS=h&&(h.onInvokeTask?h:r._invokeTaskZS),this._invokeTaskDlgt=h&&(h.onInvokeTask?r:r._invokeTaskDlgt),this._invokeTaskCurrZone=h&&(h.onInvokeTask?this._zone:r._invokeTaskCurrZone),this._cancelTaskZS=h&&(h.onCancelTask?h:r._cancelTaskZS),this._cancelTaskDlgt=h&&(h.onCancelTask?r:r._cancelTaskDlgt),this._cancelTaskCurrZone=h&&(h.onCancelTask?this._zone:r._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const L=h&&h.onHasTask;(L||r&&r._hasTaskZS)&&(this._hasTaskZS=L?h:p,this._hasTaskDlgt=r,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,h.onScheduleTask||(this._scheduleTaskZS=p,this._scheduleTaskDlgt=r,this._scheduleTaskCurrZone=this._zone),h.onInvokeTask||(this._invokeTaskZS=p,this._invokeTaskDlgt=r,this._invokeTaskCurrZone=this._zone),h.onCancelTask||(this._cancelTaskZS=p,this._cancelTaskDlgt=r,this._cancelTaskCurrZone=this._zone))}fork(M,r){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,M,r):new u(M,r)}intercept(M,r,h){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,M,r,h):r}invoke(M,r,h,L,Y){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,M,r,h,L,Y):r.apply(h,L)}handleError(M,r){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,M,r)}scheduleTask(M,r){let h=r;if(this._scheduleTaskZS)this._hasTaskZS&&h._zoneDelegates.push(this._hasTaskDlgtOwner),h=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,M,r),h||(h=r);else if(r.scheduleFn)r.scheduleFn(r);else{if(r.type!=Te)throw new Error("Task is missing scheduleFn.");Ee(r)}return h}invokeTask(M,r,h,L){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,M,r,h,L):r.callback.apply(h,L)}cancelTask(M,r){let h;if(this._cancelTaskZS)h=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,M,r);else{if(!r.cancelFn)throw Error("Task is not cancelable");h=r.cancelFn(r)}return h}hasTask(M,r){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,M,r)}catch(h){this.handleError(M,h)}}_updateTaskCount(M,r){const h=this._taskCounts,L=h[M],Y=h[M]=L+r;if(Y<0)throw new Error("More tasks executed then were scheduled.");0!=L&&0!=Y||this.hasTask(this._zone,{microTask:h.microTask>0,macroTask:h.macroTask>0,eventTask:h.eventTask>0,change:M})}}class x{constructor(M,r,h,L,Y,Ce){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=M,this.source=r,this.data=L,this.scheduleFn=Y,this.cancelFn=Ce,!h)throw new Error("callback is not defined");this.callback=h;const se=this;this.invoke=M===me&&L&&L.useG?x.invokeTask:function(){return x.invokeTask.call(xe,se,this,arguments)}}static invokeTask(M,r,h){M||(M=this),Fe++;try{return M.runCount++,M.zone.runTask(M,r,h)}finally{1==Fe&&he(),Fe--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Ie,U)}_transitionTo(M,r,h){if(this._state!==r&&this._state!==h)throw new Error(`${this.type} '${this.source}': can not transition to '${M}', expecting state '${r}'${h?" or '"+h+"'":""}, was '${this._state}'.`);this._state=M,M==Ie&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const N=Oe("setTimeout"),Z=Oe("Promise"),W=Oe("then");let G,j=[],te=!1;function ae(K){if(G||xe[Z]&&(G=xe[Z].resolve(0)),G){let M=G[W];M||(M=G.then),M.call(G,K)}else xe[N](K,0)}function Ee(K){0===Fe&&0===j.length&&ae(he),K&&j.push(K)}function he(){if(!te){for(te=!0;j.length;){const K=j;j=[];for(let M=0;M<K.length;M++){const r=K[M];try{r.zone.runTask(r,null,null)}catch(h){V.onUnhandledError(h)}}}V.microtaskDrainDone(),te=!1}}const Be={name:"NO ZONE"},Ie="notScheduled",U="scheduling",C="scheduled",pe="running",be="canceling",Ae="unknown",Te="microTask",F="macroTask",me="eventTask",ee={},V={symbol:Oe,currentZoneFrame:()=>$,onUnhandledError:Se,microtaskDrainDone:Se,scheduleMicroTask:Ee,showUncaughtError:()=>!u[Oe("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:Se,patchMethod:()=>Se,bindArguments:()=>[],patchThen:()=>Se,patchMacroTask:()=>Se,patchEventPrototype:()=>Se,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>Se,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>Se,wrapWithCurrentZone:()=>Se,filterProperties:()=>[],attachOriginToPatched:()=>Se,_redefineProperty:()=>Se,patchCallbacks:()=>Se,nativeScheduleMicroTask:ae};let $={parent:null,zone:new u(null,null)},J=null,Fe=0;function Se(){}return m("Zone","Zone"),u}(),i.Zone}();(function ut(i){(function gt(i){i.__load_patch("ZoneAwarePromise",(l,m,u)=>{const p=Object.getOwnPropertyDescriptor,g=Object.defineProperty,N=u.symbol,Z=[],W=!1!==l[N("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],j=N("Promise"),te=N("then"),G="__creationTrace__";u.onUnhandledError=k=>{if(u.showUncaughtError()){const f=k&&k.rejection;f?console.error("Unhandled Promise rejection:",f instanceof Error?f.message:f,"; Zone:",k.zone.name,"; Task:",k.task&&k.task.source,"; Value:",f,f instanceof Error?f.stack:void 0):console.error(k)}},u.microtaskDrainDone=()=>{for(;Z.length;){const k=Z.shift();try{k.zone.runGuarded(()=>{throw k.throwOriginal?k.rejection:k})}catch(f){Ee(f)}}};const ae=N("unhandledPromiseRejectionHandler");function Ee(k){u.onUnhandledError(k);try{const f=m[ae];"function"==typeof f&&f.call(this,k)}catch{}}function he(k){return k&&k.then}function Be(k){return k}function Ie(k){return se.reject(k)}const U=N("state"),C=N("value"),pe=N("finally"),be=N("parentPromiseValue"),Ae=N("parentPromiseState"),Te="Promise.then",F=null,me=!0,ee=!1,V=0;function $(k,f){return _=>{try{K(k,f,_)}catch(b){K(k,!1,b)}}}const J=function(){let k=!1;return function(_){return function(){k||(k=!0,_.apply(null,arguments))}}},Fe="Promise resolved with itself",Se=N("currentTaskTrace");function K(k,f,_){const b=J();if(k===_)throw new TypeError(Fe);if(k[U]===F){let z=null;try{("object"==typeof _||"function"==typeof _)&&(z=_&&_.then)}catch(Q){return b(()=>{K(k,!1,Q)})(),k}if(f!==ee&&_ instanceof se&&_.hasOwnProperty(U)&&_.hasOwnProperty(C)&&_[U]!==F)r(_),K(k,_[U],_[C]);else if(f!==ee&&"function"==typeof z)try{z.call(_,b($(k,f)),b($(k,!1)))}catch(Q){b(()=>{K(k,!1,Q)})()}else{k[U]=f;const Q=k[C];if(k[C]=_,k[pe]===pe&&f===me&&(k[U]=k[Ae],k[C]=k[be]),f===ee&&_ instanceof Error){const H=m.currentTask&&m.currentTask.data&&m.currentTask.data[G];H&&g(_,Se,{configurable:!0,enumerable:!1,writable:!0,value:H})}for(let H=0;H<Q.length;)h(k,Q[H++],Q[H++],Q[H++],Q[H++]);if(0==Q.length&&f==ee){k[U]=V;let H=_;try{throw new Error("Uncaught (in promise): "+function x(k){return k&&k.toString===Object.prototype.toString?(k.constructor&&k.constructor.name||"")+": "+JSON.stringify(k):k?k.toString():Object.prototype.toString.call(k)}(_)+(_&&_.stack?"\n"+_.stack:""))}catch(q){H=q}W&&(H.throwOriginal=!0),H.rejection=_,H.promise=k,H.zone=m.current,H.task=m.currentTask,Z.push(H),u.scheduleMicroTask()}}}return k}const M=N("rejectionHandledHandler");function r(k){if(k[U]===V){try{const f=m[M];f&&"function"==typeof f&&f.call(this,{rejection:k[C],promise:k})}catch{}k[U]=ee;for(let f=0;f<Z.length;f++)k===Z[f].promise&&Z.splice(f,1)}}function h(k,f,_,b,z){r(k);const Q=k[U],H=Q?"function"==typeof b?b:Be:"function"==typeof z?z:Ie;f.scheduleMicroTask(Te,()=>{try{const q=k[C],X=!!_&&pe===_[pe];X&&(_[be]=q,_[Ae]=Q);const ie=f.run(H,void 0,X&&H!==Ie&&H!==Be?[]:[q]);K(_,!0,ie)}catch(q){K(_,!1,q)}},_)}const Y=function(){},Ce=l.AggregateError;class se{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(f){return f instanceof se?f:K(new this(null),me,f)}static reject(f){return K(new this(null),ee,f)}static withResolvers(){const f={};return f.promise=new se((_,b)=>{f.resolve=_,f.reject=b}),f}static any(f){if(!f||"function"!=typeof f[Symbol.iterator])return Promise.reject(new Ce([],"All promises were rejected"));const _=[];let b=0;try{for(let H of f)b++,_.push(se.resolve(H))}catch{return Promise.reject(new Ce([],"All promises were rejected"))}if(0===b)return Promise.reject(new Ce([],"All promises were rejected"));let z=!1;const Q=[];return new se((H,q)=>{for(let X=0;X<_.length;X++)_[X].then(ie=>{z||(z=!0,H(ie))},ie=>{Q.push(ie),b--,0===b&&(z=!0,q(new Ce(Q,"All promises were rejected")))})})}static race(f){let _,b,z=new this((q,X)=>{_=q,b=X});function Q(q){_(q)}function H(q){b(q)}for(let q of f)he(q)||(q=this.resolve(q)),q.then(Q,H);return z}static all(f){return se.allWithCallback(f)}static allSettled(f){return(this&&this.prototype instanceof se?this:se).allWithCallback(f,{thenCallback:b=>({status:"fulfilled",value:b}),errorCallback:b=>({status:"rejected",reason:b})})}static allWithCallback(f,_){let b,z,Q=new this((ie,_e)=>{b=ie,z=_e}),H=2,q=0;const X=[];for(let ie of f){he(ie)||(ie=this.resolve(ie));const _e=q;try{ie.then(De=>{X[_e]=_?_.thenCallback(De):De,H--,0===H&&b(X)},De=>{_?(X[_e]=_.errorCallback(De),H--,0===H&&b(X)):z(De)})}catch(De){z(De)}H++,q++}return H-=2,0===H&&b(X),Q}constructor(f){const _=this;if(!(_ instanceof se))throw new Error("Must be an instanceof Promise.");_[U]=F,_[C]=[];try{const b=J();f&&f(b($(_,me)),b($(_,ee)))}catch(b){K(_,!1,b)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return se}then(f,_){let b=this.constructor?.[Symbol.species];(!b||"function"!=typeof b)&&(b=this.constructor||se);const z=new b(Y),Q=m.current;return this[U]==F?this[C].push(Q,z,f,_):h(this,Q,z,f,_),z}catch(f){return this.then(null,f)}finally(f){let _=this.constructor?.[Symbol.species];(!_||"function"!=typeof _)&&(_=se);const b=new _(Y);b[pe]=pe;const z=m.current;return this[U]==F?this[C].push(z,b,f,f):h(this,z,b,f,f),b}}se.resolve=se.resolve,se.reject=se.reject,se.race=se.race,se.all=se.all;const bt=l[j]=l.Promise;l.Promise=se;const kt=N("thenPatched");function lt(k){const f=k.prototype,_=p(f,"then");if(_&&(!1===_.writable||!_.configurable))return;const b=f.then;f[te]=b,k.prototype.then=function(z,Q){return new se((q,X)=>{b.call(this,q,X)}).then(z,Q)},k[kt]=!0}return u.patchThen=lt,bt&&(lt(bt),E(l,"fetch",k=>function St(k){return function(f,_){let b=k.apply(f,_);if(b instanceof se)return b;let z=b.constructor;return z[kt]||lt(z),b}}(k))),Promise[m.__symbol__("uncaughtPromiseErrors")]=Z,se})})(i),function He(i){i.__load_patch("toString",l=>{const m=Function.prototype.toString,u=oe("OriginalDelegate"),p=oe("Promise"),g=oe("Error"),x=function(){if("function"==typeof this){const j=this[u];if(j)return"function"==typeof j?m.call(j):Object.prototype.toString.call(j);if(this===Promise){const te=l[p];if(te)return m.call(te)}if(this===Error){const te=l[g];if(te)return m.call(te)}}return m.call(this)};x[u]=m,Function.prototype.toString=x;const N=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":N.call(this)}})}(i),function we(i){i.__load_patch("util",(l,m,u)=>{const p=Qe(l);u.patchOnProperties=s,u.patchMethod=E,u.bindArguments=Ve,u.patchMacroTask=R;const g=m.__symbol__("BLACK_LISTED_EVENTS"),x=m.__symbol__("UNPATCHED_EVENTS");l[x]&&(l[g]=l[x]),l[g]&&(m[g]=m[x]=l[g]),u.patchEventPrototype=t,u.patchEventTarget=T,u.isIEOrEdge=ke,u.ObjectDefineProperty=tt,u.ObjectGetOwnPropertyDescriptor=Ge,u.ObjectCreate=nt,u.ArraySlice=ue,u.patchClass=o,u.wrapWithCurrentZone=et,u.filterProperties=fe,u.attachOriginToPatched=v,u._redefineProperty=Object.defineProperty,u.patchCallbacks=mt,u.getGlobalObjects=()=>({globalSources:I,zoneSymbolEventNames:O,eventNames:p,isBrowser:st,isMix:pt,isNode:rt,TRUE_STR:Me,FALSE_STR:le,ZONE_SYMBOL_PREFIX:ye,ADD_EVENT_LISTENER_STR:je,REMOVE_EVENT_LISTENER_STR:Ze})})}(i)})(Et),function Tt(i){i.__load_patch("legacy",l=>{const m=l[i.__symbol__("legacyPatch")];m&&m()}),i.__load_patch("timers",l=>{const m="set",u="clear";y(l,m,u,"Timeout"),y(l,m,u,"Interval"),y(l,m,u,"Immediate")}),i.__load_patch("requestAnimationFrame",l=>{y(l,"request","cancel","AnimationFrame"),y(l,"mozRequest","mozCancel","AnimationFrame"),y(l,"webkitRequest","webkitCancel","AnimationFrame")}),i.__load_patch("blocking",(l,m)=>{const u=["alert","prompt","confirm"];for(let p=0;p<u.length;p++)E(l,u[p],(x,N,Z)=>function(W,j){return m.current.run(x,l,j,Z)})}),i.__load_patch("EventTarget",(l,m,u)=>{(function de(i,l){l.patchEventPrototype(i,l)})(l,u),function Pe(i,l){if(Zone[l.symbol("patchEventTarget")])return;const{eventNames:m,zoneSymbolEventNames:u,TRUE_STR:p,FALSE_STR:g,ZONE_SYMBOL_PREFIX:x}=l.getGlobalObjects();for(let Z=0;Z<m.length;Z++){const W=m[Z],G=x+(W+g),ae=x+(W+p);u[W]={},u[W][g]=G,u[W][p]=ae}const N=i.EventTarget;N&&N.prototype&&l.patchEventTarget(i,l,[N&&N.prototype])}(l,u);const p=l.XMLHttpRequestEventTarget;p&&p.prototype&&u.patchEventTarget(l,u,[p.prototype])}),i.__load_patch("MutationObserver",(l,m,u)=>{o("MutationObserver"),o("WebKitMutationObserver")}),i.__load_patch("IntersectionObserver",(l,m,u)=>{o("IntersectionObserver")}),i.__load_patch("FileReader",(l,m,u)=>{o("FileReader")}),i.__load_patch("on_property",(l,m,u)=>{!function at(i,l){if(rt&&!pt||Zone[i.symbol("patchEvents")])return;const m=l.__Zone_ignore_on_properties;let u=[];if(st){const p=window;u=u.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const g=function ce(){try{const i=qe.navigator.userAgent;if(-1!==i.indexOf("MSIE ")||-1!==i.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:p,ignoreProperties:["error"]}]:[];Re(p,Qe(p),m&&m.concat(g),Ke(p))}u=u.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let p=0;p<u.length;p++){const g=l[u[p]];g&&g.prototype&&Re(g.prototype,Qe(g.prototype),m)}}(u,l)}),i.__load_patch("customElements",(l,m,u)=>{!function D(i,l){const{isBrowser:m,isMix:u}=l.getGlobalObjects();(m||u)&&i.customElements&&"customElements"in i&&l.patchCallbacks(l,i.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(l,u)}),i.__load_patch("XHR",(l,m)=>{!function W(j){const te=j.XMLHttpRequest;if(!te)return;const G=te.prototype;let Ee=G[Ne],he=G[ct];if(!Ee){const V=j.XMLHttpRequestEventTarget;if(V){const $=V.prototype;Ee=$[Ne],he=$[ct]}}const Be="readystatechange",Ie="scheduled";function U(V){const $=V.data,J=$.target;J[x]=!1,J[Z]=!1;const Fe=J[g];Ee||(Ee=J[Ne],he=J[ct]),Fe&&he.call(J,Be,Fe);const Se=J[g]=()=>{if(J.readyState===J.DONE)if(!$.aborted&&J[x]&&V.state===Ie){const M=J[m.__symbol__("loadfalse")];if(0!==J.status&&M&&M.length>0){const r=V.invoke;V.invoke=function(){const h=J[m.__symbol__("loadfalse")];for(let L=0;L<h.length;L++)h[L]===V&&h.splice(L,1);!$.aborted&&V.state===Ie&&r.call(V)},M.push(V)}else V.invoke()}else!$.aborted&&!1===J[x]&&(J[Z]=!0)};return Ee.call(J,Be,Se),J[u]||(J[u]=V),me.apply(J,$.args),J[x]=!0,V}function C(){}function pe(V){const $=V.data;return $.aborted=!0,ee.apply($.target,$.args)}const be=E(G,"open",()=>function(V,$){return V[p]=0==$[2],V[N]=$[1],be.apply(V,$)}),Te=oe("fetchTaskAborting"),F=oe("fetchTaskScheduling"),me=E(G,"send",()=>function(V,$){if(!0===m.current[F]||V[p])return me.apply(V,$);{const J={target:V,url:V[N],isPeriodic:!1,args:$,aborted:!1},Fe=Ue("XMLHttpRequest.send",C,J,U,pe);V&&!0===V[Z]&&!J.aborted&&Fe.state===Ie&&Fe.invoke()}}),ee=E(G,"abort",()=>function(V,$){const J=function ae(V){return V[u]}(V);if(J&&"string"==typeof J.type){if(null==J.cancelFn||J.data&&J.data.aborted)return;J.zone.cancelTask(J)}else if(!0===m.current[Te])return ee.apply(V,$)})}(l);const u=oe("xhrTask"),p=oe("xhrSync"),g=oe("xhrListener"),x=oe("xhrScheduled"),N=oe("xhrURL"),Z=oe("xhrErrorBeforeScheduled")}),i.__load_patch("geolocation",l=>{l.navigator&&l.navigator.geolocation&&function We(i,l){const m=i.constructor.name;for(let u=0;u<l.length;u++){const p=l[u],g=i[p];if(g){if(!dt(Ge(i,p)))continue;i[p]=(N=>{const Z=function(){return N.apply(this,Ve(arguments,m+"."+p))};return v(Z,N),Z})(g)}}}(l.navigator.geolocation,["getCurrentPosition","watchPosition"])}),i.__load_patch("PromiseRejectionEvent",(l,m)=>{function u(p){return function(g){e(l,p).forEach(N=>{const Z=l.PromiseRejectionEvent;if(Z){const W=new Z(p,{promise:g.promise,reason:g.rejection});N.invoke(W)}})}}l.PromiseRejectionEvent&&(m[oe("unhandledPromiseRejectionHandler")]=u("unhandledrejection"),m[oe("rejectionHandledHandler")]=u("rejectionhandled"))}),i.__load_patch("queueMicrotask",(l,m,u)=>{!function a(i,l){l.patchMethod(i,"queueMicrotask",m=>function(u,p){Zone.current.scheduleMicroTask("queueMicrotask",p[0])})}(l,u)})}(Et)}},xe=>{xe(xe.s=12523)}]); |