'use strict'; /** * @license Angular * (c) 2010-2025 Google LLC. https://angular.dev/ * License: MIT */(function(g,f){if(typeof define=="function"&&define.amd){define(["timers","crypto","events","fs"],function(_d_0,_d_1,_d_2,_d_3){var d={"timers": _d_0,"crypto": _d_1,"events": _d_2,"fs": _d_3},r=function(m){if(m in d) return d[m];if(typeof require=="function") return require(m);throw new Error("Cannot find module '"+m+"'")};return f(r)})}else if(typeof exports=="object" && typeof module<"u"){module.exports=f(require)}else{var gN={"timers":"timers","crypto":"crypto","events":"events","fs":"fs"},gReq=function(r){var mod = r in gN ? g[gN[r]] : g[r]; return mod };var m=f(gReq);for(var i in m) g[i]=m[i]}}(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : this,function(require){var exports={};var __exports=exports;var module={exports}; "use strict";(function(Te,ye){if(typeof define=="function"&&define.amd)define(["timers","crypto","events","fs"],function(ge,Pe,Ye,qe){var Re={timers:ge,crypto:Pe,events:Ye,fs:qe},Fe=function(we){if(we in Re)return Re[we];if(typeof require=="function")return require(we);throw new Error("Cannot find module '"+we+"'")};return ye(Fe)});else if(typeof exports=="object"&&typeof module<"u")module.exports=ye(require);else{var Me={timers:"timers",crypto:"crypto",events:"events",fs:"fs"},Ae=function(ge){var Pe=ge in Me?Te[Me[ge]]:Te[ge];return Pe},je=ye(Ae);for(var He in je)Te[He]=je[He]}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:exports,function(Te){var ye={},Me=ye,Ae={exports:ye},je=Object.defineProperty,He=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Re=function(r,e,n){return e in r?je(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n},Fe=function(r,e){for(var n in e||(e={}))Ye.call(e,n)&&Re(r,n,e[n]);if(Pe)for(var t=0,o=Pe(e);t",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}return d.assertZonePatched=function(){if(fe.Promise!==D.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.)")},Object.defineProperty(d,"root",{get:function(){for(var a=d.current;a.parent;)a=a.parent;return a},enumerable:!1,configurable:!0}),Object.defineProperty(d,"current",{get:function(){return m.zone},enumerable:!1,configurable:!0}),Object.defineProperty(d,"currentTask",{get:function(){return B},enumerable:!1,configurable:!0}),d.__load_patch=function(a,i,s){if(s===void 0&&(s=!1),D.hasOwnProperty(a)){var g=fe[ie("forceDuplicateZoneCheck")]===!0;if(!s&&g)throw Error("Already loaded patch: "+a)}else if(!fe["__Zone_disable_"+a]){var H="Zone:"+a;e(H),D[a]=i(fe,d,re),n(H,H)}},Object.defineProperty(d.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),d.prototype.get=function(a){var i=this.getZoneWith(a);if(i)return i._properties[a]},d.prototype.getZoneWith=function(a){for(var i=this;i;){if(i._properties.hasOwnProperty(a))return i;i=i._parent}return null},d.prototype.fork=function(a){if(!a)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,a)},d.prototype.wrap=function(a,i){if(typeof a!="function")throw new Error("Expecting function got: "+a);var s=this._zoneDelegate.intercept(this,a,i),g=this;return function(){return g.runGuarded(s,this,arguments,i)}},d.prototype.run=function(a,i,s,g){m={parent:m,zone:this};try{return this._zoneDelegate.invoke(this,a,i,s,g)}finally{m=m.parent}},d.prototype.runGuarded=function(a,i,s,g){i===void 0&&(i=null),m={parent:m,zone:this};try{try{return this._zoneDelegate.invoke(this,a,i,s,g)}catch(H){if(this._zoneDelegate.handleError(this,H))throw H}}finally{m=m.parent}},d.prototype.runTask=function(a,i,s){if(a.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(a.zone||oe).name+"; Execution: "+this.name+")");var g=a,H=a.type,K=a.data,he=K===void 0?{}:K,ke=he.isPeriodic,pe=ke===void 0?!1:ke,me=he.isRefreshable,l=me===void 0?!1:me;if(!(a.state===j&&(H===U||H===S))){var h=a.state!=J;h&&g._transitionTo(J,y);var v=B;B=g,m={parent:m,zone:this};try{H==S&&a.data&&!pe&&!l&&(a.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,g,i,s)}catch(w){if(this._zoneDelegate.handleError(this,w))throw w}}finally{var c=a.state;if(c!==j&&c!==q)if(H==U||pe||l&&c===O)h&&g._transitionTo(y,J,O);else{var E=g._zoneDelegates;this._updateTaskCount(g,-1),h&&g._transitionTo(j,J,j),l&&(g._zoneDelegates=E)}m=m.parent,B=v}}},d.prototype.scheduleTask=function(a){if(a.zone&&a.zone!==this)for(var i=this;i;){if(i===a.zone)throw Error("can not reschedule task to ".concat(this.name," which is descendants of the original zone ").concat(a.zone.name));i=i.parent}a._transitionTo(O,j);var s=[];a._zoneDelegates=s,a._zone=this;try{a=this._zoneDelegate.scheduleTask(this,a)}catch(g){throw a._transitionTo(q,O,j),this._zoneDelegate.handleError(this,g),g}return a._zoneDelegates===s&&this._updateTaskCount(a,1),a.state==O&&a._transitionTo(y,O),a},d.prototype.scheduleMicroTask=function(a,i,s,g){return this.scheduleTask(new p(x,a,i,s,g,void 0))},d.prototype.scheduleMacroTask=function(a,i,s,g,H){return this.scheduleTask(new p(S,a,i,s,g,H))},d.prototype.scheduleEventTask=function(a,i,s,g,H){return this.scheduleTask(new p(U,a,i,s,g,H))},d.prototype.cancelTask=function(a){if(a.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(a.zone||oe).name+"; Execution: "+this.name+")");if(!(a.state!==y&&a.state!==J)){a._transitionTo(W,y,J);try{this._zoneDelegate.cancelTask(this,a)}catch(i){throw a._transitionTo(q,W),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(a,-1),a._transitionTo(j,W),a.runCount=-1,a}},d.prototype._updateTaskCount=function(a,i){var s=a._zoneDelegates;i==-1&&(a._zoneDelegates=null);for(var g=0;g0,macroTask:s.macroTask>0,eventTask:s.eventTask>0,change:a};this.hasTask(this._zone,K)}},d}(),p=function(){function d(a,i,s,g,H,K){if(C(this,"type"),C(this,"source"),C(this,"invoke"),C(this,"callback"),C(this,"data"),C(this,"scheduleFn"),C(this,"cancelFn"),C(this,"_zone",null),C(this,"runCount",0),C(this,"_zoneDelegates",null),C(this,"_state","notScheduled"),this.type=a,this.source=i,this.data=g,this.scheduleFn=H,this.cancelFn=K,!s)throw new Error("callback is not defined");this.callback=s;var he=this;a===U&&g&&g.useG?this.invoke=d.invokeTask:this.invoke=function(){return d.invokeTask.call(fe,he,this,arguments)}}return d.invokeTask=function(a,i,s){a||(a=this),I++;try{return a.runCount++,a.zone.runTask(a,i,s)}finally{I==1&&Q(),I--}},Object.defineProperty(d.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),d.prototype.cancelScheduleRequest=function(){this._transitionTo(j,O)},d.prototype._transitionTo=function(a,i,s){if(this._state===i||this._state===s)this._state=a,a==j&&(this._zoneDelegates=null);else throw new Error("".concat(this.type," '").concat(this.source,"': can not transition to '").concat(a,"', expecting state '").concat(i,"'").concat(s?" or '"+s+"'":"",", was '").concat(this._state,"'."))},d.prototype.toString=function(){return this.data&&typeof this.data.handleId!="undefined"?this.data.handleId.toString():Object.prototype.toString.call(this)},d.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},d}(),_=ie("setTimeout"),b=ie("Promise"),T=ie("then"),k=[],P=!1,N;function z(d){if(N||fe[b]&&(N=fe[b].resolve(0)),N){var a=N[T];a||(a=N.then),a.call(N,d)}else fe[_](d,0)}function M(d){I===0&&k.length===0&&z(Q),d&&k.push(d)}function Q(){if(!P){for(P=!0;k.length;){var d=k;k=[];for(var a=0;a=0;n--)typeof r[n]=="function"&&(r[n]=tr(r[n],e+"_"+n));return r}function Mr(r,e){for(var n=r.constructor.name,t=function(u){var f=e[u],p=r[f];if(p){var _=De(r,f);if(!fr(_))return"continue";r[f]=function(b){var T=function(){return b.apply(this,Be(arguments,n+"."+f))};return de(T,b),T}(p)}},o=0;o=0&&typeof p[_.cbIdx]=="function"?nr(_.name,p[_.cbIdx],_,o):u.apply(f,p)}})}function Fr(r,e,n){var t=null;function o(u){var f=u.data;return f.args[f.cbIdx]=function(){u.invoke.apply(this,arguments)},t.apply(f.target,f.args),u}t=ce(r,e,function(u){return function(f,p){var _=n(f,p);return _.cbIdx>=0&&typeof p[_.cbIdx]=="function"?Zone.current.scheduleMicroTask(_.name,p[_.cbIdx],_,o):u.apply(f,p)}})}function de(r,e){r[G("OriginalDelegate")]=e}function pr(r){return typeof r=="function"}function Er(r){return typeof r=="number"}var Vr={useG:!0},ae={},Tr={},yr=new RegExp("^"+Ie+"(\\w+)(true|false)$"),mr=G("propagationStopped");function gr(r,e){var n=(e?e(r):r)+_e,t=(e?e(r):r)+ve,o=Ie+n,u=Ie+t;ae[r]={},ae[r][_e]=o,ae[r][ve]=u}function kr(r,e,n,t){var o=t&&t.add||Qe,u=t&&t.rm||$e,f=t&&t.listeners||"eventListeners",p=t&&t.rmAll||"removeAllListeners",_=G(o),b="."+o+":",T="prependListener",k="."+T+":",P=function(O,y,J){if(!O.isRemoved){var W=O.callback;typeof W=="object"&&W.handleEvent&&(O.callback=function(U){return W.handleEvent(U)},O.originalDelegate=W);var q;try{O.invoke(O,y,[J])}catch(U){q=U}var x=O.options;if(x&&typeof x=="object"&&x.once){var S=O.originalDelegate?O.originalDelegate:O.callback;y[u].call(y,J.type,S,x)}return q}};function N(O,y,J){if(y=y||r.event,!!y){var W=O||y.target||r,q=W[ae[y.type][J?ve:_e]];if(q){var x=[];if(q.length===1){var S=P(q[0],W,y);S&&x.push(S)}else for(var U=q.slice(),D=0;D2}).map(function(e){return e.substring(2)})}function zr(r,e){if(!(Ge&&!Ue)&&!Zone[r.symbol("patchEvents")]){var n=e.__Zone_ignore_on_properties,t=[];if(or){var o=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]),Rr(o,sr(o),n,Ke(o))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(var u=0;u0){var s=m.invoke;m.invoke=function(){for(var g=I[n.__symbol__("loadfalse")],H=0;H0?T.length-1:-1,target:b}})});var p=(o=u.realpath)==null?void 0:o[t.symbol("OriginalDelegate")];p!=null&&p.native&&(u.realpath.native=p.native,Le(u.realpath,"native",function(_,b){return{args:b,target:_,cbIdx:b.length>0?b.length-1:-1,name:"fs.realpath.native"}}))}})}function et(r){r.__load_patch("node_util",function(e,n,t){t.patchOnProperties=ir,t.patchMethod=ce,t.bindArguments=Be,t.patchMacroTask=Le,Hr(!0)})}var Se="set",Oe="clear";function rt(r){et(r),Qr(r),$r(r),r.__load_patch("node_timers",function(e,n){var t=!1;try{var o=Te("timers"),u=e.setTimeout===o.setTimeout;if(!u&&!Ue){var f=o.setTimeout;o.setTimeout=function(){return t=!0,f.apply(this,arguments)};var p=e.setTimeout(function(){},100);clearTimeout(p),o.setTimeout=f}se(o,Se,Oe,"Timeout"),se(o,Se,Oe,"Interval"),se(o,Se,Oe,"Immediate")}catch(_){}Ue||(t?(e[n.__symbol__("setTimeout")]=e.setTimeout,e[n.__symbol__("setInterval")]=e.setInterval,e[n.__symbol__("setImmediate")]=e.setImmediate):(se(e,Se,Oe,"Timeout"),se(e,Se,Oe,"Interval"),se(e,Se,Oe,"Immediate")))}),r.__load_patch("nextTick",function(){Fr(process,"nextTick",function(e,n){return{name:"process.nextTick",args:n,cbIdx:n.length>0&&typeof n[0]=="function"?0:-1,target:process}})}),r.__load_patch("handleUnhandledPromiseRejection",function(e,n,t){n[t.symbol("unhandledPromiseRejectionHandler")]=o("unhandledRejection"),n[t.symbol("rejectionHandledHandler")]=o("rejectionHandled");function o(u){return function(f){var p=ar(process,u);p.forEach(function(_){u==="unhandledRejection"?_.invoke(f.rejection,f.promise):u==="rejectionHandled"&&_.invoke(f.promise)})}}}),r.__load_patch("crypto",function(){var e;try{e=Te("crypto")}catch(t){}if(e){var n=["randomBytes","pbkdf2"];n.forEach(function(t){Le(e,t,function(o,u){return{name:"crypto."+t,args:u,cbIdx:u.length>0&&typeof u[u.length-1]=="function"?u.length-1:-1,target:e}})})}}),r.__load_patch("console",function(e,n){var t=["dir","log","info","error","warn","assert","debug","timeEnd","trace"];t.forEach(function(o){var u=console[n.__symbol__(o)]=console[o];u&&(console[o]=function(){var f=lr.call(arguments);return n.current===n.root?u.apply(this,f):n.root.run(u,this,f)})})}),r.__load_patch("queueMicrotask",function(e,n,t){br(e,t)})}function tt(){var r,e=globalThis,n=e[ie("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return(r=e.Zone)!=null||(e.Zone=Zr()),e.Zone}var ur=tt();return Kr(ur),Wr(ur),rt(ur),Me!=ye&&(Ae.exports=ye),Ae.exports}); if(__exports != exports)module.exports = exports;return module.exports}));