1import{fa as _,ga as P,ha as $,ia as N,ja as p}from"./chunk-XGNBHL4I.js";import{B as l,D as R,F as j,G as T,I as M,K as C,N as F,O as b,b as I,d as O,da as E,fa as D,ga as u,ha as f,ia as w,ja as A,p as d,r as g,ta as x,z as v}from"./chunk-NTL77WZP.js";import{a}from"./chunk-MG3ERZGY.js";var K={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},h="__@ngrx/effects_create__";function bt(t,e={}){let r=e.functional?t:t(),n=a(a({},K),e);return Object.defineProperty(r,h,{value:n}),r}function Y(t){return Object.getOwnPropertyNames(t).filter(n=>t[n]&&t[n].hasOwnProperty(h)?t[n][h].hasOwnProperty("dispatch"):!1).map(n=>{let o=t[n][h];return a({propertyName:n},o)})}function J(t){return Y(t)}function U(t){return Object.getPrototypeOf(t)}function L(t){return!!t.constructor&&t.constructor.name!=="Object"&&t.constructor.name!=="Function"}function G(t){return typeof t=="function"}function X(t){return t.filter(G)}function q(t,e,r){let n=U(t),c=!!n&&n.constructor.name!=="Object"?n.constructor.name:null,s=J(t).map(({propertyName:i,dispatch:V,useEffectsErrorHandler:B})=>{let S=typeof t[i]=="function"?t[i]():t[i],m=B?r(S,e):S;return V===!1?m.pipe(T()):m.pipe(b()).pipe(d(z=>({effect:t[i],notification:z,propertyName:i,sourceName:c,sourceInstance:t})))});return v(...s)}var Q=10;function H(t,e,r=Q){return t.pipe(R(n=>(e&&e.handleError(n),r<=1?t:H(t,e,r-1))))}var Dt=(()=>{let e=class e extends I{constructor(n){super(),n&&(this.source=n)}lift(n){let o=new e;return o.source=this,o.operator=n,o}};e.\u0275fac=function(o){return new(o||e)(u(N))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function wt(...t){return l(e=>t.some(r=>typeof r=="string"?r===e.type:r.type===e.type))}var W=new D("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>H}),Z="@ngrx/effects/init",tt=_(Z);function et(t,e){if(t.notification.kind==="N"){let r=t.notification.value;!nt(r)&&e.handleError(new Error(`Effect ${rt(t)} dispatched an invalid action: ${ot(r)}`))}}function nt(t){return typeof t!="function"&&t&&t.type&&typeof t.type=="string"}function rt({propertyName:t,sourceInstance:e,sourceName:r}){let n=typeof e[t]=="function";return!!r?`"${r}.${String(t)}${n?"()":""}"`:`"${String(t)}()"`}function ot(t){try{return JSON.stringify(t)}catch{return t}}var st="ngrxOnIdentifyEffects";function it(t){return y(t,st)}var ft="ngrxOnRunEffects";function ct(t){return y(t,ft)}var ut="ngrxOnInitEffects";function at(t){return y(t,ut)}function y(t,e){return t&&e in t&&typeof t[e]=="function"}var k=(()=>{let e=class e extends O{constructor(n,o){super(),this.errorHandler=n,this.effectsErrorHandler=o}addEffects(n){this.next(n)}toActions(){return this.pipe(F(n=>L(n)?U(n):n),g(n=>n.pipe(F(dt))),g(n=>{let o=n.pipe(C(s=>lt(this.errorHandler,this.effectsErrorHandler)(s)),d(s=>(et(s,this.errorHandler),s.notification)),l(s=>s.kind==="N"&&s.value!=null),M()),c=n.pipe(j(1),l(at),d(s=>s.ngrxOnInitEffects()));return v(o,c)}))}};e.\u0275fac=function(o){return new(o||e)(u(x),u(W))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function dt(t){return it(t)?t.ngrxOnIdentifyEffects():""}function lt(t,e){return r=>{let n=q(r,t,e);return ct(r)?r.ngrxOnRunEffects(n):n}}var Et=(()=>{let e=class e{get isStarted(){return!!this.effectsSubscription}constructor(n,o){this.effectSources=n,this.store=o,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}};e.\u0275fac=function(o){return new(o||e)(u(k),u(p))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function At(...t){let e=t.flat(),r=X(e);return w([r,A(()=>{f(P),f($,{optional:!0});let n=f(Et),o=f(k),c=!n.isStarted;c&&n.start();for(let s of e){let i=G(s)?f(s):s;o.addEffects(i)}c&&f(p).dispatch(tt())})])}export{bt as a,Dt as b,wt as c,At as d};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.