@aastrika/ai-elements 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
- var gy=Object.defineProperty,my=Object.defineProperties;var yy=Object.getOwnPropertyDescriptors;var Ad=Object.getOwnPropertySymbols;var vy=Object.prototype.hasOwnProperty,_y=Object.prototype.propertyIsEnumerable;var Od=(e,t,n)=>t in e?gy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t)=>{for(var n in t||={})vy.call(t,n)&&Od(e,n,t[n]);if(Ad)for(var n of Ad(t))_y.call(t,n)&&Od(e,n,t[n]);return e},W=(e,t)=>my(e,yy(t));var ke=null,yi=!1,En=1,Cy=null,Ce=Symbol("SIGNAL");function k(e){let t=ke;return ke=e,t}function Di(){return ke}var wn={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ur(e){if(yi)throw new Error("");if(ke===null)return;ke.consumerOnSignalRead(e);let t=ke.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=ke.recomputing;if(r&&(n=t!==void 0?t.nextProducer:ke.producers,n!==void 0&&n.producer===e)){ke.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=En;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===ke&&(!r||o.knownValidAtEpoch===En))return;let i=fr(ke),s={producer:e,consumer:ke,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:En,lastReadVersion:e.version,nextConsumer:void 0};ke.producersTail=s,t!==void 0?t.nextProducer=s:ke.producers=s,i&&Fd(e,s)}function kd(){En++}function bi(e){if(!(fr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===En)){if(!e.producerMustRecompute(e)&&!io(e)){Ci(e);return}e.producerRecomputeValue(e),Ci(e)}}function Za(e){if(e.consumers===void 0)return;let t=yi;yi=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Dy(r)}}finally{yi=t}}function Ya(){return ke?.consumerAllowSignalWrites!==!1}function Dy(e){e.dirty=!0,Za(e),e.consumerMarkedDirty?.(e)}function Ci(e){e.dirty=!1,e.lastCleanEpoch=En}function Sn(e){return e&&Rd(e),k(e)}function Rd(e){if(e.producersTail?.knownValidAtEpoch===En){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer}e.producersTail=void 0,e.recomputing=!0}function dr(e,t){k(t),e&&Pd(e)}function Pd(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(fr(e))do n=Qa(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function io(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(bi(n),r!==n.version))return!0}return!1}function xn(e){if(fr(e)){let t=e.producers;for(;t!==void 0;)t=Qa(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Fd(e,t){let n=e.consumersTail,r=fr(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Fd(o.producer,o)}function Qa(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!fr(t)){let i=t.producers;for(;i!==void 0;)i=Qa(i)}return n}function fr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Ei(e){Cy?.(e)}function wi(e,t){return Object.is(e,t)}function Si(e,t){let n=Object.create(by);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(bi(n),ur(n),n.value===oo)throw n.error;return n.value};return r[Ce]=n,Ei(n),r}var vi=Symbol("UNSET"),_i=Symbol("COMPUTING"),oo=Symbol("ERRORED"),by=W(V({},wn),{value:vi,dirty:!0,error:null,equal:wi,kind:"computed",producerMustRecompute(e){return e.value===vi||e.value===_i},producerRecomputeValue(e){if(e.value===_i)throw new Error("");let t=e.value;e.value=_i;let n=Sn(e),r,o=!1;try{r=e.computation(),k(null),o=t!==vi&&t!==oo&&r!==oo&&e.equal(t,r)}catch(i){r=oo,e.error=i}finally{dr(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Ey(){throw new Error}var Ld=Ey;function Vd(e){Ld(e)}function Ka(e){Ld=e}var wy=null;function Ja(e,t){let n=Object.create(so);n.value=e,t!==void 0&&(n.equal=t);let r=()=>jd(n);return r[Ce]=n,Ei(n),[r,s=>In(n,s),s=>Xa(n,s)]}function jd(e){return ur(e),e.value}function In(e,t){Ya()||Vd(e),e.equal(e.value,t)||(e.value=t,Sy(e))}function Xa(e,t){Ya()||Vd(e),In(e,t(e.value))}var so=W(V({},wn),{equal:wi,value:void 0,kind:"signal"});function Sy(e){e.version++,kd(),Za(e),wy?.(e)}var ec=W(V({},wn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function tc(e){if(e.dirty=!1,e.version>0&&!io(e))return;e.version++;let t=Sn(e);try{e.cleanup(),e.fn()}finally{dr(e,t)}}var nc;function xi(){return nc}function It(e){let t=nc;return nc=e,t}var Bd=Symbol("NotFound");function pr(e){return e===Bd||e?.name==="\u0275NotFound"}function Hd(e){let t=k(null);try{return e()}finally{k(t)}}function U(e){return typeof e=="function"}function Ii(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Mi=Ii(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
1
+ var wy=Object.defineProperty,xy=Object.defineProperties;var Sy=Object.getOwnPropertyDescriptors;var Ld=Object.getOwnPropertySymbols;var Iy=Object.prototype.hasOwnProperty,My=Object.prototype.propertyIsEnumerable;var Vd=(e,t,n)=>t in e?wy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t)=>{for(var n in t||={})Iy.call(t,n)&&Vd(e,n,t[n]);if(Ld)for(var n of Ld(t))My.call(t,n)&&Vd(e,n,t[n]);return e},$=(e,t)=>xy(e,Sy(t));var Le=null,wi=!1,In=1,Ty=null,De=Symbol("SIGNAL");function k(e){let t=Le;return Le=e,t}function Mi(){return Le}var Mn={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function gr(e){if(wi)throw new Error("");if(Le===null)return;Le.consumerOnSignalRead(e);let t=Le.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Le.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Le.producers,n!==void 0&&n.producer===e)){Le.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=In;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Le&&(!r||o.knownValidAtEpoch===In))return;let i=yr(Le),s={producer:e,consumer:Le,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:In,lastReadVersion:e.version,nextConsumer:void 0};Le.producersTail=s,t!==void 0?t.nextProducer=s:Le.producers=s,i&&Ud(e,s)}function jd(){In++}function Ti(e){if(!(yr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===In)){if(!e.producerMustRecompute(e)&&!po(e)){Ii(e);return}e.producerRecomputeValue(e),Ii(e)}}function ec(e){if(e.consumers===void 0)return;let t=wi;wi=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Ny(r)}}finally{wi=t}}function tc(){return Le?.consumerAllowSignalWrites!==!1}function Ny(e){e.dirty=!0,ec(e),e.consumerMarkedDirty?.(e)}function Ii(e){e.dirty=!1,e.lastCleanEpoch=In}function Tn(e){return e&&Bd(e),k(e)}function Bd(e){if(e.producersTail?.knownValidAtEpoch===In){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer}e.producersTail=void 0,e.recomputing=!0}function mr(e,t){k(t),e&&Hd(e)}function Hd(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(yr(e))do n=nc(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function po(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Ti(n),r!==n.version))return!0}return!1}function Nn(e){if(yr(e)){let t=e.producers;for(;t!==void 0;)t=nc(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Ud(e,t){let n=e.consumersTail,r=yr(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Ud(o.producer,o)}function nc(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!yr(t)){let i=t.producers;for(;i!==void 0;)i=nc(i)}return n}function yr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Ni(e){Ty?.(e)}function Ai(e,t){return Object.is(e,t)}function Oi(e,t){let n=Object.create(Ay);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Ti(n),gr(n),n.value===fo)throw n.error;return n.value};return r[De]=n,Ni(n),r}var xi=Symbol("UNSET"),Si=Symbol("COMPUTING"),fo=Symbol("ERRORED"),Ay=$(V({},Mn),{value:xi,dirty:!0,error:null,equal:Ai,kind:"computed",producerMustRecompute(e){return e.value===xi||e.value===Si},producerRecomputeValue(e){if(e.value===Si)throw new Error("");let t=e.value;e.value=Si;let n=Tn(e),r,o=!1;try{r=e.computation(),k(null),o=t!==xi&&t!==fo&&r!==fo&&e.equal(t,r)}catch(i){r=fo,e.error=i}finally{mr(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Oy(){throw new Error}var $d=Oy;function zd(e){$d(e)}function rc(e){$d=e}var ky=null;function oc(e,t){let n=Object.create(ho);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Gd(n);return r[De]=n,Ni(n),[r,s=>An(n,s),s=>ic(n,s)]}function Gd(e){return gr(e),e.value}function An(e,t){tc()||zd(e),e.equal(e.value,t)||(e.value=t,Ry(e))}function ic(e,t){tc()||zd(e),An(e,t(e.value))}var ho=$(V({},Mn),{equal:Ai,value:void 0,kind:"signal"});function Ry(e){e.version++,jd(),ec(e),ky?.(e)}var sc=$(V({},Mn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function ac(e){if(e.dirty=!1,e.version>0&&!po(e))return;e.version++;let t=Tn(e);try{e.cleanup(),e.fn()}finally{mr(e,t)}}var cc;function ki(){return cc}function At(e){let t=cc;return cc=e,t}var Wd=Symbol("NotFound");function vr(e){return e===Wd||e?.name==="\u0275NotFound"}function qd(e){let t=k(null);try{return e()}finally{k(t)}}function U(e){return typeof e=="function"}function Ri(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Pi=Ri(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
2
  ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
- `)}`:"",this.name="UnsubscriptionError",this.errors=n});function ao(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var De=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(U(r))try{r()}catch(i){t=i instanceof Mi?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Ud(i)}catch(s){t=t??[],s instanceof Mi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Mi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Ud(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&ao(n,t)}remove(t){let{_finalizers:n}=this;n&&ao(n,t),t instanceof e&&t._removeParent(this)}};De.EMPTY=(()=>{let e=new De;return e.closed=!0,e})();var rc=De.EMPTY;function Ti(e){return e instanceof De||e&&"closed"in e&&U(e.remove)&&U(e.add)&&U(e.unsubscribe)}function Ud(e){U(e)?e():e.unsubscribe()}var ft={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var hr={setTimeout(e,t,...n){let{delegate:r}=hr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=hr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ni(e){hr.setTimeout(()=>{let{onUnhandledError:t}=ft;if(t)t(e);else throw e})}function oc(){}var $d=ic("C",void 0,void 0);function zd(e){return ic("E",void 0,e)}function Gd(e){return ic("N",e,void 0)}function ic(e,t,n){return{kind:e,value:t,error:n}}var Mn=null;function gr(e){if(ft.useDeprecatedSynchronousErrorHandling){let t=!Mn;if(t&&(Mn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Mn;if(Mn=null,n)throw r}}else e()}function Wd(e){ft.useDeprecatedSynchronousErrorHandling&&Mn&&(Mn.errorThrown=!0,Mn.error=e)}var Tn=class extends De{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ti(t)&&t.add(this)):this.destination=My}static create(t,n,r){return new mr(t,n,r)}next(t){this.isStopped?ac(Gd(t),this):this._next(t)}error(t){this.isStopped?ac(zd(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ac($d,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},xy=Function.prototype.bind;function sc(e,t){return xy.call(e,t)}var cc=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ai(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ai(r)}else Ai(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ai(n)}}},mr=class extends Tn{constructor(t,n,r){super();let o;if(U(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ft.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&sc(t.next,i),error:t.error&&sc(t.error,i),complete:t.complete&&sc(t.complete,i)}):o=t}this.destination=new cc(o)}};function Ai(e){ft.useDeprecatedSynchronousErrorHandling?Wd(e):Ni(e)}function Iy(e){throw e}function ac(e,t){let{onStoppedNotification:n}=ft;n&&hr.setTimeout(()=>n(e,t))}var My={closed:!0,next:oc,error:Iy,complete:oc};var yr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Oi(e){return e}function qd(e){return e.length===0?Oi:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var Z=class e{constructor(t){t&&(this._subscribe=t)}lift(t){let n=new e;return n.source=this,n.operator=t,n}subscribe(t,n,r){let o=Ny(t)?t:new mr(t,n,r);return gr(()=>{let{operator:i,source:s}=this;o.add(i?i.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(n){t.error(n)}}forEach(t,n){return n=Zd(n),new n((r,o)=>{let i=new mr({next:s=>{try{t(s)}catch(a){o(a),i.unsubscribe()}},error:o,complete:r});this.subscribe(i)})}_subscribe(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)}[yr](){return this}pipe(...t){return qd(t)(this)}toPromise(t){return t=Zd(t),new t((n,r)=>{let o;this.subscribe(i=>o=i,i=>r(i),()=>n(o))})}};Z.create=e=>new Z(e);function Zd(e){var t;return(t=e??ft.Promise)!==null&&t!==void 0?t:Promise}function Ty(e){return e&&U(e.next)&&U(e.error)&&U(e.complete)}function Ny(e){return e&&e instanceof Tn||Ty(e)&&Ti(e)}function Ay(e){return U(e?.lift)}function Ue(e){return t=>{if(Ay(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function $e(e,t,n,r,o){return new lc(e,t,n,r,o)}var lc=class extends Tn{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var Yd=Ii(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Ie=class extends Z{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){let n=new ki(this,this);return n.operator=t,n}_throwIfClosed(){if(this.closed)throw new Yd}next(t){gr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(t)}})}error(t){gr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;let{observers:n}=this;for(;n.length;)n.shift().error(t)}})}complete(){gr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){let{hasError:n,isStopped:r,observers:o}=this;return n||r?rc:(this.currentObservers=null,o.push(t),new De(()=>{this.currentObservers=null,ao(o,t)}))}_checkFinalizedStatuses(t){let{hasError:n,thrownError:r,isStopped:o}=this;n?t.error(r):o&&t.complete()}asObservable(){let t=new Z;return t.source=this,t}};Ie.create=(e,t)=>new ki(e,t);var ki=class extends Ie{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:rc}};var co=class extends Ie{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var uc={now(){return(uc.delegate||Date).now()},delegate:void 0};var lo=class extends Ie{constructor(t=1/0,n=1/0,r=uc){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var Qd=new Z(e=>e.complete());function Kd(e){return e&&U(e.schedule)}function dc(e){return e[e.length-1]}function Jd(e){return U(dc(e))?e.pop():void 0}function Ri(e){return Kd(dc(e))?e.pop():void 0}function Xd(e,t){return typeof dc(e)=="number"?e.pop():t}function tf(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(f){try{l(r.next(f))}catch(g){s(g)}}function c(f){try{l(r.throw(f))}catch(g){s(g)}}function l(f){f.done?i(f.value):o(f.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function ef(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Nn(e){return this instanceof Nn?(this.v=e,this):new Nn(e)}function nf(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(m){return function(_){return Promise.resolve(_).then(m,g)}}function a(m,_){r[m]&&(o[m]=function(w){return new Promise(function(A,P){i.push([m,w,A,P])>1||c(m,w)})},_&&(o[m]=_(o[m])))}function c(m,_){try{l(r[m](_))}catch(w){y(i[0][3],w)}}function l(m){m.value instanceof Nn?Promise.resolve(m.value.v).then(f,g):y(i[0][2],m)}function f(m){c("next",m)}function g(m){c("throw",m)}function y(m,_){m(_),i.shift(),i.length&&c(i[0][0],i[0][1])}}function rf(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ef=="function"?ef(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var Pi=(e=>e&&typeof e.length=="number"&&typeof e!="function");function Fi(e){return U(e?.then)}function Li(e){return U(e[yr])}function Vi(e){return Symbol.asyncIterator&&U(e?.[Symbol.asyncIterator])}function ji(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Oy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Bi=Oy();function Hi(e){return U(e?.[Bi])}function Ui(e){return nf(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Nn(n.read());if(o)return yield Nn(void 0);yield yield Nn(r)}}finally{n.releaseLock()}})}function $i(e){return U(e?.getReader)}function Me(e){if(e instanceof Z)return e;if(e!=null){if(Li(e))return ky(e);if(Pi(e))return Ry(e);if(Fi(e))return Py(e);if(Vi(e))return of(e);if(Hi(e))return Fy(e);if($i(e))return Ly(e)}throw ji(e)}function ky(e){return new Z(t=>{let n=e[yr]();if(U(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ry(e){return new Z(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Py(e){return new Z(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ni)})}function Fy(e){return new Z(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function of(e){return new Z(t=>{Vy(e,t).catch(n=>t.error(n))})}function Ly(e){return of(Ui(e))}function Vy(e,t){var n,r,o,i;return tf(this,void 0,void 0,function*(){try{for(n=rf(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function rt(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function zi(e,t=0){return Ue((n,r)=>{n.subscribe($e(r,o=>rt(r,e,()=>r.next(o),t),()=>rt(r,e,()=>r.complete(),t),o=>rt(r,e,()=>r.error(o),t)))})}function Gi(e,t=0){return Ue((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function sf(e,t){return Me(e).pipe(Gi(t),zi(t))}function af(e,t){return Me(e).pipe(Gi(t),zi(t))}function cf(e,t){return new Z(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function lf(e,t){return new Z(n=>{let r;return rt(n,t,()=>{r=e[Bi](),rt(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>U(r?.return)&&r.return()})}function Wi(e,t){if(!e)throw new Error("Iterable cannot be null");return new Z(n=>{rt(n,t,()=>{let r=e[Symbol.asyncIterator]();rt(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function uf(e,t){return Wi(Ui(e),t)}function df(e,t){if(e!=null){if(Li(e))return sf(e,t);if(Pi(e))return cf(e,t);if(Fi(e))return af(e,t);if(Vi(e))return Wi(e,t);if(Hi(e))return lf(e,t);if($i(e))return uf(e,t)}throw ji(e)}function Ut(e,t){return t?df(e,t):Me(e)}function fc(...e){let t=Ri(e);return Ut(e,t)}function be(e,t){return Ue((n,r)=>{let o=0;n.subscribe($e(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:jy}=Array;function By(e,t){return jy(t)?e(...t):e(t)}function ff(e){return be(t=>By(e,t))}var{isArray:Hy}=Array,{getPrototypeOf:Uy,prototype:$y,keys:zy}=Object;function pf(e){if(e.length===1){let t=e[0];if(Hy(t))return{args:t,keys:null};if(Gy(t)){let n=zy(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Gy(e){return e&&typeof e=="object"&&Uy(e)===$y}function hf(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function gf(e,t,n,r,o,i,s,a){let c=[],l=0,f=0,g=!1,y=()=>{g&&!c.length&&!l&&t.complete()},m=w=>l<r?_(w):c.push(w),_=w=>{i&&t.next(w),l++;let A=!1;Me(n(w,f++)).subscribe($e(t,P=>{o?.(P),i?m(P):t.next(P)},()=>{A=!0},void 0,()=>{if(A)try{for(l--;c.length&&l<r;){let P=c.shift();s?rt(t,s,()=>_(P)):_(P)}y()}catch(P){t.error(P)}}))};return e.subscribe($e(t,m,()=>{g=!0,y()})),()=>{a?.()}}function vr(e,t,n=1/0){return U(t)?vr((r,o)=>be((i,s)=>t(r,i,o,s))(Me(e(r,o))),n):(typeof t=="number"&&(n=t),Ue((r,o)=>gf(r,o,e,n)))}function mf(e=1/0){return vr(Oi,e)}function pc(...e){let t=Jd(e),{args:n,keys:r}=pf(e),o=new Z(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let f=0;f<s;f++){let g=!1;Me(n[f]).subscribe($e(i,y=>{g||(g=!0,l--),a[f]=y},()=>c--,void 0,()=>{(!c||!g)&&(l||i.next(r?hf(r,a):a),i.complete())}))}});return t?o.pipe(ff(t)):o}function hc(...e){let t=Ri(e),n=Xd(e,1/0),r=e;return r.length?r.length===1?Me(r[0]):mf(n)(Ut(r,t)):Qd}function gc(e,t){return Ue((n,r)=>{let o=0;n.subscribe($e(r,i=>e.call(t,i,o++)&&r.next(i)))})}function mc(e,t){return U(t)?vr(e,t,1):vr(e,1)}function yc(e){return Ue((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function An(e,t){return Ue((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe($e(r,c=>{o?.unsubscribe();let l=0,f=i++;Me(e(c,f)).subscribe(o=$e(r,g=>r.next(t?t(c,g,f,l++):g),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var Xi="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",x=class extends Error{code;constructor(t,n){super(Dr(t,n)),this.code=t}};function Wy(e){return`NG0${Math.abs(e)}`}function Dr(e,t){return`${Wy(e)}${t?": "+t:""}`}function re(e){for(let t in e)if(e[t]===re)return t;throw Error("")}function Df(e,t){for(let n in t)Object.hasOwn(t,n)&&!Object.hasOwn(e,n)&&(e[n]=t[n])}function es(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(es).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
- `);return r>=0?n.slice(0,r):n}function ts(e,t){return e?t?`${e} ${t}`:e:t||""}var qy=re({__forward_ref__:re});function Le(e){return e.__forward_ref__=Le,e}function Ee(e){return Nc(e)?e():e}function Nc(e){return typeof e=="function"&&Object.hasOwn(e,qy)&&e.__forward_ref__===Le}function Q(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Wt(e){return{providers:e.providers||[],imports:e.imports||[]}}function ns(e){return Zy(e,rs)}function Zy(e,t){return Object.hasOwn(e,t)&&e[t]||null}function Yy(e){let t=e?.[rs]??null;return t||null}function _c(e){return e&&Object.hasOwn(e,Zi)?e[Zi]:null}var rs=re({\u0275prov:re}),Zi=re({\u0275inj:re}),O=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=Q({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ac(e){return e&&!!e.\u0275providers}var mo=re({\u0275cmp:re}),yo=re({\u0275dir:re}),Oc=re({\u0275pipe:re});var fo=re({\u0275fac:re}),Fn=re({__NG_ELEMENT_ID__:re}),yf=re({__NG_ENV_ID__:re});function qt(e){return Rc(e,"@Component"),e[mo]||null}function kc(e){return Rc(e,"@Directive"),e[yo]||null}function bf(e){return Rc(e,"@Pipe"),e[Oc]||null}function Rc(e,t){if(e==null)throw new x(-919,!1)}function Zt(e){return typeof e=="string"?e:e==null?"":String(e)}var Ef=re({ngErrorCode:re}),Qy=re({ngErrorMessage:re}),Ky=re({ngTokenPath:re});function Pc(e,t){return wf("",-200,t)}function os(e,t){throw new x(-201,!1)}function wf(e,t,n){let r=new x(t,e);return r[Ef]=t,r[Qy]=e,n&&(r[Ky]=n),r}function Jy(e){return e[Ef]}var Cc;function Sf(){return Cc}function Re(e){let t=Cc;return Cc=e,t}function Fc(e,t,n){let r=ns(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;os(e,"")}var Ln=globalThis;var Xy={},On=Xy,ev="__NG_DI_FLAG__",Dc=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=kn(n)||0;try{return this.injector.get(t,r&8?null:On,r)}catch(o){if(pr(o))return o;throw o}}};function tv(e,t=0){let n=xi();if(n===void 0)throw new x(-203,!1);if(n===null)return Fc(e,void 0,t);{let r=nv(t),o=n.retrieve(e,r);if(pr(o)){if(r.optional)return null;throw o}return o}}function H(e,t=0){return(Sf()||tv)(Ee(e),t)}function D(e,t){return H(e,kn(t))}function kn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function nv(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function bc(e){let t=[];for(let n=0;n<e.length;n++){let r=Ee(e[n]);if(Array.isArray(r)){if(r.length===0)throw new x(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=rv(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(H(o,i))}else t.push(H(r))}return t}function rv(e){return e[ev]}function an(e,t){let n=Object.hasOwn(e,fo);return n?e[fo]:null}function xf(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function If(e){return e.flat(Number.POSITIVE_INFINITY)}function is(e,t){e.forEach(n=>Array.isArray(n)?is(n,t):t(n))}function Lc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function vo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Mf(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function ss(e,t,n){let r=br(e,t);return r>=0?e[r|1]=n:(r=~r,Mf(e,r,t,n)),r}function as(e,t){let n=br(e,t);if(n>=0)return e[n|1]}function br(e,t){return ov(e,t,1)}function ov(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var cn={},Pe=[],_o=new O(""),Co=new O("",-1),Vc=new O(""),Cr=class{get(t,n=On){if(n===On){let o=wf("",-201);throw o.name="\u0275NotFound",o}return n}};function Er(e){return{\u0275providers:e}}function Tf(...e){return{\u0275providers:jc(!0,e),\u0275fromNgModule:!0}}function jc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return is(t,s=>{let a=s;Yi(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Nf(o,i),n}function Nf(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Bc(o,i=>{t(i,r)})}}function Yi(e,t,n,r){if(e=Ee(e),!e)return!1;let o=null,i=_c(e),s=!i&&qt(e);if(!i&&!s){let c=e.ngModule;if(i=_c(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Yi(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;is(i.imports,f=>{Yi(f,t,n,r)&&(l||=[],l.push(f))}),l!==void 0&&Nf(l,t)}if(!a){let l=an(o)||(()=>new o);t({provide:o,useFactory:l,deps:Pe},o),t({provide:Vc,useValue:o,multi:!0},o),t({provide:_o,useValue:()=>H(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;Bc(c,f=>{t(f,l)})}}else return!1;return o!==e&&e.providers!==void 0}function Bc(e,t){for(let n of e)Ac(n)&&(n=n.\u0275providers),Array.isArray(n)?Bc(n,t):t(n)}var iv=re({provide:String,useValue:re});function Af(e){return e!==null&&typeof e=="object"&&iv in e}function sv(e){return!!(e&&e.useExisting)}function av(e){return!!(e&&e.useFactory)}function Rn(e){return typeof e=="function"}function Of(e){return!!e.useClass}var Do=new O(""),qi={},vf={},vc;function wr(){return vc===void 0&&(vc=new Cr),vc}var Fe=class{},Pn=class extends Fe{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,wc(t,s=>this.processProvider(s)),this.records.set(Co,_r(void 0,this)),o.has("environment")&&this.records.set(Fe,_r(void 0,this));let i=this.records.get(Do);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Vc,Pe,{self:!0}))}retrieve(t,n){let r=kn(n)||0;try{return this.get(t,On,r)}catch(o){if(pr(o))return o;throw o}}destroy(){uo(this),this._destroyed=!0;let t=k(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),k(t)}}onDestroy(t){return uo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){uo(this);let n=It(this),r=Re(void 0),o;try{return t()}finally{It(n),Re(r)}}get(t,n=On,r){if(uo(this),Object.hasOwn(t,yf))return t[yf](this);let o=kn(r),i,s=It(this),a=Re(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let f=fv(t)&&ns(t);f&&this.injectableDefInScope(f)?l=_r(Ec(t),qi):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?wr():this.parent;return n=o&8&&n===On?null:n,c.get(t,n)}catch(c){let l=Jy(c);throw l===-200||l===-201?new x(l,null):c}finally{Re(a),It(s)}}resolveInjectorInitializers(){let t=k(null),n=It(this),r=Re(void 0),o;try{let i=this.get(_o,Pe,{self:!0});for(let s of i)s()}finally{It(n),Re(r),k(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=Ee(t);let n=Rn(t)?t:Ee(t&&t.provide),r=lv(t);if(!Rn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=_r(void 0,qi,!0),o.factory=()=>bc(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=k(null);try{if(n.value===vf)throw Pc("");return n.value===qi&&(n.value=vf,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&dv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{k(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Ee(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Ec(e){let t=ns(e),n=t!==null?t.factory:an(e);if(n!==null)return n;if(e instanceof O)throw new x(-204,!1);if(e instanceof Function)return cv(e);throw new x(-204,!1)}function cv(e){if(e.length>0)throw new x(-204,!1);let n=Yy(e);return n!==null?()=>n.factory(e):()=>new e}function lv(e){if(Af(e))return _r(void 0,e.useValue);{let t=Hc(e);return _r(t,qi)}}function Hc(e,t,n){let r;if(Rn(e)){let o=Ee(e);return an(o)||Ec(o)}else if(Af(e))r=()=>Ee(e.useValue);else if(av(e))r=()=>e.useFactory(...bc(e.deps||[]));else if(sv(e))r=(o,i)=>H(Ee(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Ee(e&&(e.useClass||e.provide));if(uv(e))r=()=>new o(...bc(e.deps));else return an(o)||Ec(o)}return r}function uo(e){if(e.destroyed)throw new x(-205,!1)}function _r(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function uv(e){return!!e.deps}function dv(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function fv(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function wc(e,t){for(let n of e)Array.isArray(n)?wc(n,t):n&&Ac(n)?wc(n.\u0275providers,t):t(n)}function Sr(e,t){let n;e instanceof Pn?(uo(e),n=e):n=new Dc(e);let r,o=It(n),i=Re(void 0);try{return t()}finally{It(o),Re(i)}}function kf(){return Sf()!==void 0||xi()!=null}var ht=0,T=1,F=2,ye=3,ot=4,Ge=5,xr=6,Ir=7,de=8,Tt=9,gt=10,ie=11,Mr=12,Uc=13,ln=14,Je=15,un=16,Vn=17,Nt=18,At=19,$c=20,$t=21,cs=22,zt=23,Xe=24,jn=25,Ot=26,ge=27,Rf=1,zc=6,Bn=7,bo=8,Hn=9,le=10;function Yt(e){return Array.isArray(e)&&typeof e[Rf]=="object"}function it(e){return Array.isArray(e)&&e[Rf]===!0}function Gc(e){return(e.flags&4)!==0}function Qt(e){return e.componentOffset>-1}function ls(e){return(e.flags&1)===1}function kt(e){return!!e.template}function Tr(e){return(e[F]&512)!==0}function Un(e){return(e[F]&256)===256}var us=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(us||{});var Wc="svg",Pf="math";function we(e){for(;Array.isArray(e);)e=e[ht];return e}function qc(e,t){return we(t[e])}function st(e,t){return we(t[e.index])}function ds(e,t){return e.data[t]}function Zc(e,t){return e[t]}function Yc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function at(e,t){let n=t[e];return Yt(n)?n:n[ht]}function Ff(e){return(e[F]&4)===4}function fs(e){return(e[F]&128)===128}function Lf(e){return it(e[ye])}function Rt(e,t){return t==null?null:e[t]}function Qc(e){e[Vn]=0}function ps(e){e[F]&1024||(e[F]|=1024,fs(e)&&$n(e))}function Vf(e,t){for(;e>0;)t=t[ln],e--;return t}function Nr(e){return!!(e[F]&9216||e[Xe]?.dirty)}function hs(e){e[gt].changeDetectionScheduler?.notify(8),e[F]&64&&(e[F]|=1024),Nr(e)&&$n(e)}function $n(e){e[gt].changeDetectionScheduler?.notify(0);let t=Gt(e);for(;t!==null&&!(t[F]&8192||(t[F]|=8192,!fs(t)));)t=Gt(t)}function gs(e,t){if(Un(e))throw new x(911,!1);e[$t]===null&&(e[$t]=[]),e[$t].push(t)}function jf(e,t){if(e[$t]===null)return;let n=e[$t].indexOf(t);n!==-1&&e[$t].splice(n,1)}function Gt(e){let t=e[ye];return it(t)?t[ye]:t}function Kc(e){return e[Ir]??=[]}function Jc(e){return e.cleanup??=[]}function Bf(e,t,n,r){let o=Kc(t);o.push(n),e.firstCreatePass&&Jc(e).push(r,o.length-1)}var B={lFrame:Xf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Sc=!1;function Hf(){return B.lFrame.elementDepthCount}function Uf(){B.lFrame.elementDepthCount++}function Xc(){B.lFrame.elementDepthCount--}function $f(){return B.bindingsEnabled}function zf(){return B.skipHydrationRootTNode!==null}function el(e){return B.skipHydrationRootTNode===e}function tl(){B.skipHydrationRootTNode=null}function j(){return B.lFrame.lView}function ue(){return B.lFrame.tView}function I(e){return B.lFrame.contextLView=e,e[de]}function M(e){return B.lFrame.contextLView=null,e}function Se(){let e=nl();for(;e!==null&&e.type===64;)e=e.parent;return e}function nl(){return B.lFrame.currentTNode}function Gf(){let e=B.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ar(e,t){let n=B.lFrame;n.currentTNode=e,n.isParent=t}function rl(){return B.lFrame.isParent}function Wf(){B.lFrame.isParent=!1}function ol(){return Sc}function po(e){let t=Sc;return Sc=e,t}function ms(){let e=B.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function il(){return B.lFrame.bindingIndex}function qf(e){return B.lFrame.bindingIndex=e}function dn(){return B.lFrame.bindingIndex++}function Eo(e){let t=B.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Zf(){return B.lFrame.inI18n}function Yf(e,t){let n=B.lFrame;n.bindingIndex=n.bindingRootIndex=e,ys(t)}function Qf(){return B.lFrame.currentDirectiveIndex}function ys(e){B.lFrame.currentDirectiveIndex=e}function Kf(e){let t=B.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function sl(){return B.lFrame.currentQueryIndex}function vs(e){B.lFrame.currentQueryIndex=e}function pv(e){let t=e[T];return t.type===2?t.declTNode:t.type===1?e[Ge]:null}function al(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=pv(i),o===null||(i=i[ln],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=B.lFrame=Jf();return r.currentTNode=t,r.lView=e,!0}function _s(e){let t=Jf(),n=e[T];B.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Jf(){let e=B.lFrame,t=e===null?null:e.child;return t===null?Xf(e):t}function Xf(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function ep(){let e=B.lFrame;return B.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var cl=ep;function Cs(){let e=ep();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function tp(e){return(B.lFrame.contextLView=Vf(e,B.lFrame.contextLView))[de]}function mt(){return B.lFrame.selectedIndex}function fn(e){B.lFrame.selectedIndex=e}function Or(){let e=B.lFrame;return ds(e.tView,e.selectedIndex)}function wo(){B.lFrame.currentNamespace=Wc}function So(){hv()}function hv(){B.lFrame.currentNamespace=null}function ll(){return B.lFrame.currentNamespace}var np=!0;function Ds(){return np}function bs(e){np=e}function xc(e,t=null,n=null,r){let o=rp(e,t,n,r);return o.resolveInjectorInitializers(),o}function rp(e,t=null,n=null,r,o=new Set){let i=[n||Pe,Tf(e)],s;return new Pn(i,t||wr(),s||null,o)}var ze=class e{static THROW_IF_NOT_FOUND=On;static NULL=new Cr;static create(t,n){if(Array.isArray(t))return xc({name:""},n,t,"");{let r=t.name??"";return xc({name:r},t.parent,t.providers,r)}}static \u0275prov=Q({token:e,providedIn:"any",factory:()=>H(Co)});static __NG_ELEMENT_ID__=-1},Ne=new O(""),Ke=class{static __NG_ELEMENT_ID__=gv;static __NG_ENV_ID__=t=>t},Qi=class extends Ke{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Un(this._lView)}onDestroy(t){let n=this._lView;return gs(n,t),()=>jf(n,t)}};function gv(){return new Qi(j())}var op=!1,ip=new O(""),zn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new co(!1);debugTaskTracker=D(ip,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Z(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=Q({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ic=class extends Ie{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,kf()&&(this.destroyRef=D(Ke,{optional:!0})??void 0,this.pendingTasks=D(zn,{optional:!0})??void 0)}emit(t){let n=k(null);try{super.next(t)}finally{k(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof De&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Te=Ic;function Ki(...e){}function ul(e){let t,n;function r(){e=Ki;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function sp(e){return queueMicrotask(()=>e()),()=>{e=Ki}}var dl="isAngularZone",ho=dl+"_ID",mv=0,_e=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Te(!1);onMicrotaskEmpty=new Te(!1);onStable=new Te(!1);onError=new Te(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=op}=t;if(typeof Zone>"u")throw new x(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,_v(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(dl)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new x(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new x(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,yv,Ki,Ki);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},yv={};function fl(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function vv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){ul(()=>{e.callbackScheduled=!1,Mc(e),e.isCheckStableRunning=!0,fl(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Mc(e)}function _v(e){let t=()=>{vv(e)},n=mv++;e._inner=e._inner.fork({name:"angular",properties:{[dl]:!0,[ho]:n,[ho+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Cv(c))return r.invokeTask(i,s,a,c);try{return _f(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Cf(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return _f(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Dv(c)&&t(),Cf(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Mc(e),fl(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Mc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function _f(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Cf(e){e._nesting--,fl(e)}var go=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Te;onMicrotaskEmpty=new Te;onStable=new Te;onError=new Te;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Cv(e){return ap(e,"__ignore_ng_zone__")}function Dv(e){return ap(e,"__scheduler_tick__")}function ap(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Mt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},pn=new O("",{factory:()=>{let e=D(_e),t=D(Fe),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Mt),n.handleError(r))})}}}),cp={provide:_o,useValue:()=>{let e=D(Mt,{optional:!0})},multi:!0};function L(e,t){let[n,r,o]=Ja(e,t?.equal),i=n,s=i[Ce];return i.set=r,i.update=o,i.asReadonly=lp.bind(i),i}function lp(){let e=this[Ce];if(e.readonlyFn===void 0){let t=()=>this();t[Ce]=e,e.readonlyFn=t}return e.readonlyFn}var xo=new O("",{factory:()=>bv}),bv="ng";var Es=new O(""),Io=new O("",{providedIn:"platform",factory:()=>"unknown"});var Mo=new O("",{factory:()=>D(Ne).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var To=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Ev}return e})();function Ev(){return new To(j(),Se())}var pt=class{},No=new O("",{factory:()=>!0});var pl=new O(""),ws=(()=>{class e{static \u0275prov=Q({token:e,providedIn:"root",factory:()=>new Tc})}return e})(),Tc=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},Ji=class{[Ce];constructor(t){this[Ce]=t}destroy(){this[Ce].destroy()}};function hl(e,t){let n=t?.injector??D(ze),r=t?.manualCleanup!==!0?n.get(Ke):null,o,i=n.get(To,null,{optional:!0}),s=n.get(pt);return i!==null?(o=dp(i.view,s,e),r instanceof Qi&&r._lView===i.view&&(r=null)):o=xv(e,n.get(ws),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Ji(o)}var up=W(V({},ec),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=po(!1);try{tc(this)}finally{po(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=k(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],k(e)}}}),wv=W(V({},up),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(xn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),Sv=W(V({},up),{consumerMarkedDirty(){this.view[F]|=8192,$n(this.view),this.notifier.notify(13)},destroy(){if(xn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[zt]?.delete(this)}});function dp(e,t,n){let r=Object.create(Sv);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=fp(r,n),e[zt]??=new Set,e[zt].add(r),r.consumerMarkedDirty(r),r}function xv(e,t,n){let r=Object.create(wv);return r.fn=fp(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function fp(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function kr(e){return typeof e=="function"&&e[Ce]!==void 0}function Ss(e){return kr(e)&&typeof e.set=="function"}var xs=(()=>{class e{internalPendingTasks=D(zn);scheduler=D(pt);errorHandler=D(pn);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r)}catch(o){this.errorHandler(o),r()}}static \u0275prov=Q({token:e,providedIn:"root",factory:()=>new e})}return e})();var Ys=Symbol("InputSignalNode#UNSET"),Gp=W(V({},so),{transformFn:void 0,applyValueToInputSignal(e,t){In(e,t)}});function $o(e){return{toString:e}.toString()}var q=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(q||{}),Os=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Wp(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var qp=null,Jn=(()=>{qp=pp;let e=()=>pp;return e.ngInherit=!0,e})();function jv(){return qp}function pp(e){return e.type.prototype.ngOnChanges&&(e.setInput=Hv),Bv}function Bv(){let e=Zp(this),t=e?.current;if(t){let n=e.previous;if(n===cn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Hv(e,t,n,r,o){let i=this.declaredInputs[r],s=Zp(e)||Uv(e,{previous:cn,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Os(l&&l.currentValue,n,c===cn),Wp(e,t,o,n)}var xl="__ngSimpleChanges__";function Zp(e){return Object.hasOwn(e,xl)&&e[xl]||null}function Uv(e,t){return e[xl]=t}var hp=[];var K=function(e,t=null,n){for(let r=0;r<hp.length;r++){let o=hp[r];o(e,t,n)}};function $v(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=jv()(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function zv(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:f}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),f!=null&&(e.destroyHooks??=[]).push(n,f)}}function Ms(e,t,n){Yp(e,t,3,n)}function Ts(e,t,n,r){(e[F]&3)===n&&Yp(e,t,n,r)}function gl(e,t){let n=e[F];(n&3)===t&&(n&=16383,n+=1,e[F]=n)}function Yp(e,t,n,r){let o=r!==void 0?e[Vn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Vn]+=65536),(a<i||i==-1)&&(Gv(e,n,t,c),e[Vn]=(e[Vn]&4294901760)+c+2),c++}function gp(e,t){K(q.LifecycleHookStart,e,t);let n=k(null);try{t.call(e)}finally{k(n),K(q.LifecycleHookEnd,e,t)}}function Gv(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[F]>>14<e[Vn]>>16&&(e[F]&3)===t&&(e[F]+=16384,gp(a,i)):gp(a,i)}var Pr=-1,qn=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function Wv(e){return(e.flags&8)!==0}function qv(e){return(e.flags&16)!==0}function Zv(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];Qv(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Yv(e){return e===3||e===4||e===6}function Qv(e){return e.charCodeAt(0)===64}function Fr(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?mp(e,n,o,null,t[++r]):mp(e,n,o,null,null))}}return e}function mp(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function Qp(e){return e!==Pr}function ks(e){return e&32767}function Kv(e){return e>>16}function Rs(e,t){let n=Kv(e),r=t;for(;n>0;)r=r[ln],n--;return r}var Il=!0;function Ps(e){let t=Il;return Il=e,t}var Jv=256,Kp=Jv-1,Jp=5,Xv=0,Pt={};function e0(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:Object.hasOwn(n,Fn)&&(r=n[Fn]),r==null&&(r=n[Fn]=Xv++);let o=r&Kp,i=1<<o;t.data[e+(o>>Jp)]|=i}function Fs(e,t){let n=Xp(e,t);if(n!==-1)return n;let r=t[T];r.firstCreatePass&&(e.injectorIndex=t.length,ml(r.data,e),ml(t,null),ml(r.blueprint,null));let o=tu(e,t),i=e.injectorIndex;if(Qp(o)){let s=ks(o),a=Rs(o,t),c=a[T].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function ml(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Xp(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function tu(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=oh(o),r===null)return Pr;if(n++,o=o[ln],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Pr}function Ml(e,t,n){e0(e,t,n)}function eh(e,t,n){if(n&8||e!==void 0)return e;os(t,"NodeInjector")}function th(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Tt],i=Re(void 0);try{return o?o.get(t,r,n&8):Fc(t,r,n&8)}finally{Re(i)}}return eh(r,t,n)}function nh(e,t,n,r=0,o){if(e!==null){if(t[F]&2048&&!(r&2)){let s=o0(e,t,n,r,Pt);if(s!==Pt)return s}let i=rh(e,t,n,r,Pt);if(i!==Pt)return i}return th(t,n,r,o)}function rh(e,t,n,r,o){let i=n0(n);if(typeof i=="function"){if(!al(t,e,r))return r&1?eh(o,n,r):th(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))os(n);else return s}finally{cl()}}else if(typeof i=="number"){let s=null,a=Xp(e,t),c=Pr,l=r&1?t[Je][Ge]:null;for((a===-1||r&4)&&(c=a===-1?tu(e,t):t[a+8],c===Pr||!vp(r,!1)?a=-1:(s=t[T],a=ks(c),t=Rs(c,t)));a!==-1;){let f=t[T];if(yp(i,a,f.data)){let g=t0(a,t,n,s,r,l);if(g!==Pt)return g}c=t[a+8],c!==Pr&&vp(r,t[T].data[a+8]===l)&&yp(i,a,t)?(s=f,a=ks(c),t=Rs(c,t)):a=-1}}return o}function t0(e,t,n,r,o,i){let s=t[T],a=s.data[e+8],c=r==null?Qt(a)&&Il:r!=s&&(a.type&3)!==0,l=o&1&&i===a,f=Ns(a,s,n,c,l);return f!==null?Po(t,s,f,a,o):Pt}function Ns(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,f=i>>20,g=r?a:a+f,y=o?a+f:l;for(let m=g;m<y;m++){let _=s[m];if(m<c&&n===_||m>=c&&_.type===n)return m}if(o){let m=s[c];if(m&&kt(m)&&m.type===n)return c}return null}function Po(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof qn){let a=i;if(a.resolving)throw Pc("");let c=Ps(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],f,g=a.injectImpl?Re(a.injectImpl):null,y=al(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&$v(n,s[n],t)}finally{g!==null&&Re(g),Ps(c),a.resolving=!1,cl()}}return i}function n0(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=Object.hasOwn(e,Fn)?e[Fn]:void 0;return typeof t=="number"?t>=0?t&Kp:r0:t}function yp(e,t,n){let r=1<<e;return!!(n[t+(e>>Jp)]&r)}function vp(e,t){return!(e&2)&&!(e&1&&t)}var hn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return nh(this._tNode,this._lView,t,kn(r),n)}};function r0(){return new hn(Se(),j())}function Ct(e){return $o(()=>{let t=e.prototype.constructor,n=t[fo]||Tl(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[fo]||Tl(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Tl(e){return Nc(e)?()=>{let t=Tl(Ee(e));return t&&t()}:an(e)}function o0(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[F]&2048&&!Tr(s);){let a=rh(i,s,n,r|2,Pt);if(a!==Pt)return a;r&=-5;let c=i.parent;if(!c){let l=s[$c];if(l){let f=l.get(n,Pt,r);if(f!==Pt)return f}c=oh(s),s=s[ln]}i=c}return o}function oh(e){let t=e[T],n=t.type;return n===2?t.declTNode:n===1?e[Ge]:null}function Kt(e){return{token:e.token,providedIn:e.autoProvided===!1?null:"root",factory:e.factory,value:void 0}}function i0(){return Br(Se(),j())}function Br(e,t){return new Dt(st(e,t))}var Dt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=i0}return e})();function s0(e){return e instanceof Dt?e.nativeElement:e}function a0(){return this._results[Symbol.iterator]()}var Ls=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Ie}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=If(t);(this._changesDetected=!xf(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=a0};function ih(e){return(e.flags&128)===128}var nu=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(nu||{}),sh=new Map,c0=0;function l0(){return c0++}function u0(e){sh.set(e[At],e)}function Nl(e){sh.delete(e[At])}var _p="__ngContext__";function Lr(e,t){Yt(t)?(e[_p]=t[At],u0(t)):e[_p]=t}function ah(e){return lh(e[Mr])}function ch(e){return lh(e[ot])}function lh(e){for(;e!==null&&!it(e);)e=e[ot];return e}var Al;function ru(e){Al=e}function uh(){if(Al!==void 0)return Al;if(typeof document<"u")return document;throw new x(210,!1)}var dh="r";var fh="di";var ph=!1,hh=new O("",{factory:()=>ph});var Cp=new WeakMap;function d0(e,t){if(e==null||typeof e!="object")return;let n=Cp.get(e);n||(n=new WeakSet,Cp.set(e,n)),n.add(t)}var f0=(e,t,n,r)=>{};function p0(e,t,n,r){f0(e,t,n,r)}function ou(e){return(e.flags&32)===32}var h0=()=>null;function gh(e,t,n=!1){return h0(e,t,n)}function mh(e,t){let n=e.contentQueries;if(n!==null){let r=k(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];vs(i),a.contentQueries(2,t[s],s)}}}finally{k(r)}}}function Ol(e,t,n){vs(0);let r=k(null);try{t(e,n)}finally{k(r)}}function yh(e,t,n){if(Gc(t)){let r=k(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{k(r)}}}var _t=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(_t||{});var Vs=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Xi})`}};function Fo(e){return e instanceof Vs?e.changingThisBreaksApplicationSecurity:e}function vh(e,t){let n=_h(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Xi})`)}return n===t}function _h(e){return e instanceof Vs&&e.getTypeName()||null}var g0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ch(e){return e=String(e),e.match(g0)?e:"unsafe:"+e}function m0(e,t){return e.createText(t)}function y0(e,t,n){e.setValue(t,n)}function Dh(e,t,n){return e.createElement(t,n)}function Gn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function bh(e,t,n){e.appendChild(t,n)}function Dp(e,t,n,r,o){r!==null?Gn(e,t,n,r,o):bh(e,t,n)}function Eh(e,t,n,r){e.removeChild(null,t,n,r)}function v0(e,t,n){e.setAttribute(t,"style",n)}function _0(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function wh(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Zv(e,t,r),o!==null&&_0(e,t,o),i!==null&&v0(e,t,i)}function Qs(e){let t=C0();return t?t.sanitize(us.URL,e)||"":vh(e,"URL")?Fo(e):Ch(Zt(e))}function C0(){let e=j();return e&&e[gt].sanitizer}function D0(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Sh="ng-template";function b0(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&D0(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(iu(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function iu(e){return e.type===4&&e.value!==Sh}function E0(e,t,n){let r=e.type===4&&!n?Sh:e.value;return t===r}function w0(e,t,n){let r=4,o=e.attrs,i=o!==null?I0(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!yt(r)&&!yt(c))return!1;if(s&&yt(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!E0(e,c,n)||c===""&&t.length===1){if(yt(r))return!1;s=!0}}else if(r&8){if(o===null||!b0(e,o,c,n)){if(yt(r))return!1;s=!0}}else{let l=t[++a],f=S0(c,o,iu(e),n);if(f===-1){if(yt(r))return!1;s=!0;continue}if(l!==""){let g;if(f>i?g="":g=o[f+1].toLowerCase(),r&2&&l!==g){if(yt(r))return!1;s=!0}}}}return yt(r)||s}function yt(e){return(e&1)===0}function S0(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return M0(t,e)}function x0(e,t,n=!1){for(let r=0;r<t.length;r++)if(w0(e,t[r],n))return!0;return!1}function I0(e){for(let t=0;t<e.length;t++){let n=e[t];if(Yv(n))return t}return e.length}function M0(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function bp(e,t){return e?":not("+t.trim()+")":t}function T0(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!yt(s)&&(t+=bp(i,o),o=""),r=s,i=i||!yt(r);n++}return o!==""&&(t+=bp(i,o)),t}function N0(e){return e.map(T0).join(",")}function A0(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!yt(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var xe={},Ft=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Ft||{}),O0;function su(e,t){return O0(e,t)}var gn=new Set;var tA=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var kl=new WeakMap;function xh(e){return e?e[ln]??e:null}var Oo=new WeakSet;function k0(e,t,n){let r=kl.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=xh(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:l}=r[a],f=c.parentNode;c===t?(r.splice(a,1),Oo.add(c),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):i&&c===i?(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),c.parentNode?.removeChild(c)):f&&o&&f!==o&&(s===null||l===null||s===l)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),c.parentNode?.removeChild(c))}}function R0(e,t,n){let r=xh(n),o=kl.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):kl.set(e,[{el:t,declarationView:r}])}var Ks=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Ks||{}),Jt=new O(""),Ep=new Set;function Xt(e){Ep.has(e)||(Ep.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var au=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=Q({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ih=[0,1,2,3],Mh=(()=>{class e{ngZone=D(_e);scheduler=D(pt);errorHandler=D(Mt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){D(Jt,{optional:!0})}execute(){let n=this.sequences.size>0;n&&K(q.AfterRenderHooksStart),this.executing=!0;for(let r of Ih)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&K(q.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[jn]??=[]).push(n),$n(r),r[F]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(Ks.AFTER_NEXT_RENDER,n):n()}static \u0275prov=Q({token:e,providedIn:"root",factory:()=>new e})}return e})(),js=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[jn];t&&(this.view[jn]=t.filter(n=>n!==this))}};function cu(e,t){let n=t?.injector??D(ze);return Xt("NgAfterNextRender"),F0(e,n,t,!0)}function P0(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function F0(e,t,n,r){let o=t.get(au);o.impl??=t.get(Mh);let i=t.get(Jt,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(Ke):null,a=t.get(To,null,{optional:!0}),c=new js(o.impl,P0(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var lu=new O("",{factory:()=>{let e=D(Fe),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:!1,scheduler:null,injector:e}}});function Th(e,t,n){let r=e.get(lu);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function L0(e,t){let n=e.get(lu);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t)}function V0(e,t){let n=e.get(lu);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function j0(e,t){for(let[n,r]of t)Th(e,r.animateFns)}function wp(e,t,n,r){let o=e?.[Ot]?.enter;t!==null&&o&&o.has(n.index)&&j0(r,o)}function Sp(e,t,n,r){try{n.get(Co)}catch{return r(!1)}let o=e?.[Ot];o?.enter?.has(t.index)&&L0(n,o.enter.get(t.index).animateFns);let i=B0(e,t,o);if(i.size===0){let s=!1;if(e){let a=[];Js(e,t,a),s=a.length>0}if(!s)return r(!1)}e&&gn.add(e[At]),Th(n,()=>H0(e,t,o||void 0,i,r),o||void 0)}function B0(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[T].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent}}return r}function H0(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:l}=c();i.push(l)}n.detachedLeaveAnimationFns=void 0}if(e&&Js(e,t,i),i.length>0){let s=n||e?.[Ot];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),$0(e,s.running,o)}else Promise.allSettled(i).then(()=>{e&&gn.delete(e[At]),o(!0)})}else e&&gn.delete(e[At]),o(!1)}function Js(e,t,n){if(t.type&12){let o=e[t.index];if(it(o))for(let i=le;i<o.length;i++){let s=o[i];s[T].type===2&&U0(s,n)}}let r=t.child;for(;r;)Js(e,r,n),r=r.next}function U0(e,t){let n=e[Ot];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s)}let r=e[T].firstChild;for(;r;)Js(e,r,t),r=r.next}function $0(e,t,n){t.then(()=>{e[Ot]?.running===t&&(e[Ot].running=void 0,gn.delete(e[At])),n(!0)})}function Rr(e,t,n,r,o,i,s,a){if(o!=null){let c,l=!1;it(o)?c=o:Yt(o)&&(l=!0,o=o[ht]);let f=we(o);e===0&&r!==null?(wp(a,r,i,n),s==null?bh(t,r,f):Gn(t,r,f,s||null,!0)):e===1&&r!==null?(wp(a,r,i,n),Gn(t,r,f,s||null,!0),k0(i,f,a)):e===2?(a?.[Ot]?.leave?.has(i.index)&&R0(i,f,a),Oo.delete(f),Sp(a,i,n,g=>{if(Oo.has(f)){Oo.delete(f);return}Eh(t,f,l,g)})):e===3&&(Oo.delete(f),Sp(a,i,n,()=>{t.destroyNode(f)})),c!=null&&n_(t,e,n,c,i,r,s)}}function z0(e,t){Nh(e,t),t[ht]=null,t[Ge]=null}function G0(e,t,n,r,o,i){r[ht]=o,r[Ge]=t,ea(e,r,n,1,o,i)}function Nh(e,t){t[gt].changeDetectionScheduler?.notify(9),ea(e,t,t[ie],2,null,null)}function W0(e){let t=e[Mr];if(!t)return yl(e[T],e);for(;t;){let n=null;if(Yt(t))n=t[Mr];else{let r=t[le];r&&(n=r)}if(!n){for(;t&&!t[ot]&&t!==e;)Yt(t)&&yl(t[T],t),t=t[ye];t===null&&(t=e),Yt(t)&&yl(t[T],t),n=t&&t[ot]}t=n}}function uu(e,t){let n=e[Hn],r=n.indexOf(t);n.splice(r,1)}function Xs(e,t){if(Un(t))return;let n=t[ie];n.destroyNode&&ea(e,t,n,3,null,null),W0(t)}function yl(e,t){if(Un(t))return;let n=k(null);try{t[F]&=-129,t[F]|=256,t[Xe]&&xn(t[Xe]),Z0(e,t),q0(e,t),t[T].type===1&&t[ie].destroy();let r=t[un];if(r!==null&&it(t[ye])){r!==t[ye]&&uu(r,t);let o=t[Nt];o!==null&&o.detachView(e)}Nl(t)}finally{k(n)}}function q0(e,t){let n=e.cleanup,r=t[Ir];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Ir]=null);let o=t[$t];if(o!==null){t[$t]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[zt];if(i!==null){t[zt]=null;for(let s of i)s.destroy()}}function Z0(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof qn)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];K(q.LifecycleHookStart,a,c);try{c.call(a)}finally{K(q.LifecycleHookEnd,a,c)}}else{K(q.LifecycleHookStart,o,i);try{i.call(o)}finally{K(q.LifecycleHookEnd,o,i)}}}}}function Y0(e,t,n){if(t===null)throw new x(510,!1);return Q0(e,t.parent,n)}function Q0(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[ht];if(Qt(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===_t.None||o===_t.Emulated)return null}return st(r,n)}function K0(e,t,n){return X0(e,t,n)}function J0(e,t,n){return e.type&40?st(e,n):null}var X0=J0,xp;function du(e,t,n,r){let o=Y0(e,r,t),i=t[ie],s=r.parent||t[Ge],a=K0(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Dp(i,o,n[c],a,!1);else Dp(i,o,n,a,!1);xp!==void 0&&xp(i,r,t,n,o)}function ko(e,t){if(t!==null){let n=t.type;if(n&3)return st(t,e);if(n&4)return Rl(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return ko(e,r);{let o=e[t.index];return it(o)?Rl(-1,o):we(o)}}else{if(n&128)return ko(e,t.next);if(n&32)return su(t,e)()||we(e[t.index]);{let r=Ah(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Gt(e[Je]);return ko(o,r)}else return ko(e,t.next)}}}return null}function Ah(e,t){if(t!==null){let r=e[Je][Ge],o=t.projection;return r.projection[o]}return null}function Rl(e,t){let n=le+e+1;if(n<t.length){let r=t[n],o=r[T].firstChild;if(o!==null)return ko(r,o)}return t[Bn]}function fu(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Tt];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&t===0&&(c&&Lr(we(c),r),n.flags|=2),!ou(n))if(l&8)fu(e,t,n.child,r,o,i,!1),Rr(t,e,a,o,c,n,i,r);else if(l&32){let f=su(n,r),g;for(;g=f();)Rr(t,e,a,o,g,n,i,r);Rr(t,e,a,o,c,n,i,r)}else l&16?t_(e,t,r,n,o,i):Rr(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function ea(e,t,n,r,o,i){e.type===3?e_(n,r,t,o,i):fu(n,r,e.firstChild,t,o,i,!1)}function e_(e,t,n,r,o){let s=n[T].firstChild,a=s.next,c=we(n[s.index]),l=we(n[a.index]),f=a.index+1,g=n[f];if(t===1||t===0)r!==null&&(g&&g.hasChildNodes()?Gn(e,r,g,o,!0):(Gn(e,r,c,o,!0),Gn(e,r,l,o,!0)));else if(t===2){if(g||(g=document.createDocumentFragment(),n[f]=g),c&&c.parentNode===g)return;let y=c;for(;y!==null;){let m=y.nextSibling;if(g.appendChild(y),y===l)break;y=m}}}function t_(e,t,n,r,o,i){let s=n[Je],c=s[Ge].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let f=c[l];Rr(t,e,n[Tt],o,f,r,i,n)}else{let l=c,f=s[ye];ih(r)&&(l.flags|=128),fu(e,t,l,f,o,i,!0)}}function n_(e,t,n,r,o,i,s){let a=r[Bn],c=we(r);if(a!==c&&Rr(t,e,n,i,a,o,s),(r[F]&4)===0)for(let l=le;l<r.length;l++){let f=r[l];ea(f[T],f,e,t,i,a)}}function r_(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Ft.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Ft.Important),e.setStyle(n,r,o,i))}}function pu(e,t,n,r,o,i,s,a,c,l,f){let g=ge+r,y=g+o,m=o_(g,y),_=typeof l=="function"?l():l;return m[T]={type:e,blueprint:m,template:n,queries:null,viewQuery:a,declTNode:t,data:m.slice().fill(null,g),bindingStartIndex:g,expandoStartIndex:y,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:_,incompleteFirstPass:!1,ssrId:f}}function o_(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:xe);return n}function i_(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=pu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function hu(e,t,n,r,o,i,s,a,c,l,f){let g=t.blueprint.slice();return g[ht]=o,g[F]=r|4|128|8|64|1024,(l!==null||e&&e[F]&2048)&&(g[F]|=2048),Qc(g),g[ye]=g[ln]=e,g[de]=n,g[gt]=s||e&&e[gt],g[ie]=a||e&&e[ie],g[Tt]=c||e&&e[Tt]||null,g[Ge]=i,g[At]=l0(),g[xr]=f,g[$c]=l,g[Je]=t.type==2?e[Je]:g,g}function s_(e,t,n){let r=st(t,e),o=i_(n),i=e[gt].rendererFactory,s=gu(e,hu(e,o,null,Oh(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Oh(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function kh(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function gu(e,t){return e[Mr]?e[Uc][ot]=t:e[Mr]=t,e[Uc]=t,t}function h(e=1){Rh(ue(),j(),mt()+e,!1)}function Rh(e,t,n,r){if(!r)if((t[F]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ms(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Ts(t,i,0,n)}fn(n)}var zo=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(zo||{});function Zn(e,t,n,r){let o=k(null);try{let[i,s,a]=e.inputs[n],c=null;(s&zo.SignalBased)!==0&&(c=t[i][Ce]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Wp(t,c,i,r)}finally{k(o)}}function Ph(e,t,n,r,o){let i=mt(),s=r&2;try{fn(-1),s&&t.length>ge&&Rh(e,t,ge,!1);let a=s?q.TemplateUpdateStart:q.TemplateCreateStart;K(a,o,n),n(r,o)}finally{fn(i);let a=s?q.TemplateUpdateEnd:q.TemplateCreateEnd;K(a,o,n)}}function Fh(e,t,n){f_(e,t,n),(n.flags&64)===64&&p_(e,t,n)}function mu(e,t,n=st){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function a_(e,t,n,r){let i=r.get(hh,ph)||n===_t.ShadowDom||n===_t.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return c_(s),s}function c_(e){l_(e)}var l_=()=>null;function u_(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Lh(e,t,n,r,o,i){let s=t[T];if(yu(e,s,t,n,r)){Qt(e)&&d_(t,e.index);return}e.type&3&&(n=u_(n)),Vh(e,t,n,r,o,i)}function Vh(e,t,n,r,o,i){if(e.type&3){let s=st(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function d_(e,t){let n=at(t,e);n[F]&16||(n[F]|=64)}function f_(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Qt(n)&&s_(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Fs(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Po(t,e,s,n);if(Lr(c,t),i!==null&&v_(t,s-r,c,a,n,i),kt(a)){let l=at(n.index,t);l[de]=Po(t,e,s,n)}}}function p_(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Qf();try{fn(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];ys(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&h_(c,l)}}finally{fn(-1),ys(s)}}function h_(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function g_(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];x0(t,i.selectors,!1)&&(r??=[],kt(i)?r.unshift(i):r.push(i))}return r}function m_(e,t,n,r,o,i){let s=st(e,t);y_(t[ie],s,i,e.value,n,r,o)}function y_(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else{let a=s==null?Zt(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function v_(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];Zn(r,n,c,l)}}function jh(e,t,n,r,o){let i=ge+n,s=t[T],a=o(s,t,e,r,n);t[i]=a,Ar(e,!0);let c=e.type===2;return c?(wh(t[ie],a,e),(Hf()===0||ls(e))&&Lr(a,t),Uf()):Lr(a,t),Ds()&&(!c||!ou(e))&&du(s,t,a,e),e}function Bh(e){let t=e;return rl()?Wf():(t=t.parent,Ar(t,!1)),t}function __(e,t){let n=e[Tt];if(!n)return;let r;try{r=n.get(pn,null)}catch{r=null}r?.(t)}function yu(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],f=s[c+1],g=t.data[l];Zn(g,n[l],f,o),a=!0}if(i)for(let c of i){let l=n[c],f=t.data[c];Zn(f,l,r,o),a=!0}return a}function C_(e,t,n,r,o,i){let s=null,a=null,c=null,l=!1,f=e.directiveToIndex.get(r.type);if(typeof f=="number"?s=f:[s,a,c]=f,a!==null&&c!==null&&e.hostDirectiveInputs&&Object.hasOwn(e.hostDirectiveInputs,o)){let g=e.hostDirectiveInputs[o];for(let y=0;y<g.length;y+=2){let m=g[y];if(m>=a&&m<=c){let _=t.data[m],w=g[y+1];Zn(_,n[m],w,i),l=!0}else if(m>c)break}}return s!==null&&Object.hasOwn(r.inputs,o)&&(Zn(r,n[s],o,i),l=!0),l}function D_(e,t){let n=at(t,e),r=n[T];b_(r,n);let o=n[ht];o!==null&&n[xr]===null&&(n[xr]=gh(o,n[Tt])),K(q.ComponentStart);try{vu(r,n,n[de])}finally{K(q.ComponentEnd,n[de])}}function b_(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function vu(e,t,n){_s(t);try{let r=e.viewQuery;r!==null&&Ol(1,r,n);let o=e.template;o!==null&&Ph(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Nt]?.finishViewCreation(e),e.staticContentQueries&&mh(e,t),e.staticViewQueries&&Ol(2,e.viewQuery,n);let i=e.components;i!==null&&E_(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[F]&=-5,Cs()}}function E_(e,t){for(let n=0;n<t.length;n++)D_(e,t[n])}function ta(e,t,n,r){let o=k(null);try{let i=t.tView,a=e[F]&4096?4096:16,c=hu(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[un]=l;let f=e[Nt];return f!==null&&(c[Nt]=f.createEmbeddedView(i)),vu(i,c,n),c}finally{k(o)}}function Lo(e,t){return!t||t.firstChild===null||ih(e)}function Vo(e,t,n,r,o=!1){if(e.type===3){let i=e.firstChild,s=i.next,a=we(t[i.index]),c=we(t[s.index]),l=a;for(;l!==null&&(r.push(l),l!==c);)l=l.nextSibling;return r}for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];if(i!==null)if(it(i)){let a=i[Bn];a!==i[ht]&&r.push(we(i)),i[F]&4||Hh(i,r),r.push(a)}else r.push(we(i));let s=n.type;if(s&8)Vo(e,t,n.child,r);else if(s&32){let a=su(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Ah(t,n);if(Array.isArray(a))r.push(...a);else{let c=Gt(t[Je]);Vo(c[T],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Hh(e,t){for(let n=le;n<e.length;n++){let r=e[n],o=r[T].firstChild;o!==null&&Vo(r[T],r,o,t)}}function Uh(e){if(e[jn]!==null){for(let t of e[jn])t.impl.addSequence(t);e[jn].length=0}}var $h=[];function w_(e){return e[Xe]??S_(e)}function S_(e){let t=$h.pop()??Object.create(I_);return t.lView=e,t}function x_(e){e.lView[Xe]!==e&&(e.lView=null,$h.push(e))}var I_=W(V({},wn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{$n(e.lView)},consumerOnSignalRead(){this.lView[Xe]=this}});function M_(e){let t=e[Xe]??Object.create(T_);return t.lView=e,t}var T_=W(V({},wn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Gt(e.lView);for(;t&&!zh(t[T]);)t=Gt(t);t&&ps(t)},consumerOnSignalRead(){this.lView[Xe]=this}});function zh(e){return e.type!==2}function Gh(e){if(e[zt]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[zt])if(r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()),e[zt]===null))return;t=n&&!!(e[F]&8192)}}var N_=100;function Wh(e,t=0){let r=e[gt].rendererFactory,o=!1;o||r.begin?.();try{A_(e,t)}finally{o||r.end?.()}}function A_(e,t){let n=ol();try{po(!0),Pl(e,t);let r=0;for(;Nr(e);){if(r===N_)throw new x(103,!1);r++,Pl(e,1)}}finally{po(n)}}function O_(e,t,n,r){if(Un(t))return;let o=t[F],i=!1,s=!1;_s(t);let a=!0,c=null,l=null;i||(zh(e)?(l=w_(t),c=Sn(l)):Di()===null?(a=!1,l=M_(t),c=Sn(l)):t[Xe]&&(xn(t[Xe]),t[Xe]=null));try{Qc(t),qf(e.bindingStartIndex),n!==null&&Ph(e,t,n,2,r);let f=(o&3)===3;if(!i)if(f){let m=e.preOrderCheckHooks;m!==null&&Ms(t,m,null)}else{let m=e.preOrderHooks;m!==null&&Ts(t,m,0,null),gl(t,0)}if(s||k_(t),Gh(t),qh(t,0),e.contentQueries!==null&&mh(e,t),!i)if(f){let m=e.contentCheckHooks;m!==null&&Ms(t,m)}else{let m=e.contentHooks;m!==null&&Ts(t,m,1),gl(t,1)}P_(e,t);let g=e.components;g!==null&&Yh(t,g,0);let y=e.viewQuery;if(y!==null&&Ol(2,y,r),!i)if(f){let m=e.viewCheckHooks;m!==null&&Ms(t,m)}else{let m=e.viewHooks;m!==null&&Ts(t,m,2),gl(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[cs]){for(let m of t[cs])m();t[cs]=null}i||(Uh(t),t[F]&=-73)}catch(f){throw i||$n(t),f}finally{l!==null&&(dr(l,c),a&&x_(l)),Cs()}}function qh(e,t){for(let n=ah(e);n!==null;n=ch(n))for(let r=le;r<n.length;r++){let o=n[r];Zh(o,t)}}function k_(e){for(let t=ah(e);t!==null;t=ch(t)){if(!(t[F]&2))continue;let n=t[Hn];for(let r=0;r<n.length;r++){let o=n[r];ps(o)}}}function R_(e,t,n){K(q.ComponentStart);let r=at(t,e);try{Zh(r,n)}finally{K(q.ComponentEnd,r[de])}}function Zh(e,t){fs(e)&&Pl(e,t)}function Pl(e,t){let r=e[T],o=e[F],i=e[Xe],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&io(i)),s||=!1,i&&(i.dirty=!1),e[F]&=-9217,s)O_(r,e,r.template,e[de]);else if(o&8192){let a=k(null);try{Gh(e),qh(e,1);let c=r.components;c!==null&&Yh(e,c,1),Uh(e)}finally{k(a)}}}function Yh(e,t,n){for(let r=0;r<t.length;r++)R_(e,t[r],n)}function P_(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)fn(~o);else{let i=o,s=n[++r],a=n[++r];Yf(s,i);let c=t[i];K(q.HostBindingsUpdateStart,c);try{a(2,c)}finally{K(q.HostBindingsUpdateEnd,c)}}}}finally{fn(-1)}}function _u(e,t){let n=ol()?64:1088;for(e[gt].changeDetectionScheduler?.notify(t);e;){e[F]|=n;let r=Gt(e);if(Tr(e)&&!r)return e;e=r}return null}function Qh(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Kh(e,t){let n=le+t;if(n<e.length)return e[n]}function na(e,t,n,r=!0){let o=t[T];if(F_(o,t,e,n),r){let s=Rl(n,e),a=t[ie],c=a.parentNode(e[Bn]);c!==null&&G0(o,e[Ge],a,t,c,s)}let i=t[xr];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Jh(e,t){let n=jo(e,t);return n!==void 0&&Xs(n[T],n),n}function jo(e,t){if(e.length<=le)return;let n=le+t,r=e[n];if(r){let o=r[un];o!==null&&o!==e&&uu(o,r),t>0&&(e[n-1][ot]=r[ot]);let i=vo(e,le+t);z0(r[T],r);let s=i[Nt];s!==null&&s.detachView(i[T]),r[ye]=null,r[ot]=null,r[F]&=-129}return r}function F_(e,t,n,r){let o=le+r,i=n.length;r>0&&(n[o-1][ot]=t),r<i-le?(t[ot]=n[o],Lc(n,le+r,t)):(n.push(t),t[ot]=null),t[ye]=n;let s=t[un];s!==null&&n!==s&&Xh(s,t);let a=t[Nt];a!==null&&a.insertView(e),hs(t),t[F]|=128}function Xh(e,t){let n=e[Hn],r=t[ye];if(Yt(r))e[F]|=2;else{let o=r[ye][Je];t[Je]!==o&&(e[F]|=2)}n===null?e[Hn]=[t]:n.push(t)}var mn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[T];return Vo(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[de]}set context(t){this._lView[de]=t}get destroyed(){return Un(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ye];if(it(t)){let n=t[bo],r=n?n.indexOf(this):-1;r>-1&&(jo(t,r),vo(n,r))}this._attachedToViewContainer=!1}Xs(this._lView[T],this._lView)}onDestroy(t){gs(this._lView,t)}markForCheck(){_u(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[F]&=-129}reattach(){hs(this._lView),this._lView[F]|=128}detectChanges(){this._lView[F]|=1024,Wh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new x(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Tr(this._lView),n=this._lView[un];n!==null&&!t&&uu(n,this._lView),Nh(this._lView[T],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new x(902,!1);this._appRef=t;let n=Tr(this._lView),r=this._lView[un];r!==null&&!n&&Xh(r,this._lView),hs(this._lView)}};function Cu(e){return Nr(e._lView)||!!(e._lView[F]&64)}function Du(e){ps(e._lView)}var Vr=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=L_;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=ta(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new mn(i)}}return e})();function L_(){return bu(Se(),j())}function bu(e,t){return e.type&4?new Vr(t,e,Br(e,t)):null}function ra(e,t,n,r,o){let i=e.data[t];if(i===null)i=V_(e,t,n,r,o),Zf()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Gf();i.injectorIndex=s===null?-1:s.injectorIndex}return Ar(i,!0),i}function V_(e,t,n,r,o){let i=nl(),s=rl(),a=s?i:i&&i.parent,c=e.data[t]=B_(e,a,n,t,r,o);return j_(e,c,i,s),c}function j_(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function B_(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return zf()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:ll(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function H_(e){let t=e[zc]??[],r=e[ye][ie],o=[];for(let i of t)i.data[fh]!==void 0?o.push(i):U_(i,r);e[zc]=o}function U_(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[dh];for(;n<o;){let i=r.nextSibling;Eh(t,r,!1),r=i,n++}}}var $_=()=>null,z_=()=>null;function Fl(e,t){return $_(e,t)}function eg(e,t,n){return z_(e,t,n)}var tg=class{},Yn=class{},Lt=class{destroyNode=null;static __NG_ELEMENT_ID__=()=>G_()};function G_(){let e=j(),t=Se(),n=at(t.index,e);return(Yt(n)?n:e)[ie]}var ng=(()=>{class e{static \u0275prov=Q({token:e,providedIn:"root",factory:()=>null})}return e})();function rg(e){return e.debugInfo?.className||e.type.name||null}var As={},Bs=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,As,r);return o!==As||n===As?o:this.parentInjector.get(t,n,r)}};function Eu(e,t,n){return e[t]=n}function W_(e,t){return e[t]}function et(e,t,n){if(n===xe)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function wu(e,t,n,r){let o=et(e,t,n);return et(e,t+1,r)||o}function q_(e,t,n,r,o){let i=wu(e,t,n,r);return et(e,t+2,o)||i}function Wn(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&d0(o,i);let s=Qt(e)?at(e.index,t):t;_u(s,5);let a=t[de],c=Ip(t,a,n,o),l=r.__ngNextListenerFn__;for(;l;)c=Ip(t,a,l,o)&&c,l=l.__ngNextListenerFn__;return c}}function Ip(e,t,n,r){let o=k(null);try{return K(q.OutputStart,t,n),n(r)!==!1}catch(i){return __(e,i),!1}finally{K(q.OutputEnd,t,n),k(o)}}function Su(e,t,n,r,o,i,s,a){let c=ls(e),l=!1,f=null;if(!r&&c&&(f=Y_(t,n,i,e.index)),f!==null){let g=f.__ngLastListenerFn__||f;g.__ngNextListenerFn__=s,f.__ngLastListenerFn__=s,l=!0}else{let g=st(e,n),y=r?r(g):g;p0(n,y,i,a),r||(a.__ngNativeEl__=g);let m=o.listen(y,i,a);if(!Z_(i)){let _=r?w=>r(we(w[e.index])):e.index;og(_,t,n,i,a,m,!1)}}return l}function Z_(e){return e.startsWith("animation")||e.startsWith("transition")}function Y_(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Ir],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function og(e,t,n,r,o,i,s){let a=t.firstCreatePass?Jc(t):null,c=Kc(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function Mp(e,t,n,r,o){let i=null,s=null,a=null,c=!1,l=e.directiveToIndex.get(n.type);if(typeof l=="number"?i=l:[i,s,a]=l,s!==null&&a!==null&&e.hostDirectiveOutputs&&Object.hasOwn(e.hostDirectiveOutputs,r)){let f=e.hostDirectiveOutputs[r];for(let g=0;g<f.length;g+=2){let y=f[g];if(y>=s&&y<=a)c=!0,Hs(e,t,y,f[g+1],r,o);else if(y>a)break}}return Object.hasOwn(n.outputs,r)&&(c=!0,Hs(e,t,i,r,r,o)),c}function Hs(e,t,n,r,o,i){let s=t[n],a=t[T],l=a.data[n].outputs[r],g=s[l].subscribe(i);og(e.index,a,t,o,i,g,!0)}function $(){Q_()}function Q_(){let e=j(),t=ue(),n=Se();if(t.firstCreatePass&&J_(t,n),n.controlDirectiveIndex===-1)return;Xt("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new Us(e,t,n))}function z(){K_()}function K_(){let e=j(),t=ue(),n=Or();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new Us(e,t,n))}var Us=class{lView;tView;tNode;hasPassThrough;constructor(t,n,r){this.lView=t,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096)}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return st(this.tNode,this.lView)}get descriptor(){return`<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];Mp(this.tNode,this.lView,r,t,Wn(this.tNode,this.lView,n))}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];Mp(this.tNode,this.lView,r,n,Wn(this.tNode,this.lView,t))}listenToDom(t,n){Su(this.tNode,this.tView,this.lView,void 0,this.lView[ie],t,n,Wn(this.tNode,this.lView,n))}setInputOnDirectives(t,n,r){let o=this.tNode.inputs?.[t],i=this.tNode.hostDirectiveInputs?.[t];if(!o&&!i)return!1;let s=!1;if(o)for(let a of o){if(a===this.tNode.controlDirectiveIndex)continue;let c=this.lView[a],l=this.tView.data[a];(!r||r(Np(c,l,t)))&&(Zn(l,c,t,n),s=!0)}if(i)for(let a=0;a<i.length;a+=2){let c=i[a];if(c===this.tNode.controlDirectiveIndex)continue;let l=this.lView[c],f=i[a+1],g=this.tView.data[c];(!r||r(Np(l,g,t)))&&(Zn(g,l,f,n),s=!0)}return s}setCustomControlModelInput(t){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";C_(this.tNode,this.tView,this.lView,n,r,t)}customControlHasInput(t){if(this.tNode.customControlIndex===-1)return!1;let n=this.tView.data[this.tNode.customControlIndex];return(n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[t]===!0}_buildCustomControlInputCache(t){let n={};for(let r in t.inputs)n[r]=!0;if(t.hostDirectives!==null){let r=[...t.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=!0;let i=Tp(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i=="function")continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let c=i.inputs[a+1]||i.inputs[a];n[c]=!0}let s=Tp(i.directive);s!==null&&r.push(...s)}}}return n}};function Tp(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function Np(e,t,n){if(!t.inputs||!Object.hasOwn(t.inputs,n))return;let[r,o]=t.inputs[n];if((o&zo.SignalBased)!==0){let s=e[r][Ce];return s.value===Ys?void 0:s.value}return e[r]}function J_(e,t,n){for(let o=t.directiveStart;o<t.directiveEnd;o++)if(e.data[o].controlDef){t.controlDirectiveIndex=o;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}X_(e,t)}function X_(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(!(t.directiveToIndex&&!t.directiveToIndex.has(r.type))){if(Ap(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(Ap(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let n=(r,o)=>{let i=t.hostDirectiveInputs[r],s=t.hostDirectiveOutputs[r+"Change"];if(!i||!s)return!1;for(let a=0;a<i.length;a+=2){let c=i[a];for(let l=0;l<s.length;l+=2){let f=s[l];if(c===f)for(let g of t.directiveToIndex.values()){if(!Array.isArray(g))continue;let[y,m,_]=g;if(c>=m&&c<=_)return t.flags|=o,t.customControlIndex=y,!0}}}return!1};if(n("value",1024)||n("checked",2048))return}}function Ap(e,t){return eC(e,t)&&tC(e,t+"Change")}function eC(e,t){return t in e.inputs}function tC(e,t){return t in e.outputs}var Ll=Symbol("BINDING");var Xn=new O("");function $s(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=ts(o,a);else if(i==2){let c=a,l=t[++s];r=ts(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Y(e,t=0){let n=j();if(n===null)return H(e,t);let r=Se();return nh(r,n,Ee(e),t)}function nC(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,l=null;for(let f of s)if(f.resolveHostDirectives!==null){[a,c,l]=f.resolveHostDirectives(s);break}iC(e,t,n,a,i,c,l)}i!==null&&r!==null&&rC(n,r,i)}function rC(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new x(-301,!1);r.push(t[o],i)}}function oC(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function iC(e,t,n,r,o,i,s){let a=r.length,c=null;for(let y=0;y<a;y++){let m=r[y];c===null&&kt(m)&&(c=m,oC(e,n,y)),Ml(Fs(n,t),e,m.type)}dC(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let y=0;y<a;y++){let m=r[y];m.providersResolver&&m.providersResolver(m)}let l=!1,f=!1,g=kh(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let y=0;y<a;y++){let m=r[y];if(n.mergedAttrs=Fr(n.mergedAttrs,m.hostAttrs),aC(e,n,t,g,m),uC(g,m,o),s!==null&&s.has(m)){let[w,A]=s.get(m);n.directiveToIndex.set(m.type,[g,w+n.directiveStart,A+n.directiveStart])}else(i===null||!i.has(m))&&n.directiveToIndex.set(m.type,g);m.contentQueries!==null&&(n.flags|=4),(m.hostBindings!==null||m.hostAttrs!==null||m.hostVars!==0)&&(n.flags|=64);let _=m.type.prototype;!l&&(_.ngOnChanges||_.ngOnInit||_.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!f&&(_.ngOnChanges||_.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),f=!0),g++}sC(e,n,i)}function sC(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Op(0,t,o,r),Op(1,t,o,r),Rp(t,r,!1);else{let i=n.get(o);kp(0,t,i,r),kp(1,t,i,r),Rp(t,r,!0)}}}function Op(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(Object.hasOwn(o,i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),ig(t,i)}}function kp(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(Object.hasOwn(o,i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),ig(t,s)}}function ig(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Rp(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||iu(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&Object.hasOwn(o,c)){let l=o[c];for(let f of l)if(f===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&Object.hasOwn(i,c)){let l=i[c];for(let f=0;f<l.length;f+=2)if(l[f]===t){s??=[],s.push(l[f+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function aC(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=an(o.type,!0)),s=new qn(i,kt(o),Y,null);e.blueprint[r]=s,n[r]=s,cC(e,t,r,kh(e,n,o.hostVars,xe),o)}function cC(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;lC(s)!=a&&s.push(a),s.push(n,r,i)}}function lC(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function uC(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;kt(t)&&(n[""]=e)}}function dC(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function sg(e,t,n,r,o,i,s,a){let c=t[T],l=c.consts,f=Rt(l,s),g=ra(c,e,n,r,f);return i&&nC(c,t,g,Rt(l,a),o),g.mergedAttrs=Fr(g.mergedAttrs,g.attrs),g.attrs!==null&&$s(g,g.attrs,!1),g.mergedAttrs!==null&&$s(g,g.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,g),g}function ag(e,t){zv(e,t),Gc(t)&&e.queries.elementEnd(t)}function fC(e,t,n,r,o,i){let s=t.consts,a=Rt(s,o),c=ra(t,e,n,r,a);if(c.mergedAttrs=Fr(c.mergedAttrs,c.attrs),i!=null){let l=Rt(s,i);c.localNames=[];for(let f=0;f<l.length;f+=2)c.localNames.push(l[f],-1)}return c.attrs!==null&&$s(c,c.attrs,!1),c.mergedAttrs!==null&&$s(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}var cg=typeof ShadowRoot<"u",pC=typeof Document<"u";function hC(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&zo.SignalBased)!==0};return o&&(i.transform=o),i})}function gC(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function mC(e,t,n){let r=t instanceof Fe?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Bs(n,r):n}function yC(e){let t=e.get(Yn,null);if(t===null)throw new x(407,!1);let n=e.get(ng,null),r=e.get(pt,null),o=e.get(Jt,null,{optional:!0});return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function vC(e,t,n){let r=lg(e);return Dh(t,r,r==="svg"?Wc:r==="math"?Pf:n)}function _C(e){if((e&&"localName"in e&&typeof e.localName=="string"?e.localName:e?.tagName)?.toLowerCase()==="script")throw new x(905,!1)}function lg(e){return(e.selectors[0][0]||"div").toLowerCase()}var Qn=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=hC(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=gC(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=N0(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s,a){K(q.DynamicComponentStart);let c=k(null);try{let l=this.componentDef,f=mC(l,o||this.ngModule,t),g=yC(f),y=g.tracingService;return y&&y.componentCreate?y.componentCreate(rg(l),()=>this.createComponentRef(g,f,n,r,i,s,a)):this.createComponentRef(g,f,n,r,i,s,a)}finally{k(c)}}createComponentRef(t,n,r,o,i,s,a){let c=this.componentDef,l=CC(o,c,s,i),f=t.rendererFactory.createRenderer(null,c),g=o?a_(f,o,c.encapsulation,n):vC(c,f,a??null);_C(g);let y=n.get(Xn,null),m=DC(g,()=>n.get(Ne,null)??uh());y&&y.addHost(m);let _=s?.some(Pp)||i?.some(P=>typeof P!="function"&&P.bindings.some(Pp)),w=hu(null,l,null,512|Oh(c),null,null,t,f,n,null,gh(g,n,!0));y&&cg&&m instanceof ShadowRoot&&gs(w,()=>{y.removeHost(m)}),w[ge]=g,_s(w);let A=null;try{let P=sg(ge,w,2,"#host",()=>l.directiveRegistry,!0,0);wh(f,g,P),Lr(g,w),Fh(l,w,P),yh(l,P,w),ag(l,P),r!==void 0&&EC(P,this.ngContentSelectors,r),A=at(P.index,w),w[de]=A[de],vu(l,w,null)}catch(P){throw A!==null&&Nl(A),Nl(w),P}finally{K(q.DynamicComponentEnd),Cs()}return new zs(this.componentType,w,!!_)}};function CC(e,t,n,r){let o=e?["ng-version","22.1.6"]:A0(t.selectors[0]),i=null,s=null,a=0;if(n)for(let f of n)a+=f[Ll].requiredVars,f.create&&(f.targetIdx=0,(i??=[]).push(f)),f.update&&(f.targetIdx=0,(s??=[]).push(f));if(r)for(let f=0;f<r.length;f++){let g=r[f];if(typeof g!="function")for(let y of g.bindings){a+=y[Ll].requiredVars;let m=f+1;y.create&&(y.targetIdx=m,(i??=[]).push(y)),y.update&&(y.targetIdx=m,(s??=[]).push(y))}}let c=[t];if(r)for(let f of r){let g=typeof f=="function"?f:f.type,y=kc(g);c.push(y)}return pu(0,null,bC(i,s),1,a,c,null,null,null,[o],null)}function DC(e,t){let n=e.getRootNode?.();return pC&&n instanceof Document?n.head:n&&cg&&n instanceof ShadowRoot?n:t().head}function bC(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function Pp(e){let t=e[Ll].kind;return t==="input"||t==="twoWay"}var zs=class extends tg{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=ds(n[T],ge),this.location=Br(this._tNode,n),this.instance=at(this._tNode.index,n)[de],this.hostView=this.changeDetectorRef=new mn(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=yu(r,o[T],o,t,n);this.previousInputValues.set(t,n);let s=at(r.index,o);_u(s,1)}get injector(){return new hn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function EC(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Go=(()=>{class e{static __NG_ELEMENT_ID__=wC}return e})();function wC(){let e=Se();return ug(e,j())}var Vl=class e extends Go{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Br(this._hostTNode,this._hostLView)}get injector(){return new hn(this._hostTNode,this._hostLView)}get parentInjector(){let t=tu(this._hostTNode,this._hostLView);if(Qp(t)){let n=Rs(t,this._hostLView),r=ks(t),o=n[T].data[r+8];return new hn(o,n)}else return new hn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Fp(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-le}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Fl(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Lo(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c,l=n||{};c=l.index,r=l.injector,o=l.projectableNodes,i=l.environmentInjector||l.ngModuleRef,s=l.directives,a=l.bindings;let f=new Qn(qt(t)),g=r||this.parentInjector;if(!i&&f.ngModule==null){let P=this.parentInjector.get(Fe,null);P&&(i=P)}let y=qt(f.componentType??{}),m=Fl(this._lContainer,y?.id??null),_=m?.firstChild??null,w=f.create(g,o,_,i,s,a,this._getHostElementNamespace());return this.insertImpl(w.hostView,c,Lo(this._hostTNode,m)),w}_getHostElementNamespace(){if(this._hostTNode.type&2){let t=this._hostTNode.parent??this._hostLView[Ge];return t!==null&&t.type&2&&typeof t.value=="string"&&t.value.toLowerCase()==="foreignobject"?null:t?.namespace??null}return this._hostTNode.namespace}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Lf(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[ye],l=new e(c,c[Ge],c[ye]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return na(s,o,i,r),t.attachToViewContainerRef(),Lc(vl(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Fp(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=jo(this._lContainer,n);r&&(vo(vl(this._lContainer),n),Xs(r[T],r))}detach(t){let n=this._adjustIndex(t,-1),r=jo(this._lContainer,n);return r&&vo(vl(this._lContainer),n)!=null?new mn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Fp(e){return e[bo]}function vl(e){return e[bo]||(e[bo]=[])}function ug(e,t){let n,r=t[e.index];return it(r)?n=r:(n=Qh(r,t,null,e),t[e.index]=n,gu(t,n)),xC(n,t,e,r),new Vl(n,e,t)}function SC(e,t){let n=e[ie],r=n.createComment(""),o=st(t,e),i=n.parentNode(o);return Gn(n,i,r,n.nextSibling(o),!1),r}var xC=TC,IC=()=>!1;function MC(e,t,n){return IC(e,t,n)}function TC(e,t,n,r){if(e[Bn])return;let o;n.type&8?o=we(r):o=SC(t,n),e[Bn]=o}var jl=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Bl=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)xu(t,n).matches!==null&&this.queries[n].setDirty()}},Hl=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=LC(t):this.predicate=t}},Ul=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},$l=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,NC(n,i)),this.matchTNodeWithReadOption(t,n,Ns(n,t,i,!1,!1))}else r===Vr?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ns(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Dt||o===Go||o===Vr&&n.type&4)this.addMatch(n.index,-2);else{let i=Ns(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function NC(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function AC(e,t){return e.type&11?Br(e,t):e.type&4?bu(e,t):null}function OC(e,t,n,r){return n===-1?AC(t,e):n===-2?kC(e,t,r):Po(e,e[T],n,t)}function kC(e,t,n){if(n===Dt)return Br(t,e);if(n===Vr)return bu(t,e);if(n===Go)return ug(t,e)}function dg(e,t,n,r){let o=t[Nt].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let f=i[l];a.push(OC(t,f,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function zl(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=dg(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],f=t[-c];for(let g=le;g<f.length;g++){let y=f[g];y[un]===y[ye]&&zl(y[T],y,l,r)}if(f[Hn]!==null){let g=f[Hn];for(let y=0;y<g.length;y++){let m=g[y];zl(m[T],m,l,r)}}}}}return r}function RC(e,t){return e[Nt].queries[t].queryList}function PC(e,t,n){let r=new Ls((n&4)===4);return Bf(e,t,r,r.destroy),(t[Nt]??=new Bl).queries.push(new jl(r))-1}function FC(e,t,n){let r=ue();return r.firstCreatePass&&(VC(r,new Hl(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),PC(r,j(),t)}function LC(e){return e.split(",").map(t=>t.trim())}function VC(e,t,n){e.queries===null&&(e.queries=new Ul),e.queries.track(new $l(t,n))}function xu(e,t){return e.queries.getByIndex(t)}function jC(e,t){let n=e[T],r=xu(n,t);return r.crossesNgTemplate?zl(n,e,t,[]):dg(n,e,r,t)}function Hr(e){return!!e&&typeof e.then=="function"}function Iu(e){return!!e&&typeof e.subscribe=="function"}var Bo=class{};var Ho=class extends Bo{injector;instance=null;constructor(t){super();let n=new Pn([...t.providers,{provide:Bo,useValue:this}],t.parent||wr(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function fg(e,t,n=null){return new Ho({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var BC=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=jc(!1,n.type),o=r.length>0?fg([r],this._injector,""):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=Q({token:e,providedIn:"environment",factory:()=>new e(H(Fe))})}return e})();function en(e){return $o(()=>{let t=pg(e),n=W(V({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==nu.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(BC).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||_t.Emulated,styles:e.styles||Pe,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Xt("NgStandalone"),hg(n);let r=e.dependencies;return n.directiveDefs=Lp(r,HC),n.pipeDefs=Lp(r,bf),n.id=zC(n),n})}function HC(e){return qt(e)||kc(e)}function yn(e){return $o(()=>({type:e.type,bootstrap:e.bootstrap||Pe,declarations:e.declarations||Pe,imports:e.imports||Pe,exports:e.exports||Pe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function UC(e,t){if(e==null)return cn;let n={};for(let r in e)if(Object.hasOwn(e,r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=zo.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function $C(e){if(e==null)return cn;let t={};for(let n in e)Object.hasOwn(e,n)&&(t[e[n]]=n);return t}function ve(e){return $o(()=>{let t=pg(e);return hg(t),t})}function oa(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function pg(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||cn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Pe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:UC(e.inputs,t),outputs:$C(e.outputs),debugInfo:null}}function hg(e){e.features?.forEach(t=>t(e))}function Lp(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function zC(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}var gg=new O("");var Mu=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=D(gg,{optional:!0})??[];injector=D(ze);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Sr(this.injector,o);if(Hr(i))n.push(i);else if(Iu(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Kt({token:e,factory:e.\u0275fac})}return e})();function Tu(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r)},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r)},passThroughInput:e}}}function GC(e){return Object.getPrototypeOf(e.prototype).constructor}function Ve(e){let t=GC(e.type),n=!0,r=[e];for(;t&&t!==Function.prototype&&t!==Object.prototype;){let o,i=Object.hasOwn(t,mo)?t[mo]:void 0,s=Object.hasOwn(t,yo)?t[yo]:void 0;if(kt(e))o=i??s;else{if(i)throw new x(903,!1);o=s}if(o){if(n){r.push(o);let c=e;c.inputs=_l(e.inputs),c.declaredInputs=_l(e.declaredInputs),c.outputs=_l(e.outputs);let l=o.hostBindings;l&&QC(e,l);let f=o.viewQuery,g=o.contentQueries;if(f&&ZC(e,f),g&&YC(e,g),WC(e,o),Df(e.outputs,o.outputs),kt(o)&&o.data.animation){let y=e.data;y.animation=(y.animation||[]).concat(o.data.animation)}}let a=o.features;if(a)for(let c=0;c<a.length;c++){let l=a[c];l&&l.ngInherit&&l(e),l===Ve&&(n=!1)}}t=Object.getPrototypeOf(t)}qC(r)}function WC(e,t){for(let n in t.inputs){if(!Object.hasOwn(t.inputs,n)||Object.hasOwn(e.inputs,n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function qC(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Fr(o.hostAttrs,n=Fr(n,o.hostAttrs))}}function _l(e){return e===cn?{}:e===Pe?[]:e}function ZC(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function YC(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function QC(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function KC(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Fr(e.mergedAttrs,e.attrs);let f=e.tView=pu(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),f.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Ar(e,!1);let c=JC(n,t,e,r);Ds()&&du(n,t,c,e),Lr(c,t);let l=Qh(c,t,c,e);t[r+ge]=l,gu(t,l),MC(l,e,t)}function Gs(e,t,n,r,o,i,s,a,c,l,f){let g=n+ge,y;if(t.firstCreatePass){if(y=ra(t,g,4,s||null,a||null),l!=null){let m=Rt(t.consts,l);y.localNames=[];for(let _=0;_<m.length;_+=2)y.localNames.push(m[_],-1)}}else y=t.data[g];return KC(y,e,t,n,r,o,i,c),l!=null&&mu(e,y,f),y}var JC=XC;function XC(e,t,n,r){return bs(!0),t[ie].createComment("")}var Nu=new O("");var mg=new O("");function yg(){Ka(()=>{let e="";throw new x(600,e)})}var eD=10;var vn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=D(pn);afterRenderManager=D(au);zonelessEnabled=D(No);rootEffectScheduler=D(ws);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Ie;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=D(zn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(be(n=>!n))}constructor(){D(Jt,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=D(Fe);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=ze.NULL){return this._injector.get(_e).run(()=>{if(K(q.BootstrapComponentStart),!this._injector.get(Mu).done){let P="";throw new x(405,P)}let a=qt(n),c=this._injector.get(Bo),l=new Qn(a,c);this.componentTypes.push(n);let{hostElement:f,directives:g,bindings:y}=tD(r),m=f||l.selector,_=l.create(o,[],m,c.injector,g,y),w=_.location.nativeElement,A=_.injector.get(Nu,null);return A?.registerApplication(w),_.onDestroy(()=>{this.detachView(_.hostView),Ro(this.components,_),A?.unregisterApplication(w)}),this._loadComponent(_),K(q.BootstrapComponentEnd,_),_})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){K(q.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Ks.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw K(q.ChangeDetectionEnd),new x(101,!1);let n=k(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,k(n),this.afterTick.next(),K(q.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Yn,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<eD;){K(q.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{K(q.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!Nr(o))continue;let i=r&&!this.zonelessEnabled?0:1;Wh(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Nr(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Ro(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(mg,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ro(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new x(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Kt({token:e,factory:e.\u0275fac})}return e})();function tD(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function Ro(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function tn(e,t,n,r){let o=j(),i=dn();if(et(o,i,t)){let s=ue(),a=Or();m_(a,o,e,t,n,r)}return tn}var Gl=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Cl(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function nD(e,t,n,r){let o,i,s=0,a=e.length-1,c=void 0;if(Array.isArray(t)){k(r);let l=t.length-1;for(k(null);s<=a&&s<=l;){let f=e.at(s),g=t[s],y=Cl(s,f,s,g,n);if(y!==0){y<0&&e.updateValue(s,g),s++;continue}let m=e.at(a),_=t[l],w=Cl(a,m,l,_,n);if(w!==0){w<0&&e.updateValue(a,_),a--,l--;continue}let A=n(s,f),P=n(a,m),ce=n(s,g);if(Object.is(ce,P)){let Ye=n(l,_);Object.is(Ye,A)?(e.swap(s,a),e.updateValue(a,_),l--,a--):e.move(a,s),e.updateValue(s,g),s++;continue}if(o??=new Ws,i??=jp(e,s,a,n),Wl(e,o,s,ce))e.updateValue(s,g),s++,a++;else if(i.has(ce))o.set(A,e.detach(s)),a--;else{let Ye=e.create(s,t[s]);e.attach(s,Ye),s++,a++}}for(;s<=l;)Vp(e,o,n,s,t[s]),s++}else if(t!=null){k(r);let l=t[Symbol.iterator]();k(null);let f=l.next();for(;!f.done&&s<=a;){let g=e.at(s),y=f.value,m=Cl(s,g,s,y,n);if(m!==0)m<0&&e.updateValue(s,y),s++,f=l.next();else{o??=new Ws,i??=jp(e,s,a,n);let _=n(s,y);if(Wl(e,o,s,_))e.updateValue(s,y),s++,a++,f=l.next();else if(!i.has(_))e.attach(s,e.create(s,y)),s++,a++,f=l.next();else{let w=n(s,g);o.set(w,e.detach(s)),a--}}}for(;!f.done;)Vp(e,o,n,e.length,f.value),f=l.next()}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(l=>{e.destroy(l)})}function Wl(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Vp(e,t,n,r,o){if(Wl(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function jp(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Ws=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function b(e,t,n,r,o,i,s,a){Xt("NgControlFlow");let c=j(),l=ue(),f=Rt(l.consts,i);return Gs(c,l,e,t,n,r,o,f,256,s,a),Au}function Au(e,t,n,r,o,i,s,a){Xt("NgControlFlow");let c=j(),l=ue(),f=Rt(l.consts,i);return Gs(c,l,e,t,n,r,o,f,512,s,a),Au}function E(e,t){Xt("NgControlFlow");let n=j(),r=dn(),o=n[r]!==xe?n[r]:-1,i=o!==-1?qs(n,ge+o):void 0,s=0;if(et(n,r,e)){let a=k(null);try{if(i!==void 0&&Jh(i,s),e!==-1){let c=ge+e,l=qs(n,c),f=Ql(n[T],c),g=eg(l,f,n),y=ta(n,f,t,{dehydratedView:g});na(l,y,s,Lo(f,g))}}finally{k(a)}}else if(i!==void 0){let a=Kh(i,s);a!==void 0&&(a[de]=t)}}var ql=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-le}};function er(e){return e}function Wo(e,t){return t}var Zl=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function J(e,t,n,r,o,i,s,a,c,l,f,g,y){Xt("NgControlFlow");let m=j(),_=ue(),w=c!==void 0,A=j(),P=a?s.bind(A[Je][de]):s,ce=new Zl(w,P);A[ge+e]=ce,Gs(m,_,e+1,t,n,r,o,Rt(_.consts,i),256),w&&Gs(m,_,e+2,c,l,f,g,Rt(_.consts,y),512)}var Yl=class extends Gl{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-le}at(t){return this.getLView(t)[de].$implicit}attach(t,n){let r=n[xr];this.needsIndexUpdate||=t!==this.length,na(this.lContainer,n,t,Lo(this.templateTNode,r)),rD(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,oD(this.lContainer,t),iD(this.lContainer,t)}create(t,n){let r=Fl(this.lContainer,this.templateTNode.tView.ssrId);return ta(this.hostLView,this.templateTNode,new ql(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Xs(t[T],t)}updateValue(t,n){this.getLView(t)[de].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[de].$index=t}getLView(t){return sD(this.lContainer,t)}};function X(e){let t=k(null),n=mt();try{let r=j(),o=r[T],i=r[n],s=n+1,a=qs(r,s);if(i.liveCollection===void 0){let l=Ql(o,s);i.liveCollection=new Yl(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(nD(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let l=dn(),f=c.length===0;if(et(r,l,f)){let g=n+2,y=qs(r,g);if(f){let m=Ql(o,g),_=eg(y,m,r),w=ta(r,m,void 0,{dehydratedView:_});na(y,w,0,Lo(m,_))}else o.firstUpdatePass&&H_(y),Jh(y,0)}}}finally{k(t)}}function qs(e,t){return e[t]}function rD(e,t){if(e.length<=le)return;let n=le+t,r=e[n],o=r?r[Ot]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Tt];V0(i,o),gn.delete(r[At]),o.detachedLeaveAnimationFns=void 0}}function oD(e,t){if(e.length<=le)return;let n=le+t,r=e[n],o=r?r[Ot]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function iD(e,t){return jo(e,t)}function sD(e,t){return Kh(e,t)}function Ql(e,t){return ds(e,t)}function S(e,t,n){let r=j(),o=dn();if(et(r,o,t)){let i=ue(),s=Or();Lh(s,r,e,t,r[ie],n)}return S}function Kl(e,t,n,r,o){yu(t,e,n,o?"class":"style",r)}function d(e,t,n,r){let o=j(),i=o[T],s=e+ge,a=i.firstCreatePass?sg(s,o,2,t,g_,$f(),n,r):i.data[s];if(Qt(a)){let c=o[gt].tracingService;if(c&&c.componentCreate){let l=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(rg(l),()=>(Bp(e,t,o,a,r),d))}}return Bp(e,t,o,a,r),d}function Bp(e,t,n,r,o){if(jh(r,n,e,t,vg),ls(r)){let i=n[T];Fh(i,n,r),yh(i,r,n)}o!=null&&mu(n,r)}function u(){let e=ue(),t=Se(),n=Bh(t);return e.firstCreatePass&&ag(e,n),el(n)&&tl(),Xc(),n.classesWithoutHost!=null&&Wv(n)&&Kl(e,n,j(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&qv(n)&&Kl(e,n,j(),n.stylesWithoutHost,!1),u}function je(e,t,n,r){return d(e,t,n,r),u(),je}function nn(e,t,n,r){let o=j(),i=o[T],s=e+ge,a=i.firstCreatePass?fC(s,i,2,t,n,r):i.data[s];return jh(a,o,e,t,vg),r!=null&&mu(o,a),nn}function _n(){let e=Se(),t=Bh(e);return el(t)&&tl(),Xc(),_n}var vg=(e,t,n,r,o)=>(bs(!0),Dh(t[ie],r,ll()));function G(){return j()}function ia(e,t,n){let r=j(),o=dn();if(et(r,o,t)){let i=ue(),s=Or();Vh(s,r,e,t,r[ie],n)}return ia}var Ao=void 0;function aD(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var cD=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ao,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ao,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",Ao,Ao,Ao],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",aD],Dl=Object.create(null);function We(e){let t=lD(e),n=Hp(t);if(n)return n;let r=t.split("-")[0];if(n=Hp(r),n)return n;if(r==="en")return cD;throw new x(701,!1)}function Hp(e){if(!(e in Dl)){let t=Ln.ng&&Ln.ng.common&&Ln.ng.common.locales&&Ln.ng.common.locales[e];return t!==void 0&&(Dl[e]=t),t}return Dl[e]}var fe={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};function lD(e){return e.toLowerCase().replace(/_/g,"-")}var qo="en-US";var uD=qo;function _g(e){typeof e=="string"&&(uD=e.toLowerCase().replace(/_/g,"-"))}function N(e,t,n){let r=j(),o=ue(),i=Se();return Cg(o,r,r[ie],i,e,t,n),N}function Ur(e,t,n){let r=j(),o=ue(),i=Se();return(i.type&3||n)&&Su(i,o,r,n,r[ie],e,t,Wn(i,r,t)),Ur}function Cg(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=Wn(r,t,i),Su(r,e,t,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],f=r.hostDirectiveOutputs?.[o];if(f&&f.length)for(let g=0;g<f.length;g+=2){let y=f[g],m=f[g+1];c??=Wn(r,t,i),Hs(r,t,y,m,o,c)}if(l&&l.length)for(let g of l)c??=Wn(r,t,i),Hs(r,t,g,o,o,c)}}function v(e=1){return tp(e)}function sa(e,t,n){return FC(e,t,n),sa}function Ou(e){let t=j(),n=ue(),r=sl();vs(r+1);let o=xu(n,r);if(e.dirty&&Ff(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=jC(t,r);e.reset(i,s0),e.notifyOnChanges()}return!0}return!1}function ku(){return RC(j(),sl())}function Is(e,t){return e<<17|t<<2}function Kn(e){return e>>17&32767}function dD(e){return(e&2)==2}function fD(e,t){return e&131071|t<<17}function Jl(e){return e|2}function jr(e){return(e&131068)>>2}function bl(e,t){return e&-131069|t<<2}function pD(e){return(e&1)===1}function Xl(e){return e|1}function hD(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Kn(s),c=jr(s);e[r]=n;let l=!1,f;if(Array.isArray(n)){let g=n;f=g[1],(f===null||br(g,f)>0)&&(l=!0)}else f=n;if(o)if(c!==0){let y=Kn(e[a+1]);e[r+1]=Is(y,a),y!==0&&(e[y+1]=bl(e[y+1],r)),e[a+1]=fD(e[a+1],r)}else e[r+1]=Is(a,0),a!==0&&(e[a+1]=bl(e[a+1],r)),a=r;else e[r+1]=Is(c,0),a===0?a=r:e[c+1]=bl(e[c+1],r),c=r;l&&(e[r+1]=Jl(e[r+1])),Up(e,f,r,!0),Up(e,f,r,!1),gD(t,f,e,r,i),s=Is(a,c),i?t.classBindings=s:t.styleBindings=s}function gD(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&br(i,t)>=0&&(n[r+1]=Xl(n[r+1]))}function Up(e,t,n,r){let o=e[n+1],i=t===null,s=r?Kn(o):jr(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];mD(c,t)&&(a=!0,e[s+1]=r?Xl(l):Jl(l)),s=r?Kn(l):jr(l)}a&&(e[n+1]=r?Jl(o):Xl(o))}function mD(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?br(e,t)>=0:!1}var vt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function yD(e){return e.substring(vt.key,vt.keyEnd)}function vD(e){return _D(e),Dg(e,bg(e,0,vt.textEnd))}function Dg(e,t){let n=vt.textEnd;return n===t?-1:(t=vt.keyEnd=CD(e,vt.key=t,n),bg(e,t,n))}function _D(e){vt.key=0,vt.keyEnd=0,vt.value=0,vt.valueEnd=0,vt.textEnd=e.length}function bg(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function CD(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function tr(e,t,n){return Eg(e,t,n,!1),tr}function pe(e,t){return Eg(e,t,null,!0),pe}function $r(e){bD(MD,DD,e,!0)}function DD(e,t){for(let n=vD(t);n>=0;n=Dg(t,n))ss(e,yD(t),!0)}function Eg(e,t,n,r){let o=j(),i=ue(),s=Eo(2);if(i.firstUpdatePass&&Sg(i,e,s,r),t!==xe&&et(o,s,t)){let a=i.data[mt()];xg(i,a,o,o[ie],e,o[s+1]=ND(t,n),r,s)}}function bD(e,t,n,r){let o=ue(),i=Eo(2);o.firstUpdatePass&&Sg(o,null,i,r);let s=j();if(n!==xe&&et(s,i,n)){let a=o.data[mt()];if(Ig(a,r)&&!wg(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=ts(c,n||"")),Kl(o,a,s,n,r)}else TD(o,a,s,s[ie],s[i+1],s[i+1]=ID(e,t,n),r,i)}}function wg(e,t){return t>=e.expandoStartIndex}function Sg(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[mt()],s=wg(e,n);Ig(i,r)&&t===null&&!s&&(t=!1),t=ED(o,i,t,r),hD(o,i,t,n,s,r)}}function ED(e,t,n,r){let o=Kf(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=El(null,e,t,n,r),n=Uo(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=El(o,e,t,n,r),i===null){let c=wD(e,t,r);c!==void 0&&Array.isArray(c)&&(c=El(null,e,t,c[1],r),c=Uo(c,t.attrs,r),SD(e,t,r,c))}else i=xD(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function wD(e,t,n){let r=n?t.classBindings:t.styleBindings;if(jr(r)!==0)return e[Kn(r)]}function SD(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Kn(o)]=r}function xD(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Uo(r,s,n)}return Uo(r,t.attrs,n)}function El(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=Uo(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Uo(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),ss(e,s,n?!0:t[++i]))}return e===void 0?null:e}function ID(e,t,n){if(n==null||n==="")return Pe;let r=[],o=Fo(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(o instanceof Set)for(let i of o)e(r,i,!0);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function MD(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&ss(e,r,n)}function TD(e,t,n,r,o,i,s,a){o===xe&&(o=Pe);let c=0,l=0,f=0<o.length?o[0]:null,g=0<i.length?i[0]:null;for(;f!==null||g!==null;){let y=c<o.length?o[c+1]:void 0,m=l<i.length?i[l+1]:void 0,_=null,w;f===g?(c+=2,l+=2,y!==m&&(_=g,w=m)):g===null||f!==null&&f<g?(c+=2,_=f):(l+=2,_=g,w=m),_!==null&&xg(e,t,n,r,_,w,s,a),f=c<o.length?o[c]:null,g=l<i.length?i[l]:null}}function xg(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],f=pD(l)?$p(c,t,n,o,jr(l),s):void 0;if(!Zs(f)){Zs(i)||dD(l)&&(i=$p(c,null,n,o,a,s));let g=qc(mt(),n);r_(r,s,g,o,i)}}function $p(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),f=l?c[1]:c,g=f===null,y=n[o+1];y===xe&&(y=g?Pe:void 0);let m=g?as(y,r):f===r?y:void 0;if(l&&!Zs(m)&&(m=as(c,r)),Zs(m)&&(a=m,s))return a;let _=e[o+1];o=s?Kn(_):jr(_)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=as(c,r))}return a}function Zs(e){return e!==void 0}function ND(e,t){return e==null||e===""||(typeof t=="string"?e=Fo(e)+t:typeof e=="object"&&(e=es(Fo(e)))),e}function Ig(e,t){return(e.flags&(t?8:16))!==0}function p(e,t=""){let n=j(),r=ue(),o=e+ge,i=r.firstCreatePass?ra(r,o,1,t,null):r.data[o],s=AD(r,n,i,t);n[o]=s,Ds()&&du(r,n,s,i),Ar(i,!1)}var AD=(e,t,n,r)=>(bs(!0),m0(t[ie],r));function OD(e,t,n,r=""){return et(e,dn(),n)?t+Zt(n)+r:xe}function kD(e,t,n,r,o,i=""){let s=il(),a=wu(e,s,n,o);return Eo(2),a?t+Zt(n)+r+Zt(o)+i:xe}function RD(e,t,n,r,o,i,s,a=""){let c=il(),l=q_(e,c,n,o,s);return Eo(3),l?t+Zt(n)+r+Zt(o)+i+Zt(s)+a:xe}function C(e){return R("",e),C}function R(e,t,n){let r=j(),o=OD(r,e,t,n);return o!==xe&&Ru(r,mt(),o),R}function bt(e,t,n,r,o){let i=j(),s=kD(i,e,t,n,r,o);return s!==xe&&Ru(i,mt(),s),bt}function nr(e,t,n,r,o,i,s){let a=j(),c=RD(a,e,t,n,r,o,i,s);return c!==xe&&Ru(a,mt(),c),nr}function Ru(e,t,n){let r=qc(t,e);y0(e[ie],r,n)}function ee(e,t,n){Ss(t)&&(t=t());let r=j(),o=dn();if(et(r,o,t)){let i=ue(),s=Or();Lh(s,r,e,t,r[ie],n)}return ee}function ne(e,t){let n=Ss(e);return n&&e.set(t),n}function te(e,t){let n=j(),r=ue(),o=Se();return Cg(r,n,n[ie],o,e,t),te}function zp(e,t,n){let r=ue();r.firstCreatePass&&Mg(t,r.data,r.blueprint,kt(e),n)}function Mg(e,t,n,r,o){if(e=Ee(e),Array.isArray(e))for(let i=0;i<e.length;i++)Mg(e[i],t,n,r,o);else{let i=ue(),s=j(),a=Se(),c=Rn(e)?e:Ee(e.provide),l=Hc(e),f=a.providerIndexes&1048575,g=a.directiveStart,y=a.providerIndexes>>20;if(Rn(e)||!e.multi){let m=new qn(l,o,Y,null),_=Sl(c,t,o?f:f+y,g);_===-1?(Ml(Fs(a,s),i,c),wl(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(m),s.push(m)):(n[_]=m,s[_]=m)}else{let m=Sl(c,t,f+y,g),_=Sl(c,t,f,f+y),w=m>=0&&n[m],A=_>=0&&n[_];if(o&&!A||!o&&!w){Ml(Fs(a,s),i,c);let P=LD(o?FD:PD,n.length,o,r,l,e);!o&&A&&(n[_].providerFactory=P),wl(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(P),s.push(P)}else{let P=Tg(n[o?_:m],l,!o&&r);wl(i,e,m>-1?m:_,P)}!o&&r&&A&&n[_].componentProviders++}}}function wl(e,t,n,r){let o=Rn(t),i=Of(t);if(o||i){let c=(i?Ee(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let f=l.indexOf(n);f===-1?l.push(n,[r,c]):l[f+1].push(r,c)}else l.push(n,c)}}}function Tg(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Sl(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function PD(e,t,n,r,o){return eu(this.multi,[])}function FD(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Po(r,r[T],this.providerFactory.index,o);s=c.slice(0,a),eu(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],eu(i,s);return s}function eu(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function LD(e,t,n,r,o,i){let s=new qn(e,n,Y,null);return s.multi=[],s.index=t,s.componentProviders=0,Tg(s,o,r&&!n),s}function ct(e,t){return n=>{n.providersResolver=(r,o)=>zp(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>zp(r,o?o(t):t,!0))}}function Be(e,t){let n=ms()+e,r=j();return r[n]===xe?Eu(r,n,t()):W_(r,n)}function Ng(e,t){let n=e[t];return n===xe?void 0:n}function VD(e,t,n,r,o,i){let s=t+n;return et(e,s,o)?Eu(e,s+1,i?r.call(i,o):r(o)):Ng(e,s+1)}function jD(e,t,n,r,o,i,s){let a=t+n;return wu(e,a,o,i)?Eu(e,a+2,s?r.call(s,o,i):r(o,i)):Ng(e,a+2)}function lt(e,t){let n=ue(),r,o=e+ge;n.firstCreatePass?(r=BD(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=an(r.type,!0)),s,a=Re(Y);try{let c=Ps(!1),l=i();return Ps(c),Yc(n,j(),o,l),l}finally{Re(a)}}function BD(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function rr(e,t,n){let r=e+ge,o=j(),i=Zc(o,r);return Ag(o,r)?VD(o,ms(),t,i.transform,n,i):i.transform(n)}function or(e,t,n,r){let o=e+ge,i=j(),s=Zc(i,o);return Ag(i,o)?jD(i,ms(),t,s.transform,n,r,s):s.transform(n,r)}function Ag(e,t){return e[T].data[t].pure}var Og=(()=>{class e{applicationErrorHandler=D(pn);appRef=D(vn);taskService=D(zn);ngZone=D(_e);zonelessEnabled=D(No);tracing=D(Jt,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new De;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ho):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(D(pl,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?sp:ul;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(ho+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Kt({token:e,factory:e.\u0275fac})}return e})();function Pu(){return Xt("NgZoneless"),Er([...Fu(),[]])}function Fu(){return[{provide:pt,useExisting:Og},{provide:_e,useClass:go},{provide:No,useValue:!0}]}function HD(){return typeof $localize<"u"&&$localize.locale||qo}var zr=new O("",{factory:()=>D(zr,{optional:!0,skipSelf:!0})||HD()});function ae(e,t){return Si(e,t?.equal)}function qe(e){return Hd(e)}var kg=class e extends Error{_brand;constructor(t){super(t)}static IDLE=new e("IDLE");static LOADING=new e("LOADING")};function Fg(e,t){let n=Object.create(Gp);n.value=e,n.transformFn=t?.transform;function r(){if(ur(n),n.value===Ys){let o=null;throw new x(-950,o)}return n.value}return r[Ce]=n,r}function Rg(e,t){return Fg(e,t)}function XD(e){return Fg(Ys,e)}var Lg=(Rg.required=XD,Rg);var eb=1e4;var F2=eb-1e3;var Yo=(()=>{class e{static __NG_ELEMENT_ID__=tb}return e})();function tb(e){return nb(Se(),j(),(e&16)===16)}function nb(e,t,n){if(Qt(e)&&!n){let r=at(e.index,t);return new mn(r,r)}else if(e.type&175){let r=t[Je];return new mn(r,t)}return null}var Lu=new O(""),rb=new O("");function Zo(e){return!e.moduleRef}function ob(e){let t=Zo(e)?e.r3Injector:e.moduleRef.injector,n=t.get(_e);return n.run(()=>{Zo(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(pn),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Zo(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Lu);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Lu);s.add(i),e.moduleRef.onDestroy(()=>{Ro(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return sb(r,n,()=>{let i=t.get(zn),s=i.add(),a=t.get(Mu);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(zr,qo);if(_g(c||qo),!t.get(rb,!0))return Zo(e)?t.get(vn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Zo(e)){let f=t.get(vn);return e.rootComponent!==void 0&&f.bootstrap(e.rootComponent),f}else return ib?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var ib;function sb(e,t,n){try{let r=n();return Hr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var aa=null;function ab(e=[],t){return ze.create({name:t,providers:[{provide:Do,useValue:"platform"},{provide:Lu,useValue:new Set([()=>aa=null])},...e]})}function cb(e=[]){if(aa)return aa;let t=ab(e);return aa=t,yg(),lb(t),t}function lb(e){let t=e.get(Es,null);Sr(e,()=>{t?.forEach(n=>n())})}function Vg(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;K(q.BootstrapApplicationStart);try{let i=o?.injector??cb(r),s=[Fu(),cp,...n||[]],a=new Ho({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return ob({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{K(q.BootstrapApplicationEnd)}}function Vu(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function jg(e,t){let n=qt(e),r=t.elementInjector||wr();return new Qn(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function Qo(e){let t=qt(e);if(!t)return null;let n=new Qn(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Bg=null;function wt(){return Bg}function ju(e){Bg??=e}var Ko=class{},la=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Q({token:e,factory:()=>D(Hg),providedIn:"platform"})}return e})();var Hg=(()=>{class e extends la{_location;_history;_doc=D(Ne);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return wt().getBaseHref(this._doc)}onPopState(n){let r=wt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=wt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Q({token:e,factory:()=>new e,providedIn:"platform"})}return e})();var Gu=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(Gu||{});var Ae=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(Ae||{}),oe=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(oe||{}),Ze=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Ze||{}),He={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function zg(e){return We(e)[fe.LocaleId]}function Gg(e,t,n){let r=We(e),o=[r[fe.DayPeriodsFormat],r[fe.DayPeriodsStandalone]],i=ut(o,t);return ut(i,n)}function Wg(e,t,n){let r=We(e),o=[r[fe.DaysFormat],r[fe.DaysStandalone]],i=ut(o,t);return ut(i,n)}function qg(e,t,n){let r=We(e),o=[r[fe.MonthsFormat],r[fe.MonthsStandalone]],i=ut(o,t);return ut(i,n)}function Zg(e,t){let r=We(e)[fe.Eras];return ut(r,t)}function Jo(e,t){let n=We(e);return ut(n[fe.DateFormat],t)}function Xo(e,t){let n=We(e);return ut(n[fe.TimeFormat],t)}function ei(e,t){let r=We(e)[fe.DateTimeFormat];return ut(r,t)}function Vt(e,t){let n=We(e),r=n[fe.NumberSymbols][t];if(typeof r>"u"){if(t===He.CurrencyDecimal)return n[fe.NumberSymbols][He.Decimal];if(t===He.CurrencyGroup)return n[fe.NumberSymbols][He.Group]}return r}function Yg(e,t){return We(e)[fe.NumberFormats][t]}function Qg(e){if(!e[fe.ExtraData])throw new x(2303,!1)}function Kg(e){let t=We(e);return Qg(t),(t[fe.ExtraData][2]||[]).map(r=>typeof r=="string"?Bu(r):[Bu(r[0]),Bu(r[1])])}function Jg(e,t,n){let r=We(e);Qg(r);let o=[r[fe.ExtraData][0],r[fe.ExtraData][1]],i=ut(o,t)||[];return ut(i,n)||[]}function ut(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new x(2304,!1)}function Bu(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var ub=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ua=Object.create(null),db=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,fb=256;function Xg(e,t,n,r){let o=bb(e);pb(t),t=rn(n,t)||t;let s=[],a;for(;t;)if(a=db.exec(t),a){s=s.concat(a.slice(1));let f=s.pop();if(!f)break;t=f}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=tm(r,c),o=Db(o,r));let l="";return s.forEach(f=>{let g=_b(f);l+=g?g(o,n,c):f==="''"?"'":f.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function pb(e){if(e.length>fb)throw new x(2300,!1)}function ga(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function rn(e,t){let n=zg(e);if(ua[n]??=Object.create(null),ua[n][t])return ua[n][t];let r="";switch(t){case"shortDate":r=Jo(e,Ze.Short);break;case"mediumDate":r=Jo(e,Ze.Medium);break;case"longDate":r=Jo(e,Ze.Long);break;case"fullDate":r=Jo(e,Ze.Full);break;case"shortTime":r=Xo(e,Ze.Short);break;case"mediumTime":r=Xo(e,Ze.Medium);break;case"longTime":r=Xo(e,Ze.Long);break;case"fullTime":r=Xo(e,Ze.Full);break;case"short":let o=rn(e,"shortTime"),i=rn(e,"shortDate");r=da(ei(e,Ze.Short),[o,i]);break;case"medium":let s=rn(e,"mediumTime"),a=rn(e,"mediumDate");r=da(ei(e,Ze.Medium),[s,a]);break;case"long":let c=rn(e,"longTime"),l=rn(e,"longDate");r=da(ei(e,Ze.Long),[c,l]);break;case"full":let f=rn(e,"fullTime"),g=rn(e,"fullDate");r=da(ei(e,Ze.Full),[f,g]);break}return r&&(ua[n][t]=r),r}function da(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function St(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function hb(e,t){return St(e,3).substring(0,t)}function me(e,t,n=0,r=!1,o=!1){return function(i,s){let a=gb(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return hb(a,t);let c=Vt(s,He.MinusSign);return St(a,t,c,r,o)}}function gb(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new x(2301,!1)}}function se(e,t,n=Ae.Format,r=!1){return function(o,i){return mb(o,i,e,t,n,r)}}function mb(e,t,n,r,o,i){switch(n){case 2:return qg(t,o,r)[e.getMonth()];case 1:return Wg(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let l=Kg(t),f=Jg(t,o,r),g=l.findIndex(y=>{if(Array.isArray(y)){let[m,_]=y,w=s>=m.hours&&a>=m.minutes,A=s<_.hours||s===_.hours&&a<_.minutes;if(m.hours<_.hours){if(w&&A)return!0}else if(w||A)return!0}else if(y.hours===s&&y.minutes===a)return!0;return!1});if(g!==-1)return f[g]}return Gg(t,o,r)[s<12?0:1];case 3:return Zg(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new x(2302,!1)}}function fa(e){return function(t,n,r){let o=-1*r,i=Vt(n,He.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+St(s,2,i)+St(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+St(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+St(s,2,i)+":"+St(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+St(s,2,i)+":"+St(Math.abs(o%60),2,i);default:throw new x(2310,!1)}}}var yb=0,ha=4;function vb(e){let t=ga(e,yb,1).getDay();return ga(e,0,1+(t<=ha?ha:ha+7)-t)}function em(e){let t=e.getDay(),n=t===0?-3:ha-t;return ga(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Hu(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=em(n),s=vb(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return St(o,e,Vt(r,He.MinusSign))}}function pa(e,t=!1){return function(n,r){let i=em(n).getFullYear();return St(i,e,Vt(r,He.MinusSign),t)}}var Uu=Object.create(null);function _b(e){if(Uu[e])return Uu[e];let t;switch(e){case"G":case"GG":case"GGG":t=se(3,oe.Abbreviated);break;case"GGGG":t=se(3,oe.Wide);break;case"GGGGG":t=se(3,oe.Narrow);break;case"y":t=me(0,1,0,!1,!0);break;case"yy":t=me(0,2,0,!0,!0);break;case"yyy":t=me(0,3,0,!1,!0);break;case"yyyy":t=me(0,4,0,!1,!0);break;case"Y":t=pa(1);break;case"YY":t=pa(2,!0);break;case"YYY":t=pa(3);break;case"YYYY":t=pa(4);break;case"M":case"L":t=me(1,1,1);break;case"MM":case"LL":t=me(1,2,1);break;case"MMM":t=se(2,oe.Abbreviated);break;case"MMMM":t=se(2,oe.Wide);break;case"MMMMM":t=se(2,oe.Narrow);break;case"LLL":t=se(2,oe.Abbreviated,Ae.Standalone);break;case"LLLL":t=se(2,oe.Wide,Ae.Standalone);break;case"LLLLL":t=se(2,oe.Narrow,Ae.Standalone);break;case"w":t=Hu(1);break;case"ww":t=Hu(2);break;case"W":t=Hu(1,!0);break;case"d":t=me(2,1);break;case"dd":t=me(2,2);break;case"c":case"cc":t=me(7,1);break;case"ccc":t=se(1,oe.Abbreviated,Ae.Standalone);break;case"cccc":t=se(1,oe.Wide,Ae.Standalone);break;case"ccccc":t=se(1,oe.Narrow,Ae.Standalone);break;case"cccccc":t=se(1,oe.Short,Ae.Standalone);break;case"E":case"EE":case"EEE":t=se(1,oe.Abbreviated);break;case"EEEE":t=se(1,oe.Wide);break;case"EEEEE":t=se(1,oe.Narrow);break;case"EEEEEE":t=se(1,oe.Short);break;case"a":case"aa":case"aaa":t=se(0,oe.Abbreviated);break;case"aaaa":t=se(0,oe.Wide);break;case"aaaaa":t=se(0,oe.Narrow);break;case"b":case"bb":case"bbb":t=se(0,oe.Abbreviated,Ae.Standalone,!0);break;case"bbbb":t=se(0,oe.Wide,Ae.Standalone,!0);break;case"bbbbb":t=se(0,oe.Narrow,Ae.Standalone,!0);break;case"B":case"BB":case"BBB":t=se(0,oe.Abbreviated,Ae.Format,!0);break;case"BBBB":t=se(0,oe.Wide,Ae.Format,!0);break;case"BBBBB":t=se(0,oe.Narrow,Ae.Format,!0);break;case"h":t=me(3,1,-12);break;case"hh":t=me(3,2,-12);break;case"H":t=me(3,1);break;case"HH":t=me(3,2);break;case"m":t=me(4,1);break;case"mm":t=me(4,2);break;case"s":t=me(5,1);break;case"ss":t=me(5,2);break;case"S":t=me(6,1);break;case"SS":t=me(6,2);break;case"SSS":t=me(6,3);break;case"Z":case"ZZ":case"ZZZ":t=fa(0);break;case"ZZZZZ":t=fa(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=fa(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=fa(2);break;default:return null}return Uu[e]=t,t}function tm(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Cb(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Db(e,t,n){let o=e.getTimezoneOffset(),i=tm(t,o);return Cb(e,-1*(i-o))}function bb(e){if(Ug(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return ga(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(ub))return Eb(r)}let t=new Date(e);if(!Ug(t))throw new x(2311,!1);return t}function Eb(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),l=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,l),t}function Ug(e){return e instanceof Date&&!isNaN(e.valueOf())}var wb=/^(\d+)?\.((\d+)(-(\d+))?)?$/,$g=22,ma=".",ti="0",Sb=";",xb=",",$u="#";function Ib(e,t,n,r,o,i,s=!1){let a="",c=!1;if(!isFinite(e))a=Vt(n,Number.isNaN(e)?He.NaN:He.Infinity);else{let l=Nb(e);s&&(l=Tb(l));let f=t.minInt,g=t.minFrac,y=t.maxFrac;if(i){let ce=i.match(wb);if(ce===null)throw new x(2306,!1);let Ye=ce[1],tt=ce[3],Qe=ce[5];Ye!=null&&(f=zu(Ye)),tt!=null&&(g=zu(tt)),Qe!=null?y=zu(Qe):tt!=null&&g>y&&(y=g);let nt=100;if(f>nt||g>nt||y>nt)throw new x(2306,!1)}Ab(l,g,y);let m=l.digits,_=l.integerLen,w=l.exponent,A=[];for(c=m.every(ce=>!ce);_<f;_++)m.unshift(0);for(;_<0;_++)m.unshift(0);_>0?A=m.splice(_,m.length):(A=m,m=[0]);let P=[];for(m.length>=t.lgSize&&P.unshift(m.splice(-t.lgSize,m.length).join(""));m.length>t.gSize;)P.unshift(m.splice(-t.gSize,m.length).join(""));m.length&&P.unshift(m.join("")),a=P.join(Vt(n,r)),A.length&&(a+=Vt(n,o)+A.join("")),w&&(a+=Vt(n,He.Exponential)+"+"+w)}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function nm(e,t,n){let r=Yg(t,Gu.Decimal),o=Mb(r,Vt(t,He.MinusSign));return Ib(e,o,t,He.Group,He.Decimal,n)}function Mb(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(Sb),o=r[0],i=r[1],s=o.indexOf(ma)!==-1?o.split(ma):[o.substring(0,o.lastIndexOf(ti)+1),o.substring(o.lastIndexOf(ti)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf($u));for(let f=0;f<c.length;f++){let g=c.charAt(f);g===ti?n.minFrac=n.maxFrac=f+1:g===$u?n.maxFrac=f+1:n.posSuf+=g}let l=a.split(xb);if(n.gSize=l[1]?l[1].length:0,n.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,i){let f=o.length-n.posPre.length-n.posSuf.length,g=i.indexOf($u);n.negPre=i.substring(0,g).replace(/'/g,""),n.negSuf=i.slice(g+f).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function Tb(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function Nb(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(ma))>-1&&(t=t.replace(ma,"")),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===ti;i++);if(i===(a=t.length))r=[0],o=1;else{for(a--;t.charAt(a)===ti;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i))}return o>$g&&(r=r.splice(0,$g-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function Ab(e,t,n){if(t>n)throw new x(2307,!1);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let g=s;g<r.length;g++)r[g]=0}else{o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let g=1;g<s;g++)r[g]=0}if(a>=5)if(s-1<0){for(let g=0;g>s;g--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let c=i!==0,l=t+e.integerLen,f=r.reduceRight(function(g,y,m,_){return y=y+g,_[m]=y<10?y:y-10,c&&(_[m]===0&&m>=l?_.pop():c=!1),y>=10?1:0},0);f&&(r.unshift(f),e.integerLen++)}function zu(e){let t=parseInt(e);if(isNaN(t))throw new x(2305,!1);return t}function rm(e,t){return new x(2100,!1)}var Ob="mediumDate",om=new O(""),im=new O(""),Wu=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??Ob,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Xg(n,s,i||this.locale,a)}catch(s){throw rm(e,s.message)}}static \u0275fac=function(r){return new(r||e)(Y(zr,16),Y(om,24),Y(im,24))};static \u0275pipe=oa({name:"date",type:e,pure:!0})}return e})();var ni=(()=>{class e{_locale;constructor(n){this._locale=n}transform(n,r,o){if(!kb(n))return null;o||=this._locale;try{let i=Rb(n);return nm(i,o,r)}catch(i){throw rm(e,i.message)}}static \u0275fac=function(r){return new(r||e)(Y(zr,16))};static \u0275pipe=oa({name:"number",type:e,pure:!0})}return e})();function kb(e){return!(e==null||e===""||e!==e)}function Rb(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new x(2309,!1);return e}var Cn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=yn({type:e});static \u0275inj=Wt({})}return e})();function ri(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()!==t)continue;let s=i;try{s=decodeURIComponent(i)}catch{}return s.length>1&&s[0]==='"'&&s[s.length-1]==='"'&&(s=s.slice(1,-1)),s}return null}var sm="browser";var oi=class{_doc;constructor(t){this._doc=t}manager},ya=(()=>{class e extends oi{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(H(Ne))};static \u0275prov=Q({token:e,factory:e.\u0275fac})}return e})(),Ca=new O(""),Ku=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof ya));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof ya);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new x(-5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(H(Ca),H(_e))};static \u0275prov=Q({token:e,factory:e.\u0275fac})}return e})(),Zu="ng-app-id";function am(e){for(let t of e)t.remove()}function cm(e,t){let n=t.createElement("style");return n.textContent=e,n}function Lb(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Zu}="${t}"],link[${Zu}="${t}"]`);if(!o||o.length===0)return!1;for(let i of o)i.removeAttribute(Zu),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]});return!0}function Qu(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Ju=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,Lb(n,r,this.inline,this.external)&&this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,cm);r?.forEach(o=>this.addUsage(o,this.external,Qu))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(am(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])am(n);this.hosts.clear()}addHost(n){if(!this.hosts.has(n)){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,cm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Qu(r,this.doc)))}}removeHost(n){this.hosts.delete(n);for(let r of[...this.inline.values(),...this.external.values()]){let o=[];for(let i of r.elements)i.parentNode===n?i.remove():o.push(i);r.elements=o}}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(H(Ne),H(xo),H(Mo,8),H(Io))};static \u0275prov=Q({token:e,factory:e.\u0275fac})}return e})(),Yu={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Xu=/%COMP%/g;var um="%COMP%",Vb=`_nghost-${um}`,jb=`_ngcontent-${um}`,Bb=!0,Hb=new O("",{factory:()=>Bb}),Ub=new O("");function $b(e){return jb.replace(Xu,e)}function zb(e){return Vb.replace(Xu,e)}function dm(e,t){return t.map(n=>n.replace(Xu,e))}var ed=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(n,r,o,i,s,a,c=null,l=null,f=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=l,this.cssVarNamespace=f??"",this.defaultRenderer=new ii(n,s,a,this.tracingService,this.cssVarNamespace)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof _a?o.applyToHost(n):o instanceof si&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,g=this.tracingService;switch(r.encapsulation){case _t.Emulated:i=new _a(c,l,r,this.appId,f,s,a,g,this.cssVarNamespace);break;case _t.ShadowDom:return new va(c,n,r,s,a,this.nonce,g,this.cssVarNamespace,l);case _t.ExperimentalIsolatedShadowDom:return new va(c,n,r,s,a,this.nonce,g,this.cssVarNamespace);default:i=new si(c,l,r,f,s,a,g,this.cssVarNamespace);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(H(Ku),H(Xn),H(xo),H(Hb),H(Ne),H(_e),H(Mo),H(Jt,8),H(Ub,8))};static \u0275prov=Q({token:e,factory:e.\u0275fac})}return e})(),ii=class{eventManager;doc;ngZone;tracingService;cssVarNamespace;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i=""){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o,this.cssVarNamespace=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Yu[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(lm(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){if(t){let o=lm(t)?t.content:t;if(r!=null&&r.parentNode!==o)throw new x(-5106,!1);o.insertBefore(n,r)}}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new x(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Yu[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Yu[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){let i=n.startsWith("--");i&&(n=n.replace("%NS%",this.cssVarNamespace)),i||o&(Ft.DashCase|Ft.Important)?t.style.setProperty(n,r,o&Ft.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){let o=n.startsWith("--");o&&(n=n.replace("%NS%",this.cssVarNamespace)),o||r&Ft.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=wt().getGlobalEventTarget(this.doc,t),!t))throw new x(-5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function lm(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var va=class extends ii{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c,l){super(t,o,i,a,c),this.hostEl=n,this.sharedStylesHost=l,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let f=r.styles;f=dm(r.id,f).map(y=>y.replace(/%NS%/g,c));for(let y of f){let m=document.createElement("style");s&&m.setAttribute("nonce",s),m.textContent=y,this.shadowRoot.appendChild(m)}let g=r.getExternalStyles?.();if(g)for(let y of g){let m=Qu(y,o);s&&m.setAttribute("nonce",s),this.shadowRoot.appendChild(m)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},si=class extends ii{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,l){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let f=r.styles,g=l?dm(l,f):f;this.styles=g.map(y=>y.replace(/%NS%/g,c)),this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&gn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},_a=class extends si{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,l){let f=o+"-"+r.id;super(t,n,r,i,s,a,c,l,f),this.contentAttr=$b(f),this.hostAttr=zb(f)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Da=class e extends Ko{supportsDOMEvents=!0;static makeCurrent(){ju(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=Gb();return n==null?null:Wb(n)}resetBaseElement(){ai=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ri(document.cookie,t)}},ai=null;function Gb(){return ai=ai||document.head.querySelector("base"),ai?ai.getAttribute("href"):null}function Wb(e){return new URL(e,document.baseURI).pathname}var fm=["alt","control","meta","shift"],qb={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Zb={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},pm=(()=>{class e extends oi{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>wt().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),fm.forEach(l=>{let f=r.indexOf(l);f>-1&&(r.splice(f,1),s+=l+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=qb[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),fm.forEach(s=>{if(s!==o){let a=Zb[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(H(Ne))};static \u0275prov=Q({token:e,factory:e.\u0275fac})}return e})();async function td(e,t){return Vg(Yb(e,t))}function Yb(e,t){return{platformRef:t?.platformRef,appProviders:[...eE,...e?.providers??[]],platformProviders:Xb}}function Qb(){Da.makeCurrent()}function Kb(){return new Mt}function Jb(){return ru(document),document}var Xb=[{provide:Io,useValue:sm},{provide:Es,useValue:Qb,multi:!0},{provide:Ne,useFactory:Jb}];var eE=[{provide:Do,useValue:"root"},{provide:Mt,useFactory:Kb},{provide:Ca,useClass:ya,multi:!0},{provide:Ca,useClass:pm,multi:!0},ed,{provide:Xn,useClass:Ju},{provide:Ju,useExisting:Xn},Ku,{provide:Yn,useExisting:ed},[]];var sn=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
- `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init();for(let[n,r]of t.headers.entries())this.headers.set(n,r),this.normalizedNames.set(n,t.normalizedNames.get(n))}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=t.op==="a"?(this.headers.get(n)||[]).slice():[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(i===void 0)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=Array.isArray(i)?i:[i],a=this.headers.get(n);if(!a)return;a=a.filter(c=>s.indexOf(c)===-1),a.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,a)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Ea=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},wa=class{encodeKey(t){return hm(t)}encodeValue(t){return hm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function tE(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var nE=/%(\d[a-f0-9])/gi,rE={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function hm(e){return encodeURIComponent(e).replace(nE,(t,n)=>rE[n]??t)}function ba(e){return`${e}`}var on=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new wa,t.fromString){if(t.fromObject)throw new x(2805,!1);this.map=tE(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(ba):[ba(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[t,n]of this.cloneFrom.map.entries())this.map.set(t,n);this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=t.op==="a"?(this.map.get(t.param)||[]).slice():[];n.push(ba(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=(this.map.get(t.param)||[]).slice(),o=r.indexOf(ba(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null}}};function oE(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function gm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function mm(e){return typeof Blob<"u"&&e instanceof Blob}function ym(e){return typeof FormData<"u"&&e instanceof FormData}function iE(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var nd="Content-Type",vm="Accept",Dm="text/plain",bm="application/json",sE=`${bm}, ${Dm}, */*`,Gr=class e{url;body=null;headers;context;reportProgress=!1;reportUploadProgress=!1;reportDownloadProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(oE(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.reportUploadProgress=!!i.reportUploadProgress,this.reportDownloadProgress=!!i.reportDownloadProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new x(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new sn,this.context??=new Ea,!this.params)this.params=new on,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n,c="",l=n.indexOf("#");l!==-1&&(c=n.substring(l),a=n.substring(0,l));let f=a.indexOf("?"),g=f===-1?"?":f<a.length-1?"&":"";this.urlWithParams=a+g+s+c}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||gm(this.body)||mm(this.body)||ym(this.body)||iE(this.body)?this.body:this.body instanceof on?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||ym(this.body)?null:mm(this.body)?this.body.type||null:gm(this.body)?null:typeof this.body=="string"?Dm:this.body instanceof on?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?bm:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,l=t.redirect||this.redirect,f=t.credentials||this.credentials,g=t.referrer??this.referrer,y=t.integrity||this.integrity,m=t.referrerPolicy||this.referrerPolicy,_=t.transferCache??this.transferCache,w=t.timeout??this.timeout,A=t.body!==void 0?t.body:this.body,P=t.withCredentials??this.withCredentials,ce=t.reportProgress??this.reportProgress,Ye=t.reportUploadProgress??this.reportUploadProgress,tt=t.reportDownloadProgress??this.reportDownloadProgress,Qe=t.headers||this.headers,nt=t.params||this.params,Ht=t.context??this.context;return t.setHeaders!==void 0&&(Qe=Object.keys(t.setHeaders).reduce((Oe,xt)=>Oe.set(xt,t.setHeaders[xt]),Qe)),t.setParams&&(nt=Object.keys(t.setParams).reduce((Oe,xt)=>Oe.set(xt,t.setParams[xt]),nt)),new e(n,r,A,{params:nt,headers:Qe,context:Ht,reportProgress:ce,reportUploadProgress:Ye,reportDownloadProgress:tt,responseType:o,withCredentials:P,transferCache:_,keepalive:i,cache:a,priority:s,timeout:w,mode:c,redirect:l,credentials:f,referrer:g,integrity:y,referrerPolicy:m})}},sr=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(sr||{}),Wr=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new sn,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},Sa=class e extends Wr{constructor(t={}){super(t)}type=sr.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},ci=class e extends Wr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=sr.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},ir=class extends Wr{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},aE=200;var cE=/^\)\]\}',?\n/,IV=1024*1024,Em=new O("",{factory:()=>null}),qr=(()=>{class e{fetchImpl=D(od,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=D(_e);destroyRef=D(Ke);maxResponseSize=D(Em);handle(n){return new Z(r=>{let o=new AbortController,i=!1,s={next:c=>{c.type===sr.Response&&(i=!0),r.next(c)},error:c=>{i=!0,r.error(c)},complete:()=>{i=!0,r.complete()}};this.doRequest(n,o.signal,s).then(id,c=>s.error(new ir({error:c})));let a;return n.timeout&&(a=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"))},n.timeout))),()=>{a!==void 0&&clearTimeout(a),!i&&!o.signal.aborted&&o.abort()}})}async doRequest(n,r,o){let i=this.createRequestInit(n),s;try{let A=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,V({signal:r},i)));lE(A),o.next({type:sr.Sent}),s=await A}catch(A){o.error(new ir({error:A,status:A.status??0,statusText:A.statusText,url:n.urlWithParams,headers:A.headers}));return}let a=new sn(s.headers),c=s.statusText,l=s.url||n.urlWithParams,f=s.status,g=null,y=n.reportProgress||n.reportDownloadProgress;if(y&&o.next(new Sa({headers:a,status:f,statusText:c,url:l})),s.body){let A=s.headers.get(nd)??"",P=s.headers.get("content-length"),ce=P!==null?Number(P):NaN;this.maxResponseSize!==null&&Number.isFinite(ce)&&ce>this.maxResponseSize&&(await s.body.cancel(),_m(this.maxResponseSize));let Ye=[],tt=s.body.getReader(),Qe=0,nt,Ht,Oe=typeof Zone<"u"&&Zone.current,xt=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await tt.cancel(),xt=!0;break}let{done:Wa,value:qa}=await tt.read();if(Wa)break;if(Ye.push(qa),Qe+=qa.length,this.maxResponseSize!==null&&Qe>this.maxResponseSize&&(await tt.cancel(),_m(this.maxResponseSize)),y){Ht=n.responseType==="text"?(Ht??"")+(nt??=Cm(A)).decode(qa,{stream:!0}):void 0;let Nd=()=>o.next({type:sr.DownloadProgress,total:Number.isFinite(ce)?ce:void 0,loaded:Qe,partialText:Ht});Oe?Oe.run(Nd):Nd()}}}),xt){o.complete();return}let hy=this.concatChunks(Ye,Qe);try{g=this.parseBody(n,hy,A,f)}catch(Wa){o.error(new ir({error:Wa,headers:new sn(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}f===0&&(f=g?aE:0);let m=f>=200&&f<300,_=s.redirected,w=s.type;m?(o.next(new ci({body:g,headers:a,status:f,statusText:c,url:l,redirected:_,responseType:w})),o.complete()):o.error(new ir({error:g,headers:a,status:f,statusText:c,url:l,redirected:_,responseType:w}))}parseBody(n,r,o,i){switch(n.responseType){case"json":let s=new TextDecoder().decode(r).replace(cE,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(i<200||i>=300)return s;throw a}case"text":return Cm(o).decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){if(n.reportUploadProgress)throw new x(2824,!1);let r={},o;if(o=n.credentials,n.withCredentials&&(o="include"),n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has(vm)||(r[vm]=sE),!n.headers.has(nd)){let i=n.detectContentTypeHeader();i!==null&&(r[nd]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity,referrerPolicy:n.referrerPolicy}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Kt({token:e,factory:e.\u0275fac})}return e})(),od=class{};function id(){}function lE(e){e.then(id,id)}function _m(e){throw new x(-2825,!1)}var uE=/charset=\s*["']?([^;"'\s]+)["']?/i;function Cm(e){let t=e.match(uE);if(t!==null)try{return new TextDecoder(t[1])}catch{}return new TextDecoder}var dE=new O("",{factory:()=>!0}),fE="XSRF-TOKEN",pE=new O("",{factory:()=>fE}),hE="X-XSRF-TOKEN",gE=new O("",{factory:()=>hE}),mE=(()=>{class e{cookieName=D(pE);doc=D(Ne);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ri(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Kt({token:e,factory:e.\u0275fac})}return e})(),wm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Q({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=H(mE),o},providedIn:"root"})}return e})();function Sm(e,t){if(!D(dE)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=D(la).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch{return t(e)}let n=D(wm).getToken(),r=D(gE);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function yE(e,t){return t(e)}function vE(e,t,n){return(r,o)=>Sr(n,()=>t(r,i=>e(i,o)))}var sd=new O("",{factory:()=>[Sm]}),xm=new O(""),Im=new O("",{factory:()=>!0});var Ia=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Q({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=H(qr),o},providedIn:"root"})}return e})();var xa=(()=>{class e{backend;injector;chain=null;pendingTasks=D(xs);contributeToStability=D(Im);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let o=this.injector.get(Ma,null,{skipSelf:!0}),i=o!==null&&this.backend===o,s=this.injector.get(xm,[],i?{self:!0}:void 0),a=Array.from(new Set([...this.injector.get(sd),...s]));this.chain=a.reduceRight((c,l)=>vE(c,l,this.injector),yE)}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return qe(()=>r(n,i=>this.backend.handle(i))).pipe(yc(o))}else return qe(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)(H(Ia),H(Fe))};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ma=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Q({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=H(xa),o},providedIn:"root"})}return e})();function rd(e,t){return V({body:t},e)}var Ta=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Gr)i=n;else{let c;o.headers instanceof sn?c=o.headers:c=new sn(o.headers);let l;o.params&&(o.params instanceof on?l=o.params:l=new on({fromObject:o.params})),i=new Gr(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let s=fc(i).pipe(mc(c=>this.handler.handle(c)));if(n instanceof Gr||o.observe==="events")return s;let a=s.pipe(gc(c=>c instanceof ci));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(be(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new x(2806,!1);return c.body}));case"blob":return a.pipe(be(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new x(2807,!1);return c.body}));case"text":return a.pipe(be(c=>{if(c.body!==null&&typeof c.body!="string")throw new x(2808,!1);return c.body}));default:return a.pipe(be(c=>c.body))}case"response":return a;default:throw new x(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new on().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,rd(o,r))}post(n,r,o={}){return this.request("POST",n,rd(o,r))}put(n,r,o={}){return this.request("PUT",n,rd(o,r))}static \u0275fac=function(r){return new(r||e)(H(Ma))};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Na=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e[e.Xhr=7]="Xhr",e})(Na||{});function Mm(e,t){return{\u0275kind:e,\u0275providers:t}}function ad(...e){let t=[Ta,qr,xa,{provide:Ma,useExisting:xa},{provide:Ia,useFactory:()=>D(qr)},{provide:sd,useValue:Sm,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return Er(t)}function cd(e){return Mm(Na.Interceptors,e.map(t=>({provide:sd,useValue:t,multi:!0})))}function ld(){return Mm(Na.Fetch,[qr,{provide:Ia,useExisting:qr}])}var Zr=new O("AASTRIKA_CONFIG");var jt=class e{http=D(Ta);config=D(Zr);base=this.config.apiBase;studio=`${this.base}/v1/studio`;assessment=`${this.base}/v1/quiz`;usage=`${this.base}/v1/usage`;auth=`${this.base}/auth`;currentUser=L(null);creator(){return this.config.creator?.()??this.currentUser()?.username??null}me(){return this.http.get(`${this.auth}/me`)}login(t,n){return this.http.post(`${this.auth}/login`,{username:t,password:n})}logout(){return this.http.post(`${this.auth}/logout`,{})}voices(){return this.http.get(`${this.studio}/list-voices`)}uploadDoc(t){let n=new FormData;return n.append("file",t),n.append("kind","document"),this.http.post(`${this.studio}/upload`,n)}planEdits(t){return this.http.post(`${this.studio}/generate-plan`,t)}plan(t){return this.http.post(`${this.studio}/generate-plan`,t)}uploadReference(t){let n=new FormData;return n.append("file",t),n.append("kind","reference-video"),this.http.post(`${this.studio}/upload`,n)}uploadImage(t){let n=new FormData;return n.append("file",t),n.append("kind","image"),this.http.post(`${this.studio}/upload`,n)}reviseplan(t,n){return this.http.patch(`${this.studio}/revise-plan/${t}`,n)}generateVideo(t,n={}){return this.http.post(`${this.studio}/generate-video/${t}`,n)}studioJobs(){return this.http.get(`${this.studio}/list-videos`)}job(t){return this.http.get(`${this.studio}/get-video/${t}`)}downloadVideoUrl(t){return this.http.get(`${this.studio}/download-video/${t}?as=url`)}downloadVideoHref(t){return`${this.studio}/download-video/${t}`}deleteVideo(t){return this.http.delete(`${this.studio}/delete-video/${t}`)}languages(){return this.http.get(`${this.assessment}/languages`)}assessmentJobs(){return this.http.get(`${this.assessment}/list`)}generateAssessment(t){return this.http.post(`${this.assessment}/generate`,t)}readSources(t,n,r){let o=new FormData;for(let i of t)o.append("files",i);return n.trim()&&o.append("links",n),r&&o.append("language",r),this.http.post(`${this.assessment}/upload`,o)}saveAssessment(t,n){return this.http.patch(`${this.assessment}/update/${t}`,{assessment:n})}exportUrl(t,n="xlsx"){return this.http.get(`${this.assessment}/export/${t}?format=${n}&as=url`)}exportHref(t,n="xlsx"){return`${this.assessment}/export/${t}?format=${n}`}deleteQuiz(t){return this.http.delete(`${this.assessment}/delete/${t}`)}usageReport(t={}){let n=Object.fromEntries(Object.entries(t).filter(([,r])=>r!=null&&r!==""));return this.http.post(`${this.usage}/get-report`,n)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})};function ud(e){return e.video===!0}var _E="x-aastrika-creator",Tm=(e,t)=>{let n=D(Zr),r=D(jt).creator(),o={};return r&&(o[_E]=r),n.getAuthHeaders?Ut(Promise.resolve(n.getAuthHeaders())).pipe(An(i=>t(e.clone({setHeaders:V(V({},o),i)})))):t(Object.keys(o).length?e.clone({setHeaders:o}):e)};var Nm={apiBase:""},Aa=Nm,Am=!1;function CE(){if(!Am)throw new Error(`Aastrika: configure() was never called. A host must supply at least apiBase:
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n});function go(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Ee=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(U(r))try{r()}catch(i){t=i instanceof Pi?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Zd(i)}catch(s){t=t??[],s instanceof Pi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Pi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Zd(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&go(n,t)}remove(t){let{_finalizers:n}=this;n&&go(n,t),t instanceof e&&t._removeParent(this)}};Ee.EMPTY=(()=>{let e=new Ee;return e.closed=!0,e})();var lc=Ee.EMPTY;function Fi(e){return e instanceof Ee||e&&"closed"in e&&U(e.remove)&&U(e.add)&&U(e.unsubscribe)}function Zd(e){U(e)?e():e.unsubscribe()}var ht={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var _r={setTimeout(e,t,...n){let{delegate:r}=_r;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=_r;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Li(e){_r.setTimeout(()=>{let{onUnhandledError:t}=ht;if(t)t(e);else throw e})}function mo(){}var Yd=uc("C",void 0,void 0);function Qd(e){return uc("E",void 0,e)}function Kd(e){return uc("N",e,void 0)}function uc(e,t,n){return{kind:e,value:t,error:n}}var On=null;function Cr(e){if(ht.useDeprecatedSynchronousErrorHandling){let t=!On;if(t&&(On={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=On;if(On=null,n)throw r}}else e()}function Jd(e){ht.useDeprecatedSynchronousErrorHandling&&On&&(On.errorThrown=!0,On.error=e)}var kn=class extends Ee{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Fi(t)&&t.add(this)):this.destination=Ly}static create(t,n,r){return new br(t,n,r)}next(t){this.isStopped?fc(Kd(t),this):this._next(t)}error(t){this.isStopped?fc(Qd(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?fc(Yd,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Py=Function.prototype.bind;function dc(e,t){return Py.call(e,t)}var pc=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Vi(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Vi(r)}else Vi(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Vi(n)}}},br=class extends kn{constructor(t,n,r){super();let o;if(U(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ht.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&dc(t.next,i),error:t.error&&dc(t.error,i),complete:t.complete&&dc(t.complete,i)}):o=t}this.destination=new pc(o)}};function Vi(e){ht.useDeprecatedSynchronousErrorHandling?Jd(e):Li(e)}function Fy(e){throw e}function fc(e,t){let{onStoppedNotification:n}=ht;n&&_r.setTimeout(()=>n(e,t))}var Ly={closed:!0,next:mo,error:Fy,complete:mo};var Dr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ji(e){return e}function Xd(e){return e.length===0?ji:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var q=class e{constructor(t){t&&(this._subscribe=t)}lift(t){let n=new e;return n.source=this,n.operator=t,n}subscribe(t,n,r){let o=jy(t)?t:new br(t,n,r);return Cr(()=>{let{operator:i,source:s}=this;o.add(i?i.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(n){t.error(n)}}forEach(t,n){return n=ef(n),new n((r,o)=>{let i=new br({next:s=>{try{t(s)}catch(a){o(a),i.unsubscribe()}},error:o,complete:r});this.subscribe(i)})}_subscribe(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)}[Dr](){return this}pipe(...t){return Xd(t)(this)}toPromise(t){return t=ef(t),new t((n,r)=>{let o;this.subscribe(i=>o=i,i=>r(i),()=>n(o))})}};q.create=e=>new q(e);function ef(e){var t;return(t=e??ht.Promise)!==null&&t!==void 0?t:Promise}function Vy(e){return e&&U(e.next)&&U(e.error)&&U(e.complete)}function jy(e){return e&&e instanceof kn||Vy(e)&&Fi(e)}function By(e){return U(e?.lift)}function Te(e){return t=>{if(By(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ne(e,t,n,r,o){return new hc(e,t,n,r,o)}var hc=class extends kn{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var tf=Ri(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Ae=class extends q{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){let n=new Bi(this,this);return n.operator=t,n}_throwIfClosed(){if(this.closed)throw new tf}next(t){Cr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(t)}})}error(t){Cr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;let{observers:n}=this;for(;n.length;)n.shift().error(t)}})}complete(){Cr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){let{hasError:n,isStopped:r,observers:o}=this;return n||r?lc:(this.currentObservers=null,o.push(t),new Ee(()=>{this.currentObservers=null,go(o,t)}))}_checkFinalizedStatuses(t){let{hasError:n,thrownError:r,isStopped:o}=this;n?t.error(r):o&&t.complete()}asObservable(){let t=new q;return t.source=this,t}};Ae.create=(e,t)=>new Bi(e,t);var Bi=class extends Ae{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:lc}};var yo=class extends Ae{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var gc={now(){return(gc.delegate||Date).now()},delegate:void 0};var Er=class extends Ae{constructor(t=1/0,n=1/0,r=gc){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var nf=new q(e=>e.complete());function rf(e){return e&&U(e.schedule)}function mc(e){return e[e.length-1]}function of(e){return U(mc(e))?e.pop():void 0}function Hi(e){return rf(mc(e))?e.pop():void 0}function sf(e,t){return typeof mc(e)=="number"?e.pop():t}function cf(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(f){try{l(r.next(f))}catch(g){s(g)}}function c(f){try{l(r.throw(f))}catch(g){s(g)}}function l(f){f.done?i(f.value):o(f.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function af(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Rn(e){return this instanceof Rn?(this.v=e,this):new Rn(e)}function lf(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(m){return function(_){return Promise.resolve(_).then(m,g)}}function a(m,_){r[m]&&(o[m]=function(w){return new Promise(function(O,P){i.push([m,w,O,P])>1||c(m,w)})},_&&(o[m]=_(o[m])))}function c(m,_){try{l(r[m](_))}catch(w){y(i[0][3],w)}}function l(m){m.value instanceof Rn?Promise.resolve(m.value.v).then(f,g):y(i[0][2],m)}function f(m){c("next",m)}function g(m){c("throw",m)}function y(m,_){m(_),i.shift(),i.length&&c(i[0][0],i[0][1])}}function uf(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof af=="function"?af(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var Ui=(e=>e&&typeof e.length=="number"&&typeof e!="function");function $i(e){return U(e?.then)}function zi(e){return U(e[Dr])}function Gi(e){return Symbol.asyncIterator&&U(e?.[Symbol.asyncIterator])}function Wi(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Hy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var qi=Hy();function Zi(e){return U(e?.[qi])}function Yi(e){return lf(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Rn(n.read());if(o)return yield Rn(void 0);yield yield Rn(r)}}finally{n.releaseLock()}})}function Qi(e){return U(e?.getReader)}function Ce(e){if(e instanceof q)return e;if(e!=null){if(zi(e))return Uy(e);if(Ui(e))return $y(e);if($i(e))return zy(e);if(Gi(e))return df(e);if(Zi(e))return Gy(e);if(Qi(e))return Wy(e)}throw Wi(e)}function Uy(e){return new q(t=>{let n=e[Dr]();if(U(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function $y(e){return new q(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function zy(e){return new q(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Li)})}function Gy(e){return new q(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function df(e){return new q(t=>{qy(e,t).catch(n=>t.error(n))})}function Wy(e){return df(Yi(e))}function qy(e,t){var n,r,o,i;return cf(this,void 0,void 0,function*(){try{for(n=uf(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function rt(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Ki(e,t=0){return Te((n,r)=>{n.subscribe(Ne(r,o=>rt(r,e,()=>r.next(o),t),()=>rt(r,e,()=>r.complete(),t),o=>rt(r,e,()=>r.error(o),t)))})}function Ji(e,t=0){return Te((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function ff(e,t){return Ce(e).pipe(Ji(t),Ki(t))}function pf(e,t){return Ce(e).pipe(Ji(t),Ki(t))}function hf(e,t){return new q(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function gf(e,t){return new q(n=>{let r;return rt(n,t,()=>{r=e[qi](),rt(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>U(r?.return)&&r.return()})}function Xi(e,t){if(!e)throw new Error("Iterable cannot be null");return new q(n=>{rt(n,t,()=>{let r=e[Symbol.asyncIterator]();rt(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function mf(e,t){return Xi(Yi(e),t)}function yf(e,t){if(e!=null){if(zi(e))return ff(e,t);if(Ui(e))return hf(e,t);if($i(e))return pf(e,t);if(Gi(e))return Xi(e,t);if(Zi(e))return gf(e,t);if(Qi(e))return mf(e,t)}throw Wi(e)}function Gt(e,t){return t?yf(e,t):Ce(e)}function yc(...e){let t=Hi(e);return Gt(e,t)}function we(e,t){return Te((n,r)=>{let o=0;n.subscribe(Ne(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Zy}=Array;function Yy(e,t){return Zy(t)?e(...t):e(t)}function vf(e){return we(t=>Yy(e,t))}var{isArray:Qy}=Array,{getPrototypeOf:Ky,prototype:Jy,keys:Xy}=Object;function _f(e){if(e.length===1){let t=e[0];if(Qy(t))return{args:t,keys:null};if(ev(t)){let n=Xy(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function ev(e){return e&&typeof e=="object"&&Ky(e)===Jy}function Cf(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function bf(e,t,n,r,o,i,s,a){let c=[],l=0,f=0,g=!1,y=()=>{g&&!c.length&&!l&&t.complete()},m=w=>l<r?_(w):c.push(w),_=w=>{i&&t.next(w),l++;let O=!1;Ce(n(w,f++)).subscribe(Ne(t,P=>{o?.(P),i?m(P):t.next(P)},()=>{O=!0},void 0,()=>{if(O)try{for(l--;c.length&&l<r;){let P=c.shift();s?rt(t,s,()=>_(P)):_(P)}y()}catch(P){t.error(P)}}))};return e.subscribe(Ne(t,m,()=>{g=!0,y()})),()=>{a?.()}}function wr(e,t,n=1/0){return U(t)?wr((r,o)=>we((i,s)=>t(r,i,o,s))(Ce(e(r,o))),n):(typeof t=="number"&&(n=t),Te((r,o)=>bf(r,o,e,n)))}function Df(e=1/0){return wr(ji,e)}function vc(...e){let t=of(e),{args:n,keys:r}=_f(e),o=new q(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let f=0;f<s;f++){let g=!1;Ce(n[f]).subscribe(Ne(i,y=>{g||(g=!0,l--),a[f]=y},()=>c--,void 0,()=>{(!c||!g)&&(l||i.next(r?Cf(r,a):a),i.complete())}))}});return t?o.pipe(vf(t)):o}function _c(...e){let t=Hi(e),n=sf(e,1/0),r=e;return r.length?r.length===1?Ce(r[0]):Df(n)(Gt(r,t)):nf}function Cc(e,t){return Te((n,r)=>{let o=0;n.subscribe(Ne(r,i=>e.call(t,i,o++)&&r.next(i)))})}function bc(e,t){return U(t)?wr(e,t,1):wr(e,1)}function Dc(e){return Te((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Pn(e,t){return Te((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(Ne(r,c=>{o?.unsubscribe();let l=0,f=i++;Ce(e(c,f)).subscribe(o=Ne(r,g=>r.next(t?t(c,g,f,l++):g),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Ec(e){return Te((t,n)=>{Ce(e).subscribe(Ne(n,()=>n.complete(),mo)),!n.closed&&t.subscribe(n)})}var ss="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",x=class extends Error{code;constructor(t,n){super(un(t,n)),this.code=t}};function tv(e){return`NG0${Math.abs(e)}`}function un(e,t){return`${tv(e)}${t?": "+t:""}`}function re(e){for(let t in e)if(e[t]===re)return t;throw Error("")}function If(e,t){for(let n in t)Object.hasOwn(t,n)&&!Object.hasOwn(e,n)&&(e[n]=t[n])}function as(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(as).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function cs(e,t){return e?t?`${e} ${t}`:e:t||""}var nv=re({__forward_ref__:re});function He(e){return e.__forward_ref__=He,e}function xe(e){return Fc(e)?e():e}function Fc(e){return typeof e=="function"&&Object.hasOwn(e,nv)&&e.__forward_ref__===He}function Q(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Yt(e){return{providers:e.providers||[],imports:e.imports||[]}}function ls(e){return rv(e,us)}function rv(e,t){return Object.hasOwn(e,t)&&e[t]||null}function ov(e){let t=e?.[us]??null;return t||null}function xc(e){return e&&Object.hasOwn(e,ts)?e[ts]:null}var us=re({\u0275prov:re}),ts=re({\u0275inj:re}),T=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=Q({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Lc(e){return e&&!!e.\u0275providers}var Eo=re({\u0275cmp:re}),wo=re({\u0275dir:re}),Vc=re({\u0275pipe:re});var _o=re({\u0275fac:re}),Bn=re({__NG_ELEMENT_ID__:re}),Ef=re({__NG_ENV_ID__:re});function Qt(e){return Bc(e,"@Component"),e[Eo]||null}function jc(e){return Bc(e,"@Directive"),e[wo]||null}function Mf(e){return Bc(e,"@Pipe"),e[Vc]||null}function Bc(e,t){if(e==null)throw new x(-919,!1)}function Kt(e){return typeof e=="string"?e:e==null?"":String(e)}var Tf=re({ngErrorCode:re}),iv=re({ngErrorMessage:re}),sv=re({ngTokenPath:re});function Hc(e,t){return Nf("",-200,t)}function ds(e,t){throw new x(-201,!1)}function Nf(e,t,n){let r=new x(t,e);return r[Tf]=t,r[iv]=e,n&&(r[sv]=n),r}function av(e){return e[Tf]}var Sc;function Af(){return Sc}function Ve(e){let t=Sc;return Sc=e,t}function Uc(e,t,n){let r=ls(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;ds(e,"")}var Hn=globalThis;var cv={},Fn=cv,lv="__NG_DI_FLAG__",Ic=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Ln(n)||0;try{return this.injector.get(t,r&8?null:Fn,r)}catch(o){if(vr(o))return o;throw o}}};function uv(e,t=0){let n=ki();if(n===void 0)throw new x(-203,!1);if(n===null)return Uc(e,void 0,t);{let r=dv(t),o=n.retrieve(e,r);if(vr(o)){if(r.optional)return null;throw o}return o}}function H(e,t=0){return(Af()||uv)(xe(e),t)}function C(e,t){return H(e,Ln(t))}function Ln(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function dv(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Mc(e){let t=[];for(let n=0;n<e.length;n++){let r=xe(e[n]);if(Array.isArray(r)){if(r.length===0)throw new x(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=fv(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(H(o,i))}else t.push(H(r))}return t}function fv(e){return e[lv]}function ln(e,t){let n=Object.hasOwn(e,_o);return n?e[_o]:null}function Of(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function kf(e){return e.flat(Number.POSITIVE_INFINITY)}function fs(e,t){e.forEach(n=>Array.isArray(n)?fs(n,t):t(n))}function $c(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Rf(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function ps(e,t,n){let r=Ir(e,t);return r>=0?e[r|1]=n:(r=~r,Rf(e,r,t,n)),r}function hs(e,t){let n=Ir(e,t);if(n>=0)return e[n|1]}function Ir(e,t){return pv(e,t,1)}function pv(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var dn={},je=[],So=new T(""),Io=new T("",-1),zc=new T(""),Sr=class{get(t,n=Fn){if(n===Fn){let o=Nf("",-201);throw o.name="\u0275NotFound",o}return n}};function Mr(e){return{\u0275providers:e}}function Pf(...e){return{\u0275providers:Gc(!0,e),\u0275fromNgModule:!0}}function Gc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return fs(t,s=>{let a=s;ns(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Ff(o,i),n}function Ff(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Wc(o,i=>{t(i,r)})}}function ns(e,t,n,r){if(e=xe(e),!e)return!1;let o=null,i=xc(e),s=!i&&Qt(e);if(!i&&!s){let c=e.ngModule;if(i=xc(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)ns(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;fs(i.imports,f=>{ns(f,t,n,r)&&(l||=[],l.push(f))}),l!==void 0&&Ff(l,t)}if(!a){let l=ln(o)||(()=>new o);t({provide:o,useFactory:l,deps:je},o),t({provide:zc,useValue:o,multi:!0},o),t({provide:So,useValue:()=>H(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;Wc(c,f=>{t(f,l)})}}else return!1;return o!==e&&e.providers!==void 0}function Wc(e,t){for(let n of e)Lc(n)&&(n=n.\u0275providers),Array.isArray(n)?Wc(n,t):t(n)}var hv=re({provide:String,useValue:re});function Lf(e){return e!==null&&typeof e=="object"&&hv in e}function gv(e){return!!(e&&e.useExisting)}function mv(e){return!!(e&&e.useFactory)}function Vn(e){return typeof e=="function"}function Vf(e){return!!e.useClass}var Mo=new T(""),es={},wf={},wc;function Tr(){return wc===void 0&&(wc=new Sr),wc}var Be=class{},jn=class extends Be{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Nc(t,s=>this.processProvider(s)),this.records.set(Io,xr(void 0,this)),o.has("environment")&&this.records.set(Be,xr(void 0,this));let i=this.records.get(Mo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(zc,je,{self:!0}))}retrieve(t,n){let r=Ln(n)||0;try{return this.get(t,Fn,r)}catch(o){if(vr(o))return o;throw o}}destroy(){vo(this),this._destroyed=!0;let t=k(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),k(t)}}onDestroy(t){return vo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){vo(this);let n=At(this),r=Ve(void 0),o;try{return t()}finally{At(n),Ve(r)}}get(t,n=Fn,r){if(vo(this),Object.hasOwn(t,Ef))return t[Ef](this);let o=Ln(r),i,s=At(this),a=Ve(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let f=bv(t)&&ls(t);f&&this.injectableDefInScope(f)?l=xr(Tc(t),es):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?Tr():this.parent;return n=o&8&&n===Fn?null:n,c.get(t,n)}catch(c){let l=av(c);throw l===-200||l===-201?new x(l,null):c}finally{Ve(a),At(s)}}resolveInjectorInitializers(){let t=k(null),n=At(this),r=Ve(void 0),o;try{let i=this.get(So,je,{self:!0});for(let s of i)s()}finally{At(n),Ve(r),k(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=xe(t);let n=Vn(t)?t:xe(t&&t.provide),r=vv(t);if(!Vn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=xr(void 0,es,!0),o.factory=()=>Mc(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=k(null);try{if(n.value===wf)throw Hc("");return n.value===es&&(n.value=wf,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Cv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{k(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=xe(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Tc(e){let t=ls(e),n=t!==null?t.factory:ln(e);if(n!==null)return n;if(e instanceof T)throw new x(-204,!1);if(e instanceof Function)return yv(e);throw new x(-204,!1)}function yv(e){if(e.length>0)throw new x(-204,!1);let n=ov(e);return n!==null?()=>n.factory(e):()=>new e}function vv(e){if(Lf(e))return xr(void 0,e.useValue);{let t=qc(e);return xr(t,es)}}function qc(e,t,n){let r;if(Vn(e)){let o=xe(e);return ln(o)||Tc(o)}else if(Lf(e))r=()=>xe(e.useValue);else if(mv(e))r=()=>e.useFactory(...Mc(e.deps||[]));else if(gv(e))r=(o,i)=>H(xe(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=xe(e&&(e.useClass||e.provide));if(_v(e))r=()=>new o(...Mc(e.deps));else return ln(o)||Tc(o)}return r}function vo(e){if(e.destroyed)throw new x(-205,!1)}function xr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function _v(e){return!!e.deps}function Cv(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function bv(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Nc(e,t){for(let n of e)Array.isArray(n)?Nc(n,t):n&&Lc(n)?Nc(n.\u0275providers,t):t(n)}function Nr(e,t){let n;e instanceof jn?(vo(e),n=e):n=new Ic(e);let r,o=At(n),i=Ve(void 0);try{return t()}finally{At(o),Ve(i)}}function jf(){return Af()!==void 0||ki()!=null}var mt=0,N=1,L=2,ve=3,it=4,We=5,Ar=6,Or=7,pe=8,Ot=9,yt=10,ie=11,kr=12,Zc=13,fn=14,Je=15,pn=16,Un=17,kt=18,Rt=19,Yc=20,Wt=21,gs=22,qt=23,Xe=24,$n=25,Pt=26,me=27,Bf=1,Qc=6,zn=7,To=8,Gn=9,de=10;function Jt(e){return Array.isArray(e)&&typeof e[Bf]=="object"}function st(e){return Array.isArray(e)&&e[Bf]===!0}function Kc(e){return(e.flags&4)!==0}function Xt(e){return e.componentOffset>-1}function ms(e){return(e.flags&1)===1}function Ft(e){return!!e.template}function Rr(e){return(e[L]&512)!==0}function Wn(e){return(e[L]&256)===256}var ys=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(ys||{});var Jc="svg",Hf="math";function Se(e){for(;Array.isArray(e);)e=e[mt];return e}function Xc(e,t){return Se(t[e])}function at(e,t){return Se(t[e.index])}function vs(e,t){return e.data[t]}function el(e,t){return e[t]}function tl(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function ct(e,t){let n=t[e];return Jt(n)?n:n[mt]}function Uf(e){return(e[L]&4)===4}function _s(e){return(e[L]&128)===128}function $f(e){return st(e[ve])}function Lt(e,t){return t==null?null:e[t]}function nl(e){e[Un]=0}function Cs(e){e[L]&1024||(e[L]|=1024,_s(e)&&qn(e))}function zf(e,t){for(;e>0;)t=t[fn],e--;return t}function Pr(e){return!!(e[L]&9216||e[Xe]?.dirty)}function bs(e){e[yt].changeDetectionScheduler?.notify(8),e[L]&64&&(e[L]|=1024),Pr(e)&&qn(e)}function qn(e){e[yt].changeDetectionScheduler?.notify(0);let t=Zt(e);for(;t!==null&&!(t[L]&8192||(t[L]|=8192,!_s(t)));)t=Zt(t)}function Ds(e,t){if(Wn(e))throw new x(911,!1);e[Wt]===null&&(e[Wt]=[]),e[Wt].push(t)}function Gf(e,t){if(e[Wt]===null)return;let n=e[Wt].indexOf(t);n!==-1&&e[Wt].splice(n,1)}function Zt(e){let t=e[ve];return st(t)?t[ve]:t}function rl(e){return e[Or]??=[]}function ol(e){return e.cleanup??=[]}function Wf(e,t,n,r){let o=rl(t);o.push(n),e.firstCreatePass&&ol(e).push(r,o.length-1)}var B={lFrame:ip(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ac=!1;function qf(){return B.lFrame.elementDepthCount}function Zf(){B.lFrame.elementDepthCount++}function il(){B.lFrame.elementDepthCount--}function Yf(){return B.bindingsEnabled}function Qf(){return B.skipHydrationRootTNode!==null}function sl(e){return B.skipHydrationRootTNode===e}function al(){B.skipHydrationRootTNode=null}function j(){return B.lFrame.lView}function fe(){return B.lFrame.tView}function I(e){return B.lFrame.contextLView=e,e[pe]}function M(e){return B.lFrame.contextLView=null,e}function Ie(){let e=cl();for(;e!==null&&e.type===64;)e=e.parent;return e}function cl(){return B.lFrame.currentTNode}function Kf(){let e=B.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Fr(e,t){let n=B.lFrame;n.currentTNode=e,n.isParent=t}function ll(){return B.lFrame.isParent}function Jf(){B.lFrame.isParent=!1}function ul(){return Ac}function Co(e){let t=Ac;return Ac=e,t}function Es(){let e=B.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function dl(){return B.lFrame.bindingIndex}function Xf(e){return B.lFrame.bindingIndex=e}function hn(){return B.lFrame.bindingIndex++}function No(e){let t=B.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function ep(){return B.lFrame.inI18n}function tp(e,t){let n=B.lFrame;n.bindingIndex=n.bindingRootIndex=e,ws(t)}function np(){return B.lFrame.currentDirectiveIndex}function ws(e){B.lFrame.currentDirectiveIndex=e}function rp(e){let t=B.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function fl(){return B.lFrame.currentQueryIndex}function xs(e){B.lFrame.currentQueryIndex=e}function Dv(e){let t=e[N];return t.type===2?t.declTNode:t.type===1?e[We]:null}function pl(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Dv(i),o===null||(i=i[fn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=B.lFrame=op();return r.currentTNode=t,r.lView=e,!0}function Ss(e){let t=op(),n=e[N];B.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function op(){let e=B.lFrame,t=e===null?null:e.child;return t===null?ip(e):t}function ip(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function sp(){let e=B.lFrame;return B.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var hl=sp;function Is(){let e=sp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ap(e){return(B.lFrame.contextLView=zf(e,B.lFrame.contextLView))[pe]}function vt(){return B.lFrame.selectedIndex}function gn(e){B.lFrame.selectedIndex=e}function Lr(){let e=B.lFrame;return vs(e.tView,e.selectedIndex)}function Ao(){B.lFrame.currentNamespace=Jc}function Oo(){Ev()}function Ev(){B.lFrame.currentNamespace=null}function gl(){return B.lFrame.currentNamespace}var cp=!0;function Ms(){return cp}function Ts(e){cp=e}function Oc(e,t=null,n=null,r){let o=lp(e,t,n,r);return o.resolveInjectorInitializers(),o}function lp(e,t=null,n=null,r,o=new Set){let i=[n||je,Pf(e)],s;return new jn(i,t||Tr(),s||null,o)}var ke=class e{static THROW_IF_NOT_FOUND=Fn;static NULL=new Sr;static create(t,n){if(Array.isArray(t))return Oc({name:""},n,t,"");{let r=t.name??"";return Oc({name:r},t.parent,t.providers,r)}}static \u0275prov=Q({token:e,providedIn:"any",factory:()=>H(Io)});static __NG_ELEMENT_ID__=-1},Re=new T(""),ue=class{static __NG_ELEMENT_ID__=wv;static __NG_ENV_ID__=t=>t},rs=class extends ue{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Wn(this._lView)}onDestroy(t){let n=this._lView;return Ds(n,t),()=>Gf(n,t)}};function wv(){return new rs(j())}var up=!1,dp=new T(""),Zn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new yo(!1);debugTaskTracker=C(dp,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new q(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=Q({token:e,providedIn:"root",factory:()=>new e})}return e})(),kc=class extends Ae{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,jf()&&(this.destroyRef=C(ue,{optional:!0})??void 0,this.pendingTasks=C(Zn,{optional:!0})??void 0)}emit(t){let n=k(null);try{super.next(t)}finally{k(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof Ee&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Oe=kc;function os(...e){}function ml(e){let t,n;function r(){e=os;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function fp(e){return queueMicrotask(()=>e()),()=>{e=os}}var yl="isAngularZone",bo=yl+"_ID",xv=0,be=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Oe(!1);onMicrotaskEmpty=new Oe(!1);onStable=new Oe(!1);onError=new Oe(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=up}=t;if(typeof Zone>"u")throw new x(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Mv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(yl)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new x(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new x(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Sv,os,os);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Sv={};function vl(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Iv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){ml(()=>{e.callbackScheduled=!1,Rc(e),e.isCheckStableRunning=!0,vl(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Rc(e)}function Mv(e){let t=()=>{Iv(e)},n=xv++;e._inner=e._inner.fork({name:"angular",properties:{[yl]:!0,[bo]:n,[bo+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Tv(c))return r.invokeTask(i,s,a,c);try{return xf(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Sf(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return xf(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Nv(c)&&t(),Sf(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Rc(e),vl(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Rc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function xf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Sf(e){e._nesting--,vl(e)}var Do=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Oe;onMicrotaskEmpty=new Oe;onStable=new Oe;onError=new Oe;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Tv(e){return pp(e,"__ignore_ng_zone__")}function Nv(e){return pp(e,"__scheduler_tick__")}function pp(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var ot=class{_console=console;handleError(t){this._console.error("ERROR",t)}},mn=new T("",{factory:()=>{let e=C(be),t=C(Be),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(ot),n.handleError(r))})}}}),hp={provide:So,useValue:()=>{let e=C(ot,{optional:!0})},multi:!0};function F(e,t){let[n,r,o]=oc(e,t?.equal),i=n,s=i[De];return i.set=r,i.update=o,i.asReadonly=_l.bind(i),i}function _l(){let e=this[De];if(e.readonlyFn===void 0){let t=()=>this();t[De]=e,e.readonlyFn=t}return e.readonlyFn}var ko=new T("",{factory:()=>Av}),Av="ng";var Ns=new T(""),Ro=new T("",{providedIn:"platform",factory:()=>"unknown"});var Po=new T("",{factory:()=>C(Re).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Fo=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Ov}return e})();function Ov(){return new Fo(j(),Ie())}var gt=class{},Lo=new T("",{factory:()=>!0});var Cl=new T(""),As=(()=>{class e{static \u0275prov=Q({token:e,providedIn:"root",factory:()=>new Pc})}return e})(),Pc=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},is=class{[De];constructor(t){this[De]=t}destroy(){this[De].destroy()}};function _t(e,t){let n=t?.injector??C(ke),r=t?.manualCleanup!==!0?n.get(ue):null,o,i=n.get(Fo,null,{optional:!0}),s=n.get(gt);return i!==null?(o=mp(i.view,s,e),r instanceof rs&&r._lView===i.view&&(r=null)):o=Pv(e,n.get(As),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new is(o)}var gp=$(V({},sc),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Co(!1);try{ac(this)}finally{Co(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=k(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],k(e)}}}),kv=$(V({},gp),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(Nn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),Rv=$(V({},gp),{consumerMarkedDirty(){this.view[L]|=8192,qn(this.view),this.notifier.notify(13)},destroy(){if(Nn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[qt]?.delete(this)}});function mp(e,t,n){let r=Object.create(Rv);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=yp(r,n),e[qt]??=new Set,e[qt].add(r),r.consumerMarkedDirty(r),r}function Pv(e,t,n){let r=Object.create(kv);return r.fn=yp(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function yp(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function Yn(e){return typeof e=="function"&&e[De]!==void 0}function Os(e){return Yn(e)&&typeof e.set=="function"}var Vr=(()=>{class e{internalPendingTasks=C(Zn);scheduler=C(gt);errorHandler=C(mn);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r)}catch(o){this.errorHandler(o),r()}}static \u0275prov=Q({token:e,providedIn:"root",factory:()=>new e})}return e})();var ta=Symbol("InputSignalNode#UNSET"),Jp=$(V({},ho),{transformFn:void 0,applyValueToInputSignal(e,t){An(e,t)}});function Qo(e){return{toString:e}.toString()}var Z=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(Z||{}),Vs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Xp(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var eh=null,rr=(()=>{eh=vp;let e=()=>vp;return e.ngInherit=!0,e})();function Wv(){return eh}function vp(e){return e.type.prototype.ngOnChanges&&(e.setInput=Zv),qv}function qv(){let e=th(this),t=e?.current;if(t){let n=e.previous;if(n===dn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Zv(e,t,n,r,o){let i=this.declaredInputs[r],s=th(e)||Yv(e,{previous:dn,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Vs(l&&l.currentValue,n,c===dn),Xp(e,t,o,n)}var Ol="__ngSimpleChanges__";function th(e){return Object.hasOwn(e,Ol)&&e[Ol]||null}function Yv(e,t){return e[Ol]=t}var _p=[];var K=function(e,t=null,n){for(let r=0;r<_p.length;r++){let o=_p[r];o(e,t,n)}};function Qv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Wv()(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Kv(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:f}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),f!=null&&(e.destroyHooks??=[]).push(n,f)}}function Rs(e,t,n){nh(e,t,3,n)}function Ps(e,t,n,r){(e[L]&3)===n&&nh(e,t,n,r)}function bl(e,t){let n=e[L];(n&3)===t&&(n&=16383,n+=1,e[L]=n)}function nh(e,t,n,r){let o=r!==void 0?e[Un]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Un]+=65536),(a<i||i==-1)&&(Jv(e,n,t,c),e[Un]=(e[Un]&4294901760)+c+2),c++}function Cp(e,t){K(Z.LifecycleHookStart,e,t);let n=k(null);try{t.call(e)}finally{k(n),K(Z.LifecycleHookEnd,e,t)}}function Jv(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[L]>>14<e[Un]>>16&&(e[L]&3)===t&&(e[L]+=16384,Cp(a,i)):Cp(a,i)}var Br=-1,Jn=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function Xv(e){return(e.flags&8)!==0}function e0(e){return(e.flags&16)!==0}function t0(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];r0(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function n0(e){return e===3||e===4||e===6}function r0(e){return e.charCodeAt(0)===64}function Hr(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?bp(e,n,o,null,t[++r]):bp(e,n,o,null,null))}}return e}function bp(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function rh(e){return e!==Br}function js(e){return e&32767}function o0(e){return e>>16}function Bs(e,t){let n=o0(e),r=t;for(;n>0;)r=r[fn],n--;return r}var kl=!0;function Hs(e){let t=kl;return kl=e,t}var i0=256,oh=i0-1,ih=5,s0=0,Vt={};function a0(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:Object.hasOwn(n,Bn)&&(r=n[Bn]),r==null&&(r=n[Bn]=s0++);let o=r&oh,i=1<<o;t.data[e+(o>>ih)]|=i}function Us(e,t){let n=sh(e,t);if(n!==-1)return n;let r=t[N];r.firstCreatePass&&(e.injectorIndex=t.length,Dl(r.data,e),Dl(t,null),Dl(r.blueprint,null));let o=au(e,t),i=e.injectorIndex;if(rh(o)){let s=js(o),a=Bs(o,t),c=a[N].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Dl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function sh(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function au(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=dh(o),r===null)return Br;if(n++,o=o[fn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Br}function Rl(e,t,n){a0(e,t,n)}function ah(e,t,n){if(n&8||e!==void 0)return e;ds(t,"NodeInjector")}function ch(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Ot],i=Ve(void 0);try{return o?o.get(t,r,n&8):Uc(t,r,n&8)}finally{Ve(i)}}return ah(r,t,n)}function lh(e,t,n,r=0,o){if(e!==null){if(t[L]&2048&&!(r&2)){let s=d0(e,t,n,r,Vt);if(s!==Vt)return s}let i=uh(e,t,n,r,Vt);if(i!==Vt)return i}return ch(t,n,r,o)}function uh(e,t,n,r,o){let i=l0(n);if(typeof i=="function"){if(!pl(t,e,r))return r&1?ah(o,n,r):ch(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))ds(n);else return s}finally{hl()}}else if(typeof i=="number"){let s=null,a=sh(e,t),c=Br,l=r&1?t[Je][We]:null;for((a===-1||r&4)&&(c=a===-1?au(e,t):t[a+8],c===Br||!Ep(r,!1)?a=-1:(s=t[N],a=js(c),t=Bs(c,t)));a!==-1;){let f=t[N];if(Dp(i,a,f.data)){let g=c0(a,t,n,s,r,l);if(g!==Vt)return g}c=t[a+8],c!==Br&&Ep(r,t[N].data[a+8]===l)&&Dp(i,a,t)?(s=f,a=js(c),t=Bs(c,t)):a=-1}}return o}function c0(e,t,n,r,o,i){let s=t[N],a=s.data[e+8],c=r==null?Xt(a)&&kl:r!=s&&(a.type&3)!==0,l=o&1&&i===a,f=Fs(a,s,n,c,l);return f!==null?Uo(t,s,f,a,o):Vt}function Fs(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,f=i>>20,g=r?a:a+f,y=o?a+f:l;for(let m=g;m<y;m++){let _=s[m];if(m<c&&n===_||m>=c&&_.type===n)return m}if(o){let m=s[c];if(m&&Ft(m)&&m.type===n)return c}return null}function Uo(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Jn){let a=i;if(a.resolving)throw Hc("");let c=Hs(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],f,g=a.injectImpl?Ve(a.injectImpl):null,y=pl(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Qv(n,s[n],t)}finally{g!==null&&Ve(g),Hs(c),a.resolving=!1,hl()}}return i}function l0(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=Object.hasOwn(e,Bn)?e[Bn]:void 0;return typeof t=="number"?t>=0?t&oh:u0:t}function Dp(e,t,n){let r=1<<e;return!!(n[t+(e>>ih)]&r)}function Ep(e,t){return!(e&2)&&!(e&1&&t)}var yn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return lh(this._tNode,this._lView,t,Ln(r),n)}};function u0(){return new yn(Ie(),j())}function Et(e){return Qo(()=>{let t=e.prototype.constructor,n=t[_o]||Pl(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[_o]||Pl(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Pl(e){return Fc(e)?()=>{let t=Pl(xe(e));return t&&t()}:ln(e)}function d0(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[L]&2048&&!Rr(s);){let a=uh(i,s,n,r|2,Vt);if(a!==Vt)return a;r&=-5;let c=i.parent;if(!c){let l=s[Yc];if(l){let f=l.get(n,Vt,r);if(f!==Vt)return f}c=dh(s),s=s[fn]}i=c}return o}function dh(e){let t=e[N],n=t.type;return n===2?t.declTNode:n===1?e[We]:null}function en(e){return{token:e.token,providedIn:e.autoProvided===!1?null:"root",factory:e.factory,value:void 0}}function f0(){return Gr(Ie(),j())}function Gr(e,t){return new wt(at(e,t))}var wt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=f0}return e})();function p0(e){return e instanceof wt?e.nativeElement:e}function h0(){return this._results[Symbol.iterator]()}var $s=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Ae}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=kf(t);(this._changesDetected=!Of(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=h0};function fh(e){return(e.flags&128)===128}var cu=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(cu||{}),ph=new Map,g0=0;function m0(){return g0++}function y0(e){ph.set(e[Rt],e)}function Fl(e){ph.delete(e[Rt])}var wp="__ngContext__";function Ur(e,t){Jt(t)?(e[wp]=t[Rt],y0(t)):e[wp]=t}function hh(e){return mh(e[kr])}function gh(e){return mh(e[it])}function mh(e){for(;e!==null&&!st(e);)e=e[it];return e}var Ll;function lu(e){Ll=e}function yh(){if(Ll!==void 0)return Ll;if(typeof document<"u")return document;throw new x(210,!1)}var vh="r";var _h="di";var Ch=!1,bh=new T("",{factory:()=>Ch});var xp=new WeakMap;function v0(e,t){if(e==null||typeof e!="object")return;let n=xp.get(e);n||(n=new WeakSet,xp.set(e,n)),n.add(t)}var _0=(e,t,n,r)=>{};function C0(e,t,n,r){_0(e,t,n,r)}function uu(e){return(e.flags&32)===32}var b0=()=>null;function Dh(e,t,n=!1){return b0(e,t,n)}function Eh(e,t){let n=e.contentQueries;if(n!==null){let r=k(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];xs(i),a.contentQueries(2,t[s],s)}}}finally{k(r)}}}function Vl(e,t,n){xs(0);let r=k(null);try{t(e,n)}finally{k(r)}}function wh(e,t,n){if(Kc(t)){let r=k(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{k(r)}}}var Dt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(Dt||{});var zs=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ss})`}};function $o(e){return e instanceof zs?e.changingThisBreaksApplicationSecurity:e}function xh(e,t){let n=Sh(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ss})`)}return n===t}function Sh(e){return e instanceof zs&&e.getTypeName()||null}var D0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ih(e){return e=String(e),e.match(D0)?e:"unsafe:"+e}function E0(e,t){return e.createText(t)}function w0(e,t,n){e.setValue(t,n)}function Mh(e,t,n){return e.createElement(t,n)}function Qn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Th(e,t,n){e.appendChild(t,n)}function Sp(e,t,n,r,o){r!==null?Qn(e,t,n,r,o):Th(e,t,n)}function Nh(e,t,n,r){e.removeChild(null,t,n,r)}function x0(e,t,n){e.setAttribute(t,"style",n)}function S0(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Ah(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&t0(e,t,r),o!==null&&S0(e,t,o),i!==null&&x0(e,t,i)}function na(e){let t=I0();return t?t.sanitize(ys.URL,e)||"":xh(e,"URL")?$o(e):Ih(Kt(e))}function I0(){let e=j();return e&&e[yt].sanitizer}function M0(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Oh="ng-template";function T0(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&M0(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(du(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function du(e){return e.type===4&&e.value!==Oh}function N0(e,t,n){let r=e.type===4&&!n?Oh:e.value;return t===r}function A0(e,t,n){let r=4,o=e.attrs,i=o!==null?R0(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!Ct(r)&&!Ct(c))return!1;if(s&&Ct(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!N0(e,c,n)||c===""&&t.length===1){if(Ct(r))return!1;s=!0}}else if(r&8){if(o===null||!T0(e,o,c,n)){if(Ct(r))return!1;s=!0}}else{let l=t[++a],f=O0(c,o,du(e),n);if(f===-1){if(Ct(r))return!1;s=!0;continue}if(l!==""){let g;if(f>i?g="":g=o[f+1].toLowerCase(),r&2&&l!==g){if(Ct(r))return!1;s=!0}}}}return Ct(r)||s}function Ct(e){return(e&1)===0}function O0(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return P0(t,e)}function k0(e,t,n=!1){for(let r=0;r<t.length;r++)if(A0(e,t[r],n))return!0;return!1}function R0(e){for(let t=0;t<e.length;t++){let n=e[t];if(n0(n))return t}return e.length}function P0(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Ip(e,t){return e?":not("+t.trim()+")":t}function F0(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Ct(s)&&(t+=Ip(i,o),o=""),r=s,i=i||!Ct(r);n++}return o!==""&&(t+=Ip(i,o)),t}function L0(e){return e.map(F0).join(",")}function V0(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!Ct(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Me={},jt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(jt||{}),j0;function fu(e,t){return j0(e,t)}var vn=new Set;var gA=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var jl=new WeakMap;function kh(e){return e?e[fn]??e:null}var jo=new WeakSet;function B0(e,t,n){let r=jl.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=kh(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:l}=r[a],f=c.parentNode;c===t?(r.splice(a,1),jo.add(c),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):i&&c===i?(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),c.parentNode?.removeChild(c)):f&&o&&f!==o&&(s===null||l===null||s===l)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),c.parentNode?.removeChild(c))}}function H0(e,t,n){let r=kh(n),o=jl.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):jl.set(e,[{el:t,declarationView:r}])}var ra=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(ra||{}),tn=new T(""),Mp=new Set;function nn(e){Mp.has(e)||(Mp.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var pu=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=Q({token:e,providedIn:"root",factory:()=>new e})}return e})(),Rh=[0,1,2,3],Ph=(()=>{class e{ngZone=C(be);scheduler=C(gt);errorHandler=C(ot,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){C(tn,{optional:!0})}execute(){let n=this.sequences.size>0;n&&K(Z.AfterRenderHooksStart),this.executing=!0;for(let r of Rh)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&K(Z.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[$n]??=[]).push(n),qn(r),r[L]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(ra.AFTER_NEXT_RENDER,n):n()}static \u0275prov=Q({token:e,providedIn:"root",factory:()=>new e})}return e})(),Gs=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[$n];t&&(this.view[$n]=t.filter(n=>n!==this))}};function hu(e,t){let n=t?.injector??C(ke);return nn("NgAfterNextRender"),$0(e,n,t,!0)}function U0(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function $0(e,t,n,r){let o=t.get(pu);o.impl??=t.get(Ph);let i=t.get(tn,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(ue):null,a=t.get(Fo,null,{optional:!0}),c=new Gs(o.impl,U0(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var gu=new T("",{factory:()=>{let e=C(Be),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:!1,scheduler:null,injector:e}}});function Fh(e,t,n){let r=e.get(gu);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function z0(e,t){let n=e.get(gu);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t)}function G0(e,t){let n=e.get(gu);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function W0(e,t){for(let[n,r]of t)Fh(e,r.animateFns)}function Tp(e,t,n,r){let o=e?.[Pt]?.enter;t!==null&&o&&o.has(n.index)&&W0(r,o)}function Np(e,t,n,r){try{n.get(Io)}catch{return r(!1)}let o=e?.[Pt];o?.enter?.has(t.index)&&z0(n,o.enter.get(t.index).animateFns);let i=q0(e,t,o);if(i.size===0){let s=!1;if(e){let a=[];oa(e,t,a),s=a.length>0}if(!s)return r(!1)}e&&vn.add(e[Rt]),Fh(n,()=>Z0(e,t,o||void 0,i,r),o||void 0)}function q0(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[N].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent}}return r}function Z0(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:l}=c();i.push(l)}n.detachedLeaveAnimationFns=void 0}if(e&&oa(e,t,i),i.length>0){let s=n||e?.[Pt];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),Q0(e,s.running,o)}else Promise.allSettled(i).then(()=>{e&&vn.delete(e[Rt]),o(!0)})}else e&&vn.delete(e[Rt]),o(!1)}function oa(e,t,n){if(t.type&12){let o=e[t.index];if(st(o))for(let i=de;i<o.length;i++){let s=o[i];s[N].type===2&&Y0(s,n)}}let r=t.child;for(;r;)oa(e,r,n),r=r.next}function Y0(e,t){let n=e[Pt];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s)}let r=e[N].firstChild;for(;r;)oa(e,r,t),r=r.next}function Q0(e,t,n){t.then(()=>{e[Pt]?.running===t&&(e[Pt].running=void 0,vn.delete(e[Rt])),n(!0)})}function jr(e,t,n,r,o,i,s,a){if(o!=null){let c,l=!1;st(o)?c=o:Jt(o)&&(l=!0,o=o[mt]);let f=Se(o);e===0&&r!==null?(Tp(a,r,i,n),s==null?Th(t,r,f):Qn(t,r,f,s||null,!0)):e===1&&r!==null?(Tp(a,r,i,n),Qn(t,r,f,s||null,!0),B0(i,f,a)):e===2?(a?.[Pt]?.leave?.has(i.index)&&H0(i,f,a),jo.delete(f),Np(a,i,n,g=>{if(jo.has(f)){jo.delete(f);return}Nh(t,f,l,g)})):e===3&&(jo.delete(f),Np(a,i,n,()=>{t.destroyNode(f)})),c!=null&&l_(t,e,n,c,i,r,s)}}function K0(e,t){Lh(e,t),t[mt]=null,t[We]=null}function J0(e,t,n,r,o,i){r[mt]=o,r[We]=t,sa(e,r,n,1,o,i)}function Lh(e,t){t[yt].changeDetectionScheduler?.notify(9),sa(e,t,t[ie],2,null,null)}function X0(e){let t=e[kr];if(!t)return El(e[N],e);for(;t;){let n=null;if(Jt(t))n=t[kr];else{let r=t[de];r&&(n=r)}if(!n){for(;t&&!t[it]&&t!==e;)Jt(t)&&El(t[N],t),t=t[ve];t===null&&(t=e),Jt(t)&&El(t[N],t),n=t&&t[it]}t=n}}function mu(e,t){let n=e[Gn],r=n.indexOf(t);n.splice(r,1)}function ia(e,t){if(Wn(t))return;let n=t[ie];n.destroyNode&&sa(e,t,n,3,null,null),X0(t)}function El(e,t){if(Wn(t))return;let n=k(null);try{t[L]&=-129,t[L]|=256,t[Xe]&&Nn(t[Xe]),t_(e,t),e_(e,t),t[N].type===1&&t[ie].destroy();let r=t[pn];if(r!==null&&st(t[ve])){r!==t[ve]&&mu(r,t);let o=t[kt];o!==null&&o.detachView(e)}Fl(t)}finally{k(n)}}function e_(e,t){let n=e.cleanup,r=t[Or];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Or]=null);let o=t[Wt];if(o!==null){t[Wt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[qt];if(i!==null){t[qt]=null;for(let s of i)s.destroy()}}function t_(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Jn)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];K(Z.LifecycleHookStart,a,c);try{c.call(a)}finally{K(Z.LifecycleHookEnd,a,c)}}else{K(Z.LifecycleHookStart,o,i);try{i.call(o)}finally{K(Z.LifecycleHookEnd,o,i)}}}}}function n_(e,t,n){if(t===null)throw new x(510,!1);return r_(e,t.parent,n)}function r_(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[mt];if(Xt(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Dt.None||o===Dt.Emulated)return null}return at(r,n)}function o_(e,t,n){return s_(e,t,n)}function i_(e,t,n){return e.type&40?at(e,n):null}var s_=i_,Ap;function yu(e,t,n,r){let o=n_(e,r,t),i=t[ie],s=r.parent||t[We],a=o_(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Sp(i,o,n[c],a,!1);else Sp(i,o,n,a,!1);Ap!==void 0&&Ap(i,r,t,n,o)}function Bo(e,t){if(t!==null){let n=t.type;if(n&3)return at(t,e);if(n&4)return Bl(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Bo(e,r);{let o=e[t.index];return st(o)?Bl(-1,o):Se(o)}}else{if(n&128)return Bo(e,t.next);if(n&32)return fu(t,e)()||Se(e[t.index]);{let r=Vh(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Zt(e[Je]);return Bo(o,r)}else return Bo(e,t.next)}}}return null}function Vh(e,t){if(t!==null){let r=e[Je][We],o=t.projection;return r.projection[o]}return null}function Bl(e,t){let n=de+e+1;if(n<t.length){let r=t[n],o=r[N].firstChild;if(o!==null)return Bo(r,o)}return t[zn]}function vu(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Ot];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&t===0&&(c&&Ur(Se(c),r),n.flags|=2),!uu(n))if(l&8)vu(e,t,n.child,r,o,i,!1),jr(t,e,a,o,c,n,i,r);else if(l&32){let f=fu(n,r),g;for(;g=f();)jr(t,e,a,o,g,n,i,r);jr(t,e,a,o,c,n,i,r)}else l&16?c_(e,t,r,n,o,i):jr(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function sa(e,t,n,r,o,i){e.type===3?a_(n,r,t,o,i):vu(n,r,e.firstChild,t,o,i,!1)}function a_(e,t,n,r,o){let s=n[N].firstChild,a=s.next,c=Se(n[s.index]),l=Se(n[a.index]),f=a.index+1,g=n[f];if(t===1||t===0)r!==null&&(g&&g.hasChildNodes()?Qn(e,r,g,o,!0):(Qn(e,r,c,o,!0),Qn(e,r,l,o,!0)));else if(t===2){if(g||(g=document.createDocumentFragment(),n[f]=g),c&&c.parentNode===g)return;let y=c;for(;y!==null;){let m=y.nextSibling;if(g.appendChild(y),y===l)break;y=m}}}function c_(e,t,n,r,o,i){let s=n[Je],c=s[We].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let f=c[l];jr(t,e,n[Ot],o,f,r,i,n)}else{let l=c,f=s[ve];fh(r)&&(l.flags|=128),vu(e,t,l,f,o,i,!0)}}function l_(e,t,n,r,o,i,s){let a=r[zn],c=Se(r);if(a!==c&&jr(t,e,n,i,a,o,s),(r[L]&4)===0)for(let l=de;l<r.length;l++){let f=r[l];sa(f[N],f,e,t,i,a)}}function u_(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:jt.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=jt.Important),e.setStyle(n,r,o,i))}}function _u(e,t,n,r,o,i,s,a,c,l,f){let g=me+r,y=g+o,m=d_(g,y),_=typeof l=="function"?l():l;return m[N]={type:e,blueprint:m,template:n,queries:null,viewQuery:a,declTNode:t,data:m.slice().fill(null,g),bindingStartIndex:g,expandoStartIndex:y,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:_,incompleteFirstPass:!1,ssrId:f}}function d_(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Me);return n}function f_(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=_u(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Cu(e,t,n,r,o,i,s,a,c,l,f){let g=t.blueprint.slice();return g[mt]=o,g[L]=r|4|128|8|64|1024,(l!==null||e&&e[L]&2048)&&(g[L]|=2048),nl(g),g[ve]=g[fn]=e,g[pe]=n,g[yt]=s||e&&e[yt],g[ie]=a||e&&e[ie],g[Ot]=c||e&&e[Ot]||null,g[We]=i,g[Rt]=m0(),g[Ar]=f,g[Yc]=l,g[Je]=t.type==2?e[Je]:g,g}function p_(e,t,n){let r=at(t,e),o=f_(n),i=e[yt].rendererFactory,s=bu(e,Cu(e,o,null,jh(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function jh(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Bh(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function bu(e,t){return e[kr]?e[Zc][it]=t:e[kr]=t,e[Zc]=t,t}function h(e=1){Hh(fe(),j(),vt()+e,!1)}function Hh(e,t,n,r){if(!r)if((t[L]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Rs(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Ps(t,i,0,n)}gn(n)}var Ko=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Ko||{});function Xn(e,t,n,r){let o=k(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Ko.SignalBased)!==0&&(c=t[i][De]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Xp(t,c,i,r)}finally{k(o)}}function Uh(e,t,n,r,o){let i=vt(),s=r&2;try{gn(-1),s&&t.length>me&&Hh(e,t,me,!1);let a=s?Z.TemplateUpdateStart:Z.TemplateCreateStart;K(a,o,n),n(r,o)}finally{gn(i);let a=s?Z.TemplateUpdateEnd:Z.TemplateCreateEnd;K(a,o,n)}}function $h(e,t,n){__(e,t,n),(n.flags&64)===64&&C_(e,t,n)}function Du(e,t,n=at){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function h_(e,t,n,r){let i=r.get(bh,Ch)||n===Dt.ShadowDom||n===Dt.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return g_(s),s}function g_(e){m_(e)}var m_=()=>null;function y_(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function zh(e,t,n,r,o,i){let s=t[N];if(Eu(e,s,t,n,r)){Xt(e)&&v_(t,e.index);return}e.type&3&&(n=y_(n)),Gh(e,t,n,r,o,i)}function Gh(e,t,n,r,o,i){if(e.type&3){let s=at(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function v_(e,t){let n=ct(t,e);n[L]&16||(n[L]|=64)}function __(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Xt(n)&&p_(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Us(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Uo(t,e,s,n);if(Ur(c,t),i!==null&&x_(t,s-r,c,a,n,i),Ft(a)){let l=ct(n.index,t);l[pe]=Uo(t,e,s,n)}}}function C_(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=np();try{gn(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];ws(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&b_(c,l)}}finally{gn(-1),ws(s)}}function b_(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function D_(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];k0(t,i.selectors,!1)&&(r??=[],Ft(i)?r.unshift(i):r.push(i))}return r}function E_(e,t,n,r,o,i){let s=at(e,t);w_(t[ie],s,i,e.value,n,r,o)}function w_(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else{let a=s==null?Kt(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function x_(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];Xn(r,n,c,l)}}function Wh(e,t,n,r,o){let i=me+n,s=t[N],a=o(s,t,e,r,n);t[i]=a,Fr(e,!0);let c=e.type===2;return c?(Ah(t[ie],a,e),(qf()===0||ms(e))&&Ur(a,t),Zf()):Ur(a,t),Ms()&&(!c||!uu(e))&&yu(s,t,a,e),e}function qh(e){let t=e;return ll()?Jf():(t=t.parent,Fr(t,!1)),t}function S_(e,t){let n=e[Ot];if(!n)return;let r;try{r=n.get(mn,null)}catch{r=null}r?.(t)}function Eu(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],f=s[c+1],g=t.data[l];Xn(g,n[l],f,o),a=!0}if(i)for(let c of i){let l=n[c],f=t.data[c];Xn(f,l,r,o),a=!0}return a}function I_(e,t,n,r,o,i){let s=null,a=null,c=null,l=!1,f=e.directiveToIndex.get(r.type);if(typeof f=="number"?s=f:[s,a,c]=f,a!==null&&c!==null&&e.hostDirectiveInputs&&Object.hasOwn(e.hostDirectiveInputs,o)){let g=e.hostDirectiveInputs[o];for(let y=0;y<g.length;y+=2){let m=g[y];if(m>=a&&m<=c){let _=t.data[m],w=g[y+1];Xn(_,n[m],w,i),l=!0}else if(m>c)break}}return s!==null&&Object.hasOwn(r.inputs,o)&&(Xn(r,n[s],o,i),l=!0),l}function M_(e,t){let n=ct(t,e),r=n[N];T_(r,n);let o=n[mt];o!==null&&n[Ar]===null&&(n[Ar]=Dh(o,n[Ot])),K(Z.ComponentStart);try{wu(r,n,n[pe])}finally{K(Z.ComponentEnd,n[pe])}}function T_(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function wu(e,t,n){Ss(t);try{let r=e.viewQuery;r!==null&&Vl(1,r,n);let o=e.template;o!==null&&Uh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[kt]?.finishViewCreation(e),e.staticContentQueries&&Eh(e,t),e.staticViewQueries&&Vl(2,e.viewQuery,n);let i=e.components;i!==null&&N_(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[L]&=-5,Is()}}function N_(e,t){for(let n=0;n<t.length;n++)M_(e,t[n])}function aa(e,t,n,r){let o=k(null);try{let i=t.tView,a=e[L]&4096?4096:16,c=Cu(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[pn]=l;let f=e[kt];return f!==null&&(c[kt]=f.createEmbeddedView(i)),wu(i,c,n),c}finally{k(o)}}function zo(e,t){return!t||t.firstChild===null||fh(e)}function Go(e,t,n,r,o=!1){if(e.type===3){let i=e.firstChild,s=i.next,a=Se(t[i.index]),c=Se(t[s.index]),l=a;for(;l!==null&&(r.push(l),l!==c);)l=l.nextSibling;return r}for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];if(i!==null)if(st(i)){let a=i[zn];a!==i[mt]&&r.push(Se(i)),i[L]&4||Zh(i,r),r.push(a)}else r.push(Se(i));let s=n.type;if(s&8)Go(e,t,n.child,r);else if(s&32){let a=fu(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Vh(t,n);if(Array.isArray(a))r.push(...a);else{let c=Zt(t[Je]);Go(c[N],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Zh(e,t){for(let n=de;n<e.length;n++){let r=e[n],o=r[N].firstChild;o!==null&&Go(r[N],r,o,t)}}function Yh(e){if(e[$n]!==null){for(let t of e[$n])t.impl.addSequence(t);e[$n].length=0}}var Qh=[];function A_(e){return e[Xe]??O_(e)}function O_(e){let t=Qh.pop()??Object.create(R_);return t.lView=e,t}function k_(e){e.lView[Xe]!==e&&(e.lView=null,Qh.push(e))}var R_=$(V({},Mn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{qn(e.lView)},consumerOnSignalRead(){this.lView[Xe]=this}});function P_(e){let t=e[Xe]??Object.create(F_);return t.lView=e,t}var F_=$(V({},Mn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Zt(e.lView);for(;t&&!Kh(t[N]);)t=Zt(t);t&&Cs(t)},consumerOnSignalRead(){this.lView[Xe]=this}});function Kh(e){return e.type!==2}function Jh(e){if(e[qt]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[qt])if(r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()),e[qt]===null))return;t=n&&!!(e[L]&8192)}}var L_=100;function Xh(e,t=0){let r=e[yt].rendererFactory,o=!1;o||r.begin?.();try{V_(e,t)}finally{o||r.end?.()}}function V_(e,t){let n=ul();try{Co(!0),Hl(e,t);let r=0;for(;Pr(e);){if(r===L_)throw new x(103,!1);r++,Hl(e,1)}}finally{Co(n)}}function j_(e,t,n,r){if(Wn(t))return;let o=t[L],i=!1,s=!1;Ss(t);let a=!0,c=null,l=null;i||(Kh(e)?(l=A_(t),c=Tn(l)):Mi()===null?(a=!1,l=P_(t),c=Tn(l)):t[Xe]&&(Nn(t[Xe]),t[Xe]=null));try{nl(t),Xf(e.bindingStartIndex),n!==null&&Uh(e,t,n,2,r);let f=(o&3)===3;if(!i)if(f){let m=e.preOrderCheckHooks;m!==null&&Rs(t,m,null)}else{let m=e.preOrderHooks;m!==null&&Ps(t,m,0,null),bl(t,0)}if(s||B_(t),Jh(t),eg(t,0),e.contentQueries!==null&&Eh(e,t),!i)if(f){let m=e.contentCheckHooks;m!==null&&Rs(t,m)}else{let m=e.contentHooks;m!==null&&Ps(t,m,1),bl(t,1)}U_(e,t);let g=e.components;g!==null&&ng(t,g,0);let y=e.viewQuery;if(y!==null&&Vl(2,y,r),!i)if(f){let m=e.viewCheckHooks;m!==null&&Rs(t,m)}else{let m=e.viewHooks;m!==null&&Ps(t,m,2),bl(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[gs]){for(let m of t[gs])m();t[gs]=null}i||(Yh(t),t[L]&=-73)}catch(f){throw i||qn(t),f}finally{l!==null&&(mr(l,c),a&&k_(l)),Is()}}function eg(e,t){for(let n=hh(e);n!==null;n=gh(n))for(let r=de;r<n.length;r++){let o=n[r];tg(o,t)}}function B_(e){for(let t=hh(e);t!==null;t=gh(t)){if(!(t[L]&2))continue;let n=t[Gn];for(let r=0;r<n.length;r++){let o=n[r];Cs(o)}}}function H_(e,t,n){K(Z.ComponentStart);let r=ct(t,e);try{tg(r,n)}finally{K(Z.ComponentEnd,r[pe])}}function tg(e,t){_s(e)&&Hl(e,t)}function Hl(e,t){let r=e[N],o=e[L],i=e[Xe],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&po(i)),s||=!1,i&&(i.dirty=!1),e[L]&=-9217,s)j_(r,e,r.template,e[pe]);else if(o&8192){let a=k(null);try{Jh(e),eg(e,1);let c=r.components;c!==null&&ng(e,c,1),Yh(e)}finally{k(a)}}}function ng(e,t,n){for(let r=0;r<t.length;r++)H_(e,t[r],n)}function U_(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)gn(~o);else{let i=o,s=n[++r],a=n[++r];tp(s,i);let c=t[i];K(Z.HostBindingsUpdateStart,c);try{a(2,c)}finally{K(Z.HostBindingsUpdateEnd,c)}}}}finally{gn(-1)}}function xu(e,t){let n=ul()?64:1088;for(e[yt].changeDetectionScheduler?.notify(t);e;){e[L]|=n;let r=Zt(e);if(Rr(e)&&!r)return e;e=r}return null}function rg(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function og(e,t){let n=de+t;if(n<e.length)return e[n]}function ca(e,t,n,r=!0){let o=t[N];if($_(o,t,e,n),r){let s=Bl(n,e),a=t[ie],c=a.parentNode(e[zn]);c!==null&&J0(o,e[We],a,t,c,s)}let i=t[Ar];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function ig(e,t){let n=Wo(e,t);return n!==void 0&&ia(n[N],n),n}function Wo(e,t){if(e.length<=de)return;let n=de+t,r=e[n];if(r){let o=r[pn];o!==null&&o!==e&&mu(o,r),t>0&&(e[n-1][it]=r[it]);let i=xo(e,de+t);K0(r[N],r);let s=i[kt];s!==null&&s.detachView(i[N]),r[ve]=null,r[it]=null,r[L]&=-129}return r}function $_(e,t,n,r){let o=de+r,i=n.length;r>0&&(n[o-1][it]=t),r<i-de?(t[it]=n[o],$c(n,de+r,t)):(n.push(t),t[it]=null),t[ve]=n;let s=t[pn];s!==null&&n!==s&&sg(s,t);let a=t[kt];a!==null&&a.insertView(e),bs(t),t[L]|=128}function sg(e,t){let n=e[Gn],r=t[ve];if(Jt(r))e[L]|=2;else{let o=r[ve][Je];t[Je]!==o&&(e[L]|=2)}n===null?e[Gn]=[t]:n.push(t)}var _n=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[N];return Go(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[pe]}set context(t){this._lView[pe]=t}get destroyed(){return Wn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ve];if(st(t)){let n=t[To],r=n?n.indexOf(this):-1;r>-1&&(Wo(t,r),xo(n,r))}this._attachedToViewContainer=!1}ia(this._lView[N],this._lView)}onDestroy(t){Ds(this._lView,t)}markForCheck(){xu(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[L]&=-129}reattach(){bs(this._lView),this._lView[L]|=128}detectChanges(){this._lView[L]|=1024,Xh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new x(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Rr(this._lView),n=this._lView[pn];n!==null&&!t&&mu(n,this._lView),Lh(this._lView[N],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new x(902,!1);this._appRef=t;let n=Rr(this._lView),r=this._lView[pn];r!==null&&!n&&sg(r,this._lView),bs(this._lView)}};function Su(e){return Pr(e._lView)||!!(e._lView[L]&64)}function Iu(e){Cs(e._lView)}var $r=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=z_;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=aa(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new _n(i)}}return e})();function z_(){return Mu(Ie(),j())}function Mu(e,t){return e.type&4?new $r(t,e,Gr(e,t)):null}function la(e,t,n,r,o){let i=e.data[t];if(i===null)i=G_(e,t,n,r,o),ep()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Kf();i.injectorIndex=s===null?-1:s.injectorIndex}return Fr(i,!0),i}function G_(e,t,n,r,o){let i=cl(),s=ll(),a=s?i:i&&i.parent,c=e.data[t]=q_(e,a,n,t,r,o);return W_(e,c,i,s),c}function W_(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function q_(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Qf()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:gl(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Z_(e){let t=e[Qc]??[],r=e[ve][ie],o=[];for(let i of t)i.data[_h]!==void 0?o.push(i):Y_(i,r);e[Qc]=o}function Y_(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[vh];for(;n<o;){let i=r.nextSibling;Nh(t,r,!1),r=i,n++}}}var Q_=()=>null,K_=()=>null;function Ul(e,t){return Q_(e,t)}function ag(e,t,n){return K_(e,t,n)}var cg=class{},er=class{},Bt=class{destroyNode=null;static __NG_ELEMENT_ID__=()=>J_()};function J_(){let e=j(),t=Ie(),n=ct(t.index,e);return(Jt(n)?n:e)[ie]}var lg=(()=>{class e{static \u0275prov=Q({token:e,providedIn:"root",factory:()=>null})}return e})();function ug(e){return e.debugInfo?.className||e.type.name||null}var Ls={},Ws=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,Ls,r);return o!==Ls||n===Ls?o:this.parentInjector.get(t,n,r)}};function Tu(e,t,n){return e[t]=n}function X_(e,t){return e[t]}function et(e,t,n){if(n===Me)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Nu(e,t,n,r){let o=et(e,t,n);return et(e,t+1,r)||o}function eC(e,t,n,r,o){let i=Nu(e,t,n,r);return et(e,t+2,o)||i}function Kn(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&v0(o,i);let s=Xt(e)?ct(e.index,t):t;xu(s,5);let a=t[pe],c=Op(t,a,n,o),l=r.__ngNextListenerFn__;for(;l;)c=Op(t,a,l,o)&&c,l=l.__ngNextListenerFn__;return c}}function Op(e,t,n,r){let o=k(null);try{return K(Z.OutputStart,t,n),n(r)!==!1}catch(i){return S_(e,i),!1}finally{K(Z.OutputEnd,t,n),k(o)}}function Au(e,t,n,r,o,i,s,a){let c=ms(e),l=!1,f=null;if(!r&&c&&(f=nC(t,n,i,e.index)),f!==null){let g=f.__ngLastListenerFn__||f;g.__ngNextListenerFn__=s,f.__ngLastListenerFn__=s,l=!0}else{let g=at(e,n),y=r?r(g):g;C0(n,y,i,a),r||(a.__ngNativeEl__=g);let m=o.listen(y,i,a);if(!tC(i)){let _=r?w=>r(Se(w[e.index])):e.index;dg(_,t,n,i,a,m,!1)}}return l}function tC(e){return e.startsWith("animation")||e.startsWith("transition")}function nC(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Or],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function dg(e,t,n,r,o,i,s){let a=t.firstCreatePass?ol(t):null,c=rl(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function kp(e,t,n,r,o){let i=null,s=null,a=null,c=!1,l=e.directiveToIndex.get(n.type);if(typeof l=="number"?i=l:[i,s,a]=l,s!==null&&a!==null&&e.hostDirectiveOutputs&&Object.hasOwn(e.hostDirectiveOutputs,r)){let f=e.hostDirectiveOutputs[r];for(let g=0;g<f.length;g+=2){let y=f[g];if(y>=s&&y<=a)c=!0,qs(e,t,y,f[g+1],r,o);else if(y>a)break}}return Object.hasOwn(n.outputs,r)&&(c=!0,qs(e,t,i,r,r,o)),c}function qs(e,t,n,r,o,i){let s=t[n],a=t[N],l=a.data[n].outputs[r],g=s[l].subscribe(i);dg(e.index,a,t,o,i,g,!0)}function z(){rC()}function rC(){let e=j(),t=fe(),n=Ie();if(t.firstCreatePass&&iC(t,n),n.controlDirectiveIndex===-1)return;nn("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new Zs(e,t,n))}function G(){oC()}function oC(){let e=j(),t=fe(),n=Lr();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new Zs(e,t,n))}var Zs=class{lView;tView;tNode;hasPassThrough;constructor(t,n,r){this.lView=t,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096)}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return at(this.tNode,this.lView)}get descriptor(){return`<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];kp(this.tNode,this.lView,r,t,Kn(this.tNode,this.lView,n))}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];kp(this.tNode,this.lView,r,n,Kn(this.tNode,this.lView,t))}listenToDom(t,n){Au(this.tNode,this.tView,this.lView,void 0,this.lView[ie],t,n,Kn(this.tNode,this.lView,n))}setInputOnDirectives(t,n,r){let o=this.tNode.inputs?.[t],i=this.tNode.hostDirectiveInputs?.[t];if(!o&&!i)return!1;let s=!1;if(o)for(let a of o){if(a===this.tNode.controlDirectiveIndex)continue;let c=this.lView[a],l=this.tView.data[a];(!r||r(Pp(c,l,t)))&&(Xn(l,c,t,n),s=!0)}if(i)for(let a=0;a<i.length;a+=2){let c=i[a];if(c===this.tNode.controlDirectiveIndex)continue;let l=this.lView[c],f=i[a+1],g=this.tView.data[c];(!r||r(Pp(l,g,t)))&&(Xn(g,l,f,n),s=!0)}return s}setCustomControlModelInput(t){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";I_(this.tNode,this.tView,this.lView,n,r,t)}customControlHasInput(t){if(this.tNode.customControlIndex===-1)return!1;let n=this.tView.data[this.tNode.customControlIndex];return(n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[t]===!0}_buildCustomControlInputCache(t){let n={};for(let r in t.inputs)n[r]=!0;if(t.hostDirectives!==null){let r=[...t.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=!0;let i=Rp(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i=="function")continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let c=i.inputs[a+1]||i.inputs[a];n[c]=!0}let s=Rp(i.directive);s!==null&&r.push(...s)}}}return n}};function Rp(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function Pp(e,t,n){if(!t.inputs||!Object.hasOwn(t.inputs,n))return;let[r,o]=t.inputs[n];if((o&Ko.SignalBased)!==0){let s=e[r][De];return s.value===ta?void 0:s.value}return e[r]}function iC(e,t,n){for(let o=t.directiveStart;o<t.directiveEnd;o++)if(e.data[o].controlDef){t.controlDirectiveIndex=o;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}sC(e,t)}function sC(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(!(t.directiveToIndex&&!t.directiveToIndex.has(r.type))){if(Fp(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(Fp(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let n=(r,o)=>{let i=t.hostDirectiveInputs[r],s=t.hostDirectiveOutputs[r+"Change"];if(!i||!s)return!1;for(let a=0;a<i.length;a+=2){let c=i[a];for(let l=0;l<s.length;l+=2){let f=s[l];if(c===f)for(let g of t.directiveToIndex.values()){if(!Array.isArray(g))continue;let[y,m,_]=g;if(c>=m&&c<=_)return t.flags|=o,t.customControlIndex=y,!0}}}return!1};if(n("value",1024)||n("checked",2048))return}}function Fp(e,t){return aC(e,t)&&cC(e,t+"Change")}function aC(e,t){return t in e.inputs}function cC(e,t){return t in e.outputs}var $l=Symbol("BINDING");var or=new T("");function Ys(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=cs(o,a);else if(i==2){let c=a,l=t[++s];r=cs(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Y(e,t=0){let n=j();if(n===null)return H(e,t);let r=Ie();return lh(r,n,xe(e),t)}function lC(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,l=null;for(let f of s)if(f.resolveHostDirectives!==null){[a,c,l]=f.resolveHostDirectives(s);break}fC(e,t,n,a,i,c,l)}i!==null&&r!==null&&uC(n,r,i)}function uC(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new x(-301,!1);r.push(t[o],i)}}function dC(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function fC(e,t,n,r,o,i,s){let a=r.length,c=null;for(let y=0;y<a;y++){let m=r[y];c===null&&Ft(m)&&(c=m,dC(e,n,y)),Rl(Us(n,t),e,m.type)}vC(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let y=0;y<a;y++){let m=r[y];m.providersResolver&&m.providersResolver(m)}let l=!1,f=!1,g=Bh(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let y=0;y<a;y++){let m=r[y];if(n.mergedAttrs=Hr(n.mergedAttrs,m.hostAttrs),hC(e,n,t,g,m),yC(g,m,o),s!==null&&s.has(m)){let[w,O]=s.get(m);n.directiveToIndex.set(m.type,[g,w+n.directiveStart,O+n.directiveStart])}else(i===null||!i.has(m))&&n.directiveToIndex.set(m.type,g);m.contentQueries!==null&&(n.flags|=4),(m.hostBindings!==null||m.hostAttrs!==null||m.hostVars!==0)&&(n.flags|=64);let _=m.type.prototype;!l&&(_.ngOnChanges||_.ngOnInit||_.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!f&&(_.ngOnChanges||_.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),f=!0),g++}pC(e,n,i)}function pC(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Lp(0,t,o,r),Lp(1,t,o,r),jp(t,r,!1);else{let i=n.get(o);Vp(0,t,i,r),Vp(1,t,i,r),jp(t,r,!0)}}}function Lp(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(Object.hasOwn(o,i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),fg(t,i)}}function Vp(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(Object.hasOwn(o,i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),fg(t,s)}}function fg(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function jp(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||du(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&Object.hasOwn(o,c)){let l=o[c];for(let f of l)if(f===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&Object.hasOwn(i,c)){let l=i[c];for(let f=0;f<l.length;f+=2)if(l[f]===t){s??=[],s.push(l[f+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function hC(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=ln(o.type,!0)),s=new Jn(i,Ft(o),Y,null);e.blueprint[r]=s,n[r]=s,gC(e,t,r,Bh(e,n,o.hostVars,Me),o)}function gC(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;mC(s)!=a&&s.push(a),s.push(n,r,i)}}function mC(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function yC(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ft(t)&&(n[""]=e)}}function vC(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function pg(e,t,n,r,o,i,s,a){let c=t[N],l=c.consts,f=Lt(l,s),g=la(c,e,n,r,f);return i&&lC(c,t,g,Lt(l,a),o),g.mergedAttrs=Hr(g.mergedAttrs,g.attrs),g.attrs!==null&&Ys(g,g.attrs,!1),g.mergedAttrs!==null&&Ys(g,g.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,g),g}function hg(e,t){Kv(e,t),Kc(t)&&e.queries.elementEnd(t)}function _C(e,t,n,r,o,i){let s=t.consts,a=Lt(s,o),c=la(t,e,n,r,a);if(c.mergedAttrs=Hr(c.mergedAttrs,c.attrs),i!=null){let l=Lt(s,i);c.localNames=[];for(let f=0;f<l.length;f+=2)c.localNames.push(l[f],-1)}return c.attrs!==null&&Ys(c,c.attrs,!1),c.mergedAttrs!==null&&Ys(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}var gg=typeof ShadowRoot<"u",CC=typeof Document<"u";function bC(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Ko.SignalBased)!==0};return o&&(i.transform=o),i})}function DC(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function EC(e,t,n){let r=t instanceof Be?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Ws(n,r):n}function wC(e){let t=e.get(er,null);if(t===null)throw new x(407,!1);let n=e.get(lg,null),r=e.get(gt,null),o=e.get(tn,null,{optional:!0});return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function xC(e,t,n){let r=mg(e);return Mh(t,r,r==="svg"?Jc:r==="math"?Hf:n)}function SC(e){if((e&&"localName"in e&&typeof e.localName=="string"?e.localName:e?.tagName)?.toLowerCase()==="script")throw new x(905,!1)}function mg(e){return(e.selectors[0][0]||"div").toLowerCase()}var tr=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=bC(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=DC(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=L0(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s,a){K(Z.DynamicComponentStart);let c=k(null);try{let l=this.componentDef,f=EC(l,o||this.ngModule,t),g=wC(f),y=g.tracingService;return y&&y.componentCreate?y.componentCreate(ug(l),()=>this.createComponentRef(g,f,n,r,i,s,a)):this.createComponentRef(g,f,n,r,i,s,a)}finally{k(c)}}createComponentRef(t,n,r,o,i,s,a){let c=this.componentDef,l=IC(o,c,s,i),f=t.rendererFactory.createRenderer(null,c),g=o?h_(f,o,c.encapsulation,n):xC(c,f,a??null);SC(g);let y=n.get(or,null),m=MC(g,()=>n.get(Re,null)??yh());y&&y.addHost(m);let _=s?.some(Bp)||i?.some(P=>typeof P!="function"&&P.bindings.some(Bp)),w=Cu(null,l,null,512|jh(c),null,null,t,f,n,null,Dh(g,n,!0));y&&gg&&m instanceof ShadowRoot&&Ds(w,()=>{y.removeHost(m)}),w[me]=g,Ss(w);let O=null;try{let P=pg(me,w,2,"#host",()=>l.directiveRegistry,!0,0);Ah(f,g,P),Ur(g,w),$h(l,w,P),wh(l,P,w),hg(l,P),r!==void 0&&NC(P,this.ngContentSelectors,r),O=ct(P.index,w),w[pe]=O[pe],wu(l,w,null)}catch(P){throw O!==null&&Fl(O),Fl(w),P}finally{K(Z.DynamicComponentEnd),Is()}return new Qs(this.componentType,w,!!_)}};function IC(e,t,n,r){let o=e?["ng-version","22.1.6"]:V0(t.selectors[0]),i=null,s=null,a=0;if(n)for(let f of n)a+=f[$l].requiredVars,f.create&&(f.targetIdx=0,(i??=[]).push(f)),f.update&&(f.targetIdx=0,(s??=[]).push(f));if(r)for(let f=0;f<r.length;f++){let g=r[f];if(typeof g!="function")for(let y of g.bindings){a+=y[$l].requiredVars;let m=f+1;y.create&&(y.targetIdx=m,(i??=[]).push(y)),y.update&&(y.targetIdx=m,(s??=[]).push(y))}}let c=[t];if(r)for(let f of r){let g=typeof f=="function"?f:f.type,y=jc(g);c.push(y)}return _u(0,null,TC(i,s),1,a,c,null,null,null,[o],null)}function MC(e,t){let n=e.getRootNode?.();return CC&&n instanceof Document?n.head:n&&gg&&n instanceof ShadowRoot?n:t().head}function TC(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function Bp(e){let t=e[$l].kind;return t==="input"||t==="twoWay"}var Qs=class extends cg{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=vs(n[N],me),this.location=Gr(this._tNode,n),this.instance=ct(this._tNode.index,n)[pe],this.hostView=this.changeDetectorRef=new _n(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=Eu(r,o[N],o,t,n);this.previousInputValues.set(t,n);let s=ct(r.index,o);xu(s,1)}get injector(){return new yn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function NC(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Jo=(()=>{class e{static __NG_ELEMENT_ID__=AC}return e})();function AC(){let e=Ie();return yg(e,j())}var zl=class e extends Jo{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Gr(this._hostTNode,this._hostLView)}get injector(){return new yn(this._hostTNode,this._hostLView)}get parentInjector(){let t=au(this._hostTNode,this._hostLView);if(rh(t)){let n=Bs(t,this._hostLView),r=js(t),o=n[N].data[r+8];return new yn(o,n)}else return new yn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Hp(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-de}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Ul(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,zo(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c,l=n||{};c=l.index,r=l.injector,o=l.projectableNodes,i=l.environmentInjector||l.ngModuleRef,s=l.directives,a=l.bindings;let f=new tr(Qt(t)),g=r||this.parentInjector;if(!i&&f.ngModule==null){let P=this.parentInjector.get(Be,null);P&&(i=P)}let y=Qt(f.componentType??{}),m=Ul(this._lContainer,y?.id??null),_=m?.firstChild??null,w=f.create(g,o,_,i,s,a,this._getHostElementNamespace());return this.insertImpl(w.hostView,c,zo(this._hostTNode,m)),w}_getHostElementNamespace(){if(this._hostTNode.type&2){let t=this._hostTNode.parent??this._hostLView[We];return t!==null&&t.type&2&&typeof t.value=="string"&&t.value.toLowerCase()==="foreignobject"?null:t?.namespace??null}return this._hostTNode.namespace}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if($f(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[ve],l=new e(c,c[We],c[ve]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return ca(s,o,i,r),t.attachToViewContainerRef(),$c(wl(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Hp(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Wo(this._lContainer,n);r&&(xo(wl(this._lContainer),n),ia(r[N],r))}detach(t){let n=this._adjustIndex(t,-1),r=Wo(this._lContainer,n);return r&&xo(wl(this._lContainer),n)!=null?new _n(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Hp(e){return e[To]}function wl(e){return e[To]||(e[To]=[])}function yg(e,t){let n,r=t[e.index];return st(r)?n=r:(n=rg(r,t,null,e),t[e.index]=n,bu(t,n)),kC(n,t,e,r),new zl(n,e,t)}function OC(e,t){let n=e[ie],r=n.createComment(""),o=at(t,e),i=n.parentNode(o);return Qn(n,i,r,n.nextSibling(o),!1),r}var kC=FC,RC=()=>!1;function PC(e,t,n){return RC(e,t,n)}function FC(e,t,n,r){if(e[zn])return;let o;n.type&8?o=Se(r):o=OC(t,n),e[zn]=o}var Gl=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Wl=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Ou(t,n).matches!==null&&this.queries[n].setDirty()}},ql=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=zC(t):this.predicate=t}},Zl=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Yl=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,LC(n,i)),this.matchTNodeWithReadOption(t,n,Fs(n,t,i,!1,!1))}else r===$r?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Fs(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===wt||o===Jo||o===$r&&n.type&4)this.addMatch(n.index,-2);else{let i=Fs(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function LC(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function VC(e,t){return e.type&11?Gr(e,t):e.type&4?Mu(e,t):null}function jC(e,t,n,r){return n===-1?VC(t,e):n===-2?BC(e,t,r):Uo(e,e[N],n,t)}function BC(e,t,n){if(n===wt)return Gr(t,e);if(n===$r)return Mu(t,e);if(n===Jo)return yg(t,e)}function vg(e,t,n,r){let o=t[kt].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let f=i[l];a.push(jC(t,f,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Ql(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=vg(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],f=t[-c];for(let g=de;g<f.length;g++){let y=f[g];y[pn]===y[ve]&&Ql(y[N],y,l,r)}if(f[Gn]!==null){let g=f[Gn];for(let y=0;y<g.length;y++){let m=g[y];Ql(m[N],m,l,r)}}}}}return r}function HC(e,t){return e[kt].queries[t].queryList}function UC(e,t,n){let r=new $s((n&4)===4);return Wf(e,t,r,r.destroy),(t[kt]??=new Wl).queries.push(new Gl(r))-1}function $C(e,t,n){let r=fe();return r.firstCreatePass&&(GC(r,new ql(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),UC(r,j(),t)}function zC(e){return e.split(",").map(t=>t.trim())}function GC(e,t,n){e.queries===null&&(e.queries=new Zl),e.queries.track(new Yl(t,n))}function Ou(e,t){return e.queries.getByIndex(t)}function WC(e,t){let n=e[N],r=Ou(n,t);return r.crossesNgTemplate?Ql(n,e,t,[]):vg(n,e,r,t)}function Wr(e){return!!e&&typeof e.then=="function"}function ku(e){return!!e&&typeof e.subscribe=="function"}var qo=class{};var Zo=class extends qo{injector;instance=null;constructor(t){super();let n=new jn([...t.providers,{provide:qo,useValue:this}],t.parent||Tr(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function _g(e,t,n=null){return new Zo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var qC=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Gc(!1,n.type),o=r.length>0?_g([r],this._injector,""):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=Q({token:e,providedIn:"environment",factory:()=>new e(H(Be))})}return e})();function rn(e){return Qo(()=>{let t=Cg(e),n=$(V({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==cu.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(qC).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Dt.Emulated,styles:e.styles||je,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&nn("NgStandalone"),bg(n);let r=e.dependencies;return n.directiveDefs=Up(r,ZC),n.pipeDefs=Up(r,Mf),n.id=KC(n),n})}function ZC(e){return Qt(e)||jc(e)}function Cn(e){return Qo(()=>({type:e.type,bootstrap:e.bootstrap||je,declarations:e.declarations||je,imports:e.imports||je,exports:e.exports||je,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function YC(e,t){if(e==null)return dn;let n={};for(let r in e)if(Object.hasOwn(e,r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Ko.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function QC(e){if(e==null)return dn;let t={};for(let n in e)Object.hasOwn(e,n)&&(t[e[n]]=n);return t}function _e(e){return Qo(()=>{let t=Cg(e);return bg(t),t})}function ua(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Cg(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||dn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||je,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:YC(e.inputs,t),outputs:QC(e.outputs),debugInfo:null}}function bg(e){e.features?.forEach(t=>t(e))}function Up(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function KC(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}var Dg=new T("");var Ru=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=C(Dg,{optional:!0})??[];injector=C(ke);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Nr(this.injector,o);if(Wr(i))n.push(i);else if(ku(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=en({token:e,factory:e.\u0275fac})}return e})();function Pu(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r)},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r)},passThroughInput:e}}}function JC(e){return Object.getPrototypeOf(e.prototype).constructor}function Ue(e){let t=JC(e.type),n=!0,r=[e];for(;t&&t!==Function.prototype&&t!==Object.prototype;){let o,i=Object.hasOwn(t,Eo)?t[Eo]:void 0,s=Object.hasOwn(t,wo)?t[wo]:void 0;if(Ft(e))o=i??s;else{if(i)throw new x(903,!1);o=s}if(o){if(n){r.push(o);let c=e;c.inputs=xl(e.inputs),c.declaredInputs=xl(e.declaredInputs),c.outputs=xl(e.outputs);let l=o.hostBindings;l&&rb(e,l);let f=o.viewQuery,g=o.contentQueries;if(f&&tb(e,f),g&&nb(e,g),XC(e,o),If(e.outputs,o.outputs),Ft(o)&&o.data.animation){let y=e.data;y.animation=(y.animation||[]).concat(o.data.animation)}}let a=o.features;if(a)for(let c=0;c<a.length;c++){let l=a[c];l&&l.ngInherit&&l(e),l===Ue&&(n=!1)}}t=Object.getPrototypeOf(t)}eb(r)}function XC(e,t){for(let n in t.inputs){if(!Object.hasOwn(t.inputs,n)||Object.hasOwn(e.inputs,n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function eb(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Hr(o.hostAttrs,n=Hr(n,o.hostAttrs))}}function xl(e){return e===dn?{}:e===je?[]:e}function tb(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function nb(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function rb(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function ob(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Hr(e.mergedAttrs,e.attrs);let f=e.tView=_u(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),f.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Fr(e,!1);let c=ib(n,t,e,r);Ms()&&yu(n,t,c,e),Ur(c,t);let l=rg(c,t,c,e);t[r+me]=l,bu(t,l),PC(l,e,t)}function Ks(e,t,n,r,o,i,s,a,c,l,f){let g=n+me,y;if(t.firstCreatePass){if(y=la(t,g,4,s||null,a||null),l!=null){let m=Lt(t.consts,l);y.localNames=[];for(let _=0;_<m.length;_+=2)y.localNames.push(m[_],-1)}}else y=t.data[g];return ob(y,e,t,n,r,o,i,c),l!=null&&Du(e,y,f),y}var ib=sb;function sb(e,t,n,r){return Ts(!0),t[ie].createComment("")}var Fu=new T("");var Eg=new T("");function wg(){rc(()=>{let e="";throw new x(600,e)})}var ab=10;var bn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=C(mn);afterRenderManager=C(pu);zonelessEnabled=C(Lo);rootEffectScheduler=C(As);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Ae;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=C(Zn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(we(n=>!n))}constructor(){C(tn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=C(Be);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=ke.NULL){return this._injector.get(be).run(()=>{if(K(Z.BootstrapComponentStart),!this._injector.get(Ru).done){let P="";throw new x(405,P)}let a=Qt(n),c=this._injector.get(qo),l=new tr(a,c);this.componentTypes.push(n);let{hostElement:f,directives:g,bindings:y}=cb(r),m=f||l.selector,_=l.create(o,[],m,c.injector,g,y),w=_.location.nativeElement,O=_.injector.get(Fu,null);return O?.registerApplication(w),_.onDestroy(()=>{this.detachView(_.hostView),Ho(this.components,_),O?.unregisterApplication(w)}),this._loadComponent(_),K(Z.BootstrapComponentEnd,_),_})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){K(Z.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(ra.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw K(Z.ChangeDetectionEnd),new x(101,!1);let n=k(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,k(n),this.afterTick.next(),K(Z.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(er,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<ab;){K(Z.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{K(Z.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!Pr(o))continue;let i=r&&!this.zonelessEnabled?0:1;Xh(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Pr(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Ho(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(Eg,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ho(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new x(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=en({token:e,factory:e.\u0275fac})}return e})();function cb(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function Ho(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function xt(e,t,n,r){let o=j(),i=hn();if(et(o,i,t)){let s=fe(),a=Lr();E_(a,o,e,t,n,r)}return xt}var Kl=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Sl(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function lb(e,t,n,r){let o,i,s=0,a=e.length-1,c=void 0;if(Array.isArray(t)){k(r);let l=t.length-1;for(k(null);s<=a&&s<=l;){let f=e.at(s),g=t[s],y=Sl(s,f,s,g,n);if(y!==0){y<0&&e.updateValue(s,g),s++;continue}let m=e.at(a),_=t[l],w=Sl(a,m,l,_,n);if(w!==0){w<0&&e.updateValue(a,_),a--,l--;continue}let O=n(s,f),P=n(a,m),ce=n(s,g);if(Object.is(ce,P)){let Qe=n(l,_);Object.is(Qe,O)?(e.swap(s,a),e.updateValue(a,_),l--,a--):e.move(a,s),e.updateValue(s,g),s++;continue}if(o??=new Js,i??=zp(e,s,a,n),Jl(e,o,s,ce))e.updateValue(s,g),s++,a++;else if(i.has(ce))o.set(O,e.detach(s)),a--;else{let Qe=e.create(s,t[s]);e.attach(s,Qe),s++,a++}}for(;s<=l;)$p(e,o,n,s,t[s]),s++}else if(t!=null){k(r);let l=t[Symbol.iterator]();k(null);let f=l.next();for(;!f.done&&s<=a;){let g=e.at(s),y=f.value,m=Sl(s,g,s,y,n);if(m!==0)m<0&&e.updateValue(s,y),s++,f=l.next();else{o??=new Js,i??=zp(e,s,a,n);let _=n(s,y);if(Jl(e,o,s,_))e.updateValue(s,y),s++,a++,f=l.next();else if(!i.has(_))e.attach(s,e.create(s,y)),s++,a++,f=l.next();else{let w=n(s,g);o.set(w,e.detach(s)),a--}}}for(;!f.done;)$p(e,o,n,e.length,f.value),f=l.next()}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(l=>{e.destroy(l)})}function Jl(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function $p(e,t,n,r,o){if(Jl(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function zp(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Js=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function D(e,t,n,r,o,i,s,a){nn("NgControlFlow");let c=j(),l=fe(),f=Lt(l.consts,i);return Ks(c,l,e,t,n,r,o,f,256,s,a),Lu}function Lu(e,t,n,r,o,i,s,a){nn("NgControlFlow");let c=j(),l=fe(),f=Lt(l.consts,i);return Ks(c,l,e,t,n,r,o,f,512,s,a),Lu}function E(e,t){nn("NgControlFlow");let n=j(),r=hn(),o=n[r]!==Me?n[r]:-1,i=o!==-1?Xs(n,me+o):void 0,s=0;if(et(n,r,e)){let a=k(null);try{if(i!==void 0&&ig(i,s),e!==-1){let c=me+e,l=Xs(n,c),f=nu(n[N],c),g=ag(l,f,n),y=aa(n,f,t,{dehydratedView:g});ca(l,y,s,zo(f,g))}}finally{k(a)}}else if(i!==void 0){let a=og(i,s);a!==void 0&&(a[pe]=t)}}var Xl=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-de}};function ir(e){return e}function Xo(e,t){return t}var eu=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function J(e,t,n,r,o,i,s,a,c,l,f,g,y){nn("NgControlFlow");let m=j(),_=fe(),w=c!==void 0,O=j(),P=a?s.bind(O[Je][pe]):s,ce=new eu(w,P);O[me+e]=ce,Ks(m,_,e+1,t,n,r,o,Lt(_.consts,i),256),w&&Ks(m,_,e+2,c,l,f,g,Lt(_.consts,y),512)}var tu=class extends Kl{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-de}at(t){return this.getLView(t)[pe].$implicit}attach(t,n){let r=n[Ar];this.needsIndexUpdate||=t!==this.length,ca(this.lContainer,n,t,zo(this.templateTNode,r)),ub(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,db(this.lContainer,t),fb(this.lContainer,t)}create(t,n){let r=Ul(this.lContainer,this.templateTNode.tView.ssrId);return aa(this.hostLView,this.templateTNode,new Xl(this.lContainer,n,t),{dehydratedView:r})}destroy(t){ia(t[N],t)}updateValue(t,n){this.getLView(t)[pe].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[pe].$index=t}getLView(t){return pb(this.lContainer,t)}};function X(e){let t=k(null),n=vt();try{let r=j(),o=r[N],i=r[n],s=n+1,a=Xs(r,s);if(i.liveCollection===void 0){let l=nu(o,s);i.liveCollection=new tu(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(lb(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let l=hn(),f=c.length===0;if(et(r,l,f)){let g=n+2,y=Xs(r,g);if(f){let m=nu(o,g),_=ag(y,m,r),w=aa(r,m,void 0,{dehydratedView:_});ca(y,w,0,zo(m,_))}else o.firstUpdatePass&&Z_(y),ig(y,0)}}}finally{k(t)}}function Xs(e,t){return e[t]}function ub(e,t){if(e.length<=de)return;let n=de+t,r=e[n],o=r?r[Pt]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Ot];G0(i,o),vn.delete(r[Rt]),o.detachedLeaveAnimationFns=void 0}}function db(e,t){if(e.length<=de)return;let n=de+t,r=e[n],o=r?r[Pt]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function fb(e,t){return Wo(e,t)}function pb(e,t){return og(e,t)}function nu(e,t){return vs(e,t)}function S(e,t,n){let r=j(),o=hn();if(et(r,o,t)){let i=fe(),s=Lr();zh(s,r,e,t,r[ie],n)}return S}function ru(e,t,n,r,o){Eu(t,e,n,o?"class":"style",r)}function d(e,t,n,r){let o=j(),i=o[N],s=e+me,a=i.firstCreatePass?pg(s,o,2,t,D_,Yf(),n,r):i.data[s];if(Xt(a)){let c=o[yt].tracingService;if(c&&c.componentCreate){let l=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(ug(l),()=>(Gp(e,t,o,a,r),d))}}return Gp(e,t,o,a,r),d}function Gp(e,t,n,r,o){if(Wh(r,n,e,t,xg),ms(r)){let i=n[N];$h(i,n,r),wh(i,r,n)}o!=null&&Du(n,r)}function u(){let e=fe(),t=Ie(),n=qh(t);return e.firstCreatePass&&hg(e,n),sl(n)&&al(),il(),n.classesWithoutHost!=null&&Xv(n)&&ru(e,n,j(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&e0(n)&&ru(e,n,j(),n.stylesWithoutHost,!1),u}function $e(e,t,n,r){return d(e,t,n,r),u(),$e}function on(e,t,n,r){let o=j(),i=o[N],s=e+me,a=i.firstCreatePass?_C(s,i,2,t,n,r):i.data[s];return Wh(a,o,e,t,xg),r!=null&&Du(o,a),on}function Dn(){let e=Ie(),t=qh(e);return sl(t)&&al(),il(),Dn}var xg=(e,t,n,r,o)=>(Ts(!0),Mh(t[ie],r,gl()));function W(){return j()}function da(e,t,n){let r=j(),o=hn();if(et(r,o,t)){let i=fe(),s=Lr();Gh(s,r,e,t,r[ie],n)}return da}var Vo=void 0;function hb(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var gb=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Vo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Vo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",Vo,Vo,Vo],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",hb],Il=Object.create(null);function qe(e){let t=mb(e),n=Wp(t);if(n)return n;let r=t.split("-")[0];if(n=Wp(r),n)return n;if(r==="en")return gb;throw new x(701,!1)}function Wp(e){if(!(e in Il)){let t=Hn.ng&&Hn.ng.common&&Hn.ng.common.locales&&Hn.ng.common.locales[e];return t!==void 0&&(Il[e]=t),t}return Il[e]}var he={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};function mb(e){return e.toLowerCase().replace(/_/g,"-")}var ei="en-US";var yb=ei;function Sg(e){typeof e=="string"&&(yb=e.toLowerCase().replace(/_/g,"-"))}function A(e,t,n){let r=j(),o=fe(),i=Ie();return Ig(o,r,r[ie],i,e,t,n),A}function qr(e,t,n){let r=j(),o=fe(),i=Ie();return(i.type&3||n)&&Au(i,o,r,n,r[ie],e,t,Kn(i,r,t)),qr}function Ig(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=Kn(r,t,i),Au(r,e,t,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],f=r.hostDirectiveOutputs?.[o];if(f&&f.length)for(let g=0;g<f.length;g+=2){let y=f[g],m=f[g+1];c??=Kn(r,t,i),qs(r,t,y,m,o,c)}if(l&&l.length)for(let g of l)c??=Kn(r,t,i),qs(r,t,g,o,o,c)}}function v(e=1){return ap(e)}function fa(e,t,n){return $C(e,t,n),fa}function Vu(e){let t=j(),n=fe(),r=fl();xs(r+1);let o=Ou(n,r);if(e.dirty&&Uf(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=WC(t,r);e.reset(i,p0),e.notifyOnChanges()}return!0}return!1}function ju(){return HC(j(),fl())}function ks(e,t){return e<<17|t<<2}function nr(e){return e>>17&32767}function vb(e){return(e&2)==2}function _b(e,t){return e&131071|t<<17}function ou(e){return e|2}function zr(e){return(e&131068)>>2}function Ml(e,t){return e&-131069|t<<2}function Cb(e){return(e&1)===1}function iu(e){return e|1}function bb(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=nr(s),c=zr(s);e[r]=n;let l=!1,f;if(Array.isArray(n)){let g=n;f=g[1],(f===null||Ir(g,f)>0)&&(l=!0)}else f=n;if(o)if(c!==0){let y=nr(e[a+1]);e[r+1]=ks(y,a),y!==0&&(e[y+1]=Ml(e[y+1],r)),e[a+1]=_b(e[a+1],r)}else e[r+1]=ks(a,0),a!==0&&(e[a+1]=Ml(e[a+1],r)),a=r;else e[r+1]=ks(c,0),a===0?a=r:e[c+1]=Ml(e[c+1],r),c=r;l&&(e[r+1]=ou(e[r+1])),qp(e,f,r,!0),qp(e,f,r,!1),Db(t,f,e,r,i),s=ks(a,c),i?t.classBindings=s:t.styleBindings=s}function Db(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Ir(i,t)>=0&&(n[r+1]=iu(n[r+1]))}function qp(e,t,n,r){let o=e[n+1],i=t===null,s=r?nr(o):zr(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];Eb(c,t)&&(a=!0,e[s+1]=r?iu(l):ou(l)),s=r?nr(l):zr(l)}a&&(e[n+1]=r?ou(o):iu(o))}function Eb(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Ir(e,t)>=0:!1}var bt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function wb(e){return e.substring(bt.key,bt.keyEnd)}function xb(e){return Sb(e),Mg(e,Tg(e,0,bt.textEnd))}function Mg(e,t){let n=bt.textEnd;return n===t?-1:(t=bt.keyEnd=Ib(e,bt.key=t,n),Tg(e,t,n))}function Sb(e){bt.key=0,bt.keyEnd=0,bt.value=0,bt.valueEnd=0,bt.textEnd=e.length}function Tg(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Ib(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function sr(e,t,n){return Ng(e,t,n,!1),sr}function ge(e,t){return Ng(e,t,null,!0),ge}function Zr(e){Tb(Pb,Mb,e,!0)}function Mb(e,t){for(let n=xb(t);n>=0;n=Mg(t,n))ps(e,wb(t),!0)}function Ng(e,t,n,r){let o=j(),i=fe(),s=No(2);if(i.firstUpdatePass&&Og(i,e,s,r),t!==Me&&et(o,s,t)){let a=i.data[vt()];kg(i,a,o,o[ie],e,o[s+1]=Lb(t,n),r,s)}}function Tb(e,t,n,r){let o=fe(),i=No(2);o.firstUpdatePass&&Og(o,null,i,r);let s=j();if(n!==Me&&et(s,i,n)){let a=o.data[vt()];if(Rg(a,r)&&!Ag(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=cs(c,n||"")),ru(o,a,s,n,r)}else Fb(o,a,s,s[ie],s[i+1],s[i+1]=Rb(e,t,n),r,i)}}function Ag(e,t){return t>=e.expandoStartIndex}function Og(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[vt()],s=Ag(e,n);Rg(i,r)&&t===null&&!s&&(t=!1),t=Nb(o,i,t,r),bb(o,i,t,n,s,r)}}function Nb(e,t,n,r){let o=rp(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Tl(null,e,t,n,r),n=Yo(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Tl(o,e,t,n,r),i===null){let c=Ab(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Tl(null,e,t,c[1],r),c=Yo(c,t.attrs,r),Ob(e,t,r,c))}else i=kb(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Ab(e,t,n){let r=n?t.classBindings:t.styleBindings;if(zr(r)!==0)return e[nr(r)]}function Ob(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[nr(o)]=r}function kb(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Yo(r,s,n)}return Yo(r,t.attrs,n)}function Tl(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=Yo(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Yo(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),ps(e,s,n?!0:t[++i]))}return e===void 0?null:e}function Rb(e,t,n){if(n==null||n==="")return je;let r=[],o=$o(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(o instanceof Set)for(let i of o)e(r,i,!0);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function Pb(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&ps(e,r,n)}function Fb(e,t,n,r,o,i,s,a){o===Me&&(o=je);let c=0,l=0,f=0<o.length?o[0]:null,g=0<i.length?i[0]:null;for(;f!==null||g!==null;){let y=c<o.length?o[c+1]:void 0,m=l<i.length?i[l+1]:void 0,_=null,w;f===g?(c+=2,l+=2,y!==m&&(_=g,w=m)):g===null||f!==null&&f<g?(c+=2,_=f):(l+=2,_=g,w=m),_!==null&&kg(e,t,n,r,_,w,s,a),f=c<o.length?o[c]:null,g=l<i.length?i[l]:null}}function kg(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],f=Cb(l)?Zp(c,t,n,o,zr(l),s):void 0;if(!ea(f)){ea(i)||vb(l)&&(i=Zp(c,null,n,o,a,s));let g=Xc(vt(),n);u_(r,s,g,o,i)}}function Zp(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),f=l?c[1]:c,g=f===null,y=n[o+1];y===Me&&(y=g?je:void 0);let m=g?hs(y,r):f===r?y:void 0;if(l&&!ea(m)&&(m=hs(c,r)),ea(m)&&(a=m,s))return a;let _=e[o+1];o=s?nr(_):zr(_)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=hs(c,r))}return a}function ea(e){return e!==void 0}function Lb(e,t){return e==null||e===""||(typeof t=="string"?e=$o(e)+t:typeof e=="object"&&(e=as($o(e)))),e}function Rg(e,t){return(e.flags&(t?8:16))!==0}function p(e,t=""){let n=j(),r=fe(),o=e+me,i=r.firstCreatePass?la(r,o,1,t,null):r.data[o],s=Vb(r,n,i,t);n[o]=s,Ms()&&yu(r,n,s,i),Fr(i,!1)}var Vb=(e,t,n,r)=>(Ts(!0),E0(t[ie],r));function jb(e,t,n,r=""){return et(e,hn(),n)?t+Kt(n)+r:Me}function Bb(e,t,n,r,o,i=""){let s=dl(),a=Nu(e,s,n,o);return No(2),a?t+Kt(n)+r+Kt(o)+i:Me}function Hb(e,t,n,r,o,i,s,a=""){let c=dl(),l=eC(e,c,n,o,s);return No(3),l?t+Kt(n)+r+Kt(o)+i+Kt(s)+a:Me}function b(e){return R("",e),b}function R(e,t,n){let r=j(),o=jb(r,e,t,n);return o!==Me&&Bu(r,vt(),o),R}function St(e,t,n,r,o){let i=j(),s=Bb(i,e,t,n,r,o);return s!==Me&&Bu(i,vt(),s),St}function ar(e,t,n,r,o,i,s){let a=j(),c=Hb(a,e,t,n,r,o,i,s);return c!==Me&&Bu(a,vt(),c),ar}function Bu(e,t,n){let r=Xc(t,e);w0(e[ie],r,n)}function ee(e,t,n){Os(t)&&(t=t());let r=j(),o=hn();if(et(r,o,t)){let i=fe(),s=Lr();zh(s,r,e,t,r[ie],n)}return ee}function ne(e,t){let n=Os(e);return n&&e.set(t),n}function te(e,t){let n=j(),r=fe(),o=Ie();return Ig(r,n,n[ie],o,e,t),te}function Yp(e,t,n){let r=fe();r.firstCreatePass&&Pg(t,r.data,r.blueprint,Ft(e),n)}function Pg(e,t,n,r,o){if(e=xe(e),Array.isArray(e))for(let i=0;i<e.length;i++)Pg(e[i],t,n,r,o);else{let i=fe(),s=j(),a=Ie(),c=Vn(e)?e:xe(e.provide),l=qc(e),f=a.providerIndexes&1048575,g=a.directiveStart,y=a.providerIndexes>>20;if(Vn(e)||!e.multi){let m=new Jn(l,o,Y,null),_=Al(c,t,o?f:f+y,g);_===-1?(Rl(Us(a,s),i,c),Nl(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(m),s.push(m)):(n[_]=m,s[_]=m)}else{let m=Al(c,t,f+y,g),_=Al(c,t,f,f+y),w=m>=0&&n[m],O=_>=0&&n[_];if(o&&!O||!o&&!w){Rl(Us(a,s),i,c);let P=zb(o?$b:Ub,n.length,o,r,l,e);!o&&O&&(n[_].providerFactory=P),Nl(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(P),s.push(P)}else{let P=Fg(n[o?_:m],l,!o&&r);Nl(i,e,m>-1?m:_,P)}!o&&r&&O&&n[_].componentProviders++}}}function Nl(e,t,n,r){let o=Vn(t),i=Vf(t);if(o||i){let c=(i?xe(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let f=l.indexOf(n);f===-1?l.push(n,[r,c]):l[f+1].push(r,c)}else l.push(n,c)}}}function Fg(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Al(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function Ub(e,t,n,r,o){return su(this.multi,[])}function $b(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Uo(r,r[N],this.providerFactory.index,o);s=c.slice(0,a),su(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],su(i,s);return s}function su(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function zb(e,t,n,r,o,i){let s=new Jn(e,n,Y,null);return s.multi=[],s.index=t,s.componentProviders=0,Fg(s,o,r&&!n),s}function lt(e,t){return n=>{n.providersResolver=(r,o)=>Yp(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>Yp(r,o?o(t):t,!0))}}function ze(e,t){let n=Es()+e,r=j();return r[n]===Me?Tu(r,n,t()):X_(r,n)}function Lg(e,t){let n=e[t];return n===Me?void 0:n}function Gb(e,t,n,r,o,i){let s=t+n;return et(e,s,o)?Tu(e,s+1,i?r.call(i,o):r(o)):Lg(e,s+1)}function Wb(e,t,n,r,o,i,s){let a=t+n;return Nu(e,a,o,i)?Tu(e,a+2,s?r.call(s,o,i):r(o,i)):Lg(e,a+2)}function ut(e,t){let n=fe(),r,o=e+me;n.firstCreatePass?(r=qb(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=ln(r.type,!0)),s,a=Ve(Y);try{let c=Hs(!1),l=i();return Hs(c),tl(n,j(),o,l),l}finally{Ve(a)}}function qb(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function cr(e,t,n){let r=e+me,o=j(),i=el(o,r);return Vg(o,r)?Gb(o,Es(),t,i.transform,n,i):i.transform(n)}function lr(e,t,n,r){let o=e+me,i=j(),s=el(i,o);return Vg(i,o)?Wb(i,Es(),t,s.transform,n,r,s):s.transform(n,r)}function Vg(e,t){return e[N].data[t].pure}var jg=(()=>{class e{applicationErrorHandler=C(mn);appRef=C(bn);taskService=C(Zn);ngZone=C(be);zonelessEnabled=C(Lo);tracing=C(tn,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ee;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(bo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(C(Cl,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?fp:ml;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(bo+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=en({token:e,factory:e.\u0275fac})}return e})();function Hu(){return nn("NgZoneless"),Mr([...Uu(),[]])}function Uu(){return[{provide:gt,useExisting:jg},{provide:be,useClass:Do},{provide:Lo,useValue:!0}]}function Zb(){return typeof $localize<"u"&&$localize.locale||ei}var Yr=new T("",{factory:()=>C(Yr,{optional:!0,skipSelf:!0})||Zb()});var pa=class{destroyed=!1;listeners=null;errorHandler=C(ot,{optional:!0});isEmitting=!1;hasNullListeners=!1;destroyRef=C(ue);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new x(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?this.listeners.indexOf(t):-1;n>-1&&(this.isEmitting?(this.hasNullListeners=!0,this.listeners[n]=null):this.listeners.splice(n,1))}}}emit(t){if(this.destroyed){console.warn(un(953,!1));return}if(this.listeners===null)return;this.isEmitting=!0;let n=k(null);try{for(let r of this.listeners)try{r!==null&&r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{this.hasNullListeners&&(this.hasNullListeners=!1,this.listeners&&Yb(this.listeners)),k(n),this.isEmitting=!1}}};function Yb(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--}function ae(e,t){return Oi(e,t?.equal)}function Ze(e){return qd(e)}var Bg=class e extends Error{_brand;constructor(t){super(t)}static IDLE=new e("IDLE");static LOADING=new e("LOADING")};function $g(e,t){let n=Object.create(Jp);n.value=e,n.transformFn=t?.transform;function r(){if(gr(n),n.value===ta){let o=null;throw new x(-950,o)}return n.value}return r[De]=n,r}function En(e){return new pa}function Hg(e,t){return $g(e,t)}function aD(e){return $g(ta,e)}var dt=(Hg.required=aD,Hg);var cD=1e4;var K2=cD-1e3;var ni=(()=>{class e{static __NG_ELEMENT_ID__=lD}return e})();function lD(e){return uD(Ie(),j(),(e&16)===16)}function uD(e,t,n){if(Xt(e)&&!n){let r=ct(e.index,t);return new _n(r,r)}else if(e.type&175){let r=t[Je];return new _n(r,t)}return null}var $u=new T(""),dD=new T("");function ti(e){return!e.moduleRef}function fD(e){let t=ti(e)?e.r3Injector:e.moduleRef.injector,n=t.get(be);return n.run(()=>{ti(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(mn),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),ti(e)){let i=()=>t.destroy(),s=e.platformInjector.get($u);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get($u);s.add(i),e.moduleRef.onDestroy(()=>{Ho(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return hD(r,n,()=>{let i=t.get(Zn),s=i.add(),a=t.get(Ru);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Yr,ei);if(Sg(c||ei),!t.get(dD,!0))return ti(e)?t.get(bn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(ti(e)){let f=t.get(bn);return e.rootComponent!==void 0&&f.bootstrap(e.rootComponent),f}else return pD?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var pD;function hD(e,t,n){try{let r=n();return Wr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var ha=null;function gD(e=[],t){return ke.create({name:t,providers:[{provide:Mo,useValue:"platform"},{provide:$u,useValue:new Set([()=>ha=null])},...e]})}function mD(e=[]){if(ha)return ha;let t=gD(e);return ha=t,wg(),yD(t),t}function yD(e){let t=e.get(Ns,null);Nr(e,()=>{t?.forEach(n=>n())})}function zg(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;K(Z.BootstrapApplicationStart);try{let i=o?.injector??mD(r),s=[Uu(),hp,...n||[]],a=new Zo({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return fD({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{K(Z.BootstrapApplicationEnd)}}function zu(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Gg(e,t){let n=Qt(e),r=t.elementInjector||Tr();return new tr(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function ri(e){let t=Qt(e);if(!t)return null;let n=new tr(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Wg=null;function Mt(){return Wg}function Gu(e){Wg??=e}var oi=class{},ma=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Q({token:e,factory:()=>C(qg),providedIn:"platform"})}return e})();var qg=(()=>{class e extends ma{_location;_history;_doc=C(Re);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Mt().getBaseHref(this._doc)}onPopState(n){let r=Mt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Mt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Q({token:e,factory:()=>new e,providedIn:"platform"})}return e})();var Ku=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(Ku||{});var Pe=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(Pe||{}),oe=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(oe||{}),Ye=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Ye||{}),Ge={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Qg(e){return qe(e)[he.LocaleId]}function Kg(e,t,n){let r=qe(e),o=[r[he.DayPeriodsFormat],r[he.DayPeriodsStandalone]],i=ft(o,t);return ft(i,n)}function Jg(e,t,n){let r=qe(e),o=[r[he.DaysFormat],r[he.DaysStandalone]],i=ft(o,t);return ft(i,n)}function Xg(e,t,n){let r=qe(e),o=[r[he.MonthsFormat],r[he.MonthsStandalone]],i=ft(o,t);return ft(i,n)}function em(e,t){let r=qe(e)[he.Eras];return ft(r,t)}function ii(e,t){let n=qe(e);return ft(n[he.DateFormat],t)}function si(e,t){let n=qe(e);return ft(n[he.TimeFormat],t)}function ai(e,t){let r=qe(e)[he.DateTimeFormat];return ft(r,t)}function Ht(e,t){let n=qe(e),r=n[he.NumberSymbols][t];if(typeof r>"u"){if(t===Ge.CurrencyDecimal)return n[he.NumberSymbols][Ge.Decimal];if(t===Ge.CurrencyGroup)return n[he.NumberSymbols][Ge.Group]}return r}function tm(e,t){return qe(e)[he.NumberFormats][t]}function nm(e){if(!e[he.ExtraData])throw new x(2303,!1)}function rm(e){let t=qe(e);return nm(t),(t[he.ExtraData][2]||[]).map(r=>typeof r=="string"?Wu(r):[Wu(r[0]),Wu(r[1])])}function om(e,t,n){let r=qe(e);nm(r);let o=[r[he.ExtraData][0],r[he.ExtraData][1]],i=ft(o,t)||[];return ft(i,n)||[]}function ft(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new x(2304,!1)}function Wu(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var vD=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ya=Object.create(null),_D=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,CD=256;function im(e,t,n,r){let o=ND(e);bD(t),t=sn(n,t)||t;let s=[],a;for(;t;)if(a=_D.exec(t),a){s=s.concat(a.slice(1));let f=s.pop();if(!f)break;t=f}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=am(r,c),o=TD(o,r));let l="";return s.forEach(f=>{let g=ID(f);l+=g?g(o,n,c):f==="''"?"'":f.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function bD(e){if(e.length>CD)throw new x(2300,!1)}function Da(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function sn(e,t){let n=Qg(e);if(ya[n]??=Object.create(null),ya[n][t])return ya[n][t];let r="";switch(t){case"shortDate":r=ii(e,Ye.Short);break;case"mediumDate":r=ii(e,Ye.Medium);break;case"longDate":r=ii(e,Ye.Long);break;case"fullDate":r=ii(e,Ye.Full);break;case"shortTime":r=si(e,Ye.Short);break;case"mediumTime":r=si(e,Ye.Medium);break;case"longTime":r=si(e,Ye.Long);break;case"fullTime":r=si(e,Ye.Full);break;case"short":let o=sn(e,"shortTime"),i=sn(e,"shortDate");r=va(ai(e,Ye.Short),[o,i]);break;case"medium":let s=sn(e,"mediumTime"),a=sn(e,"mediumDate");r=va(ai(e,Ye.Medium),[s,a]);break;case"long":let c=sn(e,"longTime"),l=sn(e,"longDate");r=va(ai(e,Ye.Long),[c,l]);break;case"full":let f=sn(e,"fullTime"),g=sn(e,"fullDate");r=va(ai(e,Ye.Full),[f,g]);break}return r&&(ya[n][t]=r),r}function va(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function Tt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function DD(e,t){return Tt(e,3).substring(0,t)}function ye(e,t,n=0,r=!1,o=!1){return function(i,s){let a=ED(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return DD(a,t);let c=Ht(s,Ge.MinusSign);return Tt(a,t,c,r,o)}}function ED(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new x(2301,!1)}}function se(e,t,n=Pe.Format,r=!1){return function(o,i){return wD(o,i,e,t,n,r)}}function wD(e,t,n,r,o,i){switch(n){case 2:return Xg(t,o,r)[e.getMonth()];case 1:return Jg(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let l=rm(t),f=om(t,o,r),g=l.findIndex(y=>{if(Array.isArray(y)){let[m,_]=y,w=s>=m.hours&&a>=m.minutes,O=s<_.hours||s===_.hours&&a<_.minutes;if(m.hours<_.hours){if(w&&O)return!0}else if(w||O)return!0}else if(y.hours===s&&y.minutes===a)return!0;return!1});if(g!==-1)return f[g]}return Kg(t,o,r)[s<12?0:1];case 3:return em(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new x(2302,!1)}}function _a(e){return function(t,n,r){let o=-1*r,i=Ht(n,Ge.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+Tt(s,2,i)+Tt(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+Tt(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+Tt(s,2,i)+":"+Tt(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+Tt(s,2,i)+":"+Tt(Math.abs(o%60),2,i);default:throw new x(2310,!1)}}}var xD=0,ba=4;function SD(e){let t=Da(e,xD,1).getDay();return Da(e,0,1+(t<=ba?ba:ba+7)-t)}function sm(e){let t=e.getDay(),n=t===0?-3:ba-t;return Da(e.getFullYear(),e.getMonth(),e.getDate()+n)}function qu(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=sm(n),s=SD(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Tt(o,e,Ht(r,Ge.MinusSign))}}function Ca(e,t=!1){return function(n,r){let i=sm(n).getFullYear();return Tt(i,e,Ht(r,Ge.MinusSign),t)}}var Zu=Object.create(null);function ID(e){if(Zu[e])return Zu[e];let t;switch(e){case"G":case"GG":case"GGG":t=se(3,oe.Abbreviated);break;case"GGGG":t=se(3,oe.Wide);break;case"GGGGG":t=se(3,oe.Narrow);break;case"y":t=ye(0,1,0,!1,!0);break;case"yy":t=ye(0,2,0,!0,!0);break;case"yyy":t=ye(0,3,0,!1,!0);break;case"yyyy":t=ye(0,4,0,!1,!0);break;case"Y":t=Ca(1);break;case"YY":t=Ca(2,!0);break;case"YYY":t=Ca(3);break;case"YYYY":t=Ca(4);break;case"M":case"L":t=ye(1,1,1);break;case"MM":case"LL":t=ye(1,2,1);break;case"MMM":t=se(2,oe.Abbreviated);break;case"MMMM":t=se(2,oe.Wide);break;case"MMMMM":t=se(2,oe.Narrow);break;case"LLL":t=se(2,oe.Abbreviated,Pe.Standalone);break;case"LLLL":t=se(2,oe.Wide,Pe.Standalone);break;case"LLLLL":t=se(2,oe.Narrow,Pe.Standalone);break;case"w":t=qu(1);break;case"ww":t=qu(2);break;case"W":t=qu(1,!0);break;case"d":t=ye(2,1);break;case"dd":t=ye(2,2);break;case"c":case"cc":t=ye(7,1);break;case"ccc":t=se(1,oe.Abbreviated,Pe.Standalone);break;case"cccc":t=se(1,oe.Wide,Pe.Standalone);break;case"ccccc":t=se(1,oe.Narrow,Pe.Standalone);break;case"cccccc":t=se(1,oe.Short,Pe.Standalone);break;case"E":case"EE":case"EEE":t=se(1,oe.Abbreviated);break;case"EEEE":t=se(1,oe.Wide);break;case"EEEEE":t=se(1,oe.Narrow);break;case"EEEEEE":t=se(1,oe.Short);break;case"a":case"aa":case"aaa":t=se(0,oe.Abbreviated);break;case"aaaa":t=se(0,oe.Wide);break;case"aaaaa":t=se(0,oe.Narrow);break;case"b":case"bb":case"bbb":t=se(0,oe.Abbreviated,Pe.Standalone,!0);break;case"bbbb":t=se(0,oe.Wide,Pe.Standalone,!0);break;case"bbbbb":t=se(0,oe.Narrow,Pe.Standalone,!0);break;case"B":case"BB":case"BBB":t=se(0,oe.Abbreviated,Pe.Format,!0);break;case"BBBB":t=se(0,oe.Wide,Pe.Format,!0);break;case"BBBBB":t=se(0,oe.Narrow,Pe.Format,!0);break;case"h":t=ye(3,1,-12);break;case"hh":t=ye(3,2,-12);break;case"H":t=ye(3,1);break;case"HH":t=ye(3,2);break;case"m":t=ye(4,1);break;case"mm":t=ye(4,2);break;case"s":t=ye(5,1);break;case"ss":t=ye(5,2);break;case"S":t=ye(6,1);break;case"SS":t=ye(6,2);break;case"SSS":t=ye(6,3);break;case"Z":case"ZZ":case"ZZZ":t=_a(0);break;case"ZZZZZ":t=_a(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=_a(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=_a(2);break;default:return null}return Zu[e]=t,t}function am(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function MD(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function TD(e,t,n){let o=e.getTimezoneOffset(),i=am(t,o);return MD(e,-1*(i-o))}function ND(e){if(Zg(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return Da(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(vD))return AD(r)}let t=new Date(e);if(!Zg(t))throw new x(2311,!1);return t}function AD(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),l=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,l),t}function Zg(e){return e instanceof Date&&!isNaN(e.valueOf())}var OD=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Yg=22,Ea=".",ci="0",kD=";",RD=",",Yu="#";function PD(e,t,n,r,o,i,s=!1){let a="",c=!1;if(!isFinite(e))a=Ht(n,Number.isNaN(e)?Ge.NaN:Ge.Infinity);else{let l=VD(e);s&&(l=LD(l));let f=t.minInt,g=t.minFrac,y=t.maxFrac;if(i){let ce=i.match(OD);if(ce===null)throw new x(2306,!1);let Qe=ce[1],tt=ce[3],Ke=ce[5];Qe!=null&&(f=Qu(Qe)),tt!=null&&(g=Qu(tt)),Ke!=null?y=Qu(Ke):tt!=null&&g>y&&(y=g);let nt=100;if(f>nt||g>nt||y>nt)throw new x(2306,!1)}jD(l,g,y);let m=l.digits,_=l.integerLen,w=l.exponent,O=[];for(c=m.every(ce=>!ce);_<f;_++)m.unshift(0);for(;_<0;_++)m.unshift(0);_>0?O=m.splice(_,m.length):(O=m,m=[0]);let P=[];for(m.length>=t.lgSize&&P.unshift(m.splice(-t.lgSize,m.length).join(""));m.length>t.gSize;)P.unshift(m.splice(-t.gSize,m.length).join(""));m.length&&P.unshift(m.join("")),a=P.join(Ht(n,r)),O.length&&(a+=Ht(n,o)+O.join("")),w&&(a+=Ht(n,Ge.Exponential)+"+"+w)}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function cm(e,t,n){let r=tm(t,Ku.Decimal),o=FD(r,Ht(t,Ge.MinusSign));return PD(e,o,t,Ge.Group,Ge.Decimal,n)}function FD(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(kD),o=r[0],i=r[1],s=o.indexOf(Ea)!==-1?o.split(Ea):[o.substring(0,o.lastIndexOf(ci)+1),o.substring(o.lastIndexOf(ci)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(Yu));for(let f=0;f<c.length;f++){let g=c.charAt(f);g===ci?n.minFrac=n.maxFrac=f+1:g===Yu?n.maxFrac=f+1:n.posSuf+=g}let l=a.split(RD);if(n.gSize=l[1]?l[1].length:0,n.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,i){let f=o.length-n.posPre.length-n.posSuf.length,g=i.indexOf(Yu);n.negPre=i.substring(0,g).replace(/'/g,""),n.negSuf=i.slice(g+f).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function LD(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function VD(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(Ea))>-1&&(t=t.replace(Ea,"")),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===ci;i++);if(i===(a=t.length))r=[0],o=1;else{for(a--;t.charAt(a)===ci;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i))}return o>Yg&&(r=r.splice(0,Yg-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function jD(e,t,n){if(t>n)throw new x(2307,!1);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let g=s;g<r.length;g++)r[g]=0}else{o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let g=1;g<s;g++)r[g]=0}if(a>=5)if(s-1<0){for(let g=0;g>s;g--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let c=i!==0,l=t+e.integerLen,f=r.reduceRight(function(g,y,m,_){return y=y+g,_[m]=y<10?y:y-10,c&&(_[m]===0&&m>=l?_.pop():c=!1),y>=10?1:0},0);f&&(r.unshift(f),e.integerLen++)}function Qu(e){let t=parseInt(e);if(isNaN(t))throw new x(2305,!1);return t}function lm(e,t){return new x(2100,!1)}var BD="mediumDate",um=new T(""),dm=new T(""),Ju=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??BD,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return im(n,s,i||this.locale,a)}catch(s){throw lm(e,s.message)}}static \u0275fac=function(r){return new(r||e)(Y(Yr,16),Y(um,24),Y(dm,24))};static \u0275pipe=ua({name:"date",type:e,pure:!0})}return e})();var li=(()=>{class e{_locale;constructor(n){this._locale=n}transform(n,r,o){if(!HD(n))return null;o||=this._locale;try{let i=UD(n);return cm(i,o,r)}catch(i){throw lm(e,i.message)}}static \u0275fac=function(r){return new(r||e)(Y(Yr,16))};static \u0275pipe=ua({name:"number",type:e,pure:!0})}return e})();function HD(e){return!(e==null||e===""||e!==e)}function UD(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new x(2309,!1);return e}var wn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Cn({type:e});static \u0275inj=Yt({})}return e})();function ui(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()!==t)continue;let s=i;try{s=decodeURIComponent(i)}catch{}return s.length>1&&s[0]==='"'&&s[s.length-1]==='"'&&(s=s.slice(1,-1)),s}return null}var fm="browser";var di=class{_doc;constructor(t){this._doc=t}manager},wa=(()=>{class e extends di{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(H(Re))};static \u0275prov=Q({token:e,factory:e.\u0275fac})}return e})(),Ia=new T(""),rd=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof wa));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof wa);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new x(-5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(H(Ia),H(be))};static \u0275prov=Q({token:e,factory:e.\u0275fac})}return e})(),ed="ng-app-id";function pm(e){for(let t of e)t.remove()}function hm(e,t){let n=t.createElement("style");return n.textContent=e,n}function GD(e,t,n,r){let o=e.head?.querySelectorAll(`style[${ed}="${t}"],link[${ed}="${t}"]`);if(!o||o.length===0)return!1;for(let i of o)i.removeAttribute(ed),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]});return!0}function nd(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var od=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,GD(n,r,this.inline,this.external)&&this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,hm);r?.forEach(o=>this.addUsage(o,this.external,nd))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(pm(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])pm(n);this.hosts.clear()}addHost(n){if(!this.hosts.has(n)){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,hm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,nd(r,this.doc)))}}removeHost(n){this.hosts.delete(n);for(let r of[...this.inline.values(),...this.external.values()]){let o=[];for(let i of r.elements)i.parentNode===n?i.remove():o.push(i);r.elements=o}}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(H(Re),H(ko),H(Po,8),H(Ro))};static \u0275prov=Q({token:e,factory:e.\u0275fac})}return e})(),td={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},id=/%COMP%/g;var mm="%COMP%",WD=`_nghost-${mm}`,qD=`_ngcontent-${mm}`,ZD=!0,YD=new T("",{factory:()=>ZD}),QD=new T("");function KD(e){return qD.replace(id,e)}function JD(e){return WD.replace(id,e)}function ym(e,t){return t.map(n=>n.replace(id,e))}var sd=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(n,r,o,i,s,a,c=null,l=null,f=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=l,this.cssVarNamespace=f??"",this.defaultRenderer=new fi(n,s,a,this.tracingService,this.cssVarNamespace)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Sa?o.applyToHost(n):o instanceof pi&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,g=this.tracingService;switch(r.encapsulation){case Dt.Emulated:i=new Sa(c,l,r,this.appId,f,s,a,g,this.cssVarNamespace);break;case Dt.ShadowDom:return new xa(c,n,r,s,a,this.nonce,g,this.cssVarNamespace,l);case Dt.ExperimentalIsolatedShadowDom:return new xa(c,n,r,s,a,this.nonce,g,this.cssVarNamespace);default:i=new pi(c,l,r,f,s,a,g,this.cssVarNamespace);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(H(rd),H(or),H(ko),H(YD),H(Re),H(be),H(Po),H(tn,8),H(QD,8))};static \u0275prov=Q({token:e,factory:e.\u0275fac})}return e})(),fi=class{eventManager;doc;ngZone;tracingService;cssVarNamespace;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i=""){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o,this.cssVarNamespace=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(td[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(gm(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){if(t){let o=gm(t)?t.content:t;if(r!=null&&r.parentNode!==o)throw new x(-5106,!1);o.insertBefore(n,r)}}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new x(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=td[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=td[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){let i=n.startsWith("--");i&&(n=n.replace("%NS%",this.cssVarNamespace)),i||o&(jt.DashCase|jt.Important)?t.style.setProperty(n,r,o&jt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){let o=n.startsWith("--");o&&(n=n.replace("%NS%",this.cssVarNamespace)),o||r&jt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=Mt().getGlobalEventTarget(this.doc,t),!t))throw new x(-5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function gm(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var xa=class extends fi{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c,l){super(t,o,i,a,c),this.hostEl=n,this.sharedStylesHost=l,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let f=r.styles;f=ym(r.id,f).map(y=>y.replace(/%NS%/g,c));for(let y of f){let m=document.createElement("style");s&&m.setAttribute("nonce",s),m.textContent=y,this.shadowRoot.appendChild(m)}let g=r.getExternalStyles?.();if(g)for(let y of g){let m=nd(y,o);s&&m.setAttribute("nonce",s),this.shadowRoot.appendChild(m)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},pi=class extends fi{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,l){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let f=r.styles,g=l?ym(l,f):f;this.styles=g.map(y=>y.replace(/%NS%/g,c)),this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&vn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Sa=class extends pi{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,l){let f=o+"-"+r.id;super(t,n,r,i,s,a,c,l,f),this.contentAttr=KD(f),this.hostAttr=JD(f)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Ma=class e extends oi{supportsDOMEvents=!0;static makeCurrent(){Gu(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=XD();return n==null?null:eE(n)}resetBaseElement(){hi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ui(document.cookie,t)}},hi=null;function XD(){return hi=hi||document.head.querySelector("base"),hi?hi.getAttribute("href"):null}function eE(e){return new URL(e,document.baseURI).pathname}var vm=["alt","control","meta","shift"],tE={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},nE={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},_m=(()=>{class e extends di{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Mt().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),vm.forEach(l=>{let f=r.indexOf(l);f>-1&&(r.splice(f,1),s+=l+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=tE[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),vm.forEach(s=>{if(s!==o){let a=nE[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(H(Re))};static \u0275prov=Q({token:e,factory:e.\u0275fac})}return e})();async function ad(e,t){return zg(rE(e,t))}function rE(e,t){return{platformRef:t?.platformRef,appProviders:[...cE,...e?.providers??[]],platformProviders:aE}}function oE(){Ma.makeCurrent()}function iE(){return new ot}function sE(){return lu(document),document}var aE=[{provide:Ro,useValue:fm},{provide:Ns,useValue:oE,multi:!0},{provide:Re,useFactory:sE}];var cE=[{provide:Mo,useValue:"root"},{provide:ot,useFactory:iE},{provide:Ia,useClass:wa,multi:!0},{provide:Ia,useClass:_m,multi:!0},sd,{provide:or,useClass:od},{provide:od,useExisting:or},rd,{provide:er,useExisting:sd},[]];var cn=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
+ `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init();for(let[n,r]of t.headers.entries())this.headers.set(n,r),this.normalizedNames.set(n,t.normalizedNames.get(n))}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=t.op==="a"?(this.headers.get(n)||[]).slice():[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(i===void 0)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=Array.isArray(i)?i:[i],a=this.headers.get(n);if(!a)return;a=a.filter(c=>s.indexOf(c)===-1),a.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,a)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Na=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},Aa=class{encodeKey(t){return Cm(t)}encodeValue(t){return Cm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function lE(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var uE=/%(\d[a-f0-9])/gi,dE={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Cm(e){return encodeURIComponent(e).replace(uE,(t,n)=>dE[n]??t)}function Ta(e){return`${e}`}var an=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Aa,t.fromString){if(t.fromObject)throw new x(2805,!1);this.map=lE(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Ta):[Ta(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[t,n]of this.cloneFrom.map.entries())this.map.set(t,n);this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=t.op==="a"?(this.map.get(t.param)||[]).slice():[];n.push(Ta(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=(this.map.get(t.param)||[]).slice(),o=r.indexOf(Ta(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null}}};function fE(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function bm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Dm(e){return typeof Blob<"u"&&e instanceof Blob}function Em(e){return typeof FormData<"u"&&e instanceof FormData}function pE(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var cd="Content-Type",wm="Accept",Im="text/plain",Mm="application/json",hE=`${Mm}, ${Im}, */*`,Qr=class e{url;body=null;headers;context;reportProgress=!1;reportUploadProgress=!1;reportDownloadProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(fE(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.reportUploadProgress=!!i.reportUploadProgress,this.reportDownloadProgress=!!i.reportDownloadProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new x(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new cn,this.context??=new Na,!this.params)this.params=new an,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n,c="",l=n.indexOf("#");l!==-1&&(c=n.substring(l),a=n.substring(0,l));let f=a.indexOf("?"),g=f===-1?"?":f<a.length-1?"&":"";this.urlWithParams=a+g+s+c}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||bm(this.body)||Dm(this.body)||Em(this.body)||pE(this.body)?this.body:this.body instanceof an?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Em(this.body)?null:Dm(this.body)?this.body.type||null:bm(this.body)?null:typeof this.body=="string"?Im:this.body instanceof an?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Mm:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,l=t.redirect||this.redirect,f=t.credentials||this.credentials,g=t.referrer??this.referrer,y=t.integrity||this.integrity,m=t.referrerPolicy||this.referrerPolicy,_=t.transferCache??this.transferCache,w=t.timeout??this.timeout,O=t.body!==void 0?t.body:this.body,P=t.withCredentials??this.withCredentials,ce=t.reportProgress??this.reportProgress,Qe=t.reportUploadProgress??this.reportUploadProgress,tt=t.reportDownloadProgress??this.reportDownloadProgress,Ke=t.headers||this.headers,nt=t.params||this.params,zt=t.context??this.context;return t.setHeaders!==void 0&&(Ke=Object.keys(t.setHeaders).reduce((Fe,Nt)=>Fe.set(Nt,t.setHeaders[Nt]),Ke)),t.setParams&&(nt=Object.keys(t.setParams).reduce((Fe,Nt)=>Fe.set(Nt,t.setParams[Nt]),nt)),new e(n,r,O,{params:nt,headers:Ke,context:zt,reportProgress:ce,reportUploadProgress:Qe,reportDownloadProgress:tt,responseType:o,withCredentials:P,transferCache:_,keepalive:i,cache:a,priority:s,timeout:w,mode:c,redirect:l,credentials:f,referrer:g,integrity:y,referrerPolicy:m})}},dr=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(dr||{}),Kr=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new cn,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},Oa=class e extends Kr{constructor(t={}){super(t)}type=dr.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},gi=class e extends Kr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=dr.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},ur=class extends Kr{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},gE=200;var mE=/^\)\]\}',?\n/,UV=1024*1024,Tm=new T("",{factory:()=>null}),Jr=(()=>{class e{fetchImpl=C(ud,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=C(be);destroyRef=C(ue);maxResponseSize=C(Tm);handle(n){return new q(r=>{let o=new AbortController,i=!1,s={next:c=>{c.type===dr.Response&&(i=!0),r.next(c)},error:c=>{i=!0,r.error(c)},complete:()=>{i=!0,r.complete()}};this.doRequest(n,o.signal,s).then(dd,c=>s.error(new ur({error:c})));let a;return n.timeout&&(a=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"))},n.timeout))),()=>{a!==void 0&&clearTimeout(a),!i&&!o.signal.aborted&&o.abort()}})}async doRequest(n,r,o){let i=this.createRequestInit(n),s;try{let O=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,V({signal:r},i)));yE(O),o.next({type:dr.Sent}),s=await O}catch(O){o.error(new ur({error:O,status:O.status??0,statusText:O.statusText,url:n.urlWithParams,headers:O.headers}));return}let a=new cn(s.headers),c=s.statusText,l=s.url||n.urlWithParams,f=s.status,g=null,y=n.reportProgress||n.reportDownloadProgress;if(y&&o.next(new Oa({headers:a,status:f,statusText:c,url:l})),s.body){let O=s.headers.get(cd)??"",P=s.headers.get("content-length"),ce=P!==null?Number(P):NaN;this.maxResponseSize!==null&&Number.isFinite(ce)&&ce>this.maxResponseSize&&(await s.body.cancel(),xm(this.maxResponseSize));let Qe=[],tt=s.body.getReader(),Ke=0,nt,zt,Fe=typeof Zone<"u"&&Zone.current,Nt=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await tt.cancel(),Nt=!0;break}let{done:Ja,value:Xa}=await tt.read();if(Ja)break;if(Qe.push(Xa),Ke+=Xa.length,this.maxResponseSize!==null&&Ke>this.maxResponseSize&&(await tt.cancel(),xm(this.maxResponseSize)),y){zt=n.responseType==="text"?(zt??"")+(nt??=Sm(O)).decode(Xa,{stream:!0}):void 0;let Fd=()=>o.next({type:dr.DownloadProgress,total:Number.isFinite(ce)?ce:void 0,loaded:Ke,partialText:zt});Fe?Fe.run(Fd):Fd()}}}),Nt){o.complete();return}let Ey=this.concatChunks(Qe,Ke);try{g=this.parseBody(n,Ey,O,f)}catch(Ja){o.error(new ur({error:Ja,headers:new cn(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}f===0&&(f=g?gE:0);let m=f>=200&&f<300,_=s.redirected,w=s.type;m?(o.next(new gi({body:g,headers:a,status:f,statusText:c,url:l,redirected:_,responseType:w})),o.complete()):o.error(new ur({error:g,headers:a,status:f,statusText:c,url:l,redirected:_,responseType:w}))}parseBody(n,r,o,i){switch(n.responseType){case"json":let s=new TextDecoder().decode(r).replace(mE,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(i<200||i>=300)return s;throw a}case"text":return Sm(o).decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){if(n.reportUploadProgress)throw new x(2824,!1);let r={},o;if(o=n.credentials,n.withCredentials&&(o="include"),n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has(wm)||(r[wm]=hE),!n.headers.has(cd)){let i=n.detectContentTypeHeader();i!==null&&(r[cd]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity,referrerPolicy:n.referrerPolicy}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=en({token:e,factory:e.\u0275fac})}return e})(),ud=class{};function dd(){}function yE(e){e.then(dd,dd)}function xm(e){throw new x(-2825,!1)}var vE=/charset=\s*["']?([^;"'\s]+)["']?/i;function Sm(e){let t=e.match(vE);if(t!==null)try{return new TextDecoder(t[1])}catch{}return new TextDecoder}var _E=new T("",{factory:()=>!0}),CE="XSRF-TOKEN",bE=new T("",{factory:()=>CE}),DE="X-XSRF-TOKEN",EE=new T("",{factory:()=>DE}),wE=(()=>{class e{cookieName=C(bE);doc=C(Re);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ui(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=en({token:e,factory:e.\u0275fac})}return e})(),Nm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Q({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=H(wE),o},providedIn:"root"})}return e})();function Am(e,t){if(!C(_E)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=C(ma).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch{return t(e)}let n=C(Nm).getToken(),r=C(EE);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function xE(e,t){return t(e)}function SE(e,t,n){return(r,o)=>Nr(n,()=>t(r,i=>e(i,o)))}var fd=new T("",{factory:()=>[Am]}),Om=new T(""),km=new T("",{factory:()=>!0});var Ra=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Q({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=H(Jr),o},providedIn:"root"})}return e})();var ka=(()=>{class e{backend;injector;chain=null;pendingTasks=C(Vr);contributeToStability=C(km);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let o=this.injector.get(Pa,null,{skipSelf:!0}),i=o!==null&&this.backend===o,s=this.injector.get(Om,[],i?{self:!0}:void 0),a=Array.from(new Set([...this.injector.get(fd),...s]));this.chain=a.reduceRight((c,l)=>SE(c,l,this.injector),xE)}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return Ze(()=>r(n,i=>this.backend.handle(i))).pipe(Dc(o))}else return Ze(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)(H(Ra),H(Be))};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Pa=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Q({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=H(ka),o},providedIn:"root"})}return e})();function ld(e,t){return V({body:t},e)}var Fa=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Qr)i=n;else{let c;o.headers instanceof cn?c=o.headers:c=new cn(o.headers);let l;o.params&&(o.params instanceof an?l=o.params:l=new an({fromObject:o.params})),i=new Qr(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let s=yc(i).pipe(bc(c=>this.handler.handle(c)));if(n instanceof Qr||o.observe==="events")return s;let a=s.pipe(Cc(c=>c instanceof gi));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(we(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new x(2806,!1);return c.body}));case"blob":return a.pipe(we(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new x(2807,!1);return c.body}));case"text":return a.pipe(we(c=>{if(c.body!==null&&typeof c.body!="string")throw new x(2808,!1);return c.body}));default:return a.pipe(we(c=>c.body))}case"response":return a;default:throw new x(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new an().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,ld(o,r))}post(n,r,o={}){return this.request("POST",n,ld(o,r))}put(n,r,o={}){return this.request("PUT",n,ld(o,r))}static \u0275fac=function(r){return new(r||e)(H(Pa))};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var La=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e[e.Xhr=7]="Xhr",e})(La||{});function Rm(e,t){return{\u0275kind:e,\u0275providers:t}}function pd(...e){let t=[Fa,Jr,ka,{provide:Pa,useExisting:ka},{provide:Ra,useFactory:()=>C(Jr)},{provide:fd,useValue:Am,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return Mr(t)}function hd(e){return Rm(La.Interceptors,e.map(t=>({provide:fd,useValue:t,multi:!0})))}function gd(){return Rm(La.Fetch,[Jr,{provide:Ra,useExisting:Jr}])}var Xr=new T("AASTRIKA_CONFIG");var Ut=class e{http=C(Fa);config=C(Xr);base=this.config.apiBase;studio=`${this.base}/v1/studio`;assessment=`${this.base}/v1/quiz`;usage=`${this.base}/v1/usage`;auth=`${this.base}/auth`;currentUser=F(null);creator(){return this.config.creator?.()??this.currentUser()?.username??null}me(){return this.http.get(`${this.auth}/me`)}login(t,n){return this.http.post(`${this.auth}/login`,{username:t,password:n})}logout(){return this.http.post(`${this.auth}/logout`,{})}voices(){return this.http.get(`${this.studio}/list-voices`)}uploadDoc(t){let n=new FormData;return n.append("file",t),n.append("kind","document"),this.http.post(`${this.studio}/upload`,n)}planEdits(t){return this.http.post(`${this.studio}/generate-plan`,t)}plan(t){return this.http.post(`${this.studio}/generate-plan`,t)}uploadReference(t){let n=new FormData;return n.append("file",t),n.append("kind","reference-video"),this.http.post(`${this.studio}/upload`,n)}uploadImage(t){let n=new FormData;return n.append("file",t),n.append("kind","image"),this.http.post(`${this.studio}/upload`,n)}reviseplan(t,n){return this.http.patch(`${this.studio}/revise-plan/${t}`,n)}generateVideo(t,n={}){return this.http.post(`${this.studio}/generate-video/${t}`,n)}studioJobs(){return this.http.get(`${this.studio}/list-videos`)}job(t){return this.http.get(`${this.studio}/get-video/${t}`)}downloadVideoUrl(t){return this.http.get(`${this.studio}/download-video/${t}?as=url`)}downloadVideoHref(t){return`${this.studio}/download-video/${t}`}deleteVideo(t){return this.http.delete(`${this.studio}/delete-video/${t}`)}languages(){return this.http.get(`${this.assessment}/languages`)}assessmentJobs(){return this.http.get(`${this.assessment}/list`)}generateAssessment(t){return this.http.post(`${this.assessment}/generate`,t)}readSources(t,n,r){let o=new FormData;for(let i of t)o.append("files",i);return n.trim()&&o.append("links",n),r&&o.append("language",r),this.http.post(`${this.assessment}/upload`,o)}saveAssessment(t,n){return this.http.patch(`${this.assessment}/update/${t}`,{assessment:n})}exportUrl(t,n="xlsx"){return this.http.get(`${this.assessment}/export/${t}?format=${n}&as=url`)}exportHref(t,n="xlsx"){return`${this.assessment}/export/${t}?format=${n}`}deleteQuiz(t){return this.http.delete(`${this.assessment}/delete/${t}`)}usageReport(t={}){let n=Object.fromEntries(Object.entries(t).filter(([,r])=>r!=null&&r!==""));return this.http.post(`${this.usage}/get-report`,n)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})};function md(e){return e.video===!0}var IE="x-aastrika-creator",Pm=(e,t)=>{let n=C(Xr),r=C(Ut).creator(),o={};return r&&(o[IE]=r),n.getAuthHeaders?Gt(Promise.resolve(n.getAuthHeaders())).pipe(Pn(i=>t(e.clone({setHeaders:V(V({},o),i)})))):t(Object.keys(o).length?e.clone({setHeaders:o}):e)};var Fm={apiBase:""},eo=Fm,Lm=!1;function ME(){if(!Lm)throw new Error(`Aastrika: configure() was never called. A host must supply at least apiBase:
6
6
 
7
7
  import { configure } from '@aastrika/ai-elements';
8
8
  configure({ apiBase: 'https://api.example.org/ai-studio' });
9
9
 
10
- Use an empty apiBase only when the service is same-origin.`)}function DE(e){if(typeof e?.apiBase!="string")throw new Error(`Aastrika: configure() needs an apiBase string, received ${typeof e?.apiBase}. Pass an empty string for same-origin.`);Aa=V(V({},Nm),e),Am=!0}var Om={get apiBase(){return CE(),Aa.apiBase},get getAuthHeaders(){return Aa.getAuthHeaders},get creator(){return Aa.creator}};var bE={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function EE(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function wE(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var dd;function SE(e,t){if(!dd){let n=Element.prototype;dd=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?dd.call(e,t):!1}function xE(e){let t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[EE(r)]=[n,o]}),t}function IE(e,t){return Qo(e).inputs}function ME(e,t){let n=e.childNodes,r=t.map(()=>[]),o=-1;t.some((i,s)=>i==="*"?(o=s,!0):!1);for(let i=0,s=n.length;i<s;++i){let a=n[i],c=TE(a,t,o);c!==-1&&r[c].push(a)}return r}function TE(e,t,n){let r=n;return wE(e)&&t.some((o,i)=>o!=="*"&&SE(e,o)?(r=i,!0):!1),r}var NE=10,fd=class{component;componentMirror;inputMap=new Map;constructor(t){this.component=t,this.componentMirror=Qo(t);for(let n of this.componentMirror.inputs)this.inputMap.set(n.propName,n.templateName)}create(t){return new pd(this.component,t,this.inputMap)}},pd=class{component;injector;inputMap;eventEmitters=new lo(1);events=this.eventEmitters.pipe(An(t=>hc(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,n,r){this.component=t,this.injector=n,this.inputMap=r,this.ngZone=this.injector.get(_e),this.appRef=this.injector.get(vn),this.cdScheduler=n.get(pt),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=bE.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},NE))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){if(this.componentRef===null){this.initialInputValues.set(t,n);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,n),Cu(this.componentRef.hostView)&&(Du(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(t){let n=ze.create({providers:[],parent:this.injector}),r=ME(t,Qo(this.component).ngContentSelectors);this.componentRef=jg(this.component,{environmentInjector:this.injector,elementInjector:n,hostElement:t,projectableNodes:r}),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,n]of this.initialInputValues)this.setInputValue(t,n);this.initialInputValues.clear()}initializeOutputs(t){let n=Qo(this.component).outputs.map(({propName:r,templateName:o})=>{let i=t.instance[r];return new Z(s=>{let a=i.subscribe(c=>s.next({name:o,value:c}));return()=>a.unsubscribe()})});this.eventEmitters.next(n)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},hd=class extends HTMLElement{ngElementEventsSubscription=null};function km(e,t){let n=IE(e),r=t.strategyFactory||new fd(e),o=xE(n);class i extends hd{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:c,transform:l})=>{if(!Object.hasOwn(this,c))return;let f=this[c];delete this[c],a.setInputValue(c,f,l)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,l,f){let[g,y]=o[a];this.ngElementStrategy.setInputValue(g,l,y)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let c=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(c)})}}return n.forEach(({propName:s,transform:a,isSignal:c})=>{Object.defineProperty(i.prototype,s,{get(){let l=this.ngElementStrategy.getInputValue(s);return c&&kr(l)?l():l},set(l){this.ngElementStrategy.setInputValue(s,l,a)},configurable:!0,enumerable:!0})}),i}function Rm(e,t){return customElements.get(e.tag)?!1:(customElements.define(e.tag,km(e.component,{injector:t})),!0)}var zm=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(Y(Lt),Y(Dt))};static \u0275dir=ve({type:e})}return e})(),hi=(()=>{class e extends zm{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Ct(e)))(o||e)}})();static \u0275dir=ve({type:e,features:[Ve]})}return e})(),Jr=new O(""),AE={provide:Jr,useExisting:Le(()=>Dd),multi:!0},Dd=(()=>{class e extends hi{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Ct(e)))(o||e)}})();static \u0275dir=ve({type:e,selectors:[["input","type","checkbox","formControlName","",3,"ngNoCva",""],["input","type","checkbox","formControl","",3,"ngNoCva",""],["input","type","checkbox","ngModel","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&N("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[ct([AE]),Ve]})}return e})(),OE={provide:Jr,useExisting:Le(()=>Dn),multi:!0};function kE(){let e=wt()?wt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var RE=new O(""),Dn=(()=>{class e extends zm{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!kE())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(Y(Lt),Y(Dt),Y(RE,8))};static \u0275dir=ve({type:e,selectors:[["input","formControlName","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControlName","",3,"ngNoCva",""],["input","formControl","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControl","",3,"ngNoCva",""],["input","ngModel","",3,"type","checkbox",3,"ngNoCva",""],["textarea","ngModel","",3,"ngNoCva",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&N("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[ct([OE]),Ve]})}return e})();function bd(e){return e==null||Ed(e)===0}function Ed(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var gi=new O(""),PE=new O(""),FE=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,gd=class{static min(t){return Gm(t)}static max(t){return Wm(t)}static required(t){return qm(t)}static requiredTrue(t){return LE(t)}static email(t){return VE(t)}static minLength(t){return jE(t)}static maxLength(t){return Zm(t)}static pattern(t){return BE(t)}static nullValidator(t){return ka()}static compose(t){return ey(t)}static composeAsync(t){return ny(t)}};function Gm(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function Wm(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function qm(e){return bd(e.value)?{required:!0}:null}function LE(e){return e.value===!0?null:{required:!0}}function VE(e){return bd(e.value)||FE.test(e.value)?null:{email:!0}}function jE(e){return t=>{let n=t.value?.length??Ed(t.value);return n===null||n===0?null:n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}function Zm(e){return t=>{let n=t.value?.length??Ed(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function BE(e){if(!e)return ka;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(bd(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function ka(e){return null}function Ym(e){return e!=null}function Qm(e){return Hr(e)?Ut(e):e}function Km(e){let t={};return e.forEach(n=>{t=n!=null?V(V({},t),n):t}),Object.keys(t).length===0?null:t}function Jm(e,t){return t.map(n=>n(e))}function HE(e){return!e.validate}function Xm(e){return e.map(t=>HE(t)?t:n=>t.validate(n))}function ey(e){if(!e)return null;let t=e.filter(Ym);return t.length==0?null:function(n){return Km(Jm(n,t))}}function ty(e){return e!=null?ey(Xm(e)):null}function ny(e){if(!e)return null;let t=e.filter(Ym);return t.length==0?null:function(n){let r=Jm(n,t).map(Qm);return pc(r).pipe(be(Km))}}function ry(e){return e!=null?ny(Xm(e)):null}function Pm(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function UE(e){return e._rawValidators}function $E(e){return e._rawAsyncValidators}function md(e){return e?Array.isArray(e)?e:[e]:[]}function Ra(e,t){return Array.isArray(e)?e.includes(t):e===t}function Fm(e,t){let n=md(t);return md(e).forEach(o=>{Ra(n,o)||n.push(o)}),n}function Lm(e,t){return md(t).filter(n=>!Ra(e,n))}var Pa=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=ty(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=ry(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control?.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},yd=class extends Pa{name;get formDirective(){return null}get path(){return null}};var li="VALID",Oa="INVALID",Yr="PENDING",ui="DISABLED",ar=class{},Fa=class extends ar{value;source;constructor(t,n){super(),this.value=t,this.source=n}},di=class extends ar{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},fi=class extends ar{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Qr=class extends ar{status;source;constructor(t,n){super(),this.status=t,this.source=n}};var pi=class extends ar{source;constructor(t){super(),this.source=t}};function zE(e){return(La(e)?e.validators:e)||null}function GE(e){return Array.isArray(e)?ty(e):e||null}function WE(e,t){return(La(t)?t.asyncValidators:e)||null}function qE(e){return Array.isArray(e)?ry(e):e||null}function La(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var vd=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_hasRequired=L(!1);_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t,this._updateHasRequiredValidator()}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return qe(this.statusReactive)}set status(t){qe(()=>this.statusReactive.set(t))}_status=ae(()=>this.statusReactive());statusReactive=L(void 0);get valid(){return this.status===li}get invalid(){return this.status===Oa}get pending(){return this.status===Yr}get disabled(){return this.status===ui}get enabled(){return this.status!==ui}errors;get pristine(){return qe(this.pristineReactive)}set pristine(t){qe(()=>this.pristineReactive.set(t))}_pristine=ae(()=>this.pristineReactive());pristineReactive=L(!0);get dirty(){return!this.pristine}get touched(){return qe(this.touchedReactive)}set touched(t){qe(()=>this.touchedReactive.set(t))}_touched=ae(()=>this.touchedReactive());touchedReactive=L(!1);get untouched(){return!this.touched}_events=new Ie;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Fm(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Fm(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Lm(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Lm(t,this._rawAsyncValidators))}hasValidator(t){return Ra(this._rawValidators,t)}hasAsyncValidator(t){return Ra(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsTouched(W(V({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new fi(!0,r))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),t.onlySelf||this._parent?._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new fi(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty(W(V({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new di(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),t.onlySelf||this._parent?._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new di(!0,r))}markAsPending(t={}){this.status=Yr;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Qr(this.status,n)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending(W(V({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=ui,this.errors=null,this._forEachChild(o=>{o.disable(W(V({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Fa(this.value,r)),this._events.next(new Qr(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(W(V({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=li,this._forEachChild(r=>{r.enable(W(V({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(W(V({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){t.onlySelf||(this._parent?.updateValueAndValidity(t),t.skipPristineCheck||this._parent?._updatePristine({},n),this._parent?._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===li||this.status===Yr)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Fa(this.value,n)),this._events.next(new Qr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity(W(V({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ui:li}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Yr,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=Qm(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r?.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Qr(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new Te,this.statusChanges=new Te}_calculateStatus(){return this._allControlsDisabled()?ui:this.errors?Oa:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Yr)?Yr:this._anyControlsHaveStatus(Oa)?Oa:li}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,t.onlySelf||this._parent?._updatePristine(t,n),o&&this._events.next(new di(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new fi(this.touched,n)),t.onlySelf||this._parent?._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){La(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=GE(this._rawValidators),this._updateHasRequiredValidator()}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=qE(this._rawAsyncValidators)}_updateHasRequiredValidator(){qe(()=>this._hasRequired.set(this.hasValidator(gd.required)))}};function ZE(e){return e.tagName==="INPUT"||e.tagName==="SELECT"||e.tagName==="TEXTAREA"}function YE(e,t,n,r){switch(n){case"name":e.setAttribute(t,n,r);break;case"disabled":case"readonly":case"required":r?e.setAttribute(t,n,""):e.removeAttribute(t,n);break;case"max":case"min":case"minLength":case"maxLength":r!==void 0?e.setAttribute(t,n,r.toString()):e.removeAttribute(t,n);break}}var _d=class{kind;context;control;message;constructor({kind:t,context:n,control:r}){this.kind=t,this.context=n,this.control=r}};function QE(e){return typeof e=="number"?e:parseInt(e,10)}function oy(e){return typeof e=="number"?e:parseFloat(e)}var Va=(()=>{class e{_validator=ka;_onChange;_enabled;ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):ka,this._onChange?.()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}static \u0275fac=function(r){return new(r||e)};static \u0275dir=ve({type:e,features:[Jn]})}return e})(),KE={provide:gi,useExisting:Le(()=>wd),multi:!0},wd=(()=>{class e extends Va{max;inputName="max";normalizeInput=n=>oy(n);createValidator=n=>Wm(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=Ct(e)))(o||e)}})();static \u0275dir=ve({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&tn("max",o._enabled?o.max:null)},inputs:{max:"max"},standalone:!1,features:[ct([KE]),Ve]})}return e})(),JE={provide:gi,useExisting:Le(()=>Sd),multi:!0},Sd=(()=>{class e extends Va{min;inputName="min";normalizeInput=n=>oy(n);createValidator=n=>Gm(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=Ct(e)))(o||e)}})();static \u0275dir=ve({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&tn("min",o._enabled?o.min:null)},inputs:{min:"min"},standalone:!1,features:[ct([JE]),Ve]})}return e})(),XE={provide:gi,useExisting:Le(()=>iy),multi:!0};var iy=(()=>{class e extends Va{required;inputName="required";normalizeInput=Vu;createValidator=n=>qm;enabled(n){return n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Ct(e)))(o||e)}})();static \u0275dir=ve({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&&tn("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[ct([XE]),Ve]})}return e})();var ew={provide:gi,useExisting:Le(()=>xd),multi:!0},xd=(()=>{class e extends Va{maxlength;inputName="maxlength";normalizeInput=n=>QE(n);createValidator=n=>Zm(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=Ct(e)))(o||e)}})();static \u0275dir=ve({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&tn("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[ct([ew]),Ve]})}return e})();var tw=new O(""),sy=new O("",{factory:()=>Id}),Id="always";function nw(e,t){return[...t.path,e]}function Vm(e,t,n=Id){ow(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),iw(e,t),aw(e,t),sw(e,t),rw(e,t)}function jm(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function rw(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function ow(e,t){let n=UE(e);t.validator!==null?e.setValidators(Pm(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=$E(e);t.asyncValidator!==null?e.setAsyncValidators(Pm(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();jm(t._rawValidators,o),jm(t._rawAsyncValidators,o)}function iw(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&ay(e,t)})}function sw(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&ay(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function ay(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function aw(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function cw(e,t){if(!Object.hasOwn(e,"model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function lw(e){return Object.getPrototypeOf(e.constructor)===hi}function uw(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Dn?n=i:lw(i)?r=i:o=i}),o||r||n||null}var dw={provide:tw,useFactory:()=>{let e=D(Kr,{self:!0});return{setParseErrors:t=>{e.setParseErrorSource(t)},set onReset(t){e.onReset=t}}}},Kr=class extends Pa{_parent=null;name=null;valueAccessor=null;isCustomControlBased=!1;userOnReset;resetSubscription;set onReset(t){this.userOnReset=t,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(n=>{n instanceof pi&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=uw(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(t,n,r){super(),this.injector=t,this.renderer=n,this.rawValueAccessors=r,this.injector?.get(Ke)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let t=this.injector?.get(Yo);if(!this.control||!t)return;let n=t.markForCheck.bind(t);this.subscription=new De,this.subscription.add(this.control.valueChanges.subscribe(n)),this.subscription.add(this.control.statusChanges.subscribe(n)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(r=>{r instanceof pi&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator)}ngControlCreate(t){!t.nativeElement.hasAttribute?.("ngNoCva")&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!t.customControl||(this.isCustomControlBased=!0,t.listenToCustomControlModel(o=>{this.control?.setValue(o,{emitModelToViewChange:!1}),this.control?.markAsDirty(),this.viewToModelUpdate(o)}),t.listenToCustomControlOutput("touch",()=>{this.control?.markAsTouched()}),this.customControlBindings={},this.isNativeFormElement=ZE(t.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(o=>o instanceof iy))}ngControlUpdate(t,n){if(!this.isCustomControlBased)return;let r=this.control,o=this.customControlBindings;Object.is(o.value,r.value)||(o.value=r.value,t.setCustomControlModelInput(r.value)),this.bindControlProperty(t,o,"touched",r.touched),this.bindControlProperty(t,o,"dirty",r.dirty),this.bindControlProperty(t,o,"valid",r.valid),this.bindControlProperty(t,o,"invalid",r.invalid),this.bindControlProperty(t,o,"pending",r.pending),this.bindControlProperty(t,o,"disabled",r.disabled),this.shouldBindRequired&&this.bindControlProperty(t,o,"required",this.isRequired);let i=r.errors;if(o.errors!==i){o.errors=i;let s=this._convertErrors(i);t.setInputOnDirectives("errors",s)}}get isRequired(){return(this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??!1}get shouldBindRequired(){return!0}bindControlProperty(t,n,r,o){if(n[r]===o)return;n[r]=o;let i=t.setInputOnDirectives(r,o);this.isNativeFormElement&&!i&&(r==="disabled"||r==="required")&&this.renderer&&YE(this.renderer,t.nativeElement,r,o)}_convertErrors(t){if(t===null)return[];let n=this.control;return Object.entries(t).map(([r,o])=>new _d({context:o,kind:r,control:n}))}setParseErrorSource(t){if(t===void 0)return;let n=null,r=ae(()=>{let o=t();return o.length===0?null:o.reduce((i,s)=>(i[s.kind]=s,i),{})});this.parseErrorsValidator=(()=>n).bind(this),hl(()=>{n=r(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(t){this.parseErrorsValidator&&(t?.removeValidators(this.parseErrorsValidator),t?.updateValueAndValidity({emitEvent:!1}))}},Cd=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var Xr=(()=>{class e extends Cd{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(Y(Kr,2))};static \u0275dir=ve({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&pe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[Ve]})}return e})();function Bm(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Hm(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var fw=class extends vd{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(zE(n),WE(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),La(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Hm(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){qe(()=>{this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)})}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),n.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,n?.emitEvent!==!1&&this._events.next(new pi(this))}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Bm(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Bm(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Hm(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var pw={provide:Kr,useExisting:Le(()=>cr)},Um=Promise.resolve(),cr=(()=>{class e extends Kr{_changeDetectorRef;callSetDisabledState;control=new fw;static ngAcceptInputType_isDisabled;_registered=!1;_ngModelInjector;viewModel;name="";isDisabled;model;options;update=new Te;constructor(n,r,o,i,s,a,c,l){super(c,l,i),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o)}ngOnChanges(n){if(this._registered,this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),cw(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}\u0275ngControlCreate(n){super.ngControlCreate(n)}\u0275ngControlUpdate(n){super.ngControlUpdate(n,!1)}get shouldBindRequired(){return!1}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Vm(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:!1})}_setupWithForm(n){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Vm(this.control,this,n))}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Um.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Vu(r);Um.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?nw(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(Y(yd,9),Y(gi,10),Y(PE,10),Y(Jr,10),Y(Yo,8),Y(sy,8),Y(ze,8),Y(Lt,8))};static \u0275dir=ve({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[ct([pw,dw]),Ve,Jn,Tu(null)]})}return e})();var hw={provide:Jr,useExisting:Le(()=>Md),multi:!0},Md=(()=>{class e extends hi{writeValue(n){let r=n??"";this.setProperty("value",r)}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Ct(e)))(o||e)}})();static \u0275dir=ve({type:e,selectors:[["input","type","number","formControlName","",3,"ngNoCva",""],["input","type","number","formControl","",3,"ngNoCva",""],["input","type","number","ngModel","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&N("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[ct([hw]),Ve]})}return e})();var gw={provide:Jr,useExisting:Le(()=>eo),multi:!0};function cy(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function mw(e){return e.split(":")[0]}var eo=(()=>{class e extends hi{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;appRefInjector=D(vn).injector;destroyRef=D(Ke);cdr=D(Yo);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,cu({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(n){this.cdr.markForCheck(),this.value=n;let r=this._getOptionId(n),o=cy(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=mw(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Ct(e)))(o||e)}})();static \u0275dir=ve({type:e,selectors:[["select","formControlName","",3,"multiple","",3,"ngNoCva",""],["select","formControl","",3,"multiple","",3,"ngNoCva",""],["select","ngModel","",3,"multiple","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&N("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[ct([gw]),Ve]})}return e})(),ja=(()=>{class e{_element;_renderer;_select;id;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(cy(this.id,n)),this._select._writeValueAfterRender())}set value(n){this._setElementValue(n),this._select?._writeValueAfterRender()}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender()}static \u0275fac=function(r){return new(r||e)(Y(Dt),Y(Lt),Y(eo,9))};static \u0275dir=ve({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),yw={provide:Jr,useExisting:Le(()=>ly),multi:!0};function $m(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function vw(e){return e.split(":")[0]}var ly=(()=>{class e extends hi{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r;if(Array.isArray(n)){let o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s)>-1)}}else r=o=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],i=r.selectedOptions;if(i!==void 0){let s=i;for(let a=0;a<s.length;a++){let c=s[a],l=this._getOptionValue(c.value);o.push(l)}}else{let s=r.options;for(let a=0;a<s.length;a++){let c=s[a];if(c.selected){let l=this._getOptionValue(c.value);o.push(l)}}}this.value=o,n(o)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=vw(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Ct(e)))(o||e)}})();static \u0275dir=ve({type:e,selectors:[["select","multiple","","formControlName","",3,"ngNoCva",""],["select","multiple","","formControl","",3,"ngNoCva",""],["select","multiple","","ngModel","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&N("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[ct([yw]),Ve]})}return e})(),Ba=(()=>{class e{_element;_renderer;_select;id;_value;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue($m(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue($m(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||e)(Y(Dt),Y(Lt),Y(ly,9))};static \u0275dir=ve({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var _w=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=yn({type:e});static \u0275inj=Wt({})}return e})();var to=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:sy,useValue:n.callSetDisabledState??Id}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=yn({type:e});static \u0275inj=Wt({imports:[_w]})}return e})();var Cw=["dlg"];function Dw(e,t){if(e&1&&(nn(0,"p",3),p(1),_n()),e&2){let n=v();h(),C(n.subject)}}var bn=class e{open=!1;title="Are you sure?";subject="";message="This cannot be undone.";confirmLabel="Delete";busy=!1;confirmed=new Te;cancelled=new Te;dlg;ngOnChanges(){queueMicrotask(()=>{let t=this.dlg?.nativeElement;t&&(this.open&&!t.open?t.showModal():!this.open&&t.open&&t.close())})}onEscape(t){t.preventDefault(),this.busy||this.cancelled.emit()}onBackdrop(t){t.target===this.dlg?.nativeElement&&!this.busy&&this.cancelled.emit()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=en({type:e,selectors:[["aa-confirm-dialog"]],viewQuery:function(n,r){if(n&1&&sa(Cw,5),n&2){let o;Ou(o=ku())&&(r.dlg=o.first)}},inputs:{open:"open",title:"title",subject:"subject",message:"message",confirmLabel:"confirmLabel",busy:"busy"},outputs:{confirmed:"confirmed",cancelled:"cancelled"},features:[Jn],decls:12,vars:5,consts:[["dlg",""],[1,"dialog",3,"cancel","click"],[1,"title"],[1,"subject"],[1,"body"],[1,"actions"],["type","button","autofocus","",1,"btn","btn-ghost",3,"click"],["type","button",1,"btn","danger",3,"click","disabled"]],template:function(n,r){n&1&&(nn(0,"dialog",1,0),Ur("cancel",function(i){return r.onEscape(i)})("click",function(i){return r.onBackdrop(i)}),nn(2,"h3",2),p(3),_n(),b(4,Dw,2,1,"p",3),nn(5,"p",4),p(6),_n(),nn(7,"div",5)(8,"button",6),Ur("click",function(){return r.cancelled.emit()}),p(9,"Cancel"),_n(),nn(10,"button",7),Ur("click",function(){return r.confirmed.emit()}),p(11),_n()()()),n&2&&(h(3),C(r.title),h(),E(r.subject?4:-1),h(2),C(r.message),h(4),ia("disabled",r.busy),h(),R(" ",r.busy?"Deleting\u2026":r.confirmLabel," "))},styles:[".dialog[_ngcontent-%COMP%]{margin:auto;padding:22px 24px;width:calc(100% - 40px);max-width:440px;background:var(--%NS%aastrika-surface, #fff);color:var(--%NS%aastrika-ink, #1A1A1A);border:1px solid var(--%NS%aastrika-line-2, #e5e0d8);border-radius:12px;box-shadow:0 18px 48px #17141038}.dialog[_ngcontent-%COMP%]::backdrop{background:#17141073}.title[_ngcontent-%COMP%]{margin:0 0 10px;font-size:16px;font-weight:650}.subject[_ngcontent-%COMP%]{margin:0 0 10px;padding:9px 11px;background:var(--%NS%aastrika-surface-2, #faf8f5);border:1px solid var(--%NS%aastrika-line-2, #e5e0d8);border-radius:7px;font-size:13px;overflow-wrap:anywhere}.body[_ngcontent-%COMP%]{margin:0 0 18px;font-size:13px;color:var(--%NS%aastrika-muted, #6b6257)}.actions[_ngcontent-%COMP%]{display:flex;gap:8px;justify-content:flex-end}.danger[_ngcontent-%COMP%]{background:#b42318;border-color:#b42318;color:#fff}.danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#98200f}.danger[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:default}"]})};function bw(e){if(!e||typeof e!="object")return;let t=e.error;if(!t||typeof t!="object")return;let n=t.error;return n&&typeof n=="object"?n:void 0}function Ew(e){let t=e?.status;return typeof t=="number"?t:void 0}function he(e,t={},n="Request failed"){let r=Ew(e);if(r!==void 0&&t[r])return t[r];let o=bw(e)?.message;return typeof o=="string"&&o.trim()?o:r===void 0?`${n}.`:`${n} (${r}).`}function no(e){let t=L(null),n=L(!1);return{pending:t.asReadonly(),open:ae(()=>t()!==null),busy:n.asReadonly(),ask(r){r!=null&&t.set(r)},cancel(){n()||t.set(null)},confirm(){let r=t();r===null||n()||(n.set(!0),e.request(r).subscribe({next:()=>{n.set(!1),t.set(null),e.onDeleted(r)},error:o=>{n.set(!1),t.set(null),e.onError(he(o,e.byStatus??{},e.fallback??"Could not delete it"))}}))}}}function lr({lookup:e,fallbackHref:t,onError:n}){e.subscribe({next:({url:r})=>{window.open(r??t,"_blank","noopener")},error:r=>n(he(r,{},"Could not open the file"))})}var Ha=[{id:"queued",label:"Waiting to start",detail:"Your video is in the queue.",icon:"\u23F3"},{id:"narration",label:"Recording narration",detail:"Turning the script into a voice, scene by scene.",icon:"\u{1F399}\uFE0F"},{id:"illustration",label:"Drawing scenes",detail:"Illustrating each scene to match the narration.",icon:"\u{1F3A8}"},{id:"assembly",label:"Putting it together",detail:"Joining the pictures and the voice into one video.",icon:"\u{1F3AC}"},{id:"checking",label:"Final check",detail:"Looking for cut-off faces and text in the wrong place.",icon:"\u{1F50D}"}];function mi(e,t){return e.filter(n=>t.test(n.message)).length}function uy(e,t){let n=e?.log??[],o=n.map(Oe=>Oe.message).join(`
11
- `),i=e?.progress,s=Number.isFinite(i)?Math.max(0,Math.min(100,i)):0,a=e?.status==="done",c=e?.status==="failed",l=a?100:c?s:Math.min(s,99),f=e?.status==="failed",g=e?.status==="done",y=[],m=mi(n,/narration FAILED/),_=mi(n,/image FAILED|visual FAILED|NOT FOUND/),w=mi(n,/restyle failed/);m&&y.push(`${m} scene${m>1?"s":""} has no narration`),_&&y.push(`${_} scene${_>1?"s":""} has a plain background instead of a picture`),w&&y.push(`${w} of your images could not be redrawn, so they appear as you uploaded them`);let A=Oe=>Ha.find(xt=>xt.id===Oe)??Ha[0];if(f)return{stage:{id:"failed",label:"Could not finish",detail:"",icon:"\u2717"},percent:l,counter:"",headline:e?.error||"Something went wrong while making the video.",warnings:y,etaSeconds:null,done:!1,failed:!0};if(g)return{stage:{id:"done",label:"Ready",detail:"",icon:"\u2713"},percent:100,counter:"",headline:"Your video is ready to watch.",warnings:y,etaSeconds:null,done:!0,failed:!1};let P=Oe=>t?Math.min(Oe,t):Oe,ce=P(mi(n,/narration ✓/)),Ye=P(mi(n,/image ✓|visual ✓|= your image|= your uploaded image|= slide page/));if(/^QC:/m.test(o))return{stage:A("checking"),percent:l,counter:"",headline:"Almost there \u2014 checking the finished video.",warnings:y,etaSeconds:ro(n,l),done:!1,failed:!1};if(/Rendering (video|edited video)/.test(o))return{stage:A("assembly"),percent:l,counter:"",headline:"Joining everything into one video. This is the longest step.",warnings:y,etaSeconds:ro(n,l),done:!1,failed:!1};let tt=/Voiceover:/.test(o),Qe=/Edit plan:/.test(o),nt=/Illustrations:|Visuals:/.test(o);if(Qe)return{stage:A("illustration"),percent:l,counter:"",headline:"Applying your edits to the video.",warnings:y,etaSeconds:ro(n,l),done:!1,failed:!1};if(tt&&ce<t)return{stage:A("narration"),percent:l,counter:t?`${ce} of ${t} scenes`:"",headline:nt?"Recording the narration and drawing the scenes.":"Recording the narration.",warnings:y,etaSeconds:ro(n,l),done:!1,failed:!1};if(nt){let Oe=/Visuals: using/.test(o);return{stage:A("illustration"),percent:l,counter:t?`${Ye} of ${t} scenes`:"",headline:Oe?"Preparing your slides as the video's pictures.":"Drawing the pictures for each scene.",warnings:y,etaSeconds:ro(n,l),done:!1,failed:!1}}if(tt)return{stage:A("narration"),percent:l,counter:t?`${ce} of ${t} scenes`:"",headline:"Recording the narration.",warnings:y,etaSeconds:ro(n,l),done:!1,failed:!1};let Ht=e?.queuePosition??0;return{stage:A("queued"),percent:l,counter:"",headline:Ht>0?`Waiting for ${Ht} video${Ht>1?"s":""} ahead of yours to finish.`:"Starting \u2014 this takes a few minutes.",warnings:y,etaSeconds:null,done:!1,failed:!1}}function ro(e,t){if(t<5||e.length<2)return null;let n=new Date(e[0].t).getTime(),o=(Date.now()-n)/1e3;if(!Number.isFinite(o)||o<=0)return null;let i=o/(t/100);return Math.max(5,Math.round(i-o))}function dy(e){if(e===null)return"";if(e<45)return"less than a minute left";let t=Math.round(e/60);if(t<60)return`about ${t} minute${t>1?"s":""} left`;let n=Math.round(t/60);return`about ${n} hour${n>1?"s":""} left`}var Bt=()=>({standalone:!0}),dt=(e,t)=>t.id;function ww(e,t){if(e&1&&(d(0,"div",3),p(1),u()),e&2){let n=v();h(),C(n.error())}}function Sw(e,t){e&1&&p(0," \xB7 MP4, MOV, WEBM ")}function xw(e,t){if(e&1){let n=G();d(0,"label",9)(1,"input",25),N("change",function(o){I(n);let i=v();return M(i.onFile(o))}),u(),d(2,"span",26),p(3),u(),d(4,"span",27),p(5,"PDF, DOCX, TXT, MD, SRT"),b(6,Sw,1,0),u()()}if(e&2){let n=v();h(),S("accept",n.acceptedFiles()),h(2),C(n.uploading()?"Reading\u2026":"Choose a file"),h(3),E(n.editMode()==="on"?6:-1)}}function Iw(e,t){e&1&&p(0," \xB7 transcribed ")}function Mw(e,t){if(e&1&&(d(0,"p",31),p(1),u()),e&2){let n=v();h(),R(" \u26A0 ",n.transcriptionError||"The narration could not be transcribed."," You can still edit from the scene images, but the plan will be working from pictures alone \u2014 say what you want in the instruction below. ")}}function Tw(e,t){if(e&1){let n=G();d(0,"div",10)(1,"div")(2,"div",28),p(3),u(),d(4,"div",29),p(5),lt(6,"number"),b(7,Iw,1,0),u()(),d(8,"button",30),N("click",function(){I(n);let o=v(2);return M(o.reset())}),p(9,"Replace"),u()(),b(10,Mw,2,1,"p",31),d(11,"p",32),p(12,"Editing an existing video \u2014 describe the changes below."),u()}if(e&2){let n=t;h(3),R("\u{1F3AC} ",n.filename),h(2),bt(" ",or(6,5,n.durationSec,"1.0-0"),"s \xB7 ",n.segments.length," segments"),h(2),E(n.transcribed?7:-1),h(3),E(n.transcribed?-1:10)}}function Nw(e,t){if(e&1&&b(0,Tw,13,8),e&2){let n,r=v();E((n=r.sourceVideo())?0:-1,n)}}function Aw(e,t){if(e&1&&p(0),e&2){let n=v(2);R(" \xB7 ",n.doc().pages," slide pages ")}}function Ow(e,t){if(e&1){let n=G();d(0,"div",10)(1,"div")(2,"div",28),p(3),u(),d(4,"div",29),p(5),lt(6,"number"),b(7,Aw,1,1),u()(),d(8,"button",30),N("click",function(){I(n);let o=v();return M(o.reset())}),p(9,"Replace"),u()()}if(e&2){let n=v();h(3),C(n.doc().filename),h(2),R(" ",rr(6,3,n.doc().chars)," characters"),h(2),E(n.hasSlides()?7:-1)}}function kw(e,t){e&1&&(d(0,"p",11),p(1,"Pick a visual style \u2014 the AI builds the whole video in that look. Everything else is optional."),u())}function Rw(e,t){if(e&1){let n=G();d(0,"button",33),N("click",function(){let o=I(n).$implicit,i=v();return M(i.videoType=o.id)}),d(1,"b"),p(2),u(),d(3,"span"),p(4),u()()}if(e&2){let n=t.$implicit,r=v();pe("sel",r.videoType===n.id),S("disabled",!r.doc()),h(2),bt("",n.icon," ",n.name),h(2),C(n.desc)}}function Pw(e,t){if(e&1){let n=G();d(0,"label",34),p(1,"Describe the edits"),u(),d(2,"textarea",35),te("ngModelChange",function(o){I(n);let i=v();return ne(i.brief,o)||(i.brief=o),M(o)}),u(),$()}if(e&2){let n=v();h(2),ee("ngModel",n.brief),z()}}function Fw(e,t){if(e&1){let n=G();d(0,"label",34),p(1,"Creative brief (optional) \u2014 how it should look & feel"),u(),d(2,"textarea",36),te("ngModelChange",function(o){I(n);let i=v();return ne(i.brief,o)||(i.brief=o),M(o)}),u(),$()}if(e&2){let n=v();h(2),ee("ngModel",n.brief),S("disabled",!n.doc()),z()}}function Lw(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),C(n.label)}}function Vw(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit,r=v();S("value",n.id),h(),C(r.voiceLabel(n))}}function jw(e,t){if(e&1){let n=G();d(0,"label",39)(1,"input",58),te("ngModelChange",function(o){I(n);let i=v(2);return ne(i.useSourceSlides,o)||(i.useSourceSlides=o),M(o)}),u(),$(),d(2,"span"),p(3,"\u{1F4C4} Use my uploaded slides as the visuals \u2014 "),d(4,"b"),p(5,"no new images will be generated"),u()()()}if(e&2){let n=v(2);h(),ee("ngModel",n.useSourceSlides),S("disabled",!n.doc()),z()}}function Bw(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),C(n.label)}}function Hw(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),C(n.label)}}function Uw(e,t){if(e&1&&(d(0,"div",52),p(1),u()),e&2){let n=v(2);h(),C(n.refName())}}function $w(e,t){if(e&1){let n=G();d(0,"div",57)(1,"span",59),p(2),u(),d(3,"input",60),te("ngModelChange",function(o){let i=I(n).$implicit;return ne(i.note,o)||(i.note=o),M(o)}),u(),$(),d(4,"button",61),N("click",function(){let o=I(n).$implicit,i=v(2);return M(i.removeImage(o.id))}),p(5,"\xD7"),u()()}if(e&2){let n=t.$implicit;h(2),C(n.name),h(),ee("ngModel",n.note),S("ngModelOptions",Be(3,Bt)),z()}}function zw(e,t){if(e&1){let n=G();d(0,"div",22)(1,"div",37),p(2,"Optional \u2014 refine the look or add references"),u(),d(3,"div",38),b(4,jw,6,2,"label",39),d(5,"div",14)(6,"div")(7,"label",40),p(8,"Aspect ratio"),u(),d(9,"select",41),te("ngModelChange",function(o){I(n);let i=v();return ne(i.aspectRatio,o)||(i.aspectRatio=o),M(o)}),J(10,Bw,2,2,"option",18,dt),u(),$(),u(),d(12,"div")(13,"label",42),p(14,"Depth"),u(),d(15,"select",43),te("ngModelChange",function(o){I(n);let i=v();return ne(i.depth,o)||(i.depth=o),M(o)}),J(16,Hw,2,2,"option",18,dt),u(),$(),u()(),d(18,"div",44)(19,"div")(20,"label",45),p(21,"\u{1F39E}\uFE0F Reference video \u2014 the AI copies its look, pacing & style"),u(),d(22,"label",46),wo(),d(23,"svg",47),je(24,"path",48)(25,"path",49)(26,"path",50),u(),So(),d(27,"span"),p(28,"Choose a video"),u(),d(29,"input",51),N("change",function(o){I(n);let i=v();return M(i.onRefVideo(o))}),u()(),b(30,Uw,2,1,"div",52),u(),d(31,"div")(32,"label",45),p(33,"\u{1F5BC}\uFE0F Images/diagrams to include (multiple)"),u(),d(34,"label",46),wo(),d(35,"svg",47),je(36,"rect",53)(37,"circle",54)(38,"path",55),u(),So(),d(39,"span"),p(40,"Choose images"),u(),d(41,"input",56),N("change",function(o){I(n);let i=v();return M(i.onUserImages(o))}),u()(),J(42,$w,6,4,"div",57,dt),u()()()()}if(e&2){let n=v();h(4),E(n.hasSlides()?4:-1),h(5),ee("ngModel",n.aspectRatio),S("disabled",!n.doc()),z(),h(),X(n.aspects),h(5),ee("ngModel",n.depth),S("disabled",!n.doc()),z(),h(),X(n.depths),h(6),pe("disabled",!n.doc()),h(7),S("disabled",!n.doc()),h(),E(n.refName()?30:-1),h(4),pe("disabled",!n.doc()),h(7),S("disabled",!n.doc()),h(),X(n.userImages())}}function Gw(e,t){if(e&1&&(d(0,"span",66),p(1),u()),e&2){let n=v();h(),R("",n.costEstimate.kept," kept")}}function Ww(e,t){if(e&1&&(d(0,"span",66),p(1),u()),e&2){let n=v();h(),R("",n.costEstimate.cuts," cut")}}function qw(e,t){if(e&1&&(d(0,"p",67)(1,"i"),p(2),u()()),e&2){let n=v();h(2),C(n.plan.notes)}}function Zw(e,t){e&1&&je(0,"img",79),e&2&&S("src",t,Qs)}function Yw(e,t){if(e&1&&p(0),e&2){let n=v().$implicit;nr(" \xB7 source ",n.srcId," (",n.startSec,"s\u2013",n.endSec,"s) ")}}function Qw(e,t){e&1&&p(0," \xB7 new ")}function Kw(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),C(n.label)}}function Jw(e,t){if(e&1){let n=G();d(0,"label",82),p(1,"Narration"),u(),d(2,"textarea",83),te("ngModelChange",function(o){I(n);let i=v().$implicit;return ne(i.narration,o)||(i.narration=o),M(o)}),u(),$()}if(e&2){let n=v().$implicit;h(2),ee("ngModel",n.narration),S("ngModelOptions",Be(2,Bt)),z()}}function Xw(e,t){if(e&1){let n=G();d(0,"label",82),p(1,"Visual / image prompt"),u(),d(2,"textarea",83),te("ngModelChange",function(o){I(n);let i=v().$implicit;return ne(i.imagePrompt,o)||(i.imagePrompt=o),M(o)}),u(),$()}if(e&2){let n=v().$implicit;h(2),ee("ngModel",n.imagePrompt),S("ngModelOptions",Be(2,Bt)),z()}}function eS(e,t){e&1&&(d(0,"p",81),p(1,"Kept exactly as it is \u2014 no cost."),u())}function tS(e,t){if(e&1){let n=G();d(0,"div",76)(1,"div",77)(2,"span",78),b(3,Zw,1,1,"img",79),p(4),b(5,Yw,1,3)(6,Qw,1,0),u(),d(7,"select",80),te("ngModelChange",function(o){let i=I(n).$implicit;return ne(i.action,o)||(i.action=o),M(o)}),J(8,Kw,2,2,"option",18,dt),u(),$(),u(),b(10,Jw,3,3),b(11,Xw,3,3),b(12,eS,2,0,"p",81),u()}if(e&2){let n,r=t.$implicit,o=t.$index,i=v(2);pe("cut",r.action==="cut"),h(3),E((n=i.keyframe(r))?3:-1,n),h(),R(" Segment ",o+1),h(),E(r.srcId?5:6),h(2),ee("ngModel",r.action),S("ngModelOptions",Be(10,Bt)),z(),h(),X(i.actionsFor(r)),h(2),E(r.action!=="keep"&&r.action!=="cut"?10:-1),h(),E(r.action==="replace"||r.action==="new"?11:-1),h(),E(r.action==="keep"?12:-1)}}function nS(e,t){if(e&1){let n=G();d(0,"section",5)(1,"div",6)(2,"span",7),p(3,"3"),u(),d(4,"h2",8),p(5,"Review the edits"),u(),d(6,"span",62),p(7,"\u2014 change any action, then produce"),u()(),d(8,"div",63)(9,"div")(10,"div",64),p(11),u(),d(12,"div",65)(13,"span",66),p(14),u(),b(15,Gw,2,1,"span",66),b(16,Ww,2,1,"span",66),u(),b(17,qw,3,1,"p",67),u(),d(18,"div",68)(19,"div",69),p(20),u(),d(21,"div",70),p(22,"estimated"),u(),d(23,"div",71),p(24),lt(25,"number"),u()()(),J(26,tS,13,11,"div",72,er),d(28,"div",73)(29,"button",74),N("click",function(){I(n);let o=v();return M(o.produceEdits())}),p(30),u(),d(31,"button",75),N("click",function(){I(n);let o=v();return M(o.makePlan())}),p(32,"\u21BB Re-plan the edits"),u()()()}if(e&2){let n=t,r=v();h(11),C(n.plan.title),h(3),R("",n.plan.segments.length," segments"),h(),E(n.costEstimate.kept?15:-1),h(),E(n.costEstimate.cuts?16:-1),h(),E(n.plan.notes?17:-1),h(3),R("$",n.costEstimate.totalUsd),h(4),bt(" ",n.costEstimate.images," images \xB7 ",rr(25,11,n.costEstimate.ttsChars)," VO chars "),h(2),X(n.plan.segments),h(3),S("disabled",r.producing()),h(),R(" ",r.producing()?"Producing\u2026":r.hasVideo()?"\u2713 Regenerate video":"\u2713 Confirm & produce video"," "),h(),S("disabled",r.planning()||r.producing())}}function rS(e,t){if(e&1&&(d(0,"span"),p(1),u()),e&2){let n=v();h(),bt("\u{1F399}\uFE0F ",n.plan.voice.gender,", ",n.plan.voice.feel," voice")}}function oS(e,t){e&1&&(d(0,"span"),p(1,"\u{1F39E}\uFE0F styled after your reference video"),u())}function iS(e,t){e&1&&(d(0,"span"),p(1,"\u{1F4C4} using your slides"),u())}function sS(e,t){if(e&1&&(d(0,"p",67)(1,"i"),p(2),u()()),e&2){let n=v();h(2),C(n.plan.voice.rationale)}}function aS(e,t){if(e&1&&p(0),e&2){let n=v();R(" + ",n.costEstimate.restyles," restyled ")}}function cS(e,t){if(e&1&&p(0),e&2){let n=v();R(" + ",n.costEstimate.userImages-(n.costEstimate.restyles||0)," of yours ($0) ")}}function lS(e,t){if(e&1&&p(0),e&2){let n=v();R(" + ",n.costEstimate.sourcePages," slides ($0) ")}}function uS(e,t){if(e&1&&(d(0,"label",82),p(1,"Visual"),u(),d(2,"div",81),p(3),u()),e&2){let n=v().$implicit;h(3),R("\u{1F4C4} Your slide, page ",n.visual.sourcePage," (used as-is, $0)")}}function dS(e,t){if(e&1){let n=G();d(0,"label",82),p(1,"Visual \u2014 your uploaded image"),u(),d(2,"div",97)(3,"b",98),p(4),u(),d(5,"select",99),te("ngModelChange",function(o){I(n);let i=v().$implicit;return ne(i.visual.treatment,o)||(i.visual.treatment=o),M(o)}),d(6,"option",100),p(7,"Use as-is (exact, $0 \u2014 full image shown, never cropped)"),u(),d(8,"option",101),p(9,"Redraw in video style via Gemini (~$0.04 \u2014 blends in; labels may shift, QC checks it)"),u()(),$(),d(10,"button",102),N("click",function(){I(n);let o=v().$implicit,i=v(2);return M(i.detachImage(o))}),p(11,"\u2715 detach"),u()()}if(e&2){let n=v().$implicit,r=v(2);h(4),C(r.imageName(n.visual.userImageId)),h(),ee("ngModel",n.visual.treatment),S("ngModelOptions",Be(3,Bt)),z()}}function fS(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),C(n.name)}}function pS(e,t){if(e&1){let n=G();d(0,"select",104),N("ngModelChange",function(o){I(n);let i=v(2).$implicit,s=v(2);return M(s.attachImage(i,o))}),d(1,"option",21),p(2,"\u2026or use one of your uploaded images here"),u(),J(3,fS,2,2,"option",18,dt),u(),$()}if(e&2){let n=v(4);S("ngModel","")("ngModelOptions",Be(2,Bt)),z(),h(3),X(n.userImages())}}function hS(e,t){if(e&1){let n=G();d(0,"label",82),p(1,"Visual / image prompt"),u(),d(2,"textarea",83),te("ngModelChange",function(o){I(n);let i=v().$implicit;return ne(i.visual.imagePrompt,o)||(i.visual.imagePrompt=o),M(o)}),u(),$(),b(3,pS,5,3,"select",103)}if(e&2){let n=v().$implicit,r=v(2);h(2),ee("ngModel",n.visual.imagePrompt),S("ngModelOptions",Be(3,Bt)),z(),h(),E(r.userImages().length?3:-1)}}function gS(e,t){if(e&1){let n=G();d(0,"div",76)(1,"div",77)(2,"span"),p(3),u(),d(4,"span",66),p(5),u()(),d(6,"label",82),p(7,"Narration"),u(),d(8,"textarea",83),te("ngModelChange",function(o){let i=I(n).$implicit;return ne(i.narration,o)||(i.narration=o),M(o)}),u(),$(),d(9,"label",82),p(10,"Key points on screen \u2014 one per line"),u(),d(11,"textarea",83),N("ngModelChange",function(o){let i=I(n).$implicit,s=v(2);return M(s.setKeyPoints(i,o))}),u(),$(),d(12,"label",82),p(13,"Title overlay (optional)"),u(),d(14,"input",96),te("ngModelChange",function(o){let i=I(n).$implicit;return ne(i.titleOverlay,o)||(i.titleOverlay=o),M(o)}),u(),$(),b(15,uS,4,1)(16,dS,12,4)(17,hS,4,4),u()}if(e&2){let n=t.$implicit,r=t.$index,o=v(2);h(3),bt("Scene ",r+1," \xB7 ",n.purpose),h(2),R("~",n.durationHintSec,"s"),h(3),ee("ngModel",n.narration),S("ngModelOptions",Be(10,Bt)),z(),h(3),S("ngModel",o.keyPointsText(n))("ngModelOptions",Be(11,Bt)),z(),h(3),ee("ngModel",n.titleOverlay),S("ngModelOptions",Be(12,Bt)),z(),h(),E(n.visual.sourcePage?15:n.visual.userImageId?16:17)}}function mS(e,t){e&1&&(d(0,"p",87),p(1,"Enter a content name to produce the video."),u())}function yS(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit,r=v(2);S("value",n.id),h(),C(r.voiceLabel(n))}}function vS(e,t){if(e&1){let n=G();d(0,"section",5)(1,"div",6)(2,"span",7),p(3,"3"),u(),d(4,"h2",8),p(5,"Review the scene plan"),u(),d(6,"span",62),p(7,"\u2014 check it, then produce"),u()(),d(8,"div",63)(9,"div")(10,"div",64),p(11),u(),d(12,"div",65)(13,"span",66),p(14),u(),d(15,"span",66),p(16),u(),d(17,"span",66),p(18),u(),d(19,"span",66),p(20),u(),b(21,rS,2,2,"span"),b(22,oS,2,0,"span"),b(23,iS,2,0,"span"),u(),b(24,sS,3,1,"p",67),u(),d(25,"div",68)(26,"div",69),p(27),u(),d(28,"div",70),p(29,"estimated"),u(),d(30,"div",71),p(31),b(32,aS,1,1),b(33,cS,1,1),b(34,lS,1,1),p(35),lt(36,"number"),u()()(),J(37,gS,18,13,"div",76,dt),d(39,"label",84),p(40,"Content name "),d(41,"span",85),p(42,"*"),u(),p(43," \u2014 names the finished video (edit if needed)"),u(),d(44,"input",86),N("ngModelChange",function(o){I(n);let i=v();return M(i.contentName.set(o))}),u(),$(),b(45,mS,2,0,"p",87),d(46,"div",73)(47,"button",74),N("click",function(){I(n);let o=v();return M(o.produce())}),p(48),u(),d(49,"button",75),N("click",function(){I(n);let o=v();return M(o.makePlan())}),p(50,"\u21BB Regenerate plan"),u()(),d(51,"div",88)(52,"label",89),p(53,"Not happy with something? Describe the change \u2014 the plan will be revised and only affected scenes regenerated (cached scenes are free)"),u(),d(54,"textarea",90),N("ngModelChange",function(o){I(n);let i=v();return M(i.feedback.set(o))}),u(),$(),d(55,"div",91)(56,"div",92)(57,"label",93),p(58,"Change voice (optional)"),u(),d(59,"select",94),te("ngModelChange",function(o){I(n);let i=v();return ne(i.fbVoice,o)||(i.fbVoice=o),M(o)}),d(60,"option",21),p(61,"Keep current voice"),u(),J(62,yS,2,2,"option",18,dt),u(),$(),u(),d(64,"button",75),N("click",function(){I(n);let o=v();return M(o.revise())}),p(65),u()()(),d(66,"p",95),p(67," Production is not triggered from this screen yet, so nothing is billed for rendering. Voiceover and images are generated when you produce the video. "),u()()}if(e&2){let n=t,r=v();h(11),C(n.plan.title),h(3),R("",n.plan.scenes.length," scenes"),h(2),R("~",n.plan.estimatedDurationSec,"s"),h(2),C(n.plan.videoType),h(2),C(n.plan.aspectRatio||r.aspectRatio),h(),E(n.plan.voice?.gender?21:-1),h(),E(r.styleGuide()?22:-1),h(),E(n.plan.usesSourceSlides?23:-1),h(),E(n.plan.voice?.rationale?24:-1),h(3),R("$",n.costEstimate.totalUsd),h(4),R(" ",n.costEstimate.images," new images"),h(),E(n.costEstimate.restyles?32:-1),h(),E(n.costEstimate.userImages?33:-1),h(),E(n.costEstimate.sourcePages?34:-1),h(),R(" \xB7 ",rr(36,26,n.costEstimate.ttsChars)," VO chars "),h(2),X(n.plan.scenes),h(7),pe("invalid",!r.contentName().trim()),S("ngModel",r.contentName()),z(),h(),E(r.contentName().trim()?-1:45),h(2),S("disabled",r.producing()||!r.contentName().trim()),h(),R(" ",r.producing()?"Producing\u2026":r.hasVideo()?"\u2713 Regenerate video":"\u2713 Confirm & produce video"," "),h(),S("disabled",r.planning()||r.producing()),h(5),S("ngModel",r.feedback()),z(),h(5),ee("ngModel",r.fbVoice),z(),h(3),X(r.voices()),h(2),S("disabled",!r.feedback().trim()||r.revising()),h(),R(" ",r.revising()?"Revising\u2026":"\u21BB Regenerate plan with this feedback"," ")}}function _S(e,t){if(e&1&&(d(0,"span"),p(1),u()),e&2){let n=v();h(),C(n.counter)}}function CS(e,t){if(e&1&&(d(0,"span"),p(1),u()),e&2){let n=v(3);h(),C(n.eta())}}function DS(e,t){e&1&&(d(0,"span",112),p(1,"You can leave this page \u2014 it keeps going."),u())}function bS(e,t){if(e&1&&(d(0,"span",122),p(1),u()),e&2){let n=v().$implicit;h(),C(n.detail)}}function ES(e,t){if(e&1&&(d(0,"li")(1,"span",119),p(2),u(),d(3,"div",120)(4,"span",121),p(5),u(),b(6,bS,2,1,"span",122),u()()),e&2){let n=t.$implicit,r=t.$index,o=t.$count,i=v(4);$r("prod-step-"+i.stageState(r)),pe("is-last",r===o-1),h(2),R(" ",i.stageState(r)==="done"?"\u2713":i.stageState(r)==="active"?n.icon:r+1," "),h(3),C(n.label),h(),E(i.stageState(r)==="active"?6:-1)}}function wS(e,t){if(e&1&&(d(0,"ol",113),J(1,ES,7,7,"li",118,dt),u()),e&2){let n=v(3);h(),X(n.stages)}}function SS(e,t){if(e&1&&(d(0,"div"),p(1),u()),e&2){let n=t.$implicit;h(),R("\u26A0 ",n)}}function xS(e,t){if(e&1&&(d(0,"div",114),J(1,SS,2,1,"div",null,Wo),d(3,"span",112),p(4,"The video will still be made."),u()()),e&2){let n=v();h(),X(n.warnings)}}function IS(e,t){if(e&1&&(d(0,"div",115),p(1),u()),e&2){let n=v();h(),C(n.headline)}}function MS(e,t){if(e&1&&(d(0,"pre",117),p(1),u()),e&2){let n=v(3);h(),C(n.job()?n.logText(n.job()):"Starting\u2026")}}function TS(e,t){if(e&1){let n=G();d(0,"div",105)(1,"span",106),p(2),u(),d(3,"div",107)(4,"strong"),p(5),u(),d(6,"span",108),p(7),u()(),d(8,"span",109),p(9),u()(),d(10,"div",110),je(11,"i"),u(),d(12,"div",111),b(13,_S,2,1,"span"),b(14,CS,2,1,"span"),b(15,DS,2,0,"span",112),u(),b(16,wS,3,0,"ol",113),b(17,xS,5,0,"div",114),b(18,IS,2,1,"div",115),d(19,"button",116),N("click",function(){I(n);let o=v(2);return M(o.showLog.set(!o.showLog()))}),p(20),u(),b(21,MS,2,1,"pre",117)}if(e&2){let n=t,r=v(2);pe("is-failed",n.failed)("is-done",n.done),h(),pe("spin",!n.done&&!n.failed),h(),C(n.stage.icon),h(3),C(n.stage.label),h(2),C(n.headline),h(2),R("",n.percent,"%"),h(),pe("is-working",!n.done&&!n.failed),h(),tr("width",n.percent,"%"),h(2),E(n.counter?13:-1),h(),E(r.eta()?14:-1),h(),E(!n.done&&!n.failed?15:-1),h(),E(n.failed?-1:16),h(),E(n.warnings.length?17:-1),h(),E(n.failed?18:-1),h(2),R(" ",r.showLog()?"Hide":"Show"," technical log "),h(),E(r.showLog()?21:-1)}}function NS(e,t){if(e&1&&(d(0,"section",5)(1,"div",6)(2,"span",7),p(3,"4"),u(),d(4,"h2",8),p(5,"Production"),u()(),b(6,TS,22,22),u()),e&2){let n,r=v();h(6),E((n=r.progress())?6:-1,n)}}function AS(e,t){if(e&1&&p(0),e&2){let n=v(3);R(" (auto-fixed: ",n.autoFixed.join(", "),") ")}}function OS(e,t){if(e&1&&(d(0,"p",126),p(1," \u2705 "),d(2,"b"),p(3,"Visual QC passed"),u(),p(4," \u2014 framing, cropping and text placement checked on every scene"),b(5,AS,1,1),u()),e&2){let n=v(2);h(5),E(n.autoFixed?.length?5:-1)}}function kS(e,t){if(e&1&&p(0),e&2){let n=t.$implicit;nr(" ",n.type," (",n.severity,") \u2014 ",n.note,"; ")}}function RS(e,t){if(e&1&&(d(0,"li")(1,"b"),p(2),u(),p(3,": "),J(4,kS,1,3,null,null,er),u()),e&2){let n=t.$implicit;h(2),C(n.id),h(2),X(n.issues)}}function PS(e,t){if(e&1&&(d(0,"div",127)(1,"p"),p(2,"\u26A0\uFE0F "),d(3,"b"),p(4,"Visual QC found issues"),u(),p(5," \u2014 use the feedback box above to fix them:"),u(),d(6,"ul"),J(7,RS,6,1,"li",null,dt),u()()),e&2){let n=v(4);h(7),X(n.qcIssues())}}function FS(e,t){if(e&1&&b(0,OS,6,1,"p",126)(1,PS,9,0,"div",127),e&2){let n=v();E(n.pass?0:1)}}function LS(e,t){e&1&&b(0,FS,2,1),e&2&&E(t.skipped?-1:0)}function VS(e,t){if(e&1){let n=G();d(0,"section",5)(1,"div",6)(2,"span",7),p(3,"5"),u(),d(4,"h2",8),p(5,"Your video"),u()(),b(6,LS,1,1),je(7,"video",123),d(8,"div",73)(9,"button",124),N("click",function(){I(n);let o=v();return M(o.download())}),p(10,"\u2B07 Download MP4"),u(),d(11,"button",125),N("click",function(){I(n);let o=v();return M(o.deleteVideo.ask(o.job()))}),p(12," \u{1F5D1} Delete video "),u()(),d(13,"p",95),p(14," Two ways to refine: edit the scene plan above (change narration, key points, image prompts \u2014 only edited scenes regenerate), or describe the change in the feedback box and let the director revise the plan for you. "),u()()}if(e&2){let n,r=v();h(6),E((n=r.job()?.qc)?6:-1,n),h(),S("src",r.playbackSrc(),Qs),h(4),S("disabled",r.deleteVideo.busy())}}var Ua=class e{api=D(jt);doc=L(null);editMode=Lg("off");sourceVideo=L(null);editPlan=L(null);uploading=L(!1);planning=L(!1);revising=L(!1);result=L(null);error=L("");voices=L([]);styleGuide=L("");refName=L("");userImages=L([]);videoType="watercolor";contentName=L("");brief="";useSourceSlides=!1;language="hi";aspectRatio="16:9";depth="standard";voicePref="";producing=L(!1);job=L(null);pollTimer=null;feedback=L("");fbVoice="";videoTypes=[{id:"slides",icon:"\u{1F4CA}",name:"Slides + voiceover",desc:"Clean slides with animated key-point text, infographics and illustrations, synced to narration."},{id:"watercolor",icon:"\u{1F3A8}",name:"Watercolor illustrations",desc:"Full-screen watercolor scenes (Indian rural healthcare setting) with key points appearing over them."},{id:"roleplay",icon:"\u{1F5E3}\uFE0F",name:"Animated roleplay",desc:"2D cel-animation dialogue between characters (e.g. ANM & beneficiary), lip-synced, contrast-pair format."},{id:"translation",icon:"\u{1F310}",name:"Translate existing video",desc:"Re-voice an existing video in another language; optionally translate on-screen text too."}];languages=[{id:"hi",label:"Hindi"},{id:"en",label:"English"},{id:"kn",label:"Kannada"},{id:"te",label:"Telugu"}];aspects=[{id:"16:9",label:"16:9 (landscape)"},{id:"9:16",label:"9:16 (vertical)"}];depths=[{id:"brief",label:"Brief \u2014 tight summary (45\u201390s)"},{id:"standard",label:"Standard \u2014 faithful coverage"},{id:"indepth",label:"In-depth \u2014 more slides, fuller explanations"}];hasSlides=ae(()=>(this.doc()?.pages??0)>0);isEditMode=ae(()=>this.sourceVideo()!==null);hasSource=ae(()=>this.doc()!==null||this.sourceVideo()!==null);editActions=[{id:"keep",label:"\u2714 Keep as-is"},{id:"revoice",label:"\u{1F399}\uFE0F Re-voice (new narration)"},{id:"replace",label:"\u{1F5BC}\uFE0F Replace visual + narration"},{id:"new",label:"\u2795 New scene"},{id:"cut",label:"\u2702\uFE0F Cut (remove)"}];constructor(){this.api.voices().subscribe({next:t=>this.voices.set(t),error:()=>{}})}voiceLabel(t){let n=t.lang==="en"?"Indian English":"Hindi";return`${t.name} \u2014 ${t.gender}, ${t.feel} (${n}${t.provider==="sarvam"?" \xB7 Sarvam":""})`}onFile(t){let n=t.target.files?.[0];n&&(this.error.set(""),this.uploading.set(!0),this.api.uploadDoc(n).subscribe({next:r=>{ud(r)&&this.editMode()==="off"?(this.sourceVideo.set(null),this.doc.set(null),this.error.set("Editing an existing video is not available here. Upload a document \u2014 PDF, DOCX, TXT, MD or SRT \u2014 to make a new video instead.")):ud(r)?(this.sourceVideo.set(r),this.doc.set(null)):(this.doc.set(r),this.sourceVideo.set(null)),this.uploading.set(!1)},error:r=>{this.error.set(he(r)),this.uploading.set(!1)}}))}onRefVideo(t){let n=t.target.files?.[0];n&&(this.refName.set(`Analysing ${n.name}\u2026`),this.api.uploadReference(n).subscribe({next:r=>{this.styleGuide.set(r.styleGuide),this.refName.set(`${n.name} \u2014 style captured`)},error:r=>this.refName.set(he(r))}))}onUserImages(t){let n=Array.from(t.target.files??[]);for(let r of n)this.api.uploadImage(r).subscribe({next:o=>this.userImages.update(i=>[...i,{id:o.id,name:o.name||r.name,note:""}]),error:o=>this.error.set(he(o))})}removeImage(t){this.userImages.update(n=>n.filter(r=>r.id!==t))}DEFAULT_BRIEF="faithful, warm instructional video";makePlan(){if(this.isEditMode())return this.makeEditPlan();let t=this.doc();t&&(this.error.set(""),this.planning.set(!0),this.result.set(null),this.api.plan({docText:t.text,userPrompt:this.brief.trim()||this.DEFAULT_BRIEF,videoType:this.videoType,language:this.language,filename:t.filename,depth:this.depth,aspectRatio:this.aspectRatio,voicePref:this.voicePref||void 0,pages:t.pages,sourceId:t.sourceId,useSourceSlides:this.useSourceSlides,userImages:this.userImages(),styleGuide:this.styleGuide()||void 0}).subscribe({next:n=>{this.result.set(n),this.contentName.set(this.contentName().trim()||n.plan?.title||""),this.planning.set(!1)},error:n=>{this.error.set(he(n)),this.planning.set(!1)}}))}makeEditPlan(){let t=this.sourceVideo();!t||!this.brief.trim()||(this.error.set(""),this.planning.set(!0),this.editPlan.set(null),this.api.planEdits({videoType:"videoedit",userPrompt:this.brief,language:this.language,filename:t.filename,voicePref:this.voicePref||void 0,videoMeta:{sourceId:t.sourceId,segments:t.segments}}).subscribe({next:n=>{this.editPlan.set(n),this.contentName.set(this.contentName().trim()||n.plan?.title||""),this.planning.set(!1)},error:n=>{this.error.set(he(n)),this.planning.set(!1)}}))}acceptedFiles=ae(()=>this.editMode()==="on"?".pdf,.docx,.txt,.md,.srt,.mp4,.mov,.m4v,.webm":".pdf,.docx,.txt,.md,.srt");keyframe(t){return this.sourceVideo()?.segments.find(n=>n.id===t.srcId)?.keyframeUrl??null}actionsFor(t){return t.srcId?this.editActions:this.editActions.filter(n=>n.id!=="keep")}produceEdits(){let t=this.editPlan();t&&(this.error.set(""),this.producing.set(!0),this.job.set(null),this.api.generateVideo(t.jobId,{plan:t.plan,contentName:this.contentName().trim()}).subscribe({next:()=>this.pollFrom(t.jobId),error:n=>{this.error.set(he(n)),this.producing.set(!1)}}))}revise(){let t=this.result();!t||!this.feedback().trim()||(this.error.set(""),this.revising.set(!0),this.api.reviseplan(t.jobId,{feedback:this.feedback(),voicePref:this.fbVoice||void 0}).subscribe({next:n=>{this.result.set(n),this.feedback.set(""),this.revising.set(!1)},error:n=>{this.error.set(he(n)),this.revising.set(!1)}}))}keyPointsText(t){return(t.onScreenText||[]).join(`
10
+ Use an empty apiBase only when the service is same-origin.`)}function TE(e){if(typeof e?.apiBase!="string")throw new Error(`Aastrika: configure() needs an apiBase string, received ${typeof e?.apiBase}. Pass an empty string for same-origin.`);eo=V(V({},Fm),e),Lm=!0}function Vm(){return eo}var jm={get apiBase(){return ME(),eo.apiBase},get getAuthHeaders(){return eo.getAuthHeaders},get creator(){return eo.creator},get onError(){return eo.onError}};var NE={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function AE(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function OE(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var yd;function kE(e,t){if(!yd){let n=Element.prototype;yd=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?yd.call(e,t):!1}function RE(e){let t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[AE(r)]=[n,o]}),t}function PE(e,t){return ri(e).inputs}function FE(e,t){let n=e.childNodes,r=t.map(()=>[]),o=-1;t.some((i,s)=>i==="*"?(o=s,!0):!1);for(let i=0,s=n.length;i<s;++i){let a=n[i],c=LE(a,t,o);c!==-1&&r[c].push(a)}return r}function LE(e,t,n){let r=n;return OE(e)&&t.some((o,i)=>o!=="*"&&kE(e,o)?(r=i,!0):!1),r}var VE=10,vd=class{component;componentMirror;inputMap=new Map;constructor(t){this.component=t,this.componentMirror=ri(t);for(let n of this.componentMirror.inputs)this.inputMap.set(n.propName,n.templateName)}create(t){return new _d(this.component,t,this.inputMap)}},_d=class{component;injector;inputMap;eventEmitters=new Er(1);events=this.eventEmitters.pipe(Pn(t=>_c(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,n,r){this.component=t,this.injector=n,this.inputMap=r,this.ngZone=this.injector.get(be),this.appRef=this.injector.get(bn),this.cdScheduler=n.get(gt),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=NE.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},VE))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){if(this.componentRef===null){this.initialInputValues.set(t,n);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,n),Su(this.componentRef.hostView)&&(Iu(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(t){let n=ke.create({providers:[],parent:this.injector}),r=FE(t,ri(this.component).ngContentSelectors);this.componentRef=Gg(this.component,{environmentInjector:this.injector,elementInjector:n,hostElement:t,projectableNodes:r}),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,n]of this.initialInputValues)this.setInputValue(t,n);this.initialInputValues.clear()}initializeOutputs(t){let n=ri(this.component).outputs.map(({propName:r,templateName:o})=>{let i=t.instance[r];return new q(s=>{let a=i.subscribe(c=>s.next({name:o,value:c}));return()=>a.unsubscribe()})});this.eventEmitters.next(n)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},Cd=class extends HTMLElement{ngElementEventsSubscription=null};function Bm(e,t){let n=PE(e),r=t.strategyFactory||new vd(e),o=RE(n);class i extends Cd{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:c,transform:l})=>{if(!Object.hasOwn(this,c))return;let f=this[c];delete this[c],a.setInputValue(c,f,l)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,l,f){let[g,y]=o[a];this.ngElementStrategy.setInputValue(g,l,y)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let c=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(c)})}}return n.forEach(({propName:s,transform:a,isSignal:c})=>{Object.defineProperty(i.prototype,s,{get(){let l=this.ngElementStrategy.getInputValue(s);return c&&Yn(l)?l():l},set(l){this.ngElementStrategy.setInputValue(s,l,a)},configurable:!0,enumerable:!0})}),i}function Hm(e,t){return typeof customElements>"u"||customElements.get(e.tag)?!1:(customElements.define(e.tag,Bm(e.component,{injector:t})),!0)}function to(e){e||(e=C(ue));let t=new q(n=>{if(e.destroyed){n.next();return}return e.onDestroy(n.next.bind(n))});return n=>n.pipe(Ec(t))}var Km=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(Y(Bt),Y(wt))};static \u0275dir=_e({type:e})}return e})(),bi=(()=>{class e extends Km{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Et(e)))(o||e)}})();static \u0275dir=_e({type:e,features:[Ue]})}return e})(),io=new T(""),jE={provide:io,useExisting:He(()=>Id),multi:!0},Id=(()=>{class e extends bi{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Et(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["input","type","checkbox","formControlName","",3,"ngNoCva",""],["input","type","checkbox","formControl","",3,"ngNoCva",""],["input","type","checkbox","ngModel","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&A("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[lt([jE]),Ue]})}return e})(),BE={provide:io,useExisting:He(()=>xn),multi:!0};function HE(){let e=Mt()?Mt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var UE=new T(""),xn=(()=>{class e extends Km{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!HE())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(Y(Bt),Y(wt),Y(UE,8))};static \u0275dir=_e({type:e,selectors:[["input","formControlName","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControlName","",3,"ngNoCva",""],["input","formControl","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControl","",3,"ngNoCva",""],["input","ngModel","",3,"type","checkbox",3,"ngNoCva",""],["textarea","ngModel","",3,"ngNoCva",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&A("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[lt([BE]),Ue]})}return e})();function Md(e){return e==null||Td(e)===0}function Td(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var Di=new T(""),$E=new T(""),zE=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,bd=class{static min(t){return Jm(t)}static max(t){return Xm(t)}static required(t){return ey(t)}static requiredTrue(t){return GE(t)}static email(t){return WE(t)}static minLength(t){return qE(t)}static maxLength(t){return ty(t)}static pattern(t){return ZE(t)}static nullValidator(t){return ja()}static compose(t){return ay(t)}static composeAsync(t){return ly(t)}};function Jm(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function Xm(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function ey(e){return Md(e.value)?{required:!0}:null}function GE(e){return e.value===!0?null:{required:!0}}function WE(e){return Md(e.value)||zE.test(e.value)?null:{email:!0}}function qE(e){return t=>{let n=t.value?.length??Td(t.value);return n===null||n===0?null:n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}function ty(e){return t=>{let n=t.value?.length??Td(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function ZE(e){if(!e)return ja;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(Md(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function ja(e){return null}function ny(e){return e!=null}function ry(e){return Wr(e)?Gt(e):e}function oy(e){let t={};return e.forEach(n=>{t=n!=null?V(V({},t),n):t}),Object.keys(t).length===0?null:t}function iy(e,t){return t.map(n=>n(e))}function YE(e){return!e.validate}function sy(e){return e.map(t=>YE(t)?t:n=>t.validate(n))}function ay(e){if(!e)return null;let t=e.filter(ny);return t.length==0?null:function(n){return oy(iy(n,t))}}function cy(e){return e!=null?ay(sy(e)):null}function ly(e){if(!e)return null;let t=e.filter(ny);return t.length==0?null:function(n){let r=iy(n,t).map(ry);return vc(r).pipe(we(oy))}}function uy(e){return e!=null?ly(sy(e)):null}function Um(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function QE(e){return e._rawValidators}function KE(e){return e._rawAsyncValidators}function Dd(e){return e?Array.isArray(e)?e:[e]:[]}function Ba(e,t){return Array.isArray(e)?e.includes(t):e===t}function $m(e,t){let n=Dd(t);return Dd(e).forEach(o=>{Ba(n,o)||n.push(o)}),n}function zm(e,t){return Dd(t).filter(n=>!Ba(e,n))}var Ha=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=cy(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=uy(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control?.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},Ed=class extends Ha{name;get formDirective(){return null}get path(){return null}};var mi="VALID",Va="INVALID",no="PENDING",yi="DISABLED",fr=class{},Ua=class extends fr{value;source;constructor(t,n){super(),this.value=t,this.source=n}},vi=class extends fr{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},_i=class extends fr{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},ro=class extends fr{status;source;constructor(t,n){super(),this.status=t,this.source=n}};var Ci=class extends fr{source;constructor(t){super(),this.source=t}};function JE(e){return($a(e)?e.validators:e)||null}function XE(e){return Array.isArray(e)?cy(e):e||null}function ew(e,t){return($a(t)?t.asyncValidators:e)||null}function tw(e){return Array.isArray(e)?uy(e):e||null}function $a(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var wd=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_hasRequired=F(!1);_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t,this._updateHasRequiredValidator()}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return Ze(this.statusReactive)}set status(t){Ze(()=>this.statusReactive.set(t))}_status=ae(()=>this.statusReactive());statusReactive=F(void 0);get valid(){return this.status===mi}get invalid(){return this.status===Va}get pending(){return this.status===no}get disabled(){return this.status===yi}get enabled(){return this.status!==yi}errors;get pristine(){return Ze(this.pristineReactive)}set pristine(t){Ze(()=>this.pristineReactive.set(t))}_pristine=ae(()=>this.pristineReactive());pristineReactive=F(!0);get dirty(){return!this.pristine}get touched(){return Ze(this.touchedReactive)}set touched(t){Ze(()=>this.touchedReactive.set(t))}_touched=ae(()=>this.touchedReactive());touchedReactive=F(!1);get untouched(){return!this.touched}_events=new Ae;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators($m(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators($m(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(zm(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(zm(t,this._rawAsyncValidators))}hasValidator(t){return Ba(this._rawValidators,t)}hasAsyncValidator(t){return Ba(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsTouched($(V({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new _i(!0,r))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),t.onlySelf||this._parent?._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new _i(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty($(V({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new vi(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),t.onlySelf||this._parent?._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new vi(!0,r))}markAsPending(t={}){this.status=no;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ro(this.status,n)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending($(V({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=yi,this.errors=null,this._forEachChild(o=>{o.disable($(V({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ua(this.value,r)),this._events.next(new ro(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors($(V({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=mi,this._forEachChild(r=>{r.enable($(V({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors($(V({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){t.onlySelf||(this._parent?.updateValueAndValidity(t),t.skipPristineCheck||this._parent?._updatePristine({},n),this._parent?._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===mi||this.status===no)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ua(this.value,n)),this._events.next(new ro(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity($(V({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?yi:mi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=no,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=ry(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r?.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new ro(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new Oe,this.statusChanges=new Oe}_calculateStatus(){return this._allControlsDisabled()?yi:this.errors?Va:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(no)?no:this._anyControlsHaveStatus(Va)?Va:mi}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,t.onlySelf||this._parent?._updatePristine(t,n),o&&this._events.next(new vi(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new _i(this.touched,n)),t.onlySelf||this._parent?._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){$a(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=XE(this._rawValidators),this._updateHasRequiredValidator()}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=tw(this._rawAsyncValidators)}_updateHasRequiredValidator(){Ze(()=>this._hasRequired.set(this.hasValidator(bd.required)))}};function nw(e){return e.tagName==="INPUT"||e.tagName==="SELECT"||e.tagName==="TEXTAREA"}function rw(e,t,n,r){switch(n){case"name":e.setAttribute(t,n,r);break;case"disabled":case"readonly":case"required":r?e.setAttribute(t,n,""):e.removeAttribute(t,n);break;case"max":case"min":case"minLength":case"maxLength":r!==void 0?e.setAttribute(t,n,r.toString()):e.removeAttribute(t,n);break}}var xd=class{kind;context;control;message;constructor({kind:t,context:n,control:r}){this.kind=t,this.context=n,this.control=r}};function ow(e){return typeof e=="number"?e:parseInt(e,10)}function dy(e){return typeof e=="number"?e:parseFloat(e)}var za=(()=>{class e{_validator=ja;_onChange;_enabled;ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):ja,this._onChange?.()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}static \u0275fac=function(r){return new(r||e)};static \u0275dir=_e({type:e,features:[rr]})}return e})(),iw={provide:Di,useExisting:He(()=>Nd),multi:!0},Nd=(()=>{class e extends za{max;inputName="max";normalizeInput=n=>dy(n);createValidator=n=>Xm(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=Et(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&xt("max",o._enabled?o.max:null)},inputs:{max:"max"},standalone:!1,features:[lt([iw]),Ue]})}return e})(),sw={provide:Di,useExisting:He(()=>Ad),multi:!0},Ad=(()=>{class e extends za{min;inputName="min";normalizeInput=n=>dy(n);createValidator=n=>Jm(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=Et(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&xt("min",o._enabled?o.min:null)},inputs:{min:"min"},standalone:!1,features:[lt([sw]),Ue]})}return e})(),aw={provide:Di,useExisting:He(()=>fy),multi:!0};var fy=(()=>{class e extends za{required;inputName="required";normalizeInput=zu;createValidator=n=>ey;enabled(n){return n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Et(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&&xt("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[lt([aw]),Ue]})}return e})();var cw={provide:Di,useExisting:He(()=>Od),multi:!0},Od=(()=>{class e extends za{maxlength;inputName="maxlength";normalizeInput=n=>ow(n);createValidator=n=>ty(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=Et(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&xt("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[lt([cw]),Ue]})}return e})();var lw=new T(""),py=new T("",{factory:()=>kd}),kd="always";function uw(e,t){return[...t.path,e]}function Gm(e,t,n=kd){fw(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),pw(e,t),gw(e,t),hw(e,t),dw(e,t)}function Wm(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function dw(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function fw(e,t){let n=QE(e);t.validator!==null?e.setValidators(Um(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=KE(e);t.asyncValidator!==null?e.setAsyncValidators(Um(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();Wm(t._rawValidators,o),Wm(t._rawAsyncValidators,o)}function pw(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&hy(e,t)})}function hw(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&hy(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function hy(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function gw(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function mw(e,t){if(!Object.hasOwn(e,"model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function yw(e){return Object.getPrototypeOf(e.constructor)===bi}function vw(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===xn?n=i:yw(i)?r=i:o=i}),o||r||n||null}var _w={provide:lw,useFactory:()=>{let e=C(oo,{self:!0});return{setParseErrors:t=>{e.setParseErrorSource(t)},set onReset(t){e.onReset=t}}}},oo=class extends Ha{_parent=null;name=null;valueAccessor=null;isCustomControlBased=!1;userOnReset;resetSubscription;set onReset(t){this.userOnReset=t,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(n=>{n instanceof Ci&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=vw(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(t,n,r){super(),this.injector=t,this.renderer=n,this.rawValueAccessors=r,this.injector?.get(ue)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let t=this.injector?.get(ni);if(!this.control||!t)return;let n=t.markForCheck.bind(t);this.subscription=new Ee,this.subscription.add(this.control.valueChanges.subscribe(n)),this.subscription.add(this.control.statusChanges.subscribe(n)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(r=>{r instanceof Ci&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator)}ngControlCreate(t){!t.nativeElement.hasAttribute?.("ngNoCva")&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!t.customControl||(this.isCustomControlBased=!0,t.listenToCustomControlModel(o=>{this.control?.setValue(o,{emitModelToViewChange:!1}),this.control?.markAsDirty(),this.viewToModelUpdate(o)}),t.listenToCustomControlOutput("touch",()=>{this.control?.markAsTouched()}),this.customControlBindings={},this.isNativeFormElement=nw(t.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(o=>o instanceof fy))}ngControlUpdate(t,n){if(!this.isCustomControlBased)return;let r=this.control,o=this.customControlBindings;Object.is(o.value,r.value)||(o.value=r.value,t.setCustomControlModelInput(r.value)),this.bindControlProperty(t,o,"touched",r.touched),this.bindControlProperty(t,o,"dirty",r.dirty),this.bindControlProperty(t,o,"valid",r.valid),this.bindControlProperty(t,o,"invalid",r.invalid),this.bindControlProperty(t,o,"pending",r.pending),this.bindControlProperty(t,o,"disabled",r.disabled),this.shouldBindRequired&&this.bindControlProperty(t,o,"required",this.isRequired);let i=r.errors;if(o.errors!==i){o.errors=i;let s=this._convertErrors(i);t.setInputOnDirectives("errors",s)}}get isRequired(){return(this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??!1}get shouldBindRequired(){return!0}bindControlProperty(t,n,r,o){if(n[r]===o)return;n[r]=o;let i=t.setInputOnDirectives(r,o);this.isNativeFormElement&&!i&&(r==="disabled"||r==="required")&&this.renderer&&rw(this.renderer,t.nativeElement,r,o)}_convertErrors(t){if(t===null)return[];let n=this.control;return Object.entries(t).map(([r,o])=>new xd({context:o,kind:r,control:n}))}setParseErrorSource(t){if(t===void 0)return;let n=null,r=ae(()=>{let o=t();return o.length===0?null:o.reduce((i,s)=>(i[s.kind]=s,i),{})});this.parseErrorsValidator=(()=>n).bind(this),_t(()=>{n=r(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(t){this.parseErrorsValidator&&(t?.removeValidators(this.parseErrorsValidator),t?.updateValueAndValidity({emitEvent:!1}))}},Sd=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var so=(()=>{class e extends Sd{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(Y(oo,2))};static \u0275dir=_e({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&ge("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[Ue]})}return e})();function qm(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Zm(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Cw=class extends wd{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(JE(n),ew(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$a(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Zm(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){Ze(()=>{this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)})}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),n.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,n?.emitEvent!==!1&&this._events.next(new Ci(this))}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){qm(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){qm(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Zm(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var bw={provide:oo,useExisting:He(()=>pr)},Ym=Promise.resolve(),pr=(()=>{class e extends oo{_changeDetectorRef;callSetDisabledState;control=new Cw;static ngAcceptInputType_isDisabled;_registered=!1;_ngModelInjector;viewModel;name="";isDisabled;model;options;update=new Oe;constructor(n,r,o,i,s,a,c,l){super(c,l,i),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o)}ngOnChanges(n){if(this._registered,this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),mw(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}\u0275ngControlCreate(n){super.ngControlCreate(n)}\u0275ngControlUpdate(n){super.ngControlUpdate(n,!1)}get shouldBindRequired(){return!1}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Gm(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:!1})}_setupWithForm(n){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Gm(this.control,this,n))}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Ym.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&zu(r);Ym.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?uw(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(Y(Ed,9),Y(Di,10),Y($E,10),Y(io,10),Y(ni,8),Y(py,8),Y(ke,8),Y(Bt,8))};static \u0275dir=_e({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[lt([bw,_w]),Ue,rr,Pu(null)]})}return e})();var Dw={provide:io,useExisting:He(()=>Rd),multi:!0},Rd=(()=>{class e extends bi{writeValue(n){let r=n??"";this.setProperty("value",r)}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Et(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["input","type","number","formControlName","",3,"ngNoCva",""],["input","type","number","formControl","",3,"ngNoCva",""],["input","type","number","ngModel","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&A("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[lt([Dw]),Ue]})}return e})();var Ew={provide:io,useExisting:He(()=>ao),multi:!0};function gy(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function ww(e){return e.split(":")[0]}var ao=(()=>{class e extends bi{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;appRefInjector=C(bn).injector;destroyRef=C(ue);cdr=C(ni);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,hu({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(n){this.cdr.markForCheck(),this.value=n;let r=this._getOptionId(n),o=gy(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=ww(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Et(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["select","formControlName","",3,"multiple","",3,"ngNoCva",""],["select","formControl","",3,"multiple","",3,"ngNoCva",""],["select","ngModel","",3,"multiple","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&A("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[lt([Ew]),Ue]})}return e})(),Ga=(()=>{class e{_element;_renderer;_select;id;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(gy(this.id,n)),this._select._writeValueAfterRender())}set value(n){this._setElementValue(n),this._select?._writeValueAfterRender()}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender()}static \u0275fac=function(r){return new(r||e)(Y(wt),Y(Bt),Y(ao,9))};static \u0275dir=_e({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),xw={provide:io,useExisting:He(()=>my),multi:!0};function Qm(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Sw(e){return e.split(":")[0]}var my=(()=>{class e extends bi{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r;if(Array.isArray(n)){let o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s)>-1)}}else r=o=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],i=r.selectedOptions;if(i!==void 0){let s=i;for(let a=0;a<s.length;a++){let c=s[a],l=this._getOptionValue(c.value);o.push(l)}}else{let s=r.options;for(let a=0;a<s.length;a++){let c=s[a];if(c.selected){let l=this._getOptionValue(c.value);o.push(l)}}}this.value=o,n(o)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=Sw(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Et(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["select","multiple","","formControlName","",3,"ngNoCva",""],["select","multiple","","formControl","",3,"ngNoCva",""],["select","multiple","","ngModel","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&A("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[lt([xw]),Ue]})}return e})(),Wa=(()=>{class e{_element;_renderer;_select;id;_value;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(Qm(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(Qm(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||e)(Y(wt),Y(Bt),Y(my,9))};static \u0275dir=_e({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var Iw=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Cn({type:e});static \u0275inj=Yt({})}return e})();var co=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:py,useValue:n.callSetDisabledState??kd}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Cn({type:e});static \u0275inj=Yt({imports:[Iw]})}return e})();var Mw=["dlg"];function Tw(e,t){if(e&1&&(on(0,"p",3),p(1),Dn()),e&2){let n=v();h(),b(n.subject)}}var Sn=class e{open=!1;title="Are you sure?";subject="";message="This cannot be undone.";confirmLabel="Delete";busy=!1;confirmed=new Oe;cancelled=new Oe;dlg;ngOnChanges(){queueMicrotask(()=>{let t=this.dlg?.nativeElement;t&&(this.open&&!t.open?t.showModal():!this.open&&t.open&&t.close())})}onEscape(t){t.preventDefault(),this.busy||this.cancelled.emit()}onBackdrop(t){t.target===this.dlg?.nativeElement&&!this.busy&&this.cancelled.emit()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=rn({type:e,selectors:[["aa-confirm-dialog"]],viewQuery:function(n,r){if(n&1&&fa(Mw,5),n&2){let o;Vu(o=ju())&&(r.dlg=o.first)}},inputs:{open:"open",title:"title",subject:"subject",message:"message",confirmLabel:"confirmLabel",busy:"busy"},outputs:{confirmed:"confirmed",cancelled:"cancelled"},features:[rr],decls:12,vars:5,consts:[["dlg",""],["aria-labelledby","aa-confirm-title",1,"dialog",3,"cancel","click"],["id","aa-confirm-title",1,"title"],[1,"subject"],[1,"body"],[1,"actions"],["type","button","autofocus","",1,"btn","btn-ghost",3,"click"],["type","button",1,"btn","danger",3,"click","disabled"]],template:function(n,r){n&1&&(on(0,"dialog",1,0),qr("cancel",function(i){return r.onEscape(i)})("click",function(i){return r.onBackdrop(i)}),on(2,"h3",2),p(3),Dn(),D(4,Tw,2,1,"p",3),on(5,"p",4),p(6),Dn(),on(7,"div",5)(8,"button",6),qr("click",function(){return r.cancelled.emit()}),p(9,"Cancel"),Dn(),on(10,"button",7),qr("click",function(){return r.confirmed.emit()}),p(11),Dn()()()),n&2&&(h(3),b(r.title),h(),E(r.subject?4:-1),h(2),b(r.message),h(4),da("disabled",r.busy),h(),R(" ",r.busy?"Deleting\u2026":r.confirmLabel," "))},styles:[".dialog[_ngcontent-%COMP%]{margin:auto;padding:22px 24px;width:calc(100% - 40px);max-width:440px;background:var(--%NS%aastrika-surface, #fff);color:var(--%NS%aastrika-ink, #1A1A1A);border:1px solid var(--%NS%aastrika-line-2, #e5e0d8);border-radius:12px;box-shadow:0 18px 48px #17141038}.dialog[_ngcontent-%COMP%]::backdrop{background:#17141073}.title[_ngcontent-%COMP%]{margin:0 0 10px;font-size:16px;font-weight:650}.subject[_ngcontent-%COMP%]{margin:0 0 10px;padding:9px 11px;background:var(--%NS%aastrika-surface-2, #faf8f5);border:1px solid var(--%NS%aastrika-line-2, #e5e0d8);border-radius:7px;font-size:13px;overflow-wrap:anywhere}.body[_ngcontent-%COMP%]{margin:0 0 18px;font-size:13px;color:var(--%NS%aastrika-muted, #6b6257)}.actions[_ngcontent-%COMP%]{display:flex;gap:8px;justify-content:flex-end}.danger[_ngcontent-%COMP%]{background:#b42318;border-color:#b42318;color:#fff}.danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#98200f}.danger[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:default}"]})};function yy(e){if(!e||typeof e!="object")return;let t=e.error;if(!t||typeof t!="object")return;let n=t.error;return n&&typeof n=="object"?n:void 0}function vy(e){let t=e?.status;return typeof t=="number"?t:void 0}function Nw(e){return yy(e)?.code}function Aw(e,t={},n="Request failed"){let r=vy(e);if(r!==void 0&&t[r])return t[r];let o=yy(e)?.message;return typeof o=="string"&&o.trim()?o:r===void 0?`${n}.`:`${n} (${r}).`}function le(e,t,n={},r="Request failed"){let o=Aw(e,n,r),i=Vm().onError;if(i)try{i({feature:t,message:o,status:vy(e),code:Nw(e)})}catch{}return o}function lo(e){let t=F(null),n=F(!1);return{pending:t.asReadonly(),open:ae(()=>t()!==null),busy:n.asReadonly(),ask(r){r!=null&&t.set(r)},cancel(){n()||t.set(null)},confirm(){let r=t();r===null||n()||(n.set(!0),e.request(r).subscribe({next:()=>{n.set(!1),t.set(null),e.onDeleted(r)},error:o=>{n.set(!1),t.set(null),e.onError(le(o,e.feature,e.byStatus??{},e.fallback??"Could not delete it"))}}))}}}function hr({lookup:e,fallbackHref:t,onError:n,feature:r}){e.subscribe({next:({url:o})=>{window.open(o??t,"_blank","noopener")},error:o=>n(le(o,r,{},"Could not open the file"))})}var qa=[{id:"queued",label:"Waiting to start",detail:"Your video is in the queue.",icon:"\u23F3"},{id:"narration",label:"Recording narration",detail:"Turning the script into a voice, scene by scene.",icon:"\u{1F399}\uFE0F"},{id:"illustration",label:"Drawing scenes",detail:"Illustrating each scene to match the narration.",icon:"\u{1F3A8}"},{id:"assembly",label:"Putting it together",detail:"Joining the pictures and the voice into one video.",icon:"\u{1F3AC}"},{id:"checking",label:"Final check",detail:"Looking for cut-off faces and text in the wrong place.",icon:"\u{1F50D}"}];function Ei(e,t){return e.filter(n=>t.test(n.message)).length}function _y(e,t){let n=e?.log??[],o=n.map(Fe=>Fe.message).join(`
11
+ `),i=e?.progress,s=Number.isFinite(i)?Math.max(0,Math.min(100,i)):0,a=e?.status==="done",c=e?.status==="failed",l=a?100:c?s:Math.min(s,99),f=e?.status==="failed",g=e?.status==="done",y=[],m=Ei(n,/narration FAILED/),_=Ei(n,/image FAILED|visual FAILED|NOT FOUND/),w=Ei(n,/restyle failed/);m&&y.push(`${m} scene${m>1?"s":""} has no narration`),_&&y.push(`${_} scene${_>1?"s":""} has a plain background instead of a picture`),w&&y.push(`${w} of your images could not be redrawn, so they appear as you uploaded them`);let O=Fe=>qa.find(Nt=>Nt.id===Fe)??qa[0];if(f)return{stage:{id:"failed",label:"Could not finish",detail:"",icon:"\u2717"},percent:l,counter:"",headline:e?.error||"Something went wrong while making the video.",warnings:y,etaSeconds:null,done:!1,failed:!0};if(g)return{stage:{id:"done",label:"Ready",detail:"",icon:"\u2713"},percent:100,counter:"",headline:"Your video is ready to watch.",warnings:y,etaSeconds:null,done:!0,failed:!1};let P=Fe=>t?Math.min(Fe,t):Fe,ce=P(Ei(n,/narration ✓/)),Qe=P(Ei(n,/image ✓|visual ✓|= your image|= your uploaded image|= slide page/));if(/^QC:/m.test(o))return{stage:O("checking"),percent:l,counter:"",headline:"Almost there \u2014 checking the finished video.",warnings:y,etaSeconds:uo(n,l),done:!1,failed:!1};if(/Rendering (video|edited video)/.test(o))return{stage:O("assembly"),percent:l,counter:"",headline:"Joining everything into one video. This is the longest step.",warnings:y,etaSeconds:uo(n,l),done:!1,failed:!1};let tt=/Voiceover:/.test(o),Ke=/Edit plan:/.test(o),nt=/Illustrations:|Visuals:/.test(o);if(Ke)return{stage:O("illustration"),percent:l,counter:"",headline:"Applying your edits to the video.",warnings:y,etaSeconds:uo(n,l),done:!1,failed:!1};if(tt&&ce<t)return{stage:O("narration"),percent:l,counter:t?`${ce} of ${t} scenes`:"",headline:nt?"Recording the narration and drawing the scenes.":"Recording the narration.",warnings:y,etaSeconds:uo(n,l),done:!1,failed:!1};if(nt){let Fe=/Visuals: using/.test(o);return{stage:O("illustration"),percent:l,counter:t?`${Qe} of ${t} scenes`:"",headline:Fe?"Preparing your slides as the video's pictures.":"Drawing the pictures for each scene.",warnings:y,etaSeconds:uo(n,l),done:!1,failed:!1}}if(tt)return{stage:O("narration"),percent:l,counter:t?`${ce} of ${t} scenes`:"",headline:"Recording the narration.",warnings:y,etaSeconds:uo(n,l),done:!1,failed:!1};let zt=e?.queuePosition??0;return{stage:O("queued"),percent:l,counter:"",headline:zt>0?`Waiting for ${zt} video${zt>1?"s":""} ahead of yours to finish.`:"Starting \u2014 this takes a few minutes.",warnings:y,etaSeconds:null,done:!1,failed:!1}}function uo(e,t){if(t<5||e.length<2)return null;let n=new Date(e[0].t).getTime(),o=(Date.now()-n)/1e3;if(!Number.isFinite(o)||o<=0)return null;let i=o/(t/100);return Math.max(5,Math.round(i-o))}function Cy(e){if(e===null)return"";if(e<45)return"less than a minute left";let t=Math.round(e/60);if(t<60)return`about ${t} minute${t>1?"s":""} left`;let n=Math.round(t/60);return`about ${n} hour${n>1?"s":""} left`}var $t=()=>({standalone:!0}),pt=(e,t)=>t.id;function Ow(e,t){if(e&1&&(d(0,"div",3),p(1),u()),e&2){let n=v();h(),b(n.error())}}function kw(e,t){e&1&&p(0," \xB7 MP4, MOV, WEBM ")}function Rw(e,t){if(e&1){let n=W();d(0,"label",9)(1,"input",25),A("change",function(o){I(n);let i=v();return M(i.onFile(o))}),u(),d(2,"span",26),p(3),u(),d(4,"span",27),p(5,"PDF, DOCX, TXT, MD, SRT"),D(6,kw,1,0),u()()}if(e&2){let n=v();h(),S("accept",n.acceptedFiles()),h(2),b(n.uploading()?"Reading\u2026":"Choose a file"),h(3),E(n.editMode()==="on"?6:-1)}}function Pw(e,t){e&1&&p(0," \xB7 transcribed ")}function Fw(e,t){if(e&1&&(d(0,"p",31),p(1),u()),e&2){let n=v();h(),R(" \u26A0 ",n.transcriptionError||"The narration could not be transcribed."," You can still edit from the scene images, but the plan will be working from pictures alone \u2014 say what you want in the instruction below. ")}}function Lw(e,t){if(e&1){let n=W();d(0,"div",10)(1,"div")(2,"div",28),p(3),u(),d(4,"div",29),p(5),ut(6,"number"),D(7,Pw,1,0),u()(),d(8,"button",30),A("click",function(){I(n);let o=v(2);return M(o.reset())}),p(9,"Replace"),u()(),D(10,Fw,2,1,"p",31),d(11,"p",32),p(12,"Editing an existing video \u2014 describe the changes below."),u()}if(e&2){let n=t;h(3),R("\u{1F3AC} ",n.filename),h(2),St(" ",lr(6,5,n.durationSec,"1.0-0"),"s \xB7 ",n.segments.length," segments"),h(2),E(n.transcribed?7:-1),h(3),E(n.transcribed?-1:10)}}function Vw(e,t){if(e&1&&D(0,Lw,13,8),e&2){let n,r=v();E((n=r.sourceVideo())?0:-1,n)}}function jw(e,t){if(e&1&&p(0),e&2){let n=v(2);R(" \xB7 ",n.doc().pages," slide pages ")}}function Bw(e,t){if(e&1){let n=W();d(0,"div",10)(1,"div")(2,"div",28),p(3),u(),d(4,"div",29),p(5),ut(6,"number"),D(7,jw,1,1),u()(),d(8,"button",30),A("click",function(){I(n);let o=v();return M(o.reset())}),p(9,"Replace"),u()()}if(e&2){let n=v();h(3),b(n.doc().filename),h(2),R(" ",cr(6,3,n.doc().chars)," characters"),h(2),E(n.hasSlides()?7:-1)}}function Hw(e,t){e&1&&(d(0,"p",11),p(1,"Pick a visual style \u2014 the AI builds the whole video in that look. Everything else is optional."),u())}function Uw(e,t){if(e&1){let n=W();d(0,"button",33),A("click",function(){let o=I(n).$implicit,i=v();return M(i.videoType=o.id)}),d(1,"b"),p(2),u(),d(3,"span"),p(4),u()()}if(e&2){let n=t.$implicit,r=v();ge("sel",r.videoType===n.id),S("disabled",!r.doc()),h(2),St("",n.icon," ",n.name),h(2),b(n.desc)}}function $w(e,t){if(e&1){let n=W();d(0,"label",34),p(1,"Describe the edits"),u(),d(2,"textarea",35),te("ngModelChange",function(o){I(n);let i=v();return ne(i.brief,o)||(i.brief=o),M(o)}),u(),z()}if(e&2){let n=v();h(2),ee("ngModel",n.brief),G()}}function zw(e,t){if(e&1){let n=W();d(0,"label",34),p(1,"Creative brief (optional) \u2014 how it should look & feel"),u(),d(2,"textarea",36),te("ngModelChange",function(o){I(n);let i=v();return ne(i.brief,o)||(i.brief=o),M(o)}),u(),z()}if(e&2){let n=v();h(2),ee("ngModel",n.brief),S("disabled",!n.doc()),G()}}function Gw(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),b(n.label)}}function Ww(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit,r=v();S("value",n.id),h(),b(r.voiceLabel(n))}}function qw(e,t){if(e&1){let n=W();d(0,"label",39)(1,"input",58),te("ngModelChange",function(o){I(n);let i=v(2);return ne(i.useSourceSlides,o)||(i.useSourceSlides=o),M(o)}),u(),z(),d(2,"span"),p(3,"\u{1F4C4} Use my uploaded slides as the visuals \u2014 "),d(4,"b"),p(5,"no new images will be generated"),u()()()}if(e&2){let n=v(2);h(),ee("ngModel",n.useSourceSlides),S("disabled",!n.doc()),G()}}function Zw(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),b(n.label)}}function Yw(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),b(n.label)}}function Qw(e,t){if(e&1&&(d(0,"div",52),p(1),u()),e&2){let n=v(2);h(),b(n.refName())}}function Kw(e,t){if(e&1){let n=W();d(0,"div",57)(1,"span",59),p(2),u(),d(3,"input",60),te("ngModelChange",function(o){let i=I(n).$implicit;return ne(i.note,o)||(i.note=o),M(o)}),u(),z(),d(4,"button",61),A("click",function(){let o=I(n).$implicit,i=v(2);return M(i.removeImage(o.id))}),p(5,"\xD7"),u()()}if(e&2){let n=t.$implicit;h(2),b(n.name),h(),ee("ngModel",n.note),S("ngModelOptions",ze(3,$t)),G()}}function Jw(e,t){if(e&1){let n=W();d(0,"div",22)(1,"div",37),p(2,"Optional \u2014 refine the look or add references"),u(),d(3,"div",38),D(4,qw,6,2,"label",39),d(5,"div",14)(6,"div")(7,"label",40),p(8,"Aspect ratio"),u(),d(9,"select",41),te("ngModelChange",function(o){I(n);let i=v();return ne(i.aspectRatio,o)||(i.aspectRatio=o),M(o)}),J(10,Zw,2,2,"option",18,pt),u(),z(),u(),d(12,"div")(13,"label",42),p(14,"Depth"),u(),d(15,"select",43),te("ngModelChange",function(o){I(n);let i=v();return ne(i.depth,o)||(i.depth=o),M(o)}),J(16,Yw,2,2,"option",18,pt),u(),z(),u()(),d(18,"div",44)(19,"div")(20,"span",45),p(21,"\u{1F39E}\uFE0F Reference video \u2014 the AI copies its look, pacing & style"),u(),d(22,"label",46),Ao(),d(23,"svg",47),$e(24,"path",48)(25,"path",49)(26,"path",50),u(),Oo(),d(27,"span"),p(28,"Choose a video"),u(),d(29,"input",51),A("change",function(o){I(n);let i=v();return M(i.onRefVideo(o))}),u()(),D(30,Qw,2,1,"div",52),u(),d(31,"div")(32,"span",45),p(33,"\u{1F5BC}\uFE0F Images/diagrams to include (multiple)"),u(),d(34,"label",46),Ao(),d(35,"svg",47),$e(36,"rect",53)(37,"circle",54)(38,"path",55),u(),Oo(),d(39,"span"),p(40,"Choose images"),u(),d(41,"input",56),A("change",function(o){I(n);let i=v();return M(i.onUserImages(o))}),u()(),J(42,Kw,6,4,"div",57,pt),u()()()()}if(e&2){let n=v();h(4),E(n.hasSlides()?4:-1),h(5),ee("ngModel",n.aspectRatio),S("disabled",!n.doc()),G(),h(),X(n.aspects),h(5),ee("ngModel",n.depth),S("disabled",!n.doc()),G(),h(),X(n.depths),h(6),ge("disabled",!n.doc()),h(7),S("disabled",!n.doc()),h(),E(n.refName()?30:-1),h(4),ge("disabled",!n.doc()),h(7),S("disabled",!n.doc()),h(),X(n.userImages())}}function Xw(e,t){if(e&1&&(d(0,"span",66),p(1),u()),e&2){let n=v();h(),R("",n.costEstimate.kept," kept")}}function ex(e,t){if(e&1&&(d(0,"span",66),p(1),u()),e&2){let n=v();h(),R("",n.costEstimate.cuts," cut")}}function tx(e,t){if(e&1&&(d(0,"p",67)(1,"i"),p(2),u()()),e&2){let n=v();h(2),b(n.plan.notes)}}function nx(e,t){e&1&&$e(0,"img",79),e&2&&S("src",t,na)}function rx(e,t){if(e&1&&p(0),e&2){let n=v().$implicit;ar(" \xB7 source ",n.srcId," (",n.startSec,"s\u2013",n.endSec,"s) ")}}function ox(e,t){e&1&&p(0," \xB7 new ")}function ix(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),b(n.label)}}function sx(e,t){if(e&1){let n=W();d(0,"span",82),p(1,"Narration"),u(),d(2,"textarea",83),te("ngModelChange",function(o){I(n);let i=v().$implicit;return ne(i.narration,o)||(i.narration=o),M(o)}),u(),z()}if(e&2){let n=v().$implicit;h(2),ee("ngModel",n.narration),S("ngModelOptions",ze(2,$t)),G()}}function ax(e,t){if(e&1){let n=W();d(0,"span",82),p(1,"Visual / image prompt"),u(),d(2,"textarea",84),te("ngModelChange",function(o){I(n);let i=v().$implicit;return ne(i.imagePrompt,o)||(i.imagePrompt=o),M(o)}),u(),z()}if(e&2){let n=v().$implicit;h(2),ee("ngModel",n.imagePrompt),S("ngModelOptions",ze(2,$t)),G()}}function cx(e,t){e&1&&(d(0,"p",81),p(1,"Kept exactly as it is \u2014 no cost."),u())}function lx(e,t){if(e&1){let n=W();d(0,"div",76)(1,"div",77)(2,"span",78),D(3,nx,1,1,"img",79),p(4),D(5,rx,1,3)(6,ox,1,0),u(),d(7,"select",80),te("ngModelChange",function(o){let i=I(n).$implicit;return ne(i.action,o)||(i.action=o),M(o)}),J(8,ix,2,2,"option",18,pt),u(),z(),u(),D(10,sx,3,3),D(11,ax,3,3),D(12,cx,2,0,"p",81),u()}if(e&2){let n,r=t.$implicit,o=t.$index,i=v(2);ge("cut",r.action==="cut"),h(3),E((n=i.keyframe(r))?3:-1,n),h(),R(" Segment ",o+1),h(),E(r.srcId?5:6),h(2),ee("ngModel",r.action),S("ngModelOptions",ze(10,$t)),G(),h(),X(i.actionsFor(r)),h(2),E(r.action!=="keep"&&r.action!=="cut"?10:-1),h(),E(r.action==="replace"||r.action==="new"?11:-1),h(),E(r.action==="keep"?12:-1)}}function ux(e,t){if(e&1){let n=W();d(0,"section",5)(1,"div",6)(2,"span",7),p(3,"3"),u(),d(4,"h2",8),p(5,"Review the edits"),u(),d(6,"span",62),p(7,"\u2014 change any action, then produce"),u()(),d(8,"div",63)(9,"div")(10,"div",64),p(11),u(),d(12,"div",65)(13,"span",66),p(14),u(),D(15,Xw,2,1,"span",66),D(16,ex,2,1,"span",66),u(),D(17,tx,3,1,"p",67),u(),d(18,"div",68)(19,"div",69),p(20),u(),d(21,"div",70),p(22,"estimated"),u(),d(23,"div",71),p(24),ut(25,"number"),u()()(),J(26,lx,13,11,"div",72,ir),d(28,"div",73)(29,"button",74),A("click",function(){I(n);let o=v();return M(o.produceEdits())}),p(30),u(),d(31,"button",75),A("click",function(){I(n);let o=v();return M(o.makePlan())}),p(32,"\u21BB Re-plan the edits"),u()()()}if(e&2){let n=t,r=v();h(11),b(n.plan.title),h(3),R("",n.plan.segments.length," segments"),h(),E(n.costEstimate.kept?15:-1),h(),E(n.costEstimate.cuts?16:-1),h(),E(n.plan.notes?17:-1),h(3),R("$",n.costEstimate.totalUsd),h(4),St(" ",n.costEstimate.images," images \xB7 ",cr(25,11,n.costEstimate.ttsChars)," VO chars "),h(2),X(n.plan.segments),h(3),S("disabled",r.producing()),h(),R(" ",r.producing()?"Producing\u2026":r.hasVideo()?"\u2713 Regenerate video":"\u2713 Confirm & produce video"," "),h(),S("disabled",r.planning()||r.producing())}}function dx(e,t){if(e&1&&(d(0,"span"),p(1),u()),e&2){let n=v();h(),St("\u{1F399}\uFE0F ",n.plan.voice.gender,", ",n.plan.voice.feel," voice")}}function fx(e,t){e&1&&(d(0,"span"),p(1,"\u{1F39E}\uFE0F styled after your reference video"),u())}function px(e,t){e&1&&(d(0,"span"),p(1,"\u{1F4C4} using your slides"),u())}function hx(e,t){if(e&1&&(d(0,"p",67)(1,"i"),p(2),u()()),e&2){let n=v();h(2),b(n.plan.voice.rationale)}}function gx(e,t){if(e&1&&p(0),e&2){let n=v();R(" + ",n.costEstimate.restyles," restyled ")}}function mx(e,t){if(e&1&&p(0),e&2){let n=v();R(" + ",n.costEstimate.userImages-(n.costEstimate.restyles||0)," of yours ($0) ")}}function yx(e,t){if(e&1&&p(0),e&2){let n=v();R(" + ",n.costEstimate.sourcePages," slides ($0) ")}}function vx(e,t){if(e&1&&(d(0,"span",100),p(1,"Visual"),u(),d(2,"div",81),p(3),u()),e&2){let n=v().$implicit;h(3),R("\u{1F4C4} Your slide, page ",n.visual.sourcePage," (used as-is, $0)")}}function _x(e,t){if(e&1){let n=W();d(0,"span",100),p(1,"Visual \u2014 your uploaded image"),u(),d(2,"div",101)(3,"b",102),p(4),u(),d(5,"select",103),te("ngModelChange",function(o){I(n);let i=v().$implicit;return ne(i.visual.treatment,o)||(i.visual.treatment=o),M(o)}),d(6,"option",104),p(7,"Use as-is (exact, $0 \u2014 full image shown, never cropped)"),u(),d(8,"option",105),p(9,"Redraw in video style via Gemini (~$0.04 \u2014 blends in; labels may shift, QC checks it)"),u()(),z(),d(10,"button",106),A("click",function(){I(n);let o=v().$implicit,i=v(2);return M(i.detachImage(o))}),p(11,"\u2715 detach"),u()()}if(e&2){let n=v().$implicit,r=v(2);h(4),b(r.imageName(n.visual.userImageId)),h(),ee("ngModel",n.visual.treatment),S("ngModelOptions",ze(3,$t)),G()}}function Cx(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),b(n.name)}}function bx(e,t){if(e&1){let n=W();d(0,"select",109),A("ngModelChange",function(o){I(n);let i=v(2).$implicit,s=v(2);return M(s.attachImage(i,o))}),d(1,"option",21),p(2,"\u2026or use one of your uploaded images here"),u(),J(3,Cx,2,2,"option",18,pt),u(),z()}if(e&2){let n=v(4);S("ngModel","")("ngModelOptions",ze(2,$t)),G(),h(3),X(n.userImages())}}function Dx(e,t){if(e&1){let n=W();d(0,"span",82),p(1,"Visual / image prompt"),u(),d(2,"textarea",107),te("ngModelChange",function(o){I(n);let i=v().$implicit;return ne(i.visual.imagePrompt,o)||(i.visual.imagePrompt=o),M(o)}),u(),z(),D(3,bx,5,3,"select",108)}if(e&2){let n=v().$implicit,r=v(2);h(2),ee("ngModel",n.visual.imagePrompt),S("ngModelOptions",ze(3,$t)),G(),h(),E(r.userImages().length?3:-1)}}function Ex(e,t){if(e&1){let n=W();d(0,"div",76)(1,"div",77)(2,"span"),p(3),u(),d(4,"span",66),p(5),u()(),d(6,"span",82),p(7,"Narration"),u(),d(8,"textarea",97),te("ngModelChange",function(o){let i=I(n).$implicit;return ne(i.narration,o)||(i.narration=o),M(o)}),u(),z(),d(9,"span",82),p(10,"Key points on screen \u2014 one per line"),u(),d(11,"textarea",98),A("ngModelChange",function(o){let i=I(n).$implicit,s=v(2);return M(s.setKeyPoints(i,o))}),u(),z(),d(12,"span",82),p(13,"Title overlay (optional)"),u(),d(14,"input",99),te("ngModelChange",function(o){let i=I(n).$implicit;return ne(i.titleOverlay,o)||(i.titleOverlay=o),M(o)}),u(),z(),D(15,vx,4,1)(16,_x,12,4)(17,Dx,4,4),u()}if(e&2){let n=t.$implicit,r=t.$index,o=v(2);h(3),St("Scene ",r+1," \xB7 ",n.purpose),h(2),R("~",n.durationHintSec,"s"),h(3),ee("ngModel",n.narration),S("ngModelOptions",ze(10,$t)),G(),h(3),S("ngModel",o.keyPointsText(n))("ngModelOptions",ze(11,$t)),G(),h(3),ee("ngModel",n.titleOverlay),S("ngModelOptions",ze(12,$t)),G(),h(),E(n.visual.sourcePage?15:n.visual.userImageId?16:17)}}function wx(e,t){e&1&&(d(0,"p",88),p(1,"Enter a content name to produce the video."),u())}function xx(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit,r=v(2);S("value",n.id),h(),b(r.voiceLabel(n))}}function Sx(e,t){if(e&1){let n=W();d(0,"section",5)(1,"div",6)(2,"span",7),p(3,"3"),u(),d(4,"h2",8),p(5,"Review the scene plan"),u(),d(6,"span",62),p(7,"\u2014 check it, then produce"),u()(),d(8,"div",63)(9,"div")(10,"div",64),p(11),u(),d(12,"div",65)(13,"span",66),p(14),u(),d(15,"span",66),p(16),u(),d(17,"span",66),p(18),u(),d(19,"span",66),p(20),u(),D(21,dx,2,2,"span"),D(22,fx,2,0,"span"),D(23,px,2,0,"span"),u(),D(24,hx,3,1,"p",67),u(),d(25,"div",68)(26,"div",69),p(27),u(),d(28,"div",70),p(29,"estimated"),u(),d(30,"div",71),p(31),D(32,gx,1,1),D(33,mx,1,1),D(34,yx,1,1),p(35),ut(36,"number"),u()()(),J(37,Ex,18,13,"div",76,pt),d(39,"label",85),p(40,"Content name "),d(41,"span",86),p(42,"*"),u(),p(43," \u2014 names the finished video (edit if needed)"),u(),d(44,"input",87),A("ngModelChange",function(o){I(n);let i=v();return M(i.contentName.set(o))}),u(),z(),D(45,wx,2,0,"p",88),d(46,"div",73)(47,"button",74),A("click",function(){I(n);let o=v();return M(o.produce())}),p(48),u(),d(49,"button",75),A("click",function(){I(n);let o=v();return M(o.makePlan())}),p(50,"\u21BB Regenerate plan"),u()(),d(51,"div",89)(52,"label",90),p(53,"Not happy with something? Describe the change \u2014 the plan will be revised and only affected scenes regenerated (cached scenes are free)"),u(),d(54,"textarea",91),A("ngModelChange",function(o){I(n);let i=v();return M(i.feedback.set(o))}),u(),z(),d(55,"div",92)(56,"div",93)(57,"label",94),p(58,"Change voice (optional)"),u(),d(59,"select",95),te("ngModelChange",function(o){I(n);let i=v();return ne(i.fbVoice,o)||(i.fbVoice=o),M(o)}),d(60,"option",21),p(61,"Keep current voice"),u(),J(62,xx,2,2,"option",18,pt),u(),z(),u(),d(64,"button",75),A("click",function(){I(n);let o=v();return M(o.revise())}),p(65),u()()(),d(66,"p",96),p(67," Production is not triggered from this screen yet, so nothing is billed for rendering. Voiceover and images are generated when you produce the video. "),u()()}if(e&2){let n=t,r=v();h(11),b(n.plan.title),h(3),R("",n.plan.scenes.length," scenes"),h(2),R("~",n.plan.estimatedDurationSec,"s"),h(2),b(n.plan.videoType),h(2),b(n.plan.aspectRatio||r.aspectRatio),h(),E(n.plan.voice?.gender?21:-1),h(),E(r.styleGuide()?22:-1),h(),E(n.plan.usesSourceSlides?23:-1),h(),E(n.plan.voice?.rationale?24:-1),h(3),R("$",n.costEstimate.totalUsd),h(4),R(" ",n.costEstimate.images," new images"),h(),E(n.costEstimate.restyles?32:-1),h(),E(n.costEstimate.userImages?33:-1),h(),E(n.costEstimate.sourcePages?34:-1),h(),R(" \xB7 ",cr(36,26,n.costEstimate.ttsChars)," VO chars "),h(2),X(n.plan.scenes),h(7),ge("invalid",!r.contentName().trim()),S("ngModel",r.contentName()),G(),h(),E(r.contentName().trim()?-1:45),h(2),S("disabled",r.producing()||!r.contentName().trim()),h(),R(" ",r.producing()?"Producing\u2026":r.hasVideo()?"\u2713 Regenerate video":"\u2713 Confirm & produce video"," "),h(),S("disabled",r.planning()||r.producing()),h(5),S("ngModel",r.feedback()),G(),h(5),ee("ngModel",r.fbVoice),G(),h(3),X(r.voices()),h(2),S("disabled",!r.feedback().trim()||r.revising()),h(),R(" ",r.revising()?"Revising\u2026":"\u21BB Regenerate plan with this feedback"," ")}}function Ix(e,t){if(e&1&&(d(0,"span"),p(1),u()),e&2){let n=v();h(),b(n.counter)}}function Mx(e,t){if(e&1&&(d(0,"span"),p(1),u()),e&2){let n=v(3);h(),b(n.eta())}}function Tx(e,t){e&1&&(d(0,"span",117),p(1,"You can leave this page \u2014 it keeps going."),u())}function Nx(e,t){if(e&1&&(d(0,"span",127),p(1),u()),e&2){let n=v().$implicit;h(),b(n.detail)}}function Ax(e,t){if(e&1&&(d(0,"li")(1,"span",124),p(2),u(),d(3,"div",125)(4,"span",126),p(5),u(),D(6,Nx,2,1,"span",127),u()()),e&2){let n=t.$implicit,r=t.$index,o=t.$count,i=v(4);Zr("prod-step-"+i.stageState(r)),ge("is-last",r===o-1),h(2),R(" ",i.stageState(r)==="done"?"\u2713":i.stageState(r)==="active"?n.icon:r+1," "),h(3),b(n.label),h(),E(i.stageState(r)==="active"?6:-1)}}function Ox(e,t){if(e&1&&(d(0,"ol",118),J(1,Ax,7,7,"li",123,pt),u()),e&2){let n=v(3);h(),X(n.stages)}}function kx(e,t){if(e&1&&(d(0,"div"),p(1),u()),e&2){let n=t.$implicit;h(),R("\u26A0 ",n)}}function Rx(e,t){if(e&1&&(d(0,"div",119),J(1,kx,2,1,"div",null,Xo),d(3,"span",117),p(4,"The video will still be made."),u()()),e&2){let n=v();h(),X(n.warnings)}}function Px(e,t){if(e&1&&(d(0,"div",120),p(1),u()),e&2){let n=v();h(),b(n.headline)}}function Fx(e,t){if(e&1&&(d(0,"pre",122),p(1),u()),e&2){let n=v(3);h(),b(n.job()?n.logText(n.job()):"Starting\u2026")}}function Lx(e,t){if(e&1){let n=W();d(0,"div",110)(1,"span",111),p(2),u(),d(3,"div",112)(4,"strong"),p(5),u(),d(6,"span",113),p(7),u()(),d(8,"span",114),p(9),u()(),d(10,"div",115),$e(11,"i"),u(),d(12,"div",116),D(13,Ix,2,1,"span"),D(14,Mx,2,1,"span"),D(15,Tx,2,0,"span",117),u(),D(16,Ox,3,0,"ol",118),D(17,Rx,5,0,"div",119),D(18,Px,2,1,"div",120),d(19,"button",121),A("click",function(){I(n);let o=v(2);return M(o.showLog.set(!o.showLog()))}),p(20),u(),D(21,Fx,2,1,"pre",122)}if(e&2){let n=t,r=v(2);ge("is-failed",n.failed)("is-done",n.done),h(),ge("spin",!n.done&&!n.failed),h(),b(n.stage.icon),h(3),b(n.stage.label),h(2),b(n.headline),h(2),R("",n.percent,"%"),h(),ge("is-working",!n.done&&!n.failed),xt("aria-valuenow",n.percent),h(),sr("width",n.percent,"%"),h(2),E(n.counter?13:-1),h(),E(r.eta()?14:-1),h(),E(!n.done&&!n.failed?15:-1),h(),E(n.failed?-1:16),h(),E(n.warnings.length?17:-1),h(),E(n.failed?18:-1),h(2),R(" ",r.showLog()?"Hide":"Show"," technical log "),h(),E(r.showLog()?21:-1)}}function Vx(e,t){if(e&1&&(d(0,"section",5)(1,"div",6)(2,"span",7),p(3,"4"),u(),d(4,"h2",8),p(5,"Production"),u()(),D(6,Lx,22,23),u()),e&2){let n,r=v();h(6),E((n=r.progress())?6:-1,n)}}function jx(e,t){if(e&1&&p(0),e&2){let n=v(3);R(" (auto-fixed: ",n.autoFixed.join(", "),") ")}}function Bx(e,t){if(e&1&&(d(0,"p",131),p(1," \u2705 "),d(2,"b"),p(3,"Visual QC passed"),u(),p(4," \u2014 framing, cropping and text placement checked on every scene"),D(5,jx,1,1),u()),e&2){let n=v(2);h(5),E(n.autoFixed?.length?5:-1)}}function Hx(e,t){if(e&1&&p(0),e&2){let n=t.$implicit;ar(" ",n.type," (",n.severity,") \u2014 ",n.note,"; ")}}function Ux(e,t){if(e&1&&(d(0,"li")(1,"b"),p(2),u(),p(3,": "),J(4,Hx,1,3,null,null,ir),u()),e&2){let n=t.$implicit;h(2),b(n.id),h(2),X(n.issues)}}function $x(e,t){if(e&1&&(d(0,"div",132)(1,"p"),p(2,"\u26A0\uFE0F "),d(3,"b"),p(4,"Visual QC found issues"),u(),p(5," \u2014 use the feedback box above to fix them:"),u(),d(6,"ul"),J(7,Ux,6,1,"li",null,pt),u()()),e&2){let n=v(4);h(7),X(n.qcIssues())}}function zx(e,t){if(e&1&&D(0,Bx,6,1,"p",131)(1,$x,9,0,"div",132),e&2){let n=v();E(n.pass?0:1)}}function Gx(e,t){e&1&&D(0,zx,2,1),e&2&&E(t.skipped?-1:0)}function Wx(e,t){if(e&1){let n=W();d(0,"section",5)(1,"div",6)(2,"span",7),p(3,"5"),u(),d(4,"h2",8),p(5,"Your video"),u()(),D(6,Gx,1,1),$e(7,"video",128),d(8,"div",73)(9,"button",129),A("click",function(){I(n);let o=v();return M(o.download())}),p(10,"\u2B07 Download MP4"),u(),d(11,"button",130),A("click",function(){I(n);let o=v();return M(o.deleteVideo.ask(o.job()))}),p(12," \u{1F5D1} Delete video "),u()(),d(13,"p",96),p(14," Two ways to refine: edit the scene plan above (change narration, key points, image prompts \u2014 only edited scenes regenerate), or describe the change in the feedback box and let the director revise the plan for you. "),u()()}if(e&2){let n,r=v();h(6),E((n=r.job()?.qc)?6:-1,n),h(),S("src",r.playbackSrc(),na),h(4),S("disabled",r.deleteVideo.busy())}}var Za=class e{api=C(Ut);destroyRef=C(ue);get untilGone(){return t=>t.pipe(to(this.destroyRef))}doc=F(null);editMode=dt("off");defaultLanguage=dt(void 0);defaultAspectRatio=dt(void 0);defaultDepth=dt(void 0);defaultVoice=dt(void 0);planReady=En();videoStarted=En();videoReady=En();sourceVideo=F(null);editPlan=F(null);uploading=F(!1);planning=F(!1);revising=F(!1);result=F(null);error=F("");voices=F([]);styleGuide=F("");refName=F("");userImages=F([]);videoType="watercolor";contentName=F("");brief="";useSourceSlides=!1;language="hi";aspectRatio="16:9";depth="standard";voicePref="";producing=F(!1);job=F(null);pollTimer=null;seeded=!1;feedback=F("");fbVoice="";videoTypes=[{id:"slides",icon:"\u{1F4CA}",name:"Slides + voiceover",desc:"Clean slides with animated key-point text, infographics and illustrations, synced to narration."},{id:"watercolor",icon:"\u{1F3A8}",name:"Watercolor illustrations",desc:"Full-screen watercolor scenes (Indian rural healthcare setting) with key points appearing over them."},{id:"roleplay",icon:"\u{1F5E3}\uFE0F",name:"Animated roleplay",desc:"2D cel-animation dialogue between characters (e.g. ANM & beneficiary), lip-synced, contrast-pair format."},{id:"translation",icon:"\u{1F310}",name:"Translate existing video",desc:"Re-voice an existing video in another language; optionally translate on-screen text too."}];languages=[{id:"hi",label:"Hindi"},{id:"en",label:"English"},{id:"kn",label:"Kannada"},{id:"te",label:"Telugu"}];aspects=[{id:"16:9",label:"16:9 (landscape)"},{id:"9:16",label:"9:16 (vertical)"}];depths=[{id:"brief",label:"Brief \u2014 tight summary (45\u201390s)"},{id:"standard",label:"Standard \u2014 faithful coverage"},{id:"indepth",label:"In-depth \u2014 more slides, fuller explanations"}];hasSlides=ae(()=>(this.doc()?.pages??0)>0);isEditMode=ae(()=>this.sourceVideo()!==null);hasSource=ae(()=>this.doc()!==null||this.sourceVideo()!==null);editActions=[{id:"keep",label:"\u2714 Keep as-is"},{id:"revoice",label:"\u{1F399}\uFE0F Re-voice (new narration)"},{id:"replace",label:"\u{1F5BC}\uFE0F Replace visual + narration"},{id:"new",label:"\u2795 New scene"},{id:"cut",label:"\u2702\uFE0F Cut (remove)"}];constructor(){_t(()=>{let t=this.defaultLanguage(),n=this.defaultAspectRatio(),r=this.defaultDepth(),o=this.defaultVoice();this.seeded||(t&&(this.language=t),n&&(this.aspectRatio=n),r&&(this.depth=r),o&&(this.voicePref=o),(t||n||r||o)&&(this.seeded=!0))}),this.api.voices().pipe(this.untilGone).subscribe({next:t=>this.voices.set(t),error:t=>{le(t,"content-studio")}})}voiceLabel(t){let n=t.lang==="en"?"Indian English":"Hindi";return`${t.name} \u2014 ${t.gender}, ${t.feel} (${n}${t.provider==="sarvam"?" \xB7 Sarvam":""})`}onFile(t){let n=t.target.files?.[0];n&&(this.error.set(""),this.uploading.set(!0),this.api.uploadDoc(n).pipe(this.untilGone).subscribe({next:r=>{md(r)&&this.editMode()==="off"?(this.sourceVideo.set(null),this.doc.set(null),this.error.set("Editing an existing video is not available here. Upload a document \u2014 PDF, DOCX, TXT, MD or SRT \u2014 to make a new video instead.")):md(r)?(this.sourceVideo.set(r),this.doc.set(null)):(this.doc.set(r),this.sourceVideo.set(null)),this.uploading.set(!1)},error:r=>{this.error.set(le(r,"content-studio")),this.uploading.set(!1)}}))}onRefVideo(t){let n=t.target.files?.[0];n&&(this.refName.set(`Analysing ${n.name}\u2026`),this.api.uploadReference(n).pipe(this.untilGone).subscribe({next:r=>{this.styleGuide.set(r.styleGuide),this.refName.set(`${n.name} \u2014 style captured`)},error:r=>this.refName.set(le(r,"content-studio"))}))}onUserImages(t){let n=Array.from(t.target.files??[]);for(let r of n)this.api.uploadImage(r).pipe(this.untilGone).subscribe({next:o=>this.userImages.update(i=>[...i,{id:o.id,name:o.name||r.name,note:""}]),error:o=>this.error.set(le(o,"content-studio"))})}removeImage(t){this.userImages.update(n=>n.filter(r=>r.id!==t))}DEFAULT_BRIEF="faithful, warm instructional video";makePlan(){if(this.isEditMode())return this.makeEditPlan();let t=this.doc();t&&(this.error.set(""),this.planning.set(!0),this.result.set(null),this.api.plan({docText:t.text,userPrompt:this.brief.trim()||this.DEFAULT_BRIEF,videoType:this.videoType,language:this.language,filename:t.filename,depth:this.depth,aspectRatio:this.aspectRatio,voicePref:this.voicePref||void 0,pages:t.pages,sourceId:t.sourceId,useSourceSlides:this.useSourceSlides,userImages:this.userImages(),styleGuide:this.styleGuide()||void 0}).pipe(this.untilGone).subscribe({next:n=>{this.result.set(n),this.contentName.set(this.contentName().trim()||n.plan?.title||""),this.planning.set(!1),this.planReady.emit({jobId:n.jobId,title:n.plan?.title??"",sceneCount:n.plan?.scenes?.length??0,estimatedUsd:n.costEstimate?.totalUsd??null})},error:n=>{this.error.set(le(n,"content-studio")),this.planning.set(!1)}}))}makeEditPlan(){let t=this.sourceVideo();!t||!this.brief.trim()||(this.error.set(""),this.planning.set(!0),this.editPlan.set(null),this.api.planEdits({videoType:"videoedit",userPrompt:this.brief,language:this.language,filename:t.filename,voicePref:this.voicePref||void 0,videoMeta:{sourceId:t.sourceId,segments:t.segments}}).pipe(this.untilGone).subscribe({next:n=>{this.editPlan.set(n),this.contentName.set(this.contentName().trim()||n.plan?.title||""),this.planning.set(!1)},error:n=>{this.error.set(le(n,"content-studio")),this.planning.set(!1)}}))}acceptedFiles=ae(()=>this.editMode()==="on"?".pdf,.docx,.txt,.md,.srt,.mp4,.mov,.m4v,.webm":".pdf,.docx,.txt,.md,.srt");keyframe(t){return this.sourceVideo()?.segments.find(n=>n.id===t.srcId)?.keyframeUrl??null}actionsFor(t){return t.srcId?this.editActions:this.editActions.filter(n=>n.id!=="keep")}produceEdits(){let t=this.editPlan();t&&(this.error.set(""),this.producing.set(!0),this.job.set(null),this.api.generateVideo(t.jobId,{plan:t.plan,contentName:this.contentName().trim()}).pipe(this.untilGone).subscribe({next:()=>{this.videoStarted.emit({jobId:t.jobId}),this.pollFrom(t.jobId)},error:n=>{this.error.set(le(n,"content-studio")),this.producing.set(!1)}}))}revise(){let t=this.result();!t||!this.feedback().trim()||(this.error.set(""),this.revising.set(!0),this.api.reviseplan(t.jobId,{feedback:this.feedback(),voicePref:this.fbVoice||void 0}).pipe(this.untilGone).subscribe({next:n=>{this.result.set(n),this.feedback.set(""),this.revising.set(!1)},error:n=>{this.error.set(le(n,"content-studio")),this.revising.set(!1)}}))}keyPointsText(t){return(t.onScreenText||[]).join(`
12
12
  `)}setKeyPoints(t,n){t.onScreenText=n.split(`
13
- `).map(r=>r.trim()).filter(Boolean)}attachImage(t,n){n&&(t.visual=W(V({},t.visual),{userImageId:n,treatment:"asis",imagePrompt:void 0}))}detachImage(t){t.visual=W(V({},t.visual),{userImageId:void 0,treatment:void 0,imagePrompt:""})}imageName(t){return this.userImages().find(n=>n.id===t)?.name??t??""}reset(){this.doc.set(null),this.sourceVideo.set(null),this.editPlan.set(null),this.result.set(null),this.error.set(""),this.brief="",this.userImages.set([]),this.styleGuide.set(""),this.refName.set("")}produce(){let t=this.result();t&&(this.error.set(""),this.producing.set(!0),this.job.set(null),this.api.generateVideo(t.jobId,{plan:t.plan,contentName:this.contentName().trim()}).subscribe({next:()=>this.poll(),error:n=>{this.error.set(he(n)),this.producing.set(!1)}}))}poll(){let t=this.result()?.jobId??this.editPlan()?.jobId;t&&this.pollFrom(t)}pollFrom(t){let n=this.result();this.api.job(t).subscribe({next:r=>{this.job.set(r),r.status==="done"&&r.video?(this.producing.set(!1),r.plan&&n&&this.result.set(W(V({},n),{plan:r.plan}))):r.status==="failed"?this.producing.set(!1):this.pollTimer=setTimeout(()=>this.pollFrom(t),2500)},error:r=>{this.error.set(he(r)),this.producing.set(!1)}})}ngOnDestroy(){this.pollTimer&&clearTimeout(this.pollTimer)}stages=Ha;progress=ae(()=>uy(this.job(),this.job()?.plan?.scenes?.length??0));eta=ae(()=>dy(this.progress().etaSeconds));stageState(t){let n=this.progress();if(n.done)return"done";let r=this.stages.findIndex(o=>o.id===n.stage.id);return r<0?"todo":t<r?"done":t===r?"active":"todo"}showLog=L(!1);logText(t){return(t.log||[]).map(n=>`${String(n.t).slice(11,19)} ${n.message}`).join(`
14
- `)}hasVideo=ae(()=>this.job()?.status==="done"&&!!this.job()?.video);playbackSrc=ae(()=>{let t=this.job();return t?.videoUrl??t?.video??null});download(){let t=this.job();t&&lr({lookup:this.api.downloadVideoUrl(t.id),fallbackHref:this.api.downloadVideoHref(t.id),onError:n=>this.error.set(n)})}deleteVideo=no({request:t=>this.api.deleteVideo(t.id),onDeleted:()=>{this.job.set(null),this.result.set(null),this.editPlan.set(null)},onError:t=>this.error.set(t),fallback:"Could not delete the video"});qcIssues(){return(this.job()?.qc?.scenes||[]).filter(t=>t.issues?.length)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=en({type:e,selectors:[["aa-content-studio"]],inputs:{editMode:[1,"editMode"]},decls:52,vars:22,consts:[[1,"eyebrow"],[1,"page-title"],[1,"page-sub"],[1,"card","card-pad","err-box"],[1,"steps"],[1,"card","card-pad"],[1,"step-h"],[1,"step-n"],[1,"step-t"],[1,"drop"],[1,"picked"],[1,"step-sub"],[1,"types",3,"hidden"],["type","button",1,"type",3,"sel","disabled"],[1,"cols"],[1,"side"],["for","lang",1,"label"],["id","lang",1,"field",3,"ngModelChange","ngModel","disabled"],[3,"value"],["for","voice",1,"label","mt"],["id","voice",1,"field",3,"ngModelChange","ngModel","disabled"],["value",""],[1,"opt-group"],[1,"btn","mt-lg",3,"click","disabled"],["title","Delete video?","message","This removes the video and its stored files permanently. This cannot be undone.","confirmLabel","Delete video",3,"confirmed","cancelled","open","subject","busy"],["type","file","hidden","",3,"change","accept"],[1,"drop-main"],[1,"drop-sub"],[1,"picked-name"],[1,"picked-meta","mono"],[1,"btn","btn-ghost",3,"click"],[1,"mode-warn"],[1,"mode-note"],["type","button",1,"type",3,"click","disabled"],["for","brief",1,"label"],["id","brief","rows","3","placeholder",'e.g. change the title to "\u2026", re-voice segment 3 to also mention the MCP card, replace the intro visual with a watercolor scene, cut the WhatsApp part',1,"field",3,"ngModelChange","ngModel"],["id","brief","rows","3","placeholder","e.g. 90-second Hindi refresher on the 5 key counselling points; warm female voice; show the ANM at a VHND session; end with a recap slide",1,"field",3,"ngModelChange","ngModel","disabled"],[1,"opt-head"],[1,"more-body"],[1,"check"],["for","aspect",1,"label"],["id","aspect",1,"field",3,"ngModelChange","ngModel","disabled"],["for","depth",1,"label"],["id","depth",1,"field",3,"ngModelChange","ngModel","disabled"],[1,"extras"],[1,"label"],[1,"file-btn"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M12 15V3"],["d","m7 8 5-5 5 5"],["d","M4 16v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3"],["type","file","hidden","","accept","video/mp4,video/quicktime,video/webm",3,"change","disabled"],[1,"hint","ok"],["x","3","y","3","width","18","height","18","rx","2"],["cx","9","cy","9","r","1.5"],["d","m21 15-4-4L7 21"],["type","file","hidden","","multiple","","accept","image/png,image/jpeg,image/webp",3,"change","disabled"],[1,"img-row"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"img-name"],["placeholder","where should this be used?",1,"field","img-note",3,"ngModelChange","ngModel","ngModelOptions"],["type","button",1,"x",3,"click"],[1,"step-note"],[1,"plan-head"],[1,"plan-title"],[1,"meta-line"],[1,"mono"],[1,"voice-why"],[1,"cost"],[1,"cost-n","mono"],[1,"cost-l"],[1,"cost-b","mono"],[1,"scene",3,"cut"],[1,"produce-row"],[1,"btn",3,"click","disabled"],[1,"btn","btn-ghost",3,"click","disabled"],[1,"scene"],[1,"sh"],[1,"seg-head"],["alt","",1,"kf",3,"src"],[1,"field","act-sel",3,"ngModelChange","ngModel","ngModelOptions"],[1,"visual-note"],[1,"lbl"],["rows","2",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["for","contentName",1,"label"],[1,"req"],["id","contentName","maxlength","200","placeholder","e.g. Danger Signs in Pregnancy \u2014 Module 3",1,"field",3,"ngModelChange","ngModel"],[1,"req-hint"],[1,"revise"],["for","fb",1,"label"],["id","fb","rows","2","placeholder","e.g. scene 3's narration is too fast, split it in two; use a male training voice; the heading on scene 5 should be centred",1,"field",3,"ngModelChange","ngModel"],[1,"revise-row"],[1,"revise-voice"],["for","fbv",1,"label"],["id","fbv",1,"field",3,"ngModelChange","ngModel"],[1,"muted","note"],[1,"field",3,"ngModelChange","ngModel","ngModelOptions"],[1,"visual-row"],[1,"img-title"],[1,"field","treat",3,"ngModelChange","ngModel","ngModelOptions"],["value","asis"],["value","restyle"],["type","button",1,"btn","btn-ghost","tiny",3,"click"],[1,"field","attach",3,"ngModel","ngModelOptions"],[1,"field","attach",3,"ngModelChange","ngModel","ngModelOptions"],[1,"prod-now"],[1,"prod-icon"],[1,"prod-text"],[1,"prod-line"],[1,"prod-pct","mono"],[1,"bar"],[1,"prod-meta"],[1,"muted"],[1,"prod-steps"],[1,"prod-warn"],[1,"err-box","card-pad"],["type","button",1,"log-toggle",3,"click"],[1,"log"],[3,"class","is-last"],[1,"prod-step-node"],[1,"prod-step-body"],[1,"prod-step-name"],[1,"prod-step-detail"],["controls","",1,"player",3,"src"],["type","button",1,"btn","btn-ghost",3,"click"],["type","button",1,"btn","btn-ghost","btn-danger",3,"click","disabled"],[1,"qc","ok"],[1,"qc","bad"]],template:function(n,r){if(n&1&&(d(0,"p",0),p(1,"AI Studio"),u(),d(2,"h1",1),p(3,"Turn a document into a training video"),u(),d(4,"p",2),p(5,"Upload the source material, describe how the video should look and feel, then review the scene plan and its cost before anything is produced."),u(),b(6,ww,2,1,"div",3),d(7,"div",4)(8,"section",5)(9,"div",6)(10,"span",7),p(11,"1"),u(),d(12,"h2",8),p(13,"Source material"),u()(),b(14,xw,7,3,"label",9)(15,Nw,1,1)(16,Ow,10,5,"div",10),u(),d(17,"section",5)(18,"div",6)(19,"span",7),p(20,"2"),u(),d(21,"h2",8),p(22),u()(),b(23,kw,2,0,"p",11),d(24,"div",12),J(25,Rw,5,6,"button",13,dt),u(),d(27,"div",14)(28,"div"),b(29,Pw,3,1)(30,Fw,3,2),u(),d(31,"div",15)(32,"label",16),p(33,"Language"),u(),d(34,"select",17),te("ngModelChange",function(i){return ne(r.language,i)||(r.language=i),i}),J(35,Lw,2,2,"option",18,dt),u(),$(),d(37,"label",19),p(38,"Voice"),u(),d(39,"select",20),te("ngModelChange",function(i){return ne(r.voicePref,i)||(r.voicePref=i),i}),d(40,"option",21),p(41,"Auto \u2014 director picks & explains"),u(),J(42,Vw,2,2,"option",18,dt),u(),$(),u()(),b(44,zw,44,12,"div",22),d(45,"button",23),N("click",function(){return r.makePlan()}),p(46),u()(),b(47,nS,33,13,"section",5),b(48,vS,68,28,"section",5),b(49,NS,7,1,"section",5),b(50,VS,15,3,"section",5),u(),d(51,"aa-confirm-dialog",24),N("confirmed",function(){return r.deleteVideo.confirm()})("cancelled",function(){return r.deleteVideo.cancel()}),u()),n&2){let o,i;h(6),E(r.error()?6:-1),h(8),E(r.doc()?r.isEditMode()?15:16:14),h(3),pe("dim",!r.hasSource()),h(5),C(r.isEditMode()?"What should be changed?":"How should the video look?"),h(),E(r.isEditMode()?-1:23),h(),S("hidden",r.isEditMode()),h(),X(r.videoTypes),h(4),E(r.isEditMode()?29:30),h(5),ee("ngModel",r.language),S("disabled",!r.hasSource()),z(),h(),X(r.languages),h(4),ee("ngModel",r.voicePref),S("disabled",!r.hasSource()),z(),h(3),X(r.voices()),h(2),E(r.isEditMode()?-1:44),h(),S("disabled",!r.hasSource()||r.planning()||r.isEditMode()&&!r.brief.trim()),h(),R(" ",r.planning()?"Planning\u2026":r.isEditMode()?"Plan the edits":"Generate scene plan"," "),h(),E((o=r.editPlan())?47:-1,o),h(),E((i=r.result())?48:-1,i),h(),E(r.job()||r.producing()?49:-1),h(),E(r.hasVideo()?50:-1),h(),S("open",r.deleteVideo.open())("subject",r.contentName()||r.job()?.plan?.title||"")("busy",r.deleteVideo.busy())}},dependencies:[Cn,to,ja,Ba,Dn,Dd,eo,Xr,xd,cr,bn,ni],styles:['[_ngcontent-%COMP%]:root, [_nghost-%COMP%]{--%NS%aastrika-cream: #F7EFE1;--%NS%aastrika-cream-soft: #FBF6EC;--%NS%aastrika-bg: #F7F7F5;--%NS%aastrika-surface: #FFFFFF;--%NS%aastrika-surface-2: #FAFAF8;--%NS%aastrika-ink: #1A1A1A;--%NS%aastrika-ink-2: #4A4A48;--%NS%aastrika-muted: #8A8A85;--%NS%aastrika-gold: #A98229;--%NS%aastrika-gold-soft: #F3E7CB;--%NS%aastrika-gold-deep: #7C5F16;--%NS%aastrika-line: #ECEAE4;--%NS%aastrika-line-2: #DFDCD2;--%NS%aastrika-ok-bg: #E6F4EA;--%NS%aastrika-ok-fg: #1E7A3C;--%NS%aastrika-warn-bg: #FDF1DC;--%NS%aastrika-warn-fg: #8A6410;--%NS%aastrika-err-bg: #FBE9E7;--%NS%aastrika-err-fg: #A3271F;--%NS%aastrika-r-sm: 8px;--%NS%aastrika-r: 12px;--%NS%aastrika-r-lg: 16px;--%NS%aastrika-rail: 264px;--%NS%aastrika-shadow: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.04);--%NS%aastrika-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--%NS%aastrika-mono: ui-monospace, SFMono-Regular, Menlo, monospace}','.eyebrow[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--%NS%aastrika-gold-deep);margin-bottom:10px}.page-title[_ngcontent-%COMP%]{font-size:30px;line-height:1.15;margin-bottom:8px}.page-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:14.5px;margin-bottom:28px;max-width:62ch}.card[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);border:1px solid var(--%NS%aastrika-line);border-radius:var(--%NS%aastrika-r-lg);box-shadow:var(--%NS%aastrika-shadow)}.card-pad[_ngcontent-%COMP%]{padding:26px 28px}.label[_ngcontent-%COMP%]{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);margin-bottom:7px}.field[_ngcontent-%COMP%]{width:100%;padding:11px 14px;background:var(--%NS%aastrika-surface-2);border:1px solid var(--%NS%aastrika-line);border-radius:10px;outline:none}.field[_ngcontent-%COMP%]:focus{border-color:var(--%NS%aastrika-gold);box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:10px;border:1px solid transparent;background:var(--%NS%aastrika-gold);color:#fff;font-weight:600;cursor:pointer}.btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-gold-deep)}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.btn-ghost[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);border-color:var(--%NS%aastrika-line-2)}.btn-ghost[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg)}.chip[_ngcontent-%COMP%]:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.chip.warn[_ngcontent-%COMP%]{background:var(--%NS%aastrika-warn-bg);color:var(--%NS%aastrika-warn-fg)}.chip.err[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);color:var(--%NS%aastrika-err-fg)}.grid[_ngcontent-%COMP%]{display:grid;gap:22px}.mono[_ngcontent-%COMP%]{font-family:var(--%NS%aastrika-mono);font-variant-numeric:tabular-nums}.muted[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}','.bar[_ngcontent-%COMP%]{height:8px;background:var(--%NS%aastrika-surface-2);border-radius:999px;overflow:hidden;margin-bottom:14px}.bar[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;height:100%;background:linear-gradient(90deg,var(--%NS%aastrika-gold) 0%,var(--%NS%aastrika-gold-deep) 100%);transition:width .4s ease}.bar.is-working[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{background-image:linear-gradient(90deg,var(--%NS%aastrika-gold) 0%,var(--%NS%aastrika-gold-deep) 100%),repeating-linear-gradient(115deg,#ffffff47 0 12px,#fff0 12px 26px);background-size:100% 100%,200% 100%;animation:_ngcontent-%COMP%_bar-stripe 1.5s linear infinite}@keyframes _ngcontent-%COMP%_bar-stripe{to{background-position:0 0,-200% 0}}@media(prefers-reduced-motion:reduce){.bar.is-working[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{animation:none}}.prod-now[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;padding:14px 16px;margin-bottom:14px;background:var(--%NS%aastrika-cream-soft);border:1px solid var(--%NS%aastrika-gold-soft);border-radius:10px}.prod-now.is-done[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-bg, rgba(47,107,79,.07));border-color:#2f6b4f4d}.prod-now.is-failed[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);border-color:#9a3b2e4d}.prod-icon[_ngcontent-%COMP%]{font-size:22px;line-height:1;flex:none}.prod-icon.spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_prod-pulse 2s ease-in-out infinite}@keyframes _ngcontent-%COMP%_prod-pulse{0%,to{opacity:1}50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.prod-icon.spin[_ngcontent-%COMP%]{animation:none}}.prod-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.prod-text[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:14.5px}.prod-line[_ngcontent-%COMP%]{font-size:13px;color:var(--%NS%aastrika-muted)}.prod-pct[_ngcontent-%COMP%]{font-size:20px;font-weight:700;color:var(--%NS%aastrika-gold-deep);flex:none;font-variant-numeric:tabular-nums}.prod-meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:12.5px;color:var(--%NS%aastrika-muted);margin-bottom:16px}.prod-steps[_ngcontent-%COMP%]{list-style:none;margin:0 0 16px;padding:0}.prod-steps[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;display:grid;grid-template-columns:26px 1fr;gap:12px;padding:0 0 16px}.prod-steps[_ngcontent-%COMP%] li.is-last[_ngcontent-%COMP%]{padding-bottom:0}.prod-steps[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"";position:absolute;left:12px;top:26px;bottom:2px;width:2px;background:var(--%NS%aastrika-line-2);border-radius:1px}.prod-steps[_ngcontent-%COMP%] li.is-last[_ngcontent-%COMP%]:before{display:none}.prod-step-done[_ngcontent-%COMP%]:before{background:var(--%NS%aastrika-ok-fg, #2F6B4F);opacity:.45}.prod-step-node[_ngcontent-%COMP%]{position:relative;z-index:1;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;background:var(--%NS%aastrika-surface);border:2px solid var(--%NS%aastrika-line-2);color:var(--%NS%aastrika-muted)}.prod-step-done[_ngcontent-%COMP%] .prod-step-node[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-fg, #2F6B4F);border-color:var(--%NS%aastrika-ok-fg, #2F6B4F);color:#fff}.prod-step-active[_ngcontent-%COMP%] .prod-step-node[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-soft);border-color:var(--%NS%aastrika-gold-deep);font-size:13px;animation:_ngcontent-%COMP%_node-ring 2s ease-in-out infinite}@keyframes _ngcontent-%COMP%_node-ring{0%,to{box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}50%{box-shadow:0 0 0 7px #d4b05338}}@media(prefers-reduced-motion:reduce){.prod-step-active[_ngcontent-%COMP%] .prod-step-node[_ngcontent-%COMP%]{animation:none;box-shadow:0 0 0 4px var(--%NS%aastrika-gold-soft)}}.prod-step-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3px;padding-top:3px}.prod-step-name[_ngcontent-%COMP%]{font-size:13px}.prod-step-todo[_ngcontent-%COMP%] .prod-step-name[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);opacity:.65}.prod-step-done[_ngcontent-%COMP%] .prod-step-name[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.prod-step-active[_ngcontent-%COMP%] .prod-step-name[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ink);font-weight:600}.prod-step-detail[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.prod-warn[_ngcontent-%COMP%]{padding:11px 14px;margin-bottom:14px;border-radius:8px;background:var(--%NS%aastrika-warn-bg);border:1px solid rgba(180,120,0,.28);font-size:13px;display:grid;gap:3px}.log-toggle[_ngcontent-%COMP%]{background:none;border:0;padding:4px 0;font:inherit;font-size:12.5px;color:var(--%NS%aastrika-gold-deep);cursor:pointer;text-decoration:underline;text-underline-offset:3px}.log-toggle[_ngcontent-%COMP%]:hover{color:var(--%NS%aastrika-ink)}',".steps[_ngcontent-%COMP%]{display:grid;gap:18px;max-width:860px}.step-h[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:18px}.step-n[_ngcontent-%COMP%]{width:26px;height:26px;border-radius:50%;background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);display:grid;place-items:center;font-size:11px;font-weight:700}.step-t[_ngcontent-%COMP%]{font-size:15px}.dim[_ngcontent-%COMP%]{opacity:.55}.err-box[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);border-color:transparent;margin-bottom:18px}.drop[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:5px;padding:34px;border:1.5px dashed var(--%NS%aastrika-line-2);border-radius:var(--%NS%aastrika-r);cursor:pointer;background:var(--%NS%aastrika-surface-2)}.drop[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.drop-main[_ngcontent-%COMP%]{font-weight:600}.drop-sub[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.picked[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.picked-name[_ngcontent-%COMP%]{font-weight:600}.picked-meta[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted)}.opts[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}.plan-head[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid var(--%NS%aastrika-line)}.plan-title[_ngcontent-%COMP%]{font-size:17px;font-weight:700}.cost[_ngcontent-%COMP%]{text-align:right}.cost-n[_ngcontent-%COMP%]{font-size:22px;font-weight:700;color:var(--%NS%aastrika-gold-deep)}.cost-l[_ngcontent-%COMP%]{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted)}.scene[_ngcontent-%COMP%]{display:grid;grid-template-columns:46px 1fr;gap:14px;padding:14px 0;border-bottom:1px solid var(--%NS%aastrika-line)}.scene-id[_ngcontent-%COMP%]{font-size:11px;color:var(--%NS%aastrika-muted);padding-top:3px}.scene-purpose[_ngcontent-%COMP%]{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--%NS%aastrika-gold-deep);font-weight:600}.scene-narr[_ngcontent-%COMP%]{margin:5px 0 0;font-size:13.5px;color:var(--%NS%aastrika-ink-2)}.note[_ngcontent-%COMP%]{font-size:12.5px;margin-top:16px}@media(max-width:700px){.opts[_ngcontent-%COMP%]{grid-template-columns:1fr}}.types[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:22px}.type[_ngcontent-%COMP%]{text-align:left;padding:14px 16px;border-radius:var(--%NS%aastrika-r);border:1.5px solid var(--%NS%aastrika-line);background:var(--%NS%aastrika-surface);cursor:pointer;display:grid;gap:4px}.type[_ngcontent-%COMP%]:hover:not(:disabled){border-color:var(--%NS%aastrika-line-2)}.type.sel[_ngcontent-%COMP%]{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.type[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-size:13.5px}.type[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted);line-height:1.45}.type[_ngcontent-%COMP%]:disabled{cursor:not-allowed}.cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 280px;gap:22px;align-items:stretch}.cols[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{display:flex;flex-direction:column}.cols[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child textarea[_ngcontent-%COMP%]{flex:1 1 auto;min-height:120px}.side[_ngcontent-%COMP%] .mt[_ngcontent-%COMP%]{margin-top:14px}.mt-lg[_ngcontent-%COMP%]{margin-top:22px}.check[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:9px;margin-top:12px;font-size:13px;cursor:pointer}.check[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:auto;margin-top:2px}.extras[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px;align-items:start}.extras[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column}.extras[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]{min-height:2.4em}.file-inline[_ngcontent-%COMP%]{font-size:12px;width:100%}.hint[_ngcontent-%COMP%]{font-size:12px;margin-top:5px}.hint.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}.img-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:7px}.img-name[_ngcontent-%COMP%]{font-size:12px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.img-note[_ngcontent-%COMP%]{flex:1;padding:6px 9px;font-size:12px}.x[_ngcontent-%COMP%]{border:0;background:none;color:var(--%NS%aastrika-muted);font-size:17px;cursor:pointer;line-height:1}.x[_ngcontent-%COMP%]:hover{color:var(--%NS%aastrika-err-fg)}.step-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted);font-weight:400}.cost-b[_ngcontent-%COMP%]{font-size:10.5px;color:var(--%NS%aastrika-muted);margin-top:3px}.keys[_ngcontent-%COMP%]{margin:7px 0 0;padding-left:18px;font-size:12.5px;color:var(--%NS%aastrika-ink-2)}.keys[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:2px}.scene-vis[_ngcontent-%COMP%]{margin:7px 0 0;font-size:11.5px;color:var(--%NS%aastrika-muted)}.revise[_ngcontent-%COMP%]{margin-top:22px;padding-top:18px;border-top:1px solid var(--%NS%aastrika-line)}.revise-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:14px;margin-top:12px}.revise-voice[_ngcontent-%COMP%]{max-width:280px;flex:1}@media(max-width:900px){.types[_ngcontent-%COMP%], .cols[_ngcontent-%COMP%], .extras[_ngcontent-%COMP%]{grid-template-columns:1fr}.revise-row[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}}.scene[_ngcontent-%COMP%]{display:block;padding:16px 0;border-bottom:1px solid var(--%NS%aastrika-line)}.sh[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;font-weight:600;color:var(--%NS%aastrika-gold-deep);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px}.sh[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child{color:var(--%NS%aastrika-muted);font-weight:400;text-transform:none;letter-spacing:0}.lbl[_ngcontent-%COMP%]{display:block;font-size:11px;color:var(--%NS%aastrika-muted);margin:10px 0 4px}.scene[_ngcontent-%COMP%] .field[_ngcontent-%COMP%]{font-size:13px}.visual-note[_ngcontent-%COMP%]{font-size:13px;color:var(--%NS%aastrika-ok-fg);background:var(--%NS%aastrika-ok-bg);padding:8px 11px;border-radius:8px}.visual-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.img-title[_ngcontent-%COMP%]{font-size:13px}.treat[_ngcontent-%COMP%]{flex:1;min-width:240px;font-size:12px}.attach[_ngcontent-%COMP%]{margin-top:6px;font-size:12px}.tiny[_ngcontent-%COMP%]{padding:5px 11px;font-size:12px}.meta-line[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:var(--%NS%aastrika-muted);margin-top:3px}.voice-why[_ngcontent-%COMP%]{margin:6px 0 0;font-size:12px;color:var(--%NS%aastrika-muted);max-width:52ch}.produce-row[_ngcontent-%COMP%]{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.produce-row[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-decoration:none}.produce-row[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]{color:#b42318;border-color:#f2b8b0}.produce-row[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]:hover{background:#fef3f2}.log[_ngcontent-%COMP%]{background:#3b3330;color:#f1e2c6;font-family:var(--%NS%aastrika-mono);font-size:12px;border-radius:10px;padding:14px;max-height:260px;overflow-y:auto;white-space:pre-wrap;margin:0}.qc[_ngcontent-%COMP%]{font-size:13px;margin:0 0 14px}.qc.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}.qc.bad[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);padding:12px 14px;border-radius:10px}.qc.bad[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 6px}.qc.bad[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding-left:20px}.player[_ngcontent-%COMP%]{width:100%;border-radius:var(--%NS%aastrika-r);background:#000;display:block}.mode-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-gold-deep);margin:12px 0 0}.mode-warn[_ngcontent-%COMP%]{font-size:12.5px;line-height:1.5;margin:12px 0 0;padding:10px 12px;border-radius:8px;border:1px solid rgba(180,120,0,.35);background:#ffc40014}.seg-head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;text-transform:none;letter-spacing:0;font-weight:600}.kf[_ngcontent-%COMP%]{width:88px;height:50px;object-fit:cover;border-radius:6px;border:1px solid var(--%NS%aastrika-line)}.act-sel[_ngcontent-%COMP%]{max-width:250px;font-size:12px;padding:6px 10px}.scene.cut[_ngcontent-%COMP%]{opacity:.55}.scene.cut[_ngcontent-%COMP%] .kf[_ngcontent-%COMP%]{filter:grayscale(1)}.req[_ngcontent-%COMP%]{color:#c0392b;font-weight:700}.field.invalid[_ngcontent-%COMP%]{border-color:#c0392b}.req-hint[_ngcontent-%COMP%]{color:#c0392b;font-size:.82rem;margin:.25rem 0 0}.step-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted, #6b6b63);margin:.1rem 0 1rem;font-size:.9rem}.more-body[_ngcontent-%COMP%]{padding-top:.5rem}.opt-group[_ngcontent-%COMP%]{margin-top:1rem;padding:.9rem 1rem;border:1px dashed rgba(0,0,0,.14);border-radius:10px;background:#00000004}.opt-head[_ngcontent-%COMP%]{font-size:.8rem;font-weight:600;letter-spacing:.02em;color:var(--%NS%aastrika-muted, #6b6b63);margin-bottom:.5rem}.file-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--%NS%aastrika-line, rgba(0,0,0,.14));border-radius:8px;cursor:pointer;font-size:.85rem;color:var(--%NS%aastrika-muted, #5a5a52);background:#fff;transition:border-color .15s,background .15s}.file-btn[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold, #a5872f);background:#00000005}.file-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:16px;height:16px;flex:none}.file-btn.disabled[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}"],changeDetection:1})};var fy=()=>({standalone:!0}),$a=(e,t)=>t.id,jS=(e,t)=>t.code;function BS(e,t){if(e&1&&(d(0,"div",3),p(1),u()),e&2){let n=v();h(),C(n.error())}}function HS(e,t){if(e&1&&(d(0,"div",16),p(1),u()),e&2){let n=v();h(),R("",n.files().length," file(s) selected")}}function US(e,t){if(e&1&&(d(0,"span",43),p(1),u()),e&2){let n=v().$implicit;h(),C(n.error)}}function $S(e,t){if(e&1&&(d(0,"span",44),p(1),lt(2,"number"),u()),e&2){let n=v().$implicit;h(),R("",rr(2,1,n.chars)," chars")}}function zS(e,t){if(e&1){let n=G();d(0,"li")(1,"input",41),N("change",function(){let o=I(n).$implicit,i=v(2);return M(i.toggleSource(o))}),u(),d(2,"span",42),p(3),u(),b(4,US,2,1,"span",43)(5,$S,3,3,"span",44),u()}if(e&2){let n=t.$implicit;pe("bad",n.error)("off",!n.error&&!n.checked),h(),S("checked",n.checked)("disabled",!!n.error),h(2),C(n.name),h(),E(n.error?4:5)}}function GS(e,t){if(e&1&&(d(0,"ul",18),J(1,zS,6,8,"li",40,er),u()),e&2){let n=v();h(),X(n.sources())}}function WS(e,t){if(e&1&&(d(0,"option",25),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),R("\u{1F3AC} ",n.plan?.title||n.filename||n.id)}}function qS(e,t){if(e&1&&(d(0,"option",25),p(1),u()),e&2){let n=t.$implicit;S("value",n.code),h(),C(n.name)}}function ZS(e,t){if(e&1&&(d(0,"option",33),p(1),u()),e&2){let n=t.$implicit;S("ngValue",n),h(),C(n)}}function YS(e,t){if(e&1&&(d(0,"option",25),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),C(n.label)}}function QS(e,t){if(e&1&&(d(0,"option",25),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),C(n.label)}}function KS(e,t){if(e&1&&(d(0,"div",53),p(1),u()),e&2){let n=v();h(),R("Quality check corrected ",n.qcFixed," question(s) before showing them.")}}function JS(e,t){if(e&1){let n=G();d(0,"label",68)(1,"input",69),N("change",function(){let o=I(n).$index,i=v().$implicit,s=v(2);return M(s.markCorrect(i,o))}),u(),d(2,"span",70),p(3),u(),d(4,"input",71),N("input",function(o){let i=I(n).$index,s=v().$implicit,a=v(2);return M(a.editOption(s,i,o.target.value))}),u()()}if(e&2){let n=t.$implicit,r=t.$index,o=v(),i=o.$implicit,s=o.$index;pe("correct",r===i.correctIndex),h(),S("name","correct-"+s)("checked",r===i.correctIndex),h(2),C("ABCDEF"[r]),h(),S("value",n)}}function XS(e,t){if(e&1){let n=G();d(0,"textarea",72),te("ngModelChange",function(o){I(n);let i=v().$implicit;return ne(i.explanation,o)||(i.explanation=o),M(o)}),N("ngModelChange",function(){I(n);let o=v(3);return M(o.touched())}),u(),$(),d(1,"p",73),p(2),u()}if(e&2){let n=v().$implicit;ee("ngModel",n.explanation),S("ngModelOptions",Be(3,fy)),z(),h(2),R("Source: ",n.sourceRef)}}function ex(e,t){if(e&1){let n=G();d(0,"div",54)(1,"div",59)(2,"span",60),p(3),u(),d(4,"div",61)(5,"textarea",62),te("ngModelChange",function(o){let i=I(n).$implicit;return ne(i.question,o)||(i.question=o),M(o)}),N("ngModelChange",function(){I(n);let o=v(2);return M(o.touched())}),u(),$(),d(6,"div",63),J(7,JS,5,6,"label",64,er),u(),d(9,"div",65)(10,"span",66),p(11),u(),d(12,"span",66),p(13),u(),d(14,"button",67),N("click",function(){let o=I(n).$implicit,i=v(2);return M(i.toggle(o.id))}),p(15),u()(),b(16,XS,3,4),u()()()}if(e&2){let n=t.$implicit,r=t.$index,o=v(2);h(3),C(r+1),h(2),ee("ngModel",n.question),S("ngModelOptions",Be(7,fy)),z(),h(2),X(n.options),h(4),C(n.difficulty),h(2),C(n.bloom),h(2),R(" ",o.revealed()[n.id]?"Hide explanation":"Show explanation"," "),h(),E(o.revealed()[n.id]?16:-1)}}function tx(e,t){if(e&1){let n=G();d(0,"section",5)(1,"div",6)(2,"span",7),p(3,"3"),u(),d(4,"h2",8),p(5,"Review questions"),u(),d(6,"span",45),p(7,"\u2014 edit anything, tick the correct option, then download"),u()(),d(8,"div",46)(9,"div")(10,"div",47),p(11),u(),d(12,"div",48),p(13),u()(),d(14,"div",49)(15,"button",50),N("click",function(){I(n);let o=v();return M(o.export("xlsx"))}),p(16,"\u2B07 Download Excel (.xlsx)"),u(),d(17,"button",51),N("click",function(){I(n);let o=v();return M(o.export("csv"))}),p(18,"\u2B07 CSV"),u(),d(19,"button",52),N("click",function(){I(n);let o=v();return M(o.deleteQuiz.ask(o.result()))}),p(20," \u{1F5D1} Delete quiz "),u()()(),b(21,KS,2,1,"div",53),J(22,ex,17,8,"div",54,$a),d(24,"div",55)(25,"button",56),N("click",function(){I(n);let o=v();return M(o.save())}),p(26),u(),d(27,"span",57),p(28,"Save before downloading so the export matches what you see."),u()(),d(29,"p",58),p(30," Format: Question \xB7 Option 1\u2026N \xB7 Correct Answer. The Excel file has a second sheet with difficulty, Bloom's level, source reference and explanations. "),u()()}if(e&2){let n=t,r=v();h(11),C(n.assessment.title),h(2),R("",n.assessment.questions.length," questions"),h(6),S("disabled",r.deleteQuiz.busy()),h(2),E(n.qcFixed?21:-1),h(),X(n.assessment.questions),h(3),S("disabled",r.saving()),h(),R(" ",r.saving()?"Saving\u2026":r.saved()?"\u2713 Saved":"Save edits"," ")}}var za=class e{api=D(jt);files=L([]);sources=L([]);reading=L(!1);generating=L(!1);result=L(null);error=L("");revealed=L({});languages=L([]);pastVideos=L([]);links="";brief="";sourceJobId="";language="hi";numQuestions=10;numOptions=4;difficulty="mixed";bloom="mixed";optionCounts=[2,3,4,5,6];difficulties=[{id:"mixed",label:"Mixed (30% easy \xB7 45% medium \xB7 25% hard)"},{id:"easy",label:"Easy \u2014 direct recall"},{id:"medium",label:"Medium \u2014 comprehension"},{id:"hard",label:"Hard \u2014 close distractors"}];blooms=[{id:"mixed",label:"Mixed (remember \xB7 understand \xB7 apply)"},{id:"apply",label:"Application-oriented \u2014 field scenarios"},{id:"understand",label:"Understanding \u2014 explain why"},{id:"remember",label:"Recall \u2014 facts & definitions"}];constructor(){this.api.languages().subscribe({next:t=>{let n=Object.entries(t).map(([r,o])=>({code:r,name:o}));this.languages.set(n)},error:()=>this.languages.set([{code:"hi",name:"Hindi"},{code:"en",name:"English"}])}),this.api.studioJobs().subscribe({next:t=>this.pastVideos.set(t.filter(n=>n.plan)),error:()=>{}})}chooseFiles(t){this.files.set(Array.from(t.target.files??[]))}readSources(){!this.files().length&&!this.links.trim()||(this.error.set(""),this.reading.set(!0),this.api.readSources(this.files(),this.links,this.language).subscribe({next:t=>{let n=(t.sources||[]).map(r=>W(V({},r),{checked:!r.error}));this.sources.update(r=>[...r,...n]),this.reading.set(!1)},error:t=>{this.error.set(he(t)),this.reading.set(!1)}}))}get readySources(){return this.sources().filter(t=>!t.error&&t.checked)}toggleSource(t){t.error||(t.checked=!t.checked,this.sources.update(n=>[...n]))}generate(){!this.readySources.length&&!this.sourceJobId||(this.error.set(""),this.generating.set(!0),this.result.set(null),this.api.generateAssessment({language:this.language,numQuestions:Number(this.numQuestions),numOptions:Number(this.numOptions),difficulty:this.difficulty,bloom:this.bloom,userPrompt:this.brief||void 0,sourceIds:this.readySources.map(t=>t.id).filter(Boolean),sourceJobId:this.sourceJobId||void 0}).subscribe({next:t=>{this.result.set(t),this.generating.set(!1)},error:t=>{this.error.set(he(t)),this.generating.set(!1)}}))}toggle(t){this.revealed.update(n=>W(V({},n),{[t]:!n[t]}))}saving=L(!1);saved=L(!1);markCorrect(t,n){t.correctIndex=n,this.saved.set(!1)}editOption(t,n,r){t.options[n]=r,this.saved.set(!1)}touched(){this.saved.set(!1)}save(){let t=this.result();t&&(this.saving.set(!0),this.api.saveAssessment(t.jobId,t.assessment).subscribe({next:()=>{this.saving.set(!1),this.saved.set(!0)},error:n=>{this.error.set(he(n)),this.saving.set(!1)}}))}export(t){let n=this.result();n&&lr({lookup:this.api.exportUrl(n.jobId,t),fallbackHref:this.api.exportHref(n.jobId,t),onError:r=>this.error.set(r)})}deleteQuiz=no({request:t=>this.api.deleteQuiz(t.jobId),onDeleted:()=>this.result.set(null),onError:t=>this.error.set(t),fallback:"Could not delete the quiz"});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=en({type:e,selectors:[["aa-assessment"]],decls:78,vars:21,consts:[[1,"eyebrow"],[1,"page-title"],[1,"page-sub"],[1,"card","card-pad","err-box"],[1,"steps"],[1,"card","card-pad"],[1,"step-h"],[1,"step-n"],[1,"step-t"],[1,"step-lead"],[1,"src-cols"],["rows","3","placeholder",`Paste links here, one per line \u2014 Google Drive file/folder links, S3 links
13
+ `).map(r=>r.trim()).filter(Boolean)}attachImage(t,n){n&&(t.visual=$(V({},t.visual),{userImageId:n,treatment:"asis",imagePrompt:void 0}))}detachImage(t){t.visual=$(V({},t.visual),{userImageId:void 0,treatment:void 0,imagePrompt:""})}imageName(t){return this.userImages().find(n=>n.id===t)?.name??t??""}reset(){this.doc.set(null),this.sourceVideo.set(null),this.editPlan.set(null),this.result.set(null),this.error.set(""),this.brief="",this.userImages.set([]),this.styleGuide.set(""),this.refName.set("")}produce(){let t=this.result();t&&(this.error.set(""),this.producing.set(!0),this.job.set(null),this.api.generateVideo(t.jobId,{plan:t.plan,contentName:this.contentName().trim()}).pipe(this.untilGone).subscribe({next:()=>{this.videoStarted.emit({jobId:t.jobId}),this.poll()},error:n=>{this.error.set(le(n,"content-studio")),this.producing.set(!1)}}))}poll(){let t=this.result()?.jobId??this.editPlan()?.jobId;t&&this.pollFrom(t)}pollFrom(t){let n=this.result();this.api.job(t).pipe(this.untilGone).subscribe({next:r=>{this.job.set(r),r.status==="done"&&r.video?(this.producing.set(!1),r.plan&&n&&this.result.set($(V({},n),{plan:r.plan})),this.videoReady.emit({jobId:t,videoUrl:r.videoUrl??r.video??""})):r.status==="failed"?this.producing.set(!1):this.pollTimer=setTimeout(()=>this.pollFrom(t),2500)},error:r=>{this.error.set(le(r,"content-studio")),this.producing.set(!1)}})}ngOnDestroy(){this.pollTimer&&clearTimeout(this.pollTimer)}stages=qa;progress=ae(()=>_y(this.job(),this.job()?.plan?.scenes?.length??0));eta=ae(()=>Cy(this.progress().etaSeconds));stageState(t){let n=this.progress();if(n.done)return"done";let r=this.stages.findIndex(o=>o.id===n.stage.id);return r<0?"todo":t<r?"done":t===r?"active":"todo"}showLog=F(!1);logText(t){return(t.log||[]).map(n=>`${String(n.t).slice(11,19)} ${n.message}`).join(`
14
+ `)}hasVideo=ae(()=>this.job()?.status==="done"&&!!this.job()?.video);playbackSrc=ae(()=>{let t=this.job();return t?.videoUrl??t?.video??null});download(){let t=this.job();t&&hr({feature:"content-studio",lookup:this.api.downloadVideoUrl(t.id),fallbackHref:this.api.downloadVideoHref(t.id),onError:n=>this.error.set(n)})}deleteVideo=lo({feature:"content-studio",request:t=>this.api.deleteVideo(t.id),onDeleted:()=>{this.job.set(null),this.result.set(null),this.editPlan.set(null)},onError:t=>this.error.set(t),fallback:"Could not delete the video"});qcIssues(){return(this.job()?.qc?.scenes||[]).filter(t=>t.issues?.length)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=rn({type:e,selectors:[["aa-content-studio"]],inputs:{editMode:[1,"editMode"],defaultLanguage:[1,"defaultLanguage"],defaultAspectRatio:[1,"defaultAspectRatio"],defaultDepth:[1,"defaultDepth"],defaultVoice:[1,"defaultVoice"]},outputs:{planReady:"planReady",videoStarted:"videoStarted",videoReady:"videoReady"},decls:52,vars:22,consts:[[1,"eyebrow"],[1,"page-title"],[1,"page-sub"],["role","alert",1,"card","card-pad","err-box"],[1,"steps"],[1,"card","card-pad"],[1,"step-h"],[1,"step-n"],[1,"step-t"],[1,"drop"],[1,"picked"],[1,"step-sub"],[1,"types",3,"hidden"],["type","button",1,"type",3,"sel","disabled"],[1,"cols"],[1,"side"],["for","lang",1,"label"],["id","lang",1,"field",3,"ngModelChange","ngModel","disabled"],[3,"value"],["for","voice",1,"label","mt"],["id","voice",1,"field",3,"ngModelChange","ngModel","disabled"],["value",""],[1,"opt-group"],[1,"btn","mt-lg",3,"click","disabled"],["title","Delete video?","message","This removes the video and its stored files permanently. This cannot be undone.","confirmLabel","Delete video",3,"confirmed","cancelled","open","subject","busy"],["type","file","hidden","",3,"change","accept"],[1,"drop-main"],[1,"drop-sub"],[1,"picked-name"],[1,"picked-meta","mono"],[1,"btn","btn-ghost",3,"click"],[1,"mode-warn"],[1,"mode-note"],["type","button",1,"type",3,"click","disabled"],["for","brief",1,"label"],["id","brief","rows","3","placeholder",'e.g. change the title to "\u2026", re-voice segment 3 to also mention the MCP card, replace the intro visual with a watercolor scene, cut the WhatsApp part',1,"field",3,"ngModelChange","ngModel"],["id","brief","rows","3","placeholder","e.g. 90-second Hindi refresher on the 5 key counselling points; warm female voice; show the ANM at a VHND session; end with a recap slide",1,"field",3,"ngModelChange","ngModel","disabled"],[1,"opt-head"],[1,"more-body"],[1,"check"],["for","aspect",1,"label"],["id","aspect",1,"field",3,"ngModelChange","ngModel","disabled"],["for","depth",1,"label"],["id","depth",1,"field",3,"ngModelChange","ngModel","disabled"],[1,"extras"],["aria-hidden","true",1,"label"],[1,"file-btn"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M12 15V3"],["d","m7 8 5-5 5 5"],["d","M4 16v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3"],["type","file","hidden","","aria-label","Reference video the AI copies its look, pacing and style from","accept","video/mp4,video/quicktime,video/webm",3,"change","disabled"],[1,"hint","ok"],["x","3","y","3","width","18","height","18","rx","2"],["cx","9","cy","9","r","1.5"],["d","m21 15-4-4L7 21"],["type","file","hidden","","multiple","","accept","image/png,image/jpeg,image/webp",3,"change","disabled"],[1,"img-row"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"img-name"],["placeholder","where should this be used?",1,"field","img-note",3,"ngModelChange","ngModel","ngModelOptions"],["type","button",1,"x",3,"click"],[1,"step-note"],[1,"plan-head"],[1,"plan-title"],[1,"meta-line"],[1,"mono"],[1,"voice-why"],[1,"cost"],[1,"cost-n","mono"],[1,"cost-l"],[1,"cost-b","mono"],[1,"scene",3,"cut"],[1,"produce-row"],[1,"btn",3,"click","disabled"],[1,"btn","btn-ghost",3,"click","disabled"],[1,"scene"],[1,"sh"],[1,"seg-head"],["alt","",1,"kf",3,"src"],[1,"field","act-sel",3,"ngModelChange","ngModel","ngModelOptions"],[1,"visual-note"],["aria-hidden","true",1,"lbl"],["rows","2","aria-label","Narration",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["rows","2","aria-label","Visual or image prompt",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["for","contentName",1,"label"],[1,"req"],["id","contentName","maxlength","200","placeholder","e.g. Danger Signs in Pregnancy \u2014 Module 3",1,"field",3,"ngModelChange","ngModel"],[1,"req-hint"],[1,"revise"],["for","fb",1,"label"],["id","fb","rows","2","placeholder","e.g. scene 3's narration is too fast, split it in two; use a male training voice; the heading on scene 5 should be centred",1,"field",3,"ngModelChange","ngModel"],[1,"revise-row"],[1,"revise-voice"],["for","fbv",1,"label"],["id","fbv",1,"field",3,"ngModelChange","ngModel"],[1,"muted","note"],["aria-label","Narration","rows","2",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["aria-label","Key points on screen one per line","rows","2",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["aria-label","Title overlay optional",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],[1,"lbl"],[1,"visual-row"],[1,"img-title"],["aria-label","How to treat your uploaded image",1,"field","treat",3,"ngModelChange","ngModel","ngModelOptions"],["value","asis"],["value","restyle"],["type","button",1,"btn","btn-ghost","tiny",3,"click"],["aria-label","Visual image prompt","rows","2",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],[1,"field","attach",3,"ngModel","ngModelOptions"],[1,"field","attach",3,"ngModelChange","ngModel","ngModelOptions"],["role","status","aria-live","polite",1,"prod-now"],[1,"prod-icon"],[1,"prod-text"],[1,"prod-line"],[1,"prod-pct","mono"],["role","progressbar","aria-label","Video render progress","aria-valuemin","0","aria-valuemax","100",1,"bar"],[1,"prod-meta"],[1,"muted"],[1,"prod-steps"],[1,"prod-warn"],[1,"err-box","card-pad"],["type","button",1,"log-toggle",3,"click"],[1,"log"],[3,"class","is-last"],[1,"prod-step-node"],[1,"prod-step-body"],[1,"prod-step-name"],[1,"prod-step-detail"],["controls","",1,"player",3,"src"],["type","button",1,"btn","btn-ghost",3,"click"],["type","button",1,"btn","btn-ghost","btn-danger",3,"click","disabled"],[1,"qc","ok"],[1,"qc","bad"]],template:function(n,r){if(n&1&&(d(0,"p",0),p(1,"AI Studio"),u(),d(2,"h1",1),p(3,"Turn a document into a training video"),u(),d(4,"p",2),p(5,"Upload the source material, describe how the video should look and feel, then review the scene plan and its cost before anything is produced."),u(),D(6,Ow,2,1,"div",3),d(7,"div",4)(8,"section",5)(9,"div",6)(10,"span",7),p(11,"1"),u(),d(12,"h2",8),p(13,"Source material"),u()(),D(14,Rw,7,3,"label",9)(15,Vw,1,1)(16,Bw,10,5,"div",10),u(),d(17,"section",5)(18,"div",6)(19,"span",7),p(20,"2"),u(),d(21,"h2",8),p(22),u()(),D(23,Hw,2,0,"p",11),d(24,"div",12),J(25,Uw,5,6,"button",13,pt),u(),d(27,"div",14)(28,"div"),D(29,$w,3,1)(30,zw,3,2),u(),d(31,"div",15)(32,"label",16),p(33,"Language"),u(),d(34,"select",17),te("ngModelChange",function(i){return ne(r.language,i)||(r.language=i),i}),J(35,Gw,2,2,"option",18,pt),u(),z(),d(37,"label",19),p(38,"Voice"),u(),d(39,"select",20),te("ngModelChange",function(i){return ne(r.voicePref,i)||(r.voicePref=i),i}),d(40,"option",21),p(41,"Auto \u2014 director picks & explains"),u(),J(42,Ww,2,2,"option",18,pt),u(),z(),u()(),D(44,Jw,44,12,"div",22),d(45,"button",23),A("click",function(){return r.makePlan()}),p(46),u()(),D(47,ux,33,13,"section",5),D(48,Sx,68,28,"section",5),D(49,Vx,7,1,"section",5),D(50,Wx,15,3,"section",5),u(),d(51,"aa-confirm-dialog",24),A("confirmed",function(){return r.deleteVideo.confirm()})("cancelled",function(){return r.deleteVideo.cancel()}),u()),n&2){let o,i;h(6),E(r.error()?6:-1),h(8),E(r.doc()?r.isEditMode()?15:16:14),h(3),ge("dim",!r.hasSource()),h(5),b(r.isEditMode()?"What should be changed?":"How should the video look?"),h(),E(r.isEditMode()?-1:23),h(),S("hidden",r.isEditMode()),h(),X(r.videoTypes),h(4),E(r.isEditMode()?29:30),h(5),ee("ngModel",r.language),S("disabled",!r.hasSource()),G(),h(),X(r.languages),h(4),ee("ngModel",r.voicePref),S("disabled",!r.hasSource()),G(),h(3),X(r.voices()),h(2),E(r.isEditMode()?-1:44),h(),S("disabled",!r.hasSource()||r.planning()||r.isEditMode()&&!r.brief.trim()),h(),R(" ",r.planning()?"Planning\u2026":r.isEditMode()?"Plan the edits":"Generate scene plan"," "),h(),E((o=r.editPlan())?47:-1,o),h(),E((i=r.result())?48:-1,i),h(),E(r.job()||r.producing()?49:-1),h(),E(r.hasVideo()?50:-1),h(),S("open",r.deleteVideo.open())("subject",r.contentName()||r.job()?.plan?.title||"")("busy",r.deleteVideo.busy())}},dependencies:[wn,co,Ga,Wa,xn,Id,ao,so,Od,pr,Sn,li],styles:['[_ngcontent-%COMP%]:root, [_nghost-%COMP%]{--%NS%aastrika-cream: #F7EFE1;--%NS%aastrika-cream-soft: #FBF6EC;--%NS%aastrika-bg: #F7F7F5;--%NS%aastrika-surface: #FFFFFF;--%NS%aastrika-surface-2: #FAFAF8;--%NS%aastrika-ink: #1A1A1A;--%NS%aastrika-ink-2: #4A4A48;--%NS%aastrika-muted: #8A8A85;--%NS%aastrika-gold: #A98229;--%NS%aastrika-gold-soft: #F3E7CB;--%NS%aastrika-gold-deep: #7C5F16;--%NS%aastrika-line: #ECEAE4;--%NS%aastrika-line-2: #DFDCD2;--%NS%aastrika-ok-bg: #E6F4EA;--%NS%aastrika-ok-fg: #1E7A3C;--%NS%aastrika-warn-bg: #FDF1DC;--%NS%aastrika-warn-fg: #8A6410;--%NS%aastrika-err-bg: #FBE9E7;--%NS%aastrika-err-fg: #A3271F;--%NS%aastrika-r-sm: 8px;--%NS%aastrika-r: 12px;--%NS%aastrika-r-lg: 16px;--%NS%aastrika-rail: 264px;--%NS%aastrika-shadow: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.04);--%NS%aastrika-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--%NS%aastrika-mono: ui-monospace, SFMono-Regular, Menlo, monospace}','[_nghost-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%]:before, [_nghost-%COMP%] *[_ngcontent-%COMP%]:after{box-sizing:border-box}.eyebrow[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--%NS%aastrika-gold-deep);margin-bottom:10px}.page-title[_ngcontent-%COMP%]{font-size:30px;line-height:1.15;margin-bottom:8px}.page-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:14.5px;margin-bottom:28px;max-width:62ch}.card[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);border:1px solid var(--%NS%aastrika-line);border-radius:var(--%NS%aastrika-r-lg);box-shadow:var(--%NS%aastrika-shadow)}.card-pad[_ngcontent-%COMP%]{padding:26px 28px}.label[_ngcontent-%COMP%]{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);margin-bottom:7px}.field[_ngcontent-%COMP%]{width:100%;padding:11px 14px;background:var(--%NS%aastrika-surface-2);border:1px solid var(--%NS%aastrika-line);border-radius:10px;outline:none}.field[_ngcontent-%COMP%]:focus{border-color:var(--%NS%aastrika-gold);box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:10px;border:1px solid transparent;background:var(--%NS%aastrika-gold);color:#fff;font-weight:600;cursor:pointer}.btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-gold-deep)}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.btn-ghost[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);border-color:var(--%NS%aastrika-line-2)}.btn-ghost[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg)}.chip[_ngcontent-%COMP%]:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.chip.warn[_ngcontent-%COMP%]{background:var(--%NS%aastrika-warn-bg);color:var(--%NS%aastrika-warn-fg)}.chip.err[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);color:var(--%NS%aastrika-err-fg)}.mono[_ngcontent-%COMP%]{font-family:var(--%NS%aastrika-mono);font-variant-numeric:tabular-nums}.muted[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.steps[_ngcontent-%COMP%]{display:grid;gap:18px;max-width:860px}.step-h[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:18px}.step-n[_ngcontent-%COMP%]{width:26px;height:26px;border-radius:50%;background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);display:grid;place-items:center;font-size:11px;font-weight:700}.step-t[_ngcontent-%COMP%]{font-size:15px}.step-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted);font-weight:400}.dim[_ngcontent-%COMP%]{opacity:.55}.err-box[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);border-color:transparent;margin-bottom:18px}.drop[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:5px;padding:34px;border:1.5px dashed var(--%NS%aastrika-line-2);border-radius:var(--%NS%aastrika-r);cursor:pointer;background:var(--%NS%aastrika-surface-2)}.drop[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.drop-main[_ngcontent-%COMP%]{font-weight:600}.drop-sub[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.picked[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.picked-name[_ngcontent-%COMP%]{font-weight:600}.picked-meta[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted)}.note[_ngcontent-%COMP%]{font-size:12.5px;margin-top:16px}.mt-lg[_ngcontent-%COMP%]{margin-top:22px}.hint.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}','.bar[_ngcontent-%COMP%]{height:8px;background:var(--%NS%aastrika-surface-2);border-radius:999px;overflow:hidden;margin-bottom:14px}.bar[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;height:100%;background:linear-gradient(90deg,var(--%NS%aastrika-gold) 0%,var(--%NS%aastrika-gold-deep) 100%);transition:width .4s ease}.bar.is-working[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{background-image:linear-gradient(90deg,var(--%NS%aastrika-gold) 0%,var(--%NS%aastrika-gold-deep) 100%),repeating-linear-gradient(115deg,#ffffff47 0 12px,#fff0 12px 26px);background-size:100% 100%,200% 100%;animation:_ngcontent-%COMP%_bar-stripe 1.5s linear infinite}@keyframes _ngcontent-%COMP%_bar-stripe{to{background-position:0 0,-200% 0}}@media(prefers-reduced-motion:reduce){.bar.is-working[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{animation:none}}.prod-now[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;padding:14px 16px;margin-bottom:14px;background:var(--%NS%aastrika-cream-soft);border:1px solid var(--%NS%aastrika-gold-soft);border-radius:10px}.prod-now.is-done[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-bg, rgba(47,107,79,.07));border-color:#2f6b4f4d}.prod-now.is-failed[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);border-color:#9a3b2e4d}.prod-icon[_ngcontent-%COMP%]{font-size:22px;line-height:1;flex:none}.prod-icon.spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_prod-pulse 2s ease-in-out infinite}@keyframes _ngcontent-%COMP%_prod-pulse{0%,to{opacity:1}50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.prod-icon.spin[_ngcontent-%COMP%]{animation:none}}.prod-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.prod-text[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:14.5px}.prod-line[_ngcontent-%COMP%]{font-size:13px;color:var(--%NS%aastrika-muted)}.prod-pct[_ngcontent-%COMP%]{font-size:20px;font-weight:700;color:var(--%NS%aastrika-gold-deep);flex:none;font-variant-numeric:tabular-nums}.prod-meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:12.5px;color:var(--%NS%aastrika-muted);margin-bottom:16px}.prod-steps[_ngcontent-%COMP%]{list-style:none;margin:0 0 16px;padding:0}.prod-steps[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;display:grid;grid-template-columns:26px 1fr;gap:12px;padding:0 0 16px}.prod-steps[_ngcontent-%COMP%] li.is-last[_ngcontent-%COMP%]{padding-bottom:0}.prod-steps[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"";position:absolute;left:12px;top:26px;bottom:2px;width:2px;background:var(--%NS%aastrika-line-2);border-radius:1px}.prod-steps[_ngcontent-%COMP%] li.is-last[_ngcontent-%COMP%]:before{display:none}.prod-step-done[_ngcontent-%COMP%]:before{background:var(--%NS%aastrika-ok-fg, #2F6B4F);opacity:.45}.prod-step-node[_ngcontent-%COMP%]{position:relative;z-index:1;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;background:var(--%NS%aastrika-surface);border:2px solid var(--%NS%aastrika-line-2);color:var(--%NS%aastrika-muted)}.prod-step-done[_ngcontent-%COMP%] .prod-step-node[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-fg, #2F6B4F);border-color:var(--%NS%aastrika-ok-fg, #2F6B4F);color:#fff}.prod-step-active[_ngcontent-%COMP%] .prod-step-node[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-soft);border-color:var(--%NS%aastrika-gold-deep);font-size:13px;animation:_ngcontent-%COMP%_node-ring 2s ease-in-out infinite}@keyframes _ngcontent-%COMP%_node-ring{0%,to{box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}50%{box-shadow:0 0 0 7px #d4b05338}}@media(prefers-reduced-motion:reduce){.prod-step-active[_ngcontent-%COMP%] .prod-step-node[_ngcontent-%COMP%]{animation:none;box-shadow:0 0 0 4px var(--%NS%aastrika-gold-soft)}}.prod-step-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3px;padding-top:3px}.prod-step-name[_ngcontent-%COMP%]{font-size:13px}.prod-step-todo[_ngcontent-%COMP%] .prod-step-name[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);opacity:.65}.prod-step-done[_ngcontent-%COMP%] .prod-step-name[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.prod-step-active[_ngcontent-%COMP%] .prod-step-name[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ink);font-weight:600}.prod-step-detail[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.prod-warn[_ngcontent-%COMP%]{padding:11px 14px;margin-bottom:14px;border-radius:8px;background:var(--%NS%aastrika-warn-bg);border:1px solid rgba(180,120,0,.28);font-size:13px;display:grid;gap:3px}.log-toggle[_ngcontent-%COMP%]{background:none;border:0;padding:4px 0;font:inherit;font-size:12.5px;color:var(--%NS%aastrika-gold-deep);cursor:pointer;text-decoration:underline;text-underline-offset:3px}.log-toggle[_ngcontent-%COMP%]:hover{color:var(--%NS%aastrika-ink)}',".opts[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}.plan-head[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid var(--%NS%aastrika-line)}.plan-title[_ngcontent-%COMP%]{font-size:17px;font-weight:700}.cost[_ngcontent-%COMP%]{text-align:right}.cost-n[_ngcontent-%COMP%]{font-size:22px;font-weight:700;color:var(--%NS%aastrika-gold-deep)}.cost-l[_ngcontent-%COMP%]{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted)}.scene[_ngcontent-%COMP%]{display:grid;grid-template-columns:46px 1fr;gap:14px;padding:14px 0;border-bottom:1px solid var(--%NS%aastrika-line)}@media(max-width:700px){.opts[_ngcontent-%COMP%]{grid-template-columns:1fr}}.types[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:22px}.type[_ngcontent-%COMP%]{text-align:left;padding:14px 16px;border-radius:var(--%NS%aastrika-r);border:1.5px solid var(--%NS%aastrika-line);background:var(--%NS%aastrika-surface);cursor:pointer;display:grid;gap:4px}.type[_ngcontent-%COMP%]:hover:not(:disabled){border-color:var(--%NS%aastrika-line-2)}.type.sel[_ngcontent-%COMP%]{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.type[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-size:13.5px}.type[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted);line-height:1.45}.type[_ngcontent-%COMP%]:disabled{cursor:not-allowed}.cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 280px;gap:22px;align-items:stretch}.cols[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{display:flex;flex-direction:column}.cols[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child textarea[_ngcontent-%COMP%]{flex:1 1 auto;min-height:120px}.side[_ngcontent-%COMP%] .mt[_ngcontent-%COMP%]{margin-top:14px}.check[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:9px;margin-top:12px;font-size:13px;cursor:pointer}.check[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:auto;margin-top:2px}.extras[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px;align-items:start}.extras[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column}.extras[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]{min-height:2.4em}.hint[_ngcontent-%COMP%]{font-size:12px;margin-top:5px}.img-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:7px}.img-name[_ngcontent-%COMP%]{font-size:12px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.img-note[_ngcontent-%COMP%]{flex:1;padding:6px 9px;font-size:12px}.x[_ngcontent-%COMP%]{border:0;background:none;color:var(--%NS%aastrika-muted);font-size:17px;cursor:pointer;line-height:1}.x[_ngcontent-%COMP%]:hover{color:var(--%NS%aastrika-err-fg)}.cost-b[_ngcontent-%COMP%]{font-size:10.5px;color:var(--%NS%aastrika-muted);margin-top:3px}.keys[_ngcontent-%COMP%]{margin:7px 0 0;padding-left:18px;font-size:12.5px;color:var(--%NS%aastrika-ink-2)}.keys[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:2px}.revise[_ngcontent-%COMP%]{margin-top:22px;padding-top:18px;border-top:1px solid var(--%NS%aastrika-line)}.revise-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:14px;margin-top:12px}.revise-voice[_ngcontent-%COMP%]{max-width:280px;flex:1}@media(max-width:900px){.types[_ngcontent-%COMP%], .cols[_ngcontent-%COMP%], .extras[_ngcontent-%COMP%]{grid-template-columns:1fr}.revise-row[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}}.scene[_ngcontent-%COMP%]{display:block;padding:16px 0;border-bottom:1px solid var(--%NS%aastrika-line)}.sh[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;font-weight:600;color:var(--%NS%aastrika-gold-deep);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px}.sh[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child{color:var(--%NS%aastrika-muted);font-weight:400;text-transform:none;letter-spacing:0}.lbl[_ngcontent-%COMP%]{display:block;font-size:11px;color:var(--%NS%aastrika-muted);margin:10px 0 4px}.scene[_ngcontent-%COMP%] .field[_ngcontent-%COMP%]{font-size:13px}.visual-note[_ngcontent-%COMP%]{font-size:13px;color:var(--%NS%aastrika-ok-fg);background:var(--%NS%aastrika-ok-bg);padding:8px 11px;border-radius:8px}.visual-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.img-title[_ngcontent-%COMP%]{font-size:13px}.treat[_ngcontent-%COMP%]{flex:1;min-width:240px;font-size:12px}.attach[_ngcontent-%COMP%]{margin-top:6px;font-size:12px}.tiny[_ngcontent-%COMP%]{padding:5px 11px;font-size:12px}.meta-line[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:var(--%NS%aastrika-muted);margin-top:3px}.voice-why[_ngcontent-%COMP%]{margin:6px 0 0;font-size:12px;color:var(--%NS%aastrika-muted);max-width:52ch}.produce-row[_ngcontent-%COMP%]{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.produce-row[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-decoration:none}.produce-row[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]{color:#b42318;border-color:#f2b8b0}.produce-row[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]:hover{background:#fef3f2}.log[_ngcontent-%COMP%]{background:#3b3330;color:#f1e2c6;font-family:var(--%NS%aastrika-mono);font-size:12px;border-radius:10px;padding:14px;max-height:260px;overflow-y:auto;white-space:pre-wrap;margin:0}.qc[_ngcontent-%COMP%]{font-size:13px;margin:0 0 14px}.qc.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}.qc.bad[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);padding:12px 14px;border-radius:10px}.qc.bad[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 6px}.qc.bad[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding-left:20px}.player[_ngcontent-%COMP%]{width:100%;border-radius:var(--%NS%aastrika-r);background:#000;display:block}.mode-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-gold-deep);margin:12px 0 0}.mode-warn[_ngcontent-%COMP%]{font-size:12.5px;line-height:1.5;margin:12px 0 0;padding:10px 12px;border-radius:8px;border:1px solid rgba(180,120,0,.35);background:#ffc40014}.seg-head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;text-transform:none;letter-spacing:0;font-weight:600}.kf[_ngcontent-%COMP%]{width:88px;height:50px;object-fit:cover;border-radius:6px;border:1px solid var(--%NS%aastrika-line)}.act-sel[_ngcontent-%COMP%]{max-width:250px;font-size:12px;padding:6px 10px}.scene.cut[_ngcontent-%COMP%]{opacity:.55}.scene.cut[_ngcontent-%COMP%] .kf[_ngcontent-%COMP%]{filter:grayscale(1)}.req[_ngcontent-%COMP%]{color:#c0392b;font-weight:700}.field.invalid[_ngcontent-%COMP%]{border-color:#c0392b}.req-hint[_ngcontent-%COMP%]{color:#c0392b;font-size:.82rem;margin:.25rem 0 0}.step-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted, #6b6b63);margin:.1rem 0 1rem;font-size:.9rem}.more-body[_ngcontent-%COMP%]{padding-top:.5rem}.opt-group[_ngcontent-%COMP%]{margin-top:1rem;padding:.9rem 1rem;border:1px dashed rgba(0,0,0,.14);border-radius:10px;background:#00000004}.opt-head[_ngcontent-%COMP%]{font-size:.8rem;font-weight:600;letter-spacing:.02em;color:var(--%NS%aastrika-muted, #6b6b63);margin-bottom:.5rem}.file-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--%NS%aastrika-line, rgba(0,0,0,.14));border-radius:8px;cursor:pointer;font-size:.85rem;color:var(--%NS%aastrika-muted, #5a5a52);background:#fff;transition:border-color .15s,background .15s}.file-btn[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold, #a5872f);background:#00000005}.file-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:16px;height:16px;flex:none}.file-btn.disabled[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}"],changeDetection:1})};var by=()=>({standalone:!0}),Ya=(e,t)=>t.id,qx=(e,t)=>t.code;function Zx(e,t){if(e&1&&(d(0,"div",3),p(1),u()),e&2){let n=v();h(),b(n.error())}}function Yx(e,t){if(e&1&&(d(0,"div",16),p(1),u()),e&2){let n=v();h(),R("",n.files().length," file(s) selected")}}function Qx(e,t){if(e&1&&(d(0,"span",43),p(1),u()),e&2){let n=v().$implicit;h(),b(n.error)}}function Kx(e,t){if(e&1&&(d(0,"span",44),p(1),ut(2,"number"),u()),e&2){let n=v().$implicit;h(),R("",cr(2,1,n.chars)," chars")}}function Jx(e,t){if(e&1){let n=W();d(0,"li")(1,"input",41),A("change",function(){let o=I(n).$implicit,i=v(2);return M(i.toggleSource(o))}),u(),d(2,"span",42),p(3),u(),D(4,Qx,2,1,"span",43)(5,Kx,3,3,"span",44),u()}if(e&2){let n=t.$implicit;ge("bad",n.error)("off",!n.error&&!n.checked),h(),S("checked",n.checked)("disabled",!!n.error),h(2),b(n.name),h(),E(n.error?4:5)}}function Xx(e,t){if(e&1&&(d(0,"ul",18),J(1,Jx,6,8,"li",40,ir),u()),e&2){let n=v();h(),X(n.sources())}}function eS(e,t){if(e&1&&(d(0,"option",25),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),R("\u{1F3AC} ",n.plan?.title||n.filename||n.id)}}function tS(e,t){if(e&1&&(d(0,"option",25),p(1),u()),e&2){let n=t.$implicit;S("value",n.code),h(),b(n.name)}}function nS(e,t){if(e&1&&(d(0,"option",33),p(1),u()),e&2){let n=t.$implicit;S("ngValue",n),h(),b(n)}}function rS(e,t){if(e&1&&(d(0,"option",25),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),b(n.label)}}function oS(e,t){if(e&1&&(d(0,"option",25),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),b(n.label)}}function iS(e,t){if(e&1&&(d(0,"div",53),p(1),u()),e&2){let n=v();h(),R("Quality check corrected ",n.qcFixed," question(s) before showing them.")}}function sS(e,t){if(e&1){let n=W();d(0,"label",68)(1,"input",69),A("change",function(){let o=I(n).$index,i=v().$implicit,s=v(2);return M(s.markCorrect(i,o))}),u(),d(2,"span",70),p(3),u(),d(4,"input",71),A("input",function(o){let i=I(n).$index,s=v().$implicit,a=v(2);return M(a.editOption(s,i,o.target.value))}),u()()}if(e&2){let n=t.$implicit,r=t.$index,o=v(),i=o.$implicit,s=o.$index;ge("correct",r===i.correctIndex),h(),S("name","correct-"+s)("checked",r===i.correctIndex),h(2),b("ABCDEF"[r]),h(),S("value",n)}}function aS(e,t){if(e&1){let n=W();d(0,"textarea",72),te("ngModelChange",function(o){I(n);let i=v().$implicit;return ne(i.explanation,o)||(i.explanation=o),M(o)}),A("ngModelChange",function(){I(n);let o=v(3);return M(o.touched())}),u(),z(),d(1,"p",73),p(2),u()}if(e&2){let n=v().$implicit;ee("ngModel",n.explanation),S("ngModelOptions",ze(3,by)),G(),h(2),R("Source: ",n.sourceRef)}}function cS(e,t){if(e&1){let n=W();d(0,"div",54)(1,"div",59)(2,"span",60),p(3),u(),d(4,"div",61)(5,"textarea",62),te("ngModelChange",function(o){let i=I(n).$implicit;return ne(i.question,o)||(i.question=o),M(o)}),A("ngModelChange",function(){I(n);let o=v(2);return M(o.touched())}),u(),z(),d(6,"div",63),J(7,sS,5,6,"label",64,ir),u(),d(9,"div",65)(10,"span",66),p(11),u(),d(12,"span",66),p(13),u(),d(14,"button",67),A("click",function(){let o=I(n).$implicit,i=v(2);return M(i.toggle(o.id))}),p(15),u()(),D(16,aS,3,4),u()()()}if(e&2){let n=t.$implicit,r=t.$index,o=v(2);h(3),b(r+1),h(2),ee("ngModel",n.question),S("ngModelOptions",ze(7,by)),G(),h(2),X(n.options),h(4),b(n.difficulty),h(2),b(n.bloom),h(2),R(" ",o.revealed()[n.id]?"Hide explanation":"Show explanation"," "),h(),E(o.revealed()[n.id]?16:-1)}}function lS(e,t){if(e&1){let n=W();d(0,"section",5)(1,"div",6)(2,"span",7),p(3,"3"),u(),d(4,"h2",8),p(5,"Review questions"),u(),d(6,"span",45),p(7,"\u2014 edit anything, tick the correct option, then download"),u()(),d(8,"div",46)(9,"div")(10,"div",47),p(11),u(),d(12,"div",48),p(13),u()(),d(14,"div",49)(15,"button",50),A("click",function(){I(n);let o=v();return M(o.export("xlsx"))}),p(16,"\u2B07 Download Excel (.xlsx)"),u(),d(17,"button",51),A("click",function(){I(n);let o=v();return M(o.export("csv"))}),p(18,"\u2B07 CSV"),u(),d(19,"button",52),A("click",function(){I(n);let o=v();return M(o.deleteQuiz.ask(o.result()))}),p(20," \u{1F5D1} Delete quiz "),u()()(),D(21,iS,2,1,"div",53),J(22,cS,17,8,"div",54,Ya),d(24,"div",55)(25,"button",56),A("click",function(){I(n);let o=v();return M(o.save())}),p(26),u(),d(27,"span",57),p(28,"Save before downloading so the export matches what you see."),u()(),d(29,"p",58),p(30," Format: Question \xB7 Option 1\u2026N \xB7 Correct Answer. The Excel file has a second sheet with difficulty, Bloom's level, source reference and explanations. "),u()()}if(e&2){let n=t,r=v();h(11),b(n.assessment.title),h(2),R("",n.assessment.questions.length," questions"),h(6),S("disabled",r.deleteQuiz.busy()),h(2),E(n.qcFixed?21:-1),h(),X(n.assessment.questions),h(3),S("disabled",r.saving()),h(),R(" ",r.saving()?"Saving\u2026":r.saved()?"\u2713 Saved":"Save edits"," ")}}var Qa=class e{api=C(Ut);destroyRef=C(ue);get untilGone(){return t=>t.pipe(to(this.destroyRef))}files=F([]);sources=F([]);reading=F(!1);generating=F(!1);result=F(null);error=F("");revealed=F({});languages=F([]);pastVideos=F([]);defaultLanguage=dt(void 0);defaultQuestionCount=dt(void 0);defaultDifficulty=dt(void 0);assessmentReady=En();seeded=!1;links="";brief="";sourceJobId="";language="hi";numQuestions=10;numOptions=4;difficulty="mixed";bloom="mixed";optionCounts=[2,3,4,5,6];difficulties=[{id:"mixed",label:"Mixed (30% easy \xB7 45% medium \xB7 25% hard)"},{id:"easy",label:"Easy \u2014 direct recall"},{id:"medium",label:"Medium \u2014 comprehension"},{id:"hard",label:"Hard \u2014 close distractors"}];blooms=[{id:"mixed",label:"Mixed (remember \xB7 understand \xB7 apply)"},{id:"apply",label:"Application-oriented \u2014 field scenarios"},{id:"understand",label:"Understanding \u2014 explain why"},{id:"remember",label:"Recall \u2014 facts & definitions"}];constructor(){_t(()=>{let t=this.defaultLanguage(),n=this.defaultQuestionCount(),r=this.defaultDifficulty();this.seeded||(t&&(this.language=t),n&&(this.numQuestions=n),r&&(this.difficulty=r),(t||n||r)&&(this.seeded=!0))}),this.api.languages().pipe(this.untilGone).subscribe({next:t=>{let n=Object.entries(t).map(([r,o])=>({code:r,name:o}));this.languages.set(n)},error:t=>{le(t,"assessment"),this.languages.set([{code:"hi",name:"Hindi"},{code:"en",name:"English"}])}}),this.api.studioJobs().pipe(this.untilGone).subscribe({next:t=>this.pastVideos.set(t.filter(n=>n.plan)),error:t=>{le(t,"assessment")}})}chooseFiles(t){this.files.set(Array.from(t.target.files??[]))}readSources(){!this.files().length&&!this.links.trim()||(this.error.set(""),this.reading.set(!0),this.api.readSources(this.files(),this.links,this.language).pipe(this.untilGone).subscribe({next:t=>{let n=(t.sources||[]).map(r=>$(V({},r),{checked:!r.error}));this.sources.update(r=>[...r,...n]),this.reading.set(!1)},error:t=>{this.error.set(le(t,"assessment")),this.reading.set(!1)}}))}get readySources(){return this.sources().filter(t=>!t.error&&t.checked)}toggleSource(t){t.error||(t.checked=!t.checked,this.sources.update(n=>[...n]))}generate(){!this.readySources.length&&!this.sourceJobId||(this.error.set(""),this.generating.set(!0),this.result.set(null),this.api.generateAssessment({language:this.language,numQuestions:Number(this.numQuestions),numOptions:Number(this.numOptions),difficulty:this.difficulty,bloom:this.bloom,userPrompt:this.brief||void 0,sourceIds:this.readySources.map(t=>t.id).filter(Boolean),sourceJobId:this.sourceJobId||void 0}).pipe(this.untilGone).subscribe({next:t=>{this.result.set(t),this.generating.set(!1),this.assessmentReady.emit({jobId:t.jobId,questionCount:t.assessment?.questions?.length??0,language:this.language})},error:t=>{this.error.set(le(t,"assessment")),this.generating.set(!1)}}))}toggle(t){this.revealed.update(n=>$(V({},n),{[t]:!n[t]}))}saving=F(!1);saved=F(!1);markCorrect(t,n){t.correctIndex=n,this.saved.set(!1)}editOption(t,n,r){t.options[n]=r,this.saved.set(!1)}touched(){this.saved.set(!1)}save(){let t=this.result();t&&(this.saving.set(!0),this.api.saveAssessment(t.jobId,t.assessment).pipe(this.untilGone).subscribe({next:()=>{this.saving.set(!1),this.saved.set(!0)},error:n=>{this.error.set(le(n,"assessment")),this.saving.set(!1)}}))}export(t){let n=this.result();n&&hr({feature:"assessment",lookup:this.api.exportUrl(n.jobId,t),fallbackHref:this.api.exportHref(n.jobId,t),onError:r=>this.error.set(r)})}deleteQuiz=lo({feature:"assessment",request:t=>this.api.deleteQuiz(t.jobId),onDeleted:()=>this.result.set(null),onError:t=>this.error.set(t),fallback:"Could not delete the quiz"});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=rn({type:e,selectors:[["aa-assessment"]],inputs:{defaultLanguage:[1,"defaultLanguage"],defaultQuestionCount:[1,"defaultQuestionCount"],defaultDifficulty:[1,"defaultDifficulty"]},outputs:{assessmentReady:"assessmentReady"},decls:78,vars:21,consts:[[1,"eyebrow"],[1,"page-title"],[1,"page-sub"],["role","alert",1,"card","card-pad","err-box"],[1,"steps"],[1,"card","card-pad"],[1,"step-h"],[1,"step-n"],[1,"step-t"],[1,"step-lead"],[1,"src-cols"],["rows","3","placeholder",`Paste links here, one per line \u2014 Google Drive file/folder links, S3 links
15
15
  https://drive.google.com/file/d/\u2026
16
- https://bucket.s3.ap-south-1.amazonaws.com/\u2026`,1,"field",3,"ngModelChange","ngModel"],[1,"warn-note"],[1,"src-side"],[1,"btn","btn-ghost","pick"],["type","file","hidden","","multiple","","accept",".pdf,.docx,.txt,.md,.srt,.csv,.mp4,.mov,.mkv,.webm,.m4v,.mp3,.m4a,.wav,.aac",3,"change"],[1,"hint","ok"],[1,"btn","full",3,"click","disabled"],[1,"src-list"],[1,"cols"],["for","ab",1,"label"],["id","ab","rows","3","placeholder","e.g. focus on danger signs and referral decisions; use field-scenario questions with named beneficiaries",1,"field",3,"ngModelChange","ngModel"],["for","asrc",1,"label","mt"],["id","asrc",1,"field",3,"ngModelChange","ngModel"],["value",""],[3,"value"],[1,"side"],["for","alang",1,"label"],["id","alang",1,"field",3,"ngModelChange","ngModel"],["for","acount",1,"label","mt"],["id","acount","type","number","min","1","max","60",1,"field",3,"ngModelChange","ngModel"],["for","aopts",1,"label","mt"],["id","aopts",1,"field",3,"ngModelChange","ngModel"],[3,"ngValue"],["for","adiff",1,"label","mt"],["id","adiff",1,"field",3,"ngModelChange","ngModel"],["for","abloom",1,"label","mt"],["id","abloom",1,"field",3,"ngModelChange","ngModel"],[1,"btn","mt-lg",3,"click","disabled"],["title","Delete quiz?","message","This removes the quiz and any exports it wrote to storage. This cannot be undone.","confirmLabel","Delete quiz",3,"confirmed","cancelled","open","subject","busy"],[3,"bad","off"],["type","checkbox","title","include this source",3,"change","checked","disabled"],[1,"src-name"],[1,"chip","err"],[1,"mono","muted"],[1,"step-note"],[1,"q-head"],[1,"q-title"],[1,"muted","mono"],[1,"exports"],["type","button",1,"btn",3,"click"],["type","button",1,"btn","btn-ghost",3,"click"],["type","button",1,"btn","btn-ghost","btn-danger",3,"click","disabled"],[1,"qc-note"],[1,"q"],[1,"save-row"],[1,"btn","btn-ghost",3,"click","disabled"],[1,"muted","save-hint"],[1,"muted","note"],[1,"q-top"],[1,"q-n","mono"],[1,"q-body"],["rows","2",1,"field","q-text-edit",3,"ngModelChange","ngModel","ngModelOptions"],[1,"q-opts"],[1,"opt",3,"correct"],[1,"q-foot"],[1,"tag"],[1,"reveal",3,"click"],[1,"opt"],["type","radio","title","mark as correct",3,"change","name","checked"],[1,"q-letter","mono"],[1,"opt-text",3,"input","value"],["rows","2",1,"field","q-exp-edit",3,"ngModelChange","ngModel","ngModelOptions"],[1,"q-src","mono"]],template:function(n,r){if(n&1&&(d(0,"p",0),p(1,"Assessment"),u(),d(2,"h1",1),p(3,"Turn source material into a question set"),u(),d(4,"p",2),p(5,"Files and links in, validated multiple-choice questions out, exportable to Excel or CSV."),u(),b(6,BS,2,1,"div",3),d(7,"div",4)(8,"section",5)(9,"div",6)(10,"span",7),p(11,"1"),u(),d(12,"h2",8),p(13,"Sources"),u()(),d(14,"p",9),p(15,"Files (PDF, Word, TXT, video, audio) and/or links, any mix. Videos are transcribed automatically."),u(),d(16,"div",10)(17,"div")(18,"textarea",11),te("ngModelChange",function(i){return ne(r.links,i)||(r.links=i),i}),u(),$(),d(19,"div",12),p(20," \u26A0 Drive links must be shared as "),d(21,"b"),p(22,'"Anyone with the link \u2013 Viewer"'),u(),p(23," \u2014 private links can't be read. "),u()(),d(24,"div",13)(25,"label",14)(26,"input",15),N("change",function(i){return r.chooseFiles(i)}),u(),p(27," \u{1F4CE} Choose files\u2026 "),u(),b(28,HS,2,1,"div",16),d(29,"button",17),N("click",function(){return r.readSources()}),p(30),u()()(),b(31,GS,3,0,"ul",18),u(),d(32,"section",5)(33,"div",6)(34,"span",7),p(35,"2"),u(),d(36,"h2",8),p(37,"Settings"),u()(),d(38,"div",19)(39,"div")(40,"label",20),p(41,"Instructions (optional) \u2014 focus areas, style, anything specific"),u(),d(42,"textarea",21),te("ngModelChange",function(i){return ne(r.brief,i)||(r.brief=i),i}),u(),$(),d(43,"label",22),p(44,"Also include a past video's script (optional)"),u(),d(45,"select",23),te("ngModelChange",function(i){return ne(r.sourceJobId,i)||(r.sourceJobId=i),i}),d(46,"option",24),p(47,"\u2014 no \u2014"),u(),J(48,WS,2,2,"option",25,$a),u(),$(),u(),d(50,"div",26)(51,"label",27),p(52,"Language"),u(),d(53,"select",28),te("ngModelChange",function(i){return ne(r.language,i)||(r.language=i),i}),J(54,qS,2,2,"option",25,jS),u(),$(),d(56,"label",29),p(57,"Number of questions"),u(),d(58,"input",30),te("ngModelChange",function(i){return ne(r.numQuestions,i)||(r.numQuestions=i),i}),u(),$(),d(59,"label",31),p(60,"Options per question"),u(),d(61,"select",32),te("ngModelChange",function(i){return ne(r.numOptions,i)||(r.numOptions=i),i}),J(62,ZS,2,2,"option",33,Wo),u(),$(),d(64,"label",34),p(65,"Difficulty"),u(),d(66,"select",35),te("ngModelChange",function(i){return ne(r.difficulty,i)||(r.difficulty=i),i}),J(67,YS,2,2,"option",25,$a),u(),$(),d(69,"label",36),p(70,"Bloom's level"),u(),d(71,"select",37),te("ngModelChange",function(i){return ne(r.bloom,i)||(r.bloom=i),i}),J(72,QS,2,2,"option",25,$a),u(),$(),u()(),d(74,"button",38),N("click",function(){return r.generate()}),p(75),u()(),b(76,tx,31,6,"section",5),u(),d(77,"aa-confirm-dialog",39),N("confirmed",function(){return r.deleteQuiz.confirm()})("cancelled",function(){return r.deleteQuiz.cancel()}),u()),n&2){let o;h(6),E(r.error()?6:-1),h(12),ee("ngModel",r.links),z(),h(10),E(r.files().length?28:-1),h(),S("disabled",r.reading()||!r.files().length&&!r.links.trim()),h(),R(" ",r.reading()?"Reading\u2026":"Read sources"," "),h(),E(r.sources().length?31:-1),h(),pe("dim",!r.readySources.length&&!r.sourceJobId),h(10),ee("ngModel",r.brief),z(),h(3),ee("ngModel",r.sourceJobId),z(),h(3),X(r.pastVideos()),h(5),ee("ngModel",r.language),z(),h(),X(r.languages()),h(4),ee("ngModel",r.numQuestions),z(),h(3),ee("ngModel",r.numOptions),z(),h(),X(r.optionCounts),h(4),ee("ngModel",r.difficulty),z(),h(),X(r.difficulties),h(4),ee("ngModel",r.bloom),z(),h(),X(r.blooms),h(2),S("disabled",r.generating()||!r.readySources.length&&!r.sourceJobId),h(),R(" ",r.generating()?"Generating\u2026":"Generate questions"," "),h(),E((o=r.result())?76:-1,o),h(),S("open",r.deleteQuiz.open())("subject",r.result()?.assessment?.title??"")("busy",r.deleteQuiz.busy())}},dependencies:[Cn,to,ja,Ba,Dn,Md,eo,Xr,Sd,wd,cr,bn,ni],styles:['[_ngcontent-%COMP%]:root, [_nghost-%COMP%]{--%NS%aastrika-cream: #F7EFE1;--%NS%aastrika-cream-soft: #FBF6EC;--%NS%aastrika-bg: #F7F7F5;--%NS%aastrika-surface: #FFFFFF;--%NS%aastrika-surface-2: #FAFAF8;--%NS%aastrika-ink: #1A1A1A;--%NS%aastrika-ink-2: #4A4A48;--%NS%aastrika-muted: #8A8A85;--%NS%aastrika-gold: #A98229;--%NS%aastrika-gold-soft: #F3E7CB;--%NS%aastrika-gold-deep: #7C5F16;--%NS%aastrika-line: #ECEAE4;--%NS%aastrika-line-2: #DFDCD2;--%NS%aastrika-ok-bg: #E6F4EA;--%NS%aastrika-ok-fg: #1E7A3C;--%NS%aastrika-warn-bg: #FDF1DC;--%NS%aastrika-warn-fg: #8A6410;--%NS%aastrika-err-bg: #FBE9E7;--%NS%aastrika-err-fg: #A3271F;--%NS%aastrika-r-sm: 8px;--%NS%aastrika-r: 12px;--%NS%aastrika-r-lg: 16px;--%NS%aastrika-rail: 264px;--%NS%aastrika-shadow: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.04);--%NS%aastrika-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--%NS%aastrika-mono: ui-monospace, SFMono-Regular, Menlo, monospace}','.eyebrow[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--%NS%aastrika-gold-deep);margin-bottom:10px}.page-title[_ngcontent-%COMP%]{font-size:30px;line-height:1.15;margin-bottom:8px}.page-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:14.5px;margin-bottom:28px;max-width:62ch}.card[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);border:1px solid var(--%NS%aastrika-line);border-radius:var(--%NS%aastrika-r-lg);box-shadow:var(--%NS%aastrika-shadow)}.card-pad[_ngcontent-%COMP%]{padding:26px 28px}.label[_ngcontent-%COMP%]{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);margin-bottom:7px}.field[_ngcontent-%COMP%]{width:100%;padding:11px 14px;background:var(--%NS%aastrika-surface-2);border:1px solid var(--%NS%aastrika-line);border-radius:10px;outline:none}.field[_ngcontent-%COMP%]:focus{border-color:var(--%NS%aastrika-gold);box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:10px;border:1px solid transparent;background:var(--%NS%aastrika-gold);color:#fff;font-weight:600;cursor:pointer}.btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-gold-deep)}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.btn-ghost[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);border-color:var(--%NS%aastrika-line-2)}.btn-ghost[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg)}.chip[_ngcontent-%COMP%]:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.chip.warn[_ngcontent-%COMP%]{background:var(--%NS%aastrika-warn-bg);color:var(--%NS%aastrika-warn-fg)}.chip.err[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);color:var(--%NS%aastrika-err-fg)}.grid[_ngcontent-%COMP%]{display:grid;gap:22px}.mono[_ngcontent-%COMP%]{font-family:var(--%NS%aastrika-mono);font-variant-numeric:tabular-nums}.muted[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}',".steps[_ngcontent-%COMP%]{display:grid;gap:18px;max-width:860px}.step-h[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:18px}.step-n[_ngcontent-%COMP%]{width:26px;height:26px;border-radius:50%;background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);display:grid;place-items:center;font-size:11px;font-weight:700}.step-t[_ngcontent-%COMP%]{font-size:15px}.dim[_ngcontent-%COMP%]{opacity:.55}.err-box[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);border-color:transparent;margin-bottom:18px}.drop[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:5px;padding:34px;border:1.5px dashed var(--%NS%aastrika-line-2);border-radius:var(--%NS%aastrika-r);cursor:pointer;background:var(--%NS%aastrika-surface-2)}.drop[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.drop-main[_ngcontent-%COMP%]{font-weight:600}.drop-sub[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.picked[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.picked-name[_ngcontent-%COMP%]{font-weight:600}.picked-meta[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted)}.opts[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.q-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--%NS%aastrika-line)}.q-title[_ngcontent-%COMP%]{font-size:17px;font-weight:700}.exports[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap}.exports[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-decoration:none;padding:8px 14px}.exports[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]{color:#b42318;border-color:#f2b8b0}.exports[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]:hover{background:#fef3f2}.q[_ngcontent-%COMP%]{padding:16px 0;border-bottom:1px solid var(--%NS%aastrika-line)}.q[_ngcontent-%COMP%]:last-of-type{border-bottom:0}.q-top[_ngcontent-%COMP%]{display:grid;grid-template-columns:30px 1fr;gap:12px}.q-n[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:12px;padding-top:2px}.q-text[_ngcontent-%COMP%]{margin:0 0 10px;font-weight:500}.q-opts[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:grid;gap:5px}.q-opts[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;gap:10px;padding:7px 11px;border-radius:8px;background:var(--%NS%aastrika-surface-2);font-size:13.5px}.q-opts[_ngcontent-%COMP%] li.right[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg);font-weight:600}.q-letter[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.q-opts[_ngcontent-%COMP%] li.right[_ngcontent-%COMP%] .q-letter[_ngcontent-%COMP%]{color:inherit}.q-foot[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:10px}.tag[_ngcontent-%COMP%]{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--%NS%aastrika-muted);background:var(--%NS%aastrika-surface-2);padding:3px 8px;border-radius:999px}.reveal[_ngcontent-%COMP%]{margin-left:auto;background:none;border:0;color:var(--%NS%aastrika-gold-deep);font-size:12.5px;font-weight:600;cursor:pointer}.reveal[_ngcontent-%COMP%]:hover{text-decoration:underline}.q-exp[_ngcontent-%COMP%]{margin:10px 0 0;font-size:13px;color:var(--%NS%aastrika-ink-2)}.q-src[_ngcontent-%COMP%]{margin:4px 0 0;font-size:11.5px;color:var(--%NS%aastrika-muted)}@media(max-width:760px){.opts[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}.step-lead[_ngcontent-%COMP%]{font-size:13px;color:var(--%NS%aastrika-muted);margin:-8px 0 14px}.src-cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 220px;gap:16px;align-items:start}.src-side[_ngcontent-%COMP%]{display:grid;gap:8px}.pick[_ngcontent-%COMP%]{justify-content:center;cursor:pointer}.full[_ngcontent-%COMP%]{width:100%;justify-content:center}.warn-note[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-warn-fg);background:var(--%NS%aastrika-warn-bg);padding:8px 11px;border-radius:8px;margin-top:8px}.hint[_ngcontent-%COMP%]{font-size:12px}.hint.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}.src-list[_ngcontent-%COMP%]{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:6px}.src-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:13px;padding:8px 11px;background:var(--%NS%aastrika-surface-2);border-radius:8px}.src-list[_ngcontent-%COMP%] li.bad[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg)}.src-name[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 300px;gap:22px;align-items:start}.side[_ngcontent-%COMP%] .mt[_ngcontent-%COMP%], .mt[_ngcontent-%COMP%]{margin-top:14px}.mt-lg[_ngcontent-%COMP%]{margin-top:22px}.step-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted);font-weight:400}.qc-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-warn-fg);background:var(--%NS%aastrika-warn-bg);padding:9px 12px;border-radius:8px;margin:14px 0 4px}.note[_ngcontent-%COMP%]{font-size:12.5px;margin-top:16px}.exports[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-decoration:none}@media(max-width:900px){.src-cols[_ngcontent-%COMP%], .cols[_ngcontent-%COMP%]{grid-template-columns:1fr}}.q-text-edit[_ngcontent-%COMP%]{font-weight:500;margin-bottom:8px}.opt[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:6px 11px;border-radius:8px;background:var(--%NS%aastrika-surface-2);font-size:13.5px;cursor:pointer}.opt.correct[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg);font-weight:600}.opt[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{width:auto;margin:0;accent-color:var(--%NS%aastrika-gold);cursor:pointer}.opt-text[_ngcontent-%COMP%]{flex:1;border:0;background:none;padding:2px 0;font:inherit;color:inherit;outline:none}.opt-text[_ngcontent-%COMP%]:focus{border-bottom:1px solid var(--%NS%aastrika-gold)}.q-exp-edit[_ngcontent-%COMP%]{margin-top:10px;font-size:13px}.save-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;margin-top:18px;padding-top:16px;border-top:1px solid var(--%NS%aastrika-line)}.save-hint[_ngcontent-%COMP%]{font-size:12.5px}.src-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{width:auto;margin:0;accent-color:var(--%NS%aastrika-gold)}.src-list[_ngcontent-%COMP%] li.off[_ngcontent-%COMP%]{opacity:.5}"],changeDetection:1})};var nx=(e,t)=>t.creator,py=(e,t)=>t.id;function rx(e,t){e&1&&(d(0,"p",3),p(1,"Loading\u2026"),u())}function ox(e,t){if(e&1&&(d(0,"div",4)(1,"p",3),p(2),u()()),e&2){let n=v();h(2),C(n.error())}}function ix(e,t){if(e&1){let n=G();d(0,"div",6),p(1," Showing: "),d(2,"b"),p(3),u(),d(4,"a",25),N("click",function(o){return I(n),v(3).clearFilter(),M(o.preventDefault())}),p(5,"\u2715 all users"),u()()}if(e&2){let n=v(3);h(3),C(n.selectedCreator())}}function sx(e,t){if(e&1){let n=G();d(0,"tr",26),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.toggleCreator(o.creator))}),d(1,"td")(2,"b"),p(3),u()(),d(4,"td",27),p(5),u(),d(6,"td",27),p(7),u(),d(8,"td",27),p(9),u(),d(10,"td",27),p(11),u(),d(12,"td",27)(13,"b"),p(14),u()(),d(15,"td",3),p(16),lt(17,"date"),u(),d(18,"td",28),p(19),u()()}if(e&2){let n=t.$implicit,r=v(3);pe("sel",r.selectedCreator()===n.creator),h(3),C(n.creator),h(2),C(n.videos),h(2),C(n.quizzes),h(2),R("$",n.videoSpendUsd),h(2),R("$",n.quizSpendUsd),h(3),R("$",n.spendUsd),h(2),C(n.lastActive?or(17,10,n.lastActive,"d MMM yyyy"):"\u2014"),h(3),C(r.selectedCreator()===n.creator?"\u2713 selected":"view activity \u2192")}}function ax(e,t){e&1&&(d(0,"tr")(1,"td",29),p(2,"No activity recorded yet."),u()())}function cx(e,t){e&1&&(d(0,"span",3),p(1," est."),u())}function lx(e,t){if(e&1){let n=G();d(0,"button",33),N("click",function(){I(n);let o=v().$implicit,i=v(3);return M(i.watch(o.id))}),p(1,"\u25B6 view"),u()}}function ux(e,t){if(e&1){let n=G();d(0,"tr")(1,"td"),p(2),u(),d(3,"td"),p(4),u(),d(5,"td"),p(6),u(),d(7,"td")(8,"span"),p(9),u()(),d(10,"td",27),p(11),u(),d(12,"td",27),p(13),b(14,cx,2,0,"span",3),u(),d(15,"td",3),p(16),lt(17,"date"),u(),d(18,"td",30),b(19,lx,2,0,"button",31),d(20,"button",32),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.deleteItem.ask(o))}),p(21," \u{1F5D1} delete "),u()()()}if(e&2){let n=t.$implicit,r=v(3);h(2),C(n.title),h(2),C(n.creator),h(2),C(n.videoType),h(2),$r(r.pill(n.status)),h(),C(n.status),h(2),C(n.feedbackRounds||""),h(2),R("$",n.costUsd),h(),E(n.costEstimated?14:-1),h(2),C(n.createdAt?or(17,12,n.createdAt,"d MMM yyyy"):"\u2014"),h(3),E(n.video?19:-1),h(),S("title","Delete "+n.title)}}function dx(e,t){e&1&&(d(0,"tr")(1,"td",29),p(2,"No videos for this user."),u()())}function fx(e,t){e&1&&(d(0,"span",3),p(1," est."),u())}function px(e,t){if(e&1){let n=G();d(0,"tr")(1,"td"),p(2),u(),d(3,"td"),p(4),u(),d(5,"td",27),p(6),u(),d(7,"td"),p(8),u(),d(9,"td")(10,"span"),p(11),u()(),d(12,"td",27),p(13),b(14,fx,2,0,"span",3),u(),d(15,"td",3),p(16),lt(17,"date"),u(),d(18,"td",30)(19,"button",34),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.export(o.id))}),p(20,"\u2B07 export"),u(),d(21,"button",32),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.deleteItem.ask(o))}),p(22," \u{1F5D1} delete "),u()()()}if(e&2){let n=t.$implicit,r=v(3);h(2),C(n.title),h(2),C(n.creator),h(2),C(n.questions),h(2),C(n.language),h(2),$r(r.pill(n.status)),h(),C(n.status),h(2),R("$",n.costUsd),h(),E(n.costEstimated?14:-1),h(2),C(n.createdAt?or(17,11,n.createdAt,"d MMM yyyy"):"\u2014"),h(5),S("title","Delete "+n.title)}}function hx(e,t){e&1&&(d(0,"tr")(1,"td",29),p(2,"No assessments yet."),u()())}function gx(e,t){if(e&1&&(d(0,"p",24),p(1),u()),e&2){let n=v();h(),nr(" Showing the ",n.items.length," most recent of ",n.page.total," items. Totals above cover all ",n.page.total,". ")}}function mx(e,t){if(e&1){let n=G();b(0,ix,6,1,"div",6),d(1,"div",7)(2,"div",8)(3,"span",9),p(4),u(),d(5,"span",10),p(6,"Videos"),u()(),d(7,"div",8)(8,"span",9),p(9),u(),d(10,"span",10),p(11,"Completed"),u()(),d(12,"div",8)(13,"span",9),p(14),u(),d(15,"span",10),p(16,"Assessments"),u()(),d(17,"div",8)(18,"span",9),p(19),u(),d(20,"span",10),p(21,"People"),u()(),d(22,"div",11)(23,"span",9),p(24),u(),d(25,"span",10),p(26,"Estimated spend"),u()()(),d(27,"div",12)(28,"h2",13),p(29,"Where the money went"),u(),d(30,"div",14),je(31,"i",15)(32,"i",16),u(),d(33,"div",17)(34,"span"),je(35,"i",18),p(36),u(),d(37,"span"),je(38,"i",19),p(39),u()()(),d(40,"div",12)(41,"h2",13),p(42,"Users"),u(),d(43,"input",20),N("ngModelChange",function(o){I(n);let i=v(2);return M(i.search.set(o))}),u(),$(),d(44,"div",21)(45,"table")(46,"thead")(47,"tr")(48,"th"),p(49,"User"),u(),d(50,"th",22),p(51,"Videos"),u(),d(52,"th",22),p(53,"Assessments"),u(),d(54,"th",22),p(55,"Video spend"),u(),d(56,"th",22),p(57,"Assessment spend"),u(),d(58,"th",22),p(59,"Total spend"),u(),d(60,"th"),p(61,"Last active"),u(),je(62,"th"),u()(),d(63,"tbody"),J(64,sx,20,13,"tr",23,nx,!1,ax,3,0,"tr"),u()()()(),d(67,"div",12)(68,"h2",13),p(69,"Videos"),u(),d(70,"div",21)(71,"table")(72,"thead")(73,"tr")(74,"th"),p(75,"Title"),u(),d(76,"th"),p(77,"Creator"),u(),d(78,"th"),p(79,"Type"),u(),d(80,"th"),p(81,"Status"),u(),d(82,"th",22),p(83,"Feedback rounds"),u(),d(84,"th",22),p(85,"Cost (USD)"),u(),d(86,"th"),p(87,"Date"),u(),je(88,"th"),u()(),d(89,"tbody"),J(90,ux,22,15,"tr",null,py,!1,dx,3,0,"tr"),u()()()(),d(93,"div",12)(94,"h2",13),p(95,"Assessments"),u(),d(96,"div",21)(97,"table")(98,"thead")(99,"tr")(100,"th"),p(101,"Title"),u(),d(102,"th"),p(103,"Creator"),u(),d(104,"th",22),p(105,"Questions"),u(),d(106,"th"),p(107,"Language"),u(),d(108,"th"),p(109,"Status"),u(),d(110,"th",22),p(111,"Cost (USD)"),u(),d(112,"th"),p(113,"Date"),u(),je(114,"th"),u()(),d(115,"tbody"),J(116,px,23,14,"tr",null,py,!1,hx,3,0,"tr"),u()()()(),b(119,gx,2,3,"p",24)}if(e&2){let n=t,r=v(2);E(r.selectedCreator()?0:-1),h(4),C(n.totals.videos),h(5),C(n.totals.videosDone),h(5),C(n.totals.quizzes),h(5),C(n.totals.creators),h(5),R("$",n.totals.spendUsd),h(6),tn("aria-label","Videos "+r.split().video+"%, assessments "+r.split().assess+"%"),h(),tr("width",r.split().video,"%"),S("title","Videos: $"+n.totals.videoSpendUsd),h(),tr("width",r.split().assess,"%"),S("title","Assessments: $"+n.totals.quizSpendUsd),h(4),bt(" Videos $",n.totals.videoSpendUsd," (",r.split().video,"%)"),h(3),bt(" Assessments $",n.totals.quizSpendUsd," (",r.split().assess,"%)"),h(4),S("ngModel",r.search()),z(),h(21),X(r.creators()),h(26),X(r.videos()),h(26),X(r.assessments()),h(3),E(r.truncated()?119:-1)}}function yx(e,t){if(e&1&&b(0,mx,120,22),e&2){let n,r=v();E((n=r.report())?0:-1,n)}}var Ga=class e{api=D(jt);static PAGE_SIZE=500;report=L(null);error=L("");loading=L(!0);search=L("");selectedCreator=L(null);ngOnInit(){this.api.usageReport({limit:e.PAGE_SIZE}).subscribe({next:t=>{this.report.set(t),this.loading.set(!1)},error:t=>{this.error.set(he(t,{401:"Please sign in to view usage."},"Could not load usage")),this.loading.set(!1)}})}truncated=ae(()=>{let t=this.report();return t?t.page.total>t.items.length:!1});creators=ae(()=>{let t=this.search().toLowerCase();return(this.report()?.creators??[]).filter(n=>n.creator.toLowerCase().includes(t))});ofType(t){let n=this.selectedCreator();return(this.report()?.items??[]).filter(r=>r.type===t&&(!n||r.creator===n))}videos=ae(()=>this.ofType("video"));assessments=ae(()=>this.ofType("assessment"));split=ae(()=>{let t=this.report()?.totals;return!t||!t.spendUsd?{video:0,assess:0}:{video:Math.round(t.videoSpendUsd/t.spendUsd*100),assess:Math.round(t.quizSpendUsd/t.spendUsd*100)}});toggleCreator(t){this.selectedCreator.update(n=>n===t?null:t)}clearFilter(){this.selectedCreator.set(null)}export(t){lr({lookup:this.api.exportUrl(t),fallbackHref:this.api.exportHref(t),onError:n=>this.error.set(n)})}watch(t){lr({lookup:this.api.job(t).pipe(be(n=>({url:n.videoUrl??n.video??null,filename:""}))),fallbackHref:this.api.downloadVideoHref(t),onError:n=>this.error.set(n)})}deleteItem=no({request:t=>t.type==="video"?this.api.deleteVideo(t.id):this.api.deleteQuiz(t.id),onDeleted:()=>this.refresh(()=>{}),onError:t=>this.error.set(t),fallback:"Could not delete it",byStatus:{403:"You do not have permission to delete that."}});deleteLabel=ae(()=>this.deleteItem.pending()?.type==="video"?"Delete video":"Delete quiz");deleteMessage=ae(()=>{let t=this.deleteItem.pending();return t?`This removes the ${t.type==="video"?"video":"quiz"} and its stored files permanently. This cannot be undone.`:""});refresh(t){this.api.usageReport({limit:e.PAGE_SIZE}).subscribe({next:n=>{this.report.set(n),this.error.set(""),t()},error:n=>{this.error.set(he(n,{},"Deleted, but the page could not refresh")),t()}})}pill(t){return t==="done"?"chip":t==="failed"||t==="error"?"chip err":"chip warn"}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=en({type:e,selectors:[["aa-reports"]],decls:10,vars:7,consts:[[1,"eyebrow"],[1,"page-title"],[1,"page-sub"],[1,"muted"],[1,"card","card-pad"],[3,"confirmed","cancelled","open","title","subject","message","confirmLabel","busy"],[1,"filter-bar"],[1,"tiles"],[1,"card","tile"],[1,"tile-n","mono"],[1,"tile-l"],[1,"card","tile","accent"],[1,"card","card-pad","panel"],[1,"section-h"],["role","img",1,"split"],[1,"seg-v",3,"title"],[1,"seg-a",3,"title"],[1,"legend"],[1,"dot","v"],[1,"dot","a"],["placeholder","Search user\u2026",1,"field","search",3,"ngModelChange","ngModel"],[1,"tw"],[1,"num"],[1,"clickable",3,"sel"],[1,"sources","mono"],["href","#",3,"click"],[1,"clickable",3,"click"],[1,"num","mono"],[1,"act"],["colspan","8",1,"muted"],[1,"row-actions"],["type","button","title","View video",1,"act-btn"],["type","button",1,"act-btn","danger",3,"click","title"],["type","button","title","View video",1,"act-btn",3,"click"],["type","button","title","Download as Excel",1,"act-btn",3,"click"]],template:function(n,r){n&1&&(d(0,"p",0),p(1,"Usage"),u(),d(2,"h1",1),p(3,"Usage & spend"),u(),d(4,"p",2),p(5,"Aggregated across Studio and Assessment. Spend is estimated from provider rates, not billed amounts."),u(),b(6,rx,2,0,"p",3)(7,ox,3,1,"div",4)(8,yx,1,1),d(9,"aa-confirm-dialog",5),N("confirmed",function(){return r.deleteItem.confirm()})("cancelled",function(){return r.deleteItem.cancel()}),u()),n&2&&(h(6),E(r.loading()?6:r.error()?7:8),h(3),S("open",r.deleteItem.open())("title",r.deleteLabel()+"?")("subject",r.deleteItem.pending()?.title??"")("message",r.deleteMessage())("confirmLabel",r.deleteLabel())("busy",r.deleteItem.busy()))},dependencies:[Cn,to,Dn,Xr,cr,bn,Wu],styles:['[_ngcontent-%COMP%]:root, [_nghost-%COMP%]{--%NS%aastrika-cream: #F7EFE1;--%NS%aastrika-cream-soft: #FBF6EC;--%NS%aastrika-bg: #F7F7F5;--%NS%aastrika-surface: #FFFFFF;--%NS%aastrika-surface-2: #FAFAF8;--%NS%aastrika-ink: #1A1A1A;--%NS%aastrika-ink-2: #4A4A48;--%NS%aastrika-muted: #8A8A85;--%NS%aastrika-gold: #A98229;--%NS%aastrika-gold-soft: #F3E7CB;--%NS%aastrika-gold-deep: #7C5F16;--%NS%aastrika-line: #ECEAE4;--%NS%aastrika-line-2: #DFDCD2;--%NS%aastrika-ok-bg: #E6F4EA;--%NS%aastrika-ok-fg: #1E7A3C;--%NS%aastrika-warn-bg: #FDF1DC;--%NS%aastrika-warn-fg: #8A6410;--%NS%aastrika-err-bg: #FBE9E7;--%NS%aastrika-err-fg: #A3271F;--%NS%aastrika-r-sm: 8px;--%NS%aastrika-r: 12px;--%NS%aastrika-r-lg: 16px;--%NS%aastrika-rail: 264px;--%NS%aastrika-shadow: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.04);--%NS%aastrika-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--%NS%aastrika-mono: ui-monospace, SFMono-Regular, Menlo, monospace}','.eyebrow[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--%NS%aastrika-gold-deep);margin-bottom:10px}.page-title[_ngcontent-%COMP%]{font-size:30px;line-height:1.15;margin-bottom:8px}.page-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:14.5px;margin-bottom:28px;max-width:62ch}.card[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);border:1px solid var(--%NS%aastrika-line);border-radius:var(--%NS%aastrika-r-lg);box-shadow:var(--%NS%aastrika-shadow)}.card-pad[_ngcontent-%COMP%]{padding:26px 28px}.label[_ngcontent-%COMP%]{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);margin-bottom:7px}.field[_ngcontent-%COMP%]{width:100%;padding:11px 14px;background:var(--%NS%aastrika-surface-2);border:1px solid var(--%NS%aastrika-line);border-radius:10px;outline:none}.field[_ngcontent-%COMP%]:focus{border-color:var(--%NS%aastrika-gold);box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:10px;border:1px solid transparent;background:var(--%NS%aastrika-gold);color:#fff;font-weight:600;cursor:pointer}.btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-gold-deep)}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.btn-ghost[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);border-color:var(--%NS%aastrika-line-2)}.btn-ghost[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg)}.chip[_ngcontent-%COMP%]:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.chip.warn[_ngcontent-%COMP%]{background:var(--%NS%aastrika-warn-bg);color:var(--%NS%aastrika-warn-fg)}.chip.err[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);color:var(--%NS%aastrika-err-fg)}.grid[_ngcontent-%COMP%]{display:grid;gap:22px}.mono[_ngcontent-%COMP%]{font-family:var(--%NS%aastrika-mono);font-variant-numeric:tabular-nums}.muted[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}',".tiles[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin-bottom:22px}.tile[_ngcontent-%COMP%]{padding:20px 22px;display:flex;flex-direction:column;gap:4px}.tile-n[_ngcontent-%COMP%]{font-size:26px;font-weight:700;line-height:1.1}.tile-l[_ngcontent-%COMP%]{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted)}.tile.accent[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-soft);border-color:transparent}.tile.accent[_ngcontent-%COMP%] .tile-n[_ngcontent-%COMP%]{color:var(--%NS%aastrika-gold-deep)}.section-h[_ngcontent-%COMP%]{font-size:15px;margin-bottom:14px}.tw[_ngcontent-%COMP%]{overflow-x:auto}table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:13.5px}th[_ngcontent-%COMP%]{text-align:left;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);font-weight:600;padding:9px 14px;border-bottom:1px solid var(--%NS%aastrika-line);white-space:nowrap}td[_ngcontent-%COMP%]{padding:11px 14px;border-bottom:1px solid var(--%NS%aastrika-line)}tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:0}.num[_ngcontent-%COMP%]{text-align:right}.panel[_ngcontent-%COMP%]{margin-bottom:18px}.filter-bar[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;margin-bottom:14px;background:var(--%NS%aastrika-gold-soft);border:1.5px solid var(--%NS%aastrika-gold);border-radius:999px;padding:6px 16px;font-size:13px;color:var(--%NS%aastrika-gold-deep)}.filter-bar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--%NS%aastrika-gold-deep);text-decoration:none}.filter-bar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.split[_ngcontent-%COMP%]{display:flex;height:14px;border-radius:999px;overflow:hidden;background:var(--%NS%aastrika-surface-2)}.split[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;height:100%}.seg-v[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold)}.seg-a[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-deep)}.legend[_ngcontent-%COMP%]{display:flex;gap:20px;margin-top:10px;font-size:12.5px;color:var(--%NS%aastrika-muted)}.dot[_ngcontent-%COMP%]{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}.dot.v[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold)}.dot.a[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-deep)}.search[_ngcontent-%COMP%]{max-width:320px;margin-bottom:12px}tr.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.clickable[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface-2)}tr.sel[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-soft)}.act[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-gold-deep);white-space:nowrap}.sources[_ngcontent-%COMP%]{font-size:11.5px;color:var(--%NS%aastrika-muted);margin-top:4px}.row-actions[_ngcontent-%COMP%]{display:flex;gap:6px;align-items:center;white-space:nowrap}.act-btn[_ngcontent-%COMP%]{font:inherit;font-size:12px;line-height:1;padding:5px 9px;border:1px solid var(--%NS%aastrika-line-2);border-radius:6px;background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);text-decoration:none;cursor:pointer}.act-btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.act-btn.danger[_ngcontent-%COMP%]{color:#b42318;border-color:#f2b8b0}.act-btn.danger[_ngcontent-%COMP%]:hover{background:#fef3f2}.act-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}"],changeDetection:1})};var vx=[{tag:"aastrika-content-studio",component:Ua},{tag:"aastrika-assessment",component:za},{tag:"aastrika-reports",component:Ga}],n3=td({providers:[Pu(),ad(ld(),cd([Tm])),{provide:Zr,useValue:Om}]}).then(e=>{for(let t of vx)Rm(t,e.injector);return e});export{DE as configure,n3 as ready};
16
+ https://bucket.s3.ap-south-1.amazonaws.com/\u2026`,1,"field",3,"ngModelChange","ngModel"],[1,"warn-note"],[1,"src-side"],[1,"btn","btn-ghost","pick"],["type","file","hidden","","multiple","","accept",".pdf,.docx,.txt,.md,.srt,.csv,.mp4,.mov,.mkv,.webm,.m4v,.mp3,.m4a,.wav,.aac",3,"change"],[1,"hint","ok"],[1,"btn","full",3,"click","disabled"],[1,"src-list"],[1,"cols"],["for","ab",1,"label"],["id","ab","rows","3","placeholder","e.g. focus on danger signs and referral decisions; use field-scenario questions with named beneficiaries",1,"field",3,"ngModelChange","ngModel"],["for","asrc",1,"label","mt"],["id","asrc",1,"field",3,"ngModelChange","ngModel"],["value",""],[3,"value"],[1,"side"],["for","alang",1,"label"],["id","alang",1,"field",3,"ngModelChange","ngModel"],["for","acount",1,"label","mt"],["id","acount","type","number","min","1","max","60",1,"field",3,"ngModelChange","ngModel"],["for","aopts",1,"label","mt"],["id","aopts",1,"field",3,"ngModelChange","ngModel"],[3,"ngValue"],["for","adiff",1,"label","mt"],["id","adiff",1,"field",3,"ngModelChange","ngModel"],["for","abloom",1,"label","mt"],["id","abloom",1,"field",3,"ngModelChange","ngModel"],[1,"btn","mt-lg",3,"click","disabled"],["title","Delete quiz?","message","This removes the quiz and any exports it wrote to storage. This cannot be undone.","confirmLabel","Delete quiz",3,"confirmed","cancelled","open","subject","busy"],[3,"bad","off"],["type","checkbox","title","include this source",3,"change","checked","disabled"],[1,"src-name"],[1,"chip","err"],[1,"mono","muted"],[1,"step-note"],[1,"q-head"],[1,"q-title"],[1,"muted","mono"],[1,"exports"],["type","button",1,"btn",3,"click"],["type","button",1,"btn","btn-ghost",3,"click"],["type","button",1,"btn","btn-ghost","btn-danger",3,"click","disabled"],[1,"qc-note"],[1,"q"],[1,"save-row"],[1,"btn","btn-ghost",3,"click","disabled"],[1,"muted","save-hint"],[1,"muted","note"],[1,"q-top"],[1,"q-n","mono"],[1,"q-body"],["rows","2",1,"field","q-text-edit",3,"ngModelChange","ngModel","ngModelOptions"],[1,"q-opts"],[1,"opt",3,"correct"],[1,"q-foot"],[1,"tag"],[1,"reveal",3,"click"],[1,"opt"],["type","radio","title","mark as correct",3,"change","name","checked"],[1,"q-letter","mono"],[1,"opt-text",3,"input","value"],["rows","2",1,"field","q-exp-edit",3,"ngModelChange","ngModel","ngModelOptions"],[1,"q-src","mono"]],template:function(n,r){if(n&1&&(d(0,"p",0),p(1,"Assessment"),u(),d(2,"h1",1),p(3,"Turn source material into a question set"),u(),d(4,"p",2),p(5,"Files and links in, validated multiple-choice questions out, exportable to Excel or CSV."),u(),D(6,Zx,2,1,"div",3),d(7,"div",4)(8,"section",5)(9,"div",6)(10,"span",7),p(11,"1"),u(),d(12,"h2",8),p(13,"Sources"),u()(),d(14,"p",9),p(15,"Files (PDF, Word, TXT, video, audio) and/or links, any mix. Videos are transcribed automatically."),u(),d(16,"div",10)(17,"div")(18,"textarea",11),te("ngModelChange",function(i){return ne(r.links,i)||(r.links=i),i}),u(),z(),d(19,"div",12),p(20," \u26A0 Drive links must be shared as "),d(21,"b"),p(22,'"Anyone with the link \u2013 Viewer"'),u(),p(23," \u2014 private links can't be read. "),u()(),d(24,"div",13)(25,"label",14)(26,"input",15),A("change",function(i){return r.chooseFiles(i)}),u(),p(27," \u{1F4CE} Choose files\u2026 "),u(),D(28,Yx,2,1,"div",16),d(29,"button",17),A("click",function(){return r.readSources()}),p(30),u()()(),D(31,Xx,3,0,"ul",18),u(),d(32,"section",5)(33,"div",6)(34,"span",7),p(35,"2"),u(),d(36,"h2",8),p(37,"Settings"),u()(),d(38,"div",19)(39,"div")(40,"label",20),p(41,"Instructions (optional) \u2014 focus areas, style, anything specific"),u(),d(42,"textarea",21),te("ngModelChange",function(i){return ne(r.brief,i)||(r.brief=i),i}),u(),z(),d(43,"label",22),p(44,"Also include a past video's script (optional)"),u(),d(45,"select",23),te("ngModelChange",function(i){return ne(r.sourceJobId,i)||(r.sourceJobId=i),i}),d(46,"option",24),p(47,"\u2014 no \u2014"),u(),J(48,eS,2,2,"option",25,Ya),u(),z(),u(),d(50,"div",26)(51,"label",27),p(52,"Language"),u(),d(53,"select",28),te("ngModelChange",function(i){return ne(r.language,i)||(r.language=i),i}),J(54,tS,2,2,"option",25,qx),u(),z(),d(56,"label",29),p(57,"Number of questions"),u(),d(58,"input",30),te("ngModelChange",function(i){return ne(r.numQuestions,i)||(r.numQuestions=i),i}),u(),z(),d(59,"label",31),p(60,"Options per question"),u(),d(61,"select",32),te("ngModelChange",function(i){return ne(r.numOptions,i)||(r.numOptions=i),i}),J(62,nS,2,2,"option",33,Xo),u(),z(),d(64,"label",34),p(65,"Difficulty"),u(),d(66,"select",35),te("ngModelChange",function(i){return ne(r.difficulty,i)||(r.difficulty=i),i}),J(67,rS,2,2,"option",25,Ya),u(),z(),d(69,"label",36),p(70,"Bloom's level"),u(),d(71,"select",37),te("ngModelChange",function(i){return ne(r.bloom,i)||(r.bloom=i),i}),J(72,oS,2,2,"option",25,Ya),u(),z(),u()(),d(74,"button",38),A("click",function(){return r.generate()}),p(75),u()(),D(76,lS,31,6,"section",5),u(),d(77,"aa-confirm-dialog",39),A("confirmed",function(){return r.deleteQuiz.confirm()})("cancelled",function(){return r.deleteQuiz.cancel()}),u()),n&2){let o;h(6),E(r.error()?6:-1),h(12),ee("ngModel",r.links),G(),h(10),E(r.files().length?28:-1),h(),S("disabled",r.reading()||!r.files().length&&!r.links.trim()),h(),R(" ",r.reading()?"Reading\u2026":"Read sources"," "),h(),E(r.sources().length?31:-1),h(),ge("dim",!r.readySources.length&&!r.sourceJobId),h(10),ee("ngModel",r.brief),G(),h(3),ee("ngModel",r.sourceJobId),G(),h(3),X(r.pastVideos()),h(5),ee("ngModel",r.language),G(),h(),X(r.languages()),h(4),ee("ngModel",r.numQuestions),G(),h(3),ee("ngModel",r.numOptions),G(),h(),X(r.optionCounts),h(4),ee("ngModel",r.difficulty),G(),h(),X(r.difficulties),h(4),ee("ngModel",r.bloom),G(),h(),X(r.blooms),h(2),S("disabled",r.generating()||!r.readySources.length&&!r.sourceJobId),h(),R(" ",r.generating()?"Generating\u2026":"Generate questions"," "),h(),E((o=r.result())?76:-1,o),h(),S("open",r.deleteQuiz.open())("subject",r.result()?.assessment?.title??"")("busy",r.deleteQuiz.busy())}},dependencies:[wn,co,Ga,Wa,xn,Rd,ao,so,Ad,Nd,pr,Sn,li],styles:['[_ngcontent-%COMP%]:root, [_nghost-%COMP%]{--%NS%aastrika-cream: #F7EFE1;--%NS%aastrika-cream-soft: #FBF6EC;--%NS%aastrika-bg: #F7F7F5;--%NS%aastrika-surface: #FFFFFF;--%NS%aastrika-surface-2: #FAFAF8;--%NS%aastrika-ink: #1A1A1A;--%NS%aastrika-ink-2: #4A4A48;--%NS%aastrika-muted: #8A8A85;--%NS%aastrika-gold: #A98229;--%NS%aastrika-gold-soft: #F3E7CB;--%NS%aastrika-gold-deep: #7C5F16;--%NS%aastrika-line: #ECEAE4;--%NS%aastrika-line-2: #DFDCD2;--%NS%aastrika-ok-bg: #E6F4EA;--%NS%aastrika-ok-fg: #1E7A3C;--%NS%aastrika-warn-bg: #FDF1DC;--%NS%aastrika-warn-fg: #8A6410;--%NS%aastrika-err-bg: #FBE9E7;--%NS%aastrika-err-fg: #A3271F;--%NS%aastrika-r-sm: 8px;--%NS%aastrika-r: 12px;--%NS%aastrika-r-lg: 16px;--%NS%aastrika-rail: 264px;--%NS%aastrika-shadow: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.04);--%NS%aastrika-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--%NS%aastrika-mono: ui-monospace, SFMono-Regular, Menlo, monospace}','[_nghost-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%]:before, [_nghost-%COMP%] *[_ngcontent-%COMP%]:after{box-sizing:border-box}.eyebrow[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--%NS%aastrika-gold-deep);margin-bottom:10px}.page-title[_ngcontent-%COMP%]{font-size:30px;line-height:1.15;margin-bottom:8px}.page-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:14.5px;margin-bottom:28px;max-width:62ch}.card[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);border:1px solid var(--%NS%aastrika-line);border-radius:var(--%NS%aastrika-r-lg);box-shadow:var(--%NS%aastrika-shadow)}.card-pad[_ngcontent-%COMP%]{padding:26px 28px}.label[_ngcontent-%COMP%]{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);margin-bottom:7px}.field[_ngcontent-%COMP%]{width:100%;padding:11px 14px;background:var(--%NS%aastrika-surface-2);border:1px solid var(--%NS%aastrika-line);border-radius:10px;outline:none}.field[_ngcontent-%COMP%]:focus{border-color:var(--%NS%aastrika-gold);box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:10px;border:1px solid transparent;background:var(--%NS%aastrika-gold);color:#fff;font-weight:600;cursor:pointer}.btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-gold-deep)}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.btn-ghost[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);border-color:var(--%NS%aastrika-line-2)}.btn-ghost[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg)}.chip[_ngcontent-%COMP%]:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.chip.warn[_ngcontent-%COMP%]{background:var(--%NS%aastrika-warn-bg);color:var(--%NS%aastrika-warn-fg)}.chip.err[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);color:var(--%NS%aastrika-err-fg)}.mono[_ngcontent-%COMP%]{font-family:var(--%NS%aastrika-mono);font-variant-numeric:tabular-nums}.muted[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.steps[_ngcontent-%COMP%]{display:grid;gap:18px;max-width:860px}.step-h[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:18px}.step-n[_ngcontent-%COMP%]{width:26px;height:26px;border-radius:50%;background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);display:grid;place-items:center;font-size:11px;font-weight:700}.step-t[_ngcontent-%COMP%]{font-size:15px}.step-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted);font-weight:400}.dim[_ngcontent-%COMP%]{opacity:.55}.err-box[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);border-color:transparent;margin-bottom:18px}.drop[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:5px;padding:34px;border:1.5px dashed var(--%NS%aastrika-line-2);border-radius:var(--%NS%aastrika-r);cursor:pointer;background:var(--%NS%aastrika-surface-2)}.drop[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.drop-main[_ngcontent-%COMP%]{font-weight:600}.drop-sub[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.picked[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.picked-name[_ngcontent-%COMP%]{font-weight:600}.picked-meta[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted)}.note[_ngcontent-%COMP%]{font-size:12.5px;margin-top:16px}.mt-lg[_ngcontent-%COMP%]{margin-top:22px}.hint.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}',".opts[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.q-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--%NS%aastrika-line)}.q-title[_ngcontent-%COMP%]{font-size:17px;font-weight:700}.exports[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap}.exports[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-decoration:none;padding:8px 14px}.exports[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]{color:#b42318;border-color:#f2b8b0}.exports[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]:hover{background:#fef3f2}.q[_ngcontent-%COMP%]{padding:16px 0;border-bottom:1px solid var(--%NS%aastrika-line)}.q[_ngcontent-%COMP%]:last-of-type{border-bottom:0}.q-top[_ngcontent-%COMP%]{display:grid;grid-template-columns:30px 1fr;gap:12px}.q-n[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:12px;padding-top:2px}.q-text[_ngcontent-%COMP%]{margin:0 0 10px;font-weight:500}.q-opts[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:grid;gap:5px}.q-opts[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;gap:10px;padding:7px 11px;border-radius:8px;background:var(--%NS%aastrika-surface-2);font-size:13.5px}.q-opts[_ngcontent-%COMP%] li.right[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg);font-weight:600}.q-letter[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.q-opts[_ngcontent-%COMP%] li.right[_ngcontent-%COMP%] .q-letter[_ngcontent-%COMP%]{color:inherit}.q-foot[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:10px}.tag[_ngcontent-%COMP%]{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--%NS%aastrika-muted);background:var(--%NS%aastrika-surface-2);padding:3px 8px;border-radius:999px}.reveal[_ngcontent-%COMP%]{margin-left:auto;background:none;border:0;color:var(--%NS%aastrika-gold-deep);font-size:12.5px;font-weight:600;cursor:pointer}.reveal[_ngcontent-%COMP%]:hover{text-decoration:underline}.q-exp[_ngcontent-%COMP%]{margin:10px 0 0;font-size:13px;color:var(--%NS%aastrika-ink-2)}.q-src[_ngcontent-%COMP%]{margin:4px 0 0;font-size:11.5px;color:var(--%NS%aastrika-muted)}@media(max-width:760px){.opts[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}.step-lead[_ngcontent-%COMP%]{font-size:13px;color:var(--%NS%aastrika-muted);margin:-8px 0 14px}.src-cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 220px;gap:16px;align-items:start}.src-side[_ngcontent-%COMP%]{display:grid;gap:8px}.pick[_ngcontent-%COMP%]{justify-content:center;cursor:pointer}.full[_ngcontent-%COMP%]{width:100%;justify-content:center}.warn-note[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-warn-fg);background:var(--%NS%aastrika-warn-bg);padding:8px 11px;border-radius:8px;margin-top:8px}.hint[_ngcontent-%COMP%]{font-size:12px}.src-list[_ngcontent-%COMP%]{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:6px}.src-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:13px;padding:8px 11px;background:var(--%NS%aastrika-surface-2);border-radius:8px}.src-list[_ngcontent-%COMP%] li.bad[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg)}.src-name[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 300px;gap:22px;align-items:start}.side[_ngcontent-%COMP%] .mt[_ngcontent-%COMP%], .mt[_ngcontent-%COMP%]{margin-top:14px}.qc-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-warn-fg);background:var(--%NS%aastrika-warn-bg);padding:9px 12px;border-radius:8px;margin:14px 0 4px}.exports[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-decoration:none}@media(max-width:900px){.src-cols[_ngcontent-%COMP%], .cols[_ngcontent-%COMP%]{grid-template-columns:1fr}}.q-text-edit[_ngcontent-%COMP%]{font-weight:500;margin-bottom:8px}.opt[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:6px 11px;border-radius:8px;background:var(--%NS%aastrika-surface-2);font-size:13.5px;cursor:pointer}.opt.correct[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg);font-weight:600}.opt[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{width:auto;margin:0;accent-color:var(--%NS%aastrika-gold);cursor:pointer}.opt-text[_ngcontent-%COMP%]{flex:1;border:0;background:none;padding:2px 0;font:inherit;color:inherit;outline:none}.opt-text[_ngcontent-%COMP%]:focus{border-bottom:1px solid var(--%NS%aastrika-gold)}.q-exp-edit[_ngcontent-%COMP%]{margin-top:10px;font-size:13px}.save-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;margin-top:18px;padding-top:16px;border-top:1px solid var(--%NS%aastrika-line)}.save-hint[_ngcontent-%COMP%]{font-size:12.5px}.src-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{width:auto;margin:0;accent-color:var(--%NS%aastrika-gold)}.src-list[_ngcontent-%COMP%] li.off[_ngcontent-%COMP%]{opacity:.5}"],changeDetection:1})};var uS=(e,t)=>t.creator,Dy=(e,t)=>t.id;function dS(e,t){e&1&&(d(0,"p",3),p(1,"Loading\u2026"),u())}function fS(e,t){if(e&1&&(d(0,"div",4)(1,"p",3),p(2),u()()),e&2){let n=v();h(2),b(n.error())}}function pS(e,t){if(e&1){let n=W();d(0,"div",6),p(1," Showing: "),d(2,"b"),p(3),u(),d(4,"a",25),A("click",function(o){return I(n),v(3).clearFilter(),M(o.preventDefault())}),p(5,"\u2715 all users"),u()()}if(e&2){let n=v(3);h(3),b(n.selectedCreator())}}function hS(e,t){if(e&1){let n=W();d(0,"tr",26),A("click",function(){let o=I(n).$implicit,i=v(3);return M(i.toggleCreator(o.creator))}),d(1,"td")(2,"b"),p(3),u()(),d(4,"td",27),p(5),u(),d(6,"td",27),p(7),u(),d(8,"td",27),p(9),u(),d(10,"td",27),p(11),u(),d(12,"td",27)(13,"b"),p(14),u()(),d(15,"td",3),p(16),ut(17,"date"),u(),d(18,"td",28),p(19),u()()}if(e&2){let n=t.$implicit,r=v(3);ge("sel",r.selectedCreator()===n.creator),h(3),b(n.creator),h(2),b(n.videos),h(2),b(n.quizzes),h(2),R("$",n.videoSpendUsd),h(2),R("$",n.quizSpendUsd),h(3),R("$",n.spendUsd),h(2),b(n.lastActive?lr(17,10,n.lastActive,"d MMM yyyy"):"\u2014"),h(3),b(r.selectedCreator()===n.creator?"\u2713 selected":"view activity \u2192")}}function gS(e,t){e&1&&(d(0,"tr")(1,"td",29),p(2,"No activity recorded yet."),u()())}function mS(e,t){e&1&&(d(0,"span",3),p(1," est."),u())}function yS(e,t){if(e&1){let n=W();d(0,"button",33),A("click",function(){I(n);let o=v().$implicit,i=v(3);return M(i.watch(o.id))}),p(1,"\u25B6 view"),u()}}function vS(e,t){if(e&1){let n=W();d(0,"tr")(1,"td"),p(2),u(),d(3,"td"),p(4),u(),d(5,"td"),p(6),u(),d(7,"td")(8,"span"),p(9),u()(),d(10,"td",27),p(11),u(),d(12,"td",27),p(13),D(14,mS,2,0,"span",3),u(),d(15,"td",3),p(16),ut(17,"date"),u(),d(18,"td",30),D(19,yS,2,0,"button",31),d(20,"button",32),A("click",function(){let o=I(n).$implicit,i=v(3);return M(i.deleteItem.ask(o))}),p(21," \u{1F5D1} delete "),u()()()}if(e&2){let n=t.$implicit,r=v(3);h(2),b(n.title),h(2),b(n.creator),h(2),b(n.videoType),h(2),Zr(r.pill(n.status)),h(),b(n.status),h(2),b(n.feedbackRounds||""),h(2),R("$",n.costUsd),h(),E(n.costEstimated?14:-1),h(2),b(n.createdAt?lr(17,12,n.createdAt,"d MMM yyyy"):"\u2014"),h(3),E(n.video?19:-1),h(),S("title","Delete "+n.title)}}function _S(e,t){e&1&&(d(0,"tr")(1,"td",29),p(2,"No videos for this user."),u()())}function CS(e,t){e&1&&(d(0,"span",3),p(1," est."),u())}function bS(e,t){if(e&1){let n=W();d(0,"tr")(1,"td"),p(2),u(),d(3,"td"),p(4),u(),d(5,"td",27),p(6),u(),d(7,"td"),p(8),u(),d(9,"td")(10,"span"),p(11),u()(),d(12,"td",27),p(13),D(14,CS,2,0,"span",3),u(),d(15,"td",3),p(16),ut(17,"date"),u(),d(18,"td",30)(19,"button",34),A("click",function(){let o=I(n).$implicit,i=v(3);return M(i.export(o.id))}),p(20,"\u2B07 export"),u(),d(21,"button",32),A("click",function(){let o=I(n).$implicit,i=v(3);return M(i.deleteItem.ask(o))}),p(22," \u{1F5D1} delete "),u()()()}if(e&2){let n=t.$implicit,r=v(3);h(2),b(n.title),h(2),b(n.creator),h(2),b(n.questions),h(2),b(n.language),h(2),Zr(r.pill(n.status)),h(),b(n.status),h(2),R("$",n.costUsd),h(),E(n.costEstimated?14:-1),h(2),b(n.createdAt?lr(17,11,n.createdAt,"d MMM yyyy"):"\u2014"),h(5),S("title","Delete "+n.title)}}function DS(e,t){e&1&&(d(0,"tr")(1,"td",29),p(2,"No assessments yet."),u()())}function ES(e,t){if(e&1&&(d(0,"p",24),p(1),u()),e&2){let n=v();h(),ar(" Showing the ",n.items.length," most recent of ",n.page.total," items. Totals above cover all ",n.page.total,". ")}}function wS(e,t){if(e&1){let n=W();D(0,pS,6,1,"div",6),d(1,"div",7)(2,"div",8)(3,"span",9),p(4),u(),d(5,"span",10),p(6,"Videos"),u()(),d(7,"div",8)(8,"span",9),p(9),u(),d(10,"span",10),p(11,"Completed"),u()(),d(12,"div",8)(13,"span",9),p(14),u(),d(15,"span",10),p(16,"Assessments"),u()(),d(17,"div",8)(18,"span",9),p(19),u(),d(20,"span",10),p(21,"People"),u()(),d(22,"div",11)(23,"span",9),p(24),u(),d(25,"span",10),p(26,"Estimated spend"),u()()(),d(27,"div",12)(28,"h2",13),p(29,"Where the money went"),u(),d(30,"div",14),$e(31,"i",15)(32,"i",16),u(),d(33,"div",17)(34,"span"),$e(35,"i",18),p(36),u(),d(37,"span"),$e(38,"i",19),p(39),u()()(),d(40,"div",12)(41,"h2",13),p(42,"Users"),u(),d(43,"input",20),A("ngModelChange",function(o){I(n);let i=v(2);return M(i.search.set(o))}),u(),z(),d(44,"div",21)(45,"table")(46,"thead")(47,"tr")(48,"th"),p(49,"User"),u(),d(50,"th",22),p(51,"Videos"),u(),d(52,"th",22),p(53,"Assessments"),u(),d(54,"th",22),p(55,"Video spend"),u(),d(56,"th",22),p(57,"Assessment spend"),u(),d(58,"th",22),p(59,"Total spend"),u(),d(60,"th"),p(61,"Last active"),u(),$e(62,"th"),u()(),d(63,"tbody"),J(64,hS,20,13,"tr",23,uS,!1,gS,3,0,"tr"),u()()()(),d(67,"div",12)(68,"h2",13),p(69,"Videos"),u(),d(70,"div",21)(71,"table")(72,"thead")(73,"tr")(74,"th"),p(75,"Title"),u(),d(76,"th"),p(77,"Creator"),u(),d(78,"th"),p(79,"Type"),u(),d(80,"th"),p(81,"Status"),u(),d(82,"th",22),p(83,"Feedback rounds"),u(),d(84,"th",22),p(85,"Cost (USD)"),u(),d(86,"th"),p(87,"Date"),u(),$e(88,"th"),u()(),d(89,"tbody"),J(90,vS,22,15,"tr",null,Dy,!1,_S,3,0,"tr"),u()()()(),d(93,"div",12)(94,"h2",13),p(95,"Assessments"),u(),d(96,"div",21)(97,"table")(98,"thead")(99,"tr")(100,"th"),p(101,"Title"),u(),d(102,"th"),p(103,"Creator"),u(),d(104,"th",22),p(105,"Questions"),u(),d(106,"th"),p(107,"Language"),u(),d(108,"th"),p(109,"Status"),u(),d(110,"th",22),p(111,"Cost (USD)"),u(),d(112,"th"),p(113,"Date"),u(),$e(114,"th"),u()(),d(115,"tbody"),J(116,bS,23,14,"tr",null,Dy,!1,DS,3,0,"tr"),u()()()(),D(119,ES,2,3,"p",24)}if(e&2){let n=t,r=v(2);E(r.selectedCreator()?0:-1),h(4),b(n.totals.videos),h(5),b(n.totals.videosDone),h(5),b(n.totals.quizzes),h(5),b(n.totals.creators),h(5),R("$",n.totals.spendUsd),h(6),xt("aria-label","Videos "+r.split().video+"%, assessments "+r.split().assess+"%"),h(),sr("width",r.split().video,"%"),S("title","Videos: $"+n.totals.videoSpendUsd),h(),sr("width",r.split().assess,"%"),S("title","Assessments: $"+n.totals.quizSpendUsd),h(4),St(" Videos $",n.totals.videoSpendUsd," (",r.split().video,"%)"),h(3),St(" Assessments $",n.totals.quizSpendUsd," (",r.split().assess,"%)"),h(4),S("ngModel",r.search()),G(),h(21),X(r.creators()),h(26),X(r.videos()),h(26),X(r.assessments()),h(3),E(r.truncated()?119:-1)}}function xS(e,t){if(e&1&&D(0,wS,120,22),e&2){let n,r=v();E((n=r.report())?0:-1,n)}}var Ka=class e{api=C(Ut);destroyRef=C(ue);get untilGone(){return t=>t.pipe(to(this.destroyRef))}static PAGE_SIZE=500;constructor(){_t(()=>{let t=this.creatorFilter();t&&!this.seeded&&(this.selectedCreator.set(t),this.seeded=!0)})}seeded=!1;creatorFilter=dt(void 0);reportLoaded=En();report=F(null);error=F("");loading=F(!0);search=F("");selectedCreator=F(null);ngOnInit(){this.api.usageReport({limit:e.PAGE_SIZE}).pipe(this.untilGone).subscribe({next:t=>{this.report.set(t),this.loading.set(!1),this.reportLoaded.emit({videos:t.totals.videos,assessments:t.totals.quizzes,users:t.totals.creators,spendUsd:t.totals.spendUsd})},error:t=>{this.error.set(le(t,"reports",{401:"Please sign in to view usage."},"Could not load usage")),this.loading.set(!1)}})}truncated=ae(()=>{let t=this.report();return t?t.page.total>t.items.length:!1});creators=ae(()=>{let t=this.search().toLowerCase();return(this.report()?.creators??[]).filter(n=>n.creator.toLowerCase().includes(t))});ofType(t){let n=this.selectedCreator();return(this.report()?.items??[]).filter(r=>r.type===t&&(!n||r.creator===n))}videos=ae(()=>this.ofType("video"));assessments=ae(()=>this.ofType("assessment"));split=ae(()=>{let t=this.report()?.totals;return!t||!t.spendUsd?{video:0,assess:0}:{video:Math.round(t.videoSpendUsd/t.spendUsd*100),assess:Math.round(t.quizSpendUsd/t.spendUsd*100)}});toggleCreator(t){this.selectedCreator.update(n=>n===t?null:t)}clearFilter(){this.selectedCreator.set(null)}export(t){hr({feature:"reports",lookup:this.api.exportUrl(t),fallbackHref:this.api.exportHref(t),onError:n=>this.error.set(n)})}watch(t){hr({feature:"reports",lookup:this.api.job(t).pipe(we(n=>({url:n.videoUrl??n.video??null,filename:""}))),fallbackHref:this.api.downloadVideoHref(t),onError:n=>this.error.set(n)})}deleteItem=lo({feature:"reports",request:t=>t.type==="video"?this.api.deleteVideo(t.id):this.api.deleteQuiz(t.id),onDeleted:()=>this.refresh(()=>{}),onError:t=>this.error.set(t),fallback:"Could not delete it",byStatus:{403:"You do not have permission to delete that."}});deleteLabel=ae(()=>this.deleteItem.pending()?.type==="video"?"Delete video":"Delete quiz");deleteMessage=ae(()=>{let t=this.deleteItem.pending();return t?`This removes the ${t.type==="video"?"video":"quiz"} and its stored files permanently. This cannot be undone.`:""});refresh(t){this.api.usageReport({limit:e.PAGE_SIZE}).pipe(this.untilGone).subscribe({next:n=>{this.report.set(n),this.error.set(""),t()},error:n=>{this.error.set(le(n,"reports",{},"Deleted, but the page could not refresh")),t()}})}pill(t){return t==="done"?"chip":t==="failed"||t==="error"?"chip err":"chip warn"}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=rn({type:e,selectors:[["aa-reports"]],inputs:{creatorFilter:[1,"creatorFilter"]},outputs:{reportLoaded:"reportLoaded"},decls:10,vars:7,consts:[[1,"eyebrow"],[1,"page-title"],[1,"page-sub"],[1,"muted"],["role","alert",1,"card","card-pad"],[3,"confirmed","cancelled","open","title","subject","message","confirmLabel","busy"],[1,"filter-bar"],[1,"tiles"],[1,"card","tile"],[1,"tile-n","mono"],[1,"tile-l"],[1,"card","tile","accent"],[1,"card","card-pad","panel"],[1,"section-h"],["role","img",1,"split"],[1,"seg-v",3,"title"],[1,"seg-a",3,"title"],[1,"legend"],[1,"dot","v"],[1,"dot","a"],["placeholder","Search user\u2026",1,"field","search",3,"ngModelChange","ngModel"],[1,"tw"],[1,"num"],[1,"clickable",3,"sel"],[1,"sources","mono"],["href","#",3,"click"],[1,"clickable",3,"click"],[1,"num","mono"],[1,"act"],["colspan","8",1,"muted"],[1,"row-actions"],["type","button","title","View video",1,"act-btn"],["type","button",1,"act-btn","danger",3,"click","title"],["type","button","title","View video",1,"act-btn",3,"click"],["type","button","title","Download as Excel",1,"act-btn",3,"click"]],template:function(n,r){n&1&&(d(0,"p",0),p(1,"Usage"),u(),d(2,"h1",1),p(3,"Usage & spend"),u(),d(4,"p",2),p(5,"Aggregated across Studio and Assessment. Spend is estimated from provider rates, not billed amounts."),u(),D(6,dS,2,0,"p",3)(7,fS,3,1,"div",4)(8,xS,1,1),d(9,"aa-confirm-dialog",5),A("confirmed",function(){return r.deleteItem.confirm()})("cancelled",function(){return r.deleteItem.cancel()}),u()),n&2&&(h(6),E(r.loading()?6:r.error()?7:8),h(3),S("open",r.deleteItem.open())("title",r.deleteLabel()+"?")("subject",r.deleteItem.pending()?.title??"")("message",r.deleteMessage())("confirmLabel",r.deleteLabel())("busy",r.deleteItem.busy()))},dependencies:[wn,co,xn,so,pr,Sn,Ju],styles:['[_ngcontent-%COMP%]:root, [_nghost-%COMP%]{--%NS%aastrika-cream: #F7EFE1;--%NS%aastrika-cream-soft: #FBF6EC;--%NS%aastrika-bg: #F7F7F5;--%NS%aastrika-surface: #FFFFFF;--%NS%aastrika-surface-2: #FAFAF8;--%NS%aastrika-ink: #1A1A1A;--%NS%aastrika-ink-2: #4A4A48;--%NS%aastrika-muted: #8A8A85;--%NS%aastrika-gold: #A98229;--%NS%aastrika-gold-soft: #F3E7CB;--%NS%aastrika-gold-deep: #7C5F16;--%NS%aastrika-line: #ECEAE4;--%NS%aastrika-line-2: #DFDCD2;--%NS%aastrika-ok-bg: #E6F4EA;--%NS%aastrika-ok-fg: #1E7A3C;--%NS%aastrika-warn-bg: #FDF1DC;--%NS%aastrika-warn-fg: #8A6410;--%NS%aastrika-err-bg: #FBE9E7;--%NS%aastrika-err-fg: #A3271F;--%NS%aastrika-r-sm: 8px;--%NS%aastrika-r: 12px;--%NS%aastrika-r-lg: 16px;--%NS%aastrika-rail: 264px;--%NS%aastrika-shadow: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.04);--%NS%aastrika-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--%NS%aastrika-mono: ui-monospace, SFMono-Regular, Menlo, monospace}','[_nghost-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%]:before, [_nghost-%COMP%] *[_ngcontent-%COMP%]:after{box-sizing:border-box}.eyebrow[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--%NS%aastrika-gold-deep);margin-bottom:10px}.page-title[_ngcontent-%COMP%]{font-size:30px;line-height:1.15;margin-bottom:8px}.page-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:14.5px;margin-bottom:28px;max-width:62ch}.card[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);border:1px solid var(--%NS%aastrika-line);border-radius:var(--%NS%aastrika-r-lg);box-shadow:var(--%NS%aastrika-shadow)}.card-pad[_ngcontent-%COMP%]{padding:26px 28px}.label[_ngcontent-%COMP%]{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);margin-bottom:7px}.field[_ngcontent-%COMP%]{width:100%;padding:11px 14px;background:var(--%NS%aastrika-surface-2);border:1px solid var(--%NS%aastrika-line);border-radius:10px;outline:none}.field[_ngcontent-%COMP%]:focus{border-color:var(--%NS%aastrika-gold);box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:10px;border:1px solid transparent;background:var(--%NS%aastrika-gold);color:#fff;font-weight:600;cursor:pointer}.btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-gold-deep)}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.btn-ghost[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);border-color:var(--%NS%aastrika-line-2)}.btn-ghost[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg)}.chip[_ngcontent-%COMP%]:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.chip.warn[_ngcontent-%COMP%]{background:var(--%NS%aastrika-warn-bg);color:var(--%NS%aastrika-warn-fg)}.chip.err[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);color:var(--%NS%aastrika-err-fg)}.mono[_ngcontent-%COMP%]{font-family:var(--%NS%aastrika-mono);font-variant-numeric:tabular-nums}.muted[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.steps[_ngcontent-%COMP%]{display:grid;gap:18px;max-width:860px}.step-h[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:18px}.step-n[_ngcontent-%COMP%]{width:26px;height:26px;border-radius:50%;background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);display:grid;place-items:center;font-size:11px;font-weight:700}.step-t[_ngcontent-%COMP%]{font-size:15px}.step-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted);font-weight:400}.dim[_ngcontent-%COMP%]{opacity:.55}.err-box[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);border-color:transparent;margin-bottom:18px}.drop[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:5px;padding:34px;border:1.5px dashed var(--%NS%aastrika-line-2);border-radius:var(--%NS%aastrika-r);cursor:pointer;background:var(--%NS%aastrika-surface-2)}.drop[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.drop-main[_ngcontent-%COMP%]{font-weight:600}.drop-sub[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.picked[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.picked-name[_ngcontent-%COMP%]{font-weight:600}.picked-meta[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted)}.note[_ngcontent-%COMP%]{font-size:12.5px;margin-top:16px}.mt-lg[_ngcontent-%COMP%]{margin-top:22px}.hint.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}',".tiles[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin-bottom:22px}.tile[_ngcontent-%COMP%]{padding:20px 22px;display:flex;flex-direction:column;gap:4px}.tile-n[_ngcontent-%COMP%]{font-size:26px;font-weight:700;line-height:1.1}.tile-l[_ngcontent-%COMP%]{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted)}.tile.accent[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-soft);border-color:transparent}.tile.accent[_ngcontent-%COMP%] .tile-n[_ngcontent-%COMP%]{color:var(--%NS%aastrika-gold-deep)}.section-h[_ngcontent-%COMP%]{font-size:15px;margin-bottom:14px}.tw[_ngcontent-%COMP%]{overflow-x:auto}table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:13.5px}th[_ngcontent-%COMP%]{text-align:left;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);font-weight:600;padding:9px 14px;border-bottom:1px solid var(--%NS%aastrika-line);white-space:nowrap}td[_ngcontent-%COMP%]{padding:11px 14px;border-bottom:1px solid var(--%NS%aastrika-line)}tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:0}.num[_ngcontent-%COMP%]{text-align:right}.panel[_ngcontent-%COMP%]{margin-bottom:18px}.filter-bar[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;margin-bottom:14px;background:var(--%NS%aastrika-gold-soft);border:1.5px solid var(--%NS%aastrika-gold);border-radius:999px;padding:6px 16px;font-size:13px;color:var(--%NS%aastrika-gold-deep)}.filter-bar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--%NS%aastrika-gold-deep);text-decoration:none}.filter-bar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.split[_ngcontent-%COMP%]{display:flex;height:14px;border-radius:999px;overflow:hidden;background:var(--%NS%aastrika-surface-2)}.split[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;height:100%}.seg-v[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold)}.seg-a[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-deep)}.legend[_ngcontent-%COMP%]{display:flex;gap:20px;margin-top:10px;font-size:12.5px;color:var(--%NS%aastrika-muted)}.dot[_ngcontent-%COMP%]{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}.dot.v[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold)}.dot.a[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-deep)}.search[_ngcontent-%COMP%]{max-width:320px;margin-bottom:12px}tr.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.clickable[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface-2)}tr.sel[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-soft)}.act[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-gold-deep);white-space:nowrap}.sources[_ngcontent-%COMP%]{font-size:11.5px;color:var(--%NS%aastrika-muted);margin-top:4px}.row-actions[_ngcontent-%COMP%]{display:flex;gap:6px;align-items:center;white-space:nowrap}.act-btn[_ngcontent-%COMP%]{font:inherit;font-size:12px;line-height:1;padding:5px 9px;border:1px solid var(--%NS%aastrika-line-2);border-radius:6px;background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);text-decoration:none;cursor:pointer}.act-btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.act-btn.danger[_ngcontent-%COMP%]{color:#b42318;border-color:#f2b8b0}.act-btn.danger[_ngcontent-%COMP%]:hover{background:#fef3f2}.act-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}"],changeDetection:1})};var SS=[{tag:"aastrika-content-studio",component:Za},{tag:"aastrika-assessment",component:Qa},{tag:"aastrika-reports",component:Ka}],M3=typeof document>"u"?Promise.resolve(null):ad({providers:[Hu(),pd(gd(),hd([Pm])),{provide:Xr,useValue:jm}]}).then(e=>{for(let t of SS)Hm(t,e.injector);return e});export{TE as configure,M3 as ready};