@aastrika/ai-elements 0.3.0 → 0.4.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.
- package/README.md +177 -108
- package/aastrika-elements.js +8 -8
- package/package.json +1 -1
package/aastrika-elements.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Ny=Object.defineProperty,Ay=Object.defineProperties;var Oy=Object.getOwnPropertyDescriptors;var Bd=Object.getOwnPropertySymbols;var ky=Object.prototype.hasOwnProperty,Ry=Object.prototype.propertyIsEnumerable;var Hd=(e,t,n)=>t in e?Ny(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j=(e,t)=>{for(var n in t||={})ky.call(t,n)&&Hd(e,n,t[n]);if(Bd)for(var n of Bd(t))Ry.call(t,n)&&Hd(e,n,t[n]);return e},U=(e,t)=>Ay(e,Oy(t));var je=null,wi=!1,Mn=1,Py=null,Ee=Symbol("SIGNAL");function P(e){let t=je;return je=e,t}function Mi(){return je}var Tn={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(je===null)return;je.consumerOnSignalRead(e);let t=je.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=je.recomputing;if(r&&(n=t!==void 0?t.nextProducer:je.producers,n!==void 0&&n.producer===e)){je.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=Mn;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===je&&(!r||o.knownValidAtEpoch===Mn))return;let i=mr(je),s={producer:e,consumer:je,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:Mn,lastReadVersion:e.version,nextConsumer:void 0};je.producersTail=s,t!==void 0?t.nextProducer=s:je.producers=s,i&&Gd(e,s)}function Ud(){Mn++}function Ti(e){if(!(mr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Mn)){if(!e.producerMustRecompute(e)&&!fo(e)){Ii(e);return}e.producerRecomputeValue(e),Ii(e)}}function tl(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||Fy(r)}}finally{wi=t}}function nl(){return je?.consumerAllowSignalWrites!==!1}function Fy(e){e.dirty=!0,tl(e),e.consumerMarkedDirty?.(e)}function Ii(e){e.dirty=!1,e.lastCleanEpoch=Mn}function Nn(e){return e&&$d(e),P(e)}function $d(e){if(e.producersTail?.knownValidAtEpoch===Mn){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer}e.producersTail=void 0,e.recomputing=!0}function hr(e,t){P(t),e&&zd(e)}function zd(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(mr(e))do n=rl(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function fo(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 An(e){if(mr(e)){let t=e.producers;for(;t!==void 0;)t=rl(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Gd(e,t){let n=e.consumersTail,r=mr(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)Gd(o.producer,o)}function rl(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,!mr(t)){let i=t.producers;for(;i!==void 0;)i=rl(i)}return n}function mr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Ni(e){Py?.(e)}function Ai(e,t){return Object.is(e,t)}function Oi(e,t){let n=Object.create(Ly);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Ti(n),gr(n),n.value===uo)throw n.error;return n.value};return r[Ee]=n,Ni(n),r}var xi=Symbol("UNSET"),Si=Symbol("COMPUTING"),uo=Symbol("ERRORED"),Ly=U(j({},Tn),{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=Nn(e),r,o=!1;try{r=e.computation(),P(null),o=t!==xi&&t!==uo&&r!==uo&&e.equal(t,r)}catch(i){r=uo,e.error=i}finally{hr(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Vy(){throw new Error}var Wd=Vy;function qd(e){Wd(e)}function ol(e){Wd=e}var jy=null;function il(e,t){let n=Object.create(po);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Zd(n);return r[Ee]=n,Ni(n),[r,s=>On(n,s),s=>sl(n,s)]}function Zd(e){return gr(e),e.value}function On(e,t){nl()||qd(e),e.equal(e.value,t)||(e.value=t,By(e))}function sl(e,t){nl()||qd(e),On(e,t(e.value))}var po=U(j({},Tn),{equal:Ai,value:void 0,kind:"signal"});function By(e){e.version++,Ud(),tl(e),jy?.(e)}var al=U(j({},Tn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function ll(e){if(e.dirty=!1,e.version>0&&!fo(e))return;e.version++;let t=Nn(e);try{e.cleanup(),e.fn()}finally{hr(e,t)}}var cl;function ki(){return cl}function At(e){let t=cl;return cl=e,t}var Yd=Symbol("NotFound");function yr(e){return e===Yd||e?.name==="\u0275NotFound"}function Qd(e){let t=P(null);try{return e()}finally{P(t)}}function q(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 go(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var we=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(q(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{Kd(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)Kd(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)}};we.EMPTY=(()=>{let e=new we;return e.closed=!0,e})();var uc=we.EMPTY;function Fi(e){return e instanceof we||e&&"closed"in e&&q(e.remove)&&q(e.add)&&q(e.unsubscribe)}function Kd(e){q(e)?e():e.unsubscribe()}var ht={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var vr={setTimeout(e,t,...n){let{delegate:r}=vr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=vr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Li(e){vr.setTimeout(()=>{let{onUnhandledError:t}=ht;if(t)t(e);else throw e})}function ho(){}var Jd=dc("C",void 0,void 0);function Xd(e){return dc("E",void 0,e)}function ef(e){return dc("N",e,void 0)}function dc(e,t,n){return{kind:e,value:t,error:n}}var kn=null;function _r(e){if(ht.useDeprecatedSynchronousErrorHandling){let t=!kn;if(t&&(kn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=kn;if(kn=null,n)throw r}}else e()}function tf(e){ht.useDeprecatedSynchronousErrorHandling&&kn&&(kn.errorThrown=!0,kn.error=e)}var Rn=class extends we{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Fi(t)&&t.add(this)):this.destination=Uy}static create(t,n,r){return new Cr(t,n,r)}next(t){this.isStopped?pc(ef(t),this):this._next(t)}error(t){this.isStopped?pc(Xd(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?pc(Jd,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()}}},By=Function.prototype.bind;function fc(e,t){return By.call(e,t)}var gc=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)}}},Cr=class extends Rn{constructor(t,n,r){super();let o;if(q(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&&fc(t.next,i),error:t.error&&fc(t.error,i),complete:t.complete&&fc(t.complete,i)}):o=t}this.destination=new gc(o)}};function Vi(e){ht.useDeprecatedSynchronousErrorHandling?tf(e):Li(e)}function Hy(e){throw e}function pc(e,t){let{onStoppedNotification:n}=ht;n&&vr.setTimeout(()=>n(e,t))}var Uy={closed:!0,next:ho,error:Hy,complete:ho};var br=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ji(e){return e}function nf(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=zy(t)?t:new Cr(t,n,r);return _r(()=>{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=rf(n),new n((r,o)=>{let i=new Cr({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)}[br](){return this}pipe(...t){return nf(t)(this)}toPromise(t){return t=rf(t),new t((n,r)=>{let o;this.subscribe(i=>o=i,i=>r(i),()=>n(o))})}};Q.create=e=>new Q(e);function rf(e){var t;return(t=e??ht.Promise)!==null&&t!==void 0?t:Promise}function $y(e){return e&&q(e.next)&&q(e.error)&&q(e.complete)}function zy(e){return e&&e instanceof Rn||$y(e)&&Fi(e)}function Gy(e){return q(e?.lift)}function Ae(e){return t=>{if(Gy(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 Oe(e,t,n,r,o){return new hc(e,t,n,r,o)}var hc=class extends Rn{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 of=Ri(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ke=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 of}next(t){_r(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(t)}})}error(t){_r(()=>{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(){_r(()=>{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?uc:(this.currentObservers=null,o.push(t),new we(()=>{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}};ke.create=(e,t)=>new Bi(e,t);var Bi=class extends ke{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:uc}};var mo=class extends ke{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 mc={now(){return(mc.delegate||Date).now()},delegate:void 0};var Dr=class extends ke{constructor(t=1/0,n=1/0,r=mc){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 sf=new Q(e=>e.complete());function af(e){return e&&q(e.schedule)}function yc(e){return e[e.length-1]}function cf(e){return q(yc(e))?e.pop():void 0}function Hi(e){return af(yc(e))?e.pop():void 0}function lf(e,t){return typeof yc(e)=="number"?e.pop():t}function df(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(p){try{l(r.next(p))}catch(h){s(h)}}function c(p){try{l(r.throw(p))}catch(h){s(h)}}function l(p){p.done?i(p.value):o(p.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function uf(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 Pn(e){return this instanceof Pn?(this.v=e,this):new Pn(e)}function ff(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,h)}}function a(m,_){r[m]&&(o[m]=function(x){return new Promise(function(R,F){i.push([m,x,R,F])>1||c(m,x)})},_&&(o[m]=_(o[m])))}function c(m,_){try{l(r[m](_))}catch(x){y(i[0][3],x)}}function l(m){m.value instanceof Pn?Promise.resolve(m.value.v).then(p,h):y(i[0][2],m)}function p(m){c("next",m)}function h(m){c("throw",m)}function y(m,_){m(_),i.shift(),i.length&&c(i[0][0],i[0][1])}}function pf(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 uf=="function"?uf(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 q(e?.then)}function zi(e){return q(e[br])}function Gi(e){return Symbol.asyncIterator&&q(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 Wy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var qi=Wy();function Zi(e){return q(e?.[qi])}function Yi(e){return ff(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Pn(n.read());if(o)return yield Pn(void 0);yield yield Pn(r)}}finally{n.releaseLock()}})}function Qi(e){return q(e?.getReader)}function be(e){if(e instanceof Q)return e;if(e!=null){if(zi(e))return qy(e);if(Ui(e))return Zy(e);if($i(e))return Yy(e);if(Gi(e))return gf(e);if(Zi(e))return Qy(e);if(Qi(e))return Ky(e)}throw Wi(e)}function qy(e){return new Q(t=>{let n=e[br]();if(q(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Zy(e){return new Q(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Yy(e){return new Q(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Li)})}function Qy(e){return new Q(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function gf(e){return new Q(t=>{Jy(e,t).catch(n=>t.error(n))})}function Ky(e){return gf(Yi(e))}function Jy(e,t){var n,r,o,i;return df(this,void 0,void 0,function*(){try{for(n=pf(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 it(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 Ae((n,r)=>{n.subscribe(Oe(r,o=>it(r,e,()=>r.next(o),t),()=>it(r,e,()=>r.complete(),t),o=>it(r,e,()=>r.error(o),t)))})}function Ji(e,t=0){return Ae((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function hf(e,t){return be(e).pipe(Ji(t),Ki(t))}function mf(e,t){return be(e).pipe(Ji(t),Ki(t))}function yf(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 vf(e,t){return new Q(n=>{let r;return it(n,t,()=>{r=e[qi](),it(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)}),()=>q(r?.return)&&r.return()})}function Xi(e,t){if(!e)throw new Error("Iterable cannot be null");return new Q(n=>{it(n,t,()=>{let r=e[Symbol.asyncIterator]();it(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function _f(e,t){return Xi(Yi(e),t)}function Cf(e,t){if(e!=null){if(zi(e))return hf(e,t);if(Ui(e))return yf(e,t);if($i(e))return mf(e,t);if(Gi(e))return Xi(e,t);if(Zi(e))return vf(e,t);if(Qi(e))return _f(e,t)}throw Wi(e)}function Gt(e,t){return t?Cf(e,t):be(e)}function vc(...e){let t=Hi(e);return Gt(e,t)}function xe(e,t){return Ae((n,r)=>{let o=0;n.subscribe(Oe(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Xy}=Array;function ev(e,t){return Xy(t)?e(...t):e(t)}function bf(e){return xe(t=>ev(e,t))}var{isArray:tv}=Array,{getPrototypeOf:nv,prototype:rv,keys:ov}=Object;function Df(e){if(e.length===1){let t=e[0];if(tv(t))return{args:t,keys:null};if(iv(t)){let n=ov(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function iv(e){return e&&typeof e=="object"&&nv(e)===rv}function Ef(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function wf(e,t,n,r,o,i,s,a){let c=[],l=0,p=0,h=!1,y=()=>{h&&!c.length&&!l&&t.complete()},m=x=>l<r?_(x):c.push(x),_=x=>{i&&t.next(x),l++;let R=!1;be(n(x,p++)).subscribe(Oe(t,F=>{o?.(F),i?m(F):t.next(F)},()=>{R=!0},void 0,()=>{if(R)try{for(l--;c.length&&l<r;){let F=c.shift();s?it(t,s,()=>_(F)):_(F)}y()}catch(F){t.error(F)}}))};return e.subscribe(Oe(t,m,()=>{h=!0,y()})),()=>{a?.()}}function Er(e,t,n=1/0){return q(t)?Er((r,o)=>xe((i,s)=>t(r,i,o,s))(be(e(r,o))),n):(typeof t=="number"&&(n=t),Ae((r,o)=>wf(r,o,e,n)))}function xf(e=1/0){return Er(ji,e)}function _c(...e){let t=cf(e),{args:n,keys:r}=Df(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 p=0;p<s;p++){let h=!1;be(n[p]).subscribe(Oe(i,y=>{h||(h=!0,l--),a[p]=y},()=>c--,void 0,()=>{(!c||!h)&&(l||i.next(r?Ef(r,a):a),i.complete())}))}});return t?o.pipe(bf(t)):o}function Cc(...e){let t=Hi(e),n=lf(e,1/0),r=e;return r.length?r.length===1?be(r[0]):xf(n)(Gt(r,t)):sf}function bc(e,t){return Ae((n,r)=>{let o=0;n.subscribe(Oe(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Dc(e,t){return q(t)?Er(e,t,1):Er(e,1)}function Ec(e){return Ae((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Fn(e,t){return Ae((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(Oe(r,c=>{o?.unsubscribe();let l=0,p=i++;be(e(c,p)).subscribe(o=Oe(r,h=>r.next(t?t(c,h,p,l++):h),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function wc(e){return Ae((t,n)=>{be(e).subscribe(Oe(n,()=>n.complete(),ho)),!n.closed&&t.subscribe(n)})}var ss="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",S=class extends Error{code;constructor(t,n){super(dn(t,n)),this.code=t}};function sv(e){return`NG0${Math.abs(e)}`}function dn(e,t){return`${sv(e)}${t?": "+t:""}`}function oe(e){for(let t in e)if(e[t]===oe)return t;throw Error("")}function Nf(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 av=oe({__forward_ref__:oe});function $e(e){return e.__forward_ref__=$e,e}function Se(e){return Lc(e)?e():e}function Lc(e){return typeof e=="function"&&Object.hasOwn(e,av)&&e.__forward_ref__===$e}function te(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 cv(e,us)}function cv(e,t){return Object.hasOwn(e,t)&&e[t]||null}function lv(e){let t=e?.[us]??null;return t||null}function Sc(e){return e&&Object.hasOwn(e,ts)?e[ts]:null}var us=oe({\u0275prov:oe}),ts=oe({\u0275inj:oe}),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=te({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Vc(e){return e&&!!e.\u0275providers}var Do=oe({\u0275cmp:oe}),Eo=oe({\u0275dir:oe}),jc=oe({\u0275pipe:oe});var vo=oe({\u0275fac:oe}),Hn=oe({__NG_ELEMENT_ID__:oe}),Sf=oe({__NG_ENV_ID__:oe});function Qt(e){return Hc(e,"@Component"),e[Do]||null}function Bc(e){return Hc(e,"@Directive"),e[Eo]||null}function Af(e){return Hc(e,"@Pipe"),e[jc]||null}function Hc(e,t){if(e==null)throw new S(-919,!1)}function Kt(e){return typeof e=="string"?e:e==null?"":String(e)}var Of=oe({ngErrorCode:oe}),uv=oe({ngErrorMessage:oe}),dv=oe({ngTokenPath:oe});function Uc(e,t){return kf("",-200,t)}function ds(e,t){throw new S(-201,!1)}function kf(e,t,n){let r=new S(t,e);return r[Of]=t,r[uv]=e,n&&(r[dv]=n),r}function fv(e){return e[Of]}var Ic;function Rf(){return Ic}function Be(e){let t=Ic;return Ic=e,t}function $c(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 Un=globalThis;var pv={},Ln=pv,gv="__NG_DI_FLAG__",Mc=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Vn(n)||0;try{return this.injector.get(t,r&8?null:Ln,r)}catch(o){if(yr(o))return o;throw o}}};function hv(e,t=0){let n=ki();if(n===void 0)throw new S(-203,!1);if(n===null)return $c(e,void 0,t);{let r=mv(t),o=n.retrieve(e,r);if(yr(o)){if(r.optional)return null;throw o}return o}}function $(e,t=0){return(Rf()||hv)(Se(e),t)}function b(e,t){return $(e,Vn(t))}function Vn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function mv(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Tc(e){let t=[];for(let n=0;n<e.length;n++){let r=Se(e[n]);if(Array.isArray(r)){if(r.length===0)throw new S(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=yv(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push($(o,i))}else t.push($(r))}return t}function yv(e){return e[gv]}function un(e,t){let n=Object.hasOwn(e,vo);return n?e[vo]:null}function Pf(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 Ff(e){return e.flat(Number.POSITIVE_INFINITY)}function fs(e,t){e.forEach(n=>Array.isArray(n)?fs(n,t):t(n))}function zc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function wo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Lf(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=Sr(e,t);return r>=0?e[r|1]=n:(r=~r,Lf(e,r,t,n)),r}function gs(e,t){let n=Sr(e,t);if(n>=0)return e[n|1]}function Sr(e,t){return vv(e,t,1)}function vv(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 fn={},He=[],xo=new O(""),So=new O("",-1),Gc=new O(""),xr=class{get(t,n=Ln){if(n===Ln){let o=kf("",-201);throw o.name="\u0275NotFound",o}return n}};function Ir(e){return{\u0275providers:e}}function Vf(...e){return{\u0275providers:Wc(!0,e),\u0275fromNgModule:!0}}function Wc(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&&jf(o,i),n}function jf(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];qc(o,i=>{t(i,r)})}}function ns(e,t,n,r){if(e=Se(e),!e)return!1;let o=null,i=Sc(e),s=!i&&Qt(e);if(!i&&!s){let c=e.ngModule;if(i=Sc(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,p=>{ns(p,t,n,r)&&(l||=[],l.push(p))}),l!==void 0&&jf(l,t)}if(!a){let l=un(o)||(()=>new o);t({provide:o,useFactory:l,deps:He},o),t({provide:Gc,useValue:o,multi:!0},o),t({provide:xo,useValue:()=>$(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;qc(c,p=>{t(p,l)})}}else return!1;return o!==e&&e.providers!==void 0}function qc(e,t){for(let n of e)Vc(n)&&(n=n.\u0275providers),Array.isArray(n)?qc(n,t):t(n)}var _v=oe({provide:String,useValue:oe});function Bf(e){return e!==null&&typeof e=="object"&&_v in e}function Cv(e){return!!(e&&e.useExisting)}function bv(e){return!!(e&&e.useFactory)}function jn(e){return typeof e=="function"}function Hf(e){return!!e.useClass}var Io=new O(""),es={},If={},xc;function Mr(){return xc===void 0&&(xc=new xr),xc}var Ue=class{},Bn=class extends Ue{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,Ac(t,s=>this.processProvider(s)),this.records.set(So,wr(void 0,this)),o.has("environment")&&this.records.set(Ue,wr(void 0,this));let i=this.records.get(Io);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Gc,He,{self:!0}))}retrieve(t,n){let r=Vn(n)||0;try{return this.get(t,Ln,r)}catch(o){if(yr(o))return o;throw o}}destroy(){yo(this),this._destroyed=!0;let t=P(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(),P(t)}}onDestroy(t){return yo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){yo(this);let n=At(this),r=Be(void 0),o;try{return t()}finally{At(n),Be(r)}}get(t,n=Ln,r){if(yo(this),Object.hasOwn(t,Sf))return t[Sf](this);let o=Vn(r),i,s=At(this),a=Be(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let p=Sv(t)&&ls(t);p&&this.injectableDefInScope(p)?l=wr(Nc(t),es):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?Mr():this.parent;return n=o&8&&n===Ln?null:n,c.get(t,n)}catch(c){let l=fv(c);throw l===-200||l===-201?new S(l,null):c}finally{Be(a),At(s)}}resolveInjectorInitializers(){let t=P(null),n=At(this),r=Be(void 0),o;try{let i=this.get(xo,He,{self:!0});for(let s of i)s()}finally{At(n),Be(r),P(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=Se(t);let n=jn(t)?t:Se(t&&t.provide),r=Ev(t);if(!jn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=wr(void 0,es,!0),o.factory=()=>Tc(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=P(null);try{if(n.value===If)throw Uc("");return n.value===es&&(n.value=If,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&xv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{P(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Se(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 Nc(e){let t=ls(e),n=t!==null?t.factory:un(e);if(n!==null)return n;if(e instanceof O)throw new S(-204,!1);if(e instanceof Function)return Dv(e);throw new S(-204,!1)}function Dv(e){if(e.length>0)throw new S(-204,!1);let n=lv(e);return n!==null?()=>n.factory(e):()=>new e}function Ev(e){if(Bf(e))return wr(void 0,e.useValue);{let t=Zc(e);return wr(t,es)}}function Zc(e,t,n){let r;if(jn(e)){let o=Se(e);return un(o)||Nc(o)}else if(Bf(e))r=()=>Se(e.useValue);else if(bv(e))r=()=>e.useFactory(...Tc(e.deps||[]));else if(Cv(e))r=(o,i)=>$(Se(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Se(e&&(e.useClass||e.provide));if(wv(e))r=()=>new o(...Tc(e.deps));else return un(o)||Nc(o)}return r}function yo(e){if(e.destroyed)throw new S(-205,!1)}function wr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function wv(e){return!!e.deps}function xv(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Sv(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Ac(e,t){for(let n of e)Array.isArray(n)?Ac(n,t):n&&Vc(n)?Ac(n.\u0275providers,t):t(n)}function Tr(e,t){let n;e instanceof Bn?(yo(e),n=e):n=new Mc(e);let r,o=At(n),i=Be(void 0);try{return t()}finally{At(o),Be(i)}}function Uf(){return Rf()!==void 0||ki()!=null}var yt=0,k=1,L=2,ve=3,at=4,We=5,Nr=6,Ar=7,ge=8,Ot=9,vt=10,se=11,Or=12,Yc=13,pn=14,Je=15,gn=16,$n=17,kt=18,Rt=19,Qc=20,Wt=21,hs=22,qt=23,Xe=24,zn=25,Pt=26,me=27,$f=1,Kc=6,Gn=7,Mo=8,Wn=9,fe=10;function Jt(e){return Array.isArray(e)&&typeof e[$f]=="object"}function ct(e){return Array.isArray(e)&&e[$f]===!0}function Jc(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 kr(e){return(e[L]&512)!==0}function qn(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 Xc="svg",zf="math";function Ie(e){for(;Array.isArray(e);)e=e[yt];return e}function el(e,t){return Ie(t[e])}function lt(e,t){return Ie(t[e.index])}function vs(e,t){return e.data[t]}function tl(e,t){return e[t]}function nl(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function ut(e,t){let n=t[e];return Jt(n)?n:n[yt]}function Gf(e){return(e[L]&4)===4}function _s(e){return(e[L]&128)===128}function Wf(e){return ct(e[ve])}function Lt(e,t){return t==null?null:e[t]}function rl(e){e[$n]=0}function Cs(e){e[L]&1024||(e[L]|=1024,_s(e)&&Zn(e))}function qf(e,t){for(;e>0;)t=t[pn],e--;return t}function Rr(e){return!!(e[L]&9216||e[Xe]?.dirty)}function bs(e){e[vt].changeDetectionScheduler?.notify(8),e[L]&64&&(e[L]|=1024),Rr(e)&&Zn(e)}function Zn(e){e[vt].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(qn(e))throw new S(911,!1);e[Wt]===null&&(e[Wt]=[]),e[Wt].push(t)}function Zf(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 ct(t)?t[ve]:t}function ol(e){return e[Ar]??=[]}function il(e){return e.cleanup??=[]}function Yf(e,t,n,r){let o=ol(t);o.push(n),e.firstCreatePass&&il(e).push(r,o.length-1)}var H={lFrame:cp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Oc=!1;function Qf(){return H.lFrame.elementDepthCount}function Kf(){H.lFrame.elementDepthCount++}function sl(){H.lFrame.elementDepthCount--}function Jf(){return H.bindingsEnabled}function Xf(){return H.skipHydrationRootTNode!==null}function al(e){return H.skipHydrationRootTNode===e}function cl(){H.skipHydrationRootTNode=null}function V(){return H.lFrame.lView}function pe(){return H.lFrame.tView}function I(e){return H.lFrame.contextLView=e,e[ge]}function M(e){return H.lFrame.contextLView=null,e}function Me(){let e=ll();for(;e!==null&&e.type===64;)e=e.parent;return e}function ll(){return H.lFrame.currentTNode}function ep(){let e=H.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Pr(e,t){let n=H.lFrame;n.currentTNode=e,n.isParent=t}function ul(){return H.lFrame.isParent}function tp(){H.lFrame.isParent=!1}function dl(){return Oc}function _o(e){let t=Oc;return Oc=e,t}function Es(){let e=H.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function fl(){return H.lFrame.bindingIndex}function np(e){return H.lFrame.bindingIndex=e}function hn(){return H.lFrame.bindingIndex++}function To(e){let t=H.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function rp(){return H.lFrame.inI18n}function op(e,t){let n=H.lFrame;n.bindingIndex=n.bindingRootIndex=e,ws(t)}function ip(){return H.lFrame.currentDirectiveIndex}function ws(e){H.lFrame.currentDirectiveIndex=e}function sp(e){let t=H.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function pl(){return H.lFrame.currentQueryIndex}function xs(e){H.lFrame.currentQueryIndex=e}function Iv(e){let t=e[k];return t.type===2?t.declTNode:t.type===1?e[We]:null}function gl(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Iv(i),o===null||(i=i[pn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=H.lFrame=ap();return r.currentTNode=t,r.lView=e,!0}function Ss(e){let t=ap(),n=e[k];H.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ap(){let e=H.lFrame,t=e===null?null:e.child;return t===null?cp(e):t}function cp(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 lp(){let e=H.lFrame;return H.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var hl=lp;function Is(){let e=lp();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 up(e){return(H.lFrame.contextLView=qf(e,H.lFrame.contextLView))[ge]}function _t(){return H.lFrame.selectedIndex}function mn(e){H.lFrame.selectedIndex=e}function Fr(){let e=H.lFrame;return vs(e.tView,e.selectedIndex)}function No(){H.lFrame.currentNamespace=Xc}function Ao(){Mv()}function Mv(){H.lFrame.currentNamespace=null}function ml(){return H.lFrame.currentNamespace}var dp=!0;function Ms(){return dp}function Ts(e){dp=e}function kc(e,t=null,n=null,r){let o=fp(e,t,n,r);return o.resolveInjectorInitializers(),o}function fp(e,t=null,n=null,r,o=new Set){let i=[n||He,Vf(e)],s;return new Bn(i,t||Mr(),s||null,o)}var Pe=class e{static THROW_IF_NOT_FOUND=Ln;static NULL=new xr;static create(t,n){if(Array.isArray(t))return kc({name:""},n,t,"");{let r=t.name??"";return kc({name:r},t.parent,t.providers,r)}}static \u0275prov=te({token:e,providedIn:"any",factory:()=>$(So)});static __NG_ELEMENT_ID__=-1},Fe=new O(""),de=class{static __NG_ELEMENT_ID__=Tv;static __NG_ENV_ID__=t=>t},rs=class extends de{_lView;constructor(t){super(),this._lView=t}get destroyed(){return qn(this._lView)}onDestroy(t){let n=this._lView;return Ds(n,t),()=>Zf(n,t)}};function Tv(){return new rs(V())}var pp=!1,gp=new O(""),Yn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new mo(!1);debugTaskTracker=b(gp,{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=te({token:e,providedIn:"root",factory:()=>new e})}return e})(),Rc=class extends ke{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Uf()&&(this.destroyRef=b(de,{optional:!0})??void 0,this.pendingTasks=b(Yn,{optional:!0})??void 0)}emit(t){let n=P(null);try{super.next(t)}finally{P(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 we&&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)}})}}},Re=Rc;function os(...e){}function yl(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 hp(e){return queueMicrotask(()=>e()),()=>{e=os}}var vl="isAngularZone",Co=vl+"_ID",Nv=0,De=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Re(!1);onMicrotaskEmpty=new Re(!1);onStable=new Re(!1);onError=new Re(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=pp}=t;if(typeof Zone>"u")throw new S(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,kv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(vl)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new S(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,Av,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)}},Av={};function _l(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 Ov(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){yl(()=>{e.callbackScheduled=!1,Pc(e),e.isCheckStableRunning=!0,_l(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Pc(e)}function kv(e){let t=()=>{Ov(e)},n=Nv++;e._inner=e._inner.fork({name:"angular",properties:{[vl]:!0,[Co]:n,[Co+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Rv(c))return r.invokeTask(i,s,a,c);try{return Mf(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Tf(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return Mf(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Pv(c)&&t(),Tf(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Pc(e),_l(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 Pc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Mf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Tf(e){e._nesting--,_l(e)}var bo=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Re;onMicrotaskEmpty=new Re;onStable=new Re;onError=new Re;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 Rv(e){return mp(e,"__ignore_ng_zone__")}function Pv(e){return mp(e,"__scheduler_tick__")}function mp(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var st=class{_console=console;handleError(t){this._console.error("ERROR",t)}},yn=new O("",{factory:()=>{let e=b(De),t=b(Ue),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(st),n.handleError(r))})}}}),yp={provide:xo,useValue:()=>{let e=b(st,{optional:!0})},multi:!0};function A(e,t){let[n,r,o]=ic(e,t?.equal),i=n,s=i[Ee];return i.set=r,i.update=o,i.asReadonly=Cl.bind(i),i}function Cl(){let e=this[Ee];if(e.readonlyFn===void 0){let t=()=>this();t[Ee]=e,e.readonlyFn=t}return e.readonlyFn}var Oo=new O("",{factory:()=>Fv}),Fv="ng";var Ns=new O(""),ko=new O("",{providedIn:"platform",factory:()=>"unknown"});var Ro=new O("",{factory:()=>b(Fe).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Po=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Lv}return e})();function Lv(){return new Po(V(),Me())}var mt=class{},Fo=new O("",{factory:()=>!0});var bl=new O(""),As=(()=>{class e{static \u0275prov=te({token:e,providedIn:"root",factory:()=>new Fc})}return e})(),Fc=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{[Ee];constructor(t){this[Ee]=t}destroy(){this[Ee].destroy()}};function Ct(e,t){let n=t?.injector??b(Pe),r=t?.manualCleanup!==!0?n.get(de):null,o,i=n.get(Po,null,{optional:!0}),s=n.get(mt);return i!==null?(o=_p(i.view,s,e),r instanceof rs&&r._lView===i.view&&(r=null)):o=Bv(e,n.get(As),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new is(o)}var vp=U(j({},ac),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=_o(!1);try{cc(this)}finally{_o(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=P(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],P(e)}}}),Vv=U(j({},vp),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(An(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),jv=U(j({},vp),{consumerMarkedDirty(){this.view[L]|=8192,Zn(this.view),this.notifier.notify(13)},destroy(){if(An(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[qt]?.delete(this)}});function _p(e,t,n){let r=Object.create(jv);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=Cp(r,n),e[qt]??=new Set,e[qt].add(r),r.consumerMarkedDirty(r),r}function Bv(e,t,n){let r=Object.create(Vv);return r.fn=Cp(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 Cp(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function Qn(e){return typeof e=="function"&&e[Ee]!==void 0}function Os(e){return Qn(e)&&typeof e.set=="function"}var Lr=(()=>{class e{internalPendingTasks=b(Yn);scheduler=b(mt);errorHandler=b(yn);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=te({token:e,providedIn:"root",factory:()=>new e})}return e})();var ta=Symbol("InputSignalNode#UNSET"),tg=U(j({},po),{transformFn:void 0,applyValueToInputSignal(e,t){On(e,t)}});function Yo(e){return{toString:e}.toString()}var K=(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})(K||{}),Vs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ng(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var rg=null,or=(()=>{rg=bp;let e=()=>bp;return e.ngInherit=!0,e})();function Kv(){return rg}function bp(e){return e.type.prototype.ngOnChanges&&(e.setInput=Xv),Jv}function Jv(){let e=og(this),t=e?.current;if(t){let n=e.previous;if(n===fn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Xv(e,t,n,r,o){let i=this.declaredInputs[r],s=og(e)||e0(e,{previous:fn,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Vs(l&&l.currentValue,n,c===fn),ng(e,t,o,n)}var kl="__ngSimpleChanges__";function og(e){return Object.hasOwn(e,kl)&&e[kl]||null}function e0(e,t){return e[kl]=t}var Dp=[];var ne=function(e,t=null,n){for(let r=0;r<Dp.length;r++){let o=Dp[r];o(e,t,n)}};function t0(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Kv()(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 n0(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:p}=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)),p!=null&&(e.destroyHooks??=[]).push(n,p)}}function Rs(e,t,n){ig(e,t,3,n)}function Ps(e,t,n,r){(e[L]&3)===n&&ig(e,t,n,r)}function Dl(e,t){let n=e[L];(n&3)===t&&(n&=16383,n+=1,e[L]=n)}function ig(e,t,n,r){let o=r!==void 0?e[$n]&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[$n]+=65536),(a<i||i==-1)&&(r0(e,n,t,c),e[$n]=(e[$n]&4294901760)+c+2),c++}function Ep(e,t){ne(K.LifecycleHookStart,e,t);let n=P(null);try{t.call(e)}finally{P(n),ne(K.LifecycleHookEnd,e,t)}}function r0(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[$n]>>16&&(e[L]&3)===t&&(e[L]+=16384,Ep(a,i)):Ep(a,i)}var jr=-1,Xn=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 o0(e){return(e.flags&8)!==0}function i0(e){return(e.flags&16)!==0}function s0(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];c0(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function a0(e){return e===3||e===4||e===6}function c0(e){return e.charCodeAt(0)===64}function Br(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?wp(e,n,o,null,t[++r]):wp(e,n,o,null,null))}}return e}function wp(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 sg(e){return e!==jr}function js(e){return e&32767}function l0(e){return e>>16}function Bs(e,t){let n=l0(e),r=t;for(;n>0;)r=r[pn],n--;return r}var Rl=!0;function Hs(e){let t=Rl;return Rl=e,t}var u0=256,ag=u0-1,cg=5,d0=0,Vt={};function f0(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:Object.hasOwn(n,Hn)&&(r=n[Hn]),r==null&&(r=n[Hn]=d0++);let o=r&ag,i=1<<o;t.data[e+(o>>cg)]|=i}function Us(e,t){let n=lg(e,t);if(n!==-1)return n;let r=t[k];r.firstCreatePass&&(e.injectorIndex=t.length,El(r.data,e),El(t,null),El(r.blueprint,null));let o=cu(e,t),i=e.injectorIndex;if(sg(o)){let s=js(o),a=Bs(o,t),c=a[k].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function El(e,t){e.push(0,0,0,0,0,0,0,0,t)}function lg(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function cu(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=gg(o),r===null)return jr;if(n++,o=o[pn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return jr}function Pl(e,t,n){f0(e,t,n)}function ug(e,t,n){if(n&8||e!==void 0)return e;ds(t,"NodeInjector")}function dg(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Ot],i=Be(void 0);try{return o?o.get(t,r,n&8):$c(t,r,n&8)}finally{Be(i)}}return ug(r,t,n)}function fg(e,t,n,r=0,o){if(e!==null){if(t[L]&2048&&!(r&2)){let s=m0(e,t,n,r,Vt);if(s!==Vt)return s}let i=pg(e,t,n,r,Vt);if(i!==Vt)return i}return dg(t,n,r,o)}function pg(e,t,n,r,o){let i=g0(n);if(typeof i=="function"){if(!gl(t,e,r))return r&1?ug(o,n,r):dg(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=lg(e,t),c=jr,l=r&1?t[Je][We]:null;for((a===-1||r&4)&&(c=a===-1?cu(e,t):t[a+8],c===jr||!Sp(r,!1)?a=-1:(s=t[k],a=js(c),t=Bs(c,t)));a!==-1;){let p=t[k];if(xp(i,a,p.data)){let h=p0(a,t,n,s,r,l);if(h!==Vt)return h}c=t[a+8],c!==jr&&Sp(r,t[k].data[a+8]===l)&&xp(i,a,t)?(s=p,a=js(c),t=Bs(c,t)):a=-1}}return o}function p0(e,t,n,r,o,i){let s=t[k],a=s.data[e+8],c=r==null?Xt(a)&&Rl:r!=s&&(a.type&3)!==0,l=o&1&&i===a,p=Fs(a,s,n,c,l);return p!==null?Ho(t,s,p,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,p=i>>20,h=r?a:a+p,y=o?a+p:l;for(let m=h;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 Ho(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Xn){let a=i;if(a.resolving)throw Uc("");let c=Hs(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],p,h=a.injectImpl?Be(a.injectImpl):null,y=gl(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&t0(n,s[n],t)}finally{h!==null&&Be(h),Hs(c),a.resolving=!1,hl()}}return i}function g0(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=Object.hasOwn(e,Hn)?e[Hn]:void 0;return typeof t=="number"?t>=0?t&ag:h0:t}function xp(e,t,n){let r=1<<e;return!!(n[t+(e>>cg)]&r)}function Sp(e,t){return!(e&2)&&!(e&1&&t)}var vn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return fg(this._tNode,this._lView,t,Vn(r),n)}};function h0(){return new vn(Me(),V())}function wt(e){return Yo(()=>{let t=e.prototype.constructor,n=t[vo]||Fl(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[vo]||Fl(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Fl(e){return Lc(e)?()=>{let t=Fl(Se(e));return t&&t()}:un(e)}function m0(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[L]&2048&&!kr(s);){let a=pg(i,s,n,r|2,Vt);if(a!==Vt)return a;r&=-5;let c=i.parent;if(!c){let l=s[Qc];if(l){let p=l.get(n,Vt,r);if(p!==Vt)return p}c=gg(s),s=s[pn]}i=c}return o}function gg(e){let t=e[k],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 y0(){return zr(Me(),V())}function zr(e,t){return new xt(lt(e,t))}var xt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=y0}return e})();function v0(e){return e instanceof xt?e.nativeElement:e}function _0(){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 ke}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=Ff(t);(this._changesDetected=!Pf(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]=_0};function hg(e){return(e.flags&128)===128}var lu=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(lu||{}),mg=new Map,C0=0;function b0(){return C0++}function D0(e){mg.set(e[Rt],e)}function Ll(e){mg.delete(e[Rt])}var Ip="__ngContext__";function Hr(e,t){Jt(t)?(e[Ip]=t[Rt],D0(t)):e[Ip]=t}function yg(e){return _g(e[Or])}function vg(e){return _g(e[at])}function _g(e){for(;e!==null&&!ct(e);)e=e[at];return e}var Vl;function uu(e){Vl=e}function Cg(){if(Vl!==void 0)return Vl;if(typeof document<"u")return document;throw new S(210,!1)}var bg="r";var Dg="di";var Eg=!1,wg=new O("",{factory:()=>Eg});var Mp=new WeakMap;function E0(e,t){if(e==null||typeof e!="object")return;let n=Mp.get(e);n||(n=new WeakSet,Mp.set(e,n)),n.add(t)}var w0=(e,t,n,r)=>{};function x0(e,t,n,r){w0(e,t,n,r)}function du(e){return(e.flags&32)===32}var S0=()=>null;function xg(e,t,n=!1){return S0(e,t,n)}function Sg(e,t){let n=e.contentQueries;if(n!==null){let r=P(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{P(r)}}}function jl(e,t,n){xs(0);let r=P(null);try{t(e,n)}finally{P(r)}}function Ig(e,t,n){if(Jc(t)){let r=P(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{P(r)}}}var Et=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(Et||{});var zs=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ss})`}};function Uo(e){return e instanceof zs?e.changingThisBreaksApplicationSecurity:e}function Mg(e,t){let n=Tg(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 Tg(e){return e instanceof zs&&e.getTypeName()||null}var I0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ng(e){return e=String(e),e.match(I0)?e:"unsafe:"+e}function M0(e,t){return e.createText(t)}function T0(e,t,n){e.setValue(t,n)}function Ag(e,t,n){return e.createElement(t,n)}function Kn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Og(e,t,n){e.appendChild(t,n)}function Tp(e,t,n,r,o){r!==null?Kn(e,t,n,r,o):Og(e,t,n)}function kg(e,t,n,r){e.removeChild(null,t,n,r)}function N0(e,t,n){e.setAttribute(t,"style",n)}function A0(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Rg(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&s0(e,t,r),o!==null&&A0(e,t,o),i!==null&&N0(e,t,i)}function na(e){let t=O0();return t?t.sanitize(ys.URL,e)||"":Mg(e,"URL")?Uo(e):Ng(Kt(e))}function O0(){let e=V();return e&&e[vt].sanitizer}function k0(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 Pg="ng-template";function R0(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&k0(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(fu(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 fu(e){return e.type===4&&e.value!==Pg}function P0(e,t,n){let r=e.type===4&&!n?Pg:e.value;return t===r}function F0(e,t,n){let r=4,o=e.attrs,i=o!==null?j0(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!bt(r)&&!bt(c))return!1;if(s&&bt(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!P0(e,c,n)||c===""&&t.length===1){if(bt(r))return!1;s=!0}}else if(r&8){if(o===null||!R0(e,o,c,n)){if(bt(r))return!1;s=!0}}else{let l=t[++a],p=L0(c,o,fu(e),n);if(p===-1){if(bt(r))return!1;s=!0;continue}if(l!==""){let h;if(p>i?h="":h=o[p+1].toLowerCase(),r&2&&l!==h){if(bt(r))return!1;s=!0}}}}return bt(r)||s}function bt(e){return(e&1)===0}function L0(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 B0(t,e)}function V0(e,t,n=!1){for(let r=0;r<t.length;r++)if(F0(e,t[r],n))return!0;return!1}function j0(e){for(let t=0;t<e.length;t++){let n=e[t];if(a0(n))return t}return e.length}function B0(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 Np(e,t){return e?":not("+t.trim()+")":t}function H0(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!==""&&!bt(s)&&(t+=Np(i,o),o=""),r=s,i=i||!bt(r);n++}return o!==""&&(t+=Np(i,o)),t}function U0(e){return e.map(H0).join(",")}function $0(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(!bt(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Te={},jt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(jt||{}),z0;function pu(e,t){return z0(e,t)}var _n=new Set;var kA=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Bl=new WeakMap;function Fg(e){return e?e[pn]??e:null}var Vo=new WeakSet;function G0(e,t,n){let r=Bl.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=Fg(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:l}=r[a],p=c.parentNode;c===t?(r.splice(a,1),Vo.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)):p&&o&&p!==o&&(s===null||l===null||s===l)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),c.parentNode?.removeChild(c))}}function W0(e,t,n){let r=Fg(n),o=Bl.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):Bl.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 O(""),Ap=new Set;function nn(e){Ap.has(e)||(Ap.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var gu=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=te({token:e,providedIn:"root",factory:()=>new e})}return e})(),Lg=[0,1,2,3],Vg=(()=>{class e{ngZone=b(De);scheduler=b(mt);errorHandler=b(st,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){b(tn,{optional:!0})}execute(){let n=this.sequences.size>0;n&&ne(K.AfterRenderHooksStart),this.executing=!0;for(let r of Lg)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&&ne(K.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[zn]??=[]).push(n),Zn(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=te({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?.[zn];t&&(this.view[zn]=t.filter(n=>n!==this))}};function hu(e,t){let n=t?.injector??b(Pe);return nn("NgAfterNextRender"),Z0(e,n,t,!0)}function q0(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function Z0(e,t,n,r){let o=t.get(gu);o.impl??=t.get(Vg);let i=t.get(tn,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(de):null,a=t.get(Po,null,{optional:!0}),c=new Gs(o.impl,q0(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var mu=new O("",{factory:()=>{let e=b(Ue),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:!1,scheduler:null,injector:e}}});function jg(e,t,n){let r=e.get(mu);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 Y0(e,t){let n=e.get(mu);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t)}function Q0(e,t){let n=e.get(mu);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function K0(e,t){for(let[n,r]of t)jg(e,r.animateFns)}function Op(e,t,n,r){let o=e?.[Pt]?.enter;t!==null&&o&&o.has(n.index)&&K0(r,o)}function kp(e,t,n,r){try{n.get(So)}catch{return r(!1)}let o=e?.[Pt];o?.enter?.has(t.index)&&Y0(n,o.enter.get(t.index).animateFns);let i=J0(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&&_n.add(e[Rt]),jg(n,()=>X0(e,t,o||void 0,i,r),o||void 0)}function J0(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[k].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent}}return r}function X0(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),t_(e,s.running,o)}else Promise.allSettled(i).then(()=>{e&&_n.delete(e[Rt]),o(!0)})}else e&&_n.delete(e[Rt]),o(!1)}function oa(e,t,n){if(t.type&12){let o=e[t.index];if(ct(o))for(let i=fe;i<o.length;i++){let s=o[i];s[k].type===2&&e_(s,n)}}let r=t.child;for(;r;)oa(e,r,n),r=r.next}function e_(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[k].firstChild;for(;r;)oa(e,r,t),r=r.next}function t_(e,t,n){t.then(()=>{e[Pt]?.running===t&&(e[Pt].running=void 0,_n.delete(e[Rt])),n(!0)})}function Vr(e,t,n,r,o,i,s,a){if(o!=null){let c,l=!1;ct(o)?c=o:Jt(o)&&(l=!0,o=o[yt]);let p=Ie(o);e===0&&r!==null?(Op(a,r,i,n),s==null?Og(t,r,p):Kn(t,r,p,s||null,!0)):e===1&&r!==null?(Op(a,r,i,n),Kn(t,r,p,s||null,!0),G0(i,p,a)):e===2?(a?.[Pt]?.leave?.has(i.index)&&W0(i,p,a),Vo.delete(p),kp(a,i,n,h=>{if(Vo.has(p)){Vo.delete(p);return}kg(t,p,l,h)})):e===3&&(Vo.delete(p),kp(a,i,n,()=>{t.destroyNode(p)})),c!=null&&g_(t,e,n,c,i,r,s)}}function n_(e,t){Bg(e,t),t[yt]=null,t[We]=null}function r_(e,t,n,r,o,i){r[yt]=o,r[We]=t,sa(e,r,n,1,o,i)}function Bg(e,t){t[vt].changeDetectionScheduler?.notify(9),sa(e,t,t[se],2,null,null)}function o_(e){let t=e[Or];if(!t)return wl(e[k],e);for(;t;){let n=null;if(Jt(t))n=t[Or];else{let r=t[fe];r&&(n=r)}if(!n){for(;t&&!t[at]&&t!==e;)Jt(t)&&wl(t[k],t),t=t[ve];t===null&&(t=e),Jt(t)&&wl(t[k],t),n=t&&t[at]}t=n}}function yu(e,t){let n=e[Wn],r=n.indexOf(t);n.splice(r,1)}function ia(e,t){if(qn(t))return;let n=t[se];n.destroyNode&&sa(e,t,n,3,null,null),o_(t)}function wl(e,t){if(qn(t))return;let n=P(null);try{t[L]&=-129,t[L]|=256,t[Xe]&&An(t[Xe]),s_(e,t),i_(e,t),t[k].type===1&&t[se].destroy();let r=t[gn];if(r!==null&&ct(t[ve])){r!==t[ve]&&yu(r,t);let o=t[kt];o!==null&&o.detachView(e)}Ll(t)}finally{P(n)}}function i_(e,t){let n=e.cleanup,r=t[Ar];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[Ar]=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 s_(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 Xn)){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];ne(K.LifecycleHookStart,a,c);try{c.call(a)}finally{ne(K.LifecycleHookEnd,a,c)}}else{ne(K.LifecycleHookStart,o,i);try{i.call(o)}finally{ne(K.LifecycleHookEnd,o,i)}}}}}function a_(e,t,n){if(t===null)throw new S(510,!1);return c_(e,t.parent,n)}function c_(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[yt];if(Xt(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Et.None||o===Et.Emulated)return null}return lt(r,n)}function l_(e,t,n){return d_(e,t,n)}function u_(e,t,n){return e.type&40?lt(e,n):null}var d_=u_,Rp;function vu(e,t,n,r){let o=a_(e,r,t),i=t[se],s=r.parent||t[We],a=l_(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Tp(i,o,n[c],a,!1);else Tp(i,o,n,a,!1);Rp!==void 0&&Rp(i,r,t,n,o)}function jo(e,t){if(t!==null){let n=t.type;if(n&3)return lt(t,e);if(n&4)return Hl(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return jo(e,r);{let o=e[t.index];return ct(o)?Hl(-1,o):Ie(o)}}else{if(n&128)return jo(e,t.next);if(n&32)return pu(t,e)()||Ie(e[t.index]);{let r=Hg(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Zt(e[Je]);return jo(o,r)}else return jo(e,t.next)}}}return null}function Hg(e,t){if(t!==null){let r=e[Je][We],o=t.projection;return r.projection[o]}return null}function Hl(e,t){let n=fe+e+1;if(n<t.length){let r=t[n],o=r[k].firstChild;if(o!==null)return jo(r,o)}return t[Gn]}function _u(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&&Hr(Ie(c),r),n.flags|=2),!du(n))if(l&8)_u(e,t,n.child,r,o,i,!1),Vr(t,e,a,o,c,n,i,r);else if(l&32){let p=pu(n,r),h;for(;h=p();)Vr(t,e,a,o,h,n,i,r);Vr(t,e,a,o,c,n,i,r)}else l&16?p_(e,t,r,n,o,i):Vr(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?f_(n,r,t,o,i):_u(n,r,e.firstChild,t,o,i,!1)}function f_(e,t,n,r,o){let s=n[k].firstChild,a=s.next,c=Ie(n[s.index]),l=Ie(n[a.index]),p=a.index+1,h=n[p];if(t===1||t===0)r!==null&&(h&&h.hasChildNodes()?Kn(e,r,h,o,!0):(Kn(e,r,c,o,!0),Kn(e,r,l,o,!0)));else if(t===2){if(h||(h=document.createDocumentFragment(),n[p]=h),c&&c.parentNode===h)return;let y=c;for(;y!==null;){let m=y.nextSibling;if(h.appendChild(y),y===l)break;y=m}}}function p_(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 p=c[l];Vr(t,e,n[Ot],o,p,r,i,n)}else{let l=c,p=s[ve];hg(r)&&(l.flags|=128),_u(e,t,l,p,o,i,!0)}}function g_(e,t,n,r,o,i,s){let a=r[Gn],c=Ie(r);if(a!==c&&Vr(t,e,n,i,a,o,s),(r[L]&4)===0)for(let l=fe;l<r.length;l++){let p=r[l];sa(p[k],p,e,t,i,a)}}function h_(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 Cu(e,t,n,r,o,i,s,a,c,l,p){let h=me+r,y=h+o,m=m_(h,y),_=typeof l=="function"?l():l;return m[k]={type:e,blueprint:m,template:n,queries:null,viewQuery:a,declTNode:t,data:m.slice().fill(null,h),bindingStartIndex:h,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:p}}function m_(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Te);return n}function y_(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Cu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function bu(e,t,n,r,o,i,s,a,c,l,p){let h=t.blueprint.slice();return h[yt]=o,h[L]=r|4|128|8|64|1024,(l!==null||e&&e[L]&2048)&&(h[L]|=2048),rl(h),h[ve]=h[pn]=e,h[ge]=n,h[vt]=s||e&&e[vt],h[se]=a||e&&e[se],h[Ot]=c||e&&e[Ot]||null,h[We]=i,h[Rt]=b0(),h[Nr]=p,h[Qc]=l,h[Je]=t.type==2?e[Je]:h,h}function v_(e,t,n){let r=lt(t,e),o=y_(n),i=e[vt].rendererFactory,s=Du(e,bu(e,o,null,Ug(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Ug(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function $g(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 Du(e,t){return e[Or]?e[Yc][at]=t:e[Or]=t,e[Yc]=t,t}function f(e=1){zg(pe(),V(),_t()+e,!1)}function zg(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)}mn(n)}var Qo=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Qo||{});function er(e,t,n,r){let o=P(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Qo.SignalBased)!==0&&(c=t[i][Ee]),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):ng(t,c,i,r)}finally{P(o)}}function Gg(e,t,n,r,o){let i=_t(),s=r&2;try{mn(-1),s&&t.length>me&&zg(e,t,me,!1);let a=s?K.TemplateUpdateStart:K.TemplateCreateStart;ne(a,o,n),n(r,o)}finally{mn(i);let a=s?K.TemplateUpdateEnd:K.TemplateCreateEnd;ne(a,o,n)}}function Wg(e,t,n){w_(e,t,n),(n.flags&64)===64&&x_(e,t,n)}function Eu(e,t,n=lt){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 __(e,t,n,r){let i=r.get(wg,Eg)||n===Et.ShadowDom||n===Et.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return C_(s),s}function C_(e){b_(e)}var b_=()=>null;function D_(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function qg(e,t,n,r,o,i){let s=t[k];if(wu(e,s,t,n,r)){Xt(e)&&E_(t,e.index);return}e.type&3&&(n=D_(n)),Zg(e,t,n,r,o,i)}function Zg(e,t,n,r,o,i){if(e.type&3){let s=lt(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function E_(e,t){let n=ut(t,e);n[L]&16||(n[L]|=64)}function w_(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Xt(n)&&v_(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=Ho(t,e,s,n);if(Hr(c,t),i!==null&&N_(t,s-r,c,a,n,i),Ft(a)){let l=ut(n.index,t);l[ge]=Ho(t,e,s,n)}}}function x_(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=ip();try{mn(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)&&S_(c,l)}}finally{mn(-1),ws(s)}}function S_(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function I_(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];V0(t,i.selectors,!1)&&(r??=[],Ft(i)?r.unshift(i):r.push(i))}return r}function M_(e,t,n,r,o,i){let s=lt(e,t);T_(t[se],s,i,e.value,n,r,o)}function T_(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 N_(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];er(r,n,c,l)}}function Yg(e,t,n,r,o){let i=me+n,s=t[k],a=o(s,t,e,r,n);t[i]=a,Pr(e,!0);let c=e.type===2;return c?(Rg(t[se],a,e),(Qf()===0||ms(e))&&Hr(a,t),Kf()):Hr(a,t),Ms()&&(!c||!du(e))&&vu(s,t,a,e),e}function Qg(e){let t=e;return ul()?tp():(t=t.parent,Pr(t,!1)),t}function A_(e,t){let n=e[Ot];if(!n)return;let r;try{r=n.get(yn,null)}catch{r=null}r?.(t)}function wu(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],p=s[c+1],h=t.data[l];er(h,n[l],p,o),a=!0}if(i)for(let c of i){let l=n[c],p=t.data[c];er(p,l,r,o),a=!0}return a}function O_(e,t,n,r,o,i){let s=null,a=null,c=null,l=!1,p=e.directiveToIndex.get(r.type);if(typeof p=="number"?s=p:[s,a,c]=p,a!==null&&c!==null&&e.hostDirectiveInputs&&Object.hasOwn(e.hostDirectiveInputs,o)){let h=e.hostDirectiveInputs[o];for(let y=0;y<h.length;y+=2){let m=h[y];if(m>=a&&m<=c){let _=t.data[m],x=h[y+1];er(_,n[m],x,i),l=!0}else if(m>c)break}}return s!==null&&Object.hasOwn(r.inputs,o)&&(er(r,n[s],o,i),l=!0),l}function k_(e,t){let n=ut(t,e),r=n[k];R_(r,n);let o=n[yt];o!==null&&n[Nr]===null&&(n[Nr]=xg(o,n[Ot])),ne(K.ComponentStart);try{xu(r,n,n[ge])}finally{ne(K.ComponentEnd,n[ge])}}function R_(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function xu(e,t,n){Ss(t);try{let r=e.viewQuery;r!==null&&jl(1,r,n);let o=e.template;o!==null&&Gg(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[kt]?.finishViewCreation(e),e.staticContentQueries&&Sg(e,t),e.staticViewQueries&&jl(2,e.viewQuery,n);let i=e.components;i!==null&&P_(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[L]&=-5,Is()}}function P_(e,t){for(let n=0;n<t.length;n++)k_(e,t[n])}function aa(e,t,n,r){let o=P(null);try{let i=t.tView,a=e[L]&4096?4096:16,c=bu(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[gn]=l;let p=e[kt];return p!==null&&(c[kt]=p.createEmbeddedView(i)),xu(i,c,n),c}finally{P(o)}}function $o(e,t){return!t||t.firstChild===null||hg(e)}function zo(e,t,n,r,o=!1){if(e.type===3){let i=e.firstChild,s=i.next,a=Ie(t[i.index]),c=Ie(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(ct(i)){let a=i[Gn];a!==i[yt]&&r.push(Ie(i)),i[L]&4||Kg(i,r),r.push(a)}else r.push(Ie(i));let s=n.type;if(s&8)zo(e,t,n.child,r);else if(s&32){let a=pu(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Hg(t,n);if(Array.isArray(a))r.push(...a);else{let c=Zt(t[Je]);zo(c[k],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Kg(e,t){for(let n=fe;n<e.length;n++){let r=e[n],o=r[k].firstChild;o!==null&&zo(r[k],r,o,t)}}function Jg(e){if(e[zn]!==null){for(let t of e[zn])t.impl.addSequence(t);e[zn].length=0}}var Xg=[];function F_(e){return e[Xe]??L_(e)}function L_(e){let t=Xg.pop()??Object.create(j_);return t.lView=e,t}function V_(e){e.lView[Xe]!==e&&(e.lView=null,Xg.push(e))}var j_=U(j({},Tn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Zn(e.lView)},consumerOnSignalRead(){this.lView[Xe]=this}});function B_(e){let t=e[Xe]??Object.create(H_);return t.lView=e,t}var H_=U(j({},Tn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Zt(e.lView);for(;t&&!eh(t[k]);)t=Zt(t);t&&Cs(t)},consumerOnSignalRead(){this.lView[Xe]=this}});function eh(e){return e.type!==2}function th(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 U_=100;function nh(e,t=0){let r=e[vt].rendererFactory,o=!1;o||r.begin?.();try{$_(e,t)}finally{o||r.end?.()}}function $_(e,t){let n=dl();try{_o(!0),Ul(e,t);let r=0;for(;Rr(e);){if(r===U_)throw new S(103,!1);r++,Ul(e,1)}}finally{_o(n)}}function z_(e,t,n,r){if(qn(t))return;let o=t[L],i=!1,s=!1;Ss(t);let a=!0,c=null,l=null;i||(eh(e)?(l=F_(t),c=Nn(l)):Mi()===null?(a=!1,l=B_(t),c=Nn(l)):t[Xe]&&(An(t[Xe]),t[Xe]=null));try{rl(t),np(e.bindingStartIndex),n!==null&&Gg(e,t,n,2,r);let p=(o&3)===3;if(!i)if(p){let m=e.preOrderCheckHooks;m!==null&&Rs(t,m,null)}else{let m=e.preOrderHooks;m!==null&&Ps(t,m,0,null),Dl(t,0)}if(s||G_(t),th(t),rh(t,0),e.contentQueries!==null&&Sg(e,t),!i)if(p){let m=e.contentCheckHooks;m!==null&&Rs(t,m)}else{let m=e.contentHooks;m!==null&&Ps(t,m,1),Dl(t,1)}q_(e,t);let h=e.components;h!==null&&ih(t,h,0);let y=e.viewQuery;if(y!==null&&jl(2,y,r),!i)if(p){let m=e.viewCheckHooks;m!==null&&Rs(t,m)}else{let m=e.viewHooks;m!==null&&Ps(t,m,2),Dl(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[hs]){for(let m of t[hs])m();t[hs]=null}i||(Jg(t),t[L]&=-73)}catch(p){throw i||Zn(t),p}finally{l!==null&&(hr(l,c),a&&V_(l)),Is()}}function rh(e,t){for(let n=yg(e);n!==null;n=vg(n))for(let r=fe;r<n.length;r++){let o=n[r];oh(o,t)}}function G_(e){for(let t=yg(e);t!==null;t=vg(t)){if(!(t[L]&2))continue;let n=t[Wn];for(let r=0;r<n.length;r++){let o=n[r];Cs(o)}}}function W_(e,t,n){ne(K.ComponentStart);let r=ut(t,e);try{oh(r,n)}finally{ne(K.ComponentEnd,r[ge])}}function oh(e,t){_s(e)&&Ul(e,t)}function Ul(e,t){let r=e[k],o=e[L],i=e[Xe],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&fo(i)),s||=!1,i&&(i.dirty=!1),e[L]&=-9217,s)z_(r,e,r.template,e[ge]);else if(o&8192){let a=P(null);try{th(e),rh(e,1);let c=r.components;c!==null&&ih(e,c,1),Jg(e)}finally{P(a)}}}function ih(e,t,n){for(let r=0;r<t.length;r++)W_(e,t[r],n)}function q_(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)mn(~o);else{let i=o,s=n[++r],a=n[++r];op(s,i);let c=t[i];ne(K.HostBindingsUpdateStart,c);try{a(2,c)}finally{ne(K.HostBindingsUpdateEnd,c)}}}}finally{mn(-1)}}function Su(e,t){let n=dl()?64:1088;for(e[vt].changeDetectionScheduler?.notify(t);e;){e[L]|=n;let r=Zt(e);if(kr(e)&&!r)return e;e=r}return null}function sh(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function ah(e,t){let n=fe+t;if(n<e.length)return e[n]}function ca(e,t,n,r=!0){let o=t[k];if(Z_(o,t,e,n),r){let s=Hl(n,e),a=t[se],c=a.parentNode(e[Gn]);c!==null&&r_(o,e[We],a,t,c,s)}let i=t[Nr];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function ch(e,t){let n=Go(e,t);return n!==void 0&&ia(n[k],n),n}function Go(e,t){if(e.length<=fe)return;let n=fe+t,r=e[n];if(r){let o=r[gn];o!==null&&o!==e&&yu(o,r),t>0&&(e[n-1][at]=r[at]);let i=wo(e,fe+t);n_(r[k],r);let s=i[kt];s!==null&&s.detachView(i[k]),r[ve]=null,r[at]=null,r[L]&=-129}return r}function Z_(e,t,n,r){let o=fe+r,i=n.length;r>0&&(n[o-1][at]=t),r<i-fe?(t[at]=n[o],zc(n,fe+r,t)):(n.push(t),t[at]=null),t[ve]=n;let s=t[gn];s!==null&&n!==s&&lh(s,t);let a=t[kt];a!==null&&a.insertView(e),bs(t),t[L]|=128}function lh(e,t){let n=e[Wn],r=t[ve];if(Jt(r))e[L]|=2;else{let o=r[ve][Je];t[Je]!==o&&(e[L]|=2)}n===null?e[Wn]=[t]:n.push(t)}var Cn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[k];return zo(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[ge]}set context(t){this._lView[ge]=t}get destroyed(){return qn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ve];if(ct(t)){let n=t[Mo],r=n?n.indexOf(this):-1;r>-1&&(Go(t,r),wo(n,r))}this._attachedToViewContainer=!1}ia(this._lView[k],this._lView)}onDestroy(t){Ds(this._lView,t)}markForCheck(){Su(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[L]&=-129}reattach(){bs(this._lView),this._lView[L]|=128}detectChanges(){this._lView[L]|=1024,nh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=kr(this._lView),n=this._lView[gn];n!==null&&!t&&yu(n,this._lView),Bg(this._lView[k],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t;let n=kr(this._lView),r=this._lView[gn];r!==null&&!n&&lh(r,this._lView),bs(this._lView)}};function Iu(e){return Rr(e._lView)||!!(e._lView[L]&64)}function Mu(e){Cs(e._lView)}var Ur=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Y_;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 Cn(i)}}return e})();function Y_(){return Tu(Me(),V())}function Tu(e,t){return e.type&4?new Ur(t,e,zr(e,t)):null}function la(e,t,n,r,o){let i=e.data[t];if(i===null)i=Q_(e,t,n,r,o),rp()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=ep();i.injectorIndex=s===null?-1:s.injectorIndex}return Pr(i,!0),i}function Q_(e,t,n,r,o){let i=ll(),s=ul(),a=s?i:i&&i.parent,c=e.data[t]=J_(e,a,n,t,r,o);return K_(e,c,i,s),c}function K_(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 J_(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Xf()&&(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:ml(),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 X_(e){let t=e[Kc]??[],r=e[ve][se],o=[];for(let i of t)i.data[Dg]!==void 0?o.push(i):eC(i,r);e[Kc]=o}function eC(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[bg];for(;n<o;){let i=r.nextSibling;kg(t,r,!1),r=i,n++}}}var tC=()=>null,nC=()=>null;function $l(e,t){return tC(e,t)}function uh(e,t,n){return nC(e,t,n)}var dh=class{},tr=class{},Bt=class{destroyNode=null;static __NG_ELEMENT_ID__=()=>rC()};function rC(){let e=V(),t=Me(),n=ut(t.index,e);return(Jt(n)?n:e)[se]}var fh=(()=>{class e{static \u0275prov=te({token:e,providedIn:"root",factory:()=>null})}return e})();function ph(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 Nu(e,t,n){return e[t]=n}function oC(e,t){return e[t]}function et(e,t,n){if(n===Te)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Au(e,t,n,r){let o=et(e,t,n);return et(e,t+1,r)||o}function iC(e,t,n,r,o){let i=Au(e,t,n,r);return et(e,t+2,o)||i}function Jn(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&E0(o,i);let s=Xt(e)?ut(e.index,t):t;Su(s,5);let a=t[ge],c=Pp(t,a,n,o),l=r.__ngNextListenerFn__;for(;l;)c=Pp(t,a,l,o)&&c,l=l.__ngNextListenerFn__;return c}}function Pp(e,t,n,r){let o=P(null);try{return ne(K.OutputStart,t,n),n(r)!==!1}catch(i){return A_(e,i),!1}finally{ne(K.OutputEnd,t,n),P(o)}}function Ou(e,t,n,r,o,i,s,a){let c=ms(e),l=!1,p=null;if(!r&&c&&(p=aC(t,n,i,e.index)),p!==null){let h=p.__ngLastListenerFn__||p;h.__ngNextListenerFn__=s,p.__ngLastListenerFn__=s,l=!0}else{let h=lt(e,n),y=r?r(h):h;x0(n,y,i,a),r||(a.__ngNativeEl__=h);let m=o.listen(y,i,a);if(!sC(i)){let _=r?x=>r(Ie(x[e.index])):e.index;gh(_,t,n,i,a,m,!1)}}return l}function sC(e){return e.startsWith("animation")||e.startsWith("transition")}function aC(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[Ar],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function gh(e,t,n,r,o,i,s){let a=t.firstCreatePass?il(t):null,c=ol(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function Fp(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 p=e.hostDirectiveOutputs[r];for(let h=0;h<p.length;h+=2){let y=p[h];if(y>=s&&y<=a)c=!0,qs(e,t,y,p[h+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[k],l=a.data[n].outputs[r],h=s[l].subscribe(i);gh(e.index,a,t,o,i,h,!0)}function z(){cC()}function cC(){let e=V(),t=pe(),n=Me();if(t.firstCreatePass&&uC(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(){lC()}function lC(){let e=V(),t=pe(),n=Fr();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 lt(this.tNode,this.lView)}get descriptor(){return`<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];Fp(this.tNode,this.lView,r,t,Jn(this.tNode,this.lView,n))}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];Fp(this.tNode,this.lView,r,n,Jn(this.tNode,this.lView,t))}listenToDom(t,n){Ou(this.tNode,this.tView,this.lView,void 0,this.lView[se],t,n,Jn(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(Vp(c,l,t)))&&(er(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],p=i[a+1],h=this.tView.data[c];(!r||r(Vp(l,h,t)))&&(er(h,l,p,n),s=!0)}return s}setCustomControlModelInput(t){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";O_(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=Lp(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=Lp(i.directive);s!==null&&r.push(...s)}}}return n}};function Lp(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function Vp(e,t,n){if(!t.inputs||!Object.hasOwn(t.inputs,n))return;let[r,o]=t.inputs[n];if((o&Qo.SignalBased)!==0){let s=e[r][Ee];return s.value===ta?void 0:s.value}return e[r]}function uC(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}dC(e,t)}function dC(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(jp(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(jp(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 p=s[l];if(c===p)for(let h of t.directiveToIndex.values()){if(!Array.isArray(h))continue;let[y,m,_]=h;if(c>=m&&c<=_)return t.flags|=o,t.customControlIndex=y,!0}}}return!1};if(n("value",1024)||n("checked",2048))return}}function jp(e,t){return fC(e,t)&&pC(e,t+"Change")}function fC(e,t){return t in e.inputs}function pC(e,t){return t in e.outputs}var zl=Symbol("BINDING");var ir=new O("");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 J(e,t=0){let n=V();if(n===null)return $(e,t);let r=Me();return fg(r,n,Se(e),t)}function gC(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 p of s)if(p.resolveHostDirectives!==null){[a,c,l]=p.resolveHostDirectives(s);break}yC(e,t,n,a,i,c,l)}i!==null&&r!==null&&hC(n,r,i)}function hC(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 S(-301,!1);r.push(t[o],i)}}function mC(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function yC(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,mC(e,n,y)),Pl(Us(n,t),e,m.type)}EC(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,p=!1,h=$g(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let y=0;y<a;y++){let m=r[y];if(n.mergedAttrs=Br(n.mergedAttrs,m.hostAttrs),_C(e,n,t,h,m),DC(h,m,o),s!==null&&s.has(m)){let[x,R]=s.get(m);n.directiveToIndex.set(m.type,[h,x+n.directiveStart,R+n.directiveStart])}else(i===null||!i.has(m))&&n.directiveToIndex.set(m.type,h);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),!p&&(_.ngOnChanges||_.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),p=!0),h++}vC(e,n,i)}function vC(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Bp(0,t,o,r),Bp(1,t,o,r),Up(t,r,!1);else{let i=n.get(o);Hp(0,t,i,r),Hp(1,t,i,r),Up(t,r,!0)}}}function Bp(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),hh(t,i)}}function Hp(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),hh(t,s)}}function hh(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Up(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||fu(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 p of l)if(p===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&Object.hasOwn(i,c)){let l=i[c];for(let p=0;p<l.length;p+=2)if(l[p]===t){s??=[],s.push(l[p+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function _C(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=un(o.type,!0)),s=new Xn(i,Ft(o),J,null);e.blueprint[r]=s,n[r]=s,CC(e,t,r,$g(e,n,o.hostVars,Te),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;bC(s)!=a&&s.push(a),s.push(n,r,i)}}function bC(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function DC(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 EC(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function mh(e,t,n,r,o,i,s,a){let c=t[k],l=c.consts,p=Lt(l,s),h=la(c,e,n,r,p);return i&&gC(c,t,h,Lt(l,a),o),h.mergedAttrs=Br(h.mergedAttrs,h.attrs),h.attrs!==null&&Ys(h,h.attrs,!1),h.mergedAttrs!==null&&Ys(h,h.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,h),h}function yh(e,t){n0(e,t),Jc(t)&&e.queries.elementEnd(t)}function wC(e,t,n,r,o,i){let s=t.consts,a=Lt(s,o),c=la(t,e,n,r,a);if(c.mergedAttrs=Br(c.mergedAttrs,c.attrs),i!=null){let l=Lt(s,i);c.localNames=[];for(let p=0;p<l.length;p+=2)c.localNames.push(l[p],-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 vh=typeof ShadowRoot<"u",xC=typeof Document<"u";function SC(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Qo.SignalBased)!==0};return o&&(i.transform=o),i})}function IC(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function MC(e,t,n){let r=t instanceof Ue?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Ws(n,r):n}function TC(e){let t=e.get(tr,null);if(t===null)throw new S(407,!1);let n=e.get(fh,null),r=e.get(mt,null),o=e.get(tn,null,{optional:!0});return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function NC(e,t,n){let r=_h(e);return Ag(t,r,r==="svg"?Xc:r==="math"?zf:n)}function AC(e){if((e&&"localName"in e&&typeof e.localName=="string"?e.localName:e?.tagName)?.toLowerCase()==="script")throw new S(905,!1)}function _h(e){return(e.selectors[0][0]||"div").toLowerCase()}var nr=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=SC(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=IC(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=U0(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s,a){ne(K.DynamicComponentStart);let c=P(null);try{let l=this.componentDef,p=MC(l,o||this.ngModule,t),h=TC(p),y=h.tracingService;return y&&y.componentCreate?y.componentCreate(ph(l),()=>this.createComponentRef(h,p,n,r,i,s,a)):this.createComponentRef(h,p,n,r,i,s,a)}finally{P(c)}}createComponentRef(t,n,r,o,i,s,a){let c=this.componentDef,l=OC(o,c,s,i),p=t.rendererFactory.createRenderer(null,c),h=o?__(p,o,c.encapsulation,n):NC(c,p,a??null);AC(h);let y=n.get(ir,null),m=kC(h,()=>n.get(Fe,null)??Cg());y&&y.addHost(m);let _=s?.some($p)||i?.some(F=>typeof F!="function"&&F.bindings.some($p)),x=bu(null,l,null,512|Ug(c),null,null,t,p,n,null,xg(h,n,!0));y&&vh&&m instanceof ShadowRoot&&Ds(x,()=>{y.removeHost(m)}),x[me]=h,Ss(x);let R=null;try{let F=mh(me,x,2,"#host",()=>l.directiveRegistry,!0,0);Rg(p,h,F),Hr(h,x),Wg(l,x,F),Ig(l,F,x),yh(l,F),r!==void 0&&PC(F,this.ngContentSelectors,r),R=ut(F.index,x),x[ge]=R[ge],xu(l,x,null)}catch(F){throw R!==null&&Ll(R),Ll(x),F}finally{ne(K.DynamicComponentEnd),Is()}return new Qs(this.componentType,x,!!_)}};function OC(e,t,n,r){let o=e?["ng-version","22.1.6"]:$0(t.selectors[0]),i=null,s=null,a=0;if(n)for(let p of n)a+=p[zl].requiredVars,p.create&&(p.targetIdx=0,(i??=[]).push(p)),p.update&&(p.targetIdx=0,(s??=[]).push(p));if(r)for(let p=0;p<r.length;p++){let h=r[p];if(typeof h!="function")for(let y of h.bindings){a+=y[zl].requiredVars;let m=p+1;y.create&&(y.targetIdx=m,(i??=[]).push(y)),y.update&&(y.targetIdx=m,(s??=[]).push(y))}}let c=[t];if(r)for(let p of r){let h=typeof p=="function"?p:p.type,y=Bc(h);c.push(y)}return Cu(0,null,RC(i,s),1,a,c,null,null,null,[o],null)}function kC(e,t){let n=e.getRootNode?.();return xC&&n instanceof Document?n.head:n&&vh&&n instanceof ShadowRoot?n:t().head}function RC(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 $p(e){let t=e[zl].kind;return t==="input"||t==="twoWay"}var Qs=class extends dh{_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[k],me),this.location=zr(this._tNode,n),this.instance=ut(this._tNode.index,n)[ge],this.hostView=this.changeDetectorRef=new Cn(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=wu(r,o[k],o,t,n);this.previousInputValues.set(t,n);let s=ut(r.index,o);Su(s,1)}get injector(){return new vn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function PC(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 Ko=(()=>{class e{static __NG_ELEMENT_ID__=FC}return e})();function FC(){let e=Me();return Ch(e,V())}var Gl=class e extends Ko{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return zr(this._hostTNode,this._hostLView)}get injector(){return new vn(this._hostTNode,this._hostLView)}get parentInjector(){let t=cu(this._hostTNode,this._hostLView);if(sg(t)){let n=Bs(t,this._hostLView),r=js(t),o=n[k].data[r+8];return new vn(o,n)}else return new vn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=zp(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-fe}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=$l(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,$o(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 p=new nr(Qt(t)),h=r||this.parentInjector;if(!i&&p.ngModule==null){let F=this.parentInjector.get(Ue,null);F&&(i=F)}let y=Qt(p.componentType??{}),m=$l(this._lContainer,y?.id??null),_=m?.firstChild??null,x=p.create(h,o,_,i,s,a,this._getHostElementNamespace());return this.insertImpl(x.hostView,c,$o(this._hostTNode,m)),x}_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(Wf(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(),zc(xl(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=zp(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Go(this._lContainer,n);r&&(wo(xl(this._lContainer),n),ia(r[k],r))}detach(t){let n=this._adjustIndex(t,-1),r=Go(this._lContainer,n);return r&&wo(xl(this._lContainer),n)!=null?new Cn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function zp(e){return e[Mo]}function xl(e){return e[Mo]||(e[Mo]=[])}function Ch(e,t){let n,r=t[e.index];return ct(r)?n=r:(n=sh(r,t,null,e),t[e.index]=n,Du(t,n)),VC(n,t,e,r),new Gl(n,e,t)}function LC(e,t){let n=e[se],r=n.createComment(""),o=lt(t,e),i=n.parentNode(o);return Kn(n,i,r,n.nextSibling(o),!1),r}var VC=HC,jC=()=>!1;function BC(e,t,n){return jC(e,t,n)}function HC(e,t,n,r){if(e[Gn])return;let o;n.type&8?o=Ie(r):o=LC(t,n),e[Gn]=o}var Wl=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},ql=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++)ku(t,n).matches!==null&&this.queries[n].setDirty()}},Zl=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=YC(t):this.predicate=t}},Yl=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)}},Ql=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,UC(n,i)),this.matchTNodeWithReadOption(t,n,Fs(n,t,i,!1,!1))}else r===Ur?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===xt||o===Ko||o===Ur&&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 UC(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 $C(e,t){return e.type&11?zr(e,t):e.type&4?Tu(e,t):null}function zC(e,t,n,r){return n===-1?$C(t,e):n===-2?GC(e,t,r):Ho(e,e[k],n,t)}function GC(e,t,n){if(n===xt)return zr(t,e);if(n===Ur)return Tu(t,e);if(n===Ko)return Ch(t,e)}function bh(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 p=i[l];a.push(zC(t,p,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Kl(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=bh(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],p=t[-c];for(let h=fe;h<p.length;h++){let y=p[h];y[gn]===y[ve]&&Kl(y[k],y,l,r)}if(p[Wn]!==null){let h=p[Wn];for(let y=0;y<h.length;y++){let m=h[y];Kl(m[k],m,l,r)}}}}}return r}function WC(e,t){return e[kt].queries[t].queryList}function qC(e,t,n){let r=new $s((n&4)===4);return Yf(e,t,r,r.destroy),(t[kt]??=new ql).queries.push(new Wl(r))-1}function ZC(e,t,n){let r=pe();return r.firstCreatePass&&(QC(r,new Zl(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),qC(r,V(),t)}function YC(e){return e.split(",").map(t=>t.trim())}function QC(e,t,n){e.queries===null&&(e.queries=new Yl),e.queries.track(new Ql(t,n))}function ku(e,t){return e.queries.getByIndex(t)}function KC(e,t){let n=e[k],r=ku(n,t);return r.crossesNgTemplate?Kl(n,e,t,[]):bh(n,e,r,t)}function Gr(e){return!!e&&typeof e.then=="function"}function Ru(e){return!!e&&typeof e.subscribe=="function"}var Wo=class{};var qo=class extends Wo{injector;instance=null;constructor(t){super();let n=new Bn([...t.providers,{provide:Wo,useValue:this}],t.parent||Mr(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Dh(e,t,n=null){return new qo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var JC=(()=>{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=Wc(!1,n.type),o=r.length>0?Dh([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=te({token:e,providedIn:"environment",factory:()=>new e($(Ue))})}return e})();function rn(e){return Yo(()=>{let t=Eh(e),n=U(j({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==lu.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(JC).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Et.Emulated,styles:e.styles||He,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&nn("NgStandalone"),wh(n);let r=e.dependencies;return n.directiveDefs=Gp(r,XC),n.pipeDefs=Gp(r,Af),n.id=nb(n),n})}function XC(e){return Qt(e)||Bc(e)}function bn(e){return Yo(()=>({type:e.type,bootstrap:e.bootstrap||He,declarations:e.declarations||He,imports:e.imports||He,exports:e.exports||He,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function eb(e,t){if(e==null)return fn;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=Qo.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function tb(e){if(e==null)return fn;let t={};for(let n in e)Object.hasOwn(e,n)&&(t[e[n]]=n);return t}function _e(e){return Yo(()=>{let t=Eh(e);return wh(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 Eh(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||fn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||He,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:eb(e.inputs,t),outputs:tb(e.outputs),debugInfo:null}}function wh(e){e.features?.forEach(t=>t(e))}function Gp(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 nb(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 xh=new O("");var Pu=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=b(xh,{optional:!0})??[];injector=b(Pe);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Tr(this.injector,o);if(Gr(i))n.push(i);else if(Ru(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 Fu(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r)},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r)},passThroughInput:e}}}function rb(e){return Object.getPrototypeOf(e.prototype).constructor}function ze(e){let t=rb(e.type),n=!0,r=[e];for(;t&&t!==Function.prototype&&t!==Object.prototype;){let o,i=Object.hasOwn(t,Do)?t[Do]:void 0,s=Object.hasOwn(t,Eo)?t[Eo]:void 0;if(Ft(e))o=i??s;else{if(i)throw new S(903,!1);o=s}if(o){if(n){r.push(o);let c=e;c.inputs=Sl(e.inputs),c.declaredInputs=Sl(e.declaredInputs),c.outputs=Sl(e.outputs);let l=o.hostBindings;l&&cb(e,l);let p=o.viewQuery,h=o.contentQueries;if(p&&sb(e,p),h&&ab(e,h),ob(e,o),Nf(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===ze&&(n=!1)}}t=Object.getPrototypeOf(t)}ib(r)}function ob(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 ib(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=Br(o.hostAttrs,n=Br(n,o.hostAttrs))}}function Sl(e){return e===fn?{}:e===He?[]:e}function sb(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function ab(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function cb(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function lb(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Br(e.mergedAttrs,e.attrs);let p=e.tView=Cu(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),p.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Pr(e,!1);let c=ub(n,t,e,r);Ms()&&vu(n,t,c,e),Hr(c,t);let l=sh(c,t,c,e);t[r+me]=l,Du(t,l),BC(l,e,t)}function Ks(e,t,n,r,o,i,s,a,c,l,p){let h=n+me,y;if(t.firstCreatePass){if(y=la(t,h,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[h];return lb(y,e,t,n,r,o,i,c),l!=null&&Eu(e,y,p),y}var ub=db;function db(e,t,n,r){return Ts(!0),t[se].createComment("")}var Lu=new O("");var Sh=new O("");function Ih(){oc(()=>{let e="";throw new S(600,e)})}var fb=10;var Dn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=b(yn);afterRenderManager=b(gu);zonelessEnabled=b(Fo);rootEffectScheduler=b(As);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ke;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=b(Yn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(xe(n=>!n))}constructor(){b(tn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=b(Ue);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Pe.NULL){return this._injector.get(De).run(()=>{if(ne(K.BootstrapComponentStart),!this._injector.get(Pu).done){let F="";throw new S(405,F)}let a=Qt(n),c=this._injector.get(Wo),l=new nr(a,c);this.componentTypes.push(n);let{hostElement:p,directives:h,bindings:y}=pb(r),m=p||l.selector,_=l.create(o,[],m,c.injector,h,y),x=_.location.nativeElement,R=_.injector.get(Lu,null);return R?.registerApplication(x),_.onDestroy(()=>{this.detachView(_.hostView),Bo(this.components,_),R?.unregisterApplication(x)}),this._loadComponent(_),ne(K.BootstrapComponentEnd,_),_})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){ne(K.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(ra.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw ne(K.ChangeDetectionEnd),new S(101,!1);let n=P(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,P(n),this.afterTick.next(),ne(K.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(tr,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<fb;){ne(K.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{ne(K.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&&!Rr(o))continue;let i=r&&!this.zonelessEnabled?0:1;nh(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})=>Rr(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;Bo(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(Sh,[]).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),()=>Bo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new S(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 pb(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function Bo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function tt(e,t,n,r){let o=V(),i=hn();if(et(o,i,t)){let s=pe(),a=Fr();M_(a,o,e,t,n,r)}return tt}var Jl=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 Il(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function gb(e,t,n,r){let o,i,s=0,a=e.length-1,c=void 0;if(Array.isArray(t)){P(r);let l=t.length-1;for(P(null);s<=a&&s<=l;){let p=e.at(s),h=t[s],y=Il(s,p,s,h,n);if(y!==0){y<0&&e.updateValue(s,h),s++;continue}let m=e.at(a),_=t[l],x=Il(a,m,l,_,n);if(x!==0){x<0&&e.updateValue(a,_),a--,l--;continue}let R=n(s,p),F=n(a,m),le=n(s,h);if(Object.is(le,F)){let Qe=n(l,_);Object.is(Qe,R)?(e.swap(s,a),e.updateValue(a,_),l--,a--):e.move(a,s),e.updateValue(s,h),s++;continue}if(o??=new Js,i??=qp(e,s,a,n),Xl(e,o,s,le))e.updateValue(s,h),s++,a++;else if(i.has(le))o.set(R,e.detach(s)),a--;else{let Qe=e.create(s,t[s]);e.attach(s,Qe),s++,a++}}for(;s<=l;)Wp(e,o,n,s,t[s]),s++}else if(t!=null){P(r);let l=t[Symbol.iterator]();P(null);let p=l.next();for(;!p.done&&s<=a;){let h=e.at(s),y=p.value,m=Il(s,h,s,y,n);if(m!==0)m<0&&e.updateValue(s,y),s++,p=l.next();else{o??=new Js,i??=qp(e,s,a,n);let _=n(s,y);if(Xl(e,o,s,_))e.updateValue(s,y),s++,a++,p=l.next();else if(!i.has(_))e.attach(s,e.create(s,y)),s++,a++,p=l.next();else{let x=n(s,h);o.set(x,e.detach(s)),a--}}}for(;!p.done;)Wp(e,o,n,e.length,p.value),p=l.next()}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(l=>{e.destroy(l)})}function Xl(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Wp(e,t,n,r,o){if(Xl(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function qp(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=V(),l=pe(),p=Lt(l.consts,i);return Ks(c,l,e,t,n,r,o,p,256,s,a),Vu}function Vu(e,t,n,r,o,i,s,a){nn("NgControlFlow");let c=V(),l=pe(),p=Lt(l.consts,i);return Ks(c,l,e,t,n,r,o,p,512,s,a),Vu}function E(e,t){nn("NgControlFlow");let n=V(),r=hn(),o=n[r]!==Te?n[r]:-1,i=o!==-1?Xs(n,me+o):void 0,s=0;if(et(n,r,e)){let a=P(null);try{if(i!==void 0&&ch(i,s),e!==-1){let c=me+e,l=Xs(n,c),p=ru(n[k],c),h=uh(l,p,n),y=aa(n,p,t,{dehydratedView:h});ca(l,y,s,$o(p,h))}}finally{P(a)}}else if(i!==void 0){let a=ah(i,s);a!==void 0&&(a[ge]=t)}}var eu=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-fe}};function En(e){return e}function Jo(e,t){return t}var tu=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Z(e,t,n,r,o,i,s,a,c,l,p,h,y){nn("NgControlFlow");let m=V(),_=pe(),x=c!==void 0,R=V(),F=a?s.bind(R[Je][ge]):s,le=new tu(x,F);R[me+e]=le,Ks(m,_,e+1,t,n,r,o,Lt(_.consts,i),256),x&&Ks(m,_,e+2,c,l,p,h,Lt(_.consts,y),512)}var nu=class extends Jl{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-fe}at(t){return this.getLView(t)[ge].$implicit}attach(t,n){let r=n[Nr];this.needsIndexUpdate||=t!==this.length,ca(this.lContainer,n,t,$o(this.templateTNode,r)),hb(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,mb(this.lContainer,t),yb(this.lContainer,t)}create(t,n){let r=$l(this.lContainer,this.templateTNode.tView.ssrId);return aa(this.hostLView,this.templateTNode,new eu(this.lContainer,n,t),{dehydratedView:r})}destroy(t){ia(t[k],t)}updateValue(t,n){this.getLView(t)[ge].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[ge].$index=t}getLView(t){return vb(this.lContainer,t)}};function Y(e){let t=P(null),n=_t();try{let r=V(),o=r[k],i=r[n],s=n+1,a=Xs(r,s);if(i.liveCollection===void 0){let l=ru(o,s);i.liveCollection=new nu(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(gb(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let l=hn(),p=c.length===0;if(et(r,l,p)){let h=n+2,y=Xs(r,h);if(p){let m=ru(o,h),_=uh(y,m,r),x=aa(r,m,void 0,{dehydratedView:_});ca(y,x,0,$o(m,_))}else o.firstUpdatePass&&X_(y),ch(y,0)}}}finally{P(t)}}function Xs(e,t){return e[t]}function hb(e,t){if(e.length<=fe)return;let n=fe+t,r=e[n],o=r?r[Pt]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Ot];Q0(i,o),_n.delete(r[Rt]),o.detachedLeaveAnimationFns=void 0}}function mb(e,t){if(e.length<=fe)return;let n=fe+t,r=e[n],o=r?r[Pt]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function yb(e,t){return Go(e,t)}function vb(e,t){return ah(e,t)}function ru(e,t){return vs(e,t)}function w(e,t,n){let r=V(),o=hn();if(et(r,o,t)){let i=pe(),s=Fr();qg(s,r,e,t,r[se],n)}return w}function ou(e,t,n,r,o){wu(t,e,n,o?"class":"style",r)}function d(e,t,n,r){let o=V(),i=o[k],s=e+me,a=i.firstCreatePass?mh(s,o,2,t,I_,Jf(),n,r):i.data[s];if(Xt(a)){let c=o[vt].tracingService;if(c&&c.componentCreate){let l=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(ph(l),()=>(Zp(e,t,o,a,r),d))}}return Zp(e,t,o,a,r),d}function Zp(e,t,n,r,o){if(Yg(r,n,e,t,Mh),ms(r)){let i=n[k];Wg(i,n,r),Ig(i,r,n)}o!=null&&Eu(n,r)}function u(){let e=pe(),t=Me(),n=Qg(t);return e.firstCreatePass&&yh(e,n),al(n)&&cl(),sl(),n.classesWithoutHost!=null&&o0(n)&&ou(e,n,V(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&i0(n)&&ou(e,n,V(),n.stylesWithoutHost,!1),u}function Ce(e,t,n,r){return d(e,t,n,r),u(),Ce}function on(e,t,n,r){let o=V(),i=o[k],s=e+me,a=i.firstCreatePass?wC(s,i,2,t,n,r):i.data[s];return Yg(a,o,e,t,Mh),r!=null&&Eu(o,a),on}function wn(){let e=Me(),t=Qg(e);return al(t)&&cl(),sl(),wn}var Mh=(e,t,n,r,o)=>(Ts(!0),Ag(t[se],r,ml()));function B(){return V()}function da(e,t,n){let r=V(),o=hn();if(et(r,o,t)){let i=pe(),s=Fr();Zg(s,r,e,t,r[se],n)}return da}var Lo=void 0;function _b(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Cb=["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"]],Lo,[["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"]],Lo,[["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}",Lo,Lo,Lo],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",_b],Ml=Object.create(null);function qe(e){let t=bb(e),n=Yp(t);if(n)return n;let r=t.split("-")[0];if(n=Yp(r),n)return n;if(r==="en")return Cb;throw new S(701,!1)}function Yp(e){if(!(e in Ml)){let t=Un.ng&&Un.ng.common&&Un.ng.common.locales&&Un.ng.common.locales[e];return t!==void 0&&(Ml[e]=t),t}return Ml[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 bb(e){return e.toLowerCase().replace(/_/g,"-")}var Xo="en-US";var Db=Xo;function Th(e){typeof e=="string"&&(Db=e.toLowerCase().replace(/_/g,"-"))}function N(e,t,n){let r=V(),o=pe(),i=Me();return Nh(o,r,r[se],i,e,t,n),N}function Wr(e,t,n){let r=V(),o=pe(),i=Me();return(i.type&3||n)&&Ou(i,o,r,n,r[se],e,t,Jn(i,r,t)),Wr}function Nh(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=Jn(r,t,i),Ou(r,e,t,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],p=r.hostDirectiveOutputs?.[o];if(p&&p.length)for(let h=0;h<p.length;h+=2){let y=p[h],m=p[h+1];c??=Jn(r,t,i),qs(r,t,y,m,o,c)}if(l&&l.length)for(let h of l)c??=Jn(r,t,i),qs(r,t,h,o,o,c)}}function v(e=1){return up(e)}function fa(e,t,n){return ZC(e,t,n),fa}function ju(e){let t=V(),n=pe(),r=pl();xs(r+1);let o=ku(n,r);if(e.dirty&&Gf(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=KC(t,r);e.reset(i,v0),e.notifyOnChanges()}return!0}return!1}function Bu(){return WC(V(),pl())}function ks(e,t){return e<<17|t<<2}function rr(e){return e>>17&32767}function Eb(e){return(e&2)==2}function wb(e,t){return e&131071|t<<17}function iu(e){return e|2}function $r(e){return(e&131068)>>2}function Tl(e,t){return e&-131069|t<<2}function xb(e){return(e&1)===1}function su(e){return e|1}function Sb(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=rr(s),c=$r(s);e[r]=n;let l=!1,p;if(Array.isArray(n)){let h=n;p=h[1],(p===null||Sr(h,p)>0)&&(l=!0)}else p=n;if(o)if(c!==0){let y=rr(e[a+1]);e[r+1]=ks(y,a),y!==0&&(e[y+1]=Tl(e[y+1],r)),e[a+1]=wb(e[a+1],r)}else e[r+1]=ks(a,0),a!==0&&(e[a+1]=Tl(e[a+1],r)),a=r;else e[r+1]=ks(c,0),a===0?a=r:e[c+1]=Tl(e[c+1],r),c=r;l&&(e[r+1]=iu(e[r+1])),Qp(e,p,r,!0),Qp(e,p,r,!1),Ib(t,p,e,r,i),s=ks(a,c),i?t.classBindings=s:t.styleBindings=s}function Ib(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Sr(i,t)>=0&&(n[r+1]=su(n[r+1]))}function Qp(e,t,n,r){let o=e[n+1],i=t===null,s=r?rr(o):$r(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];Mb(c,t)&&(a=!0,e[s+1]=r?su(l):iu(l)),s=r?rr(l):$r(l)}a&&(e[n+1]=r?iu(o):su(o))}function Mb(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Sr(e,t)>=0:!1}var Dt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Tb(e){return e.substring(Dt.key,Dt.keyEnd)}function Nb(e){return Ab(e),Ah(e,Oh(e,0,Dt.textEnd))}function Ah(e,t){let n=Dt.textEnd;return n===t?-1:(t=Dt.keyEnd=Ob(e,Dt.key=t,n),Oh(e,t,n))}function Ab(e){Dt.key=0,Dt.keyEnd=0,Dt.value=0,Dt.valueEnd=0,Dt.textEnd=e.length}function Oh(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Ob(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function sn(e,t,n){return kh(e,t,n,!1),sn}function ce(e,t){return kh(e,t,null,!0),ce}function qr(e){Rb(Bb,kb,e,!0)}function kb(e,t){for(let n=Nb(t);n>=0;n=Ah(t,n))ps(e,Tb(t),!0)}function kh(e,t,n,r){let o=V(),i=pe(),s=To(2);if(i.firstUpdatePass&&Ph(i,e,s,r),t!==Te&&et(o,s,t)){let a=i.data[_t()];Fh(i,a,o,o[se],e,o[s+1]=Ub(t,n),r,s)}}function Rb(e,t,n,r){let o=pe(),i=To(2);o.firstUpdatePass&&Ph(o,null,i,r);let s=V();if(n!==Te&&et(s,i,n)){let a=o.data[_t()];if(Lh(a,r)&&!Rh(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=cs(c,n||"")),ou(o,a,s,n,r)}else Hb(o,a,s,s[se],s[i+1],s[i+1]=jb(e,t,n),r,i)}}function Rh(e,t){return t>=e.expandoStartIndex}function Ph(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[_t()],s=Rh(e,n);Lh(i,r)&&t===null&&!s&&(t=!1),t=Pb(o,i,t,r),Sb(o,i,t,n,s,r)}}function Pb(e,t,n,r){let o=sp(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Nl(null,e,t,n,r),n=Zo(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Nl(o,e,t,n,r),i===null){let c=Fb(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Nl(null,e,t,c[1],r),c=Zo(c,t.attrs,r),Lb(e,t,r,c))}else i=Vb(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Fb(e,t,n){let r=n?t.classBindings:t.styleBindings;if($r(r)!==0)return e[rr(r)]}function Lb(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[rr(o)]=r}function Vb(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Zo(r,s,n)}return Zo(r,t.attrs,n)}function Nl(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=Zo(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Zo(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 jb(e,t,n){if(n==null||n==="")return He;let r=[],o=Uo(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 Bb(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&ps(e,r,n)}function Hb(e,t,n,r,o,i,s,a){o===Te&&(o=He);let c=0,l=0,p=0<o.length?o[0]:null,h=0<i.length?i[0]:null;for(;p!==null||h!==null;){let y=c<o.length?o[c+1]:void 0,m=l<i.length?i[l+1]:void 0,_=null,x;p===h?(c+=2,l+=2,y!==m&&(_=h,x=m)):h===null||p!==null&&p<h?(c+=2,_=p):(l+=2,_=h,x=m),_!==null&&Fh(e,t,n,r,_,x,s,a),p=c<o.length?o[c]:null,h=l<i.length?i[l]:null}}function Fh(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],p=xb(l)?Kp(c,t,n,o,$r(l),s):void 0;if(!ea(p)){ea(i)||Eb(l)&&(i=Kp(c,null,n,o,a,s));let h=el(_t(),n);h_(r,s,h,o,i)}}function Kp(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),p=l?c[1]:c,h=p===null,y=n[o+1];y===Te&&(y=h?He:void 0);let m=h?gs(y,r):p===r?y:void 0;if(l&&!ea(m)&&(m=gs(c,r)),ea(m)&&(a=m,s))return a;let _=e[o+1];o=s?rr(_):$r(_)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=gs(c,r))}return a}function ea(e){return e!==void 0}function Ub(e,t){return e==null||e===""||(typeof t=="string"?e=Uo(e)+t:typeof e=="object"&&(e=as(Uo(e)))),e}function Lh(e,t){return(e.flags&(t?8:16))!==0}function g(e,t=""){let n=V(),r=pe(),o=e+me,i=r.firstCreatePass?la(r,o,1,t,null):r.data[o],s=$b(r,n,i,t);n[o]=s,Ms()&&vu(r,n,s,i),Pr(i,!1)}var $b=(e,t,n,r)=>(Ts(!0),M0(t[se],r));function Vh(e,t,n,r=""){return et(e,hn(),n)?t+Kt(n)+r:Te}function zb(e,t,n,r,o,i=""){let s=fl(),a=Au(e,s,n,o);return To(2),a?t+Kt(n)+r+Kt(o)+i:Te}function Gb(e,t,n,r,o,i,s,a=""){let c=fl(),l=iC(e,c,n,o,s);return To(3),l?t+Kt(n)+r+Kt(o)+i+Kt(s)+a:Te}function C(e){return T("",e),C}function T(e,t,n){let r=V(),o=Vh(r,e,t,n);return o!==Te&&Hu(r,_t(),o),T}function St(e,t,n,r,o){let i=V(),s=zb(i,e,t,n,r,o);return s!==Te&&Hu(i,_t(),s),St}function sr(e,t,n,r,o,i,s){let a=V(),c=Gb(a,e,t,n,r,o,i,s);return c!==Te&&Hu(a,_t(),c),sr}function Hu(e,t,n){let r=el(t,e);T0(e[se],r,n)}function X(e,t,n){Os(t)&&(t=t());let r=V(),o=hn();if(et(r,o,t)){let i=pe(),s=Fr();qg(s,r,e,t,r[se],n)}return X}function re(e,t){let n=Os(e);return n&&e.set(t),n}function ee(e,t){let n=V(),r=pe(),o=Me();return Nh(r,n,n[se],o,e,t),ee}function Uu(e,t,n=""){return Vh(V(),e,t,n)}function Jp(e,t,n){let r=pe();r.firstCreatePass&&jh(t,r.data,r.blueprint,Ft(e),n)}function jh(e,t,n,r,o){if(e=Se(e),Array.isArray(e))for(let i=0;i<e.length;i++)jh(e[i],t,n,r,o);else{let i=pe(),s=V(),a=Me(),c=jn(e)?e:Se(e.provide),l=Zc(e),p=a.providerIndexes&1048575,h=a.directiveStart,y=a.providerIndexes>>20;if(jn(e)||!e.multi){let m=new Xn(l,o,J,null),_=Ol(c,t,o?p:p+y,h);_===-1?(Pl(Us(a,s),i,c),Al(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=Ol(c,t,p+y,h),_=Ol(c,t,p,p+y),x=m>=0&&n[m],R=_>=0&&n[_];if(o&&!R||!o&&!x){Pl(Us(a,s),i,c);let F=Zb(o?qb:Wb,n.length,o,r,l,e);!o&&R&&(n[_].providerFactory=F),Al(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(F),s.push(F)}else{let F=Bh(n[o?_:m],l,!o&&r);Al(i,e,m>-1?m:_,F)}!o&&r&&R&&n[_].componentProviders++}}}function Al(e,t,n,r){let o=jn(t),i=Hf(t);if(o||i){let c=(i?Se(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let p=l.indexOf(n);p===-1?l.push(n,[r,c]):l[p+1].push(r,c)}else l.push(n,c)}}}function Bh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ol(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function Wb(e,t,n,r,o){return au(this.multi,[])}function qb(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Ho(r,r[k],this.providerFactory.index,o);s=c.slice(0,a),au(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],au(i,s);return s}function au(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 Xn(e,n,J,null);return s.multi=[],s.index=t,s.componentProviders=0,Bh(s,o,r&&!n),s}function dt(e,t){return n=>{n.providersResolver=(r,o)=>Jp(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>Jp(r,o?o(t):t,!0))}}function Ne(e,t){let n=Es()+e,r=V();return r[n]===Te?Nu(r,n,t()):oC(r,n)}function Hh(e,t){let n=e[t];return n===Te?void 0:n}function Yb(e,t,n,r,o,i){let s=t+n;return et(e,s,o)?Nu(e,s+1,i?r.call(i,o):r(o)):Hh(e,s+1)}function Qb(e,t,n,r,o,i,s){let a=t+n;return Au(e,a,o,i)?Nu(e,a+2,s?r.call(s,o,i):r(o,i)):Hh(e,a+2)}function ft(e,t){let n=pe(),r,o=e+me;n.firstCreatePass?(r=Kb(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=un(r.type,!0)),s,a=Be(J);try{let c=Hs(!1),l=i();return Hs(c),nl(n,V(),o,l),l}finally{Be(a)}}function Kb(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function ar(e,t,n){let r=e+me,o=V(),i=tl(o,r);return Uh(o,r)?Yb(o,Es(),t,i.transform,n,i):i.transform(n)}function cr(e,t,n,r){let o=e+me,i=V(),s=tl(i,o);return Uh(i,o)?Qb(i,Es(),t,s.transform,n,r,s):s.transform(n,r)}function Uh(e,t){return e[k].data[t].pure}var $h=(()=>{class e{applicationErrorHandler=b(yn);appRef=b(Dn);taskService=b(Yn);ngZone=b(De);zonelessEnabled=b(Fo);tracing=b(tn,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new we;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Co):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(b(bl,{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?hp:yl;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(Co+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 $u(){return nn("NgZoneless"),Ir([...zu(),[]])}function zu(){return[{provide:mt,useExisting:$h},{provide:De,useClass:bo},{provide:Fo,useValue:!0}]}function Jb(){return typeof $localize<"u"&&$localize.locale||Xo}var Zr=new O("",{factory:()=>b(Zr,{optional:!0,skipSelf:!0})||Jb()});var pa=class{destroyed=!1;listeners=null;errorHandler=b(st,{optional:!0});isEmitting=!1;hasNullListeners=!1;destroyRef=b(de);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new S(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(dn(953,!1));return}if(this.listeners===null)return;this.isEmitting=!0;let n=P(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&&Xb(this.listeners)),P(n),this.isEmitting=!1}}};function Xb(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--}function W(e,t){return Oi(e,t?.equal)}function Ze(e){return Qd(e)}var zh=class e extends Error{_brand;constructor(t){super(t)}static IDLE=new e("IDLE");static LOADING=new e("LOADING")};function qh(e,t){let n=Object.create(tg);n.value=e,n.transformFn=t?.transform;function r(){if(gr(n),n.value===ta){let o=null;throw new S(-950,o)}return n.value}return r[Ee]=n,r}function xn(e){return new pa}function Gh(e,t){return qh(e,t)}function dD(e){return qh(ta,e)}var nt=(Gh.required=dD,Gh);var fD=1e4;var gL=fD-1e3;var ti=(()=>{class e{static __NG_ELEMENT_ID__=pD}return e})();function pD(e){return gD(Me(),V(),(e&16)===16)}function gD(e,t,n){if(Xt(e)&&!n){let r=ut(e.index,t);return new Cn(r,r)}else if(e.type&175){let r=t[Je];return new Cn(r,t)}return null}var Gu=new O(""),hD=new O("");function ei(e){return!e.moduleRef}function mD(e){let t=ei(e)?e.r3Injector:e.moduleRef.injector,n=t.get(De);return n.run(()=>{ei(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(yn),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),ei(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Gu);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Gu);s.add(i),e.moduleRef.onDestroy(()=>{Bo(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return vD(r,n,()=>{let i=t.get(Yn),s=i.add(),a=t.get(Pu);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Zr,Xo);if(Th(c||Xo),!t.get(hD,!0))return ei(e)?t.get(Dn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(ei(e)){let p=t.get(Dn);return e.rootComponent!==void 0&&p.bootstrap(e.rootComponent),p}else return yD?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var yD;function vD(e,t,n){try{let r=n();return Gr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var ga=null;function _D(e=[],t){return Pe.create({name:t,providers:[{provide:Io,useValue:"platform"},{provide:Gu,useValue:new Set([()=>ga=null])},...e]})}function CD(e=[]){if(ga)return ga;let t=_D(e);return ga=t,Ih(),bD(t),t}function bD(e){let t=e.get(Ns,null);Tr(e,()=>{t?.forEach(n=>n())})}function Zh(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;ne(K.BootstrapApplicationStart);try{let i=o?.injector??CD(r),s=[zu(),yp,...n||[]],a=new qo({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return mD({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{ne(K.BootstrapApplicationEnd)}}function Wu(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Yh(e,t){let n=Qt(e),r=t.elementInjector||Mr();return new nr(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function ni(e){let t=Qt(e);if(!t)return null;let n=new nr(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 Qh=null;function Mt(){return Qh}function qu(e){Qh??=e}var ri=class{},ma=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:()=>b(Kh),providedIn:"platform"})}return e})();var Kh=(()=>{class e extends ma{_location;_history;_doc=b(Fe);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=te({token:e,factory:()=>new e,providedIn:"platform"})}return e})();var Xu=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(Xu||{});var Le=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(Le||{}),ie=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(ie||{}),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 em(e){return qe(e)[he.LocaleId]}function tm(e,t,n){let r=qe(e),o=[r[he.DayPeriodsFormat],r[he.DayPeriodsStandalone]],i=pt(o,t);return pt(i,n)}function nm(e,t,n){let r=qe(e),o=[r[he.DaysFormat],r[he.DaysStandalone]],i=pt(o,t);return pt(i,n)}function rm(e,t,n){let r=qe(e),o=[r[he.MonthsFormat],r[he.MonthsStandalone]],i=pt(o,t);return pt(i,n)}function om(e,t){let r=qe(e)[he.Eras];return pt(r,t)}function oi(e,t){let n=qe(e);return pt(n[he.DateFormat],t)}function ii(e,t){let n=qe(e);return pt(n[he.TimeFormat],t)}function si(e,t){let r=qe(e)[he.DateTimeFormat];return pt(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 im(e,t){return qe(e)[he.NumberFormats][t]}function sm(e){if(!e[he.ExtraData])throw new S(2303,!1)}function am(e){let t=qe(e);return sm(t),(t[he.ExtraData][2]||[]).map(r=>typeof r=="string"?Zu(r):[Zu(r[0]),Zu(r[1])])}function cm(e,t,n){let r=qe(e);sm(r);let o=[r[he.ExtraData][0],r[he.ExtraData][1]],i=pt(o,t)||[];return pt(i,n)||[]}function pt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new S(2304,!1)}function Zu(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var DD=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ya=Object.create(null),ED=/((?:[^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]*)/,wD=256;function lm(e,t,n,r){let o=RD(e);xD(t),t=an(n,t)||t;let s=[],a;for(;t;)if(a=ED.exec(t),a){s=s.concat(a.slice(1));let p=s.pop();if(!p)break;t=p}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=dm(r,c),o=kD(o,r));let l="";return s.forEach(p=>{let h=AD(p);l+=h?h(o,n,c):p==="''"?"'":p.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function xD(e){if(e.length>wD)throw new S(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 an(e,t){let n=em(e);if(ya[n]??=Object.create(null),ya[n][t])return ya[n][t];let r="";switch(t){case"shortDate":r=oi(e,Ye.Short);break;case"mediumDate":r=oi(e,Ye.Medium);break;case"longDate":r=oi(e,Ye.Long);break;case"fullDate":r=oi(e,Ye.Full);break;case"shortTime":r=ii(e,Ye.Short);break;case"mediumTime":r=ii(e,Ye.Medium);break;case"longTime":r=ii(e,Ye.Long);break;case"fullTime":r=ii(e,Ye.Full);break;case"short":let o=an(e,"shortTime"),i=an(e,"shortDate");r=va(si(e,Ye.Short),[o,i]);break;case"medium":let s=an(e,"mediumTime"),a=an(e,"mediumDate");r=va(si(e,Ye.Medium),[s,a]);break;case"long":let c=an(e,"longTime"),l=an(e,"longDate");r=va(si(e,Ye.Long),[c,l]);break;case"full":let p=an(e,"fullTime"),h=an(e,"fullDate");r=va(si(e,Ye.Full),[p,h]);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 SD(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=ID(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return SD(a,t);let c=Ht(s,Ge.MinusSign);return Tt(a,t,c,r,o)}}function ID(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 S(2301,!1)}}function ae(e,t,n=Le.Format,r=!1){return function(o,i){return MD(o,i,e,t,n,r)}}function MD(e,t,n,r,o,i){switch(n){case 2:return rm(t,o,r)[e.getMonth()];case 1:return nm(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let l=am(t),p=cm(t,o,r),h=l.findIndex(y=>{if(Array.isArray(y)){let[m,_]=y,x=s>=m.hours&&a>=m.minutes,R=s<_.hours||s===_.hours&&a<_.minutes;if(m.hours<_.hours){if(x&&R)return!0}else if(x||R)return!0}else if(y.hours===s&&y.minutes===a)return!0;return!1});if(h!==-1)return p[h]}return tm(t,o,r)[s<12?0:1];case 3:return om(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new S(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 S(2310,!1)}}}var TD=0,ba=4;function ND(e){let t=Da(e,TD,1).getDay();return Da(e,0,1+(t<=ba?ba:ba+7)-t)}function um(e){let t=e.getDay(),n=t===0?-3:ba-t;return Da(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Yu(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=um(n),s=ND(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=um(n).getFullYear();return Tt(i,e,Ht(r,Ge.MinusSign),t)}}var Qu=Object.create(null);function AD(e){if(Qu[e])return Qu[e];let t;switch(e){case"G":case"GG":case"GGG":t=ae(3,ie.Abbreviated);break;case"GGGG":t=ae(3,ie.Wide);break;case"GGGGG":t=ae(3,ie.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=ae(2,ie.Abbreviated);break;case"MMMM":t=ae(2,ie.Wide);break;case"MMMMM":t=ae(2,ie.Narrow);break;case"LLL":t=ae(2,ie.Abbreviated,Le.Standalone);break;case"LLLL":t=ae(2,ie.Wide,Le.Standalone);break;case"LLLLL":t=ae(2,ie.Narrow,Le.Standalone);break;case"w":t=Yu(1);break;case"ww":t=Yu(2);break;case"W":t=Yu(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=ae(1,ie.Abbreviated,Le.Standalone);break;case"cccc":t=ae(1,ie.Wide,Le.Standalone);break;case"ccccc":t=ae(1,ie.Narrow,Le.Standalone);break;case"cccccc":t=ae(1,ie.Short,Le.Standalone);break;case"E":case"EE":case"EEE":t=ae(1,ie.Abbreviated);break;case"EEEE":t=ae(1,ie.Wide);break;case"EEEEE":t=ae(1,ie.Narrow);break;case"EEEEEE":t=ae(1,ie.Short);break;case"a":case"aa":case"aaa":t=ae(0,ie.Abbreviated);break;case"aaaa":t=ae(0,ie.Wide);break;case"aaaaa":t=ae(0,ie.Narrow);break;case"b":case"bb":case"bbb":t=ae(0,ie.Abbreviated,Le.Standalone,!0);break;case"bbbb":t=ae(0,ie.Wide,Le.Standalone,!0);break;case"bbbbb":t=ae(0,ie.Narrow,Le.Standalone,!0);break;case"B":case"BB":case"BBB":t=ae(0,ie.Abbreviated,Le.Format,!0);break;case"BBBB":t=ae(0,ie.Wide,Le.Format,!0);break;case"BBBBB":t=ae(0,ie.Narrow,Le.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 Qu[e]=t,t}function dm(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function OD(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function kD(e,t,n){let o=e.getTimezoneOffset(),i=dm(t,o);return OD(e,-1*(i-o))}function RD(e){if(Jh(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(DD))return PD(r)}let t=new Date(e);if(!Jh(t))throw new S(2311,!1);return t}function PD(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 Jh(e){return e instanceof Date&&!isNaN(e.valueOf())}var FD=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Xh=22,Ea=".",ai="0",LD=";",VD=",",Ku="#";function jD(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=UD(e);s&&(l=HD(l));let p=t.minInt,h=t.minFrac,y=t.maxFrac;if(i){let le=i.match(FD);if(le===null)throw new S(2306,!1);let Qe=le[1],rt=le[3],Ke=le[5];Qe!=null&&(p=Ju(Qe)),rt!=null&&(h=Ju(rt)),Ke!=null?y=Ju(Ke):rt!=null&&h>y&&(y=h);let ot=100;if(p>ot||h>ot||y>ot)throw new S(2306,!1)}$D(l,h,y);let m=l.digits,_=l.integerLen,x=l.exponent,R=[];for(c=m.every(le=>!le);_<p;_++)m.unshift(0);for(;_<0;_++)m.unshift(0);_>0?R=m.splice(_,m.length):(R=m,m=[0]);let F=[];for(m.length>=t.lgSize&&F.unshift(m.splice(-t.lgSize,m.length).join(""));m.length>t.gSize;)F.unshift(m.splice(-t.gSize,m.length).join(""));m.length&&F.unshift(m.join("")),a=F.join(Ht(n,r)),R.length&&(a+=Ht(n,o)+R.join("")),x&&(a+=Ht(n,Ge.Exponential)+"+"+x)}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function fm(e,t,n){let r=im(t,Xu.Decimal),o=BD(r,Ht(t,Ge.MinusSign));return jD(e,o,t,Ge.Group,Ge.Decimal,n)}function BD(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(LD),o=r[0],i=r[1],s=o.indexOf(Ea)!==-1?o.split(Ea):[o.substring(0,o.lastIndexOf(ai)+1),o.substring(o.lastIndexOf(ai)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(Ku));for(let p=0;p<c.length;p++){let h=c.charAt(p);h===ai?n.minFrac=n.maxFrac=p+1:h===Ku?n.maxFrac=p+1:n.posSuf+=h}let l=a.split(VD);if(n.gSize=l[1]?l[1].length:0,n.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,i){let p=o.length-n.posPre.length-n.posSuf.length,h=i.indexOf(Ku);n.negPre=i.substring(0,h).replace(/'/g,""),n.negSuf=i.slice(h+p).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function HD(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 UD(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)===ai;i++);if(i===(a=t.length))r=[0],o=1;else{for(a--;t.charAt(a)===ai;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i))}return o>Xh&&(r=r.splice(0,Xh-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function $D(e,t,n){if(t>n)throw new S(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 h=s;h<r.length;h++)r[h]=0}else{o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let h=1;h<s;h++)r[h]=0}if(a>=5)if(s-1<0){for(let h=0;h>s;h--)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,p=r.reduceRight(function(h,y,m,_){return y=y+h,_[m]=y<10?y:y-10,c&&(_[m]===0&&m>=l?_.pop():c=!1),y>=10?1:0},0);p&&(r.unshift(p),e.integerLen++)}function Ju(e){let t=parseInt(e);if(isNaN(t))throw new S(2305,!1);return t}function pm(e,t){return new S(2100,!1)}var zD="mediumDate",gm=new O(""),hm=new O(""),ed=(()=>{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??zD,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return lm(n,s,i||this.locale,a)}catch(s){throw pm(e,s.message)}}static \u0275fac=function(r){return new(r||e)(J(Zr,16),J(gm,24),J(hm,24))};static \u0275pipe=ua({name:"date",type:e,pure:!0})}return e})();var ci=(()=>{class e{_locale;constructor(n){this._locale=n}transform(n,r,o){if(!GD(n))return null;o||=this._locale;try{let i=WD(n);return fm(i,o,r)}catch(i){throw pm(e,i.message)}}static \u0275fac=function(r){return new(r||e)(J(Zr,16))};static \u0275pipe=ua({name:"number",type:e,pure:!0})}return e})();function GD(e){return!(e==null||e===""||e!==e)}function WD(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new S(2309,!1);return e}var Sn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=bn({type:e});static \u0275inj=Yt({})}return e})();function li(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 mm="browser";var ui=class{_doc;constructor(t){this._doc=t}manager},wa=(()=>{class e extends ui{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)($(Fe))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),Ia=new O(""),id=(()=>{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 S(-5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)($(Ia),$(De))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),nd="ng-app-id";function ym(e){for(let t of e)t.remove()}function vm(e,t){let n=t.createElement("style");return n.textContent=e,n}function YD(e,t,n,r){let o=e.head?.querySelectorAll(`style[${nd}="${t}"],link[${nd}="${t}"]`);if(!o||o.length===0)return!1;for(let i of o)i.removeAttribute(nd),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 od(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var sd=(()=>{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,YD(n,r,this.inline,this.external)&&this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,vm);r?.forEach(o=>this.addUsage(o,this.external,od))}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&&(ym(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])ym(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,vm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,od(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)($(Fe),$(Oo),$(Ro,8),$(ko))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),rd={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"},ad=/%COMP%/g;var Cm="%COMP%",QD=`_nghost-${Cm}`,KD=`_ngcontent-${Cm}`,JD=!0,XD=new O("",{factory:()=>JD}),eE=new O("");function tE(e){return KD.replace(ad,e)}function nE(e){return QD.replace(ad,e)}function bm(e,t){return t.map(n=>n.replace(ad,e))}var cd=(()=>{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,p=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=p??"",this.defaultRenderer=new di(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 fi&&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,p=this.removeStylesOnCompDestroy,h=this.tracingService;switch(r.encapsulation){case Et.Emulated:i=new Sa(c,l,r,this.appId,p,s,a,h,this.cssVarNamespace);break;case Et.ShadowDom:return new xa(c,n,r,s,a,this.nonce,h,this.cssVarNamespace,l);case Et.ExperimentalIsolatedShadowDom:return new xa(c,n,r,s,a,this.nonce,h,this.cssVarNamespace);default:i=new fi(c,l,r,p,s,a,h,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)($(id),$(ir),$(Oo),$(XD),$(Fe),$(De),$(Ro),$(tn,8),$(eE,8))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),di=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(rd[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(_m(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){if(t){let o=_m(t)?t.content:t;if(r!=null&&r.parentNode!==o)throw new S(-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 S(-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=rd[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=rd[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 S(-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 _m(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var xa=class extends di{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 p=r.styles;p=bm(r.id,p).map(y=>y.replace(/%NS%/g,c));for(let y of p){let m=document.createElement("style");s&&m.setAttribute("nonce",s),m.textContent=y,this.shadowRoot.appendChild(m)}let h=r.getExternalStyles?.();if(h)for(let y of h){let m=od(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)}},fi=class extends di{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 p=r.styles,h=l?bm(l,p):p;this.styles=h.map(y=>y.replace(/%NS%/g,c)),this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&_n.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Sa=class extends fi{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,l){let p=o+"-"+r.id;super(t,n,r,i,s,a,c,l,p),this.contentAttr=tE(p),this.hostAttr=nE(p)}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 ri{supportsDOMEvents=!0;static makeCurrent(){qu(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=rE();return n==null?null:oE(n)}resetBaseElement(){pi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return li(document.cookie,t)}},pi=null;function rE(){return pi=pi||document.head.querySelector("base"),pi?pi.getAttribute("href"):null}function oE(e){return new URL(e,document.baseURI).pathname}var Dm=["alt","control","meta","shift"],iE={"\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"},sE={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Em=(()=>{class e extends ui{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."),Dm.forEach(l=>{let p=r.indexOf(l);p>-1&&(r.splice(p,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=iE[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"),Dm.forEach(s=>{if(s!==o){let a=sE[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)($(Fe))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})();async function ld(e,t){return Zh(aE(e,t))}function aE(e,t){return{platformRef:t?.platformRef,appProviders:[...fE,...e?.providers??[]],platformProviders:dE}}function cE(){Ma.makeCurrent()}function lE(){return new st}function uE(){return uu(document),document}var dE=[{provide:ko,useValue:mm},{provide:Ns,useValue:cE,multi:!0},{provide:Fe,useFactory:uE}];var fE=[{provide:Io,useValue:"root"},{provide:st,useFactory:lE},{provide:Ia,useClass:wa,multi:!0},{provide:Ia,useClass:Em,multi:!0},cd,{provide:ir,useClass:sd},{provide:sd,useExisting:ir},id,{provide:tr,useExisting:cd},[]];var ln=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 wm(t)}encodeValue(t){return wm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function pE(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 gE=/%(\d[a-f0-9])/gi,hE={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function wm(e){return encodeURIComponent(e).replace(gE,(t,n)=>hE[n]??t)}function Ta(e){return`${e}`}var cn=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Aa,t.fromString){if(t.fromObject)throw new S(2805,!1);this.map=pE(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 mE(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function xm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Sm(e){return typeof Blob<"u"&&e instanceof Blob}function Im(e){return typeof FormData<"u"&&e instanceof FormData}function yE(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var ud="Content-Type",Mm="Accept",Am="text/plain",Om="application/json",vE=`${Om}, ${Am}, */*`,Yr=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(mE(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 S(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 ln,this.context??=new Na,!this.params)this.params=new cn,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 p=a.indexOf("?"),h=p===-1?"?":p<a.length-1?"&":"";this.urlWithParams=a+h+s+c}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||xm(this.body)||Sm(this.body)||Im(this.body)||yE(this.body)?this.body:this.body instanceof cn?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||Im(this.body)?null:Sm(this.body)?this.body.type||null:xm(this.body)?null:typeof this.body=="string"?Am:this.body instanceof cn?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Om: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,p=t.credentials||this.credentials,h=t.referrer??this.referrer,y=t.integrity||this.integrity,m=t.referrerPolicy||this.referrerPolicy,_=t.transferCache??this.transferCache,x=t.timeout??this.timeout,R=t.body!==void 0?t.body:this.body,F=t.withCredentials??this.withCredentials,le=t.reportProgress??this.reportProgress,Qe=t.reportUploadProgress??this.reportUploadProgress,rt=t.reportDownloadProgress??this.reportDownloadProgress,Ke=t.headers||this.headers,ot=t.params||this.params,zt=t.context??this.context;return t.setHeaders!==void 0&&(Ke=Object.keys(t.setHeaders).reduce((Ve,Nt)=>Ve.set(Nt,t.setHeaders[Nt]),Ke)),t.setParams&&(ot=Object.keys(t.setParams).reduce((Ve,Nt)=>Ve.set(Nt,t.setParams[Nt]),ot)),new e(n,r,R,{params:ot,headers:Ke,context:zt,reportProgress:le,reportUploadProgress:Qe,reportDownloadProgress:rt,responseType:o,withCredentials:F,transferCache:_,keepalive:i,cache:a,priority:s,timeout:x,mode:c,redirect:l,credentials:p,referrer:h,integrity:y,referrerPolicy:m})}},ur=(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})(ur||{}),Qr=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new ln,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 Qr{constructor(t={}){super(t)}type=ur.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 Qr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=ur.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})}},lr=class extends Qr{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}},_E=200;var CE=/^\)\]\}',?\n/,ij=1024*1024,km=new O("",{factory:()=>null}),Kr=(()=>{class e{fetchImpl=b(fd,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=b(De);destroyRef=b(de);maxResponseSize=b(km);handle(n){return new Q(r=>{let o=new AbortController,i=!1,s={next:c=>{c.type===ur.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(pd,c=>s.error(new lr({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 R=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,j({signal:r},i)));bE(R),o.next({type:ur.Sent}),s=await R}catch(R){o.error(new lr({error:R,status:R.status??0,statusText:R.statusText,url:n.urlWithParams,headers:R.headers}));return}let a=new ln(s.headers),c=s.statusText,l=s.url||n.urlWithParams,p=s.status,h=null,y=n.reportProgress||n.reportDownloadProgress;if(y&&o.next(new Oa({headers:a,status:p,statusText:c,url:l})),s.body){let R=s.headers.get(ud)??"",F=s.headers.get("content-length"),le=F!==null?Number(F):NaN;this.maxResponseSize!==null&&Number.isFinite(le)&&le>this.maxResponseSize&&(await s.body.cancel(),Tm(this.maxResponseSize));let Qe=[],rt=s.body.getReader(),Ke=0,ot,zt,Ve=typeof Zone<"u"&&Zone.current,Nt=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await rt.cancel(),Nt=!0;break}let{done:Xa,value:ec}=await rt.read();if(Xa)break;if(Qe.push(ec),Ke+=ec.length,this.maxResponseSize!==null&&Ke>this.maxResponseSize&&(await rt.cancel(),Tm(this.maxResponseSize)),y){zt=n.responseType==="text"?(zt??"")+(ot??=Nm(R)).decode(ec,{stream:!0}):void 0;let jd=()=>o.next({type:ur.DownloadProgress,total:Number.isFinite(le)?le:void 0,loaded:Ke,partialText:zt});Ve?Ve.run(jd):jd()}}}),Nt){o.complete();return}let My=this.concatChunks(Qe,Ke);try{h=this.parseBody(n,My,R,p)}catch(Xa){o.error(new lr({error:Xa,headers:new ln(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}p===0&&(p=h?_E:0);let m=p>=200&&p<300,_=s.redirected,x=s.type;m?(o.next(new gi({body:h,headers:a,status:p,statusText:c,url:l,redirected:_,responseType:x})),o.complete()):o.error(new lr({error:h,headers:a,status:p,statusText:c,url:l,redirected:_,responseType:x}))}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 Nm(o).decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){if(n.reportUploadProgress)throw new S(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(Mm)||(r[Mm]=vE),!n.headers.has(ud)){let i=n.detectContentTypeHeader();i!==null&&(r[ud]=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})(),fd=class{};function pd(){}function bE(e){e.then(pd,pd)}function Tm(e){throw new S(-2825,!1)}var DE=/charset=\s*["']?([^;"'\s]+)["']?/i;function Nm(e){let t=e.match(DE);if(t!==null)try{return new TextDecoder(t[1])}catch{}return new TextDecoder}var EE=new O("",{factory:()=>!0}),wE="XSRF-TOKEN",xE=new O("",{factory:()=>wE}),SE="X-XSRF-TOKEN",IE=new O("",{factory:()=>SE}),ME=(()=>{class e{cookieName=b(xE);doc=b(Fe);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=li(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})(),Rm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=$(ME),o},providedIn:"root"})}return e})();function Pm(e,t){if(!b(EE)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=b(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=b(Rm).getToken(),r=b(IE);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function TE(e,t){return t(e)}function NE(e,t,n){return(r,o)=>Tr(n,()=>t(r,i=>e(i,o)))}var gd=new O("",{factory:()=>[Pm]}),Fm=new O(""),Lm=new O("",{factory:()=>!0});var Ra=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=$(Kr),o},providedIn:"root"})}return e})();var ka=(()=>{class e{backend;injector;chain=null;pendingTasks=b(Lr);contributeToStability=b(Lm);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(Fm,[],i?{self:!0}:void 0),a=Array.from(new Set([...this.injector.get(gd),...s]));this.chain=a.reduceRight((c,l)=>NE(c,l,this.injector),TE)}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return Ze(()=>r(n,i=>this.backend.handle(i))).pipe(Ec(o))}else return Ze(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)($(Ra),$(Ue))};static \u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Pa=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=$(ka),o},providedIn:"root"})}return e})();function dd(e,t){return j({body:t},e)}var Fa=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Yr)i=n;else{let c;o.headers instanceof ln?c=o.headers:c=new ln(o.headers);let l;o.params&&(o.params instanceof cn?l=o.params:l=new cn({fromObject:o.params})),i=new Yr(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=vc(i).pipe(Dc(c=>this.handler.handle(c)));if(n instanceof Yr||o.observe==="events")return s;let a=s.pipe(bc(c=>c instanceof gi));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(xe(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new S(2806,!1);return c.body}));case"blob":return a.pipe(xe(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new S(2807,!1);return c.body}));case"text":return a.pipe(xe(c=>{if(c.body!==null&&typeof c.body!="string")throw new S(2808,!1);return c.body}));default:return a.pipe(xe(c=>c.body))}case"response":return a;default:throw new S(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 cn().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,dd(o,r))}post(n,r,o={}){return this.request("POST",n,dd(o,r))}put(n,r,o={}){return this.request("PUT",n,dd(o,r))}static \u0275fac=function(r){return new(r||e)($(Pa))};static \u0275prov=te({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 Vm(e,t){return{\u0275kind:e,\u0275providers:t}}function hd(...e){let t=[Fa,Kr,ka,{provide:Pa,useExisting:ka},{provide:Ra,useFactory:()=>b(Kr)},{provide:gd,useValue:Pm,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return Ir(t)}function md(e){return Vm(La.Interceptors,e.map(t=>({provide:gd,useValue:t,multi:!0})))}function yd(){return Vm(La.Fetch,[Kr,{provide:Ra,useExisting:Kr}])}var jm={apiBase:""},Jr=jm,Bm=!1;function AE(){if(!Bm)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 we=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(q(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{Kd(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)Kd(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)}};we.EMPTY=(()=>{let e=new we;return e.closed=!0,e})();var ul=we.EMPTY;function Fi(e){return e instanceof we||e&&"closed"in e&&q(e.remove)&&q(e.add)&&q(e.unsubscribe)}function Kd(e){q(e)?e():e.unsubscribe()}var ht={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var vr={setTimeout(e,t,...n){let{delegate:r}=vr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=vr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Li(e){vr.setTimeout(()=>{let{onUnhandledError:t}=ht;if(t)t(e);else throw e})}function ho(){}var Jd=dl("C",void 0,void 0);function Xd(e){return dl("E",void 0,e)}function ef(e){return dl("N",e,void 0)}function dl(e,t,n){return{kind:e,value:t,error:n}}var kn=null;function _r(e){if(ht.useDeprecatedSynchronousErrorHandling){let t=!kn;if(t&&(kn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=kn;if(kn=null,n)throw r}}else e()}function tf(e){ht.useDeprecatedSynchronousErrorHandling&&kn&&(kn.errorThrown=!0,kn.error=e)}var Rn=class extends we{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Fi(t)&&t.add(this)):this.destination=$y}static create(t,n,r){return new Cr(t,n,r)}next(t){this.isStopped?pl(ef(t),this):this._next(t)}error(t){this.isStopped?pl(Xd(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?pl(Jd,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()}}},Hy=Function.prototype.bind;function fl(e,t){return Hy.call(e,t)}var gl=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)}}},Cr=class extends Rn{constructor(t,n,r){super();let o;if(q(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&&fl(t.next,i),error:t.error&&fl(t.error,i),complete:t.complete&&fl(t.complete,i)}):o=t}this.destination=new gl(o)}};function Vi(e){ht.useDeprecatedSynchronousErrorHandling?tf(e):Li(e)}function Uy(e){throw e}function pl(e,t){let{onStoppedNotification:n}=ht;n&&vr.setTimeout(()=>n(e,t))}var $y={closed:!0,next:ho,error:Uy,complete:ho};var br=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ji(e){return e}function nf(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=Gy(t)?t:new Cr(t,n,r);return _r(()=>{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=rf(n),new n((r,o)=>{let i=new Cr({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)}[br](){return this}pipe(...t){return nf(t)(this)}toPromise(t){return t=rf(t),new t((n,r)=>{let o;this.subscribe(i=>o=i,i=>r(i),()=>n(o))})}};Q.create=e=>new Q(e);function rf(e){var t;return(t=e??ht.Promise)!==null&&t!==void 0?t:Promise}function zy(e){return e&&q(e.next)&&q(e.error)&&q(e.complete)}function Gy(e){return e&&e instanceof Rn||zy(e)&&Fi(e)}function Wy(e){return q(e?.lift)}function Ae(e){return t=>{if(Wy(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 Oe(e,t,n,r,o){return new hl(e,t,n,r,o)}var hl=class extends Rn{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}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 of=Ri(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ke=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 of}next(t){_r(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(t)}})}error(t){_r(()=>{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(){_r(()=>{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?ul:(this.currentObservers=null,o.push(t),new we(()=>{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}};ke.create=(e,t)=>new Bi(e,t);var Bi=class extends ke{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:ul}};var mo=class extends ke{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 ml={now(){return(ml.delegate||Date).now()},delegate:void 0};var Dr=class extends ke{constructor(t=1/0,n=1/0,r=ml){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 l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}}};var sf=new Q(e=>e.complete());function af(e){return e&&q(e.schedule)}function yl(e){return e[e.length-1]}function lf(e){return q(yl(e))?e.pop():void 0}function Hi(e){return af(yl(e))?e.pop():void 0}function cf(e,t){return typeof yl(e)=="number"?e.pop():t}function df(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(p){try{c(r.next(p))}catch(h){s(h)}}function l(p){try{c(r.throw(p))}catch(h){s(h)}}function c(p){p.done?i(p.value):o(p.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function uf(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 Pn(e){return this instanceof Pn?(this.v=e,this):new Pn(e)}function ff(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,h)}}function a(m,_){r[m]&&(o[m]=function(x){return new Promise(function(R,F){i.push([m,x,R,F])>1||l(m,x)})},_&&(o[m]=_(o[m])))}function l(m,_){try{c(r[m](_))}catch(x){y(i[0][3],x)}}function c(m){m.value instanceof Pn?Promise.resolve(m.value.v).then(p,h):y(i[0][2],m)}function p(m){l("next",m)}function h(m){l("throw",m)}function y(m,_){m(_),i.shift(),i.length&&l(i[0][0],i[0][1])}}function pf(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 uf=="function"?uf(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,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},s)}}var Ui=(e=>e&&typeof e.length=="number"&&typeof e!="function");function $i(e){return q(e?.then)}function zi(e){return q(e[br])}function Gi(e){return Symbol.asyncIterator&&q(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 qy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var qi=qy();function Zi(e){return q(e?.[qi])}function Yi(e){return ff(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Pn(n.read());if(o)return yield Pn(void 0);yield yield Pn(r)}}finally{n.releaseLock()}})}function Qi(e){return q(e?.getReader)}function be(e){if(e instanceof Q)return e;if(e!=null){if(zi(e))return Zy(e);if(Ui(e))return Yy(e);if($i(e))return Qy(e);if(Gi(e))return gf(e);if(Zi(e))return Ky(e);if(Qi(e))return Jy(e)}throw Wi(e)}function Zy(e){return new Q(t=>{let n=e[br]();if(q(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Yy(e){return new Q(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Qy(e){return new Q(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Li)})}function Ky(e){return new Q(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function gf(e){return new Q(t=>{Xy(e,t).catch(n=>t.error(n))})}function Jy(e){return gf(Yi(e))}function Xy(e,t){var n,r,o,i;return df(this,void 0,void 0,function*(){try{for(n=pf(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 it(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 Ae((n,r)=>{n.subscribe(Oe(r,o=>it(r,e,()=>r.next(o),t),()=>it(r,e,()=>r.complete(),t),o=>it(r,e,()=>r.error(o),t)))})}function Ji(e,t=0){return Ae((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function hf(e,t){return be(e).pipe(Ji(t),Ki(t))}function mf(e,t){return be(e).pipe(Ji(t),Ki(t))}function yf(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 vf(e,t){return new Q(n=>{let r;return it(n,t,()=>{r=e[qi](),it(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)}),()=>q(r?.return)&&r.return()})}function Xi(e,t){if(!e)throw new Error("Iterable cannot be null");return new Q(n=>{it(n,t,()=>{let r=e[Symbol.asyncIterator]();it(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function _f(e,t){return Xi(Yi(e),t)}function Cf(e,t){if(e!=null){if(zi(e))return hf(e,t);if(Ui(e))return yf(e,t);if($i(e))return mf(e,t);if(Gi(e))return Xi(e,t);if(Zi(e))return vf(e,t);if(Qi(e))return _f(e,t)}throw Wi(e)}function Gt(e,t){return t?Cf(e,t):be(e)}function vl(...e){let t=Hi(e);return Gt(e,t)}function xe(e,t){return Ae((n,r)=>{let o=0;n.subscribe(Oe(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:ev}=Array;function tv(e,t){return ev(t)?e(...t):e(t)}function bf(e){return xe(t=>tv(e,t))}var{isArray:nv}=Array,{getPrototypeOf:rv,prototype:ov,keys:iv}=Object;function Df(e){if(e.length===1){let t=e[0];if(nv(t))return{args:t,keys:null};if(sv(t)){let n=iv(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function sv(e){return e&&typeof e=="object"&&rv(e)===ov}function Ef(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function wf(e,t,n,r,o,i,s,a){let l=[],c=0,p=0,h=!1,y=()=>{h&&!l.length&&!c&&t.complete()},m=x=>c<r?_(x):l.push(x),_=x=>{i&&t.next(x),c++;let R=!1;be(n(x,p++)).subscribe(Oe(t,F=>{o?.(F),i?m(F):t.next(F)},()=>{R=!0},void 0,()=>{if(R)try{for(c--;l.length&&c<r;){let F=l.shift();s?it(t,s,()=>_(F)):_(F)}y()}catch(F){t.error(F)}}))};return e.subscribe(Oe(t,m,()=>{h=!0,y()})),()=>{a?.()}}function Er(e,t,n=1/0){return q(t)?Er((r,o)=>xe((i,s)=>t(r,i,o,s))(be(e(r,o))),n):(typeof t=="number"&&(n=t),Ae((r,o)=>wf(r,o,e,n)))}function xf(e=1/0){return Er(ji,e)}function _l(...e){let t=lf(e),{args:n,keys:r}=Df(e),o=new Q(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),l=s,c=s;for(let p=0;p<s;p++){let h=!1;be(n[p]).subscribe(Oe(i,y=>{h||(h=!0,c--),a[p]=y},()=>l--,void 0,()=>{(!l||!h)&&(c||i.next(r?Ef(r,a):a),i.complete())}))}});return t?o.pipe(bf(t)):o}function Cl(...e){let t=Hi(e),n=cf(e,1/0),r=e;return r.length?r.length===1?be(r[0]):xf(n)(Gt(r,t)):sf}function bl(e,t){return Ae((n,r)=>{let o=0;n.subscribe(Oe(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Dl(e,t){return q(t)?Er(e,t,1):Er(e,1)}function El(e){return Ae((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Fn(e,t){return Ae((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(Oe(r,l=>{o?.unsubscribe();let c=0,p=i++;be(e(l,p)).subscribe(o=Oe(r,h=>r.next(t?t(l,h,p,c++):h),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function wl(e){return Ae((t,n)=>{be(e).subscribe(Oe(n,()=>n.complete(),ho)),!n.closed&&t.subscribe(n)})}var ss="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",S=class extends Error{code;constructor(t,n){super(dn(t,n)),this.code=t}};function av(e){return`NG0${Math.abs(e)}`}function dn(e,t){return`${av(e)}${t?": "+t:""}`}function oe(e){for(let t in e)if(e[t]===oe)return t;throw Error("")}function Nf(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 ls(e,t){return e?t?`${e} ${t}`:e:t||""}var lv=oe({__forward_ref__:oe});function $e(e){return e.__forward_ref__=$e,e}function Se(e){return Ll(e)?e():e}function Ll(e){return typeof e=="function"&&Object.hasOwn(e,lv)&&e.__forward_ref__===$e}function te(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 cs(e){return cv(e,us)}function cv(e,t){return Object.hasOwn(e,t)&&e[t]||null}function uv(e){let t=e?.[us]??null;return t||null}function Sl(e){return e&&Object.hasOwn(e,ts)?e[ts]:null}var us=oe({\u0275prov:oe}),ts=oe({\u0275inj:oe}),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=te({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Vl(e){return e&&!!e.\u0275providers}var Do=oe({\u0275cmp:oe}),Eo=oe({\u0275dir:oe}),jl=oe({\u0275pipe:oe});var vo=oe({\u0275fac:oe}),Hn=oe({__NG_ELEMENT_ID__:oe}),Sf=oe({__NG_ENV_ID__:oe});function Qt(e){return Hl(e,"@Component"),e[Do]||null}function Bl(e){return Hl(e,"@Directive"),e[Eo]||null}function Af(e){return Hl(e,"@Pipe"),e[jl]||null}function Hl(e,t){if(e==null)throw new S(-919,!1)}function Kt(e){return typeof e=="string"?e:e==null?"":String(e)}var Of=oe({ngErrorCode:oe}),dv=oe({ngErrorMessage:oe}),fv=oe({ngTokenPath:oe});function Ul(e,t){return kf("",-200,t)}function ds(e,t){throw new S(-201,!1)}function kf(e,t,n){let r=new S(t,e);return r[Of]=t,r[dv]=e,n&&(r[fv]=n),r}function pv(e){return e[Of]}var Il;function Rf(){return Il}function Be(e){let t=Il;return Il=e,t}function $l(e,t,n){let r=cs(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 Un=globalThis;var gv={},Ln=gv,hv="__NG_DI_FLAG__",Ml=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Vn(n)||0;try{return this.injector.get(t,r&8?null:Ln,r)}catch(o){if(yr(o))return o;throw o}}};function mv(e,t=0){let n=ki();if(n===void 0)throw new S(-203,!1);if(n===null)return $l(e,void 0,t);{let r=yv(t),o=n.retrieve(e,r);if(yr(o)){if(r.optional)return null;throw o}return o}}function $(e,t=0){return(Rf()||mv)(Se(e),t)}function b(e,t){return $(e,Vn(t))}function Vn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function yv(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Tl(e){let t=[];for(let n=0;n<e.length;n++){let r=Se(e[n]);if(Array.isArray(r)){if(r.length===0)throw new S(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],l=vv(a);typeof l=="number"?l===-1?o=a.token:i|=l:o=a}t.push($(o,i))}else t.push($(r))}return t}function vv(e){return e[hv]}function un(e,t){let n=Object.hasOwn(e,vo);return n?e[vo]:null}function Pf(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 Ff(e){return e.flat(Number.POSITIVE_INFINITY)}function fs(e,t){e.forEach(n=>Array.isArray(n)?fs(n,t):t(n))}function zl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function wo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Lf(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=Sr(e,t);return r>=0?e[r|1]=n:(r=~r,Lf(e,r,t,n)),r}function gs(e,t){let n=Sr(e,t);if(n>=0)return e[n|1]}function Sr(e,t){return _v(e,t,1)}function _v(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 fn={},He=[],xo=new O(""),So=new O("",-1),Gl=new O(""),xr=class{get(t,n=Ln){if(n===Ln){let o=kf("",-201);throw o.name="\u0275NotFound",o}return n}};function Ir(e){return{\u0275providers:e}}function Vf(...e){return{\u0275providers:Wl(!0,e),\u0275fromNgModule:!0}}function Wl(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&&jf(o,i),n}function jf(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ql(o,i=>{t(i,r)})}}function ns(e,t,n,r){if(e=Se(e),!e)return!1;let o=null,i=Sl(e),s=!i&&Qt(e);if(!i&&!s){let l=e.ngModule;if(i=Sl(l),i)o=l;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 l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)ns(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;fs(i.imports,p=>{ns(p,t,n,r)&&(c||=[],c.push(p))}),c!==void 0&&jf(c,t)}if(!a){let c=un(o)||(()=>new o);t({provide:o,useFactory:c,deps:He},o),t({provide:Gl,useValue:o,multi:!0},o),t({provide:xo,useValue:()=>$(o),multi:!0},o)}let l=i.providers;if(l!=null&&!a){let c=e;ql(l,p=>{t(p,c)})}}else return!1;return o!==e&&e.providers!==void 0}function ql(e,t){for(let n of e)Vl(n)&&(n=n.\u0275providers),Array.isArray(n)?ql(n,t):t(n)}var Cv=oe({provide:String,useValue:oe});function Bf(e){return e!==null&&typeof e=="object"&&Cv in e}function bv(e){return!!(e&&e.useExisting)}function Dv(e){return!!(e&&e.useFactory)}function jn(e){return typeof e=="function"}function Hf(e){return!!e.useClass}var Io=new O(""),es={},If={},xl;function Mr(){return xl===void 0&&(xl=new xr),xl}var Ue=class{},Bn=class extends Ue{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,Al(t,s=>this.processProvider(s)),this.records.set(So,wr(void 0,this)),o.has("environment")&&this.records.set(Ue,wr(void 0,this));let i=this.records.get(Io);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Gl,He,{self:!0}))}retrieve(t,n){let r=Vn(n)||0;try{return this.get(t,Ln,r)}catch(o){if(yr(o))return o;throw o}}destroy(){yo(this),this._destroyed=!0;let t=P(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(),P(t)}}onDestroy(t){return yo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){yo(this);let n=At(this),r=Be(void 0),o;try{return t()}finally{At(n),Be(r)}}get(t,n=Ln,r){if(yo(this),Object.hasOwn(t,Sf))return t[Sf](this);let o=Vn(r),i,s=At(this),a=Be(void 0);try{if(!(o&4)){let c=this.records.get(t);if(c===void 0){let p=Iv(t)&&cs(t);p&&this.injectableDefInScope(p)?c=wr(Nl(t),es):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c,o)}let l=o&2?Mr():this.parent;return n=o&8&&n===Ln?null:n,l.get(t,n)}catch(l){let c=pv(l);throw c===-200||c===-201?new S(c,null):l}finally{Be(a),At(s)}}resolveInjectorInitializers(){let t=P(null),n=At(this),r=Be(void 0),o;try{let i=this.get(xo,He,{self:!0});for(let s of i)s()}finally{At(n),Be(r),P(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=Se(t);let n=jn(t)?t:Se(t&&t.provide),r=wv(t);if(!jn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=wr(void 0,es,!0),o.factory=()=>Tl(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=P(null);try{if(n.value===If)throw Ul("");return n.value===es&&(n.value=If,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Sv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{P(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Se(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 Nl(e){let t=cs(e),n=t!==null?t.factory:un(e);if(n!==null)return n;if(e instanceof O)throw new S(-204,!1);if(e instanceof Function)return Ev(e);throw new S(-204,!1)}function Ev(e){if(e.length>0)throw new S(-204,!1);let n=uv(e);return n!==null?()=>n.factory(e):()=>new e}function wv(e){if(Bf(e))return wr(void 0,e.useValue);{let t=Zl(e);return wr(t,es)}}function Zl(e,t,n){let r;if(jn(e)){let o=Se(e);return un(o)||Nl(o)}else if(Bf(e))r=()=>Se(e.useValue);else if(Dv(e))r=()=>e.useFactory(...Tl(e.deps||[]));else if(bv(e))r=(o,i)=>$(Se(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Se(e&&(e.useClass||e.provide));if(xv(e))r=()=>new o(...Tl(e.deps));else return un(o)||Nl(o)}return r}function yo(e){if(e.destroyed)throw new S(-205,!1)}function wr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function xv(e){return!!e.deps}function Sv(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Iv(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Al(e,t){for(let n of e)Array.isArray(n)?Al(n,t):n&&Vl(n)?Al(n.\u0275providers,t):t(n)}function Tr(e,t){let n;e instanceof Bn?(yo(e),n=e):n=new Ml(e);let r,o=At(n),i=Be(void 0);try{return t()}finally{At(o),Be(i)}}function Uf(){return Rf()!==void 0||ki()!=null}var yt=0,k=1,L=2,ve=3,at=4,We=5,Nr=6,Ar=7,ge=8,Ot=9,vt=10,se=11,Or=12,Yl=13,pn=14,Je=15,gn=16,$n=17,kt=18,Rt=19,Ql=20,Wt=21,hs=22,qt=23,Xe=24,zn=25,Pt=26,me=27,$f=1,Kl=6,Gn=7,Mo=8,Wn=9,fe=10;function Jt(e){return Array.isArray(e)&&typeof e[$f]=="object"}function lt(e){return Array.isArray(e)&&e[$f]===!0}function Jl(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 kr(e){return(e[L]&512)!==0}function qn(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 Xl="svg",zf="math";function Ie(e){for(;Array.isArray(e);)e=e[yt];return e}function ec(e,t){return Ie(t[e])}function ct(e,t){return Ie(t[e.index])}function vs(e,t){return e.data[t]}function tc(e,t){return e[t]}function nc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function ut(e,t){let n=t[e];return Jt(n)?n:n[yt]}function Gf(e){return(e[L]&4)===4}function _s(e){return(e[L]&128)===128}function Wf(e){return lt(e[ve])}function Lt(e,t){return t==null?null:e[t]}function rc(e){e[$n]=0}function Cs(e){e[L]&1024||(e[L]|=1024,_s(e)&&Zn(e))}function qf(e,t){for(;e>0;)t=t[pn],e--;return t}function Rr(e){return!!(e[L]&9216||e[Xe]?.dirty)}function bs(e){e[vt].changeDetectionScheduler?.notify(8),e[L]&64&&(e[L]|=1024),Rr(e)&&Zn(e)}function Zn(e){e[vt].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(qn(e))throw new S(911,!1);e[Wt]===null&&(e[Wt]=[]),e[Wt].push(t)}function Zf(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 lt(t)?t[ve]:t}function oc(e){return e[Ar]??=[]}function ic(e){return e.cleanup??=[]}function Yf(e,t,n,r){let o=oc(t);o.push(n),e.firstCreatePass&&ic(e).push(r,o.length-1)}var H={lFrame:lp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ol=!1;function Qf(){return H.lFrame.elementDepthCount}function Kf(){H.lFrame.elementDepthCount++}function sc(){H.lFrame.elementDepthCount--}function Jf(){return H.bindingsEnabled}function Xf(){return H.skipHydrationRootTNode!==null}function ac(e){return H.skipHydrationRootTNode===e}function lc(){H.skipHydrationRootTNode=null}function V(){return H.lFrame.lView}function pe(){return H.lFrame.tView}function I(e){return H.lFrame.contextLView=e,e[ge]}function M(e){return H.lFrame.contextLView=null,e}function Me(){let e=cc();for(;e!==null&&e.type===64;)e=e.parent;return e}function cc(){return H.lFrame.currentTNode}function ep(){let e=H.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Pr(e,t){let n=H.lFrame;n.currentTNode=e,n.isParent=t}function uc(){return H.lFrame.isParent}function tp(){H.lFrame.isParent=!1}function dc(){return Ol}function _o(e){let t=Ol;return Ol=e,t}function Es(){let e=H.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function fc(){return H.lFrame.bindingIndex}function np(e){return H.lFrame.bindingIndex=e}function hn(){return H.lFrame.bindingIndex++}function To(e){let t=H.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function rp(){return H.lFrame.inI18n}function op(e,t){let n=H.lFrame;n.bindingIndex=n.bindingRootIndex=e,ws(t)}function ip(){return H.lFrame.currentDirectiveIndex}function ws(e){H.lFrame.currentDirectiveIndex=e}function sp(e){let t=H.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function pc(){return H.lFrame.currentQueryIndex}function xs(e){H.lFrame.currentQueryIndex=e}function Mv(e){let t=e[k];return t.type===2?t.declTNode:t.type===1?e[We]:null}function gc(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Mv(i),o===null||(i=i[pn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=H.lFrame=ap();return r.currentTNode=t,r.lView=e,!0}function Ss(e){let t=ap(),n=e[k];H.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ap(){let e=H.lFrame,t=e===null?null:e.child;return t===null?lp(e):t}function lp(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 cp(){let e=H.lFrame;return H.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var hc=cp;function Is(){let e=cp();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 up(e){return(H.lFrame.contextLView=qf(e,H.lFrame.contextLView))[ge]}function _t(){return H.lFrame.selectedIndex}function mn(e){H.lFrame.selectedIndex=e}function Fr(){let e=H.lFrame;return vs(e.tView,e.selectedIndex)}function No(){H.lFrame.currentNamespace=Xl}function Ao(){Tv()}function Tv(){H.lFrame.currentNamespace=null}function mc(){return H.lFrame.currentNamespace}var dp=!0;function Ms(){return dp}function Ts(e){dp=e}function kl(e,t=null,n=null,r){let o=fp(e,t,n,r);return o.resolveInjectorInitializers(),o}function fp(e,t=null,n=null,r,o=new Set){let i=[n||He,Vf(e)],s;return new Bn(i,t||Mr(),s||null,o)}var Pe=class e{static THROW_IF_NOT_FOUND=Ln;static NULL=new xr;static create(t,n){if(Array.isArray(t))return kl({name:""},n,t,"");{let r=t.name??"";return kl({name:r},t.parent,t.providers,r)}}static \u0275prov=te({token:e,providedIn:"any",factory:()=>$(So)});static __NG_ELEMENT_ID__=-1},Fe=new O(""),de=class{static __NG_ELEMENT_ID__=Nv;static __NG_ENV_ID__=t=>t},rs=class extends de{_lView;constructor(t){super(),this._lView=t}get destroyed(){return qn(this._lView)}onDestroy(t){let n=this._lView;return Ds(n,t),()=>Zf(n,t)}};function Nv(){return new rs(V())}var pp=!1,gp=new O(""),Yn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new mo(!1);debugTaskTracker=b(gp,{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=te({token:e,providedIn:"root",factory:()=>new e})}return e})(),Rl=class extends ke{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Uf()&&(this.destroyRef=b(de,{optional:!0})??void 0,this.pendingTasks=b(Yn,{optional:!0})??void 0)}emit(t){let n=P(null);try{super.next(t)}finally{P(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}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 we&&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)}})}}},Re=Rl;function os(...e){}function yc(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 hp(e){return queueMicrotask(()=>e()),()=>{e=os}}var vc="isAngularZone",Co=vc+"_ID",Av=0,De=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Re(!1);onMicrotaskEmpty=new Re(!1);onStable=new Re(!1);onError=new Re(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=pp}=t;if(typeof Zone>"u")throw new S(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,Rv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(vc)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new S(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,Ov,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)}},Ov={};function _c(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 kv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){yc(()=>{e.callbackScheduled=!1,Pl(e),e.isCheckStableRunning=!0,_c(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Pl(e)}function Rv(e){let t=()=>{kv(e)},n=Av++;e._inner=e._inner.fork({name:"angular",properties:{[vc]:!0,[Co]:n,[Co+n]:!0},onInvokeTask:(r,o,i,s,a,l)=>{if(Pv(l))return r.invokeTask(i,s,a,l);try{return Mf(e),r.invokeTask(i,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Tf(e)}},onInvoke:(r,o,i,s,a,l,c)=>{try{return Mf(e),r.invoke(i,s,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Fv(l)&&t(),Tf(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Pl(e),_c(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 Pl(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Mf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Tf(e){e._nesting--,_c(e)}var bo=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Re;onMicrotaskEmpty=new Re;onStable=new Re;onError=new Re;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 Pv(e){return mp(e,"__ignore_ng_zone__")}function Fv(e){return mp(e,"__scheduler_tick__")}function mp(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var st=class{_console=console;handleError(t){this._console.error("ERROR",t)}},yn=new O("",{factory:()=>{let e=b(De),t=b(Ue),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(st),n.handleError(r))})}}}),yp={provide:xo,useValue:()=>{let e=b(st,{optional:!0})},multi:!0};function A(e,t){let[n,r,o]=il(e,t?.equal),i=n,s=i[Ee];return i.set=r,i.update=o,i.asReadonly=Cc.bind(i),i}function Cc(){let e=this[Ee];if(e.readonlyFn===void 0){let t=()=>this();t[Ee]=e,e.readonlyFn=t}return e.readonlyFn}var Oo=new O("",{factory:()=>Lv}),Lv="ng";var Ns=new O(""),ko=new O("",{providedIn:"platform",factory:()=>"unknown"});var Ro=new O("",{factory:()=>b(Fe).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Po=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Vv}return e})();function Vv(){return new Po(V(),Me())}var mt=class{},Fo=new O("",{factory:()=>!0});var bc=new O(""),As=(()=>{class e{static \u0275prov=te({token:e,providedIn:"root",factory:()=>new Fl})}return e})(),Fl=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{[Ee];constructor(t){this[Ee]=t}destroy(){this[Ee].destroy()}};function Ct(e,t){let n=t?.injector??b(Pe),r=t?.manualCleanup!==!0?n.get(de):null,o,i=n.get(Po,null,{optional:!0}),s=n.get(mt);return i!==null?(o=_p(i.view,s,e),r instanceof rs&&r._lView===i.view&&(r=null)):o=Hv(e,n.get(As),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new is(o)}var vp=U(j({},al),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=_o(!1);try{ll(this)}finally{_o(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=P(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],P(e)}}}),jv=U(j({},vp),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(An(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),Bv=U(j({},vp),{consumerMarkedDirty(){this.view[L]|=8192,Zn(this.view),this.notifier.notify(13)},destroy(){if(An(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[qt]?.delete(this)}});function _p(e,t,n){let r=Object.create(Bv);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=Cp(r,n),e[qt]??=new Set,e[qt].add(r),r.consumerMarkedDirty(r),r}function Hv(e,t,n){let r=Object.create(jv);return r.fn=Cp(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 Cp(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function Qn(e){return typeof e=="function"&&e[Ee]!==void 0}function Os(e){return Qn(e)&&typeof e.set=="function"}var Lr=(()=>{class e{internalPendingTasks=b(Yn);scheduler=b(mt);errorHandler=b(yn);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=te({token:e,providedIn:"root",factory:()=>new e})}return e})();var ta=Symbol("InputSignalNode#UNSET"),tg=U(j({},po),{transformFn:void 0,applyValueToInputSignal(e,t){On(e,t)}});function Yo(e){return{toString:e}.toString()}var K=(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})(K||{}),Vs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ng(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var rg=null,or=(()=>{rg=bp;let e=()=>bp;return e.ngInherit=!0,e})();function Jv(){return rg}function bp(e){return e.type.prototype.ngOnChanges&&(e.setInput=e0),Xv}function Xv(){let e=og(this),t=e?.current;if(t){let n=e.previous;if(n===fn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function e0(e,t,n,r,o){let i=this.declaredInputs[r],s=og(e)||t0(e,{previous:fn,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[i];a[i]=new Vs(c&&c.currentValue,n,l===fn),ng(e,t,o,n)}var kc="__ngSimpleChanges__";function og(e){return Object.hasOwn(e,kc)&&e[kc]||null}function t0(e,t){return e[kc]=t}var Dp=[];var ne=function(e,t=null,n){for(let r=0;r<Dp.length;r++){let o=Dp[r];o(e,t,n)}};function n0(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 r0(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:l,ngAfterViewChecked:c,ngOnDestroy:p}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),l&&(e.viewHooks??=[]).push(-n,l),c&&((e.viewHooks??=[]).push(n,c),(e.viewCheckHooks??=[]).push(n,c)),p!=null&&(e.destroyHooks??=[]).push(n,p)}}function Rs(e,t,n){ig(e,t,3,n)}function Ps(e,t,n,r){(e[L]&3)===n&&ig(e,t,n,r)}function Dc(e,t){let n=e[L];(n&3)===t&&(n&=16383,n+=1,e[L]=n)}function ig(e,t,n,r){let o=r!==void 0?e[$n]&65535:0,i=r??-1,s=t.length-1,a=0;for(let l=o;l<s;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[$n]+=65536),(a<i||i==-1)&&(o0(e,n,t,l),e[$n]=(e[$n]&4294901760)+l+2),l++}function Ep(e,t){ne(K.LifecycleHookStart,e,t);let n=P(null);try{t.call(e)}finally{P(n),ne(K.LifecycleHookEnd,e,t)}}function o0(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[$n]>>16&&(e[L]&3)===t&&(e[L]+=16384,Ep(a,i)):Ep(a,i)}var jr=-1,Xn=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 i0(e){return(e.flags&8)!==0}function s0(e){return(e.flags&16)!==0}function a0(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];c0(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function l0(e){return e===3||e===4||e===6}function c0(e){return e.charCodeAt(0)===64}function Br(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?wp(e,n,o,null,t[++r]):wp(e,n,o,null,null))}}return e}function wp(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 sg(e){return e!==jr}function js(e){return e&32767}function u0(e){return e>>16}function Bs(e,t){let n=u0(e),r=t;for(;n>0;)r=r[pn],n--;return r}var Rc=!0;function Hs(e){let t=Rc;return Rc=e,t}var d0=256,ag=d0-1,lg=5,f0=0,Vt={};function p0(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:Object.hasOwn(n,Hn)&&(r=n[Hn]),r==null&&(r=n[Hn]=f0++);let o=r&ag,i=1<<o;t.data[e+(o>>lg)]|=i}function Us(e,t){let n=cg(e,t);if(n!==-1)return n;let r=t[k];r.firstCreatePass&&(e.injectorIndex=t.length,Ec(r.data,e),Ec(t,null),Ec(r.blueprint,null));let o=lu(e,t),i=e.injectorIndex;if(sg(o)){let s=js(o),a=Bs(o,t),l=a[k].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|l[s+c]}return t[i+8]=o,i}function Ec(e,t){e.push(0,0,0,0,0,0,0,0,t)}function cg(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function lu(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=gg(o),r===null)return jr;if(n++,o=o[pn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return jr}function Pc(e,t,n){p0(e,t,n)}function ug(e,t,n){if(n&8||e!==void 0)return e;ds(t,"NodeInjector")}function dg(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Ot],i=Be(void 0);try{return o?o.get(t,r,n&8):$l(t,r,n&8)}finally{Be(i)}}return ug(r,t,n)}function fg(e,t,n,r=0,o){if(e!==null){if(t[L]&2048&&!(r&2)){let s=y0(e,t,n,r,Vt);if(s!==Vt)return s}let i=pg(e,t,n,r,Vt);if(i!==Vt)return i}return dg(t,n,r,o)}function pg(e,t,n,r,o){let i=h0(n);if(typeof i=="function"){if(!gc(t,e,r))return r&1?ug(o,n,r):dg(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))ds(n);else return s}finally{hc()}}else if(typeof i=="number"){let s=null,a=cg(e,t),l=jr,c=r&1?t[Je][We]:null;for((a===-1||r&4)&&(l=a===-1?lu(e,t):t[a+8],l===jr||!Sp(r,!1)?a=-1:(s=t[k],a=js(l),t=Bs(l,t)));a!==-1;){let p=t[k];if(xp(i,a,p.data)){let h=g0(a,t,n,s,r,c);if(h!==Vt)return h}l=t[a+8],l!==jr&&Sp(r,t[k].data[a+8]===c)&&xp(i,a,t)?(s=p,a=js(l),t=Bs(l,t)):a=-1}}return o}function g0(e,t,n,r,o,i){let s=t[k],a=s.data[e+8],l=r==null?Xt(a)&&Rc:r!=s&&(a.type&3)!==0,c=o&1&&i===a,p=Fs(a,s,n,l,c);return p!==null?Ho(t,s,p,a,o):Vt}function Fs(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,l=e.directiveStart,c=e.directiveEnd,p=i>>20,h=r?a:a+p,y=o?a+p:c;for(let m=h;m<y;m++){let _=s[m];if(m<l&&n===_||m>=l&&_.type===n)return m}if(o){let m=s[l];if(m&&Ft(m)&&m.type===n)return l}return null}function Ho(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Xn){let a=i;if(a.resolving)throw Ul("");let l=Hs(a.canSeeViewProviders);a.resolving=!0;let c=s[n].type||s[n],p,h=a.injectImpl?Be(a.injectImpl):null,y=gc(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&n0(n,s[n],t)}finally{h!==null&&Be(h),Hs(l),a.resolving=!1,hc()}}return i}function h0(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=Object.hasOwn(e,Hn)?e[Hn]:void 0;return typeof t=="number"?t>=0?t&ag:m0:t}function xp(e,t,n){let r=1<<e;return!!(n[t+(e>>lg)]&r)}function Sp(e,t){return!(e&2)&&!(e&1&&t)}var vn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return fg(this._tNode,this._lView,t,Vn(r),n)}};function m0(){return new vn(Me(),V())}function wt(e){return Yo(()=>{let t=e.prototype.constructor,n=t[vo]||Fc(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[vo]||Fc(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Fc(e){return Ll(e)?()=>{let t=Fc(Se(e));return t&&t()}:un(e)}function y0(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[L]&2048&&!kr(s);){let a=pg(i,s,n,r|2,Vt);if(a!==Vt)return a;r&=-5;let l=i.parent;if(!l){let c=s[Ql];if(c){let p=c.get(n,Vt,r);if(p!==Vt)return p}l=gg(s),s=s[pn]}i=l}return o}function gg(e){let t=e[k],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 v0(){return zr(Me(),V())}function zr(e,t){return new xt(ct(e,t))}var xt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=v0}return e})();function _0(e){return e instanceof xt?e.nativeElement:e}function C0(){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 ke}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=Ff(t);(this._changesDetected=!Pf(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]=C0};function hg(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||{}),mg=new Map,b0=0;function D0(){return b0++}function E0(e){mg.set(e[Rt],e)}function Lc(e){mg.delete(e[Rt])}var Ip="__ngContext__";function Hr(e,t){Jt(t)?(e[Ip]=t[Rt],E0(t)):e[Ip]=t}function yg(e){return _g(e[Or])}function vg(e){return _g(e[at])}function _g(e){for(;e!==null&&!lt(e);)e=e[at];return e}var Vc;function uu(e){Vc=e}function Cg(){if(Vc!==void 0)return Vc;if(typeof document<"u")return document;throw new S(210,!1)}var bg="r";var Dg="di";var Eg=!1,wg=new O("",{factory:()=>Eg});var Mp=new WeakMap;function w0(e,t){if(e==null||typeof e!="object")return;let n=Mp.get(e);n||(n=new WeakSet,Mp.set(e,n)),n.add(t)}var x0=(e,t,n,r)=>{};function S0(e,t,n,r){x0(e,t,n,r)}function du(e){return(e.flags&32)===32}var I0=()=>null;function xg(e,t,n=!1){return I0(e,t,n)}function Sg(e,t){let n=e.contentQueries;if(n!==null){let r=P(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{P(r)}}}function jc(e,t,n){xs(0);let r=P(null);try{t(e,n)}finally{P(r)}}function Ig(e,t,n){if(Jl(t)){let r=P(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 l=n[s];a.contentQueries(1,l,s)}}}finally{P(r)}}}var Et=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(Et||{});var zs=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ss})`}};function Uo(e){return e instanceof zs?e.changingThisBreaksApplicationSecurity:e}function Mg(e,t){let n=Tg(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 Tg(e){return e instanceof zs&&e.getTypeName()||null}var M0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ng(e){return e=String(e),e.match(M0)?e:"unsafe:"+e}function T0(e,t){return e.createText(t)}function N0(e,t,n){e.setValue(t,n)}function Ag(e,t,n){return e.createElement(t,n)}function Kn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Og(e,t,n){e.appendChild(t,n)}function Tp(e,t,n,r,o){r!==null?Kn(e,t,n,r,o):Og(e,t,n)}function kg(e,t,n,r){e.removeChild(null,t,n,r)}function A0(e,t,n){e.setAttribute(t,"style",n)}function O0(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Rg(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&a0(e,t,r),o!==null&&O0(e,t,o),i!==null&&A0(e,t,i)}function na(e){let t=k0();return t?t.sanitize(ys.URL,e)||"":Mg(e,"URL")?Uo(e):Ng(Kt(e))}function k0(){let e=V();return e&&e[vt].sanitizer}function R0(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 Pg="ng-template";function P0(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&R0(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(fu(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 fu(e){return e.type===4&&e.value!==Pg}function F0(e,t,n){let r=e.type===4&&!n?Pg:e.value;return t===r}function L0(e,t,n){let r=4,o=e.attrs,i=o!==null?B0(o):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!bt(r)&&!bt(l))return!1;if(s&&bt(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!F0(e,l,n)||l===""&&t.length===1){if(bt(r))return!1;s=!0}}else if(r&8){if(o===null||!P0(e,o,l,n)){if(bt(r))return!1;s=!0}}else{let c=t[++a],p=V0(l,o,fu(e),n);if(p===-1){if(bt(r))return!1;s=!0;continue}if(c!==""){let h;if(p>i?h="":h=o[p+1].toLowerCase(),r&2&&c!==h){if(bt(r))return!1;s=!0}}}}return bt(r)||s}function bt(e){return(e&1)===0}function V0(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 H0(t,e)}function j0(e,t,n=!1){for(let r=0;r<t.length;r++)if(L0(e,t[r],n))return!0;return!1}function B0(e){for(let t=0;t<e.length;t++){let n=e[t];if(l0(n))return t}return e.length}function H0(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 Np(e,t){return e?":not("+t.trim()+")":t}function U0(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!==""&&!bt(s)&&(t+=Np(i,o),o=""),r=s,i=i||!bt(r);n++}return o!==""&&(t+=Np(i,o)),t}function $0(e){return e.map(U0).join(",")}function z0(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(!bt(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Te={},jt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(jt||{}),G0;function pu(e,t){return G0(e,t)}var _n=new Set;var RA=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Bc=new WeakMap;function Fg(e){return e?e[pn]??e:null}var Vo=new WeakSet;function W0(e,t,n){let r=Bc.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=Fg(n);for(let a=r.length-1;a>=0;a--){let{el:l,declarationView:c}=r[a],p=l.parentNode;l===t?(r.splice(a,1),Vo.add(l),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):i&&l===i?(r.splice(a,1),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),l.parentNode?.removeChild(l)):p&&o&&p!==o&&(s===null||c===null||s===c)&&(r.splice(a,1),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),l.parentNode?.removeChild(l))}}function q0(e,t,n){let r=Fg(n),o=Bc.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):Bc.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 O(""),Ap=new Set;function nn(e){Ap.has(e)||(Ap.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var gu=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=te({token:e,providedIn:"root",factory:()=>new e})}return e})(),Lg=[0,1,2,3],Vg=(()=>{class e{ngZone=b(De);scheduler=b(mt);errorHandler=b(st,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){b(tn,{optional:!0})}execute(){let n=this.sequences.size>0;n&&ne(K.AfterRenderHooksStart),this.executing=!0;for(let r of Lg)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&&ne(K.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[zn]??=[]).push(n),Zn(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=te({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?.[zn];t&&(this.view[zn]=t.filter(n=>n!==this))}};function hu(e,t){let n=t?.injector??b(Pe);return nn("NgAfterNextRender"),Y0(e,n,t,!0)}function Z0(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function Y0(e,t,n,r){let o=t.get(gu);o.impl??=t.get(Vg);let i=t.get(tn,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(de):null,a=t.get(Po,null,{optional:!0}),l=new Gs(o.impl,Z0(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(l),l}var mu=new O("",{factory:()=>{let e=b(Ue),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:!1,scheduler:null,injector:e}}});function jg(e,t,n){let r=e.get(mu);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 Q0(e,t){let n=e.get(mu);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t)}function K0(e,t){let n=e.get(mu);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)jg(e,r.animateFns)}function Op(e,t,n,r){let o=e?.[Pt]?.enter;t!==null&&o&&o.has(n.index)&&J0(r,o)}function kp(e,t,n,r){try{n.get(So)}catch{return r(!1)}let o=e?.[Pt];o?.enter?.has(t.index)&&Q0(n,o.enter.get(t.index).animateFns);let i=X0(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&&_n.add(e[Rt]),jg(n,()=>e_(e,t,o||void 0,i,r),o||void 0)}function X0(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 l=e[k].data[i].parent;for(;l;){if(l===t){r.set(i,s);break}l=l.parent}}return r}function e_(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 l of a.animateFns){let{promise:c}=l();i.push(c)}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),n_(e,s.running,o)}else Promise.allSettled(i).then(()=>{e&&_n.delete(e[Rt]),o(!0)})}else e&&_n.delete(e[Rt]),o(!1)}function oa(e,t,n){if(t.type&12){let o=e[t.index];if(lt(o))for(let i=fe;i<o.length;i++){let s=o[i];s[k].type===2&&t_(s,n)}}let r=t.child;for(;r;)oa(e,r,n),r=r.next}function t_(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[k].firstChild;for(;r;)oa(e,r,t),r=r.next}function n_(e,t,n){t.then(()=>{e[Pt]?.running===t&&(e[Pt].running=void 0,_n.delete(e[Rt])),n(!0)})}function Vr(e,t,n,r,o,i,s,a){if(o!=null){let l,c=!1;lt(o)?l=o:Jt(o)&&(c=!0,o=o[yt]);let p=Ie(o);e===0&&r!==null?(Op(a,r,i,n),s==null?Og(t,r,p):Kn(t,r,p,s||null,!0)):e===1&&r!==null?(Op(a,r,i,n),Kn(t,r,p,s||null,!0),W0(i,p,a)):e===2?(a?.[Pt]?.leave?.has(i.index)&&q0(i,p,a),Vo.delete(p),kp(a,i,n,h=>{if(Vo.has(p)){Vo.delete(p);return}kg(t,p,c,h)})):e===3&&(Vo.delete(p),kp(a,i,n,()=>{t.destroyNode(p)})),l!=null&&h_(t,e,n,l,i,r,s)}}function r_(e,t){Bg(e,t),t[yt]=null,t[We]=null}function o_(e,t,n,r,o,i){r[yt]=o,r[We]=t,sa(e,r,n,1,o,i)}function Bg(e,t){t[vt].changeDetectionScheduler?.notify(9),sa(e,t,t[se],2,null,null)}function i_(e){let t=e[Or];if(!t)return wc(e[k],e);for(;t;){let n=null;if(Jt(t))n=t[Or];else{let r=t[fe];r&&(n=r)}if(!n){for(;t&&!t[at]&&t!==e;)Jt(t)&&wc(t[k],t),t=t[ve];t===null&&(t=e),Jt(t)&&wc(t[k],t),n=t&&t[at]}t=n}}function yu(e,t){let n=e[Wn],r=n.indexOf(t);n.splice(r,1)}function ia(e,t){if(qn(t))return;let n=t[se];n.destroyNode&&sa(e,t,n,3,null,null),i_(t)}function wc(e,t){if(qn(t))return;let n=P(null);try{t[L]&=-129,t[L]|=256,t[Xe]&&An(t[Xe]),a_(e,t),s_(e,t),t[k].type===1&&t[se].destroy();let r=t[gn];if(r!==null&<(t[ve])){r!==t[ve]&&yu(r,t);let o=t[kt];o!==null&&o.detachView(e)}Lc(t)}finally{P(n)}}function s_(e,t){let n=e.cleanup,r=t[Ar];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[Ar]=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 a_(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 Xn)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],l=i[s+1];ne(K.LifecycleHookStart,a,l);try{l.call(a)}finally{ne(K.LifecycleHookEnd,a,l)}}else{ne(K.LifecycleHookStart,o,i);try{i.call(o)}finally{ne(K.LifecycleHookEnd,o,i)}}}}}function l_(e,t,n){if(t===null)throw new S(510,!1);return c_(e,t.parent,n)}function c_(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[yt];if(Xt(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Et.None||o===Et.Emulated)return null}return ct(r,n)}function u_(e,t,n){return f_(e,t,n)}function d_(e,t,n){return e.type&40?ct(e,n):null}var f_=d_,Rp;function vu(e,t,n,r){let o=l_(e,r,t),i=t[se],s=r.parent||t[We],a=u_(s,r,t);if(o!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Tp(i,o,n[l],a,!1);else Tp(i,o,n,a,!1);Rp!==void 0&&Rp(i,r,t,n,o)}function jo(e,t){if(t!==null){let n=t.type;if(n&3)return ct(t,e);if(n&4)return Hc(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return jo(e,r);{let o=e[t.index];return lt(o)?Hc(-1,o):Ie(o)}}else{if(n&128)return jo(e,t.next);if(n&32)return pu(t,e)()||Ie(e[t.index]);{let r=Hg(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Zt(e[Je]);return jo(o,r)}else return jo(e,t.next)}}}return null}function Hg(e,t){if(t!==null){let r=e[Je][We],o=t.projection;return r.projection[o]}return null}function Hc(e,t){let n=fe+e+1;if(n<t.length){let r=t[n],o=r[k].firstChild;if(o!==null)return jo(r,o)}return t[Gn]}function _u(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Ot];if(n.type===128){n=n.next;continue}let l=r[n.index],c=n.type;if(s&&t===0&&(l&&Hr(Ie(l),r),n.flags|=2),!du(n))if(c&8)_u(e,t,n.child,r,o,i,!1),Vr(t,e,a,o,l,n,i,r);else if(c&32){let p=pu(n,r),h;for(;h=p();)Vr(t,e,a,o,h,n,i,r);Vr(t,e,a,o,l,n,i,r)}else c&16?g_(e,t,r,n,o,i):Vr(t,e,a,o,l,n,i,r);n=s?n.projectionNext:n.next}}function sa(e,t,n,r,o,i){e.type===3?p_(n,r,t,o,i):_u(n,r,e.firstChild,t,o,i,!1)}function p_(e,t,n,r,o){let s=n[k].firstChild,a=s.next,l=Ie(n[s.index]),c=Ie(n[a.index]),p=a.index+1,h=n[p];if(t===1||t===0)r!==null&&(h&&h.hasChildNodes()?Kn(e,r,h,o,!0):(Kn(e,r,l,o,!0),Kn(e,r,c,o,!0)));else if(t===2){if(h||(h=document.createDocumentFragment(),n[p]=h),l&&l.parentNode===h)return;let y=l;for(;y!==null;){let m=y.nextSibling;if(h.appendChild(y),y===c)break;y=m}}}function g_(e,t,n,r,o,i){let s=n[Je],l=s[We].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let p=l[c];Vr(t,e,n[Ot],o,p,r,i,n)}else{let c=l,p=s[ve];hg(r)&&(c.flags|=128),_u(e,t,c,p,o,i,!0)}}function h_(e,t,n,r,o,i,s){let a=r[Gn],l=Ie(r);if(a!==l&&Vr(t,e,n,i,a,o,s),(r[L]&4)===0)for(let c=fe;c<r.length;c++){let p=r[c];sa(p[k],p,e,t,i,a)}}function m_(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 Cu(e,t,n,r,o,i,s,a,l,c,p){let h=me+r,y=h+o,m=y_(h,y),_=typeof c=="function"?c():c;return m[k]={type:e,blueprint:m,template:n,queries:null,viewQuery:a,declTNode:t,data:m.slice().fill(null,h),bindingStartIndex:h,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:l,consts:_,incompleteFirstPass:!1,ssrId:p}}function y_(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Te);return n}function v_(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Cu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function bu(e,t,n,r,o,i,s,a,l,c,p){let h=t.blueprint.slice();return h[yt]=o,h[L]=r|4|128|8|64|1024,(c!==null||e&&e[L]&2048)&&(h[L]|=2048),rc(h),h[ve]=h[pn]=e,h[ge]=n,h[vt]=s||e&&e[vt],h[se]=a||e&&e[se],h[Ot]=l||e&&e[Ot]||null,h[We]=i,h[Rt]=D0(),h[Nr]=p,h[Ql]=c,h[Je]=t.type==2?e[Je]:h,h}function __(e,t,n){let r=ct(t,e),o=v_(n),i=e[vt].rendererFactory,s=Du(e,bu(e,o,null,Ug(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Ug(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function $g(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 Du(e,t){return e[Or]?e[Yl][at]=t:e[Or]=t,e[Yl]=t,t}function f(e=1){zg(pe(),V(),_t()+e,!1)}function zg(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)}mn(n)}var Qo=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Qo||{});function er(e,t,n,r){let o=P(null);try{let[i,s,a]=e.inputs[n],l=null;(s&Qo.SignalBased)!==0&&(l=t[i][Ee]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,l,r,n,i):ng(t,l,i,r)}finally{P(o)}}function Gg(e,t,n,r,o){let i=_t(),s=r&2;try{mn(-1),s&&t.length>me&&zg(e,t,me,!1);let a=s?K.TemplateUpdateStart:K.TemplateCreateStart;ne(a,o,n),n(r,o)}finally{mn(i);let a=s?K.TemplateUpdateEnd:K.TemplateCreateEnd;ne(a,o,n)}}function Wg(e,t,n){x_(e,t,n),(n.flags&64)===64&&S_(e,t,n)}function Eu(e,t,n=ct){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 C_(e,t,n,r){let i=r.get(wg,Eg)||n===Et.ShadowDom||n===Et.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return b_(s),s}function b_(e){D_(e)}var D_=()=>null;function E_(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function qg(e,t,n,r,o,i){let s=t[k];if(wu(e,s,t,n,r)){Xt(e)&&w_(t,e.index);return}e.type&3&&(n=E_(n)),Zg(e,t,n,r,o,i)}function Zg(e,t,n,r,o,i){if(e.type&3){let s=ct(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function w_(e,t){let n=ut(t,e);n[L]&16||(n[L]|=64)}function x_(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Xt(n)&&__(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],l=Ho(t,e,s,n);if(Hr(l,t),i!==null&&A_(t,s-r,l,a,n,i),Ft(a)){let c=ut(n.index,t);c[ge]=Ho(t,e,s,n)}}}function S_(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=ip();try{mn(i);for(let a=r;a<o;a++){let l=e.data[a],c=t[a];ws(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&I_(l,c)}}finally{mn(-1),ws(s)}}function I_(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function M_(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];j0(t,i.selectors,!1)&&(r??=[],Ft(i)?r.unshift(i):r.push(i))}return r}function T_(e,t,n,r,o,i){let s=ct(e,t);N_(t[se],s,i,e.value,n,r,o)}function N_(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 A_(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let l=s[a],c=s[a+1];er(r,n,l,c)}}function Yg(e,t,n,r,o){let i=me+n,s=t[k],a=o(s,t,e,r,n);t[i]=a,Pr(e,!0);let l=e.type===2;return l?(Rg(t[se],a,e),(Qf()===0||ms(e))&&Hr(a,t),Kf()):Hr(a,t),Ms()&&(!l||!du(e))&&vu(s,t,a,e),e}function Qg(e){let t=e;return uc()?tp():(t=t.parent,Pr(t,!1)),t}function O_(e,t){let n=e[Ot];if(!n)return;let r;try{r=n.get(yn,null)}catch{r=null}r?.(t)}function wu(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let l=0;l<s.length;l+=2){let c=s[l],p=s[l+1],h=t.data[c];er(h,n[c],p,o),a=!0}if(i)for(let l of i){let c=n[l],p=t.data[l];er(p,c,r,o),a=!0}return a}function k_(e,t,n,r,o,i){let s=null,a=null,l=null,c=!1,p=e.directiveToIndex.get(r.type);if(typeof p=="number"?s=p:[s,a,l]=p,a!==null&&l!==null&&e.hostDirectiveInputs&&Object.hasOwn(e.hostDirectiveInputs,o)){let h=e.hostDirectiveInputs[o];for(let y=0;y<h.length;y+=2){let m=h[y];if(m>=a&&m<=l){let _=t.data[m],x=h[y+1];er(_,n[m],x,i),c=!0}else if(m>l)break}}return s!==null&&Object.hasOwn(r.inputs,o)&&(er(r,n[s],o,i),c=!0),c}function R_(e,t){let n=ut(t,e),r=n[k];P_(r,n);let o=n[yt];o!==null&&n[Nr]===null&&(n[Nr]=xg(o,n[Ot])),ne(K.ComponentStart);try{xu(r,n,n[ge])}finally{ne(K.ComponentEnd,n[ge])}}function P_(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function xu(e,t,n){Ss(t);try{let r=e.viewQuery;r!==null&&jc(1,r,n);let o=e.template;o!==null&&Gg(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[kt]?.finishViewCreation(e),e.staticContentQueries&&Sg(e,t),e.staticViewQueries&&jc(2,e.viewQuery,n);let i=e.components;i!==null&&F_(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[L]&=-5,Is()}}function F_(e,t){for(let n=0;n<t.length;n++)R_(e,t[n])}function aa(e,t,n,r){let o=P(null);try{let i=t.tView,a=e[L]&4096?4096:16,l=bu(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),c=e[t.index];l[gn]=c;let p=e[kt];return p!==null&&(l[kt]=p.createEmbeddedView(i)),xu(i,l,n),l}finally{P(o)}}function $o(e,t){return!t||t.firstChild===null||hg(e)}function zo(e,t,n,r,o=!1){if(e.type===3){let i=e.firstChild,s=i.next,a=Ie(t[i.index]),l=Ie(t[s.index]),c=a;for(;c!==null&&(r.push(c),c!==l);)c=c.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(lt(i)){let a=i[Gn];a!==i[yt]&&r.push(Ie(i)),i[L]&4||Kg(i,r),r.push(a)}else r.push(Ie(i));let s=n.type;if(s&8)zo(e,t,n.child,r);else if(s&32){let a=pu(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=Hg(t,n);if(Array.isArray(a))r.push(...a);else{let l=Zt(t[Je]);zo(l[k],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Kg(e,t){for(let n=fe;n<e.length;n++){let r=e[n],o=r[k].firstChild;o!==null&&zo(r[k],r,o,t)}}function Jg(e){if(e[zn]!==null){for(let t of e[zn])t.impl.addSequence(t);e[zn].length=0}}var Xg=[];function L_(e){return e[Xe]??V_(e)}function V_(e){let t=Xg.pop()??Object.create(B_);return t.lView=e,t}function j_(e){e.lView[Xe]!==e&&(e.lView=null,Xg.push(e))}var B_=U(j({},Tn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Zn(e.lView)},consumerOnSignalRead(){this.lView[Xe]=this}});function H_(e){let t=e[Xe]??Object.create(U_);return t.lView=e,t}var U_=U(j({},Tn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Zt(e.lView);for(;t&&!eh(t[k]);)t=Zt(t);t&&Cs(t)},consumerOnSignalRead(){this.lView[Xe]=this}});function eh(e){return e.type!==2}function th(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 $_=100;function nh(e,t=0){let r=e[vt].rendererFactory,o=!1;o||r.begin?.();try{z_(e,t)}finally{o||r.end?.()}}function z_(e,t){let n=dc();try{_o(!0),Uc(e,t);let r=0;for(;Rr(e);){if(r===$_)throw new S(103,!1);r++,Uc(e,1)}}finally{_o(n)}}function G_(e,t,n,r){if(qn(t))return;let o=t[L],i=!1,s=!1;Ss(t);let a=!0,l=null,c=null;i||(eh(e)?(c=L_(t),l=Nn(c)):Mi()===null?(a=!1,c=H_(t),l=Nn(c)):t[Xe]&&(An(t[Xe]),t[Xe]=null));try{rc(t),np(e.bindingStartIndex),n!==null&&Gg(e,t,n,2,r);let p=(o&3)===3;if(!i)if(p){let m=e.preOrderCheckHooks;m!==null&&Rs(t,m,null)}else{let m=e.preOrderHooks;m!==null&&Ps(t,m,0,null),Dc(t,0)}if(s||W_(t),th(t),rh(t,0),e.contentQueries!==null&&Sg(e,t),!i)if(p){let m=e.contentCheckHooks;m!==null&&Rs(t,m)}else{let m=e.contentHooks;m!==null&&Ps(t,m,1),Dc(t,1)}Z_(e,t);let h=e.components;h!==null&&ih(t,h,0);let y=e.viewQuery;if(y!==null&&jc(2,y,r),!i)if(p){let m=e.viewCheckHooks;m!==null&&Rs(t,m)}else{let m=e.viewHooks;m!==null&&Ps(t,m,2),Dc(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[hs]){for(let m of t[hs])m();t[hs]=null}i||(Jg(t),t[L]&=-73)}catch(p){throw i||Zn(t),p}finally{c!==null&&(hr(c,l),a&&j_(c)),Is()}}function rh(e,t){for(let n=yg(e);n!==null;n=vg(n))for(let r=fe;r<n.length;r++){let o=n[r];oh(o,t)}}function W_(e){for(let t=yg(e);t!==null;t=vg(t)){if(!(t[L]&2))continue;let n=t[Wn];for(let r=0;r<n.length;r++){let o=n[r];Cs(o)}}}function q_(e,t,n){ne(K.ComponentStart);let r=ut(t,e);try{oh(r,n)}finally{ne(K.ComponentEnd,r[ge])}}function oh(e,t){_s(e)&&Uc(e,t)}function Uc(e,t){let r=e[k],o=e[L],i=e[Xe],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&fo(i)),s||=!1,i&&(i.dirty=!1),e[L]&=-9217,s)G_(r,e,r.template,e[ge]);else if(o&8192){let a=P(null);try{th(e),rh(e,1);let l=r.components;l!==null&&ih(e,l,1),Jg(e)}finally{P(a)}}}function ih(e,t,n){for(let r=0;r<t.length;r++)q_(e,t[r],n)}function Z_(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)mn(~o);else{let i=o,s=n[++r],a=n[++r];op(s,i);let l=t[i];ne(K.HostBindingsUpdateStart,l);try{a(2,l)}finally{ne(K.HostBindingsUpdateEnd,l)}}}}finally{mn(-1)}}function Su(e,t){let n=dc()?64:1088;for(e[vt].changeDetectionScheduler?.notify(t);e;){e[L]|=n;let r=Zt(e);if(kr(e)&&!r)return e;e=r}return null}function sh(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function ah(e,t){let n=fe+t;if(n<e.length)return e[n]}function la(e,t,n,r=!0){let o=t[k];if(Y_(o,t,e,n),r){let s=Hc(n,e),a=t[se],l=a.parentNode(e[Gn]);l!==null&&o_(o,e[We],a,t,l,s)}let i=t[Nr];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function lh(e,t){let n=Go(e,t);return n!==void 0&&ia(n[k],n),n}function Go(e,t){if(e.length<=fe)return;let n=fe+t,r=e[n];if(r){let o=r[gn];o!==null&&o!==e&&yu(o,r),t>0&&(e[n-1][at]=r[at]);let i=wo(e,fe+t);r_(r[k],r);let s=i[kt];s!==null&&s.detachView(i[k]),r[ve]=null,r[at]=null,r[L]&=-129}return r}function Y_(e,t,n,r){let o=fe+r,i=n.length;r>0&&(n[o-1][at]=t),r<i-fe?(t[at]=n[o],zl(n,fe+r,t)):(n.push(t),t[at]=null),t[ve]=n;let s=t[gn];s!==null&&n!==s&&ch(s,t);let a=t[kt];a!==null&&a.insertView(e),bs(t),t[L]|=128}function ch(e,t){let n=e[Wn],r=t[ve];if(Jt(r))e[L]|=2;else{let o=r[ve][Je];t[Je]!==o&&(e[L]|=2)}n===null?e[Wn]=[t]:n.push(t)}var Cn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[k];return zo(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[ge]}set context(t){this._lView[ge]=t}get destroyed(){return qn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ve];if(lt(t)){let n=t[Mo],r=n?n.indexOf(this):-1;r>-1&&(Go(t,r),wo(n,r))}this._attachedToViewContainer=!1}ia(this._lView[k],this._lView)}onDestroy(t){Ds(this._lView,t)}markForCheck(){Su(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[L]&=-129}reattach(){bs(this._lView),this._lView[L]|=128}detectChanges(){this._lView[L]|=1024,nh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=kr(this._lView),n=this._lView[gn];n!==null&&!t&&yu(n,this._lView),Bg(this._lView[k],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t;let n=kr(this._lView),r=this._lView[gn];r!==null&&!n&&ch(r,this._lView),bs(this._lView)}};function Iu(e){return Rr(e._lView)||!!(e._lView[L]&64)}function Mu(e){Cs(e._lView)}var Ur=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Q_;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 Cn(i)}}return e})();function Q_(){return Tu(Me(),V())}function Tu(e,t){return e.type&4?new Ur(t,e,zr(e,t)):null}function ca(e,t,n,r,o){let i=e.data[t];if(i===null)i=K_(e,t,n,r,o),rp()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=ep();i.injectorIndex=s===null?-1:s.injectorIndex}return Pr(i,!0),i}function K_(e,t,n,r,o){let i=cc(),s=uc(),a=s?i:i&&i.parent,l=e.data[t]=X_(e,a,n,t,r,o);return J_(e,l,i,s),l}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 X_(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Xf()&&(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:mc(),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 eC(e){let t=e[Kl]??[],r=e[ve][se],o=[];for(let i of t)i.data[Dg]!==void 0?o.push(i):tC(i,r);e[Kl]=o}function tC(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[bg];for(;n<o;){let i=r.nextSibling;kg(t,r,!1),r=i,n++}}}var nC=()=>null,rC=()=>null;function $c(e,t){return nC(e,t)}function uh(e,t,n){return rC(e,t,n)}var dh=class{},tr=class{},Bt=class{destroyNode=null;static __NG_ELEMENT_ID__=()=>oC()};function oC(){let e=V(),t=Me(),n=ut(t.index,e);return(Jt(n)?n:e)[se]}var fh=(()=>{class e{static \u0275prov=te({token:e,providedIn:"root",factory:()=>null})}return e})();function ph(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 Nu(e,t,n){return e[t]=n}function iC(e,t){return e[t]}function et(e,t,n){if(n===Te)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Au(e,t,n,r){let o=et(e,t,n);return et(e,t+1,r)||o}function sC(e,t,n,r,o){let i=Au(e,t,n,r);return et(e,t+2,o)||i}function Jn(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&w0(o,i);let s=Xt(e)?ut(e.index,t):t;Su(s,5);let a=t[ge],l=Pp(t,a,n,o),c=r.__ngNextListenerFn__;for(;c;)l=Pp(t,a,c,o)&&l,c=c.__ngNextListenerFn__;return l}}function Pp(e,t,n,r){let o=P(null);try{return ne(K.OutputStart,t,n),n(r)!==!1}catch(i){return O_(e,i),!1}finally{ne(K.OutputEnd,t,n),P(o)}}function Ou(e,t,n,r,o,i,s,a){let l=ms(e),c=!1,p=null;if(!r&&l&&(p=lC(t,n,i,e.index)),p!==null){let h=p.__ngLastListenerFn__||p;h.__ngNextListenerFn__=s,p.__ngLastListenerFn__=s,c=!0}else{let h=ct(e,n),y=r?r(h):h;S0(n,y,i,a),r||(a.__ngNativeEl__=h);let m=o.listen(y,i,a);if(!aC(i)){let _=r?x=>r(Ie(x[e.index])):e.index;gh(_,t,n,i,a,m,!1)}}return c}function aC(e){return e.startsWith("animation")||e.startsWith("transition")}function lC(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[Ar],l=o[i+2];return a&&a.length>l?a[l]:null}typeof s=="string"&&(i+=2)}return null}function gh(e,t,n,r,o,i,s){let a=t.firstCreatePass?ic(t):null,l=oc(n),c=l.length;l.push(o,i),a&&a.push(r,e,c,(c+1)*(s?-1:1))}function Fp(e,t,n,r,o){let i=null,s=null,a=null,l=!1,c=e.directiveToIndex.get(n.type);if(typeof c=="number"?i=c:[i,s,a]=c,s!==null&&a!==null&&e.hostDirectiveOutputs&&Object.hasOwn(e.hostDirectiveOutputs,r)){let p=e.hostDirectiveOutputs[r];for(let h=0;h<p.length;h+=2){let y=p[h];if(y>=s&&y<=a)l=!0,qs(e,t,y,p[h+1],r,o);else if(y>a)break}}return Object.hasOwn(n.outputs,r)&&(l=!0,qs(e,t,i,r,r,o)),l}function qs(e,t,n,r,o,i){let s=t[n],a=t[k],c=a.data[n].outputs[r],h=s[c].subscribe(i);gh(e.index,a,t,o,i,h,!0)}function z(){cC()}function cC(){let e=V(),t=pe(),n=Me();if(t.firstCreatePass&&dC(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(){uC()}function uC(){let e=V(),t=pe(),n=Fr();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 ct(this.tNode,this.lView)}get descriptor(){return`<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];Fp(this.tNode,this.lView,r,t,Jn(this.tNode,this.lView,n))}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];Fp(this.tNode,this.lView,r,n,Jn(this.tNode,this.lView,t))}listenToDom(t,n){Ou(this.tNode,this.tView,this.lView,void 0,this.lView[se],t,n,Jn(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 l=this.lView[a],c=this.tView.data[a];(!r||r(Vp(l,c,t)))&&(er(c,l,t,n),s=!0)}if(i)for(let a=0;a<i.length;a+=2){let l=i[a];if(l===this.tNode.controlDirectiveIndex)continue;let c=this.lView[l],p=i[a+1],h=this.tView.data[l];(!r||r(Vp(c,h,t)))&&(er(h,c,p,n),s=!0)}return s}setCustomControlModelInput(t){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";k_(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=Lp(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 l=i.inputs[a+1]||i.inputs[a];n[l]=!0}let s=Lp(i.directive);s!==null&&r.push(...s)}}}return n}};function Lp(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function Vp(e,t,n){if(!t.inputs||!Object.hasOwn(t.inputs,n))return;let[r,o]=t.inputs[n];if((o&Qo.SignalBased)!==0){let s=e[r][Ee];return s.value===ta?void 0:s.value}return e[r]}function dC(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}fC(e,t)}function fC(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(jp(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(jp(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 l=i[a];for(let c=0;c<s.length;c+=2){let p=s[c];if(l===p)for(let h of t.directiveToIndex.values()){if(!Array.isArray(h))continue;let[y,m,_]=h;if(l>=m&&l<=_)return t.flags|=o,t.customControlIndex=y,!0}}}return!1};if(n("value",1024)||n("checked",2048))return}}function jp(e,t){return pC(e,t)&&gC(e,t+"Change")}function pC(e,t){return t in e.inputs}function gC(e,t){return t in e.outputs}var zc=Symbol("BINDING");var ir=new O("");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=ls(o,a);else if(i==2){let l=a,c=t[++s];r=ls(r,l+": "+c+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function J(e,t=0){let n=V();if(n===null)return $(e,t);let r=Me();return fg(r,n,Se(e),t)}function hC(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,l=null,c=null;for(let p of s)if(p.resolveHostDirectives!==null){[a,l,c]=p.resolveHostDirectives(s);break}vC(e,t,n,a,i,l,c)}i!==null&&r!==null&&mC(n,r,i)}function mC(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 S(-301,!1);r.push(t[o],i)}}function yC(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function vC(e,t,n,r,o,i,s){let a=r.length,l=null;for(let y=0;y<a;y++){let m=r[y];l===null&&Ft(m)&&(l=m,yC(e,n,y)),Pc(Us(n,t),e,m.type)}wC(n,e.data.length,a),l?.viewProvidersResolver&&l.viewProvidersResolver(l);for(let y=0;y<a;y++){let m=r[y];m.providersResolver&&m.providersResolver(m)}let c=!1,p=!1,h=$g(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let y=0;y<a;y++){let m=r[y];if(n.mergedAttrs=Br(n.mergedAttrs,m.hostAttrs),CC(e,n,t,h,m),EC(h,m,o),s!==null&&s.has(m)){let[x,R]=s.get(m);n.directiveToIndex.set(m.type,[h,x+n.directiveStart,R+n.directiveStart])}else(i===null||!i.has(m))&&n.directiveToIndex.set(m.type,h);m.contentQueries!==null&&(n.flags|=4),(m.hostBindings!==null||m.hostAttrs!==null||m.hostVars!==0)&&(n.flags|=64);let _=m.type.prototype;!c&&(_.ngOnChanges||_.ngOnInit||_.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),c=!0),!p&&(_.ngOnChanges||_.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),p=!0),h++}_C(e,n,i)}function _C(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Bp(0,t,o,r),Bp(1,t,o,r),Up(t,r,!1);else{let i=n.get(o);Hp(0,t,i,r),Hp(1,t,i,r),Up(t,r,!0)}}}function Bp(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),hh(t,i)}}function Hp(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),hh(t,s)}}function hh(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Up(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||fu(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&Object.hasOwn(o,l)){let c=o[l];for(let p of c)if(p===t){s??=[],s.push(l,r[a+1]);break}}else if(n&&Object.hasOwn(i,l)){let c=i[l];for(let p=0;p<c.length;p+=2)if(c[p]===t){s??=[],s.push(c[p+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function CC(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=un(o.type,!0)),s=new Xn(i,Ft(o),J,null);e.blueprint[r]=s,n[r]=s,bC(e,t,r,$g(e,n,o.hostVars,Te),o)}function bC(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;DC(s)!=a&&s.push(a),s.push(n,r,i)}}function DC(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function EC(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 wC(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function mh(e,t,n,r,o,i,s,a){let l=t[k],c=l.consts,p=Lt(c,s),h=ca(l,e,n,r,p);return i&&hC(l,t,h,Lt(c,a),o),h.mergedAttrs=Br(h.mergedAttrs,h.attrs),h.attrs!==null&&Ys(h,h.attrs,!1),h.mergedAttrs!==null&&Ys(h,h.mergedAttrs,!0),l.queries!==null&&l.queries.elementStart(l,h),h}function yh(e,t){r0(e,t),Jl(t)&&e.queries.elementEnd(t)}function xC(e,t,n,r,o,i){let s=t.consts,a=Lt(s,o),l=ca(t,e,n,r,a);if(l.mergedAttrs=Br(l.mergedAttrs,l.attrs),i!=null){let c=Lt(s,i);l.localNames=[];for(let p=0;p<c.length;p+=2)l.localNames.push(c[p],-1)}return l.attrs!==null&&Ys(l,l.attrs,!1),l.mergedAttrs!==null&&Ys(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}var vh=typeof ShadowRoot<"u",SC=typeof Document<"u";function IC(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Qo.SignalBased)!==0};return o&&(i.transform=o),i})}function MC(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function TC(e,t,n){let r=t instanceof Ue?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Ws(n,r):n}function NC(e){let t=e.get(tr,null);if(t===null)throw new S(407,!1);let n=e.get(fh,null),r=e.get(mt,null),o=e.get(tn,null,{optional:!0});return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function AC(e,t,n){let r=_h(e);return Ag(t,r,r==="svg"?Xl:r==="math"?zf:n)}function OC(e){if((e&&"localName"in e&&typeof e.localName=="string"?e.localName:e?.tagName)?.toLowerCase()==="script")throw new S(905,!1)}function _h(e){return(e.selectors[0][0]||"div").toLowerCase()}var nr=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=IC(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=MC(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=$0(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s,a){ne(K.DynamicComponentStart);let l=P(null);try{let c=this.componentDef,p=TC(c,o||this.ngModule,t),h=NC(p),y=h.tracingService;return y&&y.componentCreate?y.componentCreate(ph(c),()=>this.createComponentRef(h,p,n,r,i,s,a)):this.createComponentRef(h,p,n,r,i,s,a)}finally{P(l)}}createComponentRef(t,n,r,o,i,s,a){let l=this.componentDef,c=kC(o,l,s,i),p=t.rendererFactory.createRenderer(null,l),h=o?C_(p,o,l.encapsulation,n):AC(l,p,a??null);OC(h);let y=n.get(ir,null),m=RC(h,()=>n.get(Fe,null)??Cg());y&&y.addHost(m);let _=s?.some($p)||i?.some(F=>typeof F!="function"&&F.bindings.some($p)),x=bu(null,c,null,512|Ug(l),null,null,t,p,n,null,xg(h,n,!0));y&&vh&&m instanceof ShadowRoot&&Ds(x,()=>{y.removeHost(m)}),x[me]=h,Ss(x);let R=null;try{let F=mh(me,x,2,"#host",()=>c.directiveRegistry,!0,0);Rg(p,h,F),Hr(h,x),Wg(c,x,F),Ig(c,F,x),yh(c,F),r!==void 0&&FC(F,this.ngContentSelectors,r),R=ut(F.index,x),x[ge]=R[ge],xu(c,x,null)}catch(F){throw R!==null&&Lc(R),Lc(x),F}finally{ne(K.DynamicComponentEnd),Is()}return new Qs(this.componentType,x,!!_)}};function kC(e,t,n,r){let o=e?["ng-version","22.1.6"]:z0(t.selectors[0]),i=null,s=null,a=0;if(n)for(let p of n)a+=p[zc].requiredVars,p.create&&(p.targetIdx=0,(i??=[]).push(p)),p.update&&(p.targetIdx=0,(s??=[]).push(p));if(r)for(let p=0;p<r.length;p++){let h=r[p];if(typeof h!="function")for(let y of h.bindings){a+=y[zc].requiredVars;let m=p+1;y.create&&(y.targetIdx=m,(i??=[]).push(y)),y.update&&(y.targetIdx=m,(s??=[]).push(y))}}let l=[t];if(r)for(let p of r){let h=typeof p=="function"?p:p.type,y=Bl(h);l.push(y)}return Cu(0,null,PC(i,s),1,a,l,null,null,null,[o],null)}function RC(e,t){let n=e.getRootNode?.();return SC&&n instanceof Document?n.head:n&&vh&&n instanceof ShadowRoot?n:t().head}function PC(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 $p(e){let t=e[zc].kind;return t==="input"||t==="twoWay"}var Qs=class extends dh{_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[k],me),this.location=zr(this._tNode,n),this.instance=ut(this._tNode.index,n)[ge],this.hostView=this.changeDetectorRef=new Cn(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=wu(r,o[k],o,t,n);this.previousInputValues.set(t,n);let s=ut(r.index,o);Su(s,1)}get injector(){return new vn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function FC(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 Ko=(()=>{class e{static __NG_ELEMENT_ID__=LC}return e})();function LC(){let e=Me();return Ch(e,V())}var Gc=class e extends Ko{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return zr(this._hostTNode,this._hostLView)}get injector(){return new vn(this._hostTNode,this._hostLView)}get parentInjector(){let t=lu(this._hostTNode,this._hostLView);if(sg(t)){let n=Bs(t,this._hostLView),r=js(t),o=n[k].data[r+8];return new vn(o,n)}else return new vn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=zp(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-fe}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=$c(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,$o(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let l,c=n||{};l=c.index,r=c.injector,o=c.projectableNodes,i=c.environmentInjector||c.ngModuleRef,s=c.directives,a=c.bindings;let p=new nr(Qt(t)),h=r||this.parentInjector;if(!i&&p.ngModule==null){let F=this.parentInjector.get(Ue,null);F&&(i=F)}let y=Qt(p.componentType??{}),m=$c(this._lContainer,y?.id??null),_=m?.firstChild??null,x=p.create(h,o,_,i,s,a,this._getHostElementNamespace());return this.insertImpl(x.hostView,l,$o(this._hostTNode,m)),x}_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(Wf(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=o[ve],c=new e(l,l[We],l[ve]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return la(s,o,i,r),t.attachToViewContainerRef(),zl(xc(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=zp(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Go(this._lContainer,n);r&&(wo(xc(this._lContainer),n),ia(r[k],r))}detach(t){let n=this._adjustIndex(t,-1),r=Go(this._lContainer,n);return r&&wo(xc(this._lContainer),n)!=null?new Cn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function zp(e){return e[Mo]}function xc(e){return e[Mo]||(e[Mo]=[])}function Ch(e,t){let n,r=t[e.index];return lt(r)?n=r:(n=sh(r,t,null,e),t[e.index]=n,Du(t,n)),jC(n,t,e,r),new Gc(n,e,t)}function VC(e,t){let n=e[se],r=n.createComment(""),o=ct(t,e),i=n.parentNode(o);return Kn(n,i,r,n.nextSibling(o),!1),r}var jC=UC,BC=()=>!1;function HC(e,t,n){return BC(e,t,n)}function UC(e,t,n,r){if(e[Gn])return;let o;n.type&8?o=Ie(r):o=VC(t,n),e[Gn]=o}var Wc=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},qc=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++)ku(t,n).matches!==null&&this.queries[n].setDirty()}},Zc=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=QC(t):this.predicate=t}},Yc=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)}},Qc=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,$C(n,i)),this.matchTNodeWithReadOption(t,n,Fs(n,t,i,!1,!1))}else r===Ur?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===xt||o===Ko||o===Ur&&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 $C(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 zC(e,t){return e.type&11?zr(e,t):e.type&4?Tu(e,t):null}function GC(e,t,n,r){return n===-1?zC(t,e):n===-2?WC(e,t,r):Ho(e,e[k],n,t)}function WC(e,t,n){if(n===xt)return zr(t,e);if(n===Ur)return Tu(t,e);if(n===Ko)return Ch(t,e)}function bh(e,t,n,r){let o=t[kt].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let c=s[l];if(c<0)a.push(null);else{let p=i[c];a.push(GC(t,p,s[l+1],n.metadata.read))}}o.matches=a}return o.matches}function Kc(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=bh(e,t,o,n);for(let a=0;a<i.length;a+=2){let l=i[a];if(l>0)r.push(s[a/2]);else{let c=i[a+1],p=t[-l];for(let h=fe;h<p.length;h++){let y=p[h];y[gn]===y[ve]&&Kc(y[k],y,c,r)}if(p[Wn]!==null){let h=p[Wn];for(let y=0;y<h.length;y++){let m=h[y];Kc(m[k],m,c,r)}}}}}return r}function qC(e,t){return e[kt].queries[t].queryList}function ZC(e,t,n){let r=new $s((n&4)===4);return Yf(e,t,r,r.destroy),(t[kt]??=new qc).queries.push(new Wc(r))-1}function YC(e,t,n){let r=pe();return r.firstCreatePass&&(KC(r,new Zc(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),ZC(r,V(),t)}function QC(e){return e.split(",").map(t=>t.trim())}function KC(e,t,n){e.queries===null&&(e.queries=new Yc),e.queries.track(new Qc(t,n))}function ku(e,t){return e.queries.getByIndex(t)}function JC(e,t){let n=e[k],r=ku(n,t);return r.crossesNgTemplate?Kc(n,e,t,[]):bh(n,e,r,t)}function Gr(e){return!!e&&typeof e.then=="function"}function Ru(e){return!!e&&typeof e.subscribe=="function"}var Wo=class{};var qo=class extends Wo{injector;instance=null;constructor(t){super();let n=new Bn([...t.providers,{provide:Wo,useValue:this}],t.parent||Mr(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Dh(e,t,n=null){return new qo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var XC=(()=>{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=Wl(!1,n.type),o=r.length>0?Dh([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=te({token:e,providedIn:"environment",factory:()=>new e($(Ue))})}return e})();function rn(e){return Yo(()=>{let t=Eh(e),n=U(j({},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(XC).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Et.Emulated,styles:e.styles||He,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&nn("NgStandalone"),wh(n);let r=e.dependencies;return n.directiveDefs=Gp(r,eb),n.pipeDefs=Gp(r,Af),n.id=rb(n),n})}function eb(e){return Qt(e)||Bl(e)}function bn(e){return Yo(()=>({type:e.type,bootstrap:e.bootstrap||He,declarations:e.declarations||He,imports:e.imports||He,exports:e.exports||He,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function tb(e,t){if(e==null)return fn;let n={};for(let r in e)if(Object.hasOwn(e,r)){let o=e[r],i,s,a,l;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,l=o[3]||null):(i=o,s=o,a=Qo.None,l=null),n[i]=[r,a,l],t[i]=s}return n}function nb(e){if(e==null)return fn;let t={};for(let n in e)Object.hasOwn(e,n)&&(t[e[n]]=n);return t}function _e(e){return Yo(()=>{let t=Eh(e);return wh(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 Eh(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||fn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||He,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:tb(e.inputs,t),outputs:nb(e.outputs),debugInfo:null}}function wh(e){e.features?.forEach(t=>t(e))}function Gp(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 rb(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 xh=new O("");var Pu=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=b(xh,{optional:!0})??[];injector=b(Pe);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Tr(this.injector,o);if(Gr(i))n.push(i);else if(Ru(i)){let s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});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 Fu(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r)},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r)},passThroughInput:e}}}function ob(e){return Object.getPrototypeOf(e.prototype).constructor}function ze(e){let t=ob(e.type),n=!0,r=[e];for(;t&&t!==Function.prototype&&t!==Object.prototype;){let o,i=Object.hasOwn(t,Do)?t[Do]:void 0,s=Object.hasOwn(t,Eo)?t[Eo]:void 0;if(Ft(e))o=i??s;else{if(i)throw new S(903,!1);o=s}if(o){if(n){r.push(o);let l=e;l.inputs=Sc(e.inputs),l.declaredInputs=Sc(e.declaredInputs),l.outputs=Sc(e.outputs);let c=o.hostBindings;c&&cb(e,c);let p=o.viewQuery,h=o.contentQueries;if(p&&ab(e,p),h&&lb(e,h),ib(e,o),Nf(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 l=0;l<a.length;l++){let c=a[l];c&&c.ngInherit&&c(e),c===ze&&(n=!1)}}t=Object.getPrototypeOf(t)}sb(r)}function ib(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 sb(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=Br(o.hostAttrs,n=Br(n,o.hostAttrs))}}function Sc(e){return e===fn?{}:e===He?[]:e}function ab(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function lb(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function cb(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function ub(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Br(e.mergedAttrs,e.attrs);let p=e.tView=Cu(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),p.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Pr(e,!1);let l=db(n,t,e,r);Ms()&&vu(n,t,l,e),Hr(l,t);let c=sh(l,t,l,e);t[r+me]=c,Du(t,c),HC(c,e,t)}function Ks(e,t,n,r,o,i,s,a,l,c,p){let h=n+me,y;if(t.firstCreatePass){if(y=ca(t,h,4,s||null,a||null),c!=null){let m=Lt(t.consts,c);y.localNames=[];for(let _=0;_<m.length;_+=2)y.localNames.push(m[_],-1)}}else y=t.data[h];return ub(y,e,t,n,r,o,i,l),c!=null&&Eu(e,y,p),y}var db=fb;function fb(e,t,n,r){return Ts(!0),t[se].createComment("")}var Lu=new O("");var Sh=new O("");function Ih(){ol(()=>{let e="";throw new S(600,e)})}var pb=10;var Dn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=b(yn);afterRenderManager=b(gu);zonelessEnabled=b(Fo);rootEffectScheduler=b(As);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ke;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=b(Yn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(xe(n=>!n))}constructor(){b(tn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=b(Ue);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Pe.NULL){return this._injector.get(De).run(()=>{if(ne(K.BootstrapComponentStart),!this._injector.get(Pu).done){let F="";throw new S(405,F)}let a=Qt(n),l=this._injector.get(Wo),c=new nr(a,l);this.componentTypes.push(n);let{hostElement:p,directives:h,bindings:y}=gb(r),m=p||c.selector,_=c.create(o,[],m,l.injector,h,y),x=_.location.nativeElement,R=_.injector.get(Lu,null);return R?.registerApplication(x),_.onDestroy(()=>{this.detachView(_.hostView),Bo(this.components,_),R?.unregisterApplication(x)}),this._loadComponent(_),ne(K.BootstrapComponentEnd,_),_})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){ne(K.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(ra.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw ne(K.ChangeDetectionEnd),new S(101,!1);let n=P(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,P(n),this.afterTick.next(),ne(K.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(tr,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<pb;){ne(K.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{ne(K.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&&!Rr(o))continue;let i=r&&!this.zonelessEnabled?0:1;nh(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})=>Rr(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;Bo(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(Sh,[]).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),()=>Bo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new S(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 gb(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function Bo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function tt(e,t,n,r){let o=V(),i=hn();if(et(o,i,t)){let s=pe(),a=Fr();T_(a,o,e,t,n,r)}return tt}var Jc=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 Ic(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function hb(e,t,n,r){let o,i,s=0,a=e.length-1,l=void 0;if(Array.isArray(t)){P(r);let c=t.length-1;for(P(null);s<=a&&s<=c;){let p=e.at(s),h=t[s],y=Ic(s,p,s,h,n);if(y!==0){y<0&&e.updateValue(s,h),s++;continue}let m=e.at(a),_=t[c],x=Ic(a,m,c,_,n);if(x!==0){x<0&&e.updateValue(a,_),a--,c--;continue}let R=n(s,p),F=n(a,m),ce=n(s,h);if(Object.is(ce,F)){let Qe=n(c,_);Object.is(Qe,R)?(e.swap(s,a),e.updateValue(a,_),c--,a--):e.move(a,s),e.updateValue(s,h),s++;continue}if(o??=new Js,i??=qp(e,s,a,n),Xc(e,o,s,ce))e.updateValue(s,h),s++,a++;else if(i.has(ce))o.set(R,e.detach(s)),a--;else{let Qe=e.create(s,t[s]);e.attach(s,Qe),s++,a++}}for(;s<=c;)Wp(e,o,n,s,t[s]),s++}else if(t!=null){P(r);let c=t[Symbol.iterator]();P(null);let p=c.next();for(;!p.done&&s<=a;){let h=e.at(s),y=p.value,m=Ic(s,h,s,y,n);if(m!==0)m<0&&e.updateValue(s,y),s++,p=c.next();else{o??=new Js,i??=qp(e,s,a,n);let _=n(s,y);if(Xc(e,o,s,_))e.updateValue(s,y),s++,a++,p=c.next();else if(!i.has(_))e.attach(s,e.create(s,y)),s++,a++,p=c.next();else{let x=n(s,h);o.set(x,e.detach(s)),a--}}}for(;!p.done;)Wp(e,o,n,e.length,p.value),p=c.next()}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(c=>{e.destroy(c)})}function Xc(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Wp(e,t,n,r,o){if(Xc(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function qp(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 l=V(),c=pe(),p=Lt(c.consts,i);return Ks(l,c,e,t,n,r,o,p,256,s,a),Vu}function Vu(e,t,n,r,o,i,s,a){nn("NgControlFlow");let l=V(),c=pe(),p=Lt(c.consts,i);return Ks(l,c,e,t,n,r,o,p,512,s,a),Vu}function E(e,t){nn("NgControlFlow");let n=V(),r=hn(),o=n[r]!==Te?n[r]:-1,i=o!==-1?Xs(n,me+o):void 0,s=0;if(et(n,r,e)){let a=P(null);try{if(i!==void 0&&lh(i,s),e!==-1){let l=me+e,c=Xs(n,l),p=ru(n[k],l),h=uh(c,p,n),y=aa(n,p,t,{dehydratedView:h});la(c,y,s,$o(p,h))}}finally{P(a)}}else if(i!==void 0){let a=ah(i,s);a!==void 0&&(a[ge]=t)}}var eu=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-fe}};function En(e){return e}function Jo(e,t){return t}var tu=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Z(e,t,n,r,o,i,s,a,l,c,p,h,y){nn("NgControlFlow");let m=V(),_=pe(),x=l!==void 0,R=V(),F=a?s.bind(R[Je][ge]):s,ce=new tu(x,F);R[me+e]=ce,Ks(m,_,e+1,t,n,r,o,Lt(_.consts,i),256),x&&Ks(m,_,e+2,l,c,p,h,Lt(_.consts,y),512)}var nu=class extends Jc{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-fe}at(t){return this.getLView(t)[ge].$implicit}attach(t,n){let r=n[Nr];this.needsIndexUpdate||=t!==this.length,la(this.lContainer,n,t,$o(this.templateTNode,r)),mb(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,yb(this.lContainer,t),vb(this.lContainer,t)}create(t,n){let r=$c(this.lContainer,this.templateTNode.tView.ssrId);return aa(this.hostLView,this.templateTNode,new eu(this.lContainer,n,t),{dehydratedView:r})}destroy(t){ia(t[k],t)}updateValue(t,n){this.getLView(t)[ge].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[ge].$index=t}getLView(t){return _b(this.lContainer,t)}};function Y(e){let t=P(null),n=_t();try{let r=V(),o=r[k],i=r[n],s=n+1,a=Xs(r,s);if(i.liveCollection===void 0){let c=ru(o,s);i.liveCollection=new nu(a,r,c)}else i.liveCollection.reset();let l=i.liveCollection;if(hb(l,e,i.trackByFn,t),l.updateIndexes(),i.hasEmptyBlock){let c=hn(),p=l.length===0;if(et(r,c,p)){let h=n+2,y=Xs(r,h);if(p){let m=ru(o,h),_=uh(y,m,r),x=aa(r,m,void 0,{dehydratedView:_});la(y,x,0,$o(m,_))}else o.firstUpdatePass&&eC(y),lh(y,0)}}}finally{P(t)}}function Xs(e,t){return e[t]}function mb(e,t){if(e.length<=fe)return;let n=fe+t,r=e[n],o=r?r[Pt]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Ot];K0(i,o),_n.delete(r[Rt]),o.detachedLeaveAnimationFns=void 0}}function yb(e,t){if(e.length<=fe)return;let n=fe+t,r=e[n],o=r?r[Pt]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function vb(e,t){return Go(e,t)}function _b(e,t){return ah(e,t)}function ru(e,t){return vs(e,t)}function w(e,t,n){let r=V(),o=hn();if(et(r,o,t)){let i=pe(),s=Fr();qg(s,r,e,t,r[se],n)}return w}function ou(e,t,n,r,o){wu(t,e,n,o?"class":"style",r)}function d(e,t,n,r){let o=V(),i=o[k],s=e+me,a=i.firstCreatePass?mh(s,o,2,t,M_,Jf(),n,r):i.data[s];if(Xt(a)){let l=o[vt].tracingService;if(l&&l.componentCreate){let c=i.data[a.directiveStart+a.componentOffset];return l.componentCreate(ph(c),()=>(Zp(e,t,o,a,r),d))}}return Zp(e,t,o,a,r),d}function Zp(e,t,n,r,o){if(Yg(r,n,e,t,Mh),ms(r)){let i=n[k];Wg(i,n,r),Ig(i,r,n)}o!=null&&Eu(n,r)}function u(){let e=pe(),t=Me(),n=Qg(t);return e.firstCreatePass&&yh(e,n),ac(n)&&lc(),sc(),n.classesWithoutHost!=null&&i0(n)&&ou(e,n,V(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&s0(n)&&ou(e,n,V(),n.stylesWithoutHost,!1),u}function Ce(e,t,n,r){return d(e,t,n,r),u(),Ce}function on(e,t,n,r){let o=V(),i=o[k],s=e+me,a=i.firstCreatePass?xC(s,i,2,t,n,r):i.data[s];return Yg(a,o,e,t,Mh),r!=null&&Eu(o,a),on}function wn(){let e=Me(),t=Qg(e);return ac(t)&&lc(),sc(),wn}var Mh=(e,t,n,r,o)=>(Ts(!0),Ag(t[se],r,mc()));function B(){return V()}function da(e,t,n){let r=V(),o=hn();if(et(r,o,t)){let i=pe(),s=Fr();Zg(s,r,e,t,r[se],n)}return da}var Lo=void 0;function Cb(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var bb=["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"]],Lo,[["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"]],Lo,[["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}",Lo,Lo,Lo],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Cb],Mc=Object.create(null);function qe(e){let t=Db(e),n=Yp(t);if(n)return n;let r=t.split("-")[0];if(n=Yp(r),n)return n;if(r==="en")return bb;throw new S(701,!1)}function Yp(e){if(!(e in Mc)){let t=Un.ng&&Un.ng.common&&Un.ng.common.locales&&Un.ng.common.locales[e];return t!==void 0&&(Mc[e]=t),t}return Mc[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 Db(e){return e.toLowerCase().replace(/_/g,"-")}var Xo="en-US";var Eb=Xo;function Th(e){typeof e=="string"&&(Eb=e.toLowerCase().replace(/_/g,"-"))}function N(e,t,n){let r=V(),o=pe(),i=Me();return Nh(o,r,r[se],i,e,t,n),N}function Wr(e,t,n){let r=V(),o=pe(),i=Me();return(i.type&3||n)&&Ou(i,o,r,n,r[se],e,t,Jn(i,r,t)),Wr}function Nh(e,t,n,r,o,i,s){let a=!0,l=null;if((r.type&3||s)&&(l??=Jn(r,t,i),Ou(r,e,t,s,n,o,i,l)&&(a=!1)),a){let c=r.outputs?.[o],p=r.hostDirectiveOutputs?.[o];if(p&&p.length)for(let h=0;h<p.length;h+=2){let y=p[h],m=p[h+1];l??=Jn(r,t,i),qs(r,t,y,m,o,l)}if(c&&c.length)for(let h of c)l??=Jn(r,t,i),qs(r,t,h,o,o,l)}}function v(e=1){return up(e)}function fa(e,t,n){return YC(e,t,n),fa}function ju(e){let t=V(),n=pe(),r=pc();xs(r+1);let o=ku(n,r);if(e.dirty&&Gf(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=JC(t,r);e.reset(i,_0),e.notifyOnChanges()}return!0}return!1}function Bu(){return qC(V(),pc())}function ks(e,t){return e<<17|t<<2}function rr(e){return e>>17&32767}function wb(e){return(e&2)==2}function xb(e,t){return e&131071|t<<17}function iu(e){return e|2}function $r(e){return(e&131068)>>2}function Tc(e,t){return e&-131069|t<<2}function Sb(e){return(e&1)===1}function su(e){return e|1}function Ib(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=rr(s),l=$r(s);e[r]=n;let c=!1,p;if(Array.isArray(n)){let h=n;p=h[1],(p===null||Sr(h,p)>0)&&(c=!0)}else p=n;if(o)if(l!==0){let y=rr(e[a+1]);e[r+1]=ks(y,a),y!==0&&(e[y+1]=Tc(e[y+1],r)),e[a+1]=xb(e[a+1],r)}else e[r+1]=ks(a,0),a!==0&&(e[a+1]=Tc(e[a+1],r)),a=r;else e[r+1]=ks(l,0),a===0?a=r:e[l+1]=Tc(e[l+1],r),l=r;c&&(e[r+1]=iu(e[r+1])),Qp(e,p,r,!0),Qp(e,p,r,!1),Mb(t,p,e,r,i),s=ks(a,l),i?t.classBindings=s:t.styleBindings=s}function Mb(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Sr(i,t)>=0&&(n[r+1]=su(n[r+1]))}function Qp(e,t,n,r){let o=e[n+1],i=t===null,s=r?rr(o):$r(o),a=!1;for(;s!==0&&(a===!1||i);){let l=e[s],c=e[s+1];Tb(l,t)&&(a=!0,e[s+1]=r?su(c):iu(c)),s=r?rr(c):$r(c)}a&&(e[n+1]=r?iu(o):su(o))}function Tb(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Sr(e,t)>=0:!1}var Dt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Nb(e){return e.substring(Dt.key,Dt.keyEnd)}function Ab(e){return Ob(e),Ah(e,Oh(e,0,Dt.textEnd))}function Ah(e,t){let n=Dt.textEnd;return n===t?-1:(t=Dt.keyEnd=kb(e,Dt.key=t,n),Oh(e,t,n))}function Ob(e){Dt.key=0,Dt.keyEnd=0,Dt.value=0,Dt.valueEnd=0,Dt.textEnd=e.length}function Oh(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function kb(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function sn(e,t,n){return kh(e,t,n,!1),sn}function le(e,t){return kh(e,t,null,!0),le}function qr(e){Pb(Hb,Rb,e,!0)}function Rb(e,t){for(let n=Ab(t);n>=0;n=Ah(t,n))ps(e,Nb(t),!0)}function kh(e,t,n,r){let o=V(),i=pe(),s=To(2);if(i.firstUpdatePass&&Ph(i,e,s,r),t!==Te&&et(o,s,t)){let a=i.data[_t()];Fh(i,a,o,o[se],e,o[s+1]=$b(t,n),r,s)}}function Pb(e,t,n,r){let o=pe(),i=To(2);o.firstUpdatePass&&Ph(o,null,i,r);let s=V();if(n!==Te&&et(s,i,n)){let a=o.data[_t()];if(Lh(a,r)&&!Rh(o,i)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(n=ls(l,n||"")),ou(o,a,s,n,r)}else Ub(o,a,s,s[se],s[i+1],s[i+1]=Bb(e,t,n),r,i)}}function Rh(e,t){return t>=e.expandoStartIndex}function Ph(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[_t()],s=Rh(e,n);Lh(i,r)&&t===null&&!s&&(t=!1),t=Fb(o,i,t,r),Ib(o,i,t,n,s,r)}}function Fb(e,t,n,r){let o=sp(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Nc(null,e,t,n,r),n=Zo(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Nc(o,e,t,n,r),i===null){let l=Lb(e,t,r);l!==void 0&&Array.isArray(l)&&(l=Nc(null,e,t,l[1],r),l=Zo(l,t.attrs,r),Vb(e,t,r,l))}else i=jb(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Lb(e,t,n){let r=n?t.classBindings:t.styleBindings;if($r(r)!==0)return e[rr(r)]}function Vb(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[rr(o)]=r}function jb(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Zo(r,s,n)}return Zo(r,t.attrs,n)}function Nc(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=Zo(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Zo(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 Bb(e,t,n){if(n==null||n==="")return He;let r=[],o=Uo(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 Hb(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&ps(e,r,n)}function Ub(e,t,n,r,o,i,s,a){o===Te&&(o=He);let l=0,c=0,p=0<o.length?o[0]:null,h=0<i.length?i[0]:null;for(;p!==null||h!==null;){let y=l<o.length?o[l+1]:void 0,m=c<i.length?i[c+1]:void 0,_=null,x;p===h?(l+=2,c+=2,y!==m&&(_=h,x=m)):h===null||p!==null&&p<h?(l+=2,_=p):(c+=2,_=h,x=m),_!==null&&Fh(e,t,n,r,_,x,s,a),p=l<o.length?o[l]:null,h=c<i.length?i[c]:null}}function Fh(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let l=e.data,c=l[a+1],p=Sb(c)?Kp(l,t,n,o,$r(c),s):void 0;if(!ea(p)){ea(i)||wb(c)&&(i=Kp(l,null,n,o,a,s));let h=ec(_t(),n);m_(r,s,h,o,i)}}function Kp(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let l=e[o],c=Array.isArray(l),p=c?l[1]:l,h=p===null,y=n[o+1];y===Te&&(y=h?He:void 0);let m=h?gs(y,r):p===r?y:void 0;if(c&&!ea(m)&&(m=gs(l,r)),ea(m)&&(a=m,s))return a;let _=e[o+1];o=s?rr(_):$r(_)}if(t!==null){let l=i?t.residualClasses:t.residualStyles;l!=null&&(a=gs(l,r))}return a}function ea(e){return e!==void 0}function $b(e,t){return e==null||e===""||(typeof t=="string"?e=Uo(e)+t:typeof e=="object"&&(e=as(Uo(e)))),e}function Lh(e,t){return(e.flags&(t?8:16))!==0}function g(e,t=""){let n=V(),r=pe(),o=e+me,i=r.firstCreatePass?ca(r,o,1,t,null):r.data[o],s=zb(r,n,i,t);n[o]=s,Ms()&&vu(r,n,s,i),Pr(i,!1)}var zb=(e,t,n,r)=>(Ts(!0),T0(t[se],r));function Vh(e,t,n,r=""){return et(e,hn(),n)?t+Kt(n)+r:Te}function Gb(e,t,n,r,o,i=""){let s=fc(),a=Au(e,s,n,o);return To(2),a?t+Kt(n)+r+Kt(o)+i:Te}function Wb(e,t,n,r,o,i,s,a=""){let l=fc(),c=sC(e,l,n,o,s);return To(3),c?t+Kt(n)+r+Kt(o)+i+Kt(s)+a:Te}function C(e){return T("",e),C}function T(e,t,n){let r=V(),o=Vh(r,e,t,n);return o!==Te&&Hu(r,_t(),o),T}function St(e,t,n,r,o){let i=V(),s=Gb(i,e,t,n,r,o);return s!==Te&&Hu(i,_t(),s),St}function sr(e,t,n,r,o,i,s){let a=V(),l=Wb(a,e,t,n,r,o,i,s);return l!==Te&&Hu(a,_t(),l),sr}function Hu(e,t,n){let r=ec(t,e);N0(e[se],r,n)}function X(e,t,n){Os(t)&&(t=t());let r=V(),o=hn();if(et(r,o,t)){let i=pe(),s=Fr();qg(s,r,e,t,r[se],n)}return X}function re(e,t){let n=Os(e);return n&&e.set(t),n}function ee(e,t){let n=V(),r=pe(),o=Me();return Nh(r,n,n[se],o,e,t),ee}function Uu(e,t,n=""){return Vh(V(),e,t,n)}function Jp(e,t,n){let r=pe();r.firstCreatePass&&jh(t,r.data,r.blueprint,Ft(e),n)}function jh(e,t,n,r,o){if(e=Se(e),Array.isArray(e))for(let i=0;i<e.length;i++)jh(e[i],t,n,r,o);else{let i=pe(),s=V(),a=Me(),l=jn(e)?e:Se(e.provide),c=Zl(e),p=a.providerIndexes&1048575,h=a.directiveStart,y=a.providerIndexes>>20;if(jn(e)||!e.multi){let m=new Xn(c,o,J,null),_=Oc(l,t,o?p:p+y,h);_===-1?(Pc(Us(a,s),i,l),Ac(i,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(m),s.push(m)):(n[_]=m,s[_]=m)}else{let m=Oc(l,t,p+y,h),_=Oc(l,t,p,p+y),x=m>=0&&n[m],R=_>=0&&n[_];if(o&&!R||!o&&!x){Pc(Us(a,s),i,l);let F=Yb(o?Zb:qb,n.length,o,r,c,e);!o&&R&&(n[_].providerFactory=F),Ac(i,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(F),s.push(F)}else{let F=Bh(n[o?_:m],c,!o&&r);Ac(i,e,m>-1?m:_,F)}!o&&r&&R&&n[_].componentProviders++}}}function Ac(e,t,n,r){let o=jn(t),i=Hf(t);if(o||i){let l=(i?Se(t.useClass):t).prototype.ngOnDestroy;if(l){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let p=c.indexOf(n);p===-1?c.push(n,[r,l]):c[p+1].push(r,l)}else c.push(n,l)}}}function Bh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Oc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function qb(e,t,n,r,o){return au(this.multi,[])}function Zb(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,l=Ho(r,r[k],this.providerFactory.index,o);s=l.slice(0,a),au(i,s);for(let c=a;c<l.length;c++)s.push(l[c])}else s=[],au(i,s);return s}function au(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function Yb(e,t,n,r,o,i){let s=new Xn(e,n,J,null);return s.multi=[],s.index=t,s.componentProviders=0,Bh(s,o,r&&!n),s}function dt(e,t){return n=>{n.providersResolver=(r,o)=>Jp(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>Jp(r,o?o(t):t,!0))}}function Ne(e,t){let n=Es()+e,r=V();return r[n]===Te?Nu(r,n,t()):iC(r,n)}function Hh(e,t){let n=e[t];return n===Te?void 0:n}function Qb(e,t,n,r,o,i){let s=t+n;return et(e,s,o)?Nu(e,s+1,i?r.call(i,o):r(o)):Hh(e,s+1)}function Kb(e,t,n,r,o,i,s){let a=t+n;return Au(e,a,o,i)?Nu(e,a+2,s?r.call(s,o,i):r(o,i)):Hh(e,a+2)}function ft(e,t){let n=pe(),r,o=e+me;n.firstCreatePass?(r=Jb(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=un(r.type,!0)),s,a=Be(J);try{let l=Hs(!1),c=i();return Hs(l),nc(n,V(),o,c),c}finally{Be(a)}}function Jb(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function ar(e,t,n){let r=e+me,o=V(),i=tc(o,r);return Uh(o,r)?Qb(o,Es(),t,i.transform,n,i):i.transform(n)}function lr(e,t,n,r){let o=e+me,i=V(),s=tc(i,o);return Uh(i,o)?Kb(i,Es(),t,s.transform,n,r,s):s.transform(n,r)}function Uh(e,t){return e[k].data[t].pure}var $h=(()=>{class e{applicationErrorHandler=b(yn);appRef=b(Dn);taskService=b(Yn);ngZone=b(De);zonelessEnabled=b(Fo);tracing=b(tn,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new we;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Co):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(b(bc,{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?hp:yc;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(Co+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 $u(){return nn("NgZoneless"),Ir([...zu(),[]])}function zu(){return[{provide:mt,useExisting:$h},{provide:De,useClass:bo},{provide:Fo,useValue:!0}]}function Xb(){return typeof $localize<"u"&&$localize.locale||Xo}var Zr=new O("",{factory:()=>b(Zr,{optional:!0,skipSelf:!0})||Xb()});var pa=class{destroyed=!1;listeners=null;errorHandler=b(st,{optional:!0});isEmitting=!1;hasNullListeners=!1;destroyRef=b(de);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new S(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(dn(953,!1));return}if(this.listeners===null)return;this.isEmitting=!0;let n=P(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&&eD(this.listeners)),P(n),this.isEmitting=!1}}};function eD(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--}function W(e,t){return Oi(e,t?.equal)}function Ze(e){return Qd(e)}var zh=class e extends Error{_brand;constructor(t){super(t)}static IDLE=new e("IDLE");static LOADING=new e("LOADING")};function qh(e,t){let n=Object.create(tg);n.value=e,n.transformFn=t?.transform;function r(){if(gr(n),n.value===ta){let o=null;throw new S(-950,o)}return n.value}return r[Ee]=n,r}function xn(e){return new pa}function Gh(e,t){return qh(e,t)}function fD(e){return qh(ta,e)}var nt=(Gh.required=fD,Gh);var pD=1e4;var hL=pD-1e3;var ti=(()=>{class e{static __NG_ELEMENT_ID__=gD}return e})();function gD(e){return hD(Me(),V(),(e&16)===16)}function hD(e,t,n){if(Xt(e)&&!n){let r=ut(e.index,t);return new Cn(r,r)}else if(e.type&175){let r=t[Je];return new Cn(r,t)}return null}var Gu=new O(""),mD=new O("");function ei(e){return!e.moduleRef}function yD(e){let t=ei(e)?e.r3Injector:e.moduleRef.injector,n=t.get(De);return n.run(()=>{ei(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(yn),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),ei(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Gu);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Gu);s.add(i),e.moduleRef.onDestroy(()=>{Bo(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return _D(r,n,()=>{let i=t.get(Yn),s=i.add(),a=t.get(Pu);return a.runInitializers(),a.donePromise.then(()=>{let l=t.get(Zr,Xo);if(Th(l||Xo),!t.get(mD,!0))return ei(e)?t.get(Dn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(ei(e)){let p=t.get(Dn);return e.rootComponent!==void 0&&p.bootstrap(e.rootComponent),p}else return vD?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var vD;function _D(e,t,n){try{let r=n();return Gr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var ga=null;function CD(e=[],t){return Pe.create({name:t,providers:[{provide:Io,useValue:"platform"},{provide:Gu,useValue:new Set([()=>ga=null])},...e]})}function bD(e=[]){if(ga)return ga;let t=CD(e);return ga=t,Ih(),DD(t),t}function DD(e){let t=e.get(Ns,null);Tr(e,()=>{t?.forEach(n=>n())})}function Zh(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;ne(K.BootstrapApplicationStart);try{let i=o?.injector??bD(r),s=[zu(),yp,...n||[]],a=new qo({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return yD({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{ne(K.BootstrapApplicationEnd)}}function Wu(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Yh(e,t){let n=Qt(e),r=t.elementInjector||Mr();return new nr(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function ni(e){let t=Qt(e);if(!t)return null;let n=new nr(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 Qh=null;function Mt(){return Qh}function qu(e){Qh??=e}var ri=class{},ma=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:()=>b(Kh),providedIn:"platform"})}return e})();var Kh=(()=>{class e extends ma{_location;_history;_doc=b(Fe);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=te({token:e,factory:()=>new e,providedIn:"platform"})}return e})();var Xu=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(Xu||{});var Le=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(Le||{}),ie=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(ie||{}),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 em(e){return qe(e)[he.LocaleId]}function tm(e,t,n){let r=qe(e),o=[r[he.DayPeriodsFormat],r[he.DayPeriodsStandalone]],i=pt(o,t);return pt(i,n)}function nm(e,t,n){let r=qe(e),o=[r[he.DaysFormat],r[he.DaysStandalone]],i=pt(o,t);return pt(i,n)}function rm(e,t,n){let r=qe(e),o=[r[he.MonthsFormat],r[he.MonthsStandalone]],i=pt(o,t);return pt(i,n)}function om(e,t){let r=qe(e)[he.Eras];return pt(r,t)}function oi(e,t){let n=qe(e);return pt(n[he.DateFormat],t)}function ii(e,t){let n=qe(e);return pt(n[he.TimeFormat],t)}function si(e,t){let r=qe(e)[he.DateTimeFormat];return pt(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 im(e,t){return qe(e)[he.NumberFormats][t]}function sm(e){if(!e[he.ExtraData])throw new S(2303,!1)}function am(e){let t=qe(e);return sm(t),(t[he.ExtraData][2]||[]).map(r=>typeof r=="string"?Zu(r):[Zu(r[0]),Zu(r[1])])}function lm(e,t,n){let r=qe(e);sm(r);let o=[r[he.ExtraData][0],r[he.ExtraData][1]],i=pt(o,t)||[];return pt(i,n)||[]}function pt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new S(2304,!1)}function Zu(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var ED=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ya=Object.create(null),wD=/((?:[^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]*)/,xD=256;function cm(e,t,n,r){let o=PD(e);SD(t),t=an(n,t)||t;let s=[],a;for(;t;)if(a=wD.exec(t),a){s=s.concat(a.slice(1));let p=s.pop();if(!p)break;t=p}else{s.push(t);break}let l=o.getTimezoneOffset();r&&(l=dm(r,l),o=RD(o,r));let c="";return s.forEach(p=>{let h=OD(p);c+=h?h(o,n,l):p==="''"?"'":p.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function SD(e){if(e.length>xD)throw new S(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 an(e,t){let n=em(e);if(ya[n]??=Object.create(null),ya[n][t])return ya[n][t];let r="";switch(t){case"shortDate":r=oi(e,Ye.Short);break;case"mediumDate":r=oi(e,Ye.Medium);break;case"longDate":r=oi(e,Ye.Long);break;case"fullDate":r=oi(e,Ye.Full);break;case"shortTime":r=ii(e,Ye.Short);break;case"mediumTime":r=ii(e,Ye.Medium);break;case"longTime":r=ii(e,Ye.Long);break;case"fullTime":r=ii(e,Ye.Full);break;case"short":let o=an(e,"shortTime"),i=an(e,"shortDate");r=va(si(e,Ye.Short),[o,i]);break;case"medium":let s=an(e,"mediumTime"),a=an(e,"mediumDate");r=va(si(e,Ye.Medium),[s,a]);break;case"long":let l=an(e,"longTime"),c=an(e,"longDate");r=va(si(e,Ye.Long),[l,c]);break;case"full":let p=an(e,"fullTime"),h=an(e,"fullDate");r=va(si(e,Ye.Full),[p,h]);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 ID(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=MD(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return ID(a,t);let l=Ht(s,Ge.MinusSign);return Tt(a,t,l,r,o)}}function MD(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 S(2301,!1)}}function ae(e,t,n=Le.Format,r=!1){return function(o,i){return TD(o,i,e,t,n,r)}}function TD(e,t,n,r,o,i){switch(n){case 2:return rm(t,o,r)[e.getMonth()];case 1:return nm(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let c=am(t),p=lm(t,o,r),h=c.findIndex(y=>{if(Array.isArray(y)){let[m,_]=y,x=s>=m.hours&&a>=m.minutes,R=s<_.hours||s===_.hours&&a<_.minutes;if(m.hours<_.hours){if(x&&R)return!0}else if(x||R)return!0}else if(y.hours===s&&y.minutes===a)return!0;return!1});if(h!==-1)return p[h]}return tm(t,o,r)[s<12?0:1];case 3:return om(t,r)[e.getFullYear()<=0?0:1];default:let l=n;throw new S(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 S(2310,!1)}}}var ND=0,ba=4;function AD(e){let t=Da(e,ND,1).getDay();return Da(e,0,1+(t<=ba?ba:ba+7)-t)}function um(e){let t=e.getDay(),n=t===0?-3:ba-t;return Da(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Yu(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=um(n),s=AD(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=um(n).getFullYear();return Tt(i,e,Ht(r,Ge.MinusSign),t)}}var Qu=Object.create(null);function OD(e){if(Qu[e])return Qu[e];let t;switch(e){case"G":case"GG":case"GGG":t=ae(3,ie.Abbreviated);break;case"GGGG":t=ae(3,ie.Wide);break;case"GGGGG":t=ae(3,ie.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=ae(2,ie.Abbreviated);break;case"MMMM":t=ae(2,ie.Wide);break;case"MMMMM":t=ae(2,ie.Narrow);break;case"LLL":t=ae(2,ie.Abbreviated,Le.Standalone);break;case"LLLL":t=ae(2,ie.Wide,Le.Standalone);break;case"LLLLL":t=ae(2,ie.Narrow,Le.Standalone);break;case"w":t=Yu(1);break;case"ww":t=Yu(2);break;case"W":t=Yu(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=ae(1,ie.Abbreviated,Le.Standalone);break;case"cccc":t=ae(1,ie.Wide,Le.Standalone);break;case"ccccc":t=ae(1,ie.Narrow,Le.Standalone);break;case"cccccc":t=ae(1,ie.Short,Le.Standalone);break;case"E":case"EE":case"EEE":t=ae(1,ie.Abbreviated);break;case"EEEE":t=ae(1,ie.Wide);break;case"EEEEE":t=ae(1,ie.Narrow);break;case"EEEEEE":t=ae(1,ie.Short);break;case"a":case"aa":case"aaa":t=ae(0,ie.Abbreviated);break;case"aaaa":t=ae(0,ie.Wide);break;case"aaaaa":t=ae(0,ie.Narrow);break;case"b":case"bb":case"bbb":t=ae(0,ie.Abbreviated,Le.Standalone,!0);break;case"bbbb":t=ae(0,ie.Wide,Le.Standalone,!0);break;case"bbbbb":t=ae(0,ie.Narrow,Le.Standalone,!0);break;case"B":case"BB":case"BBB":t=ae(0,ie.Abbreviated,Le.Format,!0);break;case"BBBB":t=ae(0,ie.Wide,Le.Format,!0);break;case"BBBBB":t=ae(0,ie.Narrow,Le.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 Qu[e]=t,t}function dm(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function kD(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function RD(e,t,n){let o=e.getTimezoneOffset(),i=dm(t,o);return kD(e,-1*(i-o))}function PD(e){if(Jh(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(ED))return FD(r)}let t=new Date(e);if(!Jh(t))throw new S(2311,!1);return t}function FD(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,l=Number(e[6]||0),c=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,l,c),t}function Jh(e){return e instanceof Date&&!isNaN(e.valueOf())}var LD=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Xh=22,Ea=".",ai="0",VD=";",jD=",",Ku="#";function BD(e,t,n,r,o,i,s=!1){let a="",l=!1;if(!isFinite(e))a=Ht(n,Number.isNaN(e)?Ge.NaN:Ge.Infinity);else{let c=$D(e);s&&(c=UD(c));let p=t.minInt,h=t.minFrac,y=t.maxFrac;if(i){let ce=i.match(LD);if(ce===null)throw new S(2306,!1);let Qe=ce[1],rt=ce[3],Ke=ce[5];Qe!=null&&(p=Ju(Qe)),rt!=null&&(h=Ju(rt)),Ke!=null?y=Ju(Ke):rt!=null&&h>y&&(y=h);let ot=100;if(p>ot||h>ot||y>ot)throw new S(2306,!1)}zD(c,h,y);let m=c.digits,_=c.integerLen,x=c.exponent,R=[];for(l=m.every(ce=>!ce);_<p;_++)m.unshift(0);for(;_<0;_++)m.unshift(0);_>0?R=m.splice(_,m.length):(R=m,m=[0]);let F=[];for(m.length>=t.lgSize&&F.unshift(m.splice(-t.lgSize,m.length).join(""));m.length>t.gSize;)F.unshift(m.splice(-t.gSize,m.length).join(""));m.length&&F.unshift(m.join("")),a=F.join(Ht(n,r)),R.length&&(a+=Ht(n,o)+R.join("")),x&&(a+=Ht(n,Ge.Exponential)+"+"+x)}return e<0&&!l?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function fm(e,t,n){let r=im(t,Xu.Decimal),o=HD(r,Ht(t,Ge.MinusSign));return BD(e,o,t,Ge.Group,Ge.Decimal,n)}function HD(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(VD),o=r[0],i=r[1],s=o.indexOf(Ea)!==-1?o.split(Ea):[o.substring(0,o.lastIndexOf(ai)+1),o.substring(o.lastIndexOf(ai)+1)],a=s[0],l=s[1]||"";n.posPre=a.substring(0,a.indexOf(Ku));for(let p=0;p<l.length;p++){let h=l.charAt(p);h===ai?n.minFrac=n.maxFrac=p+1:h===Ku?n.maxFrac=p+1:n.posSuf+=h}let c=a.split(jD);if(n.gSize=c[1]?c[1].length:0,n.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,i){let p=o.length-n.posPre.length-n.posSuf.length,h=i.indexOf(Ku);n.negPre=i.substring(0,h).replace(/'/g,""),n.negSuf=i.slice(h+p).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function UD(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 $D(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)===ai;i++);if(i===(a=t.length))r=[0],o=1;else{for(a--;t.charAt(a)===ai;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i))}return o>Xh&&(r=r.splice(0,Xh-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function zD(e,t,n){if(t>n)throw new S(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 h=s;h<r.length;h++)r[h]=0}else{o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let h=1;h<s;h++)r[h]=0}if(a>=5)if(s-1<0){for(let h=0;h>s;h--)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 l=i!==0,c=t+e.integerLen,p=r.reduceRight(function(h,y,m,_){return y=y+h,_[m]=y<10?y:y-10,l&&(_[m]===0&&m>=c?_.pop():l=!1),y>=10?1:0},0);p&&(r.unshift(p),e.integerLen++)}function Ju(e){let t=parseInt(e);if(isNaN(t))throw new S(2305,!1);return t}function pm(e,t){return new S(2100,!1)}var GD="mediumDate",gm=new O(""),hm=new O(""),ed=(()=>{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??GD,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return cm(n,s,i||this.locale,a)}catch(s){throw pm(e,s.message)}}static \u0275fac=function(r){return new(r||e)(J(Zr,16),J(gm,24),J(hm,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(!WD(n))return null;o||=this._locale;try{let i=qD(n);return fm(i,o,r)}catch(i){throw pm(e,i.message)}}static \u0275fac=function(r){return new(r||e)(J(Zr,16))};static \u0275pipe=ua({name:"number",type:e,pure:!0})}return e})();function WD(e){return!(e==null||e===""||e!==e)}function qD(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new S(2309,!1);return e}var Sn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=bn({type:e});static \u0275inj=Yt({})}return e})();function ci(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 mm="browser";var ui=class{_doc;constructor(t){this._doc=t}manager},wa=(()=>{class e extends ui{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)($(Fe))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),Ia=new O(""),id=(()=>{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 S(-5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)($(Ia),$(De))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),nd="ng-app-id";function ym(e){for(let t of e)t.remove()}function vm(e,t){let n=t.createElement("style");return n.textContent=e,n}function QD(e,t,n,r){let o=e.head?.querySelectorAll(`style[${nd}="${t}"],link[${nd}="${t}"]`);if(!o||o.length===0)return!1;for(let i of o)i.removeAttribute(nd),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 od(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var sd=(()=>{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,QD(n,r,this.inline,this.external)&&this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,vm);r?.forEach(o=>this.addUsage(o,this.external,od))}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&&(ym(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])ym(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,vm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,od(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)($(Fe),$(Oo),$(Ro,8),$(ko))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),rd={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"},ad=/%COMP%/g;var Cm="%COMP%",KD=`_nghost-${Cm}`,JD=`_ngcontent-${Cm}`,XD=!0,eE=new O("",{factory:()=>XD}),tE=new O("");function nE(e){return JD.replace(ad,e)}function rE(e){return KD.replace(ad,e)}function bm(e,t){return t.map(n=>n.replace(ad,e))}var ld=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(n,r,o,i,s,a,l=null,c=null,p=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=l,this.tracingService=c,this.cssVarNamespace=p??"",this.defaultRenderer=new di(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 fi&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,h=this.tracingService;switch(r.encapsulation){case Et.Emulated:i=new Sa(l,c,r,this.appId,p,s,a,h,this.cssVarNamespace);break;case Et.ShadowDom:return new xa(l,n,r,s,a,this.nonce,h,this.cssVarNamespace,c);case Et.ExperimentalIsolatedShadowDom:return new xa(l,n,r,s,a,this.nonce,h,this.cssVarNamespace);default:i=new fi(l,c,r,p,s,a,h,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)($(id),$(ir),$(Oo),$(eE),$(Fe),$(De),$(Ro),$(tn,8),$(tE,8))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),di=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(rd[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(_m(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){if(t){let o=_m(t)?t.content:t;if(r!=null&&r.parentNode!==o)throw new S(-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 S(-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=rd[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=rd[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 S(-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 _m(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var xa=class extends di{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,l,c){super(t,o,i,a,l),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let p=r.styles;p=bm(r.id,p).map(y=>y.replace(/%NS%/g,l));for(let y of p){let m=document.createElement("style");s&&m.setAttribute("nonce",s),m.textContent=y,this.shadowRoot.appendChild(m)}let h=r.getExternalStyles?.();if(h)for(let y of h){let m=od(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)}},fi=class extends di{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,l,c){super(t,i,s,a,l),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let p=r.styles,h=c?bm(c,p):p;this.styles=h.map(y=>y.replace(/%NS%/g,l)),this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&_n.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Sa=class extends fi{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,l,c){let p=o+"-"+r.id;super(t,n,r,i,s,a,l,c,p),this.contentAttr=nE(p),this.hostAttr=rE(p)}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 ri{supportsDOMEvents=!0;static makeCurrent(){qu(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=oE();return n==null?null:iE(n)}resetBaseElement(){pi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ci(document.cookie,t)}},pi=null;function oE(){return pi=pi||document.head.querySelector("base"),pi?pi.getAttribute("href"):null}function iE(e){return new URL(e,document.baseURI).pathname}var Dm=["alt","control","meta","shift"],sE={"\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"},aE={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Em=(()=>{class e extends ui{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."),Dm.forEach(c=>{let p=r.indexOf(c);p>-1&&(r.splice(p,1),s+=c+".")}),s+=i,r.length!=0||i.length===0)return null;let l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let o=sE[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"),Dm.forEach(s=>{if(s!==o){let a=aE[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)($(Fe))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})();async function cd(e,t){return Zh(lE(e,t))}function lE(e,t){return{platformRef:t?.platformRef,appProviders:[...pE,...e?.providers??[]],platformProviders:fE}}function cE(){Ma.makeCurrent()}function uE(){return new st}function dE(){return uu(document),document}var fE=[{provide:ko,useValue:mm},{provide:Ns,useValue:cE,multi:!0},{provide:Fe,useFactory:dE}];var pE=[{provide:Io,useValue:"root"},{provide:st,useFactory:uE},{provide:Ia,useClass:wa,multi:!0},{provide:Ia,useClass:Em,multi:!0},ld,{provide:ir,useClass:sd},{provide:sd,useExisting:ir},id,{provide:tr,useExisting:ld},[]];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(l=>s.indexOf(l)===-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 wm(t)}encodeValue(t){return wm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function gE(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))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}var hE=/%(\d[a-f0-9])/gi,mE={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function wm(e){return encodeURIComponent(e).replace(hE,(t,n)=>mE[n]??t)}function Ta(e){return`${e}`}var ln=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Aa,t.fromString){if(t.fromObject)throw new S(2805,!1);this.map=gE(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 yE(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function xm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Sm(e){return typeof Blob<"u"&&e instanceof Blob}function Im(e){return typeof FormData<"u"&&e instanceof FormData}function vE(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var ud="Content-Type",Mm="Accept",Am="text/plain",Om="application/json",_E=`${Om}, ${Am}, */*`,Yr=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(yE(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 S(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 ln,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n,l="",c=n.indexOf("#");c!==-1&&(l=n.substring(c),a=n.substring(0,c));let p=a.indexOf("?"),h=p===-1?"?":p<a.length-1?"&":"";this.urlWithParams=a+h+s+l}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||xm(this.body)||Sm(this.body)||Im(this.body)||vE(this.body)?this.body:this.body instanceof ln?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||Im(this.body)?null:Sm(this.body)?this.body.type||null:xm(this.body)?null:typeof this.body=="string"?Am:this.body instanceof ln?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Om: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,l=t.mode||this.mode,c=t.redirect||this.redirect,p=t.credentials||this.credentials,h=t.referrer??this.referrer,y=t.integrity||this.integrity,m=t.referrerPolicy||this.referrerPolicy,_=t.transferCache??this.transferCache,x=t.timeout??this.timeout,R=t.body!==void 0?t.body:this.body,F=t.withCredentials??this.withCredentials,ce=t.reportProgress??this.reportProgress,Qe=t.reportUploadProgress??this.reportUploadProgress,rt=t.reportDownloadProgress??this.reportDownloadProgress,Ke=t.headers||this.headers,ot=t.params||this.params,zt=t.context??this.context;return t.setHeaders!==void 0&&(Ke=Object.keys(t.setHeaders).reduce((Ve,Nt)=>Ve.set(Nt,t.setHeaders[Nt]),Ke)),t.setParams&&(ot=Object.keys(t.setParams).reduce((Ve,Nt)=>Ve.set(Nt,t.setParams[Nt]),ot)),new e(n,r,R,{params:ot,headers:Ke,context:zt,reportProgress:ce,reportUploadProgress:Qe,reportDownloadProgress:rt,responseType:o,withCredentials:F,transferCache:_,keepalive:i,cache:a,priority:s,timeout:x,mode:l,redirect:c,credentials:p,referrer:h,integrity:y,referrerPolicy:m})}},ur=(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})(ur||{}),Qr=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 Qr{constructor(t={}){super(t)}type=ur.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 Qr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=ur.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})}},cr=class extends Qr{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}},CE=200;var bE=/^\)\]\}',?\n/,sj=1024*1024,km=new O("",{factory:()=>null}),Kr=(()=>{class e{fetchImpl=b(fd,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=b(De);destroyRef=b(de);maxResponseSize=b(km);handle(n){return new Q(r=>{let o=new AbortController,i=!1,s={next:l=>{l.type===ur.Response&&(i=!0),r.next(l)},error:l=>{i=!0,r.error(l)},complete:()=>{i=!0,r.complete()}};this.doRequest(n,o.signal,s).then(pd,l=>s.error(new cr({error:l})));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 R=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,j({signal:r},i)));DE(R),o.next({type:ur.Sent}),s=await R}catch(R){o.error(new cr({error:R,status:R.status??0,statusText:R.statusText,url:n.urlWithParams,headers:R.headers}));return}let a=new cn(s.headers),l=s.statusText,c=s.url||n.urlWithParams,p=s.status,h=null,y=n.reportProgress||n.reportDownloadProgress;if(y&&o.next(new Oa({headers:a,status:p,statusText:l,url:c})),s.body){let R=s.headers.get(ud)??"",F=s.headers.get("content-length"),ce=F!==null?Number(F):NaN;this.maxResponseSize!==null&&Number.isFinite(ce)&&ce>this.maxResponseSize&&(await s.body.cancel(),Tm(this.maxResponseSize));let Qe=[],rt=s.body.getReader(),Ke=0,ot,zt,Ve=typeof Zone<"u"&&Zone.current,Nt=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await rt.cancel(),Nt=!0;break}let{done:Xa,value:el}=await rt.read();if(Xa)break;if(Qe.push(el),Ke+=el.length,this.maxResponseSize!==null&&Ke>this.maxResponseSize&&(await rt.cancel(),Tm(this.maxResponseSize)),y){zt=n.responseType==="text"?(zt??"")+(ot??=Nm(R)).decode(el,{stream:!0}):void 0;let jd=()=>o.next({type:ur.DownloadProgress,total:Number.isFinite(ce)?ce:void 0,loaded:Ke,partialText:zt});Ve?Ve.run(jd):jd()}}}),Nt){o.complete();return}let Ty=this.concatChunks(Qe,Ke);try{h=this.parseBody(n,Ty,R,p)}catch(Xa){o.error(new cr({error:Xa,headers:new cn(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}p===0&&(p=h?CE:0);let m=p>=200&&p<300,_=s.redirected,x=s.type;m?(o.next(new gi({body:h,headers:a,status:p,statusText:l,url:c,redirected:_,responseType:x})),o.complete()):o.error(new cr({error:h,headers:a,status:p,statusText:l,url:c,redirected:_,responseType:x}))}parseBody(n,r,o,i){switch(n.responseType){case"json":let s=new TextDecoder().decode(r).replace(bE,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(i<200||i>=300)return s;throw a}case"text":return Nm(o).decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){if(n.reportUploadProgress)throw new S(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(Mm)||(r[Mm]=_E),!n.headers.has(ud)){let i=n.detectContentTypeHeader();i!==null&&(r[ud]=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})(),fd=class{};function pd(){}function DE(e){e.then(pd,pd)}function Tm(e){throw new S(-2825,!1)}var EE=/charset=\s*["']?([^;"'\s]+)["']?/i;function Nm(e){let t=e.match(EE);if(t!==null)try{return new TextDecoder(t[1])}catch{}return new TextDecoder}var wE=new O("",{factory:()=>!0}),xE="XSRF-TOKEN",SE=new O("",{factory:()=>xE}),IE="X-XSRF-TOKEN",ME=new O("",{factory:()=>IE}),TE=(()=>{class e{cookieName=b(SE);doc=b(Fe);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ci(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})(),Rm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=$(TE),o},providedIn:"root"})}return e})();function Pm(e,t){if(!b(wE)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=b(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=b(Rm).getToken(),r=b(ME);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function NE(e,t){return t(e)}function AE(e,t,n){return(r,o)=>Tr(n,()=>t(r,i=>e(i,o)))}var gd=new O("",{factory:()=>[Pm]}),Fm=new O(""),Lm=new O("",{factory:()=>!0});var Ra=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=$(Kr),o},providedIn:"root"})}return e})();var ka=(()=>{class e{backend;injector;chain=null;pendingTasks=b(Lr);contributeToStability=b(Lm);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(Fm,[],i?{self:!0}:void 0),a=Array.from(new Set([...this.injector.get(gd),...s]));this.chain=a.reduceRight((l,c)=>AE(l,c,this.injector),NE)}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return Ze(()=>r(n,i=>this.backend.handle(i))).pipe(El(o))}else return Ze(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)($(Ra),$(Ue))};static \u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Pa=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=$(ka),o},providedIn:"root"})}return e})();function dd(e,t){return j({body:t},e)}var Fa=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Yr)i=n;else{let l;o.headers instanceof cn?l=o.headers:l=new cn(o.headers);let c;o.params&&(o.params instanceof ln?c=o.params:c=new ln({fromObject:o.params})),i=new Yr(n,r,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:c,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=vl(i).pipe(Dl(l=>this.handler.handle(l)));if(n instanceof Yr||o.observe==="events")return s;let a=s.pipe(bl(l=>l instanceof gi));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(xe(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new S(2806,!1);return l.body}));case"blob":return a.pipe(xe(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new S(2807,!1);return l.body}));case"text":return a.pipe(xe(l=>{if(l.body!==null&&typeof l.body!="string")throw new S(2808,!1);return l.body}));default:return a.pipe(xe(l=>l.body))}case"response":return a;default:throw new S(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 ln().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,dd(o,r))}post(n,r,o={}){return this.request("POST",n,dd(o,r))}put(n,r,o={}){return this.request("PUT",n,dd(o,r))}static \u0275fac=function(r){return new(r||e)($(Pa))};static \u0275prov=te({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 Vm(e,t){return{\u0275kind:e,\u0275providers:t}}function hd(...e){let t=[Fa,Kr,ka,{provide:Pa,useExisting:ka},{provide:Ra,useFactory:()=>b(Kr)},{provide:gd,useValue:Pm,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return Ir(t)}function md(e){return Vm(La.Interceptors,e.map(t=>({provide:gd,useValue:t,multi:!0})))}function yd(){return Vm(La.Fetch,[Kr,{provide:Ra,useExisting:Kr}])}var jm={apiBase:""},Jr=jm,Bm=!1;function OE(){if(!Bm)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 Hm(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.`);Jr=j(j({},jm),e),Bm=!0}function Um(){return Jr}var $m={get apiBase(){return AE(),Jr.apiBase},get getAuthHeaders(){return Jr.getAuthHeaders},get creator(){return Jr.creator},get onError(){return Jr.onError}};var Xr=new O("AASTRIKA_CONFIG");var Ut=class e{http=b(Fa);config=b(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=A(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",r){return this.http.get(`${this.assessment}/export/${t}${zm(n,r)}&as=url`)}exportHref(t,n="xlsx",r){return`${this.assessment}/export/${t}${zm(n,r)}`}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=te({token:e,factory:e.\u0275fac,providedIn:"root"})};function vd(e){return e.video===!0}function zm(e,t){let n=new URLSearchParams({format:e});return t&&n.set("language",t),`?${n}`}var Gm=(e,t)=>{let n=b(Xr),r=b(Ut).creator(),o=i=>!r||!i.body||typeof i.body!="object"||i.body instanceof FormData||Array.isArray(i.body)||"creator"in i.body?i:i.clone({body:U(j({},i.body),{creator:r})});if(!n.getAuthHeaders){let i=o(e);return t(i)}return Gt(Promise.resolve(n.getAuthHeaders())).pipe(Fn(i=>t(o(e).clone({setHeaders:i}))))};var OE={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function kE(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function RE(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var _d;function PE(e,t){if(!_d){let n=Element.prototype;_d=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?_d.call(e,t):!1}function FE(e){let t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[kE(r)]=[n,o]}),t}function LE(e,t){return ni(e).inputs}function VE(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=jE(a,t,o);c!==-1&&r[c].push(a)}return r}function jE(e,t,n){let r=n;return RE(e)&&t.some((o,i)=>o!=="*"&&PE(e,o)?(r=i,!0):!1),r}var BE=10,Cd=class{component;componentMirror;inputMap=new Map;constructor(t){this.component=t,this.componentMirror=ni(t);for(let n of this.componentMirror.inputs)this.inputMap.set(n.propName,n.templateName)}create(t){return new bd(this.component,t,this.inputMap)}},bd=class{component;injector;inputMap;eventEmitters=new Dr(1);events=this.eventEmitters.pipe(Fn(t=>Cc(...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(De),this.appRef=this.injector.get(Dn),this.cdScheduler=n.get(mt),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=OE.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},BE))})}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),Iu(this.componentRef.hostView)&&(Mu(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(t){let n=Pe.create({providers:[],parent:this.injector}),r=VE(t,ni(this.component).ngContentSelectors);this.componentRef=Yh(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=ni(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()}},Dd=class extends HTMLElement{ngElementEventsSubscription=null};function Wm(e,t){let n=LE(e),r=t.strategyFactory||new Cd(e),o=FE(n);class i extends Dd{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 p=this[c];delete this[c],a.setInputValue(c,p,l)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,l,p){let[h,y]=o[a];this.ngElementStrategy.setInputValue(h,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&&Qn(l)?l():l},set(l){this.ngElementStrategy.setInputValue(s,l,a)},configurable:!0,enumerable:!0})}),i}function qm(e,t){return typeof customElements>"u"||customElements.get(e.tag)?!1:(customElements.define(e.tag,Wm(e.component,{injector:t})),!0)}function eo(e){e||(e=b(de));let t=new Q(n=>{if(e.destroyed){n.next();return}return e.onDestroy(n.next.bind(n))});return n=>n.pipe(wc(t))}var ry=(()=>{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)(J(Bt),J(xt))};static \u0275dir=_e({type:e})}return e})(),Ci=(()=>{class e extends ry{static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,features:[ze]})}return e})(),oo=new O(""),HE={provide:oo,useExisting:$e(()=>Td),multi:!0},Td=(()=>{class e extends Ci{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(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&&N("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[dt([HE]),ze]})}return e})(),UE={provide:oo,useExisting:$e(()=>In),multi:!0};function $E(){let e=Mt()?Mt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var zE=new O(""),In=(()=>{class e extends ry{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!$E())}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)(J(Bt),J(xt),J(zE,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&&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:[dt([UE]),ze]})}return e})();function Nd(e){return e==null||Ad(e)===0}function Ad(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var bi=new O(""),GE=new O(""),WE=/^(?=.{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])?)*$/,Ed=class{static min(t){return oy(t)}static max(t){return iy(t)}static required(t){return sy(t)}static requiredTrue(t){return qE(t)}static email(t){return ZE(t)}static minLength(t){return YE(t)}static maxLength(t){return ay(t)}static pattern(t){return QE(t)}static nullValidator(t){return ja()}static compose(t){return py(t)}static composeAsync(t){return hy(t)}};function oy(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 iy(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 sy(e){return Nd(e.value)?{required:!0}:null}function qE(e){return e.value===!0?null:{required:!0}}function ZE(e){return Nd(e.value)||WE.test(e.value)?null:{email:!0}}function YE(e){return t=>{let n=t.value?.length??Ad(t.value);return n===null||n===0?null:n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}function ay(e){return t=>{let n=t.value?.length??Ad(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function QE(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(Nd(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function ja(e){return null}function cy(e){return e!=null}function ly(e){return Gr(e)?Gt(e):e}function uy(e){let t={};return e.forEach(n=>{t=n!=null?j(j({},t),n):t}),Object.keys(t).length===0?null:t}function dy(e,t){return t.map(n=>n(e))}function KE(e){return!e.validate}function fy(e){return e.map(t=>KE(t)?t:n=>t.validate(n))}function py(e){if(!e)return null;let t=e.filter(cy);return t.length==0?null:function(n){return uy(dy(n,t))}}function gy(e){return e!=null?py(fy(e)):null}function hy(e){if(!e)return null;let t=e.filter(cy);return t.length==0?null:function(n){let r=dy(n,t).map(ly);return _c(r).pipe(xe(uy))}}function my(e){return e!=null?hy(fy(e)):null}function Zm(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function JE(e){return e._rawValidators}function XE(e){return e._rawAsyncValidators}function wd(e){return e?Array.isArray(e)?e:[e]:[]}function Ba(e,t){return Array.isArray(e)?e.includes(t):e===t}function Ym(e,t){let n=wd(t);return wd(e).forEach(o=>{Ba(n,o)||n.push(o)}),n}function Qm(e,t){return wd(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=gy(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=my(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}},xd=class extends Ha{name;get formDirective(){return null}get path(){return null}};var hi="VALID",Va="INVALID",to="PENDING",mi="DISABLED",dr=class{},Ua=class extends dr{value;source;constructor(t,n){super(),this.value=t,this.source=n}},yi=class extends dr{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},vi=class extends dr{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},no=class extends dr{status;source;constructor(t,n){super(),this.status=t,this.source=n}};var _i=class extends dr{source;constructor(t){super(),this.source=t}};function ew(e){return($a(e)?e.validators:e)||null}function tw(e){return Array.isArray(e)?gy(e):e||null}function nw(e,t){return($a(t)?t.asyncValidators:e)||null}function rw(e){return Array.isArray(e)?my(e):e||null}function $a(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Sd=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_hasRequired=A(!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=W(()=>this.statusReactive());statusReactive=A(void 0);get valid(){return this.status===hi}get invalid(){return this.status===Va}get pending(){return this.status===to}get disabled(){return this.status===mi}get enabled(){return this.status!==mi}errors;get pristine(){return Ze(this.pristineReactive)}set pristine(t){Ze(()=>this.pristineReactive.set(t))}_pristine=W(()=>this.pristineReactive());pristineReactive=A(!0);get dirty(){return!this.pristine}get touched(){return Ze(this.touchedReactive)}set touched(t){Ze(()=>this.touchedReactive.set(t))}_touched=W(()=>this.touchedReactive());touchedReactive=A(!1);get untouched(){return!this.touched}_events=new ke;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(Ym(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Ym(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Qm(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Qm(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(U(j({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new vi(!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 vi(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty(U(j({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new yi(!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 yi(!0,r))}markAsPending(t={}){this.status=to;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new no(this.status,n)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending(U(j({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=mi,this.errors=null,this._forEachChild(o=>{o.disable(U(j({},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 no(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(U(j({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=hi,this._forEachChild(r=>{r.enable(U(j({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(U(j({},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===hi||this.status===to)&&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 no(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity(U(j({},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()?mi:hi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=to,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=ly(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 no(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new Re,this.statusChanges=new Re}_calculateStatus(){return this._allControlsDisabled()?mi:this.errors?Va:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(to)?to:this._anyControlsHaveStatus(Va)?Va:hi}_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 yi(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new vi(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=tw(this._rawValidators),this._updateHasRequiredValidator()}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=rw(this._rawAsyncValidators)}_updateHasRequiredValidator(){Ze(()=>this._hasRequired.set(this.hasValidator(Ed.required)))}};function ow(e){return e.tagName==="INPUT"||e.tagName==="SELECT"||e.tagName==="TEXTAREA"}function iw(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 Id=class{kind;context;control;message;constructor({kind:t,context:n,control:r}){this.kind=t,this.context=n,this.control=r}};function sw(e){return typeof e=="number"?e:parseInt(e,10)}function yy(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:[or]})}return e})(),aw={provide:bi,useExisting:$e(()=>Od),multi:!0},Od=(()=>{class e extends za{max;inputName="max";normalizeInput=n=>yy(n);createValidator=n=>iy(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(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&&tt("max",o._enabled?o.max:null)},inputs:{max:"max"},standalone:!1,features:[dt([aw]),ze]})}return e})(),cw={provide:bi,useExisting:$e(()=>kd),multi:!0},kd=(()=>{class e extends za{min;inputName="min";normalizeInput=n=>yy(n);createValidator=n=>oy(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(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&&tt("min",o._enabled?o.min:null)},inputs:{min:"min"},standalone:!1,features:[dt([cw]),ze]})}return e})(),lw={provide:bi,useExisting:$e(()=>vy),multi:!0};var vy=(()=>{class e extends za{required;inputName="required";normalizeInput=Wu;createValidator=n=>sy;enabled(n){return n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(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&&tt("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[dt([lw]),ze]})}return e})();var uw={provide:bi,useExisting:$e(()=>Rd),multi:!0},Rd=(()=>{class e extends za{maxlength;inputName="maxlength";normalizeInput=n=>sw(n);createValidator=n=>ay(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&tt("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[dt([uw]),ze]})}return e})();var dw=new O(""),_y=new O("",{factory:()=>Pd}),Pd="always";function fw(e,t){return[...t.path,e]}function Km(e,t,n=Pd){gw(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),hw(e,t),yw(e,t),mw(e,t),pw(e,t)}function Jm(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function pw(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function gw(e,t){let n=JE(e);t.validator!==null?e.setValidators(Zm(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=XE(e);t.asyncValidator!==null?e.setAsyncValidators(Zm(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();Jm(t._rawValidators,o),Jm(t._rawAsyncValidators,o)}function hw(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Cy(e,t)})}function mw(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Cy(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Cy(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function yw(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function vw(e,t){if(!Object.hasOwn(e,"model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function _w(e){return Object.getPrototypeOf(e.constructor)===Ci}function Cw(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===In?n=i:_w(i)?r=i:o=i}),o||r||n||null}var bw={provide:dw,useFactory:()=>{let e=b(ro,{self:!0});return{setParseErrors:t=>{e.setParseErrorSource(t)},set onReset(t){e.onReset=t}}}},ro=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 _i&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=Cw(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(de)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let t=this.injector?.get(ti);if(!this.control||!t)return;let n=t.markForCheck.bind(t);this.subscription=new we,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 _i&&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=ow(t.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(o=>o instanceof vy))}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&&iw(this.renderer,t.nativeElement,r,o)}_convertErrors(t){if(t===null)return[];let n=this.control;return Object.entries(t).map(([r,o])=>new Id({context:o,kind:r,control:n}))}setParseErrorSource(t){if(t===void 0)return;let n=null,r=W(()=>{let o=t();return o.length===0?null:o.reduce((i,s)=>(i[s.kind]=s,i),{})});this.parseErrorsValidator=(()=>n).bind(this),Ct(()=>{n=r(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(t){this.parseErrorsValidator&&(t?.removeValidators(this.parseErrorsValidator),t?.updateValueAndValidity({emitEvent:!1}))}},Md=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 io=(()=>{class e extends Md{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(J(ro,2))};static \u0275dir=_e({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&ce("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:[ze]})}return e})();function Xm(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ey(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Dw=class extends Sd{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(ew(n),nw(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$a(n)&&(n.nonNullable||n.initialValueIsDefault)&&(ey(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 _i(this))}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Xm(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Xm(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){ey(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 Ew={provide:ro,useExisting:$e(()=>fr)},ty=Promise.resolve(),fr=(()=>{class e extends ro{_changeDetectorRef;callSetDisabledState;control=new Dw;static ngAcceptInputType_isDisabled;_registered=!1;_ngModelInjector;viewModel;name="";isDisabled;model;options;update=new Re;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),vw(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,Km(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:!1})}_setupWithForm(n){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Km(this.control,this,n))}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){ty.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Wu(r);ty.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?fw(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(J(xd,9),J(bi,10),J(GE,10),J(oo,10),J(ti,8),J(_y,8),J(Pe,8),J(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:[dt([Ew,bw]),ze,or,Fu(null)]})}return e})();var ww={provide:oo,useExisting:$e(()=>Fd),multi:!0},Fd=(()=>{class e extends Ci{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=wt(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&&N("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[dt([ww]),ze]})}return e})();var xw={provide:oo,useExisting:$e(()=>so),multi:!0};function by(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Sw(e){return e.split(":")[0]}var so=(()=>{class e extends Ci{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;appRefInjector=b(Dn).injector;destroyRef=b(de);cdr=b(ti);_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=by(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=Sw(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(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&&N("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[dt([xw]),ze]})}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(by(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)(J(xt),J(Bt),J(so,9))};static \u0275dir=_e({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),Iw={provide:oo,useExisting:$e(()=>Dy),multi:!0};function ny(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Mw(e){return e.split(":")[0]}var Dy=(()=>{class e extends Ci{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=Mw(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(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&&N("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[dt([Iw]),ze]})}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(ny(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(ny(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)(J(xt),J(Bt),J(Dy,9))};static \u0275dir=_e({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var Tw=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=bn({type:e});static \u0275inj=Yt({})}return e})();var ao=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:_y,useValue:n.callSetDisabledState??Pd}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=bn({type:e});static \u0275inj=Yt({imports:[Tw]})}return e})();var Nw=["dlg"];function Aw(e,t){if(e&1&&(on(0,"p",3),g(1),wn()),e&2){let n=v();f(),C(n.subject)}}var co=class e{open=!1;title="Are you sure?";subject="";message="This cannot be undone.";confirmLabel="Delete";busy=!1;confirmed=new Re;cancelled=new Re;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(Nw,5),n&2){let o;ju(o=Bu())&&(r.dlg=o.first)}},inputs:{open:"open",title:"title",subject:"subject",message:"message",confirmLabel:"confirmLabel",busy:"busy"},outputs:{confirmed:"confirmed",cancelled:"cancelled"},features:[or],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),Wr("cancel",function(i){return r.onEscape(i)})("click",function(i){return r.onBackdrop(i)}),on(2,"h3",2),g(3),wn(),D(4,Aw,2,1,"p",3),on(5,"p",4),g(6),wn(),on(7,"div",5)(8,"button",6),Wr("click",function(){return r.cancelled.emit()}),g(9,"Cancel"),wn(),on(10,"button",7),Wr("click",function(){return r.confirmed.emit()}),g(11),wn()()()),n&2&&(f(3),C(r.title),f(),E(r.subject?4:-1),f(2),C(r.message),f(4),da("disabled",r.busy),f(),T(" ",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 Ey(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 wy(e){let t=e?.status;return typeof t=="number"?t:void 0}function Ow(e){return Ey(e)?.code}function kw(e,t={},n="Request failed"){let r=wy(e);if(r!==void 0&&t[r])return t[r];let o=Ey(e)?.message;return typeof o=="string"&&o.trim()?o:r===void 0?`${n}.`:`${n} (${r}).`}function ue(e,t,n={},r="Request failed"){let o=kw(e,n,r),i=Um().onError;if(i)try{i({feature:t,message:o,status:wy(e),code:Ow(e)})}catch{}return o}function qa(e){let t=A(null),n=A(!1);return{pending:t.asReadonly(),open:W(()=>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(ue(o,e.feature,e.byStatus??{},e.fallback??"Could not delete it"))}}))}}}function pr({lookup:e,fallbackHref:t,onError:n,feature:r}){e.subscribe({next:({url:o})=>{window.open(o??t,"_blank","noopener")},error:o=>n(ue(o,r,{},"Could not open the file"))})}var Za=[{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 Di(e,t){return e.filter(n=>t.test(n.message)).length}function xy(e,t){let n=e?.log??[],o=n.map(Ve=>Ve.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),p=e?.status==="failed",h=e?.status==="done",y=[],m=Di(n,/narration FAILED/),_=Di(n,/image FAILED|visual FAILED|NOT FOUND/),x=Di(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`),x&&y.push(`${x} of your images could not be redrawn, so they appear as you uploaded them`);let R=Ve=>Za.find(Nt=>Nt.id===Ve)??Za[0];if(p)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(h)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 F=Ve=>t?Math.min(Ve,t):Ve,le=F(Di(n,/narration ✓/)),Qe=F(Di(n,/image ✓|visual ✓|= your image|= your uploaded image|= slide page/));if(/^QC:/m.test(o))return{stage:R("checking"),percent:l,counter:"",headline:"Almost there \u2014 checking the finished video.",warnings:y,etaSeconds:lo(n,l),done:!1,failed:!1};if(/Rendering (video|edited video)/.test(o))return{stage:R("assembly"),percent:l,counter:"",headline:"Joining everything into one video. This is the longest step.",warnings:y,etaSeconds:lo(n,l),done:!1,failed:!1};let rt=/Voiceover:/.test(o),Ke=/Edit plan:/.test(o),ot=/Illustrations:|Visuals:/.test(o);if(Ke)return{stage:R("illustration"),percent:l,counter:"",headline:"Applying your edits to the video.",warnings:y,etaSeconds:lo(n,l),done:!1,failed:!1};if(rt&&le<t)return{stage:R("narration"),percent:l,counter:t?`${le} of ${t} scenes`:"",headline:ot?"Recording the narration and drawing the scenes.":"Recording the narration.",warnings:y,etaSeconds:lo(n,l),done:!1,failed:!1};if(ot){let Ve=/Visuals: using/.test(o);return{stage:R("illustration"),percent:l,counter:t?`${Qe} of ${t} scenes`:"",headline:Ve?"Preparing your slides as the video's pictures.":"Drawing the pictures for each scene.",warnings:y,etaSeconds:lo(n,l),done:!1,failed:!1}}if(rt)return{stage:R("narration"),percent:l,counter:t?`${le} of ${t} scenes`:"",headline:"Recording the narration.",warnings:y,etaSeconds:lo(n,l),done:!1,failed:!1};let zt=e?.queuePosition??0;return{stage:R("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 lo(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 Sy(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}),gt=(e,t)=>t.id;function Rw(e,t){if(e&1&&(d(0,"div",3),g(1),u()),e&2){let n=v();f(),C(n.error())}}function Pw(e,t){e&1&&g(0," \xB7 MP4, MOV, WEBM ")}function Fw(e,t){if(e&1){let n=B();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),g(3),u(),d(4,"span",27),g(5,"PDF, DOCX, TXT, MD, SRT"),D(6,Pw,1,0),u()()}if(e&2){let n=v();f(),w("accept",n.acceptedFiles()),f(2),C(n.uploading()?"Reading\u2026":"Choose a file"),f(3),E(n.editMode()==="on"?6:-1)}}function Lw(e,t){e&1&&g(0," \xB7 transcribed ")}function Vw(e,t){if(e&1&&(d(0,"p",31),g(1),u()),e&2){let n=v();f(),T(" \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 jw(e,t){if(e&1){let n=B();d(0,"div",10)(1,"div")(2,"div",28),g(3),u(),d(4,"div",29),g(5),ft(6,"number"),D(7,Lw,1,0),u()(),d(8,"button",30),N("click",function(){I(n);let o=v(2);return M(o.reset())}),g(9,"Replace"),u()(),D(10,Vw,2,1,"p",31),d(11,"p",32),g(12,"Editing an existing video \u2014 describe the changes below."),u()}if(e&2){let n=t;f(3),T("\u{1F3AC} ",n.filename),f(2),St(" ",cr(6,5,n.durationSec,"1.0-0"),"s \xB7 ",n.segments.length," segments"),f(2),E(n.transcribed?7:-1),f(3),E(n.transcribed?-1:10)}}function Bw(e,t){if(e&1&&D(0,jw,13,8),e&2){let n,r=v();E((n=r.sourceVideo())?0:-1,n)}}function Hw(e,t){if(e&1&&g(0),e&2){let n=v(2);T(" \xB7 ",n.doc().pages," slide pages ")}}function Uw(e,t){if(e&1){let n=B();d(0,"div",10)(1,"div")(2,"div",28),g(3),u(),d(4,"div",29),g(5),ft(6,"number"),D(7,Hw,1,1),u()(),d(8,"button",30),N("click",function(){I(n);let o=v();return M(o.reset())}),g(9,"Replace"),u()()}if(e&2){let n=v();f(3),C(n.doc().filename),f(2),T(" ",ar(6,3,n.doc().chars)," characters"),f(2),E(n.hasSlides()?7:-1)}}function $w(e,t){e&1&&(d(0,"p",11),g(1,"Pick a visual style \u2014 the AI builds the whole video in that look. Everything else is optional."),u())}function zw(e,t){if(e&1){let n=B();d(0,"button",33),N("click",function(){let o=I(n).$implicit,i=v();return M(i.videoType=o.id)}),d(1,"b"),g(2),u(),d(3,"span"),g(4),u()()}if(e&2){let n=t.$implicit,r=v();ce("sel",r.videoType===n.id),w("disabled",!r.doc()),f(2),St("",n.icon," ",n.name),f(2),C(n.desc)}}function Gw(e,t){if(e&1){let n=B();d(0,"label",34),g(1,"Describe the edits"),u(),d(2,"textarea",35),ee("ngModelChange",function(o){I(n);let i=v();return re(i.brief,o)||(i.brief=o),M(o)}),u(),z()}if(e&2){let n=v();f(2),X("ngModel",n.brief),G()}}function Ww(e,t){if(e&1){let n=B();d(0,"label",34),g(1,"Creative brief (optional) \u2014 how it should look & feel"),u(),d(2,"textarea",36),ee("ngModelChange",function(o){I(n);let i=v();return re(i.brief,o)||(i.brief=o),M(o)}),u(),z()}if(e&2){let n=v();f(2),X("ngModel",n.brief),w("disabled",!n.doc()),G()}}function qw(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function Zw(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit,r=v();w("value",n.id),f(),C(r.voiceLabel(n))}}function Yw(e,t){if(e&1){let n=B();d(0,"label",39)(1,"input",58),ee("ngModelChange",function(o){I(n);let i=v(2);return re(i.useSourceSlides,o)||(i.useSourceSlides=o),M(o)}),u(),z(),d(2,"span"),g(3,"\u{1F4C4} Use my uploaded slides as the visuals \u2014 "),d(4,"b"),g(5,"no new images will be generated"),u()()()}if(e&2){let n=v(2);f(),X("ngModel",n.useSourceSlides),w("disabled",!n.doc()),G()}}function Qw(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function Kw(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function Jw(e,t){if(e&1&&(d(0,"div",52),g(1),u()),e&2){let n=v(2);f(),C(n.refName())}}function Xw(e,t){if(e&1){let n=B();d(0,"div",57)(1,"span",59),g(2),u(),d(3,"input",60),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.note,o)||(i.note=o),M(o)}),u(),z(),d(4,"button",61),N("click",function(){let o=I(n).$implicit,i=v(2);return M(i.removeImage(o.id))}),g(5,"\xD7"),u()()}if(e&2){let n=t.$implicit;f(2),C(n.name),f(),X("ngModel",n.note),w("ngModelOptions",Ne(3,$t)),G()}}function ex(e,t){if(e&1){let n=B();d(0,"div",22)(1,"div",37),g(2,"Optional \u2014 refine the look or add references"),u(),d(3,"div",38),D(4,Yw,6,2,"label",39),d(5,"div",14)(6,"div")(7,"label",40),g(8,"Aspect ratio"),u(),d(9,"select",41),ee("ngModelChange",function(o){I(n);let i=v();return re(i.aspectRatio,o)||(i.aspectRatio=o),M(o)}),Z(10,Qw,2,2,"option",18,gt),u(),z(),u(),d(12,"div")(13,"label",42),g(14,"Depth"),u(),d(15,"select",43),ee("ngModelChange",function(o){I(n);let i=v();return re(i.depth,o)||(i.depth=o),M(o)}),Z(16,Kw,2,2,"option",18,gt),u(),z(),u()(),d(18,"div",44)(19,"div")(20,"span",45),g(21,"\u{1F39E}\uFE0F Reference video \u2014 the AI copies its look, pacing & style"),u(),d(22,"label",46),No(),d(23,"svg",47),Ce(24,"path",48)(25,"path",49)(26,"path",50),u(),Ao(),d(27,"span"),g(28,"Choose a video"),u(),d(29,"input",51),N("change",function(o){I(n);let i=v();return M(i.onRefVideo(o))}),u()(),D(30,Jw,2,1,"div",52),u(),d(31,"div")(32,"span",45),g(33,"\u{1F5BC}\uFE0F Images/diagrams to include (multiple)"),u(),d(34,"label",46),No(),d(35,"svg",47),Ce(36,"rect",53)(37,"circle",54)(38,"path",55),u(),Ao(),d(39,"span"),g(40,"Choose images"),u(),d(41,"input",56),N("change",function(o){I(n);let i=v();return M(i.onUserImages(o))}),u()(),Z(42,Xw,6,4,"div",57,gt),u()()()()}if(e&2){let n=v();f(4),E(n.hasSlides()?4:-1),f(5),X("ngModel",n.aspectRatio),w("disabled",!n.doc()),G(),f(),Y(n.aspects),f(5),X("ngModel",n.depth),w("disabled",!n.doc()),G(),f(),Y(n.depths),f(6),ce("disabled",!n.doc()),f(7),w("disabled",!n.doc()),f(),E(n.refName()?30:-1),f(4),ce("disabled",!n.doc()),f(7),w("disabled",!n.doc()),f(),Y(n.userImages())}}function tx(e,t){if(e&1&&(d(0,"span",66),g(1),u()),e&2){let n=v();f(),T("",n.costEstimate.kept," kept")}}function nx(e,t){if(e&1&&(d(0,"span",66),g(1),u()),e&2){let n=v();f(),T("",n.costEstimate.cuts," cut")}}function rx(e,t){if(e&1&&(d(0,"p",67)(1,"i"),g(2),u()()),e&2){let n=v();f(2),C(n.plan.notes)}}function ox(e,t){e&1&&Ce(0,"img",79),e&2&&w("src",t,na)}function ix(e,t){if(e&1&&g(0),e&2){let n=v().$implicit;sr(" \xB7 source ",n.srcId," (",n.startSec,"s\u2013",n.endSec,"s) ")}}function sx(e,t){e&1&&g(0," \xB7 new ")}function ax(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function cx(e,t){if(e&1){let n=B();d(0,"span",82),g(1,"Narration"),u(),d(2,"textarea",83),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.narration,o)||(i.narration=o),M(o)}),u(),z()}if(e&2){let n=v().$implicit;f(2),X("ngModel",n.narration),w("ngModelOptions",Ne(2,$t)),G()}}function lx(e,t){if(e&1){let n=B();d(0,"span",82),g(1,"Visual / image prompt"),u(),d(2,"textarea",84),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.imagePrompt,o)||(i.imagePrompt=o),M(o)}),u(),z()}if(e&2){let n=v().$implicit;f(2),X("ngModel",n.imagePrompt),w("ngModelOptions",Ne(2,$t)),G()}}function ux(e,t){e&1&&(d(0,"p",81),g(1,"Kept exactly as it is \u2014 no cost."),u())}function dx(e,t){if(e&1){let n=B();d(0,"div",76)(1,"div",77)(2,"span",78),D(3,ox,1,1,"img",79),g(4),D(5,ix,1,3)(6,sx,1,0),u(),d(7,"select",80),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.action,o)||(i.action=o),M(o)}),Z(8,ax,2,2,"option",18,gt),u(),z(),u(),D(10,cx,3,3),D(11,lx,3,3),D(12,ux,2,0,"p",81),u()}if(e&2){let n,r=t.$implicit,o=t.$index,i=v(2);ce("cut",r.action==="cut"),f(3),E((n=i.keyframe(r))?3:-1,n),f(),T(" Segment ",o+1),f(),E(r.srcId?5:6),f(2),X("ngModel",r.action),w("ngModelOptions",Ne(10,$t)),G(),f(),Y(i.actionsFor(r)),f(2),E(r.action!=="keep"&&r.action!=="cut"?10:-1),f(),E(r.action==="replace"||r.action==="new"?11:-1),f(),E(r.action==="keep"?12:-1)}}function fx(e,t){if(e&1){let n=B();d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"3"),u(),d(4,"h2",8),g(5,"Review the edits"),u(),d(6,"span",62),g(7,"\u2014 change any action, then produce"),u()(),d(8,"div",63)(9,"div")(10,"div",64),g(11),u(),d(12,"div",65)(13,"span",66),g(14),u(),D(15,tx,2,1,"span",66),D(16,nx,2,1,"span",66),u(),D(17,rx,3,1,"p",67),u(),d(18,"div",68)(19,"div",69),g(20),u(),d(21,"div",70),g(22,"estimated"),u(),d(23,"div",71),g(24),ft(25,"number"),u()()(),Z(26,dx,13,11,"div",72,En),d(28,"div",73)(29,"button",74),N("click",function(){I(n);let o=v();return M(o.produceEdits())}),g(30),u(),d(31,"button",75),N("click",function(){I(n);let o=v();return M(o.makePlan())}),g(32,"\u21BB Re-plan the edits"),u()()()}if(e&2){let n=t,r=v();f(11),C(n.plan.title),f(3),T("",n.plan.segments.length," segments"),f(),E(n.costEstimate.kept?15:-1),f(),E(n.costEstimate.cuts?16:-1),f(),E(n.plan.notes?17:-1),f(3),T("$",n.costEstimate.totalUsd),f(4),St(" ",n.costEstimate.images," images \xB7 ",ar(25,11,n.costEstimate.ttsChars)," VO chars "),f(2),Y(n.plan.segments),f(3),w("disabled",r.producing()),f(),T(" ",r.producing()?"Producing\u2026":r.hasVideo()?"\u2713 Regenerate video":"\u2713 Confirm & produce video"," "),f(),w("disabled",r.planning()||r.producing())}}function px(e,t){if(e&1&&(d(0,"span"),g(1),u()),e&2){let n=v();f(),St("\u{1F399}\uFE0F ",n.plan.voice.gender,", ",n.plan.voice.feel," voice")}}function gx(e,t){e&1&&(d(0,"span"),g(1,"\u{1F39E}\uFE0F styled after your reference video"),u())}function hx(e,t){e&1&&(d(0,"span"),g(1,"\u{1F4C4} using your slides"),u())}function mx(e,t){if(e&1&&(d(0,"p",67)(1,"i"),g(2),u()()),e&2){let n=v();f(2),C(n.plan.voice.rationale)}}function yx(e,t){if(e&1&&g(0),e&2){let n=v();T(" + ",n.costEstimate.restyles," restyled ")}}function vx(e,t){if(e&1&&g(0),e&2){let n=v();T(" + ",n.costEstimate.userImages-(n.costEstimate.restyles||0)," of yours ($0) ")}}function _x(e,t){if(e&1&&g(0),e&2){let n=v();T(" + ",n.costEstimate.sourcePages," slides ($0) ")}}function Cx(e,t){if(e&1&&(d(0,"span",100),g(1,"Visual"),u(),d(2,"div",81),g(3),u()),e&2){let n=v().$implicit;f(3),T("\u{1F4C4} Your slide, page ",n.visual.sourcePage," (used as-is, $0)")}}function bx(e,t){if(e&1){let n=B();d(0,"span",100),g(1,"Visual \u2014 your uploaded image"),u(),d(2,"div",101)(3,"b",102),g(4),u(),d(5,"select",103),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.visual.treatment,o)||(i.visual.treatment=o),M(o)}),d(6,"option",104),g(7,"Use as-is (exact, $0 \u2014 full image shown, never cropped)"),u(),d(8,"option",105),g(9,"Redraw in video style via Gemini (~$0.04 \u2014 blends in; labels may shift, QC checks it)"),u()(),z(),d(10,"button",106),N("click",function(){I(n);let o=v().$implicit,i=v(2);return M(i.detachImage(o))}),g(11,"\u2715 detach"),u()()}if(e&2){let n=v().$implicit,r=v(2);f(4),C(r.imageName(n.visual.userImageId)),f(),X("ngModel",n.visual.treatment),w("ngModelOptions",Ne(3,$t)),G()}}function Dx(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.name)}}function Ex(e,t){if(e&1){let n=B();d(0,"select",109),N("ngModelChange",function(o){I(n);let i=v(2).$implicit,s=v(2);return M(s.attachImage(i,o))}),d(1,"option",21),g(2,"\u2026or use one of your uploaded images here"),u(),Z(3,Dx,2,2,"option",18,gt),u(),z()}if(e&2){let n=v(4);w("ngModel","")("ngModelOptions",Ne(2,$t)),G(),f(3),Y(n.userImages())}}function wx(e,t){if(e&1){let n=B();d(0,"span",82),g(1,"Visual / image prompt"),u(),d(2,"textarea",107),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.visual.imagePrompt,o)||(i.visual.imagePrompt=o),M(o)}),u(),z(),D(3,Ex,5,3,"select",108)}if(e&2){let n=v().$implicit,r=v(2);f(2),X("ngModel",n.visual.imagePrompt),w("ngModelOptions",Ne(3,$t)),G(),f(),E(r.userImages().length?3:-1)}}function xx(e,t){if(e&1){let n=B();d(0,"div",76)(1,"div",77)(2,"span"),g(3),u(),d(4,"span",66),g(5),u()(),d(6,"span",82),g(7,"Narration"),u(),d(8,"textarea",97),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.narration,o)||(i.narration=o),M(o)}),u(),z(),d(9,"span",82),g(10,"Key points on screen \u2014 one per line"),u(),d(11,"textarea",98),N("ngModelChange",function(o){let i=I(n).$implicit,s=v(2);return M(s.setKeyPoints(i,o))}),u(),z(),d(12,"span",82),g(13,"Title overlay (optional)"),u(),d(14,"input",99),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.titleOverlay,o)||(i.titleOverlay=o),M(o)}),u(),z(),D(15,Cx,4,1)(16,bx,12,4)(17,wx,4,4),u()}if(e&2){let n=t.$implicit,r=t.$index,o=v(2);f(3),St("Scene ",r+1," \xB7 ",n.purpose),f(2),T("~",n.durationHintSec,"s"),f(3),X("ngModel",n.narration),w("ngModelOptions",Ne(10,$t)),G(),f(3),w("ngModel",o.keyPointsText(n))("ngModelOptions",Ne(11,$t)),G(),f(3),X("ngModel",n.titleOverlay),w("ngModelOptions",Ne(12,$t)),G(),f(),E(n.visual.sourcePage?15:n.visual.userImageId?16:17)}}function Sx(e,t){e&1&&(d(0,"p",88),g(1,"Enter a content name to produce the video."),u())}function Ix(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit,r=v(2);w("value",n.id),f(),C(r.voiceLabel(n))}}function Mx(e,t){if(e&1){let n=B();d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"3"),u(),d(4,"h2",8),g(5,"Review the scene plan"),u(),d(6,"span",62),g(7,"\u2014 check it, then produce"),u()(),d(8,"div",63)(9,"div")(10,"div",64),g(11),u(),d(12,"div",65)(13,"span",66),g(14),u(),d(15,"span",66),g(16),u(),d(17,"span",66),g(18),u(),d(19,"span",66),g(20),u(),D(21,px,2,2,"span"),D(22,gx,2,0,"span"),D(23,hx,2,0,"span"),u(),D(24,mx,3,1,"p",67),u(),d(25,"div",68)(26,"div",69),g(27),u(),d(28,"div",70),g(29,"estimated"),u(),d(30,"div",71),g(31),D(32,yx,1,1),D(33,vx,1,1),D(34,_x,1,1),g(35),ft(36,"number"),u()()(),Z(37,xx,18,13,"div",76,gt),d(39,"label",85),g(40,"Content name "),d(41,"span",86),g(42,"*"),u(),g(43," \u2014 names the finished video (edit if needed)"),u(),d(44,"input",87),N("ngModelChange",function(o){I(n);let i=v();return M(i.contentName.set(o))}),u(),z(),D(45,Sx,2,0,"p",88),d(46,"div",73)(47,"button",74),N("click",function(){I(n);let o=v();return M(o.produce())}),g(48),u(),d(49,"button",75),N("click",function(){I(n);let o=v();return M(o.makePlan())}),g(50,"\u21BB Regenerate plan"),u()(),d(51,"div",89)(52,"label",90),g(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),N("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),g(58,"Change voice (optional)"),u(),d(59,"select",95),ee("ngModelChange",function(o){I(n);let i=v();return re(i.fbVoice,o)||(i.fbVoice=o),M(o)}),d(60,"option",21),g(61,"Keep current voice"),u(),Z(62,Ix,2,2,"option",18,gt),u(),z(),u(),d(64,"button",75),N("click",function(){I(n);let o=v();return M(o.revise())}),g(65),u()()(),d(66,"p",96),g(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();f(11),C(n.plan.title),f(3),T("",n.plan.scenes.length," scenes"),f(2),T("~",n.plan.estimatedDurationSec,"s"),f(2),C(n.plan.videoType),f(2),C(n.plan.aspectRatio||r.aspectRatio),f(),E(n.plan.voice?.gender?21:-1),f(),E(r.styleGuide()?22:-1),f(),E(n.plan.usesSourceSlides?23:-1),f(),E(n.plan.voice?.rationale?24:-1),f(3),T("$",n.costEstimate.totalUsd),f(4),T(" ",n.costEstimate.images," new images"),f(),E(n.costEstimate.restyles?32:-1),f(),E(n.costEstimate.userImages?33:-1),f(),E(n.costEstimate.sourcePages?34:-1),f(),T(" \xB7 ",ar(36,26,n.costEstimate.ttsChars)," VO chars "),f(2),Y(n.plan.scenes),f(7),ce("invalid",!r.contentName().trim()),w("ngModel",r.contentName()),G(),f(),E(r.contentName().trim()?-1:45),f(2),w("disabled",r.producing()||!r.contentName().trim()),f(),T(" ",r.producing()?"Producing\u2026":r.hasVideo()?"\u2713 Regenerate video":"\u2713 Confirm & produce video"," "),f(),w("disabled",r.planning()||r.producing()),f(5),w("ngModel",r.feedback()),G(),f(5),X("ngModel",r.fbVoice),G(),f(3),Y(r.voices()),f(2),w("disabled",!r.feedback().trim()||r.revising()),f(),T(" ",r.revising()?"Revising\u2026":"\u21BB Regenerate plan with this feedback"," ")}}function Tx(e,t){if(e&1&&(d(0,"span"),g(1),u()),e&2){let n=v();f(),C(n.counter)}}function Nx(e,t){if(e&1&&(d(0,"span"),g(1),u()),e&2){let n=v(3);f(),C(n.eta())}}function Ax(e,t){e&1&&(d(0,"span",117),g(1,"You can leave this page \u2014 it keeps going."),u())}function Ox(e,t){if(e&1&&(d(0,"span",127),g(1),u()),e&2){let n=v().$implicit;f(),C(n.detail)}}function kx(e,t){if(e&1&&(d(0,"li")(1,"span",124),g(2),u(),d(3,"div",125)(4,"span",126),g(5),u(),D(6,Ox,2,1,"span",127),u()()),e&2){let n=t.$implicit,r=t.$index,o=t.$count,i=v(4);qr("prod-step-"+i.stageState(r)),ce("is-last",r===o-1),f(2),T(" ",i.stageState(r)==="done"?"\u2713":i.stageState(r)==="active"?n.icon:r+1," "),f(3),C(n.label),f(),E(i.stageState(r)==="active"?6:-1)}}function Rx(e,t){if(e&1&&(d(0,"ol",118),Z(1,kx,7,7,"li",123,gt),u()),e&2){let n=v(3);f(),Y(n.stages)}}function Px(e,t){if(e&1&&(d(0,"div"),g(1),u()),e&2){let n=t.$implicit;f(),T("\u26A0 ",n)}}function Fx(e,t){if(e&1&&(d(0,"div",119),Z(1,Px,2,1,"div",null,Jo),d(3,"span",117),g(4,"The video will still be made."),u()()),e&2){let n=v();f(),Y(n.warnings)}}function Lx(e,t){if(e&1&&(d(0,"div",120),g(1),u()),e&2){let n=v();f(),C(n.headline)}}function Vx(e,t){if(e&1&&(d(0,"pre",122),g(1),u()),e&2){let n=v(3);f(),C(n.job()?n.logText(n.job()):"Starting\u2026")}}function jx(e,t){if(e&1){let n=B();d(0,"div",110)(1,"span",111),g(2),u(),d(3,"div",112)(4,"strong"),g(5),u(),d(6,"span",113),g(7),u()(),d(8,"span",114),g(9),u()(),d(10,"div",115),Ce(11,"i"),u(),d(12,"div",116),D(13,Tx,2,1,"span"),D(14,Nx,2,1,"span"),D(15,Ax,2,0,"span",117),u(),D(16,Rx,3,0,"ol",118),D(17,Fx,5,0,"div",119),D(18,Lx,2,1,"div",120),d(19,"button",121),N("click",function(){I(n);let o=v(2);return M(o.showLog.set(!o.showLog()))}),g(20),u(),D(21,Vx,2,1,"pre",122)}if(e&2){let n=t,r=v(2);ce("is-failed",n.failed)("is-done",n.done),f(),ce("spin",!n.done&&!n.failed),f(),C(n.stage.icon),f(3),C(n.stage.label),f(2),C(n.headline),f(2),T("",n.percent,"%"),f(),ce("is-working",!n.done&&!n.failed),tt("aria-valuenow",n.percent),f(),sn("width",n.percent,"%"),f(2),E(n.counter?13:-1),f(),E(r.eta()?14:-1),f(),E(!n.done&&!n.failed?15:-1),f(),E(n.failed?-1:16),f(),E(n.warnings.length?17:-1),f(),E(n.failed?18:-1),f(2),T(" ",r.showLog()?"Hide":"Show"," technical log "),f(),E(r.showLog()?21:-1)}}function Bx(e,t){if(e&1&&(d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"4"),u(),d(4,"h2",8),g(5,"Production"),u()(),D(6,jx,22,23),u()),e&2){let n,r=v();f(6),E((n=r.progress())?6:-1,n)}}function Hx(e,t){if(e&1&&g(0),e&2){let n=v(3);T(" (auto-fixed: ",n.autoFixed.join(", "),") ")}}function Ux(e,t){if(e&1&&(d(0,"p",131),g(1," \u2705 "),d(2,"b"),g(3,"Visual QC passed"),u(),g(4," \u2014 framing, cropping and text placement checked on every scene"),D(5,Hx,1,1),u()),e&2){let n=v(2);f(5),E(n.autoFixed?.length?5:-1)}}function $x(e,t){if(e&1&&g(0),e&2){let n=t.$implicit;sr(" ",n.type," (",n.severity,") \u2014 ",n.note,"; ")}}function zx(e,t){if(e&1&&(d(0,"li")(1,"b"),g(2),u(),g(3,": "),Z(4,$x,1,3,null,null,En),u()),e&2){let n=t.$implicit;f(2),C(n.id),f(2),Y(n.issues)}}function Gx(e,t){if(e&1&&(d(0,"div",132)(1,"p"),g(2,"\u26A0\uFE0F "),d(3,"b"),g(4,"Visual QC found issues"),u(),g(5," \u2014 use the feedback box above to fix them:"),u(),d(6,"ul"),Z(7,zx,6,1,"li",null,gt),u()()),e&2){let n=v(4);f(7),Y(n.qcIssues())}}function Wx(e,t){if(e&1&&D(0,Ux,6,1,"p",131)(1,Gx,9,0,"div",132),e&2){let n=v();E(n.pass?0:1)}}function qx(e,t){e&1&&D(0,Wx,2,1),e&2&&E(t.skipped?-1:0)}function Zx(e,t){if(e&1){let n=B();d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"5"),u(),d(4,"h2",8),g(5,"Your video"),u()(),D(6,qx,1,1),Ce(7,"video",128),d(8,"div",73)(9,"button",129),N("click",function(){I(n);let o=v();return M(o.download())}),g(10,"\u2B07 Download MP4"),u(),d(11,"button",130),N("click",function(){I(n);let o=v();return M(o.deleteVideo.ask(o.job()))}),g(12," \u{1F5D1} Delete video "),u()(),d(13,"p",96),g(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();f(6),E((n=r.job()?.qc)?6:-1,n),f(),w("src",r.playbackSrc(),na),f(4),w("disabled",r.deleteVideo.busy())}}var Ya=class e{api=b(Ut);destroyRef=b(de);get untilGone(){return t=>t.pipe(eo(this.destroyRef))}doc=A(null);editMode=nt("off");defaultLanguage=nt(void 0);defaultAspectRatio=nt(void 0);defaultDepth=nt(void 0);defaultVoice=nt(void 0);planReady=xn();videoStarted=xn();videoReady=xn();sourceVideo=A(null);editPlan=A(null);uploading=A(!1);planning=A(!1);revising=A(!1);result=A(null);error=A("");voices=A([]);styleGuide=A("");refName=A("");userImages=A([]);videoType="watercolor";contentName=A("");brief="";useSourceSlides=!1;language="hi";aspectRatio="16:9";depth="standard";voicePref="";producing=A(!1);job=A(null);pollTimer=null;seeded=!1;feedback=A("");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=W(()=>(this.doc()?.pages??0)>0);isEditMode=W(()=>this.sourceVideo()!==null);hasSource=W(()=>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(){Ct(()=>{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=>{ue(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=>{vd(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.")):vd(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(ue(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(ue(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(ue(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(ue(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(ue(n,"content-studio")),this.planning.set(!1)}}))}acceptedFiles=W(()=>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(ue(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(ue(n,"content-studio")),this.revising.set(!1)}}))}keyPointsText(t){return(t.onScreenText||[]).join(`
|
|
10
|
+
Use an empty apiBase only when the service is same-origin.`)}function Hm(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.`);Jr=j(j({},jm),e),Bm=!0}function Um(){return Jr}var $m={get apiBase(){return OE(),Jr.apiBase},get getAuthHeaders(){return Jr.getAuthHeaders},get creator(){return Jr.creator},get onError(){return Jr.onError}};var Xr=new O("AASTRIKA_CONFIG");var Ut=class e{http=b(Fa);config=b(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=A(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)}assessmentJob(t){return this.http.get(`${this.assessment}/${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",r){return this.http.get(`${this.assessment}/export/${t}${zm(n,r)}&as=url`)}exportHref(t,n="xlsx",r){return`${this.assessment}/export/${t}${zm(n,r)}`}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=te({token:e,factory:e.\u0275fac,providedIn:"root"})};function vd(e){return e.video===!0}function zm(e,t){let n=new URLSearchParams({format:e});return t&&n.set("language",t),`?${n}`}var Gm=(e,t)=>{let n=b(Xr),r=b(Ut).creator(),o=i=>!r||!i.body||typeof i.body!="object"||i.body instanceof FormData||Array.isArray(i.body)||"creator"in i.body?i:i.clone({body:U(j({},i.body),{creator:r})});if(!n.getAuthHeaders){let i=o(e);return t(i)}return Gt(Promise.resolve(n.getAuthHeaders())).pipe(Fn(i=>t(o(e).clone({setHeaders:i}))))};var kE={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function RE(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function PE(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var _d;function FE(e,t){if(!_d){let n=Element.prototype;_d=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?_d.call(e,t):!1}function LE(e){let t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[RE(r)]=[n,o]}),t}function VE(e,t){return ni(e).inputs}function jE(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],l=BE(a,t,o);l!==-1&&r[l].push(a)}return r}function BE(e,t,n){let r=n;return PE(e)&&t.some((o,i)=>o!=="*"&&FE(e,o)?(r=i,!0):!1),r}var HE=10,Cd=class{component;componentMirror;inputMap=new Map;constructor(t){this.component=t,this.componentMirror=ni(t);for(let n of this.componentMirror.inputs)this.inputMap.set(n.propName,n.templateName)}create(t){return new bd(this.component,t,this.inputMap)}},bd=class{component;injector;inputMap;eventEmitters=new Dr(1);events=this.eventEmitters.pipe(Fn(t=>Cl(...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(De),this.appRef=this.injector.get(Dn),this.cdScheduler=n.get(mt),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=kE.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},HE))})}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),Iu(this.componentRef.hostView)&&(Mu(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(t){let n=Pe.create({providers:[],parent:this.injector}),r=jE(t,ni(this.component).ngContentSelectors);this.componentRef=Yh(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=ni(this.component).outputs.map(({propName:r,templateName:o})=>{let i=t.instance[r];return new Q(s=>{let a=i.subscribe(l=>s.next({name:o,value:l}));return()=>a.unsubscribe()})});this.eventEmitters.next(n)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},Dd=class extends HTMLElement{ngElementEventsSubscription=null};function Wm(e,t){let n=VE(e),r=t.strategyFactory||new Cd(e),o=LE(n);class i extends Dd{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:l,transform:c})=>{if(!Object.hasOwn(this,l))return;let p=this[l];delete this[l],a.setInputValue(l,p,c)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,p){let[h,y]=o[a];this.ngElementStrategy.setInputValue(h,c,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 l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return n.forEach(({propName:s,transform:a,isSignal:l})=>{Object.defineProperty(i.prototype,s,{get(){let c=this.ngElementStrategy.getInputValue(s);return l&&Qn(c)?c():c},set(c){this.ngElementStrategy.setInputValue(s,c,a)},configurable:!0,enumerable:!0})}),i}function qm(e,t){return typeof customElements>"u"||customElements.get(e.tag)?!1:(customElements.define(e.tag,Wm(e.component,{injector:t})),!0)}function eo(e){e||(e=b(de));let t=new Q(n=>{if(e.destroyed){n.next();return}return e.onDestroy(n.next.bind(n))});return n=>n.pipe(wl(t))}var ry=(()=>{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)(J(Bt),J(xt))};static \u0275dir=_e({type:e})}return e})(),Ci=(()=>{class e extends ry{static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,features:[ze]})}return e})(),oo=new O(""),UE={provide:oo,useExisting:$e(()=>Td),multi:!0},Td=(()=>{class e extends Ci{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(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&&N("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[dt([UE]),ze]})}return e})(),$E={provide:oo,useExisting:$e(()=>In),multi:!0};function zE(){let e=Mt()?Mt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var GE=new O(""),In=(()=>{class e extends ry{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!zE())}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)(J(Bt),J(xt),J(GE,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&&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:[dt([$E]),ze]})}return e})();function Nd(e){return e==null||Ad(e)===0}function Ad(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var bi=new O(""),WE=new O(""),qE=/^(?=.{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])?)*$/,Ed=class{static min(t){return oy(t)}static max(t){return iy(t)}static required(t){return sy(t)}static requiredTrue(t){return ZE(t)}static email(t){return YE(t)}static minLength(t){return QE(t)}static maxLength(t){return ay(t)}static pattern(t){return KE(t)}static nullValidator(t){return ja()}static compose(t){return py(t)}static composeAsync(t){return hy(t)}};function oy(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 iy(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 sy(e){return Nd(e.value)?{required:!0}:null}function ZE(e){return e.value===!0?null:{required:!0}}function YE(e){return Nd(e.value)||qE.test(e.value)?null:{email:!0}}function QE(e){return t=>{let n=t.value?.length??Ad(t.value);return n===null||n===0?null:n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}function ay(e){return t=>{let n=t.value?.length??Ad(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function KE(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(Nd(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function ja(e){return null}function ly(e){return e!=null}function cy(e){return Gr(e)?Gt(e):e}function uy(e){let t={};return e.forEach(n=>{t=n!=null?j(j({},t),n):t}),Object.keys(t).length===0?null:t}function dy(e,t){return t.map(n=>n(e))}function JE(e){return!e.validate}function fy(e){return e.map(t=>JE(t)?t:n=>t.validate(n))}function py(e){if(!e)return null;let t=e.filter(ly);return t.length==0?null:function(n){return uy(dy(n,t))}}function gy(e){return e!=null?py(fy(e)):null}function hy(e){if(!e)return null;let t=e.filter(ly);return t.length==0?null:function(n){let r=dy(n,t).map(cy);return _l(r).pipe(xe(uy))}}function my(e){return e!=null?hy(fy(e)):null}function Zm(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function XE(e){return e._rawValidators}function ew(e){return e._rawAsyncValidators}function wd(e){return e?Array.isArray(e)?e:[e]:[]}function Ba(e,t){return Array.isArray(e)?e.includes(t):e===t}function Ym(e,t){let n=wd(t);return wd(e).forEach(o=>{Ba(n,o)||n.push(o)}),n}function Qm(e,t){return wd(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=gy(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=my(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}},xd=class extends Ha{name;get formDirective(){return null}get path(){return null}};var hi="VALID",Va="INVALID",to="PENDING",mi="DISABLED",dr=class{},Ua=class extends dr{value;source;constructor(t,n){super(),this.value=t,this.source=n}},yi=class extends dr{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},vi=class extends dr{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},no=class extends dr{status;source;constructor(t,n){super(),this.status=t,this.source=n}};var _i=class extends dr{source;constructor(t){super(),this.source=t}};function tw(e){return($a(e)?e.validators:e)||null}function nw(e){return Array.isArray(e)?gy(e):e||null}function rw(e,t){return($a(t)?t.asyncValidators:e)||null}function ow(e){return Array.isArray(e)?my(e):e||null}function $a(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Sd=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_hasRequired=A(!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=W(()=>this.statusReactive());statusReactive=A(void 0);get valid(){return this.status===hi}get invalid(){return this.status===Va}get pending(){return this.status===to}get disabled(){return this.status===mi}get enabled(){return this.status!==mi}errors;get pristine(){return Ze(this.pristineReactive)}set pristine(t){Ze(()=>this.pristineReactive.set(t))}_pristine=W(()=>this.pristineReactive());pristineReactive=A(!0);get dirty(){return!this.pristine}get touched(){return Ze(this.touchedReactive)}set touched(t){Ze(()=>this.touchedReactive.set(t))}_touched=W(()=>this.touchedReactive());touchedReactive=A(!1);get untouched(){return!this.touched}_events=new ke;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(Ym(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Ym(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Qm(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Qm(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(U(j({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new vi(!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 vi(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty(U(j({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new yi(!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 yi(!0,r))}markAsPending(t={}){this.status=to;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new no(this.status,n)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending(U(j({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=mi,this.errors=null,this._forEachChild(o=>{o.disable(U(j({},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 no(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(U(j({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=hi,this._forEachChild(r=>{r.enable(U(j({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(U(j({},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===hi||this.status===to)&&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 no(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity(U(j({},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()?mi:hi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=to,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=cy(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 no(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new Re,this.statusChanges=new Re}_calculateStatus(){return this._allControlsDisabled()?mi:this.errors?Va:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(to)?to:this._anyControlsHaveStatus(Va)?Va:hi}_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 yi(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new vi(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=nw(this._rawValidators),this._updateHasRequiredValidator()}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=ow(this._rawAsyncValidators)}_updateHasRequiredValidator(){Ze(()=>this._hasRequired.set(this.hasValidator(Ed.required)))}};function iw(e){return e.tagName==="INPUT"||e.tagName==="SELECT"||e.tagName==="TEXTAREA"}function sw(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 Id=class{kind;context;control;message;constructor({kind:t,context:n,control:r}){this.kind=t,this.context=n,this.control=r}};function aw(e){return typeof e=="number"?e:parseInt(e,10)}function yy(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:[or]})}return e})(),lw={provide:bi,useExisting:$e(()=>Od),multi:!0},Od=(()=>{class e extends za{max;inputName="max";normalizeInput=n=>yy(n);createValidator=n=>iy(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(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&&tt("max",o._enabled?o.max:null)},inputs:{max:"max"},standalone:!1,features:[dt([lw]),ze]})}return e})(),cw={provide:bi,useExisting:$e(()=>kd),multi:!0},kd=(()=>{class e extends za{min;inputName="min";normalizeInput=n=>yy(n);createValidator=n=>oy(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(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&&tt("min",o._enabled?o.min:null)},inputs:{min:"min"},standalone:!1,features:[dt([cw]),ze]})}return e})(),uw={provide:bi,useExisting:$e(()=>vy),multi:!0};var vy=(()=>{class e extends za{required;inputName="required";normalizeInput=Wu;createValidator=n=>sy;enabled(n){return n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(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&&tt("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[dt([uw]),ze]})}return e})();var dw={provide:bi,useExisting:$e(()=>Rd),multi:!0},Rd=(()=>{class e extends za{maxlength;inputName="maxlength";normalizeInput=n=>aw(n);createValidator=n=>ay(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&tt("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[dt([dw]),ze]})}return e})();var fw=new O(""),_y=new O("",{factory:()=>Pd}),Pd="always";function pw(e,t){return[...t.path,e]}function Km(e,t,n=Pd){hw(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),mw(e,t),vw(e,t),yw(e,t),gw(e,t)}function Jm(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function gw(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function hw(e,t){let n=XE(e);t.validator!==null?e.setValidators(Zm(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=ew(e);t.asyncValidator!==null?e.setAsyncValidators(Zm(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();Jm(t._rawValidators,o),Jm(t._rawAsyncValidators,o)}function mw(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Cy(e,t)})}function yw(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Cy(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Cy(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function vw(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function _w(e,t){if(!Object.hasOwn(e,"model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function Cw(e){return Object.getPrototypeOf(e.constructor)===Ci}function bw(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===In?n=i:Cw(i)?r=i:o=i}),o||r||n||null}var Dw={provide:fw,useFactory:()=>{let e=b(ro,{self:!0});return{setParseErrors:t=>{e.setParseErrorSource(t)},set onReset(t){e.onReset=t}}}},ro=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 _i&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=bw(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(de)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let t=this.injector?.get(ti);if(!this.control||!t)return;let n=t.markForCheck.bind(t);this.subscription=new we,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 _i&&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=iw(t.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(o=>o instanceof vy))}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&&sw(this.renderer,t.nativeElement,r,o)}_convertErrors(t){if(t===null)return[];let n=this.control;return Object.entries(t).map(([r,o])=>new Id({context:o,kind:r,control:n}))}setParseErrorSource(t){if(t===void 0)return;let n=null,r=W(()=>{let o=t();return o.length===0?null:o.reduce((i,s)=>(i[s.kind]=s,i),{})});this.parseErrorsValidator=(()=>n).bind(this),Ct(()=>{n=r(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(t){this.parseErrorsValidator&&(t?.removeValidators(this.parseErrorsValidator),t?.updateValueAndValidity({emitEvent:!1}))}},Md=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 io=(()=>{class e extends Md{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(J(ro,2))};static \u0275dir=_e({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&le("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:[ze]})}return e})();function Xm(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ey(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Ew=class extends Sd{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(tw(n),rw(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$a(n)&&(n.nonNullable||n.initialValueIsDefault)&&(ey(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 _i(this))}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Xm(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Xm(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){ey(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 ww={provide:ro,useExisting:$e(()=>fr)},ty=Promise.resolve(),fr=(()=>{class e extends ro{_changeDetectorRef;callSetDisabledState;control=new Ew;static ngAcceptInputType_isDisabled;_registered=!1;_ngModelInjector;viewModel;name="";isDisabled;model;options;update=new Re;constructor(n,r,o,i,s,a,l,c){super(l,c,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),_w(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,Km(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:!1})}_setupWithForm(n){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Km(this.control,this,n))}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){ty.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Wu(r);ty.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?pw(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(J(xd,9),J(bi,10),J(WE,10),J(oo,10),J(ti,8),J(_y,8),J(Pe,8),J(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:[dt([ww,Dw]),ze,or,Fu(null)]})}return e})();var xw={provide:oo,useExisting:$e(()=>Fd),multi:!0},Fd=(()=>{class e extends Ci{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=wt(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&&N("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[dt([xw]),ze]})}return e})();var Sw={provide:oo,useExisting:$e(()=>so),multi:!0};function by(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Iw(e){return e.split(":")[0]}var so=(()=>{class e extends Ci{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;appRefInjector=b(Dn).injector;destroyRef=b(de);cdr=b(ti);_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=by(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=Iw(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(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&&N("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[dt([Sw]),ze]})}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(by(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)(J(xt),J(Bt),J(so,9))};static \u0275dir=_e({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),Mw={provide:oo,useExisting:$e(()=>Dy),multi:!0};function ny(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Tw(e){return e.split(":")[0]}var Dy=(()=>{class e extends Ci{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 l=s[a],c=this._getOptionValue(l.value);o.push(c)}}else{let s=r.options;for(let a=0;a<s.length;a++){let l=s[a];if(l.selected){let c=this._getOptionValue(l.value);o.push(c)}}}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=Tw(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(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&&N("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[dt([Mw]),ze]})}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(ny(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(ny(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)(J(xt),J(Bt),J(Dy,9))};static \u0275dir=_e({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var Nw=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=bn({type:e});static \u0275inj=Yt({})}return e})();var ao=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:_y,useValue:n.callSetDisabledState??Pd}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=bn({type:e});static \u0275inj=Yt({imports:[Nw]})}return e})();var Aw=["dlg"];function Ow(e,t){if(e&1&&(on(0,"p",3),g(1),wn()),e&2){let n=v();f(),C(n.subject)}}var lo=class e{open=!1;title="Are you sure?";subject="";message="This cannot be undone.";confirmLabel="Delete";busy=!1;confirmed=new Re;cancelled=new Re;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(Aw,5),n&2){let o;ju(o=Bu())&&(r.dlg=o.first)}},inputs:{open:"open",title:"title",subject:"subject",message:"message",confirmLabel:"confirmLabel",busy:"busy"},outputs:{confirmed:"confirmed",cancelled:"cancelled"},features:[or],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),Wr("cancel",function(i){return r.onEscape(i)})("click",function(i){return r.onBackdrop(i)}),on(2,"h3",2),g(3),wn(),D(4,Ow,2,1,"p",3),on(5,"p",4),g(6),wn(),on(7,"div",5)(8,"button",6),Wr("click",function(){return r.cancelled.emit()}),g(9,"Cancel"),wn(),on(10,"button",7),Wr("click",function(){return r.confirmed.emit()}),g(11),wn()()()),n&2&&(f(3),C(r.title),f(),E(r.subject?4:-1),f(2),C(r.message),f(4),da("disabled",r.busy),f(),T(" ",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 Ey(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 wy(e){let t=e?.status;return typeof t=="number"?t:void 0}function kw(e){return Ey(e)?.code}function Rw(e,t={},n="Request failed"){let r=wy(e);if(r!==void 0&&t[r])return t[r];let o=Ey(e)?.message;return typeof o=="string"&&o.trim()?o:r===void 0?`${n}.`:`${n} (${r}).`}function ue(e,t,n={},r="Request failed"){let o=Rw(e,n,r),i=Um().onError;if(i)try{i({feature:t,message:o,status:wy(e),code:kw(e)})}catch{}return o}function qa(e){let t=A(null),n=A(!1);return{pending:t.asReadonly(),open:W(()=>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(ue(o,e.feature,e.byStatus??{},e.fallback??"Could not delete it"))}}))}}}function pr({lookup:e,fallbackHref:t,onError:n,feature:r}){e.subscribe({next:({url:o})=>{window.open(o??t,"_blank","noopener")},error:o=>n(ue(o,r,{},"Could not open the file"))})}var Za=[{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 Di(e,t){return e.filter(n=>t.test(n.message)).length}function xy(e,t){let n=e?.log??[],o=n.map(Ve=>Ve.message).join(`
|
|
11
|
+
`),i=e?.progress,s=Number.isFinite(i)?Math.max(0,Math.min(100,i)):0,a=e?.status==="done",l=e?.status==="failed",c=a?100:l?s:Math.min(s,99),p=e?.status==="failed",h=e?.status==="done",y=[],m=Di(n,/narration FAILED/),_=Di(n,/image FAILED|visual FAILED|NOT FOUND/),x=Di(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`),x&&y.push(`${x} of your images could not be redrawn, so they appear as you uploaded them`);let R=Ve=>Za.find(Nt=>Nt.id===Ve)??Za[0];if(p)return{stage:{id:"failed",label:"Could not finish",detail:"",icon:"\u2717"},percent:c,counter:"",headline:e?.error||"Something went wrong while making the video.",warnings:y,etaSeconds:null,done:!1,failed:!0};if(h)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 F=Ve=>t?Math.min(Ve,t):Ve,ce=F(Di(n,/narration ✓/)),Qe=F(Di(n,/image ✓|visual ✓|= your image|= your uploaded image|= slide page/));if(/^QC:/m.test(o))return{stage:R("checking"),percent:c,counter:"",headline:"Almost there \u2014 checking the finished video.",warnings:y,etaSeconds:co(n,c),done:!1,failed:!1};if(/Rendering (video|edited video)/.test(o))return{stage:R("assembly"),percent:c,counter:"",headline:"Joining everything into one video. This is the longest step.",warnings:y,etaSeconds:co(n,c),done:!1,failed:!1};let rt=/Voiceover:/.test(o),Ke=/Edit plan:/.test(o),ot=/Illustrations:|Visuals:/.test(o);if(Ke)return{stage:R("illustration"),percent:c,counter:"",headline:"Applying your edits to the video.",warnings:y,etaSeconds:co(n,c),done:!1,failed:!1};if(rt&&ce<t)return{stage:R("narration"),percent:c,counter:t?`${ce} of ${t} scenes`:"",headline:ot?"Recording the narration and drawing the scenes.":"Recording the narration.",warnings:y,etaSeconds:co(n,c),done:!1,failed:!1};if(ot){let Ve=/Visuals: using/.test(o);return{stage:R("illustration"),percent:c,counter:t?`${Qe} of ${t} scenes`:"",headline:Ve?"Preparing your slides as the video's pictures.":"Drawing the pictures for each scene.",warnings:y,etaSeconds:co(n,c),done:!1,failed:!1}}if(rt)return{stage:R("narration"),percent:c,counter:t?`${ce} of ${t} scenes`:"",headline:"Recording the narration.",warnings:y,etaSeconds:co(n,c),done:!1,failed:!1};let zt=e?.queuePosition??0;return{stage:R("queued"),percent:c,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 co(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 Sy(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}),gt=(e,t)=>t.id;function Pw(e,t){if(e&1&&(d(0,"div",3),g(1),u()),e&2){let n=v();f(),C(n.error())}}function Fw(e,t){e&1&&g(0," \xB7 MP4, MOV, WEBM ")}function Lw(e,t){if(e&1){let n=B();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),g(3),u(),d(4,"span",27),g(5,"PDF, DOCX, TXT, MD, SRT"),D(6,Fw,1,0),u()()}if(e&2){let n=v();f(),w("accept",n.acceptedFiles()),f(2),C(n.uploading()?"Reading\u2026":"Choose a file"),f(3),E(n.editMode()==="on"?6:-1)}}function Vw(e,t){e&1&&g(0," \xB7 transcribed ")}function jw(e,t){if(e&1&&(d(0,"p",31),g(1),u()),e&2){let n=v();f(),T(" \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 Bw(e,t){if(e&1){let n=B();d(0,"div",10)(1,"div")(2,"div",28),g(3),u(),d(4,"div",29),g(5),ft(6,"number"),D(7,Vw,1,0),u()(),d(8,"button",30),N("click",function(){I(n);let o=v(2);return M(o.reset())}),g(9,"Replace"),u()(),D(10,jw,2,1,"p",31),d(11,"p",32),g(12,"Editing an existing video \u2014 describe the changes below."),u()}if(e&2){let n=t;f(3),T("\u{1F3AC} ",n.filename),f(2),St(" ",lr(6,5,n.durationSec,"1.0-0"),"s \xB7 ",n.segments.length," segments"),f(2),E(n.transcribed?7:-1),f(3),E(n.transcribed?-1:10)}}function Hw(e,t){if(e&1&&D(0,Bw,13,8),e&2){let n,r=v();E((n=r.sourceVideo())?0:-1,n)}}function Uw(e,t){if(e&1&&g(0),e&2){let n=v(2);T(" \xB7 ",n.doc().pages," slide pages ")}}function $w(e,t){if(e&1){let n=B();d(0,"div",10)(1,"div")(2,"div",28),g(3),u(),d(4,"div",29),g(5),ft(6,"number"),D(7,Uw,1,1),u()(),d(8,"button",30),N("click",function(){I(n);let o=v();return M(o.reset())}),g(9,"Replace"),u()()}if(e&2){let n=v();f(3),C(n.doc().filename),f(2),T(" ",ar(6,3,n.doc().chars)," characters"),f(2),E(n.hasSlides()?7:-1)}}function zw(e,t){e&1&&(d(0,"p",11),g(1,"Pick a visual style \u2014 the AI builds the whole video in that look. Everything else is optional."),u())}function Gw(e,t){if(e&1){let n=B();d(0,"button",33),N("click",function(){let o=I(n).$implicit,i=v();return M(i.videoType=o.id)}),d(1,"b"),g(2),u(),d(3,"span"),g(4),u()()}if(e&2){let n=t.$implicit,r=v();le("sel",r.videoType===n.id),w("disabled",!r.doc()),f(2),St("",n.icon," ",n.name),f(2),C(n.desc)}}function Ww(e,t){if(e&1){let n=B();d(0,"label",34),g(1,"Describe the edits"),u(),d(2,"textarea",35),ee("ngModelChange",function(o){I(n);let i=v();return re(i.brief,o)||(i.brief=o),M(o)}),u(),z()}if(e&2){let n=v();f(2),X("ngModel",n.brief),G()}}function qw(e,t){if(e&1){let n=B();d(0,"label",34),g(1,"Creative brief (optional) \u2014 how it should look & feel"),u(),d(2,"textarea",36),ee("ngModelChange",function(o){I(n);let i=v();return re(i.brief,o)||(i.brief=o),M(o)}),u(),z()}if(e&2){let n=v();f(2),X("ngModel",n.brief),w("disabled",!n.doc()),G()}}function Zw(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function Yw(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit,r=v();w("value",n.id),f(),C(r.voiceLabel(n))}}function Qw(e,t){if(e&1){let n=B();d(0,"label",39)(1,"input",58),ee("ngModelChange",function(o){I(n);let i=v(2);return re(i.useSourceSlides,o)||(i.useSourceSlides=o),M(o)}),u(),z(),d(2,"span"),g(3,"\u{1F4C4} Use my uploaded slides as the visuals \u2014 "),d(4,"b"),g(5,"no new images will be generated"),u()()()}if(e&2){let n=v(2);f(),X("ngModel",n.useSourceSlides),w("disabled",!n.doc()),G()}}function Kw(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function Jw(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function Xw(e,t){if(e&1&&(d(0,"div",52),g(1),u()),e&2){let n=v(2);f(),C(n.refName())}}function ex(e,t){if(e&1){let n=B();d(0,"div",57)(1,"span",59),g(2),u(),d(3,"input",60),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.note,o)||(i.note=o),M(o)}),u(),z(),d(4,"button",61),N("click",function(){let o=I(n).$implicit,i=v(2);return M(i.removeImage(o.id))}),g(5,"\xD7"),u()()}if(e&2){let n=t.$implicit;f(2),C(n.name),f(),X("ngModel",n.note),w("ngModelOptions",Ne(3,$t)),G()}}function tx(e,t){if(e&1){let n=B();d(0,"div",22)(1,"div",37),g(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),g(8,"Aspect ratio"),u(),d(9,"select",41),ee("ngModelChange",function(o){I(n);let i=v();return re(i.aspectRatio,o)||(i.aspectRatio=o),M(o)}),Z(10,Kw,2,2,"option",18,gt),u(),z(),u(),d(12,"div")(13,"label",42),g(14,"Depth"),u(),d(15,"select",43),ee("ngModelChange",function(o){I(n);let i=v();return re(i.depth,o)||(i.depth=o),M(o)}),Z(16,Jw,2,2,"option",18,gt),u(),z(),u()(),d(18,"div",44)(19,"div")(20,"span",45),g(21,"\u{1F39E}\uFE0F Reference video \u2014 the AI copies its look, pacing & style"),u(),d(22,"label",46),No(),d(23,"svg",47),Ce(24,"path",48)(25,"path",49)(26,"path",50),u(),Ao(),d(27,"span"),g(28,"Choose a video"),u(),d(29,"input",51),N("change",function(o){I(n);let i=v();return M(i.onRefVideo(o))}),u()(),D(30,Xw,2,1,"div",52),u(),d(31,"div")(32,"span",45),g(33,"\u{1F5BC}\uFE0F Images/diagrams to include (multiple)"),u(),d(34,"label",46),No(),d(35,"svg",47),Ce(36,"rect",53)(37,"circle",54)(38,"path",55),u(),Ao(),d(39,"span"),g(40,"Choose images"),u(),d(41,"input",56),N("change",function(o){I(n);let i=v();return M(i.onUserImages(o))}),u()(),Z(42,ex,6,4,"div",57,gt),u()()()()}if(e&2){let n=v();f(4),E(n.hasSlides()?4:-1),f(5),X("ngModel",n.aspectRatio),w("disabled",!n.doc()),G(),f(),Y(n.aspects),f(5),X("ngModel",n.depth),w("disabled",!n.doc()),G(),f(),Y(n.depths),f(6),le("disabled",!n.doc()),f(7),w("disabled",!n.doc()),f(),E(n.refName()?30:-1),f(4),le("disabled",!n.doc()),f(7),w("disabled",!n.doc()),f(),Y(n.userImages())}}function nx(e,t){if(e&1&&(d(0,"span",66),g(1),u()),e&2){let n=v();f(),T("",n.costEstimate.kept," kept")}}function rx(e,t){if(e&1&&(d(0,"span",66),g(1),u()),e&2){let n=v();f(),T("",n.costEstimate.cuts," cut")}}function ox(e,t){if(e&1&&(d(0,"p",67)(1,"i"),g(2),u()()),e&2){let n=v();f(2),C(n.plan.notes)}}function ix(e,t){e&1&&Ce(0,"img",79),e&2&&w("src",t,na)}function sx(e,t){if(e&1&&g(0),e&2){let n=v().$implicit;sr(" \xB7 source ",n.srcId," (",n.startSec,"s\u2013",n.endSec,"s) ")}}function ax(e,t){e&1&&g(0," \xB7 new ")}function lx(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function cx(e,t){if(e&1){let n=B();d(0,"span",82),g(1,"Narration"),u(),d(2,"textarea",83),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.narration,o)||(i.narration=o),M(o)}),u(),z()}if(e&2){let n=v().$implicit;f(2),X("ngModel",n.narration),w("ngModelOptions",Ne(2,$t)),G()}}function ux(e,t){if(e&1){let n=B();d(0,"span",82),g(1,"Visual / image prompt"),u(),d(2,"textarea",84),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.imagePrompt,o)||(i.imagePrompt=o),M(o)}),u(),z()}if(e&2){let n=v().$implicit;f(2),X("ngModel",n.imagePrompt),w("ngModelOptions",Ne(2,$t)),G()}}function dx(e,t){e&1&&(d(0,"p",81),g(1,"Kept exactly as it is \u2014 no cost."),u())}function fx(e,t){if(e&1){let n=B();d(0,"div",76)(1,"div",77)(2,"span",78),D(3,ix,1,1,"img",79),g(4),D(5,sx,1,3)(6,ax,1,0),u(),d(7,"select",80),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.action,o)||(i.action=o),M(o)}),Z(8,lx,2,2,"option",18,gt),u(),z(),u(),D(10,cx,3,3),D(11,ux,3,3),D(12,dx,2,0,"p",81),u()}if(e&2){let n,r=t.$implicit,o=t.$index,i=v(2);le("cut",r.action==="cut"),f(3),E((n=i.keyframe(r))?3:-1,n),f(),T(" Segment ",o+1),f(),E(r.srcId?5:6),f(2),X("ngModel",r.action),w("ngModelOptions",Ne(10,$t)),G(),f(),Y(i.actionsFor(r)),f(2),E(r.action!=="keep"&&r.action!=="cut"?10:-1),f(),E(r.action==="replace"||r.action==="new"?11:-1),f(),E(r.action==="keep"?12:-1)}}function px(e,t){if(e&1){let n=B();d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"3"),u(),d(4,"h2",8),g(5,"Review the edits"),u(),d(6,"span",62),g(7,"\u2014 change any action, then produce"),u()(),d(8,"div",63)(9,"div")(10,"div",64),g(11),u(),d(12,"div",65)(13,"span",66),g(14),u(),D(15,nx,2,1,"span",66),D(16,rx,2,1,"span",66),u(),D(17,ox,3,1,"p",67),u(),d(18,"div",68)(19,"div",69),g(20),u(),d(21,"div",70),g(22,"estimated"),u(),d(23,"div",71),g(24),ft(25,"number"),u()()(),Z(26,fx,13,11,"div",72,En),d(28,"div",73)(29,"button",74),N("click",function(){I(n);let o=v();return M(o.produceEdits())}),g(30),u(),d(31,"button",75),N("click",function(){I(n);let o=v();return M(o.makePlan())}),g(32,"\u21BB Re-plan the edits"),u()()()}if(e&2){let n=t,r=v();f(11),C(n.plan.title),f(3),T("",n.plan.segments.length," segments"),f(),E(n.costEstimate.kept?15:-1),f(),E(n.costEstimate.cuts?16:-1),f(),E(n.plan.notes?17:-1),f(3),T("$",n.costEstimate.totalUsd),f(4),St(" ",n.costEstimate.images," images \xB7 ",ar(25,11,n.costEstimate.ttsChars)," VO chars "),f(2),Y(n.plan.segments),f(3),w("disabled",r.producing()),f(),T(" ",r.producing()?"Producing\u2026":r.hasVideo()?"\u2713 Regenerate video":"\u2713 Confirm & produce video"," "),f(),w("disabled",r.planning()||r.producing())}}function gx(e,t){if(e&1&&(d(0,"span"),g(1),u()),e&2){let n=v();f(),St("\u{1F399}\uFE0F ",n.plan.voice.gender,", ",n.plan.voice.feel," voice")}}function hx(e,t){e&1&&(d(0,"span"),g(1,"\u{1F39E}\uFE0F styled after your reference video"),u())}function mx(e,t){e&1&&(d(0,"span"),g(1,"\u{1F4C4} using your slides"),u())}function yx(e,t){if(e&1&&(d(0,"p",67)(1,"i"),g(2),u()()),e&2){let n=v();f(2),C(n.plan.voice.rationale)}}function vx(e,t){if(e&1&&g(0),e&2){let n=v();T(" + ",n.costEstimate.restyles," restyled ")}}function _x(e,t){if(e&1&&g(0),e&2){let n=v();T(" + ",n.costEstimate.userImages-(n.costEstimate.restyles||0)," of yours ($0) ")}}function Cx(e,t){if(e&1&&g(0),e&2){let n=v();T(" + ",n.costEstimate.sourcePages," slides ($0) ")}}function bx(e,t){if(e&1&&(d(0,"span",100),g(1,"Visual"),u(),d(2,"div",81),g(3),u()),e&2){let n=v().$implicit;f(3),T("\u{1F4C4} Your slide, page ",n.visual.sourcePage," (used as-is, $0)")}}function Dx(e,t){if(e&1){let n=B();d(0,"span",100),g(1,"Visual \u2014 your uploaded image"),u(),d(2,"div",101)(3,"b",102),g(4),u(),d(5,"select",103),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.visual.treatment,o)||(i.visual.treatment=o),M(o)}),d(6,"option",104),g(7,"Use as-is (exact, $0 \u2014 full image shown, never cropped)"),u(),d(8,"option",105),g(9,"Redraw in video style via Gemini (~$0.04 \u2014 blends in; labels may shift, QC checks it)"),u()(),z(),d(10,"button",106),N("click",function(){I(n);let o=v().$implicit,i=v(2);return M(i.detachImage(o))}),g(11,"\u2715 detach"),u()()}if(e&2){let n=v().$implicit,r=v(2);f(4),C(r.imageName(n.visual.userImageId)),f(),X("ngModel",n.visual.treatment),w("ngModelOptions",Ne(3,$t)),G()}}function Ex(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.name)}}function wx(e,t){if(e&1){let n=B();d(0,"select",109),N("ngModelChange",function(o){I(n);let i=v(2).$implicit,s=v(2);return M(s.attachImage(i,o))}),d(1,"option",21),g(2,"\u2026or use one of your uploaded images here"),u(),Z(3,Ex,2,2,"option",18,gt),u(),z()}if(e&2){let n=v(4);w("ngModel","")("ngModelOptions",Ne(2,$t)),G(),f(3),Y(n.userImages())}}function xx(e,t){if(e&1){let n=B();d(0,"span",82),g(1,"Visual / image prompt"),u(),d(2,"textarea",107),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.visual.imagePrompt,o)||(i.visual.imagePrompt=o),M(o)}),u(),z(),D(3,wx,5,3,"select",108)}if(e&2){let n=v().$implicit,r=v(2);f(2),X("ngModel",n.visual.imagePrompt),w("ngModelOptions",Ne(3,$t)),G(),f(),E(r.userImages().length?3:-1)}}function Sx(e,t){if(e&1){let n=B();d(0,"div",76)(1,"div",77)(2,"span"),g(3),u(),d(4,"span",66),g(5),u()(),d(6,"span",82),g(7,"Narration"),u(),d(8,"textarea",97),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.narration,o)||(i.narration=o),M(o)}),u(),z(),d(9,"span",82),g(10,"Key points on screen \u2014 one per line"),u(),d(11,"textarea",98),N("ngModelChange",function(o){let i=I(n).$implicit,s=v(2);return M(s.setKeyPoints(i,o))}),u(),z(),d(12,"span",82),g(13,"Title overlay (optional)"),u(),d(14,"input",99),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.titleOverlay,o)||(i.titleOverlay=o),M(o)}),u(),z(),D(15,bx,4,1)(16,Dx,12,4)(17,xx,4,4),u()}if(e&2){let n=t.$implicit,r=t.$index,o=v(2);f(3),St("Scene ",r+1," \xB7 ",n.purpose),f(2),T("~",n.durationHintSec,"s"),f(3),X("ngModel",n.narration),w("ngModelOptions",Ne(10,$t)),G(),f(3),w("ngModel",o.keyPointsText(n))("ngModelOptions",Ne(11,$t)),G(),f(3),X("ngModel",n.titleOverlay),w("ngModelOptions",Ne(12,$t)),G(),f(),E(n.visual.sourcePage?15:n.visual.userImageId?16:17)}}function Ix(e,t){e&1&&(d(0,"p",88),g(1,"Enter a content name to produce the video."),u())}function Mx(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit,r=v(2);w("value",n.id),f(),C(r.voiceLabel(n))}}function Tx(e,t){if(e&1){let n=B();d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"3"),u(),d(4,"h2",8),g(5,"Review the scene plan"),u(),d(6,"span",62),g(7,"\u2014 check it, then produce"),u()(),d(8,"div",63)(9,"div")(10,"div",64),g(11),u(),d(12,"div",65)(13,"span",66),g(14),u(),d(15,"span",66),g(16),u(),d(17,"span",66),g(18),u(),d(19,"span",66),g(20),u(),D(21,gx,2,2,"span"),D(22,hx,2,0,"span"),D(23,mx,2,0,"span"),u(),D(24,yx,3,1,"p",67),u(),d(25,"div",68)(26,"div",69),g(27),u(),d(28,"div",70),g(29,"estimated"),u(),d(30,"div",71),g(31),D(32,vx,1,1),D(33,_x,1,1),D(34,Cx,1,1),g(35),ft(36,"number"),u()()(),Z(37,Sx,18,13,"div",76,gt),d(39,"label",85),g(40,"Content name "),d(41,"span",86),g(42,"*"),u(),g(43," \u2014 names the finished video (edit if needed)"),u(),d(44,"input",87),N("ngModelChange",function(o){I(n);let i=v();return M(i.contentName.set(o))}),u(),z(),D(45,Ix,2,0,"p",88),d(46,"div",73)(47,"button",74),N("click",function(){I(n);let o=v();return M(o.produce())}),g(48),u(),d(49,"button",75),N("click",function(){I(n);let o=v();return M(o.makePlan())}),g(50,"\u21BB Regenerate plan"),u()(),d(51,"div",89)(52,"label",90),g(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),N("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),g(58,"Change voice (optional)"),u(),d(59,"select",95),ee("ngModelChange",function(o){I(n);let i=v();return re(i.fbVoice,o)||(i.fbVoice=o),M(o)}),d(60,"option",21),g(61,"Keep current voice"),u(),Z(62,Mx,2,2,"option",18,gt),u(),z(),u(),d(64,"button",75),N("click",function(){I(n);let o=v();return M(o.revise())}),g(65),u()()(),d(66,"p",96),g(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();f(11),C(n.plan.title),f(3),T("",n.plan.scenes.length," scenes"),f(2),T("~",n.plan.estimatedDurationSec,"s"),f(2),C(n.plan.videoType),f(2),C(n.plan.aspectRatio||r.aspectRatio),f(),E(n.plan.voice?.gender?21:-1),f(),E(r.styleGuide()?22:-1),f(),E(n.plan.usesSourceSlides?23:-1),f(),E(n.plan.voice?.rationale?24:-1),f(3),T("$",n.costEstimate.totalUsd),f(4),T(" ",n.costEstimate.images," new images"),f(),E(n.costEstimate.restyles?32:-1),f(),E(n.costEstimate.userImages?33:-1),f(),E(n.costEstimate.sourcePages?34:-1),f(),T(" \xB7 ",ar(36,26,n.costEstimate.ttsChars)," VO chars "),f(2),Y(n.plan.scenes),f(7),le("invalid",!r.contentName().trim()),w("ngModel",r.contentName()),G(),f(),E(r.contentName().trim()?-1:45),f(2),w("disabled",r.producing()||!r.contentName().trim()),f(),T(" ",r.producing()?"Producing\u2026":r.hasVideo()?"\u2713 Regenerate video":"\u2713 Confirm & produce video"," "),f(),w("disabled",r.planning()||r.producing()),f(5),w("ngModel",r.feedback()),G(),f(5),X("ngModel",r.fbVoice),G(),f(3),Y(r.voices()),f(2),w("disabled",!r.feedback().trim()||r.revising()),f(),T(" ",r.revising()?"Revising\u2026":"\u21BB Regenerate plan with this feedback"," ")}}function Nx(e,t){if(e&1&&(d(0,"span"),g(1),u()),e&2){let n=v();f(),C(n.counter)}}function Ax(e,t){if(e&1&&(d(0,"span"),g(1),u()),e&2){let n=v(3);f(),C(n.eta())}}function Ox(e,t){e&1&&(d(0,"span",117),g(1,"You can leave this page \u2014 it keeps going."),u())}function kx(e,t){if(e&1&&(d(0,"span",127),g(1),u()),e&2){let n=v().$implicit;f(),C(n.detail)}}function Rx(e,t){if(e&1&&(d(0,"li")(1,"span",124),g(2),u(),d(3,"div",125)(4,"span",126),g(5),u(),D(6,kx,2,1,"span",127),u()()),e&2){let n=t.$implicit,r=t.$index,o=t.$count,i=v(4);qr("prod-step-"+i.stageState(r)),le("is-last",r===o-1),f(2),T(" ",i.stageState(r)==="done"?"\u2713":i.stageState(r)==="active"?n.icon:r+1," "),f(3),C(n.label),f(),E(i.stageState(r)==="active"?6:-1)}}function Px(e,t){if(e&1&&(d(0,"ol",118),Z(1,Rx,7,7,"li",123,gt),u()),e&2){let n=v(3);f(),Y(n.stages)}}function Fx(e,t){if(e&1&&(d(0,"div"),g(1),u()),e&2){let n=t.$implicit;f(),T("\u26A0 ",n)}}function Lx(e,t){if(e&1&&(d(0,"div",119),Z(1,Fx,2,1,"div",null,Jo),d(3,"span",117),g(4,"The video will still be made."),u()()),e&2){let n=v();f(),Y(n.warnings)}}function Vx(e,t){if(e&1&&(d(0,"div",120),g(1),u()),e&2){let n=v();f(),C(n.headline)}}function jx(e,t){if(e&1&&(d(0,"pre",122),g(1),u()),e&2){let n=v(3);f(),C(n.job()?n.logText(n.job()):"Starting\u2026")}}function Bx(e,t){if(e&1){let n=B();d(0,"div",110)(1,"span",111),g(2),u(),d(3,"div",112)(4,"strong"),g(5),u(),d(6,"span",113),g(7),u()(),d(8,"span",114),g(9),u()(),d(10,"div",115),Ce(11,"i"),u(),d(12,"div",116),D(13,Nx,2,1,"span"),D(14,Ax,2,1,"span"),D(15,Ox,2,0,"span",117),u(),D(16,Px,3,0,"ol",118),D(17,Lx,5,0,"div",119),D(18,Vx,2,1,"div",120),d(19,"button",121),N("click",function(){I(n);let o=v(2);return M(o.showLog.set(!o.showLog()))}),g(20),u(),D(21,jx,2,1,"pre",122)}if(e&2){let n=t,r=v(2);le("is-failed",n.failed)("is-done",n.done),f(),le("spin",!n.done&&!n.failed),f(),C(n.stage.icon),f(3),C(n.stage.label),f(2),C(n.headline),f(2),T("",n.percent,"%"),f(),le("is-working",!n.done&&!n.failed),tt("aria-valuenow",n.percent),f(),sn("width",n.percent,"%"),f(2),E(n.counter?13:-1),f(),E(r.eta()?14:-1),f(),E(!n.done&&!n.failed?15:-1),f(),E(n.failed?-1:16),f(),E(n.warnings.length?17:-1),f(),E(n.failed?18:-1),f(2),T(" ",r.showLog()?"Hide":"Show"," technical log "),f(),E(r.showLog()?21:-1)}}function Hx(e,t){if(e&1&&(d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"4"),u(),d(4,"h2",8),g(5,"Production"),u()(),D(6,Bx,22,23),u()),e&2){let n,r=v();f(6),E((n=r.progress())?6:-1,n)}}function Ux(e,t){if(e&1&&g(0),e&2){let n=v(3);T(" (auto-fixed: ",n.autoFixed.join(", "),") ")}}function $x(e,t){if(e&1&&(d(0,"p",131),g(1," \u2705 "),d(2,"b"),g(3,"Visual QC passed"),u(),g(4," \u2014 framing, cropping and text placement checked on every scene"),D(5,Ux,1,1),u()),e&2){let n=v(2);f(5),E(n.autoFixed?.length?5:-1)}}function zx(e,t){if(e&1&&g(0),e&2){let n=t.$implicit;sr(" ",n.type," (",n.severity,") \u2014 ",n.note,"; ")}}function Gx(e,t){if(e&1&&(d(0,"li")(1,"b"),g(2),u(),g(3,": "),Z(4,zx,1,3,null,null,En),u()),e&2){let n=t.$implicit;f(2),C(n.id),f(2),Y(n.issues)}}function Wx(e,t){if(e&1&&(d(0,"div",132)(1,"p"),g(2,"\u26A0\uFE0F "),d(3,"b"),g(4,"Visual QC found issues"),u(),g(5," \u2014 use the feedback box above to fix them:"),u(),d(6,"ul"),Z(7,Gx,6,1,"li",null,gt),u()()),e&2){let n=v(4);f(7),Y(n.qcIssues())}}function qx(e,t){if(e&1&&D(0,$x,6,1,"p",131)(1,Wx,9,0,"div",132),e&2){let n=v();E(n.pass?0:1)}}function Zx(e,t){e&1&&D(0,qx,2,1),e&2&&E(t.skipped?-1:0)}function Yx(e,t){if(e&1){let n=B();d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"5"),u(),d(4,"h2",8),g(5,"Your video"),u()(),D(6,Zx,1,1),Ce(7,"video",128),d(8,"div",73)(9,"button",129),N("click",function(){I(n);let o=v();return M(o.download())}),g(10,"\u2B07 Download MP4"),u(),d(11,"button",130),N("click",function(){I(n);let o=v();return M(o.deleteVideo.ask(o.job()))}),g(12," \u{1F5D1} Delete video "),u()(),d(13,"p",96),g(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();f(6),E((n=r.job()?.qc)?6:-1,n),f(),w("src",r.playbackSrc(),na),f(4),w("disabled",r.deleteVideo.busy())}}var Ya=class e{api=b(Ut);destroyRef=b(de);get untilGone(){return t=>t.pipe(eo(this.destroyRef))}doc=A(null);editMode=nt("off");defaultLanguage=nt(void 0);defaultAspectRatio=nt(void 0);defaultDepth=nt(void 0);defaultVoice=nt(void 0);planReady=xn();videoStarted=xn();videoReady=xn();sourceVideo=A(null);editPlan=A(null);uploading=A(!1);planning=A(!1);revising=A(!1);result=A(null);error=A("");voices=A([]);styleGuide=A("");refName=A("");userImages=A([]);videoType="watercolor";contentName=A("");brief="";useSourceSlides=!1;language="hi";aspectRatio="16:9";depth="standard";voicePref="";producing=A(!1);job=A(null);pollTimer=null;seeded=!1;feedback=A("");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=W(()=>(this.doc()?.pages??0)>0);isEditMode=W(()=>this.sourceVideo()!==null);hasSource=W(()=>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(){Ct(()=>{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=>{ue(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=>{vd(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.")):vd(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(ue(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(ue(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(ue(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(ue(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(ue(n,"content-studio")),this.planning.set(!1)}}))}acceptedFiles=W(()=>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(ue(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(ue(n,"content-studio")),this.revising.set(!1)}}))}keyPointsText(t){return(t.onScreenText||[]).join(`
|
|
12
12
|
`)}setKeyPoints(t,n){t.onScreenText=n.split(`
|
|
13
13
|
`).map(r=>r.trim()).filter(Boolean)}attachImage(t,n){n&&(t.visual=U(j({},t.visual),{userImageId:n,treatment:"asis",imagePrompt:void 0}))}detachImage(t){t.visual=U(j({},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(ue(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(U(j({},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(ue(r,"content-studio")),this.producing.set(!1)}})}ngOnDestroy(){this.pollTimer&&clearTimeout(this.pollTimer)}stages=Za;progress=W(()=>xy(this.job(),this.job()?.plan?.scenes?.length??0));eta=W(()=>Sy(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=A(!1);logText(t){return(t.log||[]).map(n=>`${String(n.t).slice(11,19)} ${n.message}`).join(`
|
|
14
|
-
`)}hasVideo=W(()=>this.job()?.status==="done"&&!!this.job()?.video);playbackSrc=W(()=>{let t=this.job();return t?.videoUrl??t?.video??null});download(){let t=this.job();t&&pr({feature:"content-studio",lookup:this.api.downloadVideoUrl(t.id),fallbackHref:this.api.downloadVideoHref(t.id),onError:n=>this.error.set(n)})}deleteVideo=qa({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),g(1,"AI Studio"),u(),d(2,"h1",1),g(3,"Turn a document into a training video"),u(),d(4,"p",2),g(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,Rw,2,1,"div",3),d(7,"div",4)(8,"section",5)(9,"div",6)(10,"span",7),g(11,"1"),u(),d(12,"h2",8),g(13,"Source material"),u()(),D(14,Fw,7,3,"label",9)(15,Bw,1,1)(16,Uw,10,5,"div",10),u(),d(17,"section",5)(18,"div",6)(19,"span",7),g(20,"2"),u(),d(21,"h2",8),g(22),u()(),D(23,$w,2,0,"p",11),d(24,"div",12),Z(25,zw,5,6,"button",13,gt),u(),d(27,"div",14)(28,"div"),D(29,Gw,3,1)(30,Ww,3,2),u(),d(31,"div",15)(32,"label",16),g(33,"Language"),u(),d(34,"select",17),ee("ngModelChange",function(i){return re(r.language,i)||(r.language=i),i}),Z(35,qw,2,2,"option",18,gt),u(),z(),d(37,"label",19),g(38,"Voice"),u(),d(39,"select",20),ee("ngModelChange",function(i){return re(r.voicePref,i)||(r.voicePref=i),i}),d(40,"option",21),g(41,"Auto \u2014 director picks & explains"),u(),Z(42,Zw,2,2,"option",18,gt),u(),z(),u()(),D(44,ex,44,12,"div",22),d(45,"button",23),N("click",function(){return r.makePlan()}),g(46),u()(),D(47,fx,33,13,"section",5),D(48,Mx,68,28,"section",5),D(49,Bx,7,1,"section",5),D(50,Zx,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;f(6),E(r.error()?6:-1),f(8),E(r.doc()?r.isEditMode()?15:16:14),f(3),ce("dim",!r.hasSource()),f(5),C(r.isEditMode()?"What should be changed?":"How should the video look?"),f(),E(r.isEditMode()?-1:23),f(),w("hidden",r.isEditMode()),f(),Y(r.videoTypes),f(4),E(r.isEditMode()?29:30),f(5),X("ngModel",r.language),w("disabled",!r.hasSource()),G(),f(),Y(r.languages),f(4),X("ngModel",r.voicePref),w("disabled",!r.hasSource()),G(),f(3),Y(r.voices()),f(2),E(r.isEditMode()?-1:44),f(),w("disabled",!r.hasSource()||r.planning()||r.isEditMode()&&!r.brief.trim()),f(),T(" ",r.planning()?"Planning\u2026":r.isEditMode()?"Plan the edits":"Generate scene plan"," "),f(),E((o=r.editPlan())?47:-1,o),f(),E((i=r.result())?48:-1,i),f(),E(r.job()||r.producing()?49:-1),f(),E(r.hasVideo()?50:-1),f(),w("open",r.deleteVideo.open())("subject",r.contentName()||r.job()?.plan?.title||"")("busy",r.deleteVideo.busy())}},dependencies:[Sn,ao,Ga,Wa,In,Td,so,io,Rd,fr,co,ci],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 Ka=()=>({standalone:!0}),Ei=(e,t)=>t.id,Vd=(e,t)=>t.code;function Yx(e,t){if(e&1&&(d(0,"div",3),g(1),u()),e&2){let n=v();f(),C(n.error())}}function Qx(e,t){if(e&1&&(d(0,"div",16),g(1),u()),e&2){let n=v();f(),T("",n.files().length," file(s) selected")}}function Kx(e,t){if(e&1&&(d(0,"span",46),g(1),u()),e&2){let n=v().$implicit;f(),C(n.error)}}function Jx(e,t){if(e&1&&(d(0,"span",47),g(1),ft(2,"number"),u()),e&2){let n=v().$implicit;f(),T("",ar(2,1,n.chars)," chars")}}function Xx(e,t){if(e&1){let n=B();d(0,"li")(1,"input",44),N("change",function(){let o=I(n).$implicit,i=v(2);return M(i.toggleSource(o))}),u(),d(2,"span",45),g(3),u(),D(4,Kx,2,1,"span",46)(5,Jx,3,3,"span",47),u()}if(e&2){let n=t.$implicit,r=v(2);ce("bad",n.error)("off",!n.error&&!n.checked),f(),w("checked",n.checked)("disabled",!!n.error||r.busy()),f(2),C(n.name),f(),E(n.error?4:5)}}function eS(e,t){if(e&1&&(d(0,"ul",18),Z(1,Xx,6,8,"li",43,En),u()),e&2){let n=v();f(),Y(n.sources())}}function tS(e,t){if(e&1&&(d(0,"option",25),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),T("\u{1F3AC} ",n.plan?.title||n.filename||n.id)}}function nS(e,t){if(e&1&&(d(0,"option",25),g(1),u()),e&2){let n=t.$implicit;w("value",n.code),f(),C(n.name)}}function rS(e,t){if(e&1&&(d(0,"option",33),g(1),u()),e&2){let n=t.$implicit;w("ngValue",n),f(),C(n)}}function oS(e,t){if(e&1&&(d(0,"option",25),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function iS(e,t){if(e&1&&(d(0,"option",25),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function sS(e,t){if(e&1){let n=B();d(0,"label",50)(1,"input",51),N("change",function(){let o=I(n).$implicit,i=v(2);return M(i.toggleLanguage(o.code))}),u(),g(2),u()}if(e&2){let n=t.$implicit,r=v(2);ce("on",r.translateInto().has(n.code)),f(),w("checked",r.translateInto().has(n.code))("disabled",r.generating()),f(),T(" ",n.name," ")}}function aS(e,t){if(e&1&&(d(0,"fieldset",38)(1,"legend"),g(2,"Also generate in \u2014 the "),d(3,"strong"),g(4,"same"),u(),g(5," questions, translated (optional)"),u(),d(6,"div",48),Z(7,sS,3,5,"label",49,Vd),u(),d(9,"p",42),g(10," Same question order, same options, same answer key in every language \u2014 you review each language on its own tab, and nothing needs translating afterwards. "),u()()),e&2){let n=v();f(7),Y(n.secondaryChoices())}}function cS(e,t){if(e&1&&(d(0,"span",41)(1,"span",52),Ce(2,"span",53),g(3),d(4,"span",54),g(5),u()(),d(6,"span",55),Ce(7,"span",56),u()()),e&2){let n=v();f(3),T("",n.stage()," "),f(2),T("",n.elapsed(),"s"),f(2),sn("width",n.progressPct(),"%")}}function lS(e,t){if(e&1&&(d(0,"span",42),g(1),u()),e&2){let n=v();f(),C(n.plannedSummary())}}function uS(e,t){e&1&&g(0," \xB7 all languages")}function dS(e,t){if(e&1&&g(0),e&2){let n=v(2);T(" \xB7 ",n.viewedLanguageName())}}function fS(e,t){if(e&1&&(d(0,"div",64),g(1),u()),e&2){let n=v();f(),T("Quality check corrected ",n.qcFixed," question(s) before showing them.")}}function pS(e,t){if(e&1&&(d(0,"div",65)(1,"strong"),g(2),u(),g(3),u()),e&2){let n=v(2);f(2),C(n.failedLanguageNames()),f(),T(" could not be completed this time. Your questions are safe \u2014 try generating again to add ",n.failedLanguageNames(),". ")}}function gS(e,t){e&1&&(d(0,"p",66),g(1," Excel gives you one file with a sheet per language. CSV gives you one language \u2014 whichever tab you are reading. "),u())}function hS(e,t){if(e&1&&(d(0,"div",65),g(1),u()),e&2){let n=v(2);f(),T(" You have changed the questions, so the other languages still show the earlier wording. Generate again to update them, or download ",n.languageName(n.language())," on its own. ")}}function mS(e,t){if(e&1){let n=B();d(0,"button",70),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.viewing.set(o.code))}),g(1),u()}if(e&2){let n=t.$implicit,r=v(3);ce("on",r.viewing()===n.code),tt("aria-selected",r.viewing()===n.code),f(),C(n.name)}}function yS(e,t){if(e&1&&(d(0,"div",67),Z(1,mS,2,4,"button",69,Vd),u()),e&2){let n=v(2);f(),Y(n.resultLanguages())}}function vS(e,t){if(e&1){let n=B();d(0,"label",84),Ce(1,"input",85),d(2,"span",86),g(3),u(),d(4,"input",87),N("input",function(o){let i=I(n).$index,s=v().$implicit,a=v(3);return M(a.editTranslatedOption(s,i,o.target.value))}),u()()}if(e&2){let n=t.$implicit,r=t.$index,o=v().$implicit,i=v(3);ce("correct",r===o.correctIndex),f(),w("title",Uu("the correct answer is set on the ",i.languageName(i.language())," tab"))("checked",r===o.correctIndex),f(2),C("ABCDEF"[r]),f(),w("value",n)}}function _S(e,t){if(e&1){let n=B();d(0,"textarea",88),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.explanation,o)||(i.explanation=o),M(o)}),N("ngModelChange",function(){I(n);let o=v(4);return M(o.touched())}),u(),z(),d(1,"p",89),g(2),u()}if(e&2){let n=v().$implicit;X("ngModel",n.explanation),w("ngModelOptions",Ne(3,Ka)),G(),f(2),T("Source: ",n.sourceRef)}}function CS(e,t){if(e&1){let n=B();d(0,"div",72)(1,"div",75)(2,"span",76),g(3),u(),d(4,"div",77)(5,"textarea",78),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.question,o)||(i.question=o),M(o)}),N("ngModelChange",function(){I(n);let o=v(3);return M(o.touched())}),u(),z(),d(6,"div",79),Z(7,vS,5,7,"label",80,En),u(),d(9,"div",81)(10,"span",82),g(11),u(),d(12,"span",82),g(13),u(),d(14,"button",83),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.toggle(o.id))}),g(15),u()(),D(16,_S,3,4),u()()()}if(e&2){let n=t.$implicit,r=t.$index,o=v(3);f(3),C(r+1),f(2),X("ngModel",n.question),w("ngModelOptions",Ne(7,Ka)),G(),f(2),Y(n.options),f(4),C(n.difficulty),f(2),C(n.bloom),f(2),T(" ",o.revealed()[n.id]?"Hide explanation":"Show explanation"," "),f(),E(o.revealed()[n.id]?16:-1)}}function bS(e,t){if(e&1){let n=B();d(0,"p",71),g(1," Reword anything on this tab. "),d(2,"strong"),g(3,"The correct answer is shared by every language"),u(),g(4),u(),Z(5,CS,17,8,"div",72,Ei),d(7,"div",73)(8,"button",74),N("click",function(){I(n);let o=v(2);return M(o.save())}),g(9),u()()}if(e&2){let n=v(2);f(4),T(" \u2014 tick it on the ",n.languageName(n.language())," tab and it changes here too. "),f(),Y(n.viewedQuestions()),f(3),w("disabled",n.saving()),f(),T(" ",n.saving()?"Saving\u2026":n.saved()?"\u2713 Saved":"Save edits"," ")}}function DS(e,t){if(e&1){let n=B();d(0,"label",84)(1,"input",92),N("change",function(){let o=I(n).$index,i=v().$implicit,s=v(3);return M(s.markCorrect(i,o))}),u(),d(2,"span",86),g(3),u(),d(4,"input",87),N("input",function(o){let i=I(n).$index,s=v().$implicit,a=v(3);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;ce("correct",r===i.correctIndex),f(),w("name","correct-"+s)("checked",r===i.correctIndex),f(2),C("ABCDEF"[r]),f(),w("value",n)}}function ES(e,t){if(e&1){let n=B();d(0,"textarea",88),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.explanation,o)||(i.explanation=o),M(o)}),N("ngModelChange",function(){I(n);let o=v(4);return M(o.touched())}),u(),z(),d(1,"p",89),g(2),u()}if(e&2){let n=v().$implicit;X("ngModel",n.explanation),w("ngModelOptions",Ne(3,Ka)),G(),f(2),T("Source: ",n.sourceRef)}}function wS(e,t){if(e&1){let n=B();d(0,"div",90)(1,"div",75)(2,"span",76),g(3),u(),d(4,"div",77)(5,"textarea",78),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.question,o)||(i.question=o),M(o)}),N("ngModelChange",function(){I(n);let o=v(3);return M(o.touched())}),u(),z(),d(6,"div",79),Z(7,DS,5,6,"label",80,En),u(),d(9,"div",81)(10,"span",82),g(11),u(),d(12,"span",82),g(13),u(),d(14,"button",83),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.toggle(o.id))}),g(15),u()(),D(16,ES,3,4),u()()()}if(e&2){let n=t.$implicit,r=t.$index,o=v(3);f(3),C(r+1),f(2),X("ngModel",n.question),w("ngModelOptions",Ne(7,Ka)),G(),f(2),Y(n.options),f(4),C(n.difficulty),f(2),C(n.bloom),f(2),T(" ",o.revealed()[n.id]?"Hide explanation":"Show explanation"," "),f(),E(o.revealed()[n.id]?16:-1)}}function xS(e,t){if(e&1){let n=B();Z(0,wS,17,8,"div",90,Ei),d(2,"div",73)(3,"button",74),N("click",function(){I(n);let o=v(2);return M(o.save())}),g(4),u(),d(5,"span",91),g(6,"Save before downloading so the export matches what you see."),u()()}if(e&2){let n=v(),r=v();Y(n.assessment.questions),f(3),w("disabled",r.saving()),f(),T(" ",r.saving()?"Saving\u2026":r.saved()?"\u2713 Saved":"Save edits"," ")}}function SS(e,t){e&1&&g(0," Every language is a sheet of its own in the same workbook. ")}function IS(e,t){if(e&1){let n=B();d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"3"),u(),d(4,"h2",8),g(5,"Review questions"),u(),d(6,"span",57),g(7,"\u2014 edit anything, tick the correct option, then download"),u()(),d(8,"div",58)(9,"div")(10,"div",59),g(11),u(),d(12,"div",60),g(13),u()(),d(14,"div",61)(15,"button",62),N("click",function(){I(n);let o=v();return M(o.export("xlsx"))}),g(16," \u2B07 Excel"),D(17,uS,1,0),u(),d(18,"button",63),N("click",function(){I(n);let o=v();return M(o.export("csv"))}),g(19," \u2B07 CSV"),D(20,dS,1,1),u()()(),D(21,fS,2,1,"div",64),D(22,pS,4,2,"div",65),D(23,gS,2,0,"p",66),D(24,hS,2,1,"div",65),D(25,yS,3,0,"div",67),D(26,bS,10,3),D(27,xS,7,2),d(28,"p",68),g(29," 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. "),D(30,SS,1,0),u()()}if(e&2){let n=t,r=v();f(11),C(r.viewedTitle()),f(2),T("",r.viewedQuestions().length," questions"),f(4),E(r.hasTranslations()?17:-1),f(3),E(r.hasTranslations()?20:-1),f(),E(n.qcFixed?21:-1),f(),E(n.failedLanguages?.length?22:-1),f(),E(r.hasTranslations()?23:-1),f(),E(r.translationsStale()?24:-1),f(),E(r.resultLanguages().length>1?25:-1),f(),E(r.viewing()?26:-1),f(),E(r.viewing()?-1:27),f(3),E(r.resultLanguages().length>1?30:-1)}}var Qa=class e{api=b(Ut);destroyRef=b(de);get untilGone(){return t=>t.pipe(eo(this.destroyRef))}files=A([]);sources=A([]);reading=A(!1);generating=A(!1);result=A(null);error=A("");revealed=A({});languages=A([]);pastVideos=A([]);defaultLanguage=nt(void 0);defaultQuestionCount=nt(void 0);defaultDifficulty=nt(void 0);defaultTranslateInto=nt(void 0);assessmentReady=xn();seeded=!1;translateInto=A(new Set);busy=W(()=>this.generating()||this.reading());viewing=A("");stage=A("");elapsed=A(0);progressPct=W(()=>{let t=this.activeSecondaries().length?75:35;return Math.min(95,Math.round(this.elapsed()/t*100))});stageTimers=[];runStages(){this.stopStages();let t=this.activeSecondaries().map(o=>this.languageName(o)),n=t.length<=1?t[0]??"":`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`,r=[[0,"Reading your material\u2026"],[4e3,"Writing your questions\u2026"],[22e3,"Checking each question against your material\u2026"]];t.length?(r.push([34e3,`Translating into ${n}\u2026`]),r.push([52e3,`Checking the ${n} wording\u2026`]),r.push([7e4,"Re-translating anything that came back wrong\u2026"]),r.push([95e3,"Almost there \u2014 finishing the last language\u2026"])):r.push([34e3,"Almost there\u2026"]);for(let[o,i]of r)this.stageTimers.push(setTimeout(()=>{this.generating()&&(this.stage.set(i),this.elapsed.update(s=>s))},o));this.stage.set(r[0][1]),this.elapsed.set(0),this.stageTimers.push(setInterval(()=>{this.generating()&&this.elapsed.update(o=>o+1)},1e3))}stopStages(){for(let t of this.stageTimers)clearTimeout(t),clearInterval(t);this.stageTimers=[],this.stage.set("")}links="";brief="";sourceJobId="";language=A("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.destroyRef.onDestroy(()=>this.stopStages()),Ct(()=>{let t=this.defaultLanguage(),n=this.defaultQuestionCount(),r=this.defaultDifficulty(),o=this.defaultTranslateInto();this.seeded||(t&&this.language.set(t),n&&(this.numQuestions=n),r&&(this.difficulty=r),o&&this.translateInto.set(new Set(o.split(",").map(i=>i.trim()).filter(Boolean))),(t||n||r||o)&&(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=>{ue(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=>{ue(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=>U(j({},r),{checked:!r.error}));this.sources.update(r=>[...r,...n]),this.reading.set(!1)},error:t=>{this.error.set(ue(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.viewing.set(""),this.translationsStale.set(!1),this.runStages(),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,translateInto:this.activeSecondaries(),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.stopStages(),this.assessmentReady.emit({jobId:t.jobId,questionCount:t.assessment?.questions?.length??0,language:this.language(),languages:Object.keys(t.assessment?.translations??{})})},error:t=>{this.error.set(ue(t,"assessment")),this.generating.set(!1),this.stopStages()}}))}toggle(t){this.revealed.update(n=>U(j({},n),{[t]:!n[t]}))}secondaryChoices=W(()=>this.languages().filter(t=>t.code!==this.language()));activeSecondaries=W(()=>[...this.translateInto()].filter(t=>t!==this.language()));toggleLanguage(t){this.translateInto.update(n=>{let r=new Set(n);return r.delete(t)||r.add(t),r})}plannedSummary=W(()=>{let t=this.activeSecondaries().map(r=>this.languageName(r));return t.length?`Also in ${t.length===1?t[0]:`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`} \u2014 takes a little longer`:""});resultLanguages=W(()=>{let t=this.result()?.assessment?.translations??{};return[{code:"",name:this.languageName(this.language())},...Object.keys(t).map(n=>({code:n,name:this.languageName(n)}))]});viewedTitle=W(()=>{let t=this.result()?.assessment,n=this.viewing();return(n?t?.translations?.[n]?.title:t?.title)??""});viewedQuestions=W(()=>{let t=this.result()?.assessment,n=this.viewing();return(n?t?.translations?.[n]?.questions:t?.questions)??[]});failedLanguageNames=W(()=>{let t=(this.result()?.failedLanguages??[]).map(n=>this.languageName(n.language));return t.length<=1?t[0]??"":`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`});viewedLanguageName=W(()=>this.languageName(this.viewing()||this.language()));languageName(t){return this.languages().find(n=>n.code===t)?.name??t}saving=A(!1);saved=A(!1);markCorrect(t,n){t.correctIndex=n;for(let r of Object.values(this.result()?.assessment?.translations??{})){let o=r.questions.find(i=>i.id===t.id);o&&(o.correctIndex=n)}this.saved.set(!1)}editOption(t,n,r){t.options[n]=r,this.touched()}editTranslatedOption(t,n,r){t.options[n]=r,this.saved.set(!1)}touched(){this.saved.set(!1),!this.viewing()&&this.hasTranslations()&&this.translationsStale.set(!0)}hasTranslations=W(()=>Object.keys(this.result()?.assessment?.translations??{}).length>0);translationsStale=A(!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(ue(n,"assessment")),this.saving.set(!1)}}))}export(t,n=t==="csv"?this.viewing():""){let r=this.result();r&&pr({feature:"assessment",lookup:this.api.exportUrl(r.jobId,t,n||void 0),fallbackHref:this.api.exportHref(r.jobId,t,n||void 0),onError:o=>this.error.set(o)})}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"],defaultTranslateInto:[1,"defaultTranslateInto"]},outputs:{assessmentReady:"assessmentReady"},decls:81,vars:31,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
|
|
14
|
+
`)}hasVideo=W(()=>this.job()?.status==="done"&&!!this.job()?.video);playbackSrc=W(()=>{let t=this.job();return t?.videoUrl??t?.video??null});download(){let t=this.job();t&&pr({feature:"content-studio",lookup:this.api.downloadVideoUrl(t.id),fallbackHref:this.api.downloadVideoHref(t.id),onError:n=>this.error.set(n)})}deleteVideo=qa({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),g(1,"AI Studio"),u(),d(2,"h1",1),g(3,"Turn a document into a training video"),u(),d(4,"p",2),g(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,Pw,2,1,"div",3),d(7,"div",4)(8,"section",5)(9,"div",6)(10,"span",7),g(11,"1"),u(),d(12,"h2",8),g(13,"Source material"),u()(),D(14,Lw,7,3,"label",9)(15,Hw,1,1)(16,$w,10,5,"div",10),u(),d(17,"section",5)(18,"div",6)(19,"span",7),g(20,"2"),u(),d(21,"h2",8),g(22),u()(),D(23,zw,2,0,"p",11),d(24,"div",12),Z(25,Gw,5,6,"button",13,gt),u(),d(27,"div",14)(28,"div"),D(29,Ww,3,1)(30,qw,3,2),u(),d(31,"div",15)(32,"label",16),g(33,"Language"),u(),d(34,"select",17),ee("ngModelChange",function(i){return re(r.language,i)||(r.language=i),i}),Z(35,Zw,2,2,"option",18,gt),u(),z(),d(37,"label",19),g(38,"Voice"),u(),d(39,"select",20),ee("ngModelChange",function(i){return re(r.voicePref,i)||(r.voicePref=i),i}),d(40,"option",21),g(41,"Auto \u2014 director picks & explains"),u(),Z(42,Yw,2,2,"option",18,gt),u(),z(),u()(),D(44,tx,44,12,"div",22),d(45,"button",23),N("click",function(){return r.makePlan()}),g(46),u()(),D(47,px,33,13,"section",5),D(48,Tx,68,28,"section",5),D(49,Hx,7,1,"section",5),D(50,Yx,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;f(6),E(r.error()?6:-1),f(8),E(r.doc()?r.isEditMode()?15:16:14),f(3),le("dim",!r.hasSource()),f(5),C(r.isEditMode()?"What should be changed?":"How should the video look?"),f(),E(r.isEditMode()?-1:23),f(),w("hidden",r.isEditMode()),f(),Y(r.videoTypes),f(4),E(r.isEditMode()?29:30),f(5),X("ngModel",r.language),w("disabled",!r.hasSource()),G(),f(),Y(r.languages),f(4),X("ngModel",r.voicePref),w("disabled",!r.hasSource()),G(),f(3),Y(r.voices()),f(2),E(r.isEditMode()?-1:44),f(),w("disabled",!r.hasSource()||r.planning()||r.isEditMode()&&!r.brief.trim()),f(),T(" ",r.planning()?"Planning\u2026":r.isEditMode()?"Plan the edits":"Generate scene plan"," "),f(),E((o=r.editPlan())?47:-1,o),f(),E((i=r.result())?48:-1,i),f(),E(r.job()||r.producing()?49:-1),f(),E(r.hasVideo()?50:-1),f(),w("open",r.deleteVideo.open())("subject",r.contentName()||r.job()?.plan?.title||"")("busy",r.deleteVideo.busy())}},dependencies:[Sn,ao,Ga,Wa,In,Td,so,io,Rd,fr,lo,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})};function Iy(e){let t=e.everyMs??2500,n=null,r=()=>{n&&clearTimeout(n),n=null},o=i=>{e.fetch(i).subscribe({next:s=>{e.onTick?.(s),s.status==="done"?(r(),e.onDone(s)):s.status==="failed"?(r(),e.onFailed(s.error??"It did not finish. Please try again.",s)):n=setTimeout(()=>o(i),t)},error:s=>{r(),e.onFailed(s instanceof Error?s.message:String(s))}})};return{start(i){r(),o(i)},stop:r}}var Ka=()=>({standalone:!0}),Ei=(e,t)=>t.id,Vd=(e,t)=>t.code;function Qx(e,t){if(e&1&&(d(0,"div",3),g(1),u()),e&2){let n=v();f(),C(n.error())}}function Kx(e,t){if(e&1&&(d(0,"div",16),g(1),u()),e&2){let n=v();f(),T("",n.files().length," file(s) selected")}}function Jx(e,t){if(e&1&&(d(0,"span",46),g(1),u()),e&2){let n=v().$implicit;f(),C(n.error)}}function Xx(e,t){if(e&1&&(d(0,"span",47),g(1),ft(2,"number"),u()),e&2){let n=v().$implicit;f(),T("",ar(2,1,n.chars)," chars")}}function eS(e,t){if(e&1){let n=B();d(0,"li")(1,"input",44),N("change",function(){let o=I(n).$implicit,i=v(2);return M(i.toggleSource(o))}),u(),d(2,"span",45),g(3),u(),D(4,Jx,2,1,"span",46)(5,Xx,3,3,"span",47),u()}if(e&2){let n=t.$implicit,r=v(2);le("bad",n.error)("off",!n.error&&!n.checked),f(),w("checked",n.checked)("disabled",!!n.error||r.busy()),f(2),C(n.name),f(),E(n.error?4:5)}}function tS(e,t){if(e&1&&(d(0,"ul",18),Z(1,eS,6,8,"li",43,En),u()),e&2){let n=v();f(),Y(n.sources())}}function nS(e,t){if(e&1&&(d(0,"option",25),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),T("\u{1F3AC} ",n.plan?.title||n.filename||n.id)}}function rS(e,t){if(e&1&&(d(0,"option",25),g(1),u()),e&2){let n=t.$implicit;w("value",n.code),f(),C(n.name)}}function oS(e,t){if(e&1&&(d(0,"option",33),g(1),u()),e&2){let n=t.$implicit;w("ngValue",n),f(),C(n)}}function iS(e,t){if(e&1&&(d(0,"option",25),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function sS(e,t){if(e&1&&(d(0,"option",25),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function aS(e,t){if(e&1){let n=B();d(0,"label",50)(1,"input",51),N("change",function(){let o=I(n).$implicit,i=v(2);return M(i.toggleLanguage(o.code))}),u(),g(2),u()}if(e&2){let n=t.$implicit,r=v(2);le("on",r.translateInto().has(n.code)),f(),w("checked",r.translateInto().has(n.code))("disabled",r.generating()),f(),T(" ",n.name," ")}}function lS(e,t){if(e&1&&(d(0,"fieldset",38)(1,"legend"),g(2,"Also generate in \u2014 the "),d(3,"strong"),g(4,"same"),u(),g(5," questions, translated (optional)"),u(),d(6,"div",48),Z(7,aS,3,5,"label",49,Vd),u(),d(9,"p",42),g(10," Same question order, same options, same answer key in every language \u2014 you review each language on its own tab, and nothing needs translating afterwards. "),u()()),e&2){let n=v();f(7),Y(n.secondaryChoices())}}function cS(e,t){if(e&1&&(d(0,"span",41)(1,"span",52),Ce(2,"span",53),g(3),d(4,"span",54),g(5),u()(),d(6,"span",55),Ce(7,"span",56),u()()),e&2){let n=v();f(3),T("",n.stage()," "),f(2),T("",n.elapsed(),"s"),f(2),sn("width",n.progressPct(),"%")}}function uS(e,t){if(e&1&&(d(0,"span",42),g(1),u()),e&2){let n=v();f(),C(n.plannedSummary())}}function dS(e,t){e&1&&g(0," \xB7 all languages")}function fS(e,t){if(e&1&&g(0),e&2){let n=v(2);T(" \xB7 ",n.viewedLanguageName())}}function pS(e,t){if(e&1&&(d(0,"div",64),g(1),u()),e&2){let n=v();f(),T("Quality check corrected ",n.qcFixed," question(s) before showing them.")}}function gS(e,t){if(e&1&&(d(0,"div",65)(1,"strong"),g(2),u(),g(3),u()),e&2){let n=v(2);f(2),C(n.failedLanguageNames()),f(),T(" could not be completed this time. Your questions are safe \u2014 try generating again to add ",n.failedLanguageNames(),". ")}}function hS(e,t){e&1&&(d(0,"p",66),g(1," Excel gives you one file with a sheet per language. CSV gives you one language \u2014 whichever tab you are reading. "),u())}function mS(e,t){if(e&1&&(d(0,"div",65),g(1),u()),e&2){let n=v(2);f(),T(" You have changed the questions, so the other languages still show the earlier wording. Generate again to update them, or download ",n.languageName(n.language())," on its own. ")}}function yS(e,t){if(e&1){let n=B();d(0,"button",70),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.viewing.set(o.code))}),g(1),u()}if(e&2){let n=t.$implicit,r=v(3);le("on",r.viewing()===n.code),tt("aria-selected",r.viewing()===n.code),f(),C(n.name)}}function vS(e,t){if(e&1&&(d(0,"div",67),Z(1,yS,2,4,"button",69,Vd),u()),e&2){let n=v(2);f(),Y(n.resultLanguages())}}function _S(e,t){if(e&1){let n=B();d(0,"label",84),Ce(1,"input",85),d(2,"span",86),g(3),u(),d(4,"input",87),N("input",function(o){let i=I(n).$index,s=v().$implicit,a=v(3);return M(a.editTranslatedOption(s,i,o.target.value))}),u()()}if(e&2){let n=t.$implicit,r=t.$index,o=v().$implicit,i=v(3);le("correct",r===o.correctIndex),f(),w("title",Uu("the correct answer is set on the ",i.languageName(i.language())," tab"))("checked",r===o.correctIndex),f(2),C("ABCDEF"[r]),f(),w("value",n)}}function CS(e,t){if(e&1){let n=B();d(0,"textarea",88),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.explanation,o)||(i.explanation=o),M(o)}),N("ngModelChange",function(){I(n);let o=v(4);return M(o.touched())}),u(),z(),d(1,"p",89),g(2),u()}if(e&2){let n=v().$implicit;X("ngModel",n.explanation),w("ngModelOptions",Ne(3,Ka)),G(),f(2),T("Source: ",n.sourceRef)}}function bS(e,t){if(e&1){let n=B();d(0,"div",72)(1,"div",75)(2,"span",76),g(3),u(),d(4,"div",77)(5,"textarea",78),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.question,o)||(i.question=o),M(o)}),N("ngModelChange",function(){I(n);let o=v(3);return M(o.touched())}),u(),z(),d(6,"div",79),Z(7,_S,5,7,"label",80,En),u(),d(9,"div",81)(10,"span",82),g(11),u(),d(12,"span",82),g(13),u(),d(14,"button",83),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.toggle(o.id))}),g(15),u()(),D(16,CS,3,4),u()()()}if(e&2){let n=t.$implicit,r=t.$index,o=v(3);f(3),C(r+1),f(2),X("ngModel",n.question),w("ngModelOptions",Ne(7,Ka)),G(),f(2),Y(n.options),f(4),C(n.difficulty),f(2),C(n.bloom),f(2),T(" ",o.revealed()[n.id]?"Hide explanation":"Show explanation"," "),f(),E(o.revealed()[n.id]?16:-1)}}function DS(e,t){if(e&1){let n=B();d(0,"p",71),g(1," Reword anything on this tab. "),d(2,"strong"),g(3,"The correct answer is shared by every language"),u(),g(4),u(),Z(5,bS,17,8,"div",72,Ei),d(7,"div",73)(8,"button",74),N("click",function(){I(n);let o=v(2);return M(o.save())}),g(9),u()()}if(e&2){let n=v(2);f(4),T(" \u2014 tick it on the ",n.languageName(n.language())," tab and it changes here too. "),f(),Y(n.viewedQuestions()),f(3),w("disabled",n.saving()),f(),T(" ",n.saving()?"Saving\u2026":n.saved()?"\u2713 Saved":"Save edits"," ")}}function ES(e,t){if(e&1){let n=B();d(0,"label",84)(1,"input",92),N("change",function(){let o=I(n).$index,i=v().$implicit,s=v(3);return M(s.markCorrect(i,o))}),u(),d(2,"span",86),g(3),u(),d(4,"input",87),N("input",function(o){let i=I(n).$index,s=v().$implicit,a=v(3);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;le("correct",r===i.correctIndex),f(),w("name","correct-"+s)("checked",r===i.correctIndex),f(2),C("ABCDEF"[r]),f(),w("value",n)}}function wS(e,t){if(e&1){let n=B();d(0,"textarea",88),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.explanation,o)||(i.explanation=o),M(o)}),N("ngModelChange",function(){I(n);let o=v(4);return M(o.touched())}),u(),z(),d(1,"p",89),g(2),u()}if(e&2){let n=v().$implicit;X("ngModel",n.explanation),w("ngModelOptions",Ne(3,Ka)),G(),f(2),T("Source: ",n.sourceRef)}}function xS(e,t){if(e&1){let n=B();d(0,"div",90)(1,"div",75)(2,"span",76),g(3),u(),d(4,"div",77)(5,"textarea",78),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.question,o)||(i.question=o),M(o)}),N("ngModelChange",function(){I(n);let o=v(3);return M(o.touched())}),u(),z(),d(6,"div",79),Z(7,ES,5,6,"label",80,En),u(),d(9,"div",81)(10,"span",82),g(11),u(),d(12,"span",82),g(13),u(),d(14,"button",83),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.toggle(o.id))}),g(15),u()(),D(16,wS,3,4),u()()()}if(e&2){let n=t.$implicit,r=t.$index,o=v(3);f(3),C(r+1),f(2),X("ngModel",n.question),w("ngModelOptions",Ne(7,Ka)),G(),f(2),Y(n.options),f(4),C(n.difficulty),f(2),C(n.bloom),f(2),T(" ",o.revealed()[n.id]?"Hide explanation":"Show explanation"," "),f(),E(o.revealed()[n.id]?16:-1)}}function SS(e,t){if(e&1){let n=B();Z(0,xS,17,8,"div",90,Ei),d(2,"div",73)(3,"button",74),N("click",function(){I(n);let o=v(2);return M(o.save())}),g(4),u(),d(5,"span",91),g(6,"Save before downloading so the export matches what you see."),u()()}if(e&2){let n=v(),r=v();Y(n.assessment.questions),f(3),w("disabled",r.saving()),f(),T(" ",r.saving()?"Saving\u2026":r.saved()?"\u2713 Saved":"Save edits"," ")}}function IS(e,t){e&1&&g(0," Every language is a sheet of its own in the same workbook. ")}function MS(e,t){if(e&1){let n=B();d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"3"),u(),d(4,"h2",8),g(5,"Review questions"),u(),d(6,"span",57),g(7,"\u2014 edit anything, tick the correct option, then download"),u()(),d(8,"div",58)(9,"div")(10,"div",59),g(11),u(),d(12,"div",60),g(13),u()(),d(14,"div",61)(15,"button",62),N("click",function(){I(n);let o=v();return M(o.export("xlsx"))}),g(16," \u2B07 Excel"),D(17,dS,1,0),u(),d(18,"button",63),N("click",function(){I(n);let o=v();return M(o.export("csv"))}),g(19," \u2B07 CSV"),D(20,fS,1,1),u()()(),D(21,pS,2,1,"div",64),D(22,gS,4,2,"div",65),D(23,hS,2,0,"p",66),D(24,mS,2,1,"div",65),D(25,vS,3,0,"div",67),D(26,DS,10,3),D(27,SS,7,2),d(28,"p",68),g(29," 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. "),D(30,IS,1,0),u()()}if(e&2){let n=t,r=v();f(11),C(r.viewedTitle()),f(2),T("",r.viewedQuestions().length," questions"),f(4),E(r.hasTranslations()?17:-1),f(3),E(r.hasTranslations()?20:-1),f(),E(n.qcFixed?21:-1),f(),E(n.failedLanguages?.length?22:-1),f(),E(r.hasTranslations()?23:-1),f(),E(r.translationsStale()?24:-1),f(),E(r.resultLanguages().length>1?25:-1),f(),E(r.viewing()?26:-1),f(),E(r.viewing()?-1:27),f(3),E(r.resultLanguages().length>1?30:-1)}}var Qa=class e{api=b(Ut);destroyRef=b(de);get untilGone(){return t=>t.pipe(eo(this.destroyRef))}files=A([]);sources=A([]);reading=A(!1);generating=A(!1);result=A(null);error=A("");revealed=A({});languages=A([]);pastVideos=A([]);defaultLanguage=nt(void 0);defaultQuestionCount=nt(void 0);defaultDifficulty=nt(void 0);defaultTranslateInto=nt(void 0);assessmentReady=xn();seeded=!1;translateInto=A(new Set);busy=W(()=>this.generating()||this.reading());viewing=A("");stage=A("");serverProgress=A(null);elapsed=A(0);progressPct=W(()=>{let t=this.activeSecondaries().length?75:35,n=Math.min(95,Math.round(this.elapsed()/t*100)),r=this.serverProgress();return r===null?n:Math.min(99,Math.max(r,n))});stageTimers=[];runStages(){this.stopStages();let t=this.activeSecondaries().map(o=>this.languageName(o)),n=t.length<=1?t[0]??"":`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`,r=[[0,"Reading your material\u2026"],[4e3,"Writing your questions\u2026"],[22e3,"Checking each question against your material\u2026"]];t.length?(r.push([34e3,`Translating into ${n}\u2026`]),r.push([52e3,`Checking the ${n} wording\u2026`]),r.push([7e4,"Re-translating anything that came back wrong\u2026"]),r.push([95e3,"Almost there \u2014 finishing the last language\u2026"])):r.push([34e3,"Almost there\u2026"]);for(let[o,i]of r)this.stageTimers.push(setTimeout(()=>{this.generating()&&(this.stage.set(i),this.elapsed.update(s=>s))},o));this.stage.set(r[0][1]),this.elapsed.set(0),this.stageTimers.push(setInterval(()=>{this.generating()&&this.elapsed.update(o=>o+1)},1e3))}stopStages(){for(let t of this.stageTimers)clearTimeout(t),clearInterval(t);this.stageTimers=[],this.stage.set("")}links="";brief="";sourceJobId="";language=A("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.destroyRef.onDestroy(()=>{this.stopStages(),this.poll.stop()}),Ct(()=>{let t=this.defaultLanguage(),n=this.defaultQuestionCount(),r=this.defaultDifficulty(),o=this.defaultTranslateInto();this.seeded||(t&&this.language.set(t),n&&(this.numQuestions=n),r&&(this.difficulty=r),o&&this.translateInto.set(new Set(o.split(",").map(i=>i.trim()).filter(Boolean))),(t||n||r||o)&&(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=>{ue(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=>{ue(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=>U(j({},r),{checked:!r.error}));this.sources.update(r=>[...r,...n]),this.reading.set(!1)},error:t=>{this.error.set(ue(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.viewing.set(""),this.translationsStale.set(!1),this.serverProgress.set(null),this.runStages(),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,translateInto:this.activeSecondaries(),sourceIds:this.readySources.map(t=>t.id).filter(Boolean),sourceJobId:this.sourceJobId||void 0}).pipe(this.untilGone).subscribe({next:({jobId:t})=>this.poll.start(t),error:t=>this.finishWith(ue(t,"assessment"))}))}poll=Iy({fetch:t=>this.api.assessmentJob(t).pipe(this.untilGone),onTick:t=>{typeof t.progress=="number"&&this.serverProgress.set(t.progress)},onDone:t=>{let n=t.assessment;this.result.set({jobId:t.id,assessment:n,failedLanguages:t.settings?.failedLanguages}),this.finishWith(""),this.assessmentReady.emit({jobId:t.id,questionCount:n?.questions?.length??0,language:this.language(),languages:Object.keys(n?.translations??{})})},onFailed:t=>this.finishWith(t)});finishWith(t){t&&this.error.set(t),this.generating.set(!1),this.stopStages()}toggle(t){this.revealed.update(n=>U(j({},n),{[t]:!n[t]}))}secondaryChoices=W(()=>this.languages().filter(t=>t.code!==this.language()));activeSecondaries=W(()=>[...this.translateInto()].filter(t=>t!==this.language()));toggleLanguage(t){this.translateInto.update(n=>{let r=new Set(n);return r.delete(t)||r.add(t),r})}plannedSummary=W(()=>{let t=this.activeSecondaries().map(r=>this.languageName(r));return t.length?`Also in ${t.length===1?t[0]:`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`} \u2014 takes a little longer`:""});resultLanguages=W(()=>{let t=this.result()?.assessment?.translations??{};return[{code:"",name:this.languageName(this.language())},...Object.keys(t).map(n=>({code:n,name:this.languageName(n)}))]});viewedTitle=W(()=>{let t=this.result()?.assessment,n=this.viewing();return(n?t?.translations?.[n]?.title:t?.title)??""});viewedQuestions=W(()=>{let t=this.result()?.assessment,n=this.viewing();return(n?t?.translations?.[n]?.questions:t?.questions)??[]});failedLanguageNames=W(()=>{let t=(this.result()?.failedLanguages??[]).map(n=>this.languageName(n.language));return t.length<=1?t[0]??"":`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`});viewedLanguageName=W(()=>this.languageName(this.viewing()||this.language()));languageName(t){return this.languages().find(n=>n.code===t)?.name??t}saving=A(!1);saved=A(!1);markCorrect(t,n){t.correctIndex=n;for(let r of Object.values(this.result()?.assessment?.translations??{})){let o=r.questions.find(i=>i.id===t.id);o&&(o.correctIndex=n)}this.saved.set(!1)}editOption(t,n,r){t.options[n]=r,this.touched()}editTranslatedOption(t,n,r){t.options[n]=r,this.saved.set(!1)}touched(){this.saved.set(!1),!this.viewing()&&this.hasTranslations()&&this.translationsStale.set(!0)}hasTranslations=W(()=>Object.keys(this.result()?.assessment?.translations??{}).length>0);translationsStale=A(!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(ue(n,"assessment")),this.saving.set(!1)}}))}export(t,n=t==="csv"?this.viewing():""){let r=this.result();r&&pr({feature:"assessment",lookup:this.api.exportUrl(r.jobId,t,n||void 0),fallbackHref:this.api.exportHref(r.jobId,t,n||void 0),onError:o=>this.error.set(o)})}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"],defaultTranslateInto:[1,"defaultTranslateInto"]},outputs:{assessmentReady:"assessmentReady"},decls:81,vars:31,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","disabled"],[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","disabled"],[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","disabled"],["for","asrc",1,"label","mt"],["id","asrc",1,"field",3,"ngModelChange","ngModel","disabled"],["value",""],[3,"value"],[1,"side"],["for","alang",1,"label"],["id","alang",1,"field",3,"ngModelChange","ngModel","disabled"],["for","acount",1,"label","mt"],["id","acount","type","number","min","1","max","60",1,"field",3,"ngModelChange","ngModel","disabled"],["for","aopts",1,"label","mt"],["id","aopts",1,"field",3,"ngModelChange","ngModel","disabled"],[3,"ngValue"],["for","adiff",1,"label","mt"],["id","adiff",1,"field",3,"ngModelChange","ngModel","disabled"],["for","abloom",1,"label","mt"],["id","abloom",1,"field",3,"ngModelChange","ngModel","disabled"],[1,"langs","mt-lg"],[1,"gen-row","mt-lg"],[1,"btn",3,"click","disabled"],[1,"progress"],[1,"hint"],[3,"bad","off"],["type","checkbox","title","include this source",3,"change","checked","disabled"],[1,"src-name"],[1,"chip","err"],[1,"mono","muted"],[1,"lang-chips"],[1,"lang-chip",3,"on"],[1,"lang-chip"],["type","checkbox",3,"change","checked","disabled"],[1,"progress-line"],[1,"spin"],[1,"mono","progress-time"],[1,"progress-track"],[1,"progress-fill"],[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"],[1,"qc-note"],[1,"qc-note","warn"],[1,"hint","export-note"],["role","tablist",1,"lang-tabs"],[1,"muted","note"],["type","button","role","tab",1,"lang-tab",3,"on"],["type","button","role","tab",1,"lang-tab",3,"click"],[1,"hint","lang-note"],[1,"q","q-locked"],[1,"save-row"],[1,"btn","btn-ghost",3,"click","disabled"],[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","disabled","",3,"checked","title"],[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"],[1,"q"],[1,"muted","save-hint"],["type","radio","title","mark as correct",3,"change","name","checked"]],template:function(n,r){if(n&1&&(d(0,"p",0),g(1,"Assessment"),u(),d(2,"h1",1),g(3,"Create a assessment from your training material"),u(),d(4,"p",2),g(5,"Upload documents or paste links, and get multiple-choice questions you can review, translate and download."),u(),D(6,Yx,2,1,"div",3),d(7,"div",4)(8,"section",5)(9,"div",6)(10,"span",7),g(11,"1"),u(),d(12,"h2",8),g(13,"Your material"),u()(),d(14,"p",9),g(15,"Add files (PDF, Word, text, video or audio) and links \u2014 any mix. Videos and audio are written out for you."),u(),d(16,"div",10)(17,"div")(18,"textarea",11),ee("ngModelChange",function(i){return re(r.links,i)||(r.links=i),i}),u(),z(),d(19,"div",12),g(20," \u26A0 Drive links must be shared as "),d(21,"b"),g(22,'"Anyone with the link \u2013 Viewer"'),u(),g(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(),g(27," \u{1F4CE} Choose files\u2026 "),u(),D(28,Qx,2,1,"div",16),d(29,"button",17),N("click",function(){return r.readSources()}),g(30),u()()(),D(31,eS,3,0,"ul",18),u(),d(32,"section",5)(33,"div",6)(34,"span",7),g(35,"2"),u(),d(36,"h2",8),g(37,"Settings"),u()(),d(38,"div",19)(39,"div")(40,"label",20),g(41,"Instructions (optional) \u2014 focus areas, style, anything specific"),u(),d(42,"textarea",21),ee("ngModelChange",function(i){return re(r.brief,i)||(r.brief=i),i}),u(),z(),d(43,"label",22),g(44,"Also include a past video's script (optional)"),u(),d(45,"select",23),ee("ngModelChange",function(i){return re(r.sourceJobId,i)||(r.sourceJobId=i),i}),d(46,"option",24),g(47,"\u2014 no \u2014"),u(),Z(48,tS,2,2,"option",25,Ei),u(),z(),u(),d(50,"div",26)(51,"label",27),g(52,"Language"),u(),d(53,"select",28),N("ngModelChange",function(i){return r.language.set(i)}),Z(54,nS,2,2,"option",25,Vd),u(),z(),d(56,"label",29),g(57,"Number of questions"),u(),d(58,"input",30),ee("ngModelChange",function(i){return re(r.numQuestions,i)||(r.numQuestions=i),i}),u(),z(),d(59,"label",31),g(60,"Options per question"),u(),d(61,"select",32),ee("ngModelChange",function(i){return re(r.numOptions,i)||(r.numOptions=i),i}),Z(62,rS,2,2,"option",33,Jo),u(),z(),d(64,"label",34),g(65,"Difficulty"),u(),d(66,"select",35),ee("ngModelChange",function(i){return re(r.difficulty,i)||(r.difficulty=i),i}),Z(67,oS,2,2,"option",25,Ei),u(),z(),d(69,"label",36),g(70,"Bloom's level"),u(),d(71,"select",37),ee("ngModelChange",function(i){return re(r.bloom,i)||(r.bloom=i),i}),Z(72,iS,2,2,"option",25,Ei),u(),z(),u()(),D(74,aS,11,0,"fieldset",38),d(75,"div",39)(76,"button",40),N("click",function(){return r.generate()}),g(77),u(),D(78,cS,8,4,"span",41)(79,lS,2,1,"span",42),u()(),D(80,IS,31,12,"section",5),u()),n&2){let o;f(6),E(r.error()?6:-1),f(12),X("ngModel",r.links),w("disabled",r.busy()),G(),f(7),ce("is-disabled",r.busy()),f(),w("disabled",r.busy()),f(2),E(r.files().length?28:-1),f(),w("disabled",r.busy()||!r.files().length&&!r.links.trim()),f(),T(" ",r.reading()?"Reading\u2026":"Read sources"," "),f(),E(r.sources().length?31:-1),f(),ce("dim",!r.readySources.length&&!r.sourceJobId),f(10),X("ngModel",r.brief),w("disabled",r.generating()),G(),f(3),X("ngModel",r.sourceJobId),w("disabled",r.generating()),G(),f(3),Y(r.pastVideos()),f(5),w("ngModel",r.language())("disabled",r.generating()),G(),f(),Y(r.languages()),f(4),X("ngModel",r.numQuestions),w("disabled",r.generating()),G(),f(3),X("ngModel",r.numOptions),w("disabled",r.generating()),G(),f(),Y(r.optionCounts),f(4),X("ngModel",r.difficulty),w("disabled",r.generating()),G(),f(),Y(r.difficulties),f(4),X("ngModel",r.bloom),w("disabled",r.generating()),G(),f(),Y(r.blooms),f(2),E(r.secondaryChoices().length?74:-1),f(2),w("disabled",r.generating()||!r.readySources.length&&!r.sourceJobId),f(),T(" ",r.generating()?"Generating\u2026":"Generate questions"," "),f(),E(r.generating()?78:r.translateInto().size?79:-1),f(2),E((o=r.result())?80:-1,o)}},dependencies:[Sn,ao,Ga,Wa,In,Fd,so,io,kd,Od,fr,ci],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}.langs[_ngcontent-%COMP%]{border:1px solid var(--%NS%aastrika-line);border-radius:10px;padding:14px 16px;margin-top:18px;background:var(--%NS%aastrika-surface-2)}.langs[_ngcontent-%COMP%] legend[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);padding:0 6px}.lang-chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}.lang-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border:1px solid var(--%NS%aastrika-line);border-radius:999px;background:var(--%NS%aastrika-surface);font-size:13px;line-height:1;color:var(--%NS%aastrika-fg);cursor:pointer;transition:border-color .12s,background .12s;-webkit-user-select:none;user-select:none}.lang-chip[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold)}.lang-chip[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:0;cursor:pointer;accent-color:var(--%NS%aastrika-gold-deep)}.lang-chip.on[_ngcontent-%COMP%]{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);font-weight:600}.lang-chip[_ngcontent-%COMP%]:has(input:disabled){opacity:.5;cursor:default}.lang-chip[_ngcontent-%COMP%]:focus-within{outline:2px solid var(--%NS%aastrika-gold);outline-offset:2px}.langs[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%]{margin:10px 0 0}.ml[_ngcontent-%COMP%]{margin-left:12px}.lang-tabs[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:2px;border-bottom:1px solid var(--%NS%aastrika-line);margin:18px 0 14px}.lang-tab[_ngcontent-%COMP%]{padding:9px 16px;border:0;border-bottom:2px solid transparent;background:none;cursor:pointer;font:inherit;font-size:13.5px;color:var(--%NS%aastrika-muted)}.lang-tab[_ngcontent-%COMP%]:hover{color:var(--%NS%aastrika-fg)}.lang-tab.on[_ngcontent-%COMP%]{color:var(--%NS%aastrika-gold-deep);border-bottom-color:var(--%NS%aastrika-gold);font-weight:600}.lang-tab[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--%NS%aastrika-gold);outline-offset:-2px}.q-locked[_ngcontent-%COMP%] .opt[_ngcontent-%COMP%]{cursor:default}.q-locked[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:disabled{opacity:.45}.qc-note.warn[_ngcontent-%COMP%]{border-left-color:var(--%NS%aastrika-warn-fg);background:var(--%NS%aastrika-warn-bg)}.spin[_ngcontent-%COMP%]{display:inline-block;width:11px;height:11px;margin-right:7px;vertical-align:-1px;border:2px solid var(--%NS%aastrika-line);border-top-color:var(--%NS%aastrika-gold);border-radius:50%;animation:_ngcontent-%COMP%_aa-spin .7s linear infinite}@keyframes _ngcontent-%COMP%_aa-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spin[_ngcontent-%COMP%]{animation:none;border-top-color:var(--%NS%aastrika-line)}}.field[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.pick.is-disabled[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}.export-note[_ngcontent-%COMP%]{margin:10px 0 0}.lang-note[_ngcontent-%COMP%]{margin:0 0 16px;padding:10px 14px;border-radius:8px;background:var(--%NS%aastrika-surface-2)}.progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:9px;flex:1 1 280px;max-width:460px;padding:13px 16px;border:1px solid var(--%NS%aastrika-gold-soft);border-radius:12px;background:color-mix(in srgb,var(--%NS%aastrika-gold-soft) 30%,var(--%NS%aastrika-surface))}.progress-line[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:var(--%NS%aastrika-gold-deep)}.progress-time[_ngcontent-%COMP%]{margin-left:auto;font-size:12.5px;font-weight:500;color:var(--%NS%aastrika-gold-deep);opacity:.7}.progress-track[_ngcontent-%COMP%]{height:6px;border-radius:999px;background:color-mix(in srgb,var(--%NS%aastrika-gold-deep) 13%,transparent);overflow:hidden}.progress-fill[_ngcontent-%COMP%]{display:block;height:100%;border-radius:999px;background:var(--%NS%aastrika-gold-deep);transition:width .9s linear}.progress[_ngcontent-%COMP%] .spin[_ngcontent-%COMP%]{width:13px;height:13px;margin:0;flex:none;border-width:2px;border-color:color-mix(in srgb,var(--%NS%aastrika-gold-deep) 22%,transparent);border-top-color:var(--%NS%aastrika-gold-deep)}.gen-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.gen-row[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{flex:none}.btn[_ngcontent-%COMP%]:disabled{opacity:.92}@media(prefers-reduced-motion:reduce){.progress-fill[_ngcontent-%COMP%]{transition:none}}"],changeDetection:1})};var MS=(e,t)=>t.creator,Iy=(e,t)=>t.id;function TS(e,t){e&1&&(d(0,"p",3),g(1,"Loading\u2026"),u())}function NS(e,t){if(e&1&&(d(0,"div",4)(1,"p",3),g(2),u()()),e&2){let n=v();f(2),C(n.error())}}function AS(e,t){if(e&1){let n=B();d(0,"div",6),g(1," Showing: "),d(2,"b"),g(3),u(),d(4,"a",25),N("click",function(o){return I(n),v(3).clearFilter(),M(o.preventDefault())}),g(5,"\u2715 all users"),u()()}if(e&2){let n=v(3);f(3),C(n.selectedCreator())}}function OS(e,t){if(e&1){let n=B();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"),g(3),u()(),d(4,"td",27),g(5),u(),d(6,"td",27),g(7),u(),d(8,"td",27),g(9),u(),d(10,"td",27),g(11),u(),d(12,"td",27)(13,"b"),g(14),u()(),d(15,"td",3),g(16),ft(17,"date"),u(),d(18,"td",28),g(19),u()()}if(e&2){let n=t.$implicit,r=v(3);ce("sel",r.selectedCreator()===n.creator),f(3),C(n.creator),f(2),C(n.videos),f(2),C(n.quizzes),f(2),T("$",n.videoSpendUsd),f(2),T("$",n.quizSpendUsd),f(3),T("$",n.spendUsd),f(2),C(n.lastActive?cr(17,10,n.lastActive,"d MMM yyyy"):"\u2014"),f(3),C(r.selectedCreator()===n.creator?"\u2713 selected":"view activity \u2192")}}function kS(e,t){e&1&&(d(0,"tr")(1,"td",29),g(2,"No activity recorded yet."),u()())}function RS(e,t){e&1&&(d(0,"span",3),g(1," est."),u())}function PS(e,t){if(e&1){let n=B();d(0,"button",33),N("click",function(){I(n);let o=v().$implicit,i=v(3);return M(i.watch(o.id))}),g(1,"\u25B6 view"),u()}}function FS(e,t){if(e&1){let n=B();d(0,"tr")(1,"td"),g(2),u(),d(3,"td"),g(4),u(),d(5,"td"),g(6),u(),d(7,"td")(8,"span"),g(9),u()(),d(10,"td",27),g(11),u(),d(12,"td",27),g(13),D(14,RS,2,0,"span",3),u(),d(15,"td",3),g(16),ft(17,"date"),u(),d(18,"td",30),D(19,PS,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))}),g(21," \u{1F5D1} delete "),u()()()}if(e&2){let n=t.$implicit,r=v(3);f(2),C(n.title),f(2),C(n.creator),f(2),C(n.videoType),f(2),qr(r.pill(n.status)),f(),C(n.status),f(2),C(n.feedbackRounds||""),f(2),T("$",n.costUsd),f(),E(n.costEstimated?14:-1),f(2),C(n.createdAt?cr(17,12,n.createdAt,"d MMM yyyy"):"\u2014"),f(3),E(n.video?19:-1),f(),w("title","Delete "+n.title)}}function LS(e,t){e&1&&(d(0,"tr")(1,"td",29),g(2,"No videos for this user."),u()())}function VS(e,t){e&1&&(d(0,"span",3),g(1," est."),u())}function jS(e,t){if(e&1){let n=B();d(0,"tr")(1,"td"),g(2),u(),d(3,"td"),g(4),u(),d(5,"td",27),g(6),u(),d(7,"td"),g(8),u(),d(9,"td")(10,"span"),g(11),u()(),d(12,"td",27),g(13),D(14,VS,2,0,"span",3),u(),d(15,"td",3),g(16),ft(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))}),g(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))}),g(22," \u{1F5D1} delete "),u()()()}if(e&2){let n=t.$implicit,r=v(3);f(2),C(n.title),f(2),C(n.creator),f(2),C(n.questions),f(2),C(r.languagesOf(n)),f(2),qr(r.pill(n.status)),f(),C(n.status),f(2),T("$",n.costUsd),f(),E(n.costEstimated?14:-1),f(2),C(n.createdAt?cr(17,11,n.createdAt,"d MMM yyyy"):"\u2014"),f(5),w("title","Delete "+n.title)}}function BS(e,t){e&1&&(d(0,"tr")(1,"td",29),g(2,"No assessments yet."),u()())}function HS(e,t){if(e&1&&(d(0,"p",24),g(1),u()),e&2){let n=v();f(),sr(" Showing the ",n.items.length," most recent of ",n.page.total," items. Totals above cover all ",n.page.total,". ")}}function US(e,t){if(e&1){let n=B();D(0,AS,6,1,"div",6),d(1,"div",7)(2,"div",8)(3,"span",9),g(4),u(),d(5,"span",10),g(6,"Videos"),u()(),d(7,"div",8)(8,"span",9),g(9),u(),d(10,"span",10),g(11,"Completed"),u()(),d(12,"div",8)(13,"span",9),g(14),u(),d(15,"span",10),g(16,"Assessments"),u()(),d(17,"div",8)(18,"span",9),g(19),u(),d(20,"span",10),g(21,"People"),u()(),d(22,"div",11)(23,"span",9),g(24),u(),d(25,"span",10),g(26,"Estimated spend"),u()()(),d(27,"div",12)(28,"h2",13),g(29,"Where the money went"),u(),d(30,"div",14),Ce(31,"i",15)(32,"i",16),u(),d(33,"div",17)(34,"span"),Ce(35,"i",18),g(36),u(),d(37,"span"),Ce(38,"i",19),g(39),u()()(),d(40,"div",12)(41,"h2",13),g(42,"Users"),u(),d(43,"input",20),N("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"),g(49,"User"),u(),d(50,"th",22),g(51,"Videos"),u(),d(52,"th",22),g(53,"Assessments"),u(),d(54,"th",22),g(55,"Video spend"),u(),d(56,"th",22),g(57,"Assessment spend"),u(),d(58,"th",22),g(59,"Total spend"),u(),d(60,"th"),g(61,"Last active"),u(),Ce(62,"th"),u()(),d(63,"tbody"),Z(64,OS,20,13,"tr",23,MS,!1,kS,3,0,"tr"),u()()()(),d(67,"div",12)(68,"h2",13),g(69,"Videos"),u(),d(70,"div",21)(71,"table")(72,"thead")(73,"tr")(74,"th"),g(75,"Title"),u(),d(76,"th"),g(77,"Creator"),u(),d(78,"th"),g(79,"Type"),u(),d(80,"th"),g(81,"Status"),u(),d(82,"th",22),g(83,"Feedback rounds"),u(),d(84,"th",22),g(85,"Cost (USD)"),u(),d(86,"th"),g(87,"Date"),u(),Ce(88,"th"),u()(),d(89,"tbody"),Z(90,FS,22,15,"tr",null,Iy,!1,LS,3,0,"tr"),u()()()(),d(93,"div",12)(94,"h2",13),g(95,"Assessments"),u(),d(96,"div",21)(97,"table")(98,"thead")(99,"tr")(100,"th"),g(101,"Title"),u(),d(102,"th"),g(103,"Creator"),u(),d(104,"th",22),g(105,"Questions"),u(),d(106,"th"),g(107,"Language"),u(),d(108,"th"),g(109,"Status"),u(),d(110,"th",22),g(111,"Cost (USD)"),u(),d(112,"th"),g(113,"Date"),u(),Ce(114,"th"),u()(),d(115,"tbody"),Z(116,jS,23,14,"tr",null,Iy,!1,BS,3,0,"tr"),u()()()(),D(119,HS,2,3,"p",24)}if(e&2){let n=t,r=v(2);E(r.selectedCreator()?0:-1),f(4),C(n.totals.videos),f(5),C(n.totals.videosDone),f(5),C(n.totals.quizzes),f(5),C(n.totals.creators),f(5),T("$",n.totals.spendUsd),f(6),tt("aria-label","Videos "+r.split().video+"%, assessments "+r.split().assess+"%"),f(),sn("width",r.split().video,"%"),w("title","Videos: $"+n.totals.videoSpendUsd),f(),sn("width",r.split().assess,"%"),w("title","Assessments: $"+n.totals.quizSpendUsd),f(4),St(" Videos $",n.totals.videoSpendUsd," (",r.split().video,"%)"),f(3),St(" Assessments $",n.totals.quizSpendUsd," (",r.split().assess,"%)"),f(4),w("ngModel",r.search()),G(),f(21),Y(r.creators()),f(26),Y(r.videos()),f(26),Y(r.assessments()),f(3),E(r.truncated()?119:-1)}}function $S(e,t){if(e&1&&D(0,US,120,22),e&2){let n,r=v();E((n=r.report())?0:-1,n)}}var Ja=class e{api=b(Ut);destroyRef=b(de);get untilGone(){return t=>t.pipe(eo(this.destroyRef))}static PAGE_SIZE=500;constructor(){Ct(()=>{let t=this.creatorFilter();t&&!this.seeded&&(this.selectedCreator.set(t),this.seeded=!0)})}seeded=!1;creatorFilter=nt(void 0);reportLoaded=xn();report=A(null);error=A("");loading=A(!0);search=A("");selectedCreator=A(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(ue(t,"reports",{401:"Please sign in to view usage."},"Could not load usage")),this.loading.set(!1)}})}truncated=W(()=>{let t=this.report();return t?t.page.total>t.items.length:!1});creators=W(()=>{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=W(()=>this.ofType("video"));assessments=W(()=>this.ofType("assessment"));split=W(()=>{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){pr({feature:"reports",lookup:this.api.exportUrl(t),fallbackHref:this.api.exportHref(t),onError:n=>this.error.set(n)})}watch(t){pr({feature:"reports",lookup:this.api.job(t).pipe(xe(n=>({url:n.videoUrl??n.video??null,filename:""}))),fallbackHref:this.api.downloadVideoHref(t),onError:n=>this.error.set(n)})}deleteItem=qa({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=W(()=>this.deleteItem.pending()?.type==="video"?"Delete video":"Delete quiz");deleteMessage=W(()=>{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(ue(n,"reports",{},"Deleted, but the page could not refresh")),t()}})}pill(t){return t==="done"?"chip":t==="failed"||t==="error"?"chip err":"chip warn"}languagesOf(t){return[t.language,...t.translations??[]].filter(Boolean).join(", ")}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),g(1,"Usage"),u(),d(2,"h1",1),g(3,"Usage & spend"),u(),d(4,"p",2),g(5,"Aggregated across Studio and Assessment. Spend is estimated from provider rates, not billed amounts."),u(),D(6,TS,2,0,"p",3)(7,NS,3,1,"div",4)(8,$S,1,1),d(9,"aa-confirm-dialog",5),N("confirmed",function(){return r.deleteItem.confirm()})("cancelled",function(){return r.deleteItem.cancel()}),u()),n&2&&(f(6),E(r.loading()?6:r.error()?7:8),f(3),w("open",r.deleteItem.open())("title",r.deleteLabel()+"?")("subject",r.deleteItem.pending()?.title??"")("message",r.deleteMessage())("confirmLabel",r.deleteLabel())("busy",r.deleteItem.busy()))},dependencies:[Sn,ao,In,io,fr,co,ed],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 zS=[{tag:"aastrika-content-studio",component:Ya},{tag:"aastrika-assessment",component:Qa},{tag:"aastrika-reports",component:Ja}],z3=typeof document>"u"?Promise.resolve(null):ld({providers:[$u(),hd(yd(),md([Gm])),{provide:Xr,useValue:$m}]}).then(e=>{for(let t of zS)qm(t,e.injector);return e});export{Hm as configure,z3 as ready};
|
|
16
|
+
https://bucket.s3.ap-south-1.amazonaws.com/\u2026`,1,"field",3,"ngModelChange","ngModel","disabled"],[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","disabled"],[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","disabled"],["for","asrc",1,"label","mt"],["id","asrc",1,"field",3,"ngModelChange","ngModel","disabled"],["value",""],[3,"value"],[1,"side"],["for","alang",1,"label"],["id","alang",1,"field",3,"ngModelChange","ngModel","disabled"],["for","acount",1,"label","mt"],["id","acount","type","number","min","1","max","60",1,"field",3,"ngModelChange","ngModel","disabled"],["for","aopts",1,"label","mt"],["id","aopts",1,"field",3,"ngModelChange","ngModel","disabled"],[3,"ngValue"],["for","adiff",1,"label","mt"],["id","adiff",1,"field",3,"ngModelChange","ngModel","disabled"],["for","abloom",1,"label","mt"],["id","abloom",1,"field",3,"ngModelChange","ngModel","disabled"],[1,"langs","mt-lg"],[1,"gen-row","mt-lg"],[1,"btn",3,"click","disabled"],[1,"progress"],[1,"hint"],[3,"bad","off"],["type","checkbox","title","include this source",3,"change","checked","disabled"],[1,"src-name"],[1,"chip","err"],[1,"mono","muted"],[1,"lang-chips"],[1,"lang-chip",3,"on"],[1,"lang-chip"],["type","checkbox",3,"change","checked","disabled"],[1,"progress-line"],[1,"spin"],[1,"mono","progress-time"],[1,"progress-track"],[1,"progress-fill"],[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"],[1,"qc-note"],[1,"qc-note","warn"],[1,"hint","export-note"],["role","tablist",1,"lang-tabs"],[1,"muted","note"],["type","button","role","tab",1,"lang-tab",3,"on"],["type","button","role","tab",1,"lang-tab",3,"click"],[1,"hint","lang-note"],[1,"q","q-locked"],[1,"save-row"],[1,"btn","btn-ghost",3,"click","disabled"],[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","disabled","",3,"checked","title"],[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"],[1,"q"],[1,"muted","save-hint"],["type","radio","title","mark as correct",3,"change","name","checked"]],template:function(n,r){if(n&1&&(d(0,"p",0),g(1,"Assessment"),u(),d(2,"h1",1),g(3,"Create a assessment from your training material"),u(),d(4,"p",2),g(5,"Upload documents or paste links, and get multiple-choice questions you can review, translate and download."),u(),D(6,Qx,2,1,"div",3),d(7,"div",4)(8,"section",5)(9,"div",6)(10,"span",7),g(11,"1"),u(),d(12,"h2",8),g(13,"Your material"),u()(),d(14,"p",9),g(15,"Add files (PDF, Word, text, video or audio) and links \u2014 any mix. Videos and audio are written out for you."),u(),d(16,"div",10)(17,"div")(18,"textarea",11),ee("ngModelChange",function(i){return re(r.links,i)||(r.links=i),i}),u(),z(),d(19,"div",12),g(20," \u26A0 Drive links must be shared as "),d(21,"b"),g(22,'"Anyone with the link \u2013 Viewer"'),u(),g(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(),g(27," \u{1F4CE} Choose files\u2026 "),u(),D(28,Kx,2,1,"div",16),d(29,"button",17),N("click",function(){return r.readSources()}),g(30),u()()(),D(31,tS,3,0,"ul",18),u(),d(32,"section",5)(33,"div",6)(34,"span",7),g(35,"2"),u(),d(36,"h2",8),g(37,"Settings"),u()(),d(38,"div",19)(39,"div")(40,"label",20),g(41,"Instructions (optional) \u2014 focus areas, style, anything specific"),u(),d(42,"textarea",21),ee("ngModelChange",function(i){return re(r.brief,i)||(r.brief=i),i}),u(),z(),d(43,"label",22),g(44,"Also include a past video's script (optional)"),u(),d(45,"select",23),ee("ngModelChange",function(i){return re(r.sourceJobId,i)||(r.sourceJobId=i),i}),d(46,"option",24),g(47,"\u2014 no \u2014"),u(),Z(48,nS,2,2,"option",25,Ei),u(),z(),u(),d(50,"div",26)(51,"label",27),g(52,"Language"),u(),d(53,"select",28),N("ngModelChange",function(i){return r.language.set(i)}),Z(54,rS,2,2,"option",25,Vd),u(),z(),d(56,"label",29),g(57,"Number of questions"),u(),d(58,"input",30),ee("ngModelChange",function(i){return re(r.numQuestions,i)||(r.numQuestions=i),i}),u(),z(),d(59,"label",31),g(60,"Options per question"),u(),d(61,"select",32),ee("ngModelChange",function(i){return re(r.numOptions,i)||(r.numOptions=i),i}),Z(62,oS,2,2,"option",33,Jo),u(),z(),d(64,"label",34),g(65,"Difficulty"),u(),d(66,"select",35),ee("ngModelChange",function(i){return re(r.difficulty,i)||(r.difficulty=i),i}),Z(67,iS,2,2,"option",25,Ei),u(),z(),d(69,"label",36),g(70,"Bloom's level"),u(),d(71,"select",37),ee("ngModelChange",function(i){return re(r.bloom,i)||(r.bloom=i),i}),Z(72,sS,2,2,"option",25,Ei),u(),z(),u()(),D(74,lS,11,0,"fieldset",38),d(75,"div",39)(76,"button",40),N("click",function(){return r.generate()}),g(77),u(),D(78,cS,8,4,"span",41)(79,uS,2,1,"span",42),u()(),D(80,MS,31,12,"section",5),u()),n&2){let o;f(6),E(r.error()?6:-1),f(12),X("ngModel",r.links),w("disabled",r.busy()),G(),f(7),le("is-disabled",r.busy()),f(),w("disabled",r.busy()),f(2),E(r.files().length?28:-1),f(),w("disabled",r.busy()||!r.files().length&&!r.links.trim()),f(),T(" ",r.reading()?"Reading\u2026":"Read sources"," "),f(),E(r.sources().length?31:-1),f(),le("dim",!r.readySources.length&&!r.sourceJobId),f(10),X("ngModel",r.brief),w("disabled",r.generating()),G(),f(3),X("ngModel",r.sourceJobId),w("disabled",r.generating()),G(),f(3),Y(r.pastVideos()),f(5),w("ngModel",r.language())("disabled",r.generating()),G(),f(),Y(r.languages()),f(4),X("ngModel",r.numQuestions),w("disabled",r.generating()),G(),f(3),X("ngModel",r.numOptions),w("disabled",r.generating()),G(),f(),Y(r.optionCounts),f(4),X("ngModel",r.difficulty),w("disabled",r.generating()),G(),f(),Y(r.difficulties),f(4),X("ngModel",r.bloom),w("disabled",r.generating()),G(),f(),Y(r.blooms),f(2),E(r.secondaryChoices().length?74:-1),f(2),w("disabled",r.generating()||!r.readySources.length&&!r.sourceJobId),f(),T(" ",r.generating()?"Generating\u2026":"Generate questions"," "),f(),E(r.generating()?78:r.translateInto().size?79:-1),f(2),E((o=r.result())?80:-1,o)}},dependencies:[Sn,ao,Ga,Wa,In,Fd,so,io,kd,Od,fr,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}.langs[_ngcontent-%COMP%]{border:1px solid var(--%NS%aastrika-line);border-radius:10px;padding:14px 16px;margin-top:18px;background:var(--%NS%aastrika-surface-2)}.langs[_ngcontent-%COMP%] legend[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);padding:0 6px}.lang-chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}.lang-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border:1px solid var(--%NS%aastrika-line);border-radius:999px;background:var(--%NS%aastrika-surface);font-size:13px;line-height:1;color:var(--%NS%aastrika-fg);cursor:pointer;transition:border-color .12s,background .12s;-webkit-user-select:none;user-select:none}.lang-chip[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold)}.lang-chip[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:0;cursor:pointer;accent-color:var(--%NS%aastrika-gold-deep)}.lang-chip.on[_ngcontent-%COMP%]{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);font-weight:600}.lang-chip[_ngcontent-%COMP%]:has(input:disabled){opacity:.5;cursor:default}.lang-chip[_ngcontent-%COMP%]:focus-within{outline:2px solid var(--%NS%aastrika-gold);outline-offset:2px}.langs[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%]{margin:10px 0 0}.ml[_ngcontent-%COMP%]{margin-left:12px}.lang-tabs[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:2px;border-bottom:1px solid var(--%NS%aastrika-line);margin:18px 0 14px}.lang-tab[_ngcontent-%COMP%]{padding:9px 16px;border:0;border-bottom:2px solid transparent;background:none;cursor:pointer;font:inherit;font-size:13.5px;color:var(--%NS%aastrika-muted)}.lang-tab[_ngcontent-%COMP%]:hover{color:var(--%NS%aastrika-fg)}.lang-tab.on[_ngcontent-%COMP%]{color:var(--%NS%aastrika-gold-deep);border-bottom-color:var(--%NS%aastrika-gold);font-weight:600}.lang-tab[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--%NS%aastrika-gold);outline-offset:-2px}.q-locked[_ngcontent-%COMP%] .opt[_ngcontent-%COMP%]{cursor:default}.q-locked[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:disabled{opacity:.45}.qc-note.warn[_ngcontent-%COMP%]{border-left-color:var(--%NS%aastrika-warn-fg);background:var(--%NS%aastrika-warn-bg)}.spin[_ngcontent-%COMP%]{display:inline-block;width:11px;height:11px;margin-right:7px;vertical-align:-1px;border:2px solid var(--%NS%aastrika-line);border-top-color:var(--%NS%aastrika-gold);border-radius:50%;animation:_ngcontent-%COMP%_aa-spin .7s linear infinite}@keyframes _ngcontent-%COMP%_aa-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spin[_ngcontent-%COMP%]{animation:none;border-top-color:var(--%NS%aastrika-line)}}.field[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.pick.is-disabled[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}.export-note[_ngcontent-%COMP%]{margin:10px 0 0}.lang-note[_ngcontent-%COMP%]{margin:0 0 16px;padding:10px 14px;border-radius:8px;background:var(--%NS%aastrika-surface-2)}.progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:9px;flex:1 1 280px;max-width:460px;padding:13px 16px;border:1px solid var(--%NS%aastrika-gold-soft);border-radius:12px;background:color-mix(in srgb,var(--%NS%aastrika-gold-soft) 30%,var(--%NS%aastrika-surface))}.progress-line[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:var(--%NS%aastrika-gold-deep)}.progress-time[_ngcontent-%COMP%]{margin-left:auto;font-size:12.5px;font-weight:500;color:var(--%NS%aastrika-gold-deep);opacity:.7}.progress-track[_ngcontent-%COMP%]{height:6px;border-radius:999px;background:color-mix(in srgb,var(--%NS%aastrika-gold-deep) 13%,transparent);overflow:hidden}.progress-fill[_ngcontent-%COMP%]{display:block;height:100%;border-radius:999px;background:var(--%NS%aastrika-gold-deep);transition:width .9s linear}.progress[_ngcontent-%COMP%] .spin[_ngcontent-%COMP%]{width:13px;height:13px;margin:0;flex:none;border-width:2px;border-color:color-mix(in srgb,var(--%NS%aastrika-gold-deep) 22%,transparent);border-top-color:var(--%NS%aastrika-gold-deep)}.gen-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.gen-row[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{flex:none}.btn[_ngcontent-%COMP%]:disabled{opacity:.92}@media(prefers-reduced-motion:reduce){.progress-fill[_ngcontent-%COMP%]{transition:none}}"],changeDetection:1})};var TS=(e,t)=>t.creator,My=(e,t)=>t.id;function NS(e,t){e&1&&(d(0,"p",3),g(1,"Loading\u2026"),u())}function AS(e,t){if(e&1&&(d(0,"div",4)(1,"p",3),g(2),u()()),e&2){let n=v();f(2),C(n.error())}}function OS(e,t){if(e&1){let n=B();d(0,"div",6),g(1," Showing: "),d(2,"b"),g(3),u(),d(4,"a",25),N("click",function(o){return I(n),v(3).clearFilter(),M(o.preventDefault())}),g(5,"\u2715 all users"),u()()}if(e&2){let n=v(3);f(3),C(n.selectedCreator())}}function kS(e,t){if(e&1){let n=B();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"),g(3),u()(),d(4,"td",27),g(5),u(),d(6,"td",27),g(7),u(),d(8,"td",27),g(9),u(),d(10,"td",27),g(11),u(),d(12,"td",27)(13,"b"),g(14),u()(),d(15,"td",3),g(16),ft(17,"date"),u(),d(18,"td",28),g(19),u()()}if(e&2){let n=t.$implicit,r=v(3);le("sel",r.selectedCreator()===n.creator),f(3),C(n.creator),f(2),C(n.videos),f(2),C(n.quizzes),f(2),T("$",n.videoSpendUsd),f(2),T("$",n.quizSpendUsd),f(3),T("$",n.spendUsd),f(2),C(n.lastActive?lr(17,10,n.lastActive,"d MMM yyyy"):"\u2014"),f(3),C(r.selectedCreator()===n.creator?"\u2713 selected":"view activity \u2192")}}function RS(e,t){e&1&&(d(0,"tr")(1,"td",29),g(2,"No activity recorded yet."),u()())}function PS(e,t){e&1&&(d(0,"span",3),g(1," est."),u())}function FS(e,t){if(e&1){let n=B();d(0,"button",33),N("click",function(){I(n);let o=v().$implicit,i=v(3);return M(i.watch(o.id))}),g(1,"\u25B6 view"),u()}}function LS(e,t){if(e&1){let n=B();d(0,"tr")(1,"td"),g(2),u(),d(3,"td"),g(4),u(),d(5,"td"),g(6),u(),d(7,"td")(8,"span"),g(9),u()(),d(10,"td",27),g(11),u(),d(12,"td",27),g(13),D(14,PS,2,0,"span",3),u(),d(15,"td",3),g(16),ft(17,"date"),u(),d(18,"td",30),D(19,FS,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))}),g(21," \u{1F5D1} delete "),u()()()}if(e&2){let n=t.$implicit,r=v(3);f(2),C(n.title),f(2),C(n.creator),f(2),C(n.videoType),f(2),qr(r.pill(n.status)),f(),C(n.status),f(2),C(n.feedbackRounds||""),f(2),T("$",n.costUsd),f(),E(n.costEstimated?14:-1),f(2),C(n.createdAt?lr(17,12,n.createdAt,"d MMM yyyy"):"\u2014"),f(3),E(n.video?19:-1),f(),w("title","Delete "+n.title)}}function VS(e,t){e&1&&(d(0,"tr")(1,"td",29),g(2,"No videos for this user."),u()())}function jS(e,t){e&1&&(d(0,"span",3),g(1," est."),u())}function BS(e,t){if(e&1){let n=B();d(0,"tr")(1,"td"),g(2),u(),d(3,"td"),g(4),u(),d(5,"td",27),g(6),u(),d(7,"td"),g(8),u(),d(9,"td")(10,"span"),g(11),u()(),d(12,"td",27),g(13),D(14,jS,2,0,"span",3),u(),d(15,"td",3),g(16),ft(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))}),g(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))}),g(22," \u{1F5D1} delete "),u()()()}if(e&2){let n=t.$implicit,r=v(3);f(2),C(n.title),f(2),C(n.creator),f(2),C(n.questions),f(2),C(r.languagesOf(n)),f(2),qr(r.pill(n.status)),f(),C(n.status),f(2),T("$",n.costUsd),f(),E(n.costEstimated?14:-1),f(2),C(n.createdAt?lr(17,11,n.createdAt,"d MMM yyyy"):"\u2014"),f(5),w("title","Delete "+n.title)}}function HS(e,t){e&1&&(d(0,"tr")(1,"td",29),g(2,"No assessments yet."),u()())}function US(e,t){if(e&1&&(d(0,"p",24),g(1),u()),e&2){let n=v();f(),sr(" Showing the ",n.items.length," most recent of ",n.page.total," items. Totals above cover all ",n.page.total,". ")}}function $S(e,t){if(e&1){let n=B();D(0,OS,6,1,"div",6),d(1,"div",7)(2,"div",8)(3,"span",9),g(4),u(),d(5,"span",10),g(6,"Videos"),u()(),d(7,"div",8)(8,"span",9),g(9),u(),d(10,"span",10),g(11,"Completed"),u()(),d(12,"div",8)(13,"span",9),g(14),u(),d(15,"span",10),g(16,"Assessments"),u()(),d(17,"div",8)(18,"span",9),g(19),u(),d(20,"span",10),g(21,"People"),u()(),d(22,"div",11)(23,"span",9),g(24),u(),d(25,"span",10),g(26,"Estimated spend"),u()()(),d(27,"div",12)(28,"h2",13),g(29,"Where the money went"),u(),d(30,"div",14),Ce(31,"i",15)(32,"i",16),u(),d(33,"div",17)(34,"span"),Ce(35,"i",18),g(36),u(),d(37,"span"),Ce(38,"i",19),g(39),u()()(),d(40,"div",12)(41,"h2",13),g(42,"Users"),u(),d(43,"input",20),N("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"),g(49,"User"),u(),d(50,"th",22),g(51,"Videos"),u(),d(52,"th",22),g(53,"Assessments"),u(),d(54,"th",22),g(55,"Video spend"),u(),d(56,"th",22),g(57,"Assessment spend"),u(),d(58,"th",22),g(59,"Total spend"),u(),d(60,"th"),g(61,"Last active"),u(),Ce(62,"th"),u()(),d(63,"tbody"),Z(64,kS,20,13,"tr",23,TS,!1,RS,3,0,"tr"),u()()()(),d(67,"div",12)(68,"h2",13),g(69,"Videos"),u(),d(70,"div",21)(71,"table")(72,"thead")(73,"tr")(74,"th"),g(75,"Title"),u(),d(76,"th"),g(77,"Creator"),u(),d(78,"th"),g(79,"Type"),u(),d(80,"th"),g(81,"Status"),u(),d(82,"th",22),g(83,"Feedback rounds"),u(),d(84,"th",22),g(85,"Cost (USD)"),u(),d(86,"th"),g(87,"Date"),u(),Ce(88,"th"),u()(),d(89,"tbody"),Z(90,LS,22,15,"tr",null,My,!1,VS,3,0,"tr"),u()()()(),d(93,"div",12)(94,"h2",13),g(95,"Assessments"),u(),d(96,"div",21)(97,"table")(98,"thead")(99,"tr")(100,"th"),g(101,"Title"),u(),d(102,"th"),g(103,"Creator"),u(),d(104,"th",22),g(105,"Questions"),u(),d(106,"th"),g(107,"Language"),u(),d(108,"th"),g(109,"Status"),u(),d(110,"th",22),g(111,"Cost (USD)"),u(),d(112,"th"),g(113,"Date"),u(),Ce(114,"th"),u()(),d(115,"tbody"),Z(116,BS,23,14,"tr",null,My,!1,HS,3,0,"tr"),u()()()(),D(119,US,2,3,"p",24)}if(e&2){let n=t,r=v(2);E(r.selectedCreator()?0:-1),f(4),C(n.totals.videos),f(5),C(n.totals.videosDone),f(5),C(n.totals.quizzes),f(5),C(n.totals.creators),f(5),T("$",n.totals.spendUsd),f(6),tt("aria-label","Videos "+r.split().video+"%, assessments "+r.split().assess+"%"),f(),sn("width",r.split().video,"%"),w("title","Videos: $"+n.totals.videoSpendUsd),f(),sn("width",r.split().assess,"%"),w("title","Assessments: $"+n.totals.quizSpendUsd),f(4),St(" Videos $",n.totals.videoSpendUsd," (",r.split().video,"%)"),f(3),St(" Assessments $",n.totals.quizSpendUsd," (",r.split().assess,"%)"),f(4),w("ngModel",r.search()),G(),f(21),Y(r.creators()),f(26),Y(r.videos()),f(26),Y(r.assessments()),f(3),E(r.truncated()?119:-1)}}function zS(e,t){if(e&1&&D(0,$S,120,22),e&2){let n,r=v();E((n=r.report())?0:-1,n)}}var Ja=class e{api=b(Ut);destroyRef=b(de);get untilGone(){return t=>t.pipe(eo(this.destroyRef))}static PAGE_SIZE=500;constructor(){Ct(()=>{let t=this.creatorFilter();t&&!this.seeded&&(this.selectedCreator.set(t),this.seeded=!0)})}seeded=!1;creatorFilter=nt(void 0);reportLoaded=xn();report=A(null);error=A("");loading=A(!0);search=A("");selectedCreator=A(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(ue(t,"reports",{401:"Please sign in to view usage."},"Could not load usage")),this.loading.set(!1)}})}truncated=W(()=>{let t=this.report();return t?t.page.total>t.items.length:!1});creators=W(()=>{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=W(()=>this.ofType("video"));assessments=W(()=>this.ofType("assessment"));split=W(()=>{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){pr({feature:"reports",lookup:this.api.exportUrl(t),fallbackHref:this.api.exportHref(t),onError:n=>this.error.set(n)})}watch(t){pr({feature:"reports",lookup:this.api.job(t).pipe(xe(n=>({url:n.videoUrl??n.video??null,filename:""}))),fallbackHref:this.api.downloadVideoHref(t),onError:n=>this.error.set(n)})}deleteItem=qa({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=W(()=>this.deleteItem.pending()?.type==="video"?"Delete video":"Delete quiz");deleteMessage=W(()=>{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(ue(n,"reports",{},"Deleted, but the page could not refresh")),t()}})}pill(t){return t==="done"?"chip":t==="failed"||t==="error"?"chip err":"chip warn"}languagesOf(t){return[t.language,...t.translations??[]].filter(Boolean).join(", ")}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),g(1,"Usage"),u(),d(2,"h1",1),g(3,"Usage & spend"),u(),d(4,"p",2),g(5,"Aggregated across Studio and Assessment. Spend is estimated from provider rates, not billed amounts."),u(),D(6,NS,2,0,"p",3)(7,AS,3,1,"div",4)(8,zS,1,1),d(9,"aa-confirm-dialog",5),N("confirmed",function(){return r.deleteItem.confirm()})("cancelled",function(){return r.deleteItem.cancel()}),u()),n&2&&(f(6),E(r.loading()?6:r.error()?7:8),f(3),w("open",r.deleteItem.open())("title",r.deleteLabel()+"?")("subject",r.deleteItem.pending()?.title??"")("message",r.deleteMessage())("confirmLabel",r.deleteLabel())("busy",r.deleteItem.busy()))},dependencies:[Sn,ao,In,io,fr,lo,ed],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 GS=[{tag:"aastrika-content-studio",component:Ya},{tag:"aastrika-assessment",component:Qa},{tag:"aastrika-reports",component:Ja}],Z3=typeof document>"u"?Promise.resolve(null):cd({providers:[$u(),hd(yd(),md([Gm])),{provide:Xr,useValue:$m}]}).then(e=>{for(let t of GS)qm(t,e.injector);return e});export{Hm as configure,Z3 as ready};
|