kc-sdk 7.0.390-rc → 7.0.391-rc

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/src/main.js CHANGED
@@ -5,9 +5,9 @@ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
5
5
  `+e.message,o,n,r),e[xy]=o,e[Co]=null,e}function Ry(e,t,n,r=null){e=e&&e.charAt(0)===`
6
6
  `&&e.charAt(1)==My?e.slice(2):e;let o=De(t);if(Array.isArray(t))o=t.map(De).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):De(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Ty,`
7
7
  `)}`}var Qu=Yu($u("Optional"),8);var Fy=Yu($u("SkipSelf"),4);function pn(e,t){let n=e.hasOwnProperty(_o);return n?e[_o]:null}function Qa(e,t){e.forEach(n=>Array.isArray(n)?Qa(n,t):t(n))}function Ju(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function bo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Py(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 Ly(e,t,n){let r=yr(e,t);return r>=0?e[r|1]=n:(r=~r,Py(e,r,t,n)),r}function qs(e,t){let n=yr(e,t);if(n>=0)return e[n|1]}function yr(e,t){return Vy(e,t,1)}function Vy(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 hn={},Te=[],cr=new _(""),Xu=new _("",-1),ed=new _(""),So=class{get(t,n=lr){if(n===lr){let r=new Error(`NullInjectorError: No provider for ${De(t)}!`);throw r.name="NullInjectorError",r}return n}};function mn(e){return e[Ey]||null}function td(e){return e[Iy]||null}function nd(e){return e[_y]||null}function jy(e){let t=mn(e)||td(e)||nd(e);return t!==null?t.standalone:!1}function Ja(e){return{\u0275providers:e}}function By(...e){return{\u0275providers:rd(!0,e),\u0275fromNgModule:!0}}function rd(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Qa(t,s=>{let a=s;la(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&od(o,i),n}function od(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Xa(o,i=>{t(i,r)})}}function la(e,t,n,r){if(e=se(e),!e)return!1;let o=null,i=su(e),s=!i&&mn(e);if(!i&&!s){let l=e.ngModule;if(i=su(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)la(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Qa(i.imports,u=>{la(u,t,n,r)&&(c||=[],c.push(u))})}finally{}c!==void 0&&od(c,t)}if(!a){let c=pn(o)||(()=>new o);t({provide:o,useFactory:c,deps:Te},o),t({provide:ed,useValue:o,multi:!0},o),t({provide:cr,useValue:()=>x(o),multi:!0},o)}let l=i.providers;if(l!=null&&!a){let c=e;Xa(l,u=>{t(u,c)})}}else return!1;return o!==e&&e.providers!==void 0}function Xa(e,t){for(let n of e)qu(n)&&(n=n.\u0275providers),Array.isArray(n)?Xa(n,t):t(n)}var Hy=H({provide:String,useValue:H});function id(e){return e!==null&&typeof e=="object"&&Hy in e}function Uy(e){return!!(e&&e.useExisting)}function $y(e){return!!(e&&e.useFactory)}function gn(e){return typeof e=="function"}function Gy(e){return!!e.useClass}var Ko=new _(""),vo={},Wy={},Zs;function el(){return Zs===void 0&&(Zs=new So),Zs}var Ge=class{},ur=class extends Ge{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,ua(t,s=>this.processProvider(s)),this.records.set(Xu,ln(void 0,this)),o.has("environment")&&this.records.set(Ge,ln(void 0,this));let i=this.records.get(Ko);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ed,Te,N.Self))}destroy(){ir(this),this._destroyed=!0;let t=R(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(),R(t)}}onDestroy(t){return ir(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){ir(this);let n=ut(this),r=xe(void 0),o;try{return t()}finally{ut(n),xe(r)}}get(t,n=lr,r=N.Default){if(ir(this),t.hasOwnProperty(lu))return t[lu](this);r=Zo(r);let o,i=ut(this),s=xe(void 0);try{if(!(r&N.SkipSelf)){let l=this.records.get(t);if(l===void 0){let c=Yy(t)&&Za(t);c&&this.injectableDefInScope(c)?l=ln(ca(t),vo):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l)}let a=r&N.Self?el():this.parent;return n=r&N.Optional&&n===lr?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Co]=a[Co]||[]).unshift(De(t)),i)throw a;return Oy(a,t,"R3InjectorError",this.source)}else throw a}finally{xe(s),ut(i)}}resolveInjectorInitializers(){let t=R(null),n=ut(this),r=xe(void 0),o;try{let i=this.get(cr,Te,N.Self);for(let s of i)s()}finally{ut(n),xe(r),R(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(De(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=se(t);let n=gn(t)?t:se(t&&t.provide),r=qy(t);if(!gn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=ln(void 0,vo,!0),o.factory=()=>aa(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=R(null);try{return n.value===vo&&(n.value=Wy,n.value=n.factory()),typeof n.value=="object"&&n.value&&Ky(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{R(r)}}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 ca(e){let t=Za(e),n=t!==null?t.factory:pn(e);if(n!==null)return n;if(e instanceof _)throw new S(204,!1);if(e instanceof Function)return zy(e);throw new S(204,!1)}function zy(e){if(e.length>0)throw new S(204,!1);let n=Dy(e);return n!==null?()=>n.factory(e):()=>new e}function qy(e){if(id(e))return ln(void 0,e.useValue);{let t=sd(e);return ln(t,vo)}}function sd(e,t,n){let r;if(gn(e)){let o=se(e);return pn(o)||ca(o)}else if(id(e))r=()=>se(e.useValue);else if($y(e))r=()=>e.useFactory(...aa(e.deps||[]));else if(Uy(e))r=()=>x(se(e.useExisting));else{let o=se(e&&(e.useClass||e.provide));if(Zy(e))r=()=>new o(...aa(e.deps));else return pn(o)||ca(o)}return r}function ir(e){if(e.destroyed)throw new S(205,!1)}function ln(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Zy(e){return!!e.deps}function Ky(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Yy(e){return typeof e=="function"||typeof e=="object"&&e instanceof _}function ua(e,t){for(let n of e)Array.isArray(n)?ua(n,t):n&&qu(n)?ua(n.\u0275providers,t):t(n)}function Yo(e,t){e instanceof ur&&ir(e);let n,r=ut(e),o=xe(void 0);try{return t()}finally{ut(r),xe(o)}}function Qy(){return Zu()!==void 0||Ny()!=null}function Jy(e){return typeof e=="function"}var et=0,A=1,I=2,ae=3,Pe=4,je=5,xo=6,To=7,Le=8,yn=9,pt=10,ne=11,dr=12,uu=13,Cn=14,We=15,vn=16,cn=17,Dn=18,Qo=19,ad=20,dt=21,Ks=22,Mo=23,we=24,Je=25,ld=1;var Ht=7,No=8,Ao=9,Me=10,ko=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(ko||{});function ft(e){return Array.isArray(e)&&typeof e[ld]=="object"}function tt(e){return Array.isArray(e)&&e[ld]===!0}function cd(e){return(e.flags&4)!==0}function Jo(e){return e.componentOffset>-1}function tl(e){return(e.flags&1)===1}function ht(e){return!!e.template}function da(e){return(e[I]&512)!==0}var fa=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ud(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var bn=(()=>{let e=()=>dd;return e.ngInherit=!0,e})();function dd(e){return e.type.prototype.ngOnChanges&&(e.setInput=ev),Xy}function Xy(){let e=pd(this),t=e?.current;if(t){let n=e.previous;if(n===hn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ev(e,t,n,r,o){let i=this.declaredInputs[r],s=pd(e)||tv(e,{previous:hn,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[i];a[i]=new fa(c&&c.currentValue,n,l===hn),ud(e,t,o,n)}var fd="__ngSimpleChanges__";function pd(e){return e[fd]||null}function tv(e,t){return e[fd]=t}var du=null;var Ue=function(e,t,n){du?.(e,t,n)},nv="svg",rv="math";function ze(e){for(;Array.isArray(e);)e=e[et];return e}function hd(e,t){return ze(t[e])}function Ne(e,t){return ze(t[e.index])}function md(e,t){return e.data[t]}function ov(e,t){return e[t]}function Dt(e,t){let n=t[e];return ft(n)?n:n[et]}function nl(e){return(e[I]&128)===128}function iv(e){return tt(e[ae])}function Oo(e,t){return t==null?null:e[t]}function gd(e){e[cn]=0}function rl(e){e[I]&1024||(e[I]|=1024,nl(e)&&ei(e))}function sv(e,t){for(;e>0;)t=t[Cn],e--;return t}function Xo(e){return!!(e[I]&9216||e[we]?.dirty)}function pa(e){e[pt].changeDetectionScheduler?.notify(9),e[I]&64&&(e[I]|=1024),Xo(e)&&ei(e)}function ei(e){e[pt].changeDetectionScheduler?.notify(0);let t=Ut(e);for(;t!==null&&!(t[I]&8192||(t[I]|=8192,!nl(t)));)t=Ut(t)}function yd(e,t){if((e[I]&256)===256)throw new S(911,!1);e[dt]===null&&(e[dt]=[]),e[dt].push(t)}function av(e,t){if(e[dt]===null)return;let n=e[dt].indexOf(t);n!==-1&&e[dt].splice(n,1)}function Ut(e){let t=e[ae];return tt(t)?t[ae]:t}var T={lFrame:Sd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ha=!1;function lv(){return T.lFrame.elementDepthCount}function cv(){T.lFrame.elementDepthCount++}function uv(){T.lFrame.elementDepthCount--}function vd(){return T.bindingsEnabled}function dv(){return T.skipHydrationRootTNode!==null}function fv(e){return T.skipHydrationRootTNode===e}function pv(){T.skipHydrationRootTNode=null}function j(){return T.lFrame.lView}function Ee(){return T.lFrame.tView}function U(e){return T.lFrame.contextLView=e,e[Le]}function $(e){return T.lFrame.contextLView=null,e}function ye(){let e=Dd();for(;e!==null&&e.type===64;)e=e.parent;return e}function Dd(){return T.lFrame.currentTNode}function hv(){let e=T.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function vr(e,t){let n=T.lFrame;n.currentTNode=e,n.isParent=t}function wd(){return T.lFrame.isParent}function mv(){T.lFrame.isParent=!1}function gv(){return T.lFrame.contextLView}function Ed(){return ha}function fu(e){let t=ha;return ha=e,t}function Id(){let e=T.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function yv(e){return T.lFrame.bindingIndex=e}function ti(){return T.lFrame.bindingIndex++}function vv(e){let t=T.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Dv(){return T.lFrame.inI18n}function wv(e,t){let n=T.lFrame;n.bindingIndex=n.bindingRootIndex=e,ma(t)}function Ev(){return T.lFrame.currentDirectiveIndex}function ma(e){T.lFrame.currentDirectiveIndex=e}function Iv(e){let t=T.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function _d(e){T.lFrame.currentQueryIndex=e}function _v(e){let t=e[A];return t.type===2?t.declTNode:t.type===1?e[je]:null}function Cd(e,t,n){if(n&N.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&N.Host);)if(o=_v(i),o===null||(i=i[Cn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=T.lFrame=bd();return r.currentTNode=t,r.lView=e,!0}function ol(e){let t=bd(),n=e[A];T.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function bd(){let e=T.lFrame,t=e===null?null:e.child;return t===null?Sd(e):t}function Sd(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 xd(){let e=T.lFrame;return T.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Td=xd;function il(){let e=xd();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 Cv(e){return(T.lFrame.contextLView=sv(e,T.lFrame.contextLView))[Le]}function Sn(){return T.lFrame.selectedIndex}function $t(e){T.lFrame.selectedIndex=e}function sl(){let e=T.lFrame;return md(e.tView,e.selectedIndex)}function bv(){return T.lFrame.currentNamespace}var Md=!0;function al(){return Md}function ll(e){Md=e}function Sv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=dd(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 cl(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:u}=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)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function Do(e,t,n){Nd(e,t,3,n)}function wo(e,t,n,r){(e[I]&3)===n&&Nd(e,t,n,r)}function Ys(e,t){let n=e[I];(n&3)===t&&(n&=16383,n+=1,e[I]=n)}function Nd(e,t,n,r){let o=r!==void 0?e[cn]&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[cn]+=65536),(a<i||i==-1)&&(xv(e,n,t,l),e[cn]=(e[cn]&4294901760)+l+2),l++}function pu(e,t){Ue(4,e,t);let n=R(null);try{t.call(e)}finally{R(n),Ue(5,e,t)}}function xv(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[I]>>14<e[cn]>>16&&(e[I]&3)===t&&(e[I]+=16384,pu(a,i)):pu(a,i)}var fn=-1,Gt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function Tv(e){return e instanceof Gt}function Mv(e){return(e.flags&8)!==0}function Nv(e){return(e.flags&16)!==0}function ga(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];kv(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Av(e){return e===3||e===4||e===6}function kv(e){return e.charCodeAt(0)===64}function fr(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?hu(e,n,o,null,t[++r]):hu(e,n,o,null,null))}}return e}function hu(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){if(r===null){o!==null&&(e[i+1]=o);return}else if(r===e[i+1]){e[i+2]=o;return}}i++,r!==null&&i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),r!==null&&e.splice(i++,0,r),o!==null&&e.splice(i++,0,o)}var Qs={},ya=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Zo(r);let o=this.injector.get(t,Qs,r);return o!==Qs||n===Qs?o:this.parentInjector.get(t,n,r)}};function Ad(e){return e!==fn}function Ro(e){return e&32767}function Ov(e){return e>>16}function Fo(e,t){let n=Ov(e),r=t;for(;n>0;)r=r[Cn],n--;return r}var va=!0;function mu(e){let t=va;return va=e,t}var Rv=256,kd=Rv-1,Od=5,Fv=0,$e={};function Pv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(ar)&&(r=n[ar]),r==null&&(r=n[ar]=Fv++);let o=r&kd,i=1<<o;t.data[e+(o>>Od)]|=i}function Po(e,t){let n=Rd(e,t);if(n!==-1)return n;let r=t[A];r.firstCreatePass&&(e.injectorIndex=t.length,Js(r.data,e),Js(t,null),Js(r.blueprint,null));let o=ul(e,t),i=e.injectorIndex;if(Ad(o)){let s=Ro(o),a=Fo(o,t),l=a[A].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|l[s+c]}return t[i+8]=o,i}function Js(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Rd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ul(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=jd(o),r===null)return fn;if(n++,o=o[Cn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return fn}function Da(e,t,n){Pv(e,t,n)}function Fd(e,t,n){if(n&N.Optional||e!==void 0)return e;Ya(t,"NodeInjector")}function Pd(e,t,n,r){if(n&N.Optional&&r===void 0&&(r=null),!(n&(N.Self|N.Host))){let o=e[yn],i=xe(void 0);try{return o?o.get(t,r,n&N.Optional):Ku(t,r,n&N.Optional)}finally{xe(i)}}return Fd(r,t,n)}function Ld(e,t,n,r=N.Default,o){if(e!==null){if(t[I]&2048&&!(r&N.Self)){let s=Hv(e,t,n,r,$e);if(s!==$e)return s}let i=Vd(e,t,n,r,$e);if(i!==$e)return i}return Pd(t,n,r,o)}function Vd(e,t,n,r,o){let i=jv(n);if(typeof i=="function"){if(!Cd(t,e,r))return r&N.Host?Fd(o,n,r):Pd(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&N.Optional))Ya(n);else return s}finally{Td()}}else if(typeof i=="number"){let s=null,a=Rd(e,t),l=fn,c=r&N.Host?t[We][je]:null;for((a===-1||r&N.SkipSelf)&&(l=a===-1?ul(e,t):t[a+8],l===fn||!yu(r,!1)?a=-1:(s=t[A],a=Ro(l),t=Fo(l,t)));a!==-1;){let u=t[A];if(gu(i,a,u.data)){let d=Lv(a,t,n,s,r,c);if(d!==$e)return d}l=t[a+8],l!==fn&&yu(r,t[A].data[a+8]===c)&&gu(i,a,t)?(s=u,a=Ro(l),t=Fo(l,t)):a=-1}}return o}function Lv(e,t,n,r,o,i){let s=t[A],a=s.data[e+8],l=r==null?Jo(a)&&va:r!=s&&(a.type&3)!==0,c=o&N.Host&&i===a,u=Vv(a,s,n,l,c);return u!==null?wn(t,s,u,a):$e}function Vv(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,l=e.directiveStart,c=e.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:c;for(let f=d;f<p;f++){let h=s[f];if(f<l&&n===h||f>=l&&h.type===n)return f}if(o){let f=s[l];if(f&&ht(f)&&f.type===n)return l}return null}function wn(e,t,n,r){let o=e[n],i=t.data;if(Tv(o)){let s=o;s.resolving&&by(Cy(i[n]));let a=mu(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?xe(s.injectImpl):null,u=Cd(e,r,N.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Sv(n,i[n],t)}finally{c!==null&&xe(c),mu(a),s.resolving=!1,Td()}}return o}function jv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(ar)?e[ar]:void 0;return typeof t=="number"?t>=0?t&kd:Bv:t}function gu(e,t,n){let r=1<<e;return!!(n[t+(e>>Od)]&r)}function yu(e,t){return!(e&N.Self)&&!(e&N.Host&&t)}var Bt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Ld(this._tNode,this._lView,t,Zo(r),n)}};function Bv(){return new Bt(ye(),j())}function xn(e){return gr(()=>{let t=e.prototype.constructor,n=t[_o]||wa(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[_o]||wa(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function wa(e){return Gu(e)?()=>{let t=wa(se(e));return t&&t()}:pn(e)}function Hv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[I]&2048&&!(s[I]&512);){let a=Vd(i,s,n,r|N.Self,$e);if(a!==$e)return a;let l=i.parent;if(!l){let c=s[ad];if(c){let u=c.get(n,$e,r);if(u!==$e)return u}l=jd(s),s=s[Cn]}i=l}return o}function jd(e){let t=e[A],n=t.type;return n===2?t.declTNode:n===1?e[je]:null}function vu(e,t=null,n=null,r){let o=Uv(e,t,n,r);return o.resolveInjectorInitializers(),o}function Uv(e,t=null,n=null,r,o=new Set){let i=[n||Te,By(e)];return r=r||(typeof e=="object"?void 0:De(e)),new ur(i,t||el(),r||null,o)}var Wt=class e{static THROW_IF_NOT_FOUND=lr;static NULL=new So;static create(t,n){if(Array.isArray(t))return vu({name:""},n,t,"");{let r=t.name??"";return vu({name:r},t.parent,t.providers,r)}}static \u0275prov=k({token:e,providedIn:"any",factory:()=>x(Xu)});static __NG_ELEMENT_ID__=-1};var $v=new _("");$v.__NG_ELEMENT_ID__=e=>{let t=ye();if(t===null)throw new S(204,!1);if(t.type&2)return t.value;if(e&N.Optional)return null;throw new S(204,!1)};var Bd=!1,Hd=(()=>{class e{static __NG_ELEMENT_ID__=Gv;static __NG_ENV_ID__=n=>n}return e})(),Ea=class extends Hd{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return yd(this._lView,t),()=>av(this._lView,t)}};function Gv(){return new Ea(j())}var pr=class{},dl=new _("",{providedIn:"root",factory:()=>!1});var Ud=new _(""),$d=new _(""),Yt=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new rr(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=k({token:e,providedIn:"root",factory:()=>new e})}return e})();var Ia=class extends Qe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Qy()&&(this.destroyRef=C(Hd,{optional:!0})??void 0,this.pendingTasks=C(Yt,{optional:!0})??void 0)}emit(t){let n=R(null);try{super.next(t)}finally{R(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 ie&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ge=Ia;function Lo(...e){}function Gd(e){let t,n;function r(){e=Lo;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 Du(e){return queueMicrotask(()=>e()),()=>{e=Lo}}var fl="isAngularZone",Vo=fl+"_ID",Wv=0,Y=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ge(!1);onMicrotaskEmpty=new ge(!1);onStable=new ge(!1);onError=new ge(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Bd}=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,Zv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(fl)===!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,zv,Lo,Lo);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)}},zv={};function pl(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 qv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Gd(()=>{e.callbackScheduled=!1,_a(e),e.isCheckStableRunning=!0,pl(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),_a(e)}function Zv(e){let t=()=>{qv(e)},n=Wv++;e._inner=e._inner.fork({name:"angular",properties:{[fl]:!0,[Vo]:n,[Vo+n]:!0},onInvokeTask:(r,o,i,s,a,l)=>{if(Kv(l))return r.invokeTask(i,s,a,l);try{return wu(e),r.invokeTask(i,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Eu(e)}},onInvoke:(r,o,i,s,a,l,c)=>{try{return wu(e),r.invoke(i,s,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Yv(l)&&t(),Eu(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,_a(e),pl(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 _a(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function wu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Eu(e){e._nesting--,pl(e)}var Ca=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ge;onMicrotaskEmpty=new ge;onStable=new ge;onError=new ge;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 Kv(e){return Wd(e,"__ignore_ng_zone__")}function Yv(e){return Wd(e,"__scheduler_tick__")}function Wd(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var mt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Qv=new _("",{providedIn:"root",factory:()=>{let e=C(Y),t=C(mt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Jv(){return ni(ye(),j())}function ni(e,t){return new nt(Ne(e,t))}var nt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Jv}return e})();function zd(e){return(e.flags&128)===128}var qd=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(qd||{}),Zd=new Map,Xv=0;function eD(){return Xv++}function tD(e){Zd.set(e[Qo],e)}function ba(e){Zd.delete(e[Qo])}var Iu="__ngContext__";function zt(e,t){ft(t)?(e[Iu]=t[Qo],tD(t)):e[Iu]=t}function Kd(e){return Qd(e[dr])}function Yd(e){return Qd(e[Pe])}function Qd(e){for(;e!==null&&!tt(e);)e=e[Pe];return e}var Sa;function Jd(e){Sa=e}function nD(){if(Sa!==void 0)return Sa;if(typeof document<"u")return document;throw new S(210,!1)}var hl=new _("",{providedIn:"root",factory:()=>rD}),rD="ng",ml=new _(""),wt=new _("",{providedIn:"platform",factory:()=>"unknown"});var gl=new _("",{providedIn:"root",factory:()=>nD().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var oD="h",iD="b";var Xd=!1,sD=new _("",{providedIn:"root",factory:()=>Xd});var ef=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(ef||{}),tf=new _(""),_u=new Set;function Dr(e){_u.has(e)||(_u.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var aD=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=k({token:e,providedIn:"root",factory:()=>new e})}return e})();var lD=()=>null;function yl(e,t,n=!1){return lD(e,t,n)}var qe=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(qe||{});var xa=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${my})`}};function vl(e){return e instanceof xa?e.changingThisBreaksApplicationSecurity:e}var gt=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(gt||{}),Xe=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Xe||{}),cD;function Dl(e,t){return cD(e,t)}function un(e,t,n,r,o){if(r!=null){let i,s=!1;tt(r)?i=r:ft(r)&&(s=!0,r=r[et]);let a=ze(r);e===0&&n!==null?o==null?af(t,n,a):jo(t,n,a,o||null,!0):e===1&&n!==null?jo(t,n,a,o||null,!0):e===2?CD(t,a,s):e===3&&t.destroyNode(a),i!=null&&SD(t,e,i,n,o)}}function uD(e,t){return e.createText(t)}function dD(e,t,n){e.setValue(t,n)}function nf(e,t,n){return e.createElement(t,n)}function fD(e,t){rf(e,t),t[et]=null,t[je]=null}function pD(e,t,n,r,o,i){r[et]=o,r[je]=t,ri(e,r,n,1,o,i)}function rf(e,t){t[pt].changeDetectionScheduler?.notify(10),ri(e,t,t[ne],2,null,null)}function hD(e){let t=e[dr];if(!t)return Xs(e[A],e);for(;t;){let n=null;if(ft(t))n=t[dr];else{let r=t[Me];r&&(n=r)}if(!n){for(;t&&!t[Pe]&&t!==e;)ft(t)&&Xs(t[A],t),t=t[ae];t===null&&(t=e),ft(t)&&Xs(t[A],t),n=t&&t[Pe]}t=n}}function mD(e,t,n,r){let o=Me+r,i=n.length;r>0&&(n[o-1][Pe]=t),r<i-Me?(t[Pe]=n[o],Ju(n,Me+r,t)):(n.push(t),t[Pe]=null),t[ae]=n;let s=t[vn];s!==null&&n!==s&&of(s,t);let a=t[Dn];a!==null&&a.insertView(e),pa(t),t[I]|=128}function of(e,t){let n=e[Ao],r=t[ae];if(ft(r))e[I]|=ko.HasTransplantedViews;else{let o=r[ae][We];t[We]!==o&&(e[I]|=ko.HasTransplantedViews)}n===null?e[Ao]=[t]:n.push(t)}function wl(e,t){let n=e[Ao],r=n.indexOf(t);n.splice(r,1)}function Ta(e,t){if(e.length<=Me)return;let n=Me+t,r=e[n];if(r){let o=r[vn];o!==null&&o!==e&&wl(o,r),t>0&&(e[n-1][Pe]=r[Pe]);let i=bo(e,Me+t);fD(r[A],r);let s=i[Dn];s!==null&&s.detachView(i[A]),r[ae]=null,r[Pe]=null,r[I]&=-129}return r}function sf(e,t){if(!(t[I]&256)){let n=t[ne];n.destroyNode&&ri(e,t,n,3,null,null),hD(t)}}function Xs(e,t){if(t[I]&256)return;let n=R(null);try{t[I]&=-129,t[I]|=256,t[we]&&Rs(t[we]),yD(e,t),gD(e,t),t[A].type===1&&t[ne].destroy();let r=t[vn];if(r!==null&&tt(t[ae])){r!==t[ae]&&wl(r,t);let o=t[Dn];o!==null&&o.detachView(e)}ba(t)}finally{R(n)}}function gD(e,t){let n=e.cleanup,r=t[To];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[To]=null);let o=t[dt];if(o!==null){t[dt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Mo];if(i!==null){t[Mo]=null;for(let s of i)s.destroy()}}function yD(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 Gt)){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];Ue(4,a,l);try{l.call(a)}finally{Ue(5,a,l)}}else{Ue(4,o,i);try{i.call(o)}finally{Ue(5,o,i)}}}}}function vD(e,t,n){return DD(e,t.parent,n)}function DD(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[et];{let{componentOffset:o}=r;if(o>-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===qe.None||i===qe.Emulated)return null}return Ne(r,n)}}function jo(e,t,n,r,o){e.insertBefore(t,n,r,o)}function af(e,t,n){e.appendChild(t,n)}function Cu(e,t,n,r,o){r!==null?jo(e,t,n,r,o):af(e,t,n)}function lf(e,t){return e.parentNode(t)}function wD(e,t){return e.nextSibling(t)}function ED(e,t,n){return _D(e,t,n)}function ID(e,t,n){return e.type&40?Ne(e,n):null}var _D=ID,bu;function El(e,t,n,r){let o=vD(e,r,t),i=t[ne],s=r.parent||t[je],a=ED(s,r,t);if(o!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Cu(i,o,n[l],a,!1);else Cu(i,o,n,a,!1);bu!==void 0&&bu(i,r,t,n,o)}function sr(e,t){if(t!==null){let n=t.type;if(n&3)return Ne(t,e);if(n&4)return Ma(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return sr(e,r);{let o=e[t.index];return tt(o)?Ma(-1,o):ze(o)}}else{if(n&128)return sr(e,t.next);if(n&32)return Dl(t,e)()||ze(e[t.index]);{let r=cf(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Ut(e[We]);return sr(o,r)}else return sr(e,t.next)}}}return null}function cf(e,t){if(t!==null){let r=e[We][je],o=t.projection;return r.projection[o]}return null}function Ma(e,t){let n=Me+e+1;if(n<t.length){let r=t[n],o=r[A].firstChild;if(o!==null)return sr(r,o)}return t[Ht]}function CD(e,t,n){e.removeChild(null,t,n)}function Il(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],l=n.type;if(s&&t===0&&(a&&zt(ze(a),r),n.flags|=2),(n.flags&32)!==32)if(l&8)Il(e,t,n.child,r,o,i,!1),un(t,e,o,a,i);else if(l&32){let c=Dl(n,r),u;for(;u=c();)un(t,e,o,u,i);un(t,e,o,a,i)}else l&16?bD(e,t,r,n,o,i):un(t,e,o,a,i);n=s?n.projectionNext:n.next}}function ri(e,t,n,r,o,i){Il(n,r,e.firstChild,t,o,i,!1)}function bD(e,t,n,r,o,i){let s=n[We],l=s[je].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let u=l[c];un(t,e,o,u,i)}else{let c=l,u=s[ae];zd(r)&&(c.flags|=128),Il(e,t,c,u,o,i,!0)}}function SD(e,t,n,r,o){let i=n[Ht],s=ze(n);i!==s&&un(t,e,r,i,o);for(let a=Me;a<n.length;a++){let l=n[a];ri(l[A],l,e,t,r,i)}}function xD(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Xe.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Xe.Important),e.setStyle(n,r,o,i))}}function TD(e,t,n){e.setAttribute(t,"style",n)}function uf(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function df(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&ga(e,t,r),o!==null&&uf(e,t,o),i!==null&&TD(e,t,i)}function MD(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 ff="ng-template";function ND(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&MD(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(_l(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 _l(e){return e.type===4&&e.value!==ff}function AD(e,t,n){let r=e.type===4&&!n?ff:e.value;return t===r}function kD(e,t,n){let r=4,o=e.attrs,i=o!==null?FD(o):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!Fe(r)&&!Fe(l))return!1;if(s&&Fe(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!AD(e,l,n)||l===""&&t.length===1){if(Fe(r))return!1;s=!0}}else if(r&8){if(o===null||!ND(e,o,l,n)){if(Fe(r))return!1;s=!0}}else{let c=t[++a],u=OD(l,o,_l(e),n);if(u===-1){if(Fe(r))return!1;s=!0;continue}if(c!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&c!==d){if(Fe(r))return!1;s=!0}}}}return Fe(r)||s}function Fe(e){return(e&1)===0}function OD(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 PD(t,e)}function RD(e,t,n=!1){for(let r=0;r<t.length;r++)if(kD(e,t[r],n))return!0;return!1}function FD(e){for(let t=0;t<e.length;t++){let n=e[t];if(Av(n))return t}return e.length}function PD(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 Su(e,t){return e?":not("+t.trim()+")":t}function LD(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!==""&&!Fe(s)&&(t+=Su(i,o),o=""),r=s,i=i||!Fe(r);n++}return o!==""&&(t+=Su(i,o)),t}function VD(e){return e.map(LD).join(",")}function jD(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(!Fe(o))break;o=i}r++}return{attrs:t,classes:n}}var Qt={};function D(e=1){pf(Ee(),j(),Sn()+e,!1)}function pf(e,t,n,r){if(!r)if((t[I]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Do(t,i,n)}else{let i=e.preOrderHooks;i!==null&&wo(t,i,0,n)}$t(n)}function E(e,t=N.Default){let n=j();if(n===null)return x(e,t);let r=ye();return Ld(r,n,se(e),t)}function hf(e,t,n,r,o,i){let s=R(null);try{let a=null;o&gt.SignalBased&&(a=t[r][be]),a!==null&&a.transformFn!==void 0&&(i=a.transformFn(i)),o&gt.HasDecoratorInputTransform&&(i=e.inputTransforms[r].call(t,i)),e.setInput!==null?e.setInput(t,a,i,n,r):ud(t,a,r,i)}finally{R(s)}}function BD(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)$t(~o);else{let i=o,s=n[++r],a=n[++r];wv(s,i);let l=t[i];a(2,l)}}}finally{$t(-1)}}function oi(e,t,n,r,o,i,s,a,l,c,u){let d=t.blueprint.slice();return d[et]=o,d[I]=r|4|128|8|64|1024,(c!==null||e&&e[I]&2048)&&(d[I]|=2048),gd(d),d[ae]=d[Cn]=e,d[Le]=n,d[pt]=s||e&&e[pt],d[ne]=a||e&&e[ne],d[yn]=l||e&&e[yn]||null,d[je]=i,d[Qo]=eD(),d[xo]=u,d[ad]=c,d[We]=t.type==2?e[We]:d,d}function ii(e,t,n,r,o){let i=e.data[t];if(i===null)i=HD(e,t,n,r,o),Dv()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=hv();i.injectorIndex=s===null?-1:s.injectorIndex}return vr(i,!0),i}function HD(e,t,n,r,o){let i=Dd(),s=wd(),a=s?i:i&&i.parent,l=e.data[t]=zD(e,a,n,t,r,o);return e.firstChild===null&&(e.firstChild=l),i!==null&&(s?i.child==null&&l.parent!==null&&(i.child=l):i.next===null&&(i.next=l,l.prev=i)),l}function mf(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 gf(e,t,n,r,o){let i=Sn(),s=r&2;try{$t(-1),s&&t.length>Je&&pf(e,t,Je,!1),Ue(s?2:0,o),n(r,o)}finally{$t(i),Ue(s?3:1,o)}}function yf(e,t,n){if(cd(t)){let r=R(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{R(r)}}}function vf(e,t,n){vd()&&(JD(e,t,n,Ne(n,t)),(n.flags&64)===64&&Cf(e,t,n))}function Df(e,t,n=Ne){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 wf(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Cl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Cl(e,t,n,r,o,i,s,a,l,c,u){let d=Je+r,p=d+o,f=UD(d,p),h=typeof c=="function"?c():c;return f[A]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,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:h,incompleteFirstPass:!1,ssrId:u}}function UD(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Qt);return n}function $D(e,t,n,r){let i=r.get(sD,Xd)||n===qe.ShadowDom,s=e.selectRootElement(t,i);return GD(s),s}function GD(e){WD(e)}var WD=()=>null;function zD(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return dv()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs: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 xu(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,l=gt.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?Tu(r,n,c,a,l):Tu(r,n,c,a)}return r}function Tu(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function qD(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],l=null,c=null;for(let u=r;u<o;u++){let d=i[u],p=n?n.get(d):null,f=p?p.inputs:null,h=p?p.outputs:null;l=xu(0,d.inputs,u,l,f),c=xu(1,d.outputs,u,c,h);let m=l!==null&&s!==null&&!_l(t)?cw(l,u,s):null;a.push(m)}l!==null&&(l.hasOwnProperty("class")&&(t.flags|=8),l.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=l,t.outputs=c}function ZD(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Ef(e,t,n,r,o,i,s,a){let l=Ne(t,n),c=t.inputs,u;!a&&c!=null&&(u=c[r])?(bl(e,n,u,r,o),Jo(t)&&KD(n,t.index)):t.type&3?(r=ZD(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(l,r,o)):t.type&12}function KD(e,t){let n=Dt(t,e);n[I]&16||(n[I]|=64)}function If(e,t,n,r){if(vd()){let o=r===null?null:{"":-1},i=ew(e,n),s,a;i===null?s=a=null:[s,a]=i,s!==null&&_f(e,t,n,s,o,a),o&&tw(n,r,o)}n.mergedAttrs=fr(n.mergedAttrs,n.attrs)}function _f(e,t,n,r,o,i){for(let c=0;c<r.length;c++)Da(Po(n,t),e,r[c].type);rw(n,e.data.length,r.length);for(let c=0;c<r.length;c++){let u=r[c];u.providersResolver&&u.providersResolver(u)}let s=!1,a=!1,l=mf(e,t,r.length,null);for(let c=0;c<r.length;c++){let u=r[c];n.mergedAttrs=fr(n.mergedAttrs,u.hostAttrs),ow(e,n,t,l,u),nw(l,u,o),u.contentQueries!==null&&(n.flags|=4),(u.hostBindings!==null||u.hostAttrs!==null||u.hostVars!==0)&&(n.flags|=64);let d=u.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),l++}qD(e,n,i)}function YD(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;QD(s)!=a&&s.push(a),s.push(n,r,i)}}function QD(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function JD(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Jo(n)&&iw(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Po(n,t),zt(r,t);let s=n.initialInputs;for(let a=o;a<i;a++){let l=e.data[a],c=wn(t,e,a,n);if(zt(c,t),s!==null&&lw(t,a-o,c,l,n,s),ht(l)){let u=Dt(n.index,t);u[Le]=wn(t,e,a,n)}}}function Cf(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Ev();try{$t(i);for(let a=r;a<o;a++){let l=e.data[a],c=t[a];ma(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&XD(l,c)}}finally{$t(-1),ma(s)}}function XD(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function ew(e,t){let n=e.directiveRegistry,r=null,o=null;if(n)for(let i=0;i<n.length;i++){let s=n[i];if(RD(t,s.selectors,!1))if(r||(r=[]),ht(s))if(s.findHostDirectiveDefs!==null){let a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),r.unshift(...a,s);let l=a.length;Na(e,t,l)}else r.unshift(s),Na(e,t,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,r,o),r.push(s)}return r===null?null:[r,o]}function Na(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function tw(e,t,n){if(t){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 nw(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;ht(t)&&(n[""]=e)}}function rw(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ow(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=pn(o.type,!0)),s=new Gt(i,ht(o),E);e.blueprint[r]=s,n[r]=s,YD(e,t,r,mf(e,n,o.hostVars,Qt),o)}function bf(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function iw(e,t,n){let r=Ne(t,e),o=wf(n),i=e[pt].rendererFactory,s=si(e,oi(e,o,null,bf(n),r,t,null,i.createRenderer(r,n),null,null,null));e[t.index]=s}function sw(e,t,n,r,o,i){let s=Ne(e,t);aw(t[ne],s,i,e.value,n,r,o)}function aw(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?Ka(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function lw(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;){let l=s[a++],c=s[a++],u=s[a++],d=s[a++];hf(r,n,l,c,u,d)}}function cw(e,t,n){let r=null,o=0;for(;o<n.length;){let i=n[o];if(i===0){o+=4;continue}else if(i===5){o+=2;continue}if(typeof i=="number")break;if(e.hasOwnProperty(i)){r===null&&(r=[]);let s=e[i];for(let a=0;a<s.length;a+=3)if(s[a]===t){r.push(i,s[a+1],s[a+2],n[o+1]);break}}o+=2}return r}function Sf(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function xf(e,t){let n=e.contentQueries;if(n!==null){let r=R(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];_d(i),a.contentQueries(2,t[s],s)}}}finally{R(r)}}}function si(e,t){return e[dr]?e[uu][Pe]=t:e[dr]=t,e[uu]=t,t}function Aa(e,t,n){_d(0);let r=R(null);try{t(e,n)}finally{R(r)}}function uw(e){return e[To]??=[]}function dw(e){return e.cleanup??=[]}function Tf(e,t){let n=e[yn],r=n?n.get(mt,null):null;r&&r.handleError(t)}function bl(e,t,n,r,o){for(let i=0;i<n.length;){let s=n[i++],a=n[i++],l=n[i++],c=t[s],u=e.data[s];hf(u,c,r,a,l,o)}}function fw(e,t,n){let r=hd(t,e);dD(e[ne],r,n)}function pw(e,t){let n=Dt(t,e),r=n[A];hw(r,n);let o=n[et];o!==null&&n[xo]===null&&(n[xo]=yl(o,n[yn])),Sl(r,n,n[Le])}function hw(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Sl(e,t,n){ol(t);try{let r=e.viewQuery;r!==null&&Aa(1,r,n);let o=e.template;o!==null&&gf(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Dn]?.finishViewCreation(e),e.staticContentQueries&&xf(e,t),e.staticViewQueries&&Aa(2,e.viewQuery,n);let i=e.components;i!==null&&mw(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[I]&=-5,il()}}function mw(e,t){for(let n=0;n<t.length;n++)pw(e,t[n])}function gw(e,t,n,r){let o=R(null);try{let i=t.tView,a=e[I]&4096?4096:16,l=oi(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),c=e[t.index];l[vn]=c;let u=e[Dn];return u!==null&&(l[Dn]=u.createEmbeddedView(i)),Sl(i,l,n),l}finally{R(o)}}function Mu(e,t){return!t||t.firstChild===null||zd(e)}function yw(e,t,n,r=!0){let o=t[A];if(mD(o,t,e,n),r){let s=Ma(n,e),a=t[ne],l=lf(a,e[Ht]);l!==null&&pD(o,e[je],a,t,l,s)}let i=t[xo];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Bo(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(ze(i)),tt(i)&&vw(i,r);let s=n.type;if(s&8)Bo(e,t,n.child,r);else if(s&32){let a=Dl(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=cf(t,n);if(Array.isArray(a))r.push(...a);else{let l=Ut(t[We]);Bo(l[A],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function vw(e,t){for(let n=Me;n<e.length;n++){let r=e[n],o=r[A].firstChild;o!==null&&Bo(r[A],r,o,t)}e[Ht]!==e[et]&&t.push(e[Ht])}var Mf=[];function Dw(e){return e[we]??ww(e)}function ww(e){let t=Mf.pop()??Object.create(Iw);return t.lView=e,t}function Ew(e){e.lView[we]!==e&&(e.lView=null,Mf.push(e))}var Iw=K(V({},tr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{ei(e.lView)},consumerOnSignalRead(){this.lView[we]=this}});function _w(e){let t=e[we]??Object.create(Cw);return t.lView=e,t}var Cw=K(V({},tr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Ut(e.lView);for(;t&&!Nf(t[A]);)t=Ut(t);t&&rl(t)},consumerOnSignalRead(){this.lView[we]=this}});function Nf(e){return e.type!==2}function Af(e){if(e[Mo]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Mo])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[I]&8192)}}var bw=100;function kf(e,t=!0,n=0){let o=e[pt].rendererFactory,i=!1;i||o.begin?.();try{Sw(e,n)}catch(s){throw t&&Tf(e,s),s}finally{i||o.end?.()}}function Sw(e,t){let n=Ed();try{fu(!0),ka(e,t);let r=0;for(;Xo(e);){if(r===bw)throw new S(103,!1);r++,ka(e,1)}}finally{fu(n)}}function xw(e,t,n,r){let o=t[I];if((o&256)===256)return;let i=!1,s=!1;ol(t);let a=!0,l=null,c=null;i||(Nf(e)?(c=Dw(t),l=Gr(c)):yc()===null?(a=!1,c=_w(t),l=Gr(c)):t[we]&&(Rs(t[we]),t[we]=null));try{gd(t),yv(e.bindingStartIndex),n!==null&&gf(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&Do(t,f,null)}else{let f=e.preOrderHooks;f!==null&&wo(t,f,0,null),Ys(t,0)}if(s||Tw(t),Af(t),Of(t,0),e.contentQueries!==null&&xf(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&Do(t,f)}else{let f=e.contentHooks;f!==null&&wo(t,f,1),Ys(t,1)}BD(e,t);let d=e.components;d!==null&&Ff(t,d,0);let p=e.viewQuery;if(p!==null&&Aa(2,p,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&Do(t,f)}else{let f=e.viewHooks;f!==null&&wo(t,f,2),Ys(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ks]){for(let f of t[Ks])f();t[Ks]=null}i||(t[I]&=-73)}catch(u){throw i||ei(t),u}finally{c!==null&&(ks(c,l),a&&Ew(c)),il()}}function Of(e,t){for(let n=Kd(e);n!==null;n=Yd(n))for(let r=Me;r<n.length;r++){let o=n[r];Rf(o,t)}}function Tw(e){for(let t=Kd(e);t!==null;t=Yd(t)){if(!(t[I]&ko.HasTransplantedViews))continue;let n=t[Ao];for(let r=0;r<n.length;r++){let o=n[r];rl(o)}}}function Mw(e,t,n){let r=Dt(t,e);Rf(r,n)}function Rf(e,t){nl(e)&&ka(e,t)}function ka(e,t){let r=e[A],o=e[I],i=e[we],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Os(i)),s||=!1,i&&(i.dirty=!1),e[I]&=-9217,s)xw(r,e,r.template,e[Le]);else if(o&8192){Af(e),Of(e,1);let a=r.components;a!==null&&Ff(e,a,1)}}function Ff(e,t,n){for(let r=0;r<t.length;r++)Mw(e,t[r],n)}function xl(e,t){let n=Ed()?64:1088;for(e[pt].changeDetectionScheduler?.notify(t);e;){e[I]|=n;let r=Ut(e);if(da(e)&&!r)return e;e=r}return null}var qt=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[A];return Bo(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[Le]}get dirty(){return!!(this._lView[I]&9280)||!!this._lView[we]?.dirty}set context(t){this._lView[Le]=t}get destroyed(){return(this._lView[I]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ae];if(tt(t)){let n=t[No],r=n?n.indexOf(this):-1;r>-1&&(Ta(t,r),bo(n,r))}this._attachedToViewContainer=!1}sf(this._lView[A],this._lView)}onDestroy(t){yd(this._lView,t)}markForCheck(){xl(this._cdRefInjectingView||this._lView,4)}markForRefresh(){rl(this._cdRefInjectingView||this._lView)}detach(){this._lView[I]&=-129}reattach(){pa(this._lView),this._lView[I]|=128}detectChanges(){this._lView[I]|=1024,kf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=da(this._lView),n=this._lView[vn];n!==null&&!t&&wl(n,this._lView),rf(this._lView[A],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t;let n=da(this._lView),r=this._lView[vn];r!==null&&!n&&of(r,this._lView),pa(this._lView)}},ai=(()=>{class e{static __NG_ELEMENT_ID__=kw}return e})(),Nw=ai,Aw=class extends Nw{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=gw(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new qt(o)}};function kw(){return Ow(ye(),j())}function Ow(e,t){return e.type&4?new Aw(t,e,ni(e,t)):null}var Zk=new RegExp(`^(\\d+)*(${iD}|${oD})*(.*)`);var Rw=()=>null;function Nu(e,t){return Rw(e,t)}var Oa=class{},Ho=class{},Ra=class{resolveComponentFactory(t){throw Error(`No component factory found for ${De(t)}.`)}},hr=class{static NULL=new Ra},En=class{},Et=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Fw()}return e})();function Fw(){let e=j(),t=ye(),n=Dt(t.index,e);return(ft(n)?n:e)[ne]}var Pw=(()=>{class e{static \u0275prov=k({token:e,providedIn:"root",factory:()=>null})}return e})();function Fa(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=ou(o,a);else if(i==2){let l=a,c=t[++s];r=ou(r,l+": "+c+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}var Pa=class extends hr{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=mn(t);return new Uo(n,this.ngModule)}};function Au(e,t){let n=[];for(let r in e){if(!e.hasOwnProperty(r))continue;let o=e[r];if(o===void 0)continue;let i=Array.isArray(o),s=i?o[0]:o,a=i?o[1]:gt.None;t?n.push({propName:s,templateName:r,isSignal:(a&gt.SignalBased)!==0}):n.push({propName:s,templateName:r})}return n}function Lw(e){let t=e.toLowerCase();return t==="svg"?nv:t==="math"?rv:null}var Uo=class extends Ho{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){let t=this.componentDef,n=t.inputTransforms,r=Au(t.inputs,!0);if(n!==null)for(let o of r)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return r}get outputs(){return Au(this.componentDef.outputs,!1)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=VD(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=R(null);try{o=o||this.ngModule;let s=o instanceof Ge?o:o?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new ya(t,s):t,l=a.get(En,null);if(l===null)throw new S(407,!1);let c=a.get(Pw,null),u=a.get(pr,null),d={rendererFactory:l,sanitizer:c,changeDetectionScheduler:u},p=l.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?$D(p,r,this.componentDef.encapsulation,a):nf(p,f,Lw(f)),m=512;this.componentDef.signals?m|=4096:this.componentDef.onPush||(m|=16);let y=null;h!==null&&(y=yl(h,a,!0));let w=Cl(0,null,null,1,0,null,null,null,null,null,null),L=oi(null,w,null,m,null,null,d,p,a,null,y);ol(L);let F,W,Z=null;try{let ee=this.componentDef,Ye,Cs=null;ee.findHostDirectiveDefs?(Ye=[],Cs=new Map,ee.findHostDirectiveDefs(ee,Ye,Cs),Ye.push(ee)):Ye=[ee];let Lg=Vw(L,h);Z=jw(Lg,h,ee,Ye,L,d,p),W=md(w,Je),h&&Uw(p,ee,h,r),n!==void 0&&$w(W,this.ngContentSelectors,n),F=Hw(Z,ee,Ye,Cs,L,[Gw]),Sl(w,L,null)}catch(ee){throw Z!==null&&ba(Z),ba(L),ee}finally{il()}return new La(this.componentType,F,ni(W,L),L,W)}finally{R(i)}}},La=class extends Oa{location;_rootLView;_tNode;instance;hostView;changeDetectorRef;componentType;previousInputValues=null;constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new qt(o,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode.inputs,o;if(r!==null&&(o=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let i=this._rootLView;bl(i[A],i,o,t,n),this.previousInputValues.set(t,n);let s=Dt(this._tNode.index,i);xl(s,1)}}get injector(){return new Bt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function Vw(e,t){let n=e[A],r=Je;return e[r]=t,ii(n,r,2,"#host",null)}function jw(e,t,n,r,o,i,s){let a=o[A];Bw(r,e,t,s);let l=null;t!==null&&(l=yl(t,o[yn]));let c=i.rendererFactory.createRenderer(t,n),u=oi(o,wf(n),null,bf(n),o[e.index],e,i,c,null,null,l);return a.firstCreatePass&&Na(a,e,r.length-1),si(o,u),o[e.index]=u}function Bw(e,t,n,r){for(let o of e)t.mergedAttrs=fr(t.mergedAttrs,o.hostAttrs);t.mergedAttrs!==null&&(Fa(t,t.mergedAttrs,!0),n!==null&&df(r,n,t))}function Hw(e,t,n,r,o,i){let s=ye(),a=o[A],l=Ne(s,o);_f(a,o,s,n,null,r);for(let u=0;u<n.length;u++){let d=s.directiveStart+u,p=wn(o,a,d,s);zt(p,o)}Cf(a,o,s),l&&zt(l,o);let c=wn(o,a,s.directiveStart+s.componentOffset,s);if(e[Le]=o[Le]=c,i!==null)for(let u of i)u(c,t);return yf(a,s,o),c}function Uw(e,t,n,r){if(r)ga(e,n,["ng-version","19.0.5"]);else{let{attrs:o,classes:i}=jD(t.selectors[0]);o&&ga(e,n,o),i&&i.length>0&&uf(e,n,i.join(" "))}}function $w(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)}}function Gw(){let e=ye();cl(j()[A],e)}var li=(()=>{class e{static __NG_ELEMENT_ID__=Ww}return e})();function Ww(){let e=ye();return qw(e,j())}var zw=li,Pf=class extends zw{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return ni(this._hostTNode,this._hostLView)}get injector(){return new Bt(this._hostTNode,this._hostLView)}get parentInjector(){let t=ul(this._hostTNode,this._hostLView);if(Ad(t)){let n=Fo(t,this._hostLView),r=Ro(t),o=n[A].data[r+8];return new Bt(o,n)}else return new Bt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=ku(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Me}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Nu(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Mu(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Jy(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let l=s?t:new Uo(mn(t)),c=r||this.parentInjector;if(!i&&l.ngModule==null){let m=(s?c:this.parentInjector).get(Ge,null);m&&(i=m)}let u=mn(l.componentType??{}),d=Nu(this._lContainer,u?.id??null),p=d?.firstChild??null,f=l.create(c,o,p,i);return this.insertImpl(f.hostView,a,Mu(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(iv(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=o[ae],c=new Pf(l,l[je],l[ae]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return yw(s,o,i,r),t.attachToViewContainerRef(),Ju(ea(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=ku(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Ta(this._lContainer,n);r&&(bo(ea(this._lContainer),n),sf(r[A],r))}detach(t){let n=this._adjustIndex(t,-1),r=Ta(this._lContainer,n);return r&&bo(ea(this._lContainer),n)!=null?new qt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function ku(e){return e[No]}function ea(e){return e[No]||(e[No]=[])}function qw(e,t){let n,r=t[e.index];return tt(r)?n=r:(n=Sf(r,t,null,e),t[e.index]=n,si(t,n)),Kw(n,t,e,r),new Pf(n,e,t)}function Zw(e,t){let n=e[ne],r=n.createComment(""),o=Ne(t,e),i=lf(n,o);return jo(n,i,r,wD(n,o),!1),r}var Kw=Jw,Yw=()=>!1;function Qw(e,t,n){return Yw(e,t,n)}function Jw(e,t,n,r){if(e[Ht])return;let o;n.type&8?o=ze(r):o=Zw(t,n),e[Ht]=o}function Xw(e){return typeof e=="function"&&e[be]!==void 0}function wr(e,t){Dr("NgSignals");let n=xc(e),r=n[be];return t?.equal&&(r.equal=t.equal),n.set=o=>Fs(r,o),n.update=o=>Tc(r,o),n.asReadonly=eE.bind(n),n}function eE(){let e=this[be];if(e.readonlyFn===void 0){let t=()=>this();t[be]=e,e.readonlyFn=t}return e.readonlyFn}function Lf(e){return Xw(e)&&typeof e.set=="function"}var In=class{};var $o=class extends In{injector;componentFactoryResolver=new Pa(this);instance=null;constructor(t){super();let n=new ur([...t.providers,{provide:In,useValue:this},{provide:hr,useValue:this.componentFactoryResolver}],t.parent||el(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function tE(e,t,n=null){return new $o({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var nE=(()=>{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=rd(!1,n.type),o=r.length>0?tE([r],this._injector,`Standalone[${n.type.name}]`):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=k({token:e,providedIn:"environment",factory:()=>new e(x(Ge))})}return e})();function ci(e){return gr(()=>{let t=Vf(e),n=K(V({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===qd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(nE).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||qe.Emulated,styles:e.styles||Te,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Dr("NgStandalone"),jf(n);let r=e.dependencies;return n.directiveDefs=Ru(r,!1),n.pipeDefs=Ru(r,!0),n.id=iE(n),n})}function rE(e){return mn(e)||td(e)}function oE(e){return e!==null}function It(e){return gr(()=>({type:e.type,bootstrap:e.bootstrap||Te,declarations:e.declarations||Te,imports:e.imports||Te,exports:e.exports||Te,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Ou(e,t){if(e==null)return hn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=gt.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==gt.None?[r,a]:r,t[i]=s):n[i]=r}return n}function Q(e){return gr(()=>{let t=Vf(e);return jf(t),t})}function Vf(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||hn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Te,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ou(e.inputs,t),outputs:Ou(e.outputs),debugInfo:null}}function jf(e){e.features?.forEach(t=>t(e))}function Ru(e,t){if(!e)return null;let n=t?nd:rE;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(oE)}function iE(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}function sE(e){return Object.getPrototypeOf(e.prototype).constructor}function Ie(e){let t=sE(e.type),n=!0,r=[e];for(;t;){let o;if(ht(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new S(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=go(e.inputs),s.inputTransforms=go(e.inputTransforms),s.declaredInputs=go(e.declaredInputs),s.outputs=go(e.outputs);let a=o.hostBindings;a&&dE(e,a);let l=o.viewQuery,c=o.contentQueries;if(l&&cE(e,l),c&&uE(e,c),aE(e,o),yy(e.outputs,o.outputs),ht(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===Ie&&(n=!1)}}t=Object.getPrototypeOf(t)}lE(r)}function aE(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];if(r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],t.inputTransforms!==null)){let o=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(o))continue;e.inputTransforms??={},e.inputTransforms[o]=t.inputTransforms[o]}}}function lE(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=fr(o.hostAttrs,n=fr(n,o.hostAttrs))}}function go(e){return e===hn?{}:e===Te?[]:e}function cE(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function uE(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function dE(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Bf(e){return pE(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function fE(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function pE(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Hf(e,t,n){return e[t]=n}function yt(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function hE(e,t,n,r){let o=yt(e,t,n);return yt(e,t+1,r)||o}function mE(e){return(e.flags&32)===32}function gE(e,t,n,r,o,i,s,a,l){let c=t.consts,u=ii(t,e,4,s||null,a||null);If(t,n,u,Oo(c,l)),cl(t,u);let d=u.tView=Cl(2,u,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}function yE(e,t,n,r,o,i,s,a,l,c){let u=n+Je,d=t.firstCreatePass?gE(u,t,e,r,o,i,s,a,l):t.data[u];vr(d,!1);let p=vE(t,e,d,n);al()&&El(t,e,p,d),zt(p,e);let f=Sf(p,e,p,d);return e[u]=f,si(e,f),Qw(f,d,e),tl(d)&&vf(t,e,d),l!=null&&Df(e,d,c),d}function le(e,t,n,r,o,i,s,a){let l=j(),c=Ee(),u=Oo(c.consts,i);return yE(l,c,e,t,n,r,o,u,s,a),le}var vE=DE;function DE(e,t,n,r){return ll(!0),t[ne].createComment("")}var Uf=new _("");function Er(e){return!!e&&typeof e.then=="function"}function $f(e){return!!e&&typeof e.subscribe=="function"}var wE=new _("");var Gf=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=C(wE,{optional:!0})??[];injector=C(Wt);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Yo(this.injector,o);if(Er(i))n.push(i);else if($f(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=k({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),EE=(()=>{class e{static \u0275prov=k({token:e,providedIn:"root",factory:()=>new Va})}return e})(),Va=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}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)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},Wf=new _("");function IE(){Sc(()=>{throw new S(600,!1)})}function _E(e){return e.isBoundToModule}var CE=10;function bE(e,t,n){try{let r=n();return Er(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Zt=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=C(Qv);afterRenderManager=C(aD);zonelessEnabled=C(dl);rootEffectScheduler=C(EE);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Qe;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=C(Yt).hasPendingTasks.pipe(me(n=>!n));constructor(){C(tf,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=C(Ge);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Ho;if(!this._injector.get(Gf).done){let p=!o&&jy(n),f=!1;throw new S(405,f)}let s;o?s=n:s=this._injector.get(hr).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=_E(s)?void 0:this._injector.get(In),l=r||s.selector,c=s.create(Wt.NULL,[],l,a),u=c.location.nativeElement,d=c.injector.get(Uf,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Eo(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(this.tracingSnapshot!==null){let r=this.tracingSnapshot;this.tracingSnapshot=null,r.run(ef.CHANGE_DETECTION,this._tick),r.dispose();return}if(this._runningTick)throw new S(101,!1);let n=R(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,R(n),this.afterTick.next()}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(En,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let n=0;for(;this.dirtyFlags!==0&&n++<CE;)this.synchronizeOnce()}synchronizeOnce(){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)SE(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Xo(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;Eo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Wf,[]).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),()=>Eo(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}warnIfDestroyed(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Eo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function SE(e,t,n,r){if(!n&&!Xo(e))return;kf(e,t,n&&!r?0:1)}function Tl(e,t,n,r){let o=j(),i=ti();if(yt(o,i,t)){let s=Ee(),a=sl();sw(a,o,e,t,n,r)}return Tl}function xE(e,t,n,r){return yt(e,ti(),n)?t+Ka(n)+r:Qt}function yo(e,t){return e<<17|t<<2}function Kt(e){return e>>17&32767}function TE(e){return(e&2)==2}function ME(e,t){return e&131071|t<<17}function ja(e){return e|2}function _n(e){return(e&131068)>>2}function ta(e,t){return e&-131069|t<<2}function NE(e){return(e&1)===1}function Ba(e){return e|1}function AE(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Kt(s),l=_n(s);e[r]=n;let c=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||yr(d,u)>0)&&(c=!0)}else u=n;if(o)if(l!==0){let p=Kt(e[a+1]);e[r+1]=yo(p,a),p!==0&&(e[p+1]=ta(e[p+1],r)),e[a+1]=ME(e[a+1],r)}else e[r+1]=yo(a,0),a!==0&&(e[a+1]=ta(e[a+1],r)),a=r;else e[r+1]=yo(l,0),a===0?a=r:e[l+1]=ta(e[l+1],r),l=r;c&&(e[r+1]=ja(e[r+1])),Fu(e,u,r,!0),Fu(e,u,r,!1),kE(t,u,e,r,i),s=yo(a,l),i?t.classBindings=s:t.styleBindings=s}function kE(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&yr(i,t)>=0&&(n[r+1]=Ba(n[r+1]))}function Fu(e,t,n,r){let o=e[n+1],i=t===null,s=r?Kt(o):_n(o),a=!1;for(;s!==0&&(a===!1||i);){let l=e[s],c=e[s+1];OE(l,t)&&(a=!0,e[s+1]=r?Ba(c):ja(c)),s=r?Kt(c):_n(c)}a&&(e[n+1]=r?ja(o):Ba(o))}function OE(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?yr(e,t)>=0:!1}function b(e,t,n){let r=j(),o=ti();if(yt(r,o,t)){let i=Ee(),s=sl();Ef(i,s,r,e,t,r[ne],n,!1)}return b}function Pu(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";bl(e,n,i[s],s,r)}function ui(e,t){return RE(e,t,null,!0),ui}function RE(e,t,n,r){let o=j(),i=Ee(),s=vv(2);if(i.firstUpdatePass&&PE(i,e,s,r),t!==Qt&&yt(o,s,t)){let a=i.data[Sn()];HE(i,a,o,o[ne],e,o[s+1]=UE(t,n),r,s)}}function FE(e,t){return t>=e.expandoStartIndex}function PE(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Sn()],s=FE(e,n);$E(i,r)&&t===null&&!s&&(t=!1),t=LE(o,i,t,r),AE(o,i,t,n,s,r)}}function LE(e,t,n,r){let o=Iv(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=na(null,e,t,n,r),n=mr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=na(o,e,t,n,r),i===null){let l=VE(e,t,r);l!==void 0&&Array.isArray(l)&&(l=na(null,e,t,l[1],r),l=mr(l,t.attrs,r),jE(e,t,r,l))}else i=BE(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function VE(e,t,n){let r=n?t.classBindings:t.styleBindings;if(_n(r)!==0)return e[Kt(r)]}function jE(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Kt(o)]=r}function BE(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=mr(r,s,n)}return mr(r,t.attrs,n)}function na(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=mr(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function mr(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]),Ly(e,s,n?!0:t[++i]))}return e===void 0?null:e}function HE(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let l=e.data,c=l[a+1],u=NE(c)?Lu(l,t,n,o,_n(c),s):void 0;if(!Go(u)){Go(i)||TE(c)&&(i=Lu(l,null,n,o,a,s));let d=hd(Sn(),n);xD(r,s,d,o,i)}}function Lu(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let l=e[o],c=Array.isArray(l),u=c?l[1]:l,d=u===null,p=n[o+1];p===Qt&&(p=d?Te:void 0);let f=d?qs(p,r):u===r?p:void 0;if(c&&!Go(f)&&(f=qs(l,r)),Go(f)&&(a=f,s))return a;let h=e[o+1];o=s?Kt(h):_n(h)}if(t!==null){let l=i?t.residualClasses:t.residualStyles;l!=null&&(a=qs(l,r))}return a}function Go(e){return e!==void 0}function UE(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=De(vl(e)))),e}function $E(e,t){return(e.flags&(t?8:16))!==0}function GE(e,t,n,r,o,i){let s=t.consts,a=Oo(s,o),l=ii(t,e,2,r,a);return If(t,n,l,Oo(s,i)),l.attrs!==null&&Fa(l,l.attrs,!1),l.mergedAttrs!==null&&Fa(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function v(e,t,n,r){let o=j(),i=Ee(),s=Je+e,a=o[ne],l=i.firstCreatePass?GE(s,i,o,t,n,r):i.data[s],c=WE(i,o,l,a,t,e);o[s]=c;let u=tl(l);return vr(l,!0),df(a,c,l),!mE(l)&&al()&&El(i,o,c,l),lv()===0&&zt(c,o),cv(),u&&(vf(i,o,l),yf(i,l,o)),r!==null&&Df(o,l),v}function g(){let e=ye();wd()?mv():(e=e.parent,vr(e,!1));let t=e;fv(t)&&pv(),uv();let n=Ee();return n.firstCreatePass&&(cl(n,e),cd(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&Mv(t)&&Pu(n,t,j(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Nv(t)&&Pu(n,t,j(),t.stylesWithoutHost,!1),g}function oe(e,t,n,r){return v(e,t,n,r),g(),oe}var WE=(e,t,n,r,o,i)=>(ll(!0),nf(r,o,bv()));function Ae(){return j()}var Wo="en-US";var zE=Wo;function qE(e){typeof e=="string"&&(zE=e.toLowerCase().replace(/_/g,"-"))}var ZE=(e,t,n)=>{};function q(e,t,n,r){let o=j(),i=Ee(),s=ye();return zf(i,o,o[ne],s,e,t,r),q}function KE(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[To],l=o[i+2];return a.length>l?a[l]:null}typeof s=="string"&&(i+=2)}return null}function zf(e,t,n,r,o,i,s){let a=tl(r),c=e.firstCreatePass&&dw(e),u=t[Le],d=uw(t),p=!0;if(r.type&3||s){let m=Ne(r,t),y=s?s(m):m,w=d.length,L=s?W=>s(ze(W[r.index])):r.index,F=null;if(!s&&a&&(F=KE(e,t,o,r.index)),F!==null){let W=F.__ngLastListenerFn__||F;W.__ngNextListenerFn__=i,F.__ngLastListenerFn__=i,p=!1}else{i=ju(r,t,u,i),ZE(m,o,i);let W=n.listen(y,o,i);d.push(i,W),c&&c.push(o,L,w,w+1)}}else i=ju(r,t,u,i);let f=r.outputs,h;if(p&&f!==null&&(h=f[o])){let m=h.length;if(m)for(let y=0;y<m;y+=2){let w=h[y],L=h[y+1],Z=t[w][L].subscribe(i),ee=d.length;d.push(i,Z),c&&c.push(o,r.index,ee,-(ee+1))}}}function Vu(e,t,n,r){let o=R(null);try{return Ue(6,t,n),n(r)!==!1}catch(i){return Tf(e,i),!1}finally{Ue(7,t,n),R(o)}}function ju(e,t,n,r){return function o(i){if(i===Function)return r;let s=e.componentOffset>-1?Dt(e.index,t):t;xl(s,5);let a=Vu(t,n,r,i),l=o.__ngNextListenerFn__;for(;l;)a=Vu(t,n,l,i)&&a,l=l.__ngNextListenerFn__;return a}}function P(e=1){return Cv(e)}function qf(e){let t=gv();return ov(t,Je+e)}function O(e,t=""){let n=j(),r=Ee(),o=e+Je,i=r.firstCreatePass?ii(r,o,1,t,null):r.data[o],s=YE(r,n,i,t,e);n[o]=s,al()&&El(r,n,s,i),vr(i,!1)}var YE=(e,t,n,r,o)=>(ll(!0),uD(t[ne],r));function Ze(e){return Tn("",e,""),Ze}function Tn(e,t,n){let r=j(),o=xE(r,e,t,n);return o!==Qt&&fw(r,Sn(),o),Tn}function _e(e,t,n){Lf(t)&&(t=t());let r=j(),o=ti();if(yt(r,o,t)){let i=Ee(),s=sl();Ef(i,s,r,e,t,r[ne],n,!1)}return _e}function ke(e,t){let n=Lf(e);return n&&e.set(t),n}function Ce(e,t){let n=j(),r=Ee(),o=ye();return zf(r,n,n[ne],o,e,t),Ce}function QE(e,t,n){let r=Ee();if(r.firstCreatePass){let o=ht(e);Ha(n,r.data,r.blueprint,o,!0),Ha(t,r.data,r.blueprint,o,!1)}}function Ha(e,t,n,r,o){if(e=se(e),Array.isArray(e))for(let i=0;i<e.length;i++)Ha(e[i],t,n,r,o);else{let i=Ee(),s=j(),a=ye(),l=gn(e)?e:se(e.provide),c=sd(e),u=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(gn(e)||!e.multi){let f=new Gt(c,o,E),h=oa(l,t,o?u:u+p,d);h===-1?(Da(Po(a,s),i,l),ra(i,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=oa(l,t,u+p,d),h=oa(l,t,u,u+p),m=f>=0&&n[f],y=h>=0&&n[h];if(o&&!y||!o&&!m){Da(Po(a,s),i,l);let w=eI(o?XE:JE,n.length,o,r,c);!o&&y&&(n[h].providerFactory=w),ra(i,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(w),s.push(w)}else{let w=Zf(n[o?h:f],c,!o&&r);ra(i,e,f>-1?f:h,w)}!o&&r&&y&&n[h].componentProviders++}}}function ra(e,t,n,r){let o=gn(t),i=Gy(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 u=c.indexOf(n);u===-1?c.push(n,[r,l]):c[u+1].push(r,l)}else c.push(n,l)}}}function Zf(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function oa(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function JE(e,t,n,r){return Ua(this.multi,[])}function XE(e,t,n,r){let o=this.multi,i;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=wn(n,n[A],this.providerFactory.index,r);i=a.slice(0,s),Ua(o,i);for(let l=s;l<a.length;l++)i.push(a[l])}else i=[],Ua(o,i);return i}function Ua(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function eI(e,t,n,r,o){let i=new Gt(e,n,E);return i.multi=[],i.index=t,i.componentProviders=0,Zf(i,o,r&&!n),i}function rt(e,t=[]){return n=>{n.providersResolver=(r,o)=>QE(r,o?o(e):e,t)}}function Ir(e,t,n,r){return tI(j(),Id(),e,t,n,r)}function Mn(e,t,n,r,o){return nI(j(),Id(),e,t,n,r,o)}function Kf(e,t){let n=e[t];return n===Qt?void 0:n}function tI(e,t,n,r,o,i){let s=t+n;return yt(e,s,o)?Hf(e,s+1,i?r.call(i,o):r(o)):Kf(e,s+1)}function nI(e,t,n,r,o,i,s){let a=t+n;return hE(e,a,o,i)?Hf(e,a+2,s?r.call(s,o,i):r(o,i)):Kf(e,a+2)}var rI=(()=>{class e{zone=C(Y);changeDetectionScheduler=C(pr);applicationRef=C(Zt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function oI({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Y(K(V({},iI()),{scheduleInRootZone:n})),[{provide:Y,useFactory:e},{provide:cr,multi:!0,useFactory:()=>{let r=C(rI,{optional:!0});return()=>r.initialize()}},{provide:cr,multi:!0,useFactory:()=>{let r=C(sI);return()=>{r.initialize()}}},t===!0?{provide:Ud,useValue:!0}:[],{provide:$d,useValue:n??Bd}]}function iI(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var sI=(()=>{class e{subscription=new ie;initialized=!1;zone=C(Y);pendingTasks=C(Yt);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Y.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Y.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var aI=(()=>{class e{appRef=C(Zt);taskService=C(Yt);ngZone=C(Y);zonelessEnabled=C(dl);tracing=C(tf,{optional:!0});disableScheduling=C(Ud,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ie;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Vo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(C($d,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Ca||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Du:Gd;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Vo+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){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Du(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}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=k({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function lI(){return typeof $localize<"u"&&$localize.locale||Wo}var Ml=new _("",{providedIn:"root",factory:()=>C(Ml,N.Optional|N.SkipSelf)||lI()});var $a=new _(""),cI=new _("");function or(e){return!e.moduleRef}function uI(e){let t=or(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Y);return n.run(()=>{or(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(mt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),or(e)){let i=()=>t.destroy(),s=e.platformInjector.get($a);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get($a);s.add(i),e.moduleRef.onDestroy(()=>{Eo(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return bE(r,n,()=>{let i=t.get(Gf);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Ml,Wo);if(qE(s||Wo),!t.get(cI,!0))return or(e)?t.get(Zt):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(or(e)){let l=t.get(Zt);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return dI(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function dI(e,t){let n=e.injector.get(Zt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new S(-403,!1);t.push(e)}var Io=null;function fI(e=[],t){return Wt.create({name:t,providers:[{provide:Ko,useValue:"platform"},{provide:$a,useValue:new Set([()=>Io=null])},...e]})}function pI(e=[]){if(Io)return Io;let t=fI(e);return Io=t,IE(),hI(t),t}function hI(e){let t=e.get(ml,null);Yo(e,()=>{t?.forEach(n=>n())})}var Nn=(()=>{class e{static __NG_ELEMENT_ID__=mI}return e})();function mI(e){return gI(ye(),j(),(e&16)===16)}function gI(e,t,n){if(Jo(e)&&!n){let r=Dt(e.index,t);return new qt(r,r)}else if(e.type&175){let r=t[We];return new qt(r,t)}return null}var Ga=class{constructor(){}supports(t){return Bf(t)}create(t){return new Wa(t)}},yI=(e,t)=>t,Wa=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||yI}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<Bu(r,o,i)?n:r,a=Bu(s,o,i),l=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let c=a-o,u=l-o;if(c!=u){for(let p=0;p<c;p++){let f=p<i.length?i[p]:i[p]=0,h=f+p;u<=h&&h<c&&(i[p]=f+1)}let d=s.previousIndex;i[d]=u-c}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!Bf(t))throw new S(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,fE(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new za(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new zo),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new zo),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},za=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},qa=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},zo=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new qa,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Bu(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function Hu(){return new Nl([new Ga])}var Nl=(()=>{class e{factories;static \u0275prov=k({token:e,providedIn:"root",factory:Hu});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Hu()),deps:[[e,new Fy,new Qu]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new S(901,!1)}}return e})();function Yf(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=pI(r),i=[oI({}),{provide:pr,useExisting:aI},...n||[]],s=new $o({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return uI({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function di(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function _r(e,t){Dr("NgSignals");let n=_c(e);return t?.equal&&(n[be].equal=t.equal),n}function ot(e){let t=R(null);try{return e()}finally{R(t)}}var Uu=class{[be];constructor(t){this[be]=t}destroy(){this[be].destroy()}};var tp=null;function kn(){return tp}function np(e){tp??=e}var fi=class{};var Oe=new _("");function pi(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)return decodeURIComponent(i)}return null}var Al=/\s+/,Qf=[],hi=(()=>{class e{_ngEl;_renderer;initialClasses=Qf;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(Al):Qf}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Al):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Al).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(E(nt),E(Et))};static \u0275dir=Q({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var kl=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},mi=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new kl(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Jf(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);Jf(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(E(li),E(ai),E(Nl))};static \u0275dir=Q({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Jf(e,t){e.context.$implicit=t.item}var gi=(()=>{class e{_viewContainer;_context=new Ol;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Xf("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Xf("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(E(li),E(ai))};static \u0275dir=Q({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Ol=class{$implicit=null;ngIf=null};function Xf(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${De(t)}'.`)}var Cr=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=It({type:e});static \u0275inj=vt({})}return e})(),rp="browser",vI="server";function yi(e){return e===vI}var An=class{};var DI=typeof global=="object"&&global&&global.Object===Object&&global,vi=DI;var wI=typeof self=="object"&&self&&self.Object===Object&&self,EI=vi||wI||Function("return this")(),J=EI;var II=J.Symbol,ce=II;var op=Object.prototype,_I=op.hasOwnProperty,CI=op.toString,br=ce?ce.toStringTag:void 0;function bI(e){var t=_I.call(e,br),n=e[br];try{e[br]=void 0;var r=!0}catch{}var o=CI.call(e);return r&&(t?e[br]=n:delete e[br]),o}var ip=bI;var SI=Object.prototype,xI=SI.toString;function TI(e){return xI.call(e)}var sp=TI;var MI="[object Null]",NI="[object Undefined]",ap=ce?ce.toStringTag:void 0;function AI(e){return e==null?e===void 0?NI:MI:ap&&ap in Object(e)?ip(e):sp(e)}var Be=AI;function kI(e){return e!=null&&typeof e=="object"}var ue=kI;var OI="[object Symbol]";function RI(e){return typeof e=="symbol"||ue(e)&&Be(e)==OI}var _t=RI;function FI(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var lp=FI;var PI=Array.isArray,re=PI;var LI=1/0,cp=ce?ce.prototype:void 0,up=cp?cp.toString:void 0;function dp(e){if(typeof e=="string")return e;if(re(e))return lp(e,dp)+"";if(_t(e))return up?up.call(e):"";var t=e+"";return t=="0"&&1/e==-LI?"-0":t}var fp=dp;var VI=/\s/;function jI(e){for(var t=e.length;t--&&VI.test(e.charAt(t)););return t}var pp=jI;var BI=/^\s+/;function HI(e){return e&&e.slice(0,pp(e)+1).replace(BI,"")}var hp=HI;function UI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var de=UI;var mp=NaN,$I=/^[-+]0x[0-9a-f]+$/i,GI=/^0b[01]+$/i,WI=/^0o[0-7]+$/i,zI=parseInt;function qI(e){if(typeof e=="number")return e;if(_t(e))return mp;if(de(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=de(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=hp(e);var n=GI.test(e);return n||WI.test(e)?zI(e.slice(2),n?2:8):$I.test(e)?mp:+e}var gp=qI;var yp=1/0,ZI=17976931348623157e292;function KI(e){if(!e)return e===0?e:0;if(e=gp(e),e===yp||e===-yp){var t=e<0?-1:1;return t*ZI}return e===e?e:0}var vp=KI;function YI(e){var t=vp(e),n=t%1;return t===t?n?t-n:t:0}var Dp=YI;function QI(e){return e}var wp=QI;var JI="[object AsyncFunction]",XI="[object Function]",e_="[object GeneratorFunction]",t_="[object Proxy]";function n_(e){if(!de(e))return!1;var t=Be(e);return t==XI||t==e_||t==JI||t==t_}var Di=n_;var r_=J["__core-js_shared__"],wi=r_;var Ep=function(){var e=/[^.]+$/.exec(wi&&wi.keys&&wi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o_(e){return!!Ep&&Ep in e}var Ip=o_;var i_=Function.prototype,s_=i_.toString;function a_(e){if(e!=null){try{return s_.call(e)}catch{}try{return e+""}catch{}}return""}var st=a_;var l_=/[\\^$.*+?()[\]{}|]/g,c_=/^\[object .+?Constructor\]$/,u_=Function.prototype,d_=Object.prototype,f_=u_.toString,p_=d_.hasOwnProperty,h_=RegExp("^"+f_.call(p_).replace(l_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m_(e){if(!de(e)||Ip(e))return!1;var t=Di(e)?h_:c_;return t.test(st(e))}var _p=m_;function g_(e,t){return e?.[t]}var Cp=g_;function y_(e,t){var n=Cp(e,t);return _p(n)?n:void 0}var ve=y_;var v_=ve(J,"WeakMap"),Ei=v_;var bp=Object.create,D_=function(){function e(){}return function(t){if(!de(t))return{};if(bp)return bp(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Sp=D_;function w_(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var xp=w_;var E_=function(){try{var e=ve(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Fl=E_;function I_(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Tp=I_;function __(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var Mp=__;var C_=9007199254740991,b_=/^(?:0|[1-9]\d*)$/;function S_(e,t){var n=typeof e;return t=t??C_,!!t&&(n=="number"||n!="symbol"&&b_.test(e))&&e>-1&&e%1==0&&e<t}var Ii=S_;function x_(e,t,n){t=="__proto__"&&Fl?Fl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _i=x_;function T_(e,t){return e===t||e!==e&&t!==t}var On=T_;var M_=Object.prototype,N_=M_.hasOwnProperty;function A_(e,t,n){var r=e[t];(!(N_.call(e,t)&&On(r,n))||n===void 0&&!(t in e))&&_i(e,t,n)}var Ci=A_;function k_(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=r?r(n[a],e[a],a,n,e):void 0;l===void 0&&(l=e[a]),o?_i(n,a,l):Ci(n,a,l)}return n}var Ct=k_;var O_=9007199254740991;function R_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=O_}var Rn=R_;function F_(e){return e!=null&&Rn(e.length)&&!Di(e)}var Fn=F_;var P_=Object.prototype;function L_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||P_;return e===n}var Pn=L_;function V_(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Np=V_;var j_="[object Arguments]";function B_(e){return ue(e)&&Be(e)==j_}var Pl=B_;var Ap=Object.prototype,H_=Ap.hasOwnProperty,U_=Ap.propertyIsEnumerable,$_=Pl(function(){return arguments}())?Pl:function(e){return ue(e)&&H_.call(e,"callee")&&!U_.call(e,"callee")},bi=$_;function G_(){return!1}var kp=G_;var Fp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Op=Fp&&typeof module=="object"&&module&&!module.nodeType&&module,W_=Op&&Op.exports===Fp,Rp=W_?J.Buffer:void 0,z_=Rp?Rp.isBuffer:void 0,q_=z_||kp,Jt=q_;var Z_="[object Arguments]",K_="[object Array]",Y_="[object Boolean]",Q_="[object Date]",J_="[object Error]",X_="[object Function]",eC="[object Map]",tC="[object Number]",nC="[object Object]",rC="[object RegExp]",oC="[object Set]",iC="[object String]",sC="[object WeakMap]",aC="[object ArrayBuffer]",lC="[object DataView]",cC="[object Float32Array]",uC="[object Float64Array]",dC="[object Int8Array]",fC="[object Int16Array]",pC="[object Int32Array]",hC="[object Uint8Array]",mC="[object Uint8ClampedArray]",gC="[object Uint16Array]",yC="[object Uint32Array]",G={};G[cC]=G[uC]=G[dC]=G[fC]=G[pC]=G[hC]=G[mC]=G[gC]=G[yC]=!0;G[Z_]=G[K_]=G[aC]=G[Y_]=G[lC]=G[Q_]=G[J_]=G[X_]=G[eC]=G[tC]=G[nC]=G[rC]=G[oC]=G[iC]=G[sC]=!1;function vC(e){return ue(e)&&Rn(e.length)&&!!G[Be(e)]}var Pp=vC;function DC(e){return function(t){return e(t)}}var Ln=DC;var Lp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sr=Lp&&typeof module=="object"&&module&&!module.nodeType&&module,wC=Sr&&Sr.exports===Lp,Ll=wC&&vi.process,EC=function(){try{var e=Sr&&Sr.require&&Sr.require("util").types;return e||Ll&&Ll.binding&&Ll.binding("util")}catch{}}(),at=EC;var Vp=at&&at.isTypedArray,IC=Vp?Ln(Vp):Pp,Si=IC;var _C=Object.prototype,CC=_C.hasOwnProperty;function bC(e,t){var n=re(e),r=!n&&bi(e),o=!n&&!r&&Jt(e),i=!n&&!r&&!o&&Si(e),s=n||r||o||i,a=s?Np(e.length,String):[],l=a.length;for(var c in e)(t||CC.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ii(c,l)))&&a.push(c);return a}var xi=bC;function SC(e,t){return function(n){return e(t(n))}}var Ti=SC;var xC=Ti(Object.keys,Object),jp=xC;var TC=Object.prototype,MC=TC.hasOwnProperty;function NC(e){if(!Pn(e))return jp(e);var t=[];for(var n in Object(e))MC.call(e,n)&&n!="constructor"&&t.push(n);return t}var Bp=NC;function AC(e){return Fn(e)?xi(e):Bp(e)}var Ke=AC;function kC(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Hp=kC;var OC=Object.prototype,RC=OC.hasOwnProperty;function FC(e){if(!de(e))return Hp(e);var t=Pn(e),n=[];for(var r in e)r=="constructor"&&(t||!RC.call(e,r))||n.push(r);return n}var Up=FC;function PC(e){return Fn(e)?xi(e,!0):Up(e)}var Vn=PC;var LC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,VC=/^\w*$/;function jC(e,t){if(re(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||_t(e)?!0:VC.test(e)||!LC.test(e)||t!=null&&e in Object(t)}var jn=jC;var BC=ve(Object,"create"),lt=BC;function HC(){this.__data__=lt?lt(null):{},this.size=0}var $p=HC;function UC(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Gp=UC;var $C="__lodash_hash_undefined__",GC=Object.prototype,WC=GC.hasOwnProperty;function zC(e){var t=this.__data__;if(lt){var n=t[e];return n===$C?void 0:n}return WC.call(t,e)?t[e]:void 0}var Wp=zC;var qC=Object.prototype,ZC=qC.hasOwnProperty;function KC(e){var t=this.__data__;return lt?t[e]!==void 0:ZC.call(t,e)}var zp=KC;var YC="__lodash_hash_undefined__";function QC(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=lt&&t===void 0?YC:t,this}var qp=QC;function Bn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Bn.prototype.clear=$p;Bn.prototype.delete=Gp;Bn.prototype.get=Wp;Bn.prototype.has=zp;Bn.prototype.set=qp;var Vl=Bn;function JC(){this.__data__=[],this.size=0}var Zp=JC;function XC(e,t){for(var n=e.length;n--;)if(On(e[n][0],t))return n;return-1}var bt=XC;var eb=Array.prototype,tb=eb.splice;function nb(e){var t=this.__data__,n=bt(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():tb.call(t,n,1),--this.size,!0}var Kp=nb;function rb(e){var t=this.__data__,n=bt(t,e);return n<0?void 0:t[n][1]}var Yp=rb;function ob(e){return bt(this.__data__,e)>-1}var Qp=ob;function ib(e,t){var n=this.__data__,r=bt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Jp=ib;function Hn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Hn.prototype.clear=Zp;Hn.prototype.delete=Kp;Hn.prototype.get=Yp;Hn.prototype.has=Qp;Hn.prototype.set=Jp;var St=Hn;var sb=ve(J,"Map"),xt=sb;function ab(){this.size=0,this.__data__={hash:new Vl,map:new(xt||St),string:new Vl}}var Xp=ab;function lb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var eh=lb;function cb(e,t){var n=e.__data__;return eh(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Tt=cb;function ub(e){var t=Tt(this,e).delete(e);return this.size-=t?1:0,t}var th=ub;function db(e){return Tt(this,e).get(e)}var nh=db;function fb(e){return Tt(this,e).has(e)}var rh=fb;function pb(e,t){var n=Tt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var oh=pb;function Un(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Un.prototype.clear=Xp;Un.prototype.delete=th;Un.prototype.get=nh;Un.prototype.has=rh;Un.prototype.set=oh;var Xt=Un;var hb="Expected a function";function jl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(hb);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(jl.Cache||Xt),n}jl.Cache=Xt;var ih=jl;var mb=500;function gb(e){var t=ih(e,function(r){return n.size===mb&&n.clear(),r}),n=t.cache;return t}var sh=gb;var yb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vb=/\\(\\)?/g,Db=sh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(yb,function(n,r,o,i){t.push(o?i.replace(vb,"$1"):r||n)}),t}),ah=Db;function wb(e){return e==null?"":fp(e)}var lh=wb;function Eb(e,t){return re(e)?e:jn(e,t)?[e]:ah(lh(e))}var Mi=Eb;var Ib=1/0;function _b(e){if(typeof e=="string"||_t(e))return e;var t=e+"";return t=="0"&&1/e==-Ib?"-0":t}var Mt=_b;function Cb(e,t){t=Mi(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Mt(t[n++])];return n&&n==r?e:void 0}var Ni=Cb;function bb(e,t,n){var r=e==null?void 0:Ni(e,t);return r===void 0?n:r}var ch=bb;function Sb(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Ai=Sb;var xb=Ti(Object.getPrototypeOf,Object),ki=xb;function Tb(){this.__data__=new St,this.size=0}var uh=Tb;function Mb(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var dh=Mb;function Nb(e){return this.__data__.get(e)}var fh=Nb;function Ab(e){return this.__data__.has(e)}var ph=Ab;var kb=200;function Ob(e,t){var n=this.__data__;if(n instanceof St){var r=n.__data__;if(!xt||r.length<kb-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xt(r)}return n.set(e,t),this.size=n.size,this}var hh=Ob;function $n(e){var t=this.__data__=new St(e);this.size=t.size}$n.prototype.clear=uh;$n.prototype.delete=dh;$n.prototype.get=fh;$n.prototype.has=ph;$n.prototype.set=hh;var Nt=$n;function Rb(e,t){return e&&Ct(t,Ke(t),e)}var mh=Rb;function Fb(e,t){return e&&Ct(t,Vn(t),e)}var gh=Fb;var wh=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yh=wh&&typeof module=="object"&&module&&!module.nodeType&&module,Pb=yh&&yh.exports===wh,vh=Pb?J.Buffer:void 0,Dh=vh?vh.allocUnsafe:void 0;function Lb(e,t){if(t)return e.slice();var n=e.length,r=Dh?Dh(n):new e.constructor(n);return e.copy(r),r}var Eh=Lb;function Vb(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}var Ih=Vb;function jb(){return[]}var Oi=jb;var Bb=Object.prototype,Hb=Bb.propertyIsEnumerable,_h=Object.getOwnPropertySymbols,Ub=_h?function(e){return e==null?[]:(e=Object(e),Ih(_h(e),function(t){return Hb.call(e,t)}))}:Oi,Gn=Ub;function $b(e,t){return Ct(e,Gn(e),t)}var Ch=$b;var Gb=Object.getOwnPropertySymbols,Wb=Gb?function(e){for(var t=[];e;)Ai(t,Gn(e)),e=ki(e);return t}:Oi,Ri=Wb;function zb(e,t){return Ct(e,Ri(e),t)}var bh=zb;function qb(e,t,n){var r=t(e);return re(e)?r:Ai(r,n(e))}var Fi=qb;function Zb(e){return Fi(e,Ke,Gn)}var xr=Zb;function Kb(e){return Fi(e,Vn,Ri)}var Sh=Kb;var Yb=ve(J,"DataView"),Pi=Yb;var Qb=ve(J,"Promise"),Li=Qb;var Jb=ve(J,"Set"),Vi=Jb;var xh="[object Map]",Xb="[object Object]",Th="[object Promise]",Mh="[object Set]",Nh="[object WeakMap]",Ah="[object DataView]",e0=st(Pi),t0=st(xt),n0=st(Li),r0=st(Vi),o0=st(Ei),en=Be;(Pi&&en(new Pi(new ArrayBuffer(1)))!=Ah||xt&&en(new xt)!=xh||Li&&en(Li.resolve())!=Th||Vi&&en(new Vi)!=Mh||Ei&&en(new Ei)!=Nh)&&(en=function(e){var t=Be(e),n=t==Xb?e.constructor:void 0,r=n?st(n):"";if(r)switch(r){case e0:return Ah;case t0:return xh;case n0:return Th;case r0:return Mh;case o0:return Nh}return t});var ct=en;var i0=Object.prototype,s0=i0.hasOwnProperty;function a0(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&s0.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var kh=a0;var l0=J.Uint8Array,Wn=l0;function c0(e){var t=new e.constructor(e.byteLength);return new Wn(t).set(new Wn(e)),t}var zn=c0;function u0(e,t){var n=t?zn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Oh=u0;var d0=/\w*$/;function f0(e){var t=new e.constructor(e.source,d0.exec(e));return t.lastIndex=e.lastIndex,t}var Rh=f0;var Fh=ce?ce.prototype:void 0,Ph=Fh?Fh.valueOf:void 0;function p0(e){return Ph?Object(Ph.call(e)):{}}var Lh=p0;function h0(e,t){var n=t?zn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Vh=h0;var m0="[object Boolean]",g0="[object Date]",y0="[object Map]",v0="[object Number]",D0="[object RegExp]",w0="[object Set]",E0="[object String]",I0="[object Symbol]",_0="[object ArrayBuffer]",C0="[object DataView]",b0="[object Float32Array]",S0="[object Float64Array]",x0="[object Int8Array]",T0="[object Int16Array]",M0="[object Int32Array]",N0="[object Uint8Array]",A0="[object Uint8ClampedArray]",k0="[object Uint16Array]",O0="[object Uint32Array]";function R0(e,t,n){var r=e.constructor;switch(t){case _0:return zn(e);case m0:case g0:return new r(+e);case C0:return Oh(e,n);case b0:case S0:case x0:case T0:case M0:case N0:case A0:case k0:case O0:return Vh(e,n);case y0:return new r;case v0:case E0:return new r(e);case D0:return Rh(e);case w0:return new r;case I0:return Lh(e)}}var jh=R0;function F0(e){return typeof e.constructor=="function"&&!Pn(e)?Sp(ki(e)):{}}var Bh=F0;var P0="[object Map]";function L0(e){return ue(e)&&ct(e)==P0}var Hh=L0;var Uh=at&&at.isMap,V0=Uh?Ln(Uh):Hh,$h=V0;var j0="[object Set]";function B0(e){return ue(e)&&ct(e)==j0}var Gh=B0;var Wh=at&&at.isSet,H0=Wh?Ln(Wh):Gh,zh=H0;var U0=1,$0=2,G0=4,qh="[object Arguments]",W0="[object Array]",z0="[object Boolean]",q0="[object Date]",Z0="[object Error]",Zh="[object Function]",K0="[object GeneratorFunction]",Y0="[object Map]",Q0="[object Number]",Kh="[object Object]",J0="[object RegExp]",X0="[object Set]",eS="[object String]",tS="[object Symbol]",nS="[object WeakMap]",rS="[object ArrayBuffer]",oS="[object DataView]",iS="[object Float32Array]",sS="[object Float64Array]",aS="[object Int8Array]",lS="[object Int16Array]",cS="[object Int32Array]",uS="[object Uint8Array]",dS="[object Uint8ClampedArray]",fS="[object Uint16Array]",pS="[object Uint32Array]",B={};B[qh]=B[W0]=B[rS]=B[oS]=B[z0]=B[q0]=B[iS]=B[sS]=B[aS]=B[lS]=B[cS]=B[Y0]=B[Q0]=B[Kh]=B[J0]=B[X0]=B[eS]=B[tS]=B[uS]=B[dS]=B[fS]=B[pS]=!0;B[Z0]=B[Zh]=B[nS]=!1;function ji(e,t,n,r,o,i){var s,a=t&U0,l=t&$0,c=t&G0;if(n&&(s=o?n(e,r,o,i):n(e)),s!==void 0)return s;if(!de(e))return e;var u=re(e);if(u){if(s=kh(e),!a)return xp(e,s)}else{var d=ct(e),p=d==Zh||d==K0;if(Jt(e))return Eh(e,a);if(d==Kh||d==qh||p&&!o){if(s=l||p?{}:Bh(e),!a)return l?bh(e,gh(s,e)):Ch(e,mh(s,e))}else{if(!B[d])return o?e:{};s=jh(e,d,a)}}i||(i=new Nt);var f=i.get(e);if(f)return f;i.set(e,s),zh(e)?e.forEach(function(y){s.add(ji(y,t,n,y,e,i))}):$h(e)&&e.forEach(function(y,w){s.set(w,ji(y,t,n,w,e,i))});var h=c?l?Sh:xr:l?Vn:Ke,m=u?void 0:h(e);return Tp(m||e,function(y,w){m&&(w=y,y=e[w]),Ci(s,w,ji(y,t,n,w,e,i))}),s}var Yh=ji;var hS=1,mS=4;function gS(e){return Yh(e,hS|mS)}var Bl=gS;var yS="__lodash_hash_undefined__";function vS(e){return this.__data__.set(e,yS),this}var Qh=vS;function DS(e){return this.__data__.has(e)}var Jh=DS;function Bi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Xt;++t<n;)this.add(e[t])}Bi.prototype.add=Bi.prototype.push=Qh;Bi.prototype.has=Jh;var Xh=Bi;function wS(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var em=wS;function ES(e,t){return e.has(t)}var tm=ES;var IS=1,_S=2;function CS(e,t,n,r,o,i){var s=n&IS,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,f=n&_S?new Xh:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var h=e[d],m=t[d];if(r)var y=s?r(m,h,d,t,e,i):r(h,m,d,e,t,i);if(y!==void 0){if(y)continue;p=!1;break}if(f){if(!em(t,function(w,L){if(!tm(f,L)&&(h===w||o(h,w,n,r,i)))return f.push(L)})){p=!1;break}}else if(!(h===m||o(h,m,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p}var Hi=CS;function bS(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var nm=bS;function SS(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var rm=SS;var xS=1,TS=2,MS="[object Boolean]",NS="[object Date]",AS="[object Error]",kS="[object Map]",OS="[object Number]",RS="[object RegExp]",FS="[object Set]",PS="[object String]",LS="[object Symbol]",VS="[object ArrayBuffer]",jS="[object DataView]",om=ce?ce.prototype:void 0,Hl=om?om.valueOf:void 0;function BS(e,t,n,r,o,i,s){switch(n){case jS:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case VS:return!(e.byteLength!=t.byteLength||!i(new Wn(e),new Wn(t)));case MS:case NS:case OS:return On(+e,+t);case AS:return e.name==t.name&&e.message==t.message;case RS:case PS:return e==t+"";case kS:var a=nm;case FS:var l=r&xS;if(a||(a=rm),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=TS,s.set(e,t);var u=Hi(a(e),a(t),r,o,i,s);return s.delete(e),u;case LS:if(Hl)return Hl.call(e)==Hl.call(t)}return!1}var im=BS;var HS=1,US=Object.prototype,$S=US.hasOwnProperty;function GS(e,t,n,r,o,i){var s=n&HS,a=xr(e),l=a.length,c=xr(t),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var p=a[d];if(!(s?p in t:$S.call(t,p)))return!1}var f=i.get(e),h=i.get(t);if(f&&h)return f==t&&h==e;var m=!0;i.set(e,t),i.set(t,e);for(var y=s;++d<l;){p=a[d];var w=e[p],L=t[p];if(r)var F=s?r(L,w,p,t,e,i):r(w,L,p,e,t,i);if(!(F===void 0?w===L||o(w,L,n,r,i):F)){m=!1;break}y||(y=p=="constructor")}if(m&&!y){var W=e.constructor,Z=t.constructor;W!=Z&&"constructor"in e&&"constructor"in t&&!(typeof W=="function"&&W instanceof W&&typeof Z=="function"&&Z instanceof Z)&&(m=!1)}return i.delete(e),i.delete(t),m}var sm=GS;var WS=1,am="[object Arguments]",lm="[object Array]",Ui="[object Object]",zS=Object.prototype,cm=zS.hasOwnProperty;function qS(e,t,n,r,o,i){var s=re(e),a=re(t),l=s?lm:ct(e),c=a?lm:ct(t);l=l==am?Ui:l,c=c==am?Ui:c;var u=l==Ui,d=c==Ui,p=l==c;if(p&&Jt(e)){if(!Jt(t))return!1;s=!0,u=!1}if(p&&!u)return i||(i=new Nt),s||Si(e)?Hi(e,t,n,r,o,i):im(e,t,l,n,r,o,i);if(!(n&WS)){var f=u&&cm.call(e,"__wrapped__"),h=d&&cm.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,y=h?t.value():t;return i||(i=new Nt),o(m,y,n,r,i)}}return p?(i||(i=new Nt),sm(e,t,n,r,o,i)):!1}var um=qS;function dm(e,t,n,r,o){return e===t?!0:e==null||t==null||!ue(e)&&!ue(t)?e!==e&&t!==t:um(e,t,n,r,dm,o)}var $i=dm;var ZS=1,KS=2;function YS(e,t,n,r){var o=n.length,i=o,s=!r;if(e==null)return!i;for(e=Object(e);o--;){var a=n[o];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){a=n[o];var l=a[0],c=e[l],u=a[1];if(s&&a[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Nt;if(r)var p=r(c,u,l,e,t,d);if(!(p===void 0?$i(u,c,ZS|KS,r,d):p))return!1}}return!0}var fm=YS;function QS(e){return e===e&&!de(e)}var Gi=QS;function JS(e){for(var t=Ke(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Gi(o)]}return t}var pm=JS;function XS(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Wi=XS;function ex(e){var t=pm(e);return t.length==1&&t[0][2]?Wi(t[0][0],t[0][1]):function(n){return n===e||fm(n,e,t)}}var hm=ex;function tx(e,t){return e!=null&&t in Object(e)}var mm=tx;function nx(e,t,n){t=Mi(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var s=Mt(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&Rn(o)&&Ii(s,o)&&(re(e)||bi(e)))}var gm=nx;function rx(e,t){return e!=null&&gm(e,t,mm)}var ym=rx;var ox=1,ix=2;function sx(e,t){return jn(e)&&Gi(t)?Wi(Mt(e),t):function(n){var r=ch(n,e);return r===void 0&&r===t?ym(n,e):$i(t,r,ox|ix)}}var vm=sx;function ax(e){return function(t){return t?.[e]}}var Dm=ax;function lx(e){return function(t){return Ni(t,e)}}var wm=lx;function cx(e){return jn(e)?Dm(Mt(e)):wm(e)}var Em=cx;function ux(e){return typeof e=="function"?e:e==null?wp:typeof e=="object"?re(e)?vm(e[0],e[1]):hm(e):Em(e)}var zi=ux;function dx(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Ul=dx;function fx(e){return function(t,n,r){var o=Object(t);if(!Fn(t)){var i=zi(n,3);t=Ke(t),n=function(a){return i(o[a],a,o)}}var s=e(t,n,r);return s>-1?o[i?t[s]:s]:void 0}}var Im=fx;var px=Math.max;function hx(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:Dp(n);return o<0&&(o=px(r+o,0)),Mp(e,zi(t,3),o)}var _m=hx;var mx=Im(_m),$l=mx;function gx(e){return e&&e.length?e[0]:void 0}var qi=gx;var X={mreServiceBase:"https://test.kc-np.o360.cloud/Handlers/saml2.ashx",mreBaseUrl:"https://www.medicalreferenceengine.com/mre/",tokenServer:"/Token/token/",url:"/",appName:"kcApp",secret:""};var Cm=[{name:"aa_togglePhysicianPaymentType (Dev Only)",sdkVisible:!1,example:""},{name:"aa_LoadPhyNpiTaxonomy (Dev Only)",sdkVisible:!1,example:""},{name:"aa_SetEgpSortRules (Dev Only)",sdkVisible:!1,example:{includePriority:"",includeSeverity:"",includeMortality:"",includeElixhauser:"",includeHcc:"",includeRa:"",includePxPriority:""}},{name:"aa_CreateAgpInput (Dev Only)",sdkVisible:!1,example:""},{name:"acsuCloneDischargeDisposition (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuGetFacilitiesByIds (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuGetFacilitiesByUsernames (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuMergeMultiRegion (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuSaveDischargeDisposition (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuSaveWebstratUser (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"addGhostRows (Dev Only)",sdkVisible:!1,example:{includeAdmitTypeAndAdmissionSource:!1}},{name:"addRemCodes (Dev Only)",sdkVisible:!1,example:{diagnosisCodes:[{code:"B700",codeType:"REMD",label:"short label",longLabel:"Long label"}],hcpcsCodes:[{code:"12001",codeType:"REMH",label:"short label",longLabel:"Long label",units:"1",modifier1:"26",modifier2:null,modifier3:null,modifier4:null,modifier5:null}]}},{name:"swapActiveAndGhostRows (Dev Only)",sdkVisible:!1,example:""},{name:"recordMode (Dev Only)",sdkVisible:!1,example:""},{name:"addCodes",sdkVisible:!0,example:{codes:[{code:"B700",codeType:"I10CM",dxIndic1:"N"},{code:"X2C1361",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z"}],editedcode:null,codeSource:"encoder",documentHighlight:!0}},{name:"deleteCodes",sdkVisible:!0,example:{codes:[{uniqueId:"uniqueIdgoeshere",codeType:"I10CM"}]}},{name:"defaultSettings",sdkVisible:!1,example:""},{name:"getInputPatientClaim",sdkVisible:!1,example:""},{name:"getPayerList",sdkVisible:!0,example:{sendingFacility:"001",npi:null,payer:null,taxonomy:null,paymentType:"01"}},{name:"getPatientRecord",sdkVisible:!1,example:""},{name:"getPatientRecord-truncated",sdkVisible:!1,example:""},{name:"getOptimizerInput",sdkVisible:!1,example:""},{name:"cacAuthenticateUser (Dev Only)",sdkVisible:!1,example:{user:"UserName",pw:"EncryptedPW",isForLogin:!0}},{name:"cacChangePwd (Dev Only)",sdkVisible:!1,example:{user:"UserName",currentPw:"EncryptedPw",newPw:"EncryptedPw"}},{name:"cacGetGroups (Dev Only)",sdkVisible:!1,example:""},{name:"cacResetPwd (Dev Only)",sdkVisible:!1,example:{user:"UserName",newPw:"EncryptedPw"}},{name:"cacGetUserInfo (Dev Only)",sdkVisible:!1,example:{user:"UserName"}},{name:"cacUpdateLastLoginTime (Dev Only)",sdkVisible:!1,example:{user:12345}},{name:"callClaimsManager (Dev Only)",sdkVisible:!1,example:""},{name:"closeAllKCWindows",sdkVisible:!1,example:""},{name:"closeAllKCWindowsExceptEncoder",sdkVisible:!0,example:""},{name:"clearSelectedRow",sdkVisible:!0,example:""},{name:"clearPatientRecord",sdkVisible:!0,example:""},{name:"clearHighlight",sdkVisible:!1,example:""},{name:"editsCount",sdkVisible:!1,example:""},{name:"enableEncoder",sdkVisible:!1,example:""},{name:"disableEncoder",sdkVisible:!1,example:""},{name:"disableChildWindows",sdkVisible:!1,example:""},{name:"enableChildWindows",sdkVisible:!1,example:""},{name:"launchCodeSummaryReport",sdkVisible:!0,example:""},{name:"launchEdits",sdkVisible:!0,example:""},{name:"launchIndex",sdkVisible:!0,example:{codeType:"I10CM",phrase:"ANGINA"}},{name:"launchLogic",sdkVisible:!0,example:{codeType:"I10CM",phrase:"ANGINA"}},{name:"launchTabular",sdkVisible:!0,example:{codeType:"I10CM",code:"A000"}},{name:"launchFacilityLookup",sdkVisible:!0,example:{paymentType:"01",rateFilePath:"C:\\inetpub\\wwwroot\\HSS\\Data\\allpaykc"}},{name:"loadNotes",sdkVisible:!1,example:{AccessType:"All",codeType:"I10CM",NoteType:"Code",Identifier:"",IdentifierSearchLower:"",IdentifierSearchUpper:"",Category:"",Ids:{User:"",Facility:"",Organization:""},AllFacilities:!0}},{name:"loadOrganizationSettings",sdkVisible:!1,example:""},{name:"loadPatientRecord",sdkVisible:!0,example:""},{name:"openEncoder",sdkVisible:!0,example:""},{name:"potentialImpactDisplay (Dev Only)",sdkVisible:!1,example:""},{name:"potentialImpactClear",sdkVisible:!1,example:""},{name:"potentialImpactDisable",sdkVisible:!1,example:""},{name:"potentialImpactEnable",sdkVisible:!1,example:""},{name:"potentialImpactEnableEgp",sdkVisible:!1,example:{enabled:!1}},{name:"potentialImpactInitialize",sdkVisible:!1,example:""},{name:"resetApplication",sdkVisible:!0,example:""},{name:"savePatientRecord",sdkVisible:!0,example:""},{name:"selectRowOnHighlightClick",sdkVisible:!1,example:{uniqueId:"uniqueIdGoesHere"}},{name:"setAuthToken",sdkVisible:!1,example:""},{name:"toggleEgpCompression",sdkVisible:!1,example:{enableCompression:!1}},{name:"setChargeCapture",sdkVisible:!0,example:[{cptCode:"G0382",modifiers:"77,GA,PO",revCode:"450",startDate:"2025-2-11",units:1,codeRange:"99281-99285,99291-99292,G0380-G0384"},{cptCode:"96365",modifiers:"59,XE,XS,XU",revCode:"450",startDate:"Tue Feb 11 2025 13:25:46 GMT-0500 (Eastern Standard Time)",units:56,codeRange:"96360-96361,96365-96368,96372,96374-96376"},{cptCode:"99221",modifiers:"IN,IP,IR,IS,IX",revCode:"760",startDate:"2025-02-11T00:00:00.000Z",units:9999,codeRange:"99221-99223,99231-99233,99234-99236, 99238-99239,G0378 \u2013 G0379"}]},{name:"showCurrentConfig (Dev Only)",sdkVisible:!1,example:""},{name:"updateAbstractInfo",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",abstractInfo:"A"}]},{name:"updateBaseUrl",sdkVisible:!1,example:""},{name:"updateCodes",sdkVisible:!0,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",dxIndic1:"Y"},{uniqueId:"uniqueIdGoesHere",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z",selectedProvider:"freeFormProvider"},{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",date:"2024-03-21T20:01:28.953Z",selectedProvider:"freeFormProvider",revCode:"0250",units:"1",modifier1:{value:"23"},i10Reimbursement:{charges:"$1,000.00"},i9Reimbursement:{charges:"$1,000.00"}}]},{name:"updateComments",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",comments:"C"}]},{name:"updateDemographics",sdkVisible:!0,example:""},{name:"updateDocumentCount",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",documentCount:"3"}]},{name:"updateExcludeFromBilling",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",excludeFromBilling:"X"}]},{name:"updateRedFlag",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",redFlag:"F"}]},{name:"hasCriticalEdits",sdkVisible:!0,example:""},{name:"hasEdits",sdkVisible:!0,example:""},{name:"ReloadMainPod",sdkVisible:!1,example:""},{name:"ReloadCodeSummary",sdkVisible:!1,example:""},{name:"ReloadDemographics",sdkVisible:!1,example:""},{name:"ReloadEdits",sdkVisible:!1,example:""},{name:"ReloadReimbursement",sdkVisible:!1,example:""},{name:"logout",sdkVisible:!0,example:""},{name:"getRowSpecificInfo",sdkVisible:!0,example:["uniqueId1GoesHere","uniqueId2GoesHere"]},{name:"isEditGroupPriceInProgress",sdkVisible:!1,example:""},{name:"addCodesNoEdit",sdkVisible:!1,example:{codes:[{code:"B700",codeType:"I10CM",dxIndic1:"N"},{code:"X2C1361",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z"}]}},{name:"setQueryImpactVisibility",sdkVisible:!1,example:{isVisible:!0}},{name:"setSyncVisibility",sdkVisible:!1,example:{isVisible:!0}},{name:"showScratchCodeState",sdkVisible:!1,example:{isVisible:!0}},{name:"showQueryHistoryState",sdkVisible:!1,example:{isVisible:!0}},{name:"showQueryHistoryBtn",sdkVisible:!1,example:{isVisible:!0}},{name:"updateCptWithRange",sdkVisible:!1,example:{codes:[{code:"",units:""}],emCodeRanges:[{from:"",to:""}]}},{name:"launchModal (Dev Only)",sdkVisible:!1,example:{messageType:"info",title:"Test Modal",message:["Test Modal"]}},{name:"simulateKcVersion (Dev Only)",sdkVisible:!1,example:{kcVersion:"1.2.3"}},{name:"startEnvironmentPromiseRace (Dev Only)",sdkVisible:!1,example:{alternateUrl:"https://dev.kc-np.o360.cloud/v202501"}}];var Om=(()=>{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)(E(Et),E(nt))};static \u0275dir=Q({type:e})}return e})(),os=(()=>{class e extends Om{static \u0275fac=(()=>{let n;return function(o){return(n||(n=xn(e)))(o||e)}})();static \u0275dir=Q({type:e,features:[Ie]})}return e})(),Kn=new _(""),Dx={provide:Kn,useExisting:Ve(()=>Zl),multi:!0},Zl=(()=>{class e extends os{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(o){return(n||(n=xn(e)))(o||e)}})();static \u0275dir=Q({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){r&1&&q("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[rt([Dx]),Ie]})}return e})(),wx={provide:Kn,useExisting:Ve(()=>Yn),multi:!0};function Ex(){let e=kn()?kn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var Ix=new _(""),Yn=(()=>{class e extends Om{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!Ex())}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)(E(Et),E(nt),E(Ix,8))};static \u0275dir=Q({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&q("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:[rt([wx]),Ie]})}return e})();function At(e){return e==null||(typeof e=="string"||Array.isArray(e))&&e.length===0}function Rm(e){return e!=null&&typeof e.length=="number"}var is=new _(""),Kl=new _(""),_x=/^(?=.{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])?)*$/,kr=class{static min(t){return Cx(t)}static max(t){return bx(t)}static required(t){return Fm(t)}static requiredTrue(t){return Sx(t)}static email(t){return xx(t)}static minLength(t){return Tx(t)}static maxLength(t){return Mx(t)}static pattern(t){return Nx(t)}static nullValidator(t){return Ki(t)}static compose(t){return Hm(t)}static composeAsync(t){return $m(t)}};function Cx(e){return t=>{if(At(t.value)||At(e))return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function bx(e){return t=>{if(At(t.value)||At(e))return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function Fm(e){return At(e.value)?{required:!0}:null}function Sx(e){return e.value===!0?null:{required:!0}}function xx(e){return At(e.value)||_x.test(e.value)?null:{email:!0}}function Tx(e){return t=>At(t.value)||!Rm(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}function Mx(e){return t=>Rm(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function Nx(e){if(!e)return Ki;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(At(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function Ki(e){return null}function Pm(e){return e!=null}function Lm(e){return Er(e)?jt(e):e}function Vm(e){let t={};return e.forEach(n=>{t=n!=null?V(V({},t),n):t}),Object.keys(t).length===0?null:t}function jm(e,t){return t.map(n=>n(e))}function Ax(e){return!e.validate}function Bm(e){return e.map(t=>Ax(t)?t:n=>t.validate(n))}function Hm(e){if(!e)return null;let t=e.filter(Pm);return t.length==0?null:function(n){return Vm(jm(n,t))}}function Um(e){return e!=null?Hm(Bm(e)):null}function $m(e){if(!e)return null;let t=e.filter(Pm);return t.length==0?null:function(n){let r=jm(n,t).map(Lm);return $s(r).pipe(me(Vm))}}function Gm(e){return e!=null?$m(Bm(e)):null}function bm(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Wm(e){return e._rawValidators}function zm(e){return e._rawAsyncValidators}function Gl(e){return e?Array.isArray(e)?e:[e]:[]}function Yi(e,t){return Array.isArray(e)?e.includes(t):e===t}function Sm(e,t){let n=Gl(t);return Gl(e).forEach(o=>{Yi(n,o)||n.push(o)}),n}function xm(e,t){return Gl(t).filter(n=>!Yi(e,n))}var Qi=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=Um(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Gm(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&&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}},tn=class extends Qi{name;get formDirective(){return null}get path(){return null}},nn=class extends Qi{_parent=null;name=null;valueAccessor=null},Ji=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}},kx={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},K2=K(V({},kx),{"[class.ng-submitted]":"isSubmitted"}),ss=(()=>{class e extends Ji{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(E(nn,2))};static \u0275dir=Q({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&ui("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:[Ie]})}return e})(),qm=(()=>{class e extends Ji{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(E(tn,10))};static \u0275dir=Q({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&ui("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)("ng-submitted",o.isSubmitted)},standalone:!1,features:[Ie]})}return e})();var Tr="VALID",Zi="INVALID",qn="PENDING",Mr="DISABLED",kt=class{},Xi=class extends kt{value;source;constructor(t,n){super(),this.value=t,this.source=n}},Nr=class extends kt{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},Ar=class extends kt{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Zn=class extends kt{status;source;constructor(t,n){super(),this.status=t,this.source=n}},Wl=class extends kt{source;constructor(t){super(),this.source=t}},zl=class extends kt{source;constructor(t){super(),this.source=t}};function Zm(e){return(as(e)?e.validators:e)||null}function Ox(e){return Array.isArray(e)?Um(e):e||null}function Km(e,t){return(as(t)?t.asyncValidators:e)||null}function Rx(e){return Array.isArray(e)?Gm(e):e||null}function as(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function Fx(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new S(1e3,"");if(!r[n])throw new S(1001,"")}function Px(e,t,n){e._forEachChild((r,o)=>{if(n[o]===void 0)throw new S(1002,"")})}var es=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_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}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return ot(this.statusReactive)}set status(t){ot(()=>this.statusReactive.set(t))}_status=_r(()=>this.statusReactive());statusReactive=wr(void 0);get valid(){return this.status===Tr}get invalid(){return this.status===Zi}get pending(){return this.status==qn}get disabled(){return this.status===Mr}get enabled(){return this.status!==Mr}errors;get pristine(){return ot(this.pristineReactive)}set pristine(t){ot(()=>this.pristineReactive.set(t))}_pristine=_r(()=>this.pristineReactive());pristineReactive=wr(!0);get dirty(){return!this.pristine}get touched(){return ot(this.touchedReactive)}set touched(t){ot(()=>this.touchedReactive.set(t))}_touched=_r(()=>this.touchedReactive());touchedReactive=wr(!1);get untouched(){return!this.touched}_events=new Qe;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(Sm(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Sm(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(xm(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(xm(t,this._rawAsyncValidators))}hasValidator(t){return Yi(this._rawValidators,t)}hasAsyncValidator(t){return Yi(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;this._parent&&!t.onlySelf&&this._parent.markAsTouched(K(V({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Ar(!0,r))}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})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new Ar(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(K(V({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Nr(!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})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new Nr(!0,r))}markAsPending(t={}){this.status=qn;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Zn(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(K(V({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Mr,this.errors=null,this._forEachChild(o=>{o.disable(K(V({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Xi(this.value,r)),this._events.next(new Zn(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(K(V({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Tr,this._forEachChild(r=>{r.enable(K(V({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(K(V({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!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===Tr||this.status===qn)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Xi(this.value,n)),this._events.next(new Zn(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(K(V({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Mr:Tr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=qn,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Lm(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??!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&&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 Zn(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new ge,this.statusChanges=new ge}_calculateStatus(){return this._allControlsDisabled()?Mr:this.errors?Zi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(qn)?qn:this._anyControlsHaveStatus(Zi)?Zi:Tr}_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,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new Nr(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new Ar(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){as(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Ox(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Rx(this._rawAsyncValidators)}},ts=class extends es{constructor(t,n,r){super(Zm(n),Km(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){Px(this,!0,t),Object.keys(t).forEach(r=>{Fx(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var ls=new _("CallSetDisabledState",{providedIn:"root",factory:()=>cs}),cs="always";function Ym(e,t){return[...t.path,e]}function ql(e,t,n=cs){Yl(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),Vx(e,t),Bx(e,t),jx(e,t),Lx(e,t)}function Tm(e,t,n=!0){let r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),rs(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function ns(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Lx(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function Yl(e,t){let n=Wm(e);t.validator!==null?e.setValidators(bm(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=zm(e);t.asyncValidator!==null?e.setAsyncValidators(bm(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();ns(t._rawValidators,o),ns(t._rawAsyncValidators,o)}function rs(e,t){let n=!1;if(e!==null){if(t.validator!==null){let o=Wm(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.validator);i.length!==o.length&&(n=!0,e.setValidators(i))}}if(t.asyncValidator!==null){let o=zm(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.asyncValidator);i.length!==o.length&&(n=!0,e.setAsyncValidators(i))}}}let r=()=>{};return ns(t._rawValidators,r),ns(t._rawAsyncValidators,r),n}function Vx(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Qm(e,t)})}function jx(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Qm(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Qm(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Bx(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function Hx(e,t){e==null,Yl(e,t)}function Ux(e,t){return rs(e,t)}function Jm(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function $x(e){return Object.getPrototypeOf(e.constructor)===os}function Gx(e,t){e._syncPendingControls(),t.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function Xm(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Yn?n=i:$x(i)?r=i:o=i}),o||r||n||null}function Wx(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Mm(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Nm(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Or=class extends es{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(Zm(n),Km(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),as(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Nm(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){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),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Mm(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Mm(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){Nm(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 zx=e=>e instanceof Or;var qx={provide:nn,useExisting:Ve(()=>Rr)},Am=Promise.resolve(),Rr=(()=>{class e extends nn{_changeDetectorRef;callSetDisabledState;control=new Or;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new ge;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=Xm(this,i)}ngOnChanges(n){if(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),Jm(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}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(){ql(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Am.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&di(r);Am.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?Ym(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(E(tn,9),E(is,10),E(Kl,10),E(Kn,10),E(Nn,8),E(ls,8))};static \u0275dir=Q({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:[rt([qx]),Ie,bn]})}return e})(),eg=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275dir=Q({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return e})();var tg=new _("");var Zx={provide:tn,useExisting:Ve(()=>Ql)},Ql=(()=>{class e extends tn{callSetDisabledState;get submitted(){return ot(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}_submitted=_r(()=>this._submittedReactive());_submittedReactive=wr(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new ge;constructor(n,r,o){super(),this.callSetDisabledState=o,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(rs(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return ql(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Tm(n.control||null,n,!1),Wx(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this._submittedReactive.set(!0),Gx(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Wl(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new zl(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(Tm(r||null,n),zx(o)&&(ql(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);Hx(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&Ux(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Yl(this.form,this),this._oldForm&&rs(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(r){return new(r||e)(E(is,10),E(Kl,10),E(ls,8))};static \u0275dir=Q({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&q("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[rt([Zx]),Ie,bn]})}return e})();var Kx={provide:nn,useExisting:Ve(()=>Jl)},Jl=(()=>{class e extends nn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(n){}model;update=new ge;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(n,r,o,i,s){super(),this._ngModelWarningConfig=s,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=Xm(this,i)}ngOnChanges(n){this._added||this._setUpControl(),Jm(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return Ym(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(r){return new(r||e)(E(tn,13),E(is,10),E(Kl,10),E(Kn,10),E(tg,8))};static \u0275dir=Q({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[rt([Kx]),Ie,bn]})}return e})(),Yx={provide:Kn,useExisting:Ve(()=>Qn),multi:!0};function ng(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Qx(e){return e.split(":")[0]}var Qn=(()=>{class e extends os{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r=this._getOptionId(n),o=ng(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=Qx(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=xn(e)))(o||e)}})();static \u0275dir=Q({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&q("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[rt([Yx]),Ie]})}return e})(),us=(()=>{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(ng(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||e)(E(nt),E(Et),E(Qn,9))};static \u0275dir=Q({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),Jx={provide:Kn,useExisting:Ve(()=>rg),multi:!0};function km(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Xx(e){return e.split(":")[0]}var rg=(()=>{class e extends os{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.toString())>-1)}}else r=(o,i)=>{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=Xx(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=xn(e)))(o||e)}})();static \u0275dir=Q({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&q("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[rt([Jx]),Ie]})}return e})(),ds=(()=>{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(km(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(km(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)(E(nt),E(Et),E(rg,9))};static \u0275dir=Q({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var eT=(()=>{class e{_validator=Ki;_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):Ki,this._onChange&&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=Q({type:e,features:[bn]})}return e})();var tT={provide:is,useExisting:Ve(()=>Xl),multi:!0};var Xl=(()=>{class e extends eT{required;inputName="required";normalizeInput=di;createValidator=n=>Fm;enabled(n){return n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=xn(e)))(o||e)}})();static \u0275dir=Q({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&&Tl("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[rt([tT]),Ie]})}return e})();var og=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=It({type:e});static \u0275inj=vt({})}return e})();var fs=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:ls,useValue:n.callSetDisabledState??cs}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=It({type:e});static \u0275inj=vt({imports:[og]})}return e})(),ps=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:tg,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:ls,useValue:n.callSetDisabledState??cs}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=It({type:e});static \u0275inj=vt({imports:[og]})}return e})();var Jn=(()=>{class e{constructor(){this.signInForm=new ts({username:new Or({value:"",disabled:!1},[kr.required]),organization:new Or({value:"Hartford HealthCare",disabled:!1},[kr.required])}),this.serverErrorMessageModel={id:"ServerError",messageType:"error",content:"",visible:!1},this.clientErrorMessageModel={id:"ClientError",messageType:"error",content:"Review the form and correct highlighted fields.",visible:!1},this.busy=!1,this.advancedMode=!1,this.serverError=this.serverErrorMessageModel,this.clientError=this.clientErrorMessageModel,this.username="",this.organization="Hartford HealthCare",this.signInButtonText=this.advancedMode?"Generate Token":"Launch Encoder",this.signInHeaderText=this.advancedMode?"Create Token":"Enter Info",this.userNameDisabled=!1}clearClientError(){this.serverError.visible=!1,this.clientError.visible=!1,this.signInForm.markAsPristine()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Pr=class{},ms=class{},He=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
8
- `).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(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),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):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}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 nc=class{encodeKey(t){return sg(t)}encodeValue(t){return sg(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function nT(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 rT=/%(\d[a-f0-9])/gi,oT={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function sg(e){return encodeURIComponent(e).replace(rT,(t,n)=>oT[n]??t)}function hs(e){return`${e}`}var Rt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new nc,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=nT(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(hs):[hs(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(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(hs(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(hs(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)}};var rc=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()}};function iT(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ag(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function lg(e){return typeof Blob<"u"&&e instanceof Blob}function cg(e){return typeof FormData<"u"&&e instanceof FormData}function sT(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Fr=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(iT(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new He,this.context??=new rc,!this.params)this.params=new Rt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),l=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ag(this.body)||lg(this.body)||cg(this.body)||sT(this.body)?this.body:this.body instanceof Rt?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||cg(this.body)?null:lg(this.body)?this.body.type||null:ag(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Rt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.transferCache??this.transferCache,s=t.body!==void 0?t.body:this.body,a=t.withCredentials??this.withCredentials,l=t.reportProgress??this.reportProgress,c=t.headers||this.headers,u=t.params||this.params,d=t.context??this.context;return t.setHeaders!==void 0&&(c=Object.keys(t.setHeaders).reduce((p,f)=>p.set(f,t.setHeaders[f]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((p,f)=>p.set(f,t.setParams[f]),u)),new e(n,r,s,{params:u,headers:c,context:d,reportProgress:l,responseType:o,withCredentials:a,transferCache:i})}},Ft=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}(Ft||{}),Lr=class{headers;status;statusText;url;ok;type;constructor(t,n=200,r="OK"){this.headers=t.headers||new He,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},gs=class e extends Lr{constructor(t={}){super(t)}type=Ft.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})}},Vr=class e extends Lr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Ft.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})}},Ot=class extends Lr{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}},hg=200,aT=204;function tc(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var sc=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Fr)i=n;else{let l;o.headers instanceof He?l=o.headers:l=new He(o.headers);let c;o.params&&(o.params instanceof Rt?c=o.params:c=new Rt({fromObject:o.params})),i=new Fr(n,r,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=fo(i).pipe(Ws(l=>this.handler.handle(l)));if(n instanceof Fr||o.observe==="events")return s;let a=s.pipe(Gs(l=>l instanceof Vr));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(me(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(me(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(me(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return a.pipe(me(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}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 Rt().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,tc(o,r))}post(n,r,o={}){return this.request("POST",n,tc(o,r))}put(n,r,o={}){return this.request("PUT",n,tc(o,r))}static \u0275fac=function(r){return new(r||e)(x(Pr))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),lT=/^\)\]\}',?\n/,cT="X-Request-URL";function ug(e){if(e.url)return e.url;let t=cT.toLocaleLowerCase();return e.headers.get(t)}var uT=(()=>{class e{fetchImpl=C(oc,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=C(Y);handle(n){return new z(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(ic,i=>r.error(new Ot({error:i}))),()=>o.abort()})}doRequest(n,r,o){return Xn(this,null,function*(){let i=this.createRequestInit(n),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,V({signal:r},i)));dT(f),o.next({type:Ft.Sent}),s=yield f}catch(f){o.error(new Ot({error:f,status:f.status??0,statusText:f.statusText,url:n.urlWithParams,headers:f.headers}));return}let a=new He(s.headers),l=s.statusText,c=ug(s)??n.urlWithParams,u=s.status,d=null;if(n.reportProgress&&o.next(new gs({headers:a,status:u,statusText:l,url:c})),s.body){let f=s.headers.get("content-length"),h=[],m=s.body.getReader(),y=0,w,L,F=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Xn(this,null,function*(){for(;;){let{done:Z,value:ee}=yield m.read();if(Z)break;if(h.push(ee),y+=ee.length,n.reportProgress){L=n.responseType==="text"?(L??"")+(w??=new TextDecoder).decode(ee,{stream:!0}):void 0;let Ye=()=>o.next({type:Ft.DownloadProgress,total:f?+f:void 0,loaded:y,partialText:L});F?F.run(Ye):Ye()}}}));let W=this.concatChunks(h,y);try{let Z=s.headers.get("Content-Type")??"";d=this.parseBody(n,W,Z)}catch(Z){o.error(new Ot({error:Z,headers:new He(s.headers),status:s.status,statusText:s.statusText,url:ug(s)??n.urlWithParams}));return}}u===0&&(u=d?hg:0),u>=200&&u<300?(o.next(new Vr({body:d,headers:a,status:u,statusText:l,url:c})),o.complete()):o.error(new Ot({error:d,headers:a,status:u,statusText:l,url:c}))})}parseBody(n,r,o){switch(n.responseType){case"json":let i=new TextDecoder().decode(r).replace(lT,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(r["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}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=k({token:e,factory:e.\u0275fac})}return e})(),oc=class{};function ic(){}function dT(e){e.then(ic,ic)}function mg(e,t){return t(e)}function fT(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function pT(e,t,n){return(r,o)=>Yo(n,()=>t(r,i=>e(i,o)))}var hT=new _(""),ac=new _(""),mT=new _(""),gg=new _("",{providedIn:"root",factory:()=>!0});function gT(){let e=null;return(t,n)=>{e===null&&(e=(C(hT,{optional:!0})??[]).reduceRight(fT,mg));let r=C(Yt);if(C(gg)){let i=r.add();return e(t,n).pipe(ho(()=>r.remove(i)))}else return e(t,n)}}var dg=(()=>{class e extends Pr{backend;injector;chain=null;pendingTasks=C(Yt);contributeToStability=C(gg);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(ac),...this.injector.get(mT,[])]));this.chain=r.reduceRight((o,i)=>pT(o,i,this.injector),mg)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(ho(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(x(ms),x(Ge))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})();var yT=/^\)\]\}',?\n/;function vT(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var fg=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new S(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?jt(r.\u0275loadImpl()):fo(null)).pipe(zs(()=>new z(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((m,y)=>s.setRequestHeader(m,y.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let m=n.detectContentTypeHeader();m!==null&&s.setRequestHeader("Content-Type",m)}if(n.responseType){let m=n.responseType.toLowerCase();s.responseType=m!=="json"?m:"text"}let a=n.serializeBody(),l=null,c=()=>{if(l!==null)return l;let m=s.statusText||"OK",y=new He(s.getAllResponseHeaders()),w=vT(s)||n.url;return l=new gs({headers:y,status:s.status,statusText:m,url:w}),l},u=()=>{let{headers:m,status:y,statusText:w,url:L}=c(),F=null;y!==aT&&(F=typeof s.response>"u"?s.responseText:s.response),y===0&&(y=F?hg:0);let W=y>=200&&y<300;if(n.responseType==="json"&&typeof F=="string"){let Z=F;F=F.replace(yT,"");try{F=F!==""?JSON.parse(F):null}catch(ee){F=Z,W&&(W=!1,F={error:ee,text:F})}}W?(i.next(new Vr({body:F,headers:m,status:y,statusText:w,url:L||void 0})),i.complete()):i.error(new Ot({error:F,headers:m,status:y,statusText:w,url:L||void 0}))},d=m=>{let{url:y}=c(),w=new Ot({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});i.error(w)},p=!1,f=m=>{p||(i.next(c()),p=!0);let y={type:Ft.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),n.responseType==="text"&&s.responseText&&(y.partialText=s.responseText),i.next(y)},h=m=>{let y={type:Ft.UploadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),i.next(y)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),a!==null&&s.upload&&s.upload.addEventListener("progress",h)),s.send(a),i.next({type:Ft.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",h)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(x(An))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),yg=new _(""),DT="XSRF-TOKEN",wT=new _("",{providedIn:"root",factory:()=>DT}),ET="X-XSRF-TOKEN",IT=new _("",{providedIn:"root",factory:()=>ET}),ys=class{},_T=(()=>{class e{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=pi(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(x(Oe),x(wt),x(wT))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})();function CT(e,t){let n=e.url.toLowerCase();if(!C(yg)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=C(ys).getToken(),o=C(IT);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var vg=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}(vg||{});function bT(e,t){return{\u0275kind:e,\u0275providers:t}}function Dg(...e){let t=[sc,fg,dg,{provide:Pr,useExisting:dg},{provide:ms,useFactory:()=>C(uT,{optional:!0})??C(fg)},{provide:ac,useValue:CT,multi:!0},{provide:yg,useValue:!0},{provide:ys,useClass:_T}];for(let n of e)t.push(...n.\u0275providers);return Ja(t)}var pg=new _("");function wg(){return bT(vg.LegacyInterceptors,[{provide:pg,useFactory:gT},{provide:ac,useExisting:pg,multi:!0}])}var vs=(()=>{class e{constructor(){}wrapAsArray(n){return n.charAt(0)!=="["&&(n="["+n),n.charAt(n.length)!=="]"&&(n=n+"]"),n}removeBrackets(n){return n.charAt(0)==="["&&(n=n.substring(1)),n.charAt(n.length-1)==="]"&&(n=n.substring(0,n.length-1)),n}isJson(n){try{return JSON.parse(n)&&n}catch{return!1}}getCurrentDate(){let n=new Date,r=n.getDate(),o=n.getMonth()+1,i=n.getFullYear();return o+"/"+r+"/"+i}getBirthDateISO(){let n=new Date;return n.setFullYear(n.getFullYear()-30),n.toISOString()}getCurrentDateISO(){return new Date().toISOString()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ds=(()=>{class e{constructor(n,r,o){this.signInService=n,this.stringService=r,this.http=o,this.kcSdk=window.kcSdk,this.sessionTypes=[this.kcSdk.sessionTypes.DX,this.kcSdk.sessionTypes.CMPX,this.kcSdk.sessionTypes.I10CM,this.kcSdk.sessionTypes.ICD10PCS,this.kcSdk.sessionTypes.HCPCS],this.i9I10States=[this.kcSdk.i9I10States.I9,this.kcSdk.i9I10States.I10],this.patientTypes=[this.kcSdk.patientType.INPATIENT,this.kcSdk.patientType.OUTPATIENT,this.kcSdk.patientType.IRF,this.kcSdk.patientType.CAH,this.kcSdk.patientType.SNF],this.selectedPatientType=this.patientTypes[0],this.selectedI9I10State=this.i9I10States[1],this.selectedSessionType=this.sessionTypes[0],this.selectedEncoderTab=this.kcSdk.encoderTabs.LOGIC,this.encoderPhraseCode="",this.WEB_KC="web/KC.html",this.WEB_ENCODER="web/Encoder.html",this.exampleUrl="http://www.google.com",this.exampleDemographicsData={sex:"M",sendingFacility:"001",birthDate:this.stringService.getBirthDateISO(),admitDate:this.stringService.getCurrentDateISO(),dischargeDate:this.stringService.getCurrentDateISO(),patientType:this.kcSdk.patientType.INPATIENT,financialClass:"09"},this.encoderDemographics=JSON.stringify(this.exampleDemographicsData,null,2),this.encoderTabs=[this.kcSdk.encoderTabs.LOGIC,this.kcSdk.encoderTabs.INDEX,this.kcSdk.encoderTabs.TABULAR],this.clientExampleToken="",this.selectedPod="",this.outputJson="",this.sdkKcIsListening=!1,this.sdkEncoderIsListening=!1,this.version=this.kcSdk.version,this.exampleAuthToken={access_token:""},this.closeAllKCWindows=this.kcSdk.closeAllKCWindows,this.workflow=this.kcSdk.workflow,this.selectedWorkflowApi=qi(this.kcSdk.workflow),this.workflowInput=X.url+this.WEB_KC,this.kcWindowName=this.kcSdk.kcWindow.name,this.kcSentinelName=this.kcSdk.kcWindow.kcSentinelName,this.encoderWindowName=this.kcSdk.encoderWindow.name,this.apisForAllWindows=[{name:"launch KC",fn:this.kcSdk.kcWindow.launch,windowName:this.kcWindowName},{name:"launch KC Sentinel",fn:this.kcSdk.kcWindow.openKcSentinel,windowName:this.kcSentinelName},{name:"launch Encoder",fn:this.kcSdk.encoderWindow.launch,windowName:this.encoderWindowName},{name:"loadPatientRecord",fn:this.kcSdk.kcWindow.loadPatientRecord,windowName:this.kcWindowName},{name:"assignConfig",fn:this.kcSdk.kcWindow.assignConfig,windowName:this.kcWindowName},{name:"setAuthToken",fn:this.kcSdk.kcWindow.setAuthToken,windowName:this.kcWindowName},{name:"setDemographics",fn:this.kcSdk.kcWindow.setDemographics,windowName:this.kcWindowName},{name:"setAuthToken",fn:this.kcSdk.encoderWindow.setAuthToken,windowName:this.encoderWindowName},{name:"setDemographics",fn:this.kcSdk.encoderWindow.setDemographics,windowName:this.encoderWindowName},{name:"addCodes",fn:this.kcSdk.kcWindow.addCodes,windowName:this.kcWindowName},{name:"clearPatientRecord",fn:this.kcSdk.kcWindow.clearPatientRecord,windowName:this.kcWindowName},{name:"clearSelectedRow",fn:this.kcSdk.kcWindow.clearSelectedRow,windowName:this.kcWindowName},{name:"closeAllKCWindowsExceptEncoder",fn:this.kcSdk.kcWindow.closeAllKCWindowsExceptEncoder,windowName:this.kcWindowName},{name:"deleteCodes",fn:this.kcSdk.kcWindow.deleteCodes,windowName:this.kcWindowName},{name:"getPayerList",fn:this.kcSdk.kcWindow.getPayerList,windowName:this.kcWindowName},{name:"getRowSpecificInfo",fn:this.kcSdk.kcWindow.getRowSpecificInfo,windowName:this.kcWindowName},{name:"hasCriticalEdits",fn:this.kcSdk.kcWindow.hasCriticalEdits,windowName:this.kcWindowName},{name:"hasEdits",fn:this.kcSdk.kcWindow.hasEdits,windowName:this.kcWindowName},{name:"launchCodeSummaryReport",fn:this.kcSdk.kcWindow.launchCodeSummaryReport,windowName:this.kcWindowName},{name:"launchEdits",fn:this.kcSdk.kcWindow.launchEdits,windowName:this.kcWindowName},{name:"launchIndex",fn:this.kcSdk.kcWindow.launchIndex,windowName:this.kcWindowName},{name:"launchLogic",fn:this.kcSdk.kcWindow.launchLogic,windowName:this.kcWindowName},{name:"launchTabular",fn:this.kcSdk.kcWindow.launchTabular,windowName:this.kcWindowName},{name:"launchFacilityLookup",fn:this.kcSdk.kcWindow.launchFacilityLookup,windowName:this.kcWindowName},{name:"launchIndex",fn:this.kcSdk.encoderWindow.launchIndex,windowName:this.encoderWindowName},{name:"launchLogic",fn:this.kcSdk.encoderWindow.launchLogic,windowName:this.encoderWindowName},{name:"launchTabular",fn:this.kcSdk.encoderWindow.launchTabular,windowName:this.encoderWindowName},{name:"logout",fn:this.kcSdk.kcWindow.logout,windowName:this.kcWindowName},{name:"resetApplication",fn:this.kcSdk.kcWindow.resetApplication,windowName:this.kcWindowName},{name:"savePatientRecord",fn:this.kcSdk.kcWindow.savePatientRecord,windowName:this.kcWindowName},{name:"updateCodes",fn:this.kcSdk.kcWindow.updateCodes,windowName:this.kcWindowName},{name:"updateDemographics",fn:this.kcSdk.kcWindow.updateDemographics,windowName:this.kcWindowName},{name:"openEncoder",fn:this.kcSdk.kcWindow.openEncoder,windowName:this.kcWindowName}],this.availableApis=Bl(this.apisForAllWindows),this.availableApiSelected=this.availableApis[0],this.workflowWindow=this.kcWindowName,this.runWorkflow=this.kcSdk.processWorkflow,this.doSigninSubmit=()=>{setTimeout(()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}if(document.getElementById("kc-sdk-advanced-mode").checked)this.generateToken();else{let s={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(s).subscribe({next:()=>{this.launchEncoder()},error:a=>{this.signInService.serverError.content=a}})}this.signInService.clearClientError()})},this.generateToken=()=>{if(this.signInService.signInForm.valid){let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(i).subscribe({next:()=>{this.signInService.clearClientError(),this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!1,this.signInService.signInForm.markAsPristine(),this.clientExampleToken=this.exampleAuthToken.access_token},error:s=>{this.signInService.serverError.content=s}})}else this.signInService.serverError.visible=!1,this.signInService.clientError.content="Review the form and correct highlighted fields.",this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine()},this.launchEncoder=()=>{let i={sessionType:this.selectedSessionType,encoderTab:this.selectedEncoderTab,codePhrase:this.encoderPhraseCode},s=X.url+this.WEB_ENCODER,a=this.encoderDemographics,l=this.selectedI9I10State;this.clientExampleToken&&(this.exampleAuthToken.access_token=this.clientExampleToken),this.kcSdk.encoderWindow.launch(s,this.exampleAuthToken,l,a,i)},this.setAuthToken=i=>new z(s=>{let a={headers:new He({"Content-Type":"application/json"})},l={username:btoa(i.username),organization:i.organizationId,clientId:X.appName};this.http.post(X.tokenServer+"orgLogin",l,a).subscribe({next:c=>{c&&(this.exampleAuthToken.access_token=c.token,this.logOutput("auth","token generated - userName:'"+i.username+"' org: '"+i.organizationId+"'")),s.next()},error:c=>{c.status===401&&(this.exampleAuthToken.access_token="",this.signInService.serverError.visible=!1,this.signInService.clientError.content="Failed to authenticate user.",this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine());let u=c&&c.message?c.message:"undefined error message";this.logOutput("auth","token exception: "+u),s.error(u)}})}),this.onStateChange=()=>{this.filterSessionTypes(this.selectedI9I10State)},this.onPatientTypeChange=()=>{try{let i=JSON.parse(this.encoderDemographics);i.patientType=this.selectedPatientType,this.encoderDemographics=JSON.stringify(i,null,2)}catch{this.exampleDemographicsData.patientType=this.selectedPatientType,this.encoderDemographics=JSON.stringify(this.exampleDemographicsData,null,2)}},this.launchKc=()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}this.signInService.clearClientError();let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(i).subscribe({next:s=>{let a=X.url+this.WEB_KC,l=this.encoderDemographics,c=this.selectedI9I10State;this.clientExampleToken&&(this.exampleAuthToken.access_token=this.clientExampleToken),this.kcSdk.kcWindow.launch(a,this.exampleAuthToken,c,l)},error:s=>{this.signInService.serverError.content=s}})},this.launchReferences=()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}this.signInService.clearClientError();let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(i).subscribe({next:()=>{this.kcSdk.launchReferences(this.encoderPhraseCode,this.selectedSessionType.name,this.exampleAuthToken.access_token)},error:s=>{this.signInService.serverError.content=s}})},this.selectedSessionType=this.sessionTypes[0]}filterSessionTypes(n){this.sessionTypes.length=0;for(let r in this.kcSdk.sessionTypes){let o=this.kcSdk.sessionTypes[r];o.state.indexOf(n.value)>-1&&this.sessionTypes.push(o)}this.selectedSessionType=this.sessionTypes[0]}logOutput(n,r){let o={event:n,response:this.stringService.isJson(r)?JSON.parse(r):r};o.event==="editGroupPriceCompleted"&&(o.response=[]),this.outputJson=this.outputJson?[this.stringService.removeBrackets(this.outputJson),JSON.stringify(o,null,2)].join(`,
8
+ `).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(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),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):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}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 nc=class{encodeKey(t){return sg(t)}encodeValue(t){return sg(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function nT(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 rT=/%(\d[a-f0-9])/gi,oT={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function sg(e){return encodeURIComponent(e).replace(rT,(t,n)=>oT[n]??t)}function hs(e){return`${e}`}var Rt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new nc,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=nT(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(hs):[hs(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(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(hs(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(hs(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)}};var rc=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()}};function iT(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ag(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function lg(e){return typeof Blob<"u"&&e instanceof Blob}function cg(e){return typeof FormData<"u"&&e instanceof FormData}function sT(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Fr=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(iT(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new He,this.context??=new rc,!this.params)this.params=new Rt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),l=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ag(this.body)||lg(this.body)||cg(this.body)||sT(this.body)?this.body:this.body instanceof Rt?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||cg(this.body)?null:lg(this.body)?this.body.type||null:ag(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Rt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.transferCache??this.transferCache,s=t.body!==void 0?t.body:this.body,a=t.withCredentials??this.withCredentials,l=t.reportProgress??this.reportProgress,c=t.headers||this.headers,u=t.params||this.params,d=t.context??this.context;return t.setHeaders!==void 0&&(c=Object.keys(t.setHeaders).reduce((p,f)=>p.set(f,t.setHeaders[f]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((p,f)=>p.set(f,t.setParams[f]),u)),new e(n,r,s,{params:u,headers:c,context:d,reportProgress:l,responseType:o,withCredentials:a,transferCache:i})}},Ft=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}(Ft||{}),Lr=class{headers;status;statusText;url;ok;type;constructor(t,n=200,r="OK"){this.headers=t.headers||new He,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},gs=class e extends Lr{constructor(t={}){super(t)}type=Ft.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})}},Vr=class e extends Lr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Ft.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})}},Ot=class extends Lr{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}},hg=200,aT=204;function tc(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var sc=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Fr)i=n;else{let l;o.headers instanceof He?l=o.headers:l=new He(o.headers);let c;o.params&&(o.params instanceof Rt?c=o.params:c=new Rt({fromObject:o.params})),i=new Fr(n,r,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=fo(i).pipe(Ws(l=>this.handler.handle(l)));if(n instanceof Fr||o.observe==="events")return s;let a=s.pipe(Gs(l=>l instanceof Vr));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(me(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(me(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(me(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return a.pipe(me(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}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 Rt().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,tc(o,r))}post(n,r,o={}){return this.request("POST",n,tc(o,r))}put(n,r,o={}){return this.request("PUT",n,tc(o,r))}static \u0275fac=function(r){return new(r||e)(x(Pr))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),lT=/^\)\]\}',?\n/,cT="X-Request-URL";function ug(e){if(e.url)return e.url;let t=cT.toLocaleLowerCase();return e.headers.get(t)}var uT=(()=>{class e{fetchImpl=C(oc,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=C(Y);handle(n){return new z(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(ic,i=>r.error(new Ot({error:i}))),()=>o.abort()})}doRequest(n,r,o){return Xn(this,null,function*(){let i=this.createRequestInit(n),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,V({signal:r},i)));dT(f),o.next({type:Ft.Sent}),s=yield f}catch(f){o.error(new Ot({error:f,status:f.status??0,statusText:f.statusText,url:n.urlWithParams,headers:f.headers}));return}let a=new He(s.headers),l=s.statusText,c=ug(s)??n.urlWithParams,u=s.status,d=null;if(n.reportProgress&&o.next(new gs({headers:a,status:u,statusText:l,url:c})),s.body){let f=s.headers.get("content-length"),h=[],m=s.body.getReader(),y=0,w,L,F=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Xn(this,null,function*(){for(;;){let{done:Z,value:ee}=yield m.read();if(Z)break;if(h.push(ee),y+=ee.length,n.reportProgress){L=n.responseType==="text"?(L??"")+(w??=new TextDecoder).decode(ee,{stream:!0}):void 0;let Ye=()=>o.next({type:Ft.DownloadProgress,total:f?+f:void 0,loaded:y,partialText:L});F?F.run(Ye):Ye()}}}));let W=this.concatChunks(h,y);try{let Z=s.headers.get("Content-Type")??"";d=this.parseBody(n,W,Z)}catch(Z){o.error(new Ot({error:Z,headers:new He(s.headers),status:s.status,statusText:s.statusText,url:ug(s)??n.urlWithParams}));return}}u===0&&(u=d?hg:0),u>=200&&u<300?(o.next(new Vr({body:d,headers:a,status:u,statusText:l,url:c})),o.complete()):o.error(new Ot({error:d,headers:a,status:u,statusText:l,url:c}))})}parseBody(n,r,o){switch(n.responseType){case"json":let i=new TextDecoder().decode(r).replace(lT,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(r["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}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=k({token:e,factory:e.\u0275fac})}return e})(),oc=class{};function ic(){}function dT(e){e.then(ic,ic)}function mg(e,t){return t(e)}function fT(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function pT(e,t,n){return(r,o)=>Yo(n,()=>t(r,i=>e(i,o)))}var hT=new _(""),ac=new _(""),mT=new _(""),gg=new _("",{providedIn:"root",factory:()=>!0});function gT(){let e=null;return(t,n)=>{e===null&&(e=(C(hT,{optional:!0})??[]).reduceRight(fT,mg));let r=C(Yt);if(C(gg)){let i=r.add();return e(t,n).pipe(ho(()=>r.remove(i)))}else return e(t,n)}}var dg=(()=>{class e extends Pr{backend;injector;chain=null;pendingTasks=C(Yt);contributeToStability=C(gg);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(ac),...this.injector.get(mT,[])]));this.chain=r.reduceRight((o,i)=>pT(o,i,this.injector),mg)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(ho(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(x(ms),x(Ge))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})();var yT=/^\)\]\}',?\n/;function vT(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var fg=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new S(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?jt(r.\u0275loadImpl()):fo(null)).pipe(zs(()=>new z(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((m,y)=>s.setRequestHeader(m,y.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let m=n.detectContentTypeHeader();m!==null&&s.setRequestHeader("Content-Type",m)}if(n.responseType){let m=n.responseType.toLowerCase();s.responseType=m!=="json"?m:"text"}let a=n.serializeBody(),l=null,c=()=>{if(l!==null)return l;let m=s.statusText||"OK",y=new He(s.getAllResponseHeaders()),w=vT(s)||n.url;return l=new gs({headers:y,status:s.status,statusText:m,url:w}),l},u=()=>{let{headers:m,status:y,statusText:w,url:L}=c(),F=null;y!==aT&&(F=typeof s.response>"u"?s.responseText:s.response),y===0&&(y=F?hg:0);let W=y>=200&&y<300;if(n.responseType==="json"&&typeof F=="string"){let Z=F;F=F.replace(yT,"");try{F=F!==""?JSON.parse(F):null}catch(ee){F=Z,W&&(W=!1,F={error:ee,text:F})}}W?(i.next(new Vr({body:F,headers:m,status:y,statusText:w,url:L||void 0})),i.complete()):i.error(new Ot({error:F,headers:m,status:y,statusText:w,url:L||void 0}))},d=m=>{let{url:y}=c(),w=new Ot({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});i.error(w)},p=!1,f=m=>{p||(i.next(c()),p=!0);let y={type:Ft.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),n.responseType==="text"&&s.responseText&&(y.partialText=s.responseText),i.next(y)},h=m=>{let y={type:Ft.UploadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),i.next(y)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),a!==null&&s.upload&&s.upload.addEventListener("progress",h)),s.send(a),i.next({type:Ft.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",h)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(x(An))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),yg=new _(""),DT="XSRF-TOKEN",wT=new _("",{providedIn:"root",factory:()=>DT}),ET="X-XSRF-TOKEN",IT=new _("",{providedIn:"root",factory:()=>ET}),ys=class{},_T=(()=>{class e{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=pi(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(x(Oe),x(wt),x(wT))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})();function CT(e,t){let n=e.url.toLowerCase();if(!C(yg)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=C(ys).getToken(),o=C(IT);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var vg=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}(vg||{});function bT(e,t){return{\u0275kind:e,\u0275providers:t}}function Dg(...e){let t=[sc,fg,dg,{provide:Pr,useExisting:dg},{provide:ms,useFactory:()=>C(uT,{optional:!0})??C(fg)},{provide:ac,useValue:CT,multi:!0},{provide:yg,useValue:!0},{provide:ys,useClass:_T}];for(let n of e)t.push(...n.\u0275providers);return Ja(t)}var pg=new _("");function wg(){return bT(vg.LegacyInterceptors,[{provide:pg,useFactory:gT},{provide:ac,useExisting:pg,multi:!0}])}var vs=(()=>{class e{constructor(){}wrapAsArray(n){return n.charAt(0)!=="["&&(n="["+n),n.charAt(n.length)!=="]"&&(n=n+"]"),n}removeBrackets(n){return n.charAt(0)==="["&&(n=n.substring(1)),n.charAt(n.length-1)==="]"&&(n=n.substring(0,n.length-1)),n}isJson(n){try{return JSON.parse(n)&&n}catch{return!1}}getCurrentDate(){let n=new Date,r=n.getDate(),o=n.getMonth()+1,i=n.getFullYear();return o+"/"+r+"/"+i}getBirthDateISO(){let n=new Date;return n.setFullYear(n.getFullYear()-30),n.toISOString()}getCurrentDateISO(){return new Date().toISOString()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ds=(()=>{class e{constructor(n,r,o){this.signInService=n,this.stringService=r,this.http=o,this.kcSdk=window.kcSdk,this.sessionTypes=[this.kcSdk.sessionTypes.DX,this.kcSdk.sessionTypes.CMPX,this.kcSdk.sessionTypes.I10CM,this.kcSdk.sessionTypes.ICD10PCS,this.kcSdk.sessionTypes.HCPCS],this.i9I10States=[this.kcSdk.i9I10States.I9,this.kcSdk.i9I10States.I10],this.patientTypes=[this.kcSdk.patientType.INPATIENT,this.kcSdk.patientType.OUTPATIENT,this.kcSdk.patientType.IRF,this.kcSdk.patientType.CAH,this.kcSdk.patientType.SNF],this.selectedPatientType=this.patientTypes[0],this.selectedI9I10State=this.i9I10States[1],this.selectedSessionType=this.sessionTypes[0],this.selectedEncoderTab=this.kcSdk.encoderTabs.LOGIC,this.encoderPhraseCode="",this.WEB_KC="web/KC.html",this.WEB_ENCODER="web/Encoder.html",this.exampleUrl="http://www.google.com",this.exampleDemographicsData={sex:"M",sendingFacility:"001",birthDate:this.stringService.getBirthDateISO(),admitDate:this.stringService.getCurrentDateISO(),dischargeDate:this.stringService.getCurrentDateISO(),patientType:this.kcSdk.patientType.INPATIENT,financialClass:"09"},this.encoderDemographics=JSON.stringify(this.exampleDemographicsData,null,2),this.encoderTabs=[this.kcSdk.encoderTabs.LOGIC,this.kcSdk.encoderTabs.INDEX,this.kcSdk.encoderTabs.TABULAR],this.clientExampleToken="",this.selectedPod="",this.outputJson="",this.sdkKcIsListening=!1,this.sdkEncoderIsListening=!1,this.version=this.kcSdk.version,this.exampleAuthToken={access_token:""},this.closeAllKCWindows=this.kcSdk.closeAllKCWindows,this.workflow=this.kcSdk.workflow,this.selectedWorkflowApi=qi(this.kcSdk.workflow),this.workflowInput=X.url+this.WEB_KC,this.kcWindowName=this.kcSdk.kcWindow.name,this.kcSentinelName=this.kcSdk.kcWindow.kcSentinelName,this.encoderWindowName=this.kcSdk.encoderWindow.name,this.apisForAllWindows=[{name:"launch KC",fn:this.kcSdk.kcWindow.launch,windowName:this.kcWindowName},{name:"launch KC Sentinel",fn:this.kcSdk.kcWindow.openKcSentinel,windowName:this.kcWindowName},{name:"launch Encoder",fn:this.kcSdk.encoderWindow.launch,windowName:this.encoderWindowName},{name:"loadPatientRecord",fn:this.kcSdk.kcWindow.loadPatientRecord,windowName:this.kcWindowName},{name:"assignConfig",fn:this.kcSdk.kcWindow.assignConfig,windowName:this.kcWindowName},{name:"setAuthToken",fn:this.kcSdk.kcWindow.setAuthToken,windowName:this.kcWindowName},{name:"setDemographics",fn:this.kcSdk.kcWindow.setDemographics,windowName:this.kcWindowName},{name:"setAuthToken",fn:this.kcSdk.encoderWindow.setAuthToken,windowName:this.encoderWindowName},{name:"setDemographics",fn:this.kcSdk.encoderWindow.setDemographics,windowName:this.encoderWindowName},{name:"addCodes",fn:this.kcSdk.kcWindow.addCodes,windowName:this.kcWindowName},{name:"clearPatientRecord",fn:this.kcSdk.kcWindow.clearPatientRecord,windowName:this.kcWindowName},{name:"clearSelectedRow",fn:this.kcSdk.kcWindow.clearSelectedRow,windowName:this.kcWindowName},{name:"closeAllKCWindowsExceptEncoder",fn:this.kcSdk.kcWindow.closeAllKCWindowsExceptEncoder,windowName:this.kcWindowName},{name:"deleteCodes",fn:this.kcSdk.kcWindow.deleteCodes,windowName:this.kcWindowName},{name:"getPayerList",fn:this.kcSdk.kcWindow.getPayerList,windowName:this.kcWindowName},{name:"getRowSpecificInfo",fn:this.kcSdk.kcWindow.getRowSpecificInfo,windowName:this.kcWindowName},{name:"hasCriticalEdits",fn:this.kcSdk.kcWindow.hasCriticalEdits,windowName:this.kcWindowName},{name:"hasEdits",fn:this.kcSdk.kcWindow.hasEdits,windowName:this.kcWindowName},{name:"launchCodeSummaryReport",fn:this.kcSdk.kcWindow.launchCodeSummaryReport,windowName:this.kcWindowName},{name:"launchEdits",fn:this.kcSdk.kcWindow.launchEdits,windowName:this.kcWindowName},{name:"launchIndex",fn:this.kcSdk.kcWindow.launchIndex,windowName:this.kcWindowName},{name:"launchLogic",fn:this.kcSdk.kcWindow.launchLogic,windowName:this.kcWindowName},{name:"launchTabular",fn:this.kcSdk.kcWindow.launchTabular,windowName:this.kcWindowName},{name:"launchFacilityLookup",fn:this.kcSdk.kcWindow.launchFacilityLookup,windowName:this.kcWindowName},{name:"launchIndex",fn:this.kcSdk.encoderWindow.launchIndex,windowName:this.encoderWindowName},{name:"launchLogic",fn:this.kcSdk.encoderWindow.launchLogic,windowName:this.encoderWindowName},{name:"launchTabular",fn:this.kcSdk.encoderWindow.launchTabular,windowName:this.encoderWindowName},{name:"logout",fn:this.kcSdk.kcWindow.logout,windowName:this.kcWindowName},{name:"resetApplication",fn:this.kcSdk.kcWindow.resetApplication,windowName:this.kcWindowName},{name:"savePatientRecord",fn:this.kcSdk.kcWindow.savePatientRecord,windowName:this.kcWindowName},{name:"updateCodes",fn:this.kcSdk.kcWindow.updateCodes,windowName:this.kcWindowName},{name:"updateDemographics",fn:this.kcSdk.kcWindow.updateDemographics,windowName:this.kcWindowName},{name:"openEncoder",fn:this.kcSdk.kcWindow.openEncoder,windowName:this.kcWindowName}],this.availableApis=Bl(this.apisForAllWindows),this.availableApiSelected=this.availableApis[0],this.workflowWindow=this.kcWindowName,this.runWorkflow=this.kcSdk.processWorkflow,this.doSigninSubmit=()=>{setTimeout(()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}if(document.getElementById("kc-sdk-advanced-mode").checked)this.generateToken();else{let s={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(s).subscribe({next:()=>{this.launchEncoder()},error:a=>{this.signInService.serverError.content=a}})}this.signInService.clearClientError()})},this.generateToken=()=>{if(this.signInService.signInForm.valid){let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(i).subscribe({next:()=>{this.signInService.clearClientError(),this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!1,this.signInService.signInForm.markAsPristine(),this.clientExampleToken=this.exampleAuthToken.access_token},error:s=>{this.signInService.serverError.content=s}})}else this.signInService.serverError.visible=!1,this.signInService.clientError.content="Review the form and correct highlighted fields.",this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine()},this.launchEncoder=()=>{let i={sessionType:this.selectedSessionType,encoderTab:this.selectedEncoderTab,codePhrase:this.encoderPhraseCode},s=X.url+this.WEB_ENCODER,a=this.encoderDemographics,l=this.selectedI9I10State;this.clientExampleToken&&(this.exampleAuthToken.access_token=this.clientExampleToken),this.kcSdk.encoderWindow.launch(s,this.exampleAuthToken,l,a,i)},this.setAuthToken=i=>new z(s=>{let a={headers:new He({"Content-Type":"application/json"})},l={username:btoa(i.username),organization:i.organizationId,clientId:X.appName};this.http.post(X.tokenServer+"orgLogin",l,a).subscribe({next:c=>{c&&(this.exampleAuthToken.access_token=c.token,this.logOutput("auth","token generated - userName:'"+i.username+"' org: '"+i.organizationId+"'")),s.next()},error:c=>{c.status===401&&(this.exampleAuthToken.access_token="",this.signInService.serverError.visible=!1,this.signInService.clientError.content="Failed to authenticate user.",this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine());let u=c&&c.message?c.message:"undefined error message";this.logOutput("auth","token exception: "+u),s.error(u)}})}),this.onStateChange=()=>{this.filterSessionTypes(this.selectedI9I10State)},this.onPatientTypeChange=()=>{try{let i=JSON.parse(this.encoderDemographics);i.patientType=this.selectedPatientType,this.encoderDemographics=JSON.stringify(i,null,2)}catch{this.exampleDemographicsData.patientType=this.selectedPatientType,this.encoderDemographics=JSON.stringify(this.exampleDemographicsData,null,2)}},this.launchKc=()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}this.signInService.clearClientError();let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(i).subscribe({next:s=>{let a=X.url+this.WEB_KC,l=this.encoderDemographics,c=this.selectedI9I10State;this.clientExampleToken&&(this.exampleAuthToken.access_token=this.clientExampleToken),this.kcSdk.kcWindow.launch(a,this.exampleAuthToken,c,l)},error:s=>{this.signInService.serverError.content=s}})},this.launchReferences=()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}this.signInService.clearClientError();let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(i).subscribe({next:()=>{this.kcSdk.launchReferences(this.encoderPhraseCode,this.selectedSessionType.name,this.exampleAuthToken.access_token)},error:s=>{this.signInService.serverError.content=s}})},this.selectedSessionType=this.sessionTypes[0]}filterSessionTypes(n){this.sessionTypes.length=0;for(let r in this.kcSdk.sessionTypes){let o=this.kcSdk.sessionTypes[r];o.state.indexOf(n.value)>-1&&this.sessionTypes.push(o)}this.selectedSessionType=this.sessionTypes[0]}logOutput(n,r){let o={event:n,response:this.stringService.isJson(r)?JSON.parse(r):r};o.event==="editGroupPriceCompleted"&&(o.response=[]),this.outputJson=this.outputJson?[this.stringService.removeBrackets(this.outputJson),JSON.stringify(o,null,2)].join(`,
9
9
  `):JSON.stringify(o,null,2),this.outputJson=this.stringService.wrapAsArray(this.outputJson),this.scrollLogToBottom()}scrollLogToBottom(){setTimeout(()=>{let n=document.getElementById("kc-sdk-input");n&&(n.scrollTop=n.scrollHeight)})}static{this.\u0275fac=function(r){return new(r||e)(x(Jn),x(vs),x(sc))}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ws=e=>({"tk-rfrm-has-error":e}),_g=(e,t)=>({"tk-form-field-error":e,"":t});function xT(e,t){if(e&1&&(v(0,"div",27),O(1),g()),e&2){let n=P();D(),Tn(" ",n.SignInService.clientError.content," ")}}function TT(e,t){if(e&1&&(v(0,"div",27),O(1),g()),e&2){let n=P();D(),Tn(" ",n.SignInService.serverError.content," ")}}function MT(e,t){e&1&&(v(0,"span",28),O(1," User name is required. "),g())}function NT(e,t){e&1&&(v(0,"span",29),O(1," Organization is required. "),g())}function AT(e,t){if(e&1){let n=Ae();v(0,"button",30),q("click",function(){U(n);let o=P();return $(o.SdkTesterService.launchKc())}),O(1," Launch KC "),g()}if(e&2){let n=P();b("disabled",n.SignInService.busy)}}function kT(e,t){if(e&1){let n=Ae();v(0,"button",31),q("click",function(){U(n);let o=P();return $(o.SdkTesterService.launchReferences())}),O(1," Launch References "),g()}if(e&2){let n=P();b("disabled",n.SignInService.busy)}}function OT(e,t){if(e&1){let n=Ae();v(0,"tr")(1,"td",7)(2,"label",32),O(3,"PhraseCode:"),g(),v(4,"input",33),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.encoderPhraseCode,o)||(i.SdkTesterService.encoderPhraseCode=o),$(o)}),g()()()}if(e&2){let n=P();D(4),_e("ngModel",n.SdkTesterService.encoderPhraseCode)}}function RT(e,t){if(e&1&&(v(0,"option",38),O(1),g()),e&2){let n=t.$implicit;b("value",n),D(),Ze(n)}}function FT(e,t){if(e&1){let n=Ae();v(0,"tr")(1,"td",34)(2,"label",35),O(3,"Encoder Tab:"),g(),v(4,"select",36),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.selectedEncoderTab,o)||(i.SdkTesterService.selectedEncoderTab=o),$(o)}),le(5,RT,2,2,"option",37),g()()()}if(e&2){let n=P();D(4),_e("ngModel",n.SdkTesterService.selectedEncoderTab),D(),b("ngForOf",n.SdkTesterService.encoderTabs)}}function PT(e,t){if(e&1&&(v(0,"option",42),O(1),g()),e&2){let n=t.$implicit;b("ngValue",n),D(),Ze(n.value)}}function LT(e,t){if(e&1){let n=Ae();v(0,"tr")(1,"td",34)(2,"label",39),O(3,"State:"),g(),v(4,"select",40),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.selectedI9I10State,o)||(i.SdkTesterService.selectedI9I10State=o),$(o)}),q("change",function(){U(n);let o=P();return $(o.SdkTesterService.onStateChange())}),le(5,PT,2,2,"option",41),g()()()}if(e&2){let n=P();D(4),_e("ngModel",n.SdkTesterService.selectedI9I10State),D(),b("ngForOf",n.SdkTesterService.i9I10States)}}function VT(e,t){if(e&1&&(v(0,"option",42),O(1),g()),e&2){let n=t.$implicit;b("ngValue",n),D(),Ze(n.name)}}function jT(e,t){if(e&1){let n=Ae();v(0,"tr")(1,"td",34)(2,"label",43),O(3,"SessionType:"),g(),v(4,"select",44),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.selectedSessionType,o)||(i.SdkTesterService.selectedSessionType=o),$(o)}),le(5,VT,2,2,"option",41),g()()()}if(e&2){let n=P();D(4),_e("ngModel",n.SdkTesterService.selectedSessionType),D(),b("ngForOf",n.SdkTesterService.sessionTypes)}}function BT(e,t){if(e&1&&(v(0,"option",42),O(1),g()),e&2){let n=t.$implicit;b("ngValue",n),D(),Ze(n.displayValue)}}function HT(e,t){if(e&1){let n=Ae();v(0,"tr")(1,"td",34)(2,"label",45),O(3,"Patient Type:"),g(),v(4,"select",46),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.selectedPatientType,o)||(i.SdkTesterService.selectedPatientType=o),$(o)}),q("change",function(){U(n);let o=P();return $(o.SdkTesterService.onPatientTypeChange())}),le(5,BT,2,2,"option",41),g()()()}if(e&2){let n=P();D(4),_e("ngModel",n.SdkTesterService.selectedPatientType),D(),b("ngForOf",n.SdkTesterService.patientTypes)}}function UT(e,t){if(e&1){let n=Ae();v(0,"tr")(1,"td",7)(2,"label"),O(3,"Demographics:"),g(),v(4,"textarea",47),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.encoderDemographics,o)||(i.SdkTesterService.encoderDemographics=o),$(o)}),g()()()}if(e&2){let n=P();D(4),_e("ngModel",n.SdkTesterService.encoderDemographics)}}var Cg=(()=>{class e{constructor(n,r){this.signInService=n,this.sdkTesterService=r,this.userNameError=!1,this.orgError=!1,this.inAdvancedMode=!1,this.SignInService=this.signInService,this.SdkTesterService=this.sdkTesterService}get username(){return this.signInService.signInForm.get("username")}get organization(){return this.signInService.signInForm.get("organization")}static{this.\u0275fac=function(r){return new(r||e)(E(Jn),E(Ds))}}static{this.\u0275cmp=ci({type:e,selectors:[["app-sign-in"]],inputs:{inAdvancedMode:"inAdvancedMode"},decls:58,vars:36,consts:[["ngForm","ngForm"],[1,"sdk-sign-in-container",2,"margin","0 auto"],[1,"tk-margin-left-2t"],["role","presentation",1,"tk-tabl-form-sip","kc-sdk-tester-sign-in-table"],[1,"sign-in-left-side"],["method","post","novalidate","",3,"ngSubmit","formGroup"],[1,"sdk-login-table"],["colspan","3"],["tabindex","-1"],["class","icon-exclamationbox",4,"ngIf"],["tabindex","-1","for","kc-userNameInput","id","kc-userNameLblId",1,"kc-label-padding"],[1,"tk-rfrm-group",3,"ngClass"],[1,"tk-rfrm-columnar-container"],[1,"tk-rfrm-error-container"],["type","text","spellcheck","false","id","kc-userNameInput","formControlName","username",0,"kc","focus-on-me","true","autocomplete","off","aria-required","true","aria-autocomplete","none","aria-describedby","signInField_inputTip UserName_errormessage","required","true",1,"tk-margin-left-min",3,"keyup","blur","ngClass"],[1,"small-dot","kc-sdk-signin-required"],[3,"ngClass"],["id","kc-userName_errormessage","class","tk-padding-left-1t","aria-required","true","aria-invalid","true","aria-describedby","User name is required",4,"ngIf"],["tabindex","-1","for","kc-orgId","id","kc-orgLblId",1,"kc-label-padding"],["type","text","id","kc-orgId","formControlName","organization","autocomplete","off","aria-required","true","aria-autocomplete","none","aria-describedby","signInField_inputTip Org_errormessage","required","true",1,"tk-margin-left-min",3,"keyup","blur","ngClass"],["id","kc-Org_errormessage","class","tk-padding-left-1t","aria-describedby","Organization is required","aria-required","true","aria-invalid","true",4,"ngIf"],["colspan","3",1,"tester-sign-in-button-space"],["type","button","name","sdk-launch-kc-button","id","sdk-launch-kc-button","value","Launch KC","class","kc-tk-btn kc-tk-btn-primary tk-margin-left-min tk-margin-top-none tk-margin-bottom-none",3,"disabled","click",4,"ngIf"],["name","generate_token","id","kc-generate_tokenBtnId","value","Generate_Token","enable-default","true","label","whatever",1,"kc-tk-btn","kc-tk-btn-primary","tk-margin-left-min","tk-margin-top-none","tk-margin-bottom-none",3,"disabled"],["type","button","name","sdk-launch-references-button","id","sdk-launch-references-button","value","Launch References","class","kc-tk-btn kc-tk-btn-primary tk-margin-left-min tk-margin-top-none tk-margin-bottom-none",3,"disabled","click",4,"ngIf"],[1,"sdk-login-table-inputs"],[4,"ngIf"],[1,"icon-exclamationbox"],["id","kc-userName_errormessage","aria-required","true","aria-invalid","true","aria-describedby","User name is required",1,"tk-padding-left-1t"],["id","kc-Org_errormessage","aria-describedby","Organization is required","aria-required","true","aria-invalid","true",1,"tk-padding-left-1t"],["type","button","name","sdk-launch-kc-button","id","sdk-launch-kc-button","value","Launch KC",1,"kc-tk-btn","kc-tk-btn-primary","tk-margin-left-min","tk-margin-top-none","tk-margin-bottom-none",3,"click","disabled"],["type","button","name","sdk-launch-references-button","id","sdk-launch-references-button","value","Launch References",1,"kc-tk-btn","kc-tk-btn-primary","tk-margin-left-min","tk-margin-top-none","tk-margin-bottom-none",3,"click","disabled"],[1,"kc-encoder-phrasecode-text"],["autoCapitalize","","type","text","id","kc-encoder-phrasecode",1,"kc-encoder-phrasecode-input",3,"ngModelChange","ngModel"],["colspan","3",1,"col-md","kc-simple-mode-inputs"],[1,"kc-encoder-tab-text"],["id","kc-encoder-tab-dropdown",1,"tester-encoder-tab",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"kc-state-text"],["id","kc-state-dropdown",1,"tester-state",3,"ngModelChange","change","ngModel"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[1,"kc-session-type-text"],["id","kc-session-type-dropdown",1,"tester-session-type",3,"ngModelChange","ngModel"],[1,"kc-patient-type-text"],["id","kc-patient-type-dropdown",1,"patient-type",3,"ngModelChange","change","ngModel"],["name","workflowInput","id","kc-sdk-sign-in-demographics-input","placeholder","Demographics input","spellcheck","false",1,"tester-text-area","ng-pristine","ng-valid","ng-touched",3,"ngModelChange","ngModel"]],template:function(r,o){if(r&1){let i=Ae();v(0,"div",1)(1,"div",2)(2,"table",3)(3,"tbody")(4,"tr")(5,"td",4)(6,"form",5,0),q("ngSubmit",function(){return U(i),$(o.SdkTesterService.doSigninSubmit())}),v(8,"table",6)(9,"tr")(10,"td",7)(11,"h2",8),O(12),g(),le(13,xT,2,1,"div",9)(14,TT,2,1,"div",9),g()(),v(15,"tr")(16,"td")(17,"label",10),O(18,"User name"),g()(),v(19,"td",11)(20,"div")(21,"div",12)(22,"div",13)(23,"input",14),q("keyup",function(){return U(i),$(o.userNameError=!!(o.SignInService.signInForm.controls.username.dirty&&o.SignInService.signInForm.controls.username.invalid))})("blur",function(){return U(i),$(o.userNameError=!!o.SignInService.signInForm.controls.username.invalid)}),g(),oe(24,"div",15),g()()()(),v(25,"td",16)(26,"div")(27,"div",12)(28,"div",13),le(29,MT,2,0,"span",17),g()()()()(),v(30,"tr")(31,"td")(32,"label",18),O(33,"Organization"),g()(),v(34,"td",11)(35,"div",12)(36,"div",13)(37,"input",19),q("keyup",function(){return U(i),$(o.orgError=!!(o.SignInService.signInForm.controls.organization.dirty&&o.SignInService.signInForm.controls.organization.invalid))})("blur",function(){return U(i),$(o.orgError=!!o.SignInService.signInForm.controls.organization.invalid)}),g(),oe(38,"div",15),g()()(),v(39,"td",16)(40,"div")(41,"div",12)(42,"div",13),le(43,NT,2,0,"span",20),g()()()()(),v(44,"tr")(45,"td",21),le(46,AT,2,1,"button",22),v(47,"button",23),O(48),g(),le(49,kT,2,1,"button",24),g()()()()(),v(50,"td")(51,"table",25),le(52,OT,5,1,"tr",26)(53,FT,6,2,"tr",26)(54,LT,6,2,"tr",26)(55,jT,6,2,"tr",26)(56,HT,6,2,"tr",26)(57,UT,5,1,"tr",26),g()()()()()()()}if(r&2){let i=qf(7);D(6),b("formGroup",o.SignInService.signInForm),D(6),Ze(o.inAdvancedMode?"Create Token":"Enter Info"),D(),b("ngIf",o.SignInService.clientError.visible),D(),b("ngIf",o.SignInService.serverError.visible),D(5),b("ngClass",Ir(22,ws,o.userNameError||o.SignInService.signInForm.controls.username.invalid&&i.submitted)),D(4),b("ngClass",Mn(24,_g,o.userNameError||i.submitted&&o.SignInService.signInForm.controls.username.invalid,o.SignInService.signInForm.controls.username.valid)),D(2),b("ngClass",Ir(27,ws,o.userNameError||o.SignInService.signInForm.controls.username.invalid&&i.submitted)),D(4),b("ngIf",(o.SignInService.signInForm.controls.username.dirty||i.submitted)&&o.SignInService.signInForm.controls.username.invalid),D(5),b("ngClass",Ir(29,ws,o.orgError||o.SignInService.signInForm.controls.organization.invalid&&i.submitted)),D(3),b("ngClass",Mn(31,_g,o.orgError||i.submitted&&o.SignInService.signInForm.controls.organization.invalid,o.SignInService.signInForm.controls.organization.valid)),D(2),b("ngClass",Ir(34,ws,o.orgError||o.SignInService.signInForm.controls.organization.invalid&&i.submitted)),D(4),b("ngIf",(o.SignInService.signInForm.controls.organization.dirty||i.submitted)&&o.SignInService.signInForm.controls.organization.invalid),D(3),b("ngIf",!o.inAdvancedMode),D(),b("disabled",o.SignInService.busy),D(),Tn(" ",o.inAdvancedMode?"Generate Token":"Launch Encoder"," "),D(),b("ngIf",!o.inAdvancedMode),D(3),b("ngIf",!o.inAdvancedMode),D(),b("ngIf",!o.inAdvancedMode),D(),b("ngIf",!o.inAdvancedMode),D(),b("ngIf",!o.inAdvancedMode),D(),b("ngIf",!o.inAdvancedMode),D(),b("ngIf",!o.inAdvancedMode)}},dependencies:[Cr,hi,mi,gi,fs,eg,us,ds,Yn,Qn,ss,qm,Xl,Rr,ps,Ql,Jl],encapsulation:2})}}return e})();var bg=(e,t)=>({dot:!0,"not-listening":e,listening:t});function $T(e,t){e&1&&(v(0,"div",8)(1,"div",11),oe(2,"app-sign-in",12),g()()),e&2&&(D(2),b("inAdvancedMode",!1))}function GT(e,t){if(e&1&&(v(0,"option",34),O(1),g()),e&2){let n=t.$implicit;b("ngValue",n.name),D(),Ze(n.name)}}function WT(e,t){if(e&1){let n=Ae();v(0,"div",13)(1,"div",14)(2,"input",15),q("click",function(){U(n);let o=P();return $(o.clearInputOutput())}),g(),v(3,"input",16),q("click",function(){U(n);let o=P();return $(o.SdkTesterService.closeAllKCWindows())}),g(),oe(4,"br"),v(5,"H2",4),O(6,"Select API:"),g(),oe(7,"br"),v(8,"select",17),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.selectedApi,o)||(i.selectedApi=o),$(o)}),q("change",function(){U(n);let o=P();return $(o.onSelectedNewWorkflowApiChange())}),v(9,"option",18),O(10,"launch KC"),g(),v(11,"option",19),O(12,"launch KC Sentinel"),g(),v(13,"option",20),O(14,"launch Encoder"),g(),v(15,"option",21),O(16,"assignConfig"),g(),v(17,"option",22),O(18,"setDemographics"),g(),v(19,"option",23),O(20,"setAuthToken"),g(),le(21,GT,2,2,"option",24),g(),oe(22,"br"),v(23,"div",25),oe(24,"br"),v(25,"input",26),q("click",function(){U(n);let o=P();return $(o.callApi())}),g()(),oe(26,"br")(27,"br"),g(),v(28,"div",27)(29,"div",28)(30,"textarea",29),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.workflowInput,o)||(i.SdkTesterService.workflowInput=o),$(o)}),g(),oe(31,"br"),g()(),v(32,"div",30)(33,"div",31)(34,"input",32),q("click",function(){U(n);let o=P();return $(o.clearOutput())}),g(),v(35,"textarea",33),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.outputJson,o)||(i.SdkTesterService.outputJson=o),$(o)}),g(),oe(36,"br"),g()()()}if(e&2){let n=P();D(3),b("disabled",!n.SdkTesterService.sdkKcIsListening&&!n.SdkTesterService.sdkEncoderIsListening),D(5),_e("ngModel",n.selectedApi),D(13),b("ngForOf",n.apiMethods),D(9),_e("ngModel",n.SdkTesterService.workflowInput),D(5),_e("ngModel",n.SdkTesterService.outputJson)}}var Sg=(()=>{class e{constructor(n,r,o,i,s,a){this.document=n,this.sdkTesterService=r,this.stringService=o,this.signInService=i,this.ngZone=s,this.cdr=a,this.title="sdk-tester",this.kcSdk=window.kcSdk,this.kcNotLaunched=!1,this.devApis=Cm,this.selectedApi="",this.spacesToIndent=4,this.clearInputOutput=()=>{this.sdkTesterService.outputJson="",this.clearWorkflow(),this.signInService.clearClientError()},this.clearOutput=()=>{this.sdkTesterService.outputJson=""},this.kcWindowDataChanged=c=>{setTimeout(()=>{this.sdkTesterService.logOutput(c.callback,c.value),this.cdr.detectChanges()})},this.encoderWindowDataChanged=c=>{setTimeout(()=>{this.sdkTesterService.logOutput(c.callback,c.value),this.cdr.detectChanges()})},this.kcListeningChanged=c=>{setTimeout(()=>{this.sdkTesterService.sdkKcIsListening=this.kcSdk.kcWindowIsListening,this.sdkTesterService.logOutput(c.callback,this.kcSdk.kcWindowIsListening),this.cdr.detectChanges()})},this.encoderListeningChanged=c=>{setTimeout(()=>{this.sdkTesterService.sdkEncoderIsListening=this.kcSdk.encoderWindowIsListening,this.sdkTesterService.logOutput(c.callback,this.kcSdk.encoderWindowIsListening),this.cdr.detectChanges()})},this.workflowComplete=()=>{setTimeout(()=>{this.onSelectedNewWorkflowApiChange(),this.cdr.detectChanges()})},this.advancedModeOnChange=()=>{this.signInService.clearClientError(),this.clearInputOutput(),this.signInService.advancedMode&&(this.populateSdkApis(),this.onSelectedNewWorkflowApiChange())},this.clearWorkflow=()=>{this.kcSdk.clearWorkflow()},this.onSelectedWorkflowApiChange=()=>{let c=this.document.getElementById("kc-workflow")?.selectedIndex||0,u=this.kcSdk.workflow[c];u&&(this.sdkTesterService.workflowInput=JSON.stringify(u.args,null,2))},this.onSelectedNewWorkflowApiChange=()=>{this.sdkTesterService.clientExampleToken&&(this.sdkTesterService.exampleAuthToken.access_token=this.sdkTesterService.clientExampleToken);let c=this.apiMethods.find(p=>p.name===this.selectedApi)?.example;switch(this.selectedApi){case"assignConfig":this.sdkTesterService.workflowInput=JSON.stringify({rcpEndpointUri:this.sdkTesterService.exampleUrl},null,2);break;case"setDemographics":this.sdkTesterService.workflowInput=JSON.stringify(this.sdkTesterService.exampleDemographicsData,null,2);break;case"setAuthToken":this.sdkTesterService.workflowInput=JSON.stringify(this.sdkTesterService.exampleAuthToken,null,2);break;case"launch KC":this.sdkTesterService.workflowWindow=this.sdkTesterService.kcWindowName;let p=X.url+this.sdkTesterService.WEB_KC,f=this.sdkTesterService.selectedI9I10State,h=[JSON.stringify(p,null,2),JSON.stringify(this.sdkTesterService.exampleAuthToken,null,2),JSON.stringify(f,null,2),JSON.stringify(this.sdkTesterService.exampleDemographicsData,null,2)].join(`,
10
- `);this.sdkTesterService.workflowInput=this.stringService.wrapAsArray(h);break;case"launch KC Sentinel":this.sdkTesterService.workflowWindow=this.sdkTesterService.kcSentinelName;let m=X.url+this.sdkTesterService.WEB_KC,y=[JSON.stringify(m,null,2)].join(`,
10
+ `);this.sdkTesterService.workflowInput=this.stringService.wrapAsArray(h);break;case"launch KC Sentinel":this.sdkTesterService.workflowWindow=this.sdkTesterService.kcWindowName;let m=X.url+this.sdkTesterService.WEB_KC,y=[JSON.stringify(m,null,2)].join(`,
11
11
  `);this.sdkTesterService.workflowInput="["+y+"]";break;case"launch Encoder":this.sdkTesterService.workflowWindow=this.sdkTesterService.encoderWindowName;let w=X.url+this.sdkTesterService.WEB_ENCODER,L=this.sdkTesterService.exampleDemographicsData,F={sessionType:this.kcSdk.sessionTypes.I10CM,encoderTab:this.kcSdk.encoderTabs.LOGIC,codePhrase:"ANGINA"},W=this.sdkTesterService.selectedI9I10State,Z=[JSON.stringify(w,null,2),JSON.stringify(this.sdkTesterService.exampleAuthToken,null,2),JSON.stringify(W,null,2),JSON.stringify(L,null,2),JSON.stringify(F,null,2)].join(`,
12
12
  `);this.sdkTesterService.workflowInput=this.stringService.wrapAsArray(Z);break;case"updateCodes":this.sdkTesterService.workflowInput=JSON.stringify({codes:c},void 0,this.spacesToIndent);break;case"getRowSpecificInfo":this.sdkTesterService.workflowInput=JSON.stringify({uniqueIds:c},void 0,this.spacesToIndent);break;default:this.sdkTesterService.workflowInput=JSON.stringify(c,void 0,this.spacesToIndent);break}let u=this.selectedApi==="launch Encoder"||this.selectedApi==="launch KC"||this.selectedApi==="launch KC Sentinel"?this.sdkTesterService.workflowWindow:this.kcSdk.kcWindowIsListening?this.sdkTesterService.kcWindowName:this.sdkTesterService.encoderWindowName,d=$l(this.sdkTesterService.availableApis,{name:this.selectedApi,windowName:u});d&&(this.sdkTesterService.availableApiSelected=d),this.kcNotLaunched=!d},this.dateParser=(c,u)=>typeof u=="string"&&/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/.test(u)?new Date(u):u,this.callApi=()=>{let c=this.sdkTesterService.workflowInput?this.stringService.isJson(this.sdkTesterService.workflowInput)?JSON.parse(this.sdkTesterService.workflowInput,this.dateParser):this.sdkTesterService.workflowInput:[];if(this.kcSdk.clearWorkflow(),this.kcNotLaunched){console.log(new Error("KC window not listening"));return}this.kcSdk.addToWorkflow({fn:this.sdkTesterService.availableApiSelected?.fn,args:c}),this.sdkTesterService.selectedWorkflowApi=Ul(this.kcSdk.workflow),this.SdkTesterService.runWorkflow(this.SdkTesterService.workflowWindow)},this.SignInService=this.signInService,this.SdkTesterService=this.sdkTesterService,this.kcSdk.setCallback(this.kcSdk.callbacks.SDKEXCEPTION,this.kcWindowDataChanged),this.kcSdk.setCallback(this.kcSdk.callbacks.WORKFLOWCOMPLETE,this.workflowComplete),this.kcSdk.setCallback(this.kcSdk.callbacks.SDKRESPONSE,this.kcWindowDataChanged),this.kcSdk.setCallback(this.kcSdk.callbacks.KCLISTENINGCHANGED,this.kcListeningChanged),this.kcSdk.setCallback(this.kcSdk.callbacks.ENCODERLISTENINGCHANGED,this.encoderListeningChanged),this.kcSdk.clearWorkflow();let l={grant_type:"org_login",username:"sdkTester",organizationId:"Justice League",enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.sdkTesterService.filterSessionTypes(this.sdkTesterService.selectedI9I10State),this.sdkTesterService.setAuthToken(l).subscribe()}populateSdkApis(){this.apiMethods=this.devApis.filter(n=>n.sdkVisible).sort((n,r)=>n.name.localeCompare(r.name)),this.selectedApi="launch KC"}static{this.\u0275fac=function(r){return new(r||e)(E(Oe),E(Ds),E(vs),E(Jn),E(Y),E(Nn))}}static{this.\u0275cmp=ci({type:e,selectors:[["app-root"]],decls:21,vars:13,consts:[[1,"col-md","sdk-top-controls"],[1,"sdk-version-info"],[1,"sdk-version-label"],[1,"sdk-version"],[1,"tester-text"],[3,"ngClass"],["type","checkbox","id","kc-sdk-advanced-mode","name","kc-sdk-advanced-mode",1,"sdk-tester-checkbox","kc-input",3,"change","ngModelChange","ngModel"],[1,"container",3,"ngClass"],[1,"row"],["class","row",4,"ngIf"],["class","row sdk-advanced-row",4,"ngIf"],[1,"col-md"],[3,"inAdvancedMode"],[1,"row","sdk-advanced-row"],[1,"col-md-3","sdk-tester-input-side"],["type","button","value","Clear Tester","id","kc-sdk-clear-tester",1,"tester-clear-tester",3,"click"],["type","button","value","Close All KC Windows","id","kc-sdk-close-windows",1,"tester-close-windows",3,"click","disabled"],["id","kc-workflow-available-apis",1,"tester-workflow-available-api",3,"ngModelChange","change","ngModel"],["value","launch KC"],["value","launch KC Sentinel"],["value","launch Encoder"],["value","assignConfig"],["value","setDemographics"],["value","setAuthToken"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"sdk-workflow-api-buttons"],["type","button","value","Call API","id","kc-sdk-run-workflow",1,"sdk-callApi-button",3,"click"],[1,"col-md-4","sdk-tester-left-side"],[1,"sdk-tester-input-area"],["name","workflowInput","id","kc-sdk-workflow-input","placeholder","Workflow input","spellcheck","false",1,"tester-text-area-advanced","ng-pristine","ng-valid","ng-touched",3,"ngModelChange","ngModel"],[1,"col-md-5","sdk-tester-right-side"],[1,"sdk-tester-output-area"],["type","button","value","Clear Output","id","kc-sdk-clear-tester",1,"tester-clear-output-tester",3,"click"],["placeholder","Output","name","outputJson","id","kc-sdk-input","spellcheck","false",1,"tester-text-area-advanced","ng-pristine","ng-valid","ng-touched",3,"ngModelChange","ngModel"],[3,"ngValue"]],template:function(r,o){r&1&&(v(0,"div",0)(1,"div",1)(2,"label",2),O(3,"sdk version:"),g(),v(4,"div",3),O(5),g(),oe(6,"br"),g(),v(7,"label",4),O(8,"kc listening:"),g(),oe(9,"div",5),v(10,"label",4),O(11,"encoder listening:"),g(),oe(12,"div",5)(13,"br"),v(14,"label"),O(15," Advanced Mode: "),v(16,"input",6),q("change",function(){return o.advancedModeOnChange()}),Ce("ngModelChange",function(s){return ke(o.SignInService.advancedMode,s)||(o.SignInService.advancedMode=s),s}),g()()(),v(17,"div",7),oe(18,"div",8),le(19,$T,3,1,"div",9)(20,WT,37,5,"div",10),g()),r&2&&(D(5),Ze(o.SdkTesterService.version),D(4),b("ngClass",Mn(7,bg,!o.SdkTesterService.sdkKcIsListening,o.SdkTesterService.sdkKcIsListening)),D(3),b("ngClass",Mn(10,bg,!o.SdkTesterService.sdkEncoderIsListening,o.SdkTesterService.sdkEncoderIsListening)),D(4),_e("ngModel",o.SignInService.advancedMode),D(),b("ngClass",o.SignInService.advancedMode?"sdk-advanced-mode-container":"sdk-simple-mode-container"),D(2),b("ngIf",!o.SignInService.advancedMode),D(),b("ngIf",o.SignInService.advancedMode))},dependencies:[Cr,hi,mi,gi,fs,us,ds,Yn,Zl,Qn,ss,Rr,ps,Cg],styles:[`.sdk-callApi-button[_ngcontent-%COMP%]{margin-left:185px}
13
13
  /*# sourceMappingURL=app.component.css.map */`]})}}return e})();var cc=class extends fi{supportsDOMEvents=!0},uc=class e extends cc{static makeCurrent(){np(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}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=qT();return n==null?null:ZT(n)}resetBaseElement(){jr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return pi(document.cookie,t)}},jr=null;function qT(){return jr=jr||document.querySelector("base"),jr?jr.getAttribute("href"):null}function ZT(e){return new URL(e,document.baseURI).pathname}var KT=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),dc=new _(""),kg=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}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)(x(dc),x(Y))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),Is=class{_doc;constructor(t){this._doc=t}manager},Es="ng-app-id";function xg(e){for(let t of e)t.remove()}function Tg(e,t){let n=t.createElement("style");return n.textContent=e,n}function YT(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Es}="${t}"],link[${Es}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Es),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]})}function fc(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Og=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=yi(i),YT(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Tg);r?.forEach(o=>this.addUsage(o,this.external,fc))}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&&(xg(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])xg(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Tg(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,fc(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Es,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(x(Oe),x(hl),x(gl,8),x(wt))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),lc={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"},hc=/%COMP%/g,Rg="%COMP%",QT=`_nghost-${Rg}`,JT=`_ngcontent-${Rg}`,XT=!0,eM=new _("",{providedIn:"root",factory:()=>XT});function tM(e){return JT.replace(hc,e)}function nM(e){return QT.replace(hc,e)}function Fg(e,t){return t.map(n=>n.replace(hc,e))}var Mg=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,l,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.platformIsServer=yi(a),this.defaultRenderer=new Br(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===qe.ShadowDom&&(r=K(V({},r),{encapsulation:qe.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof _s?o.applyToHost(n):o instanceof Hr&&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,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case qe.Emulated:i=new _s(l,c,r,this.appId,u,s,a,d);break;case qe.ShadowDom:return new pc(l,c,n,r,s,a,this.nonce,d);default:i=new Hr(l,c,r,u,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(r){return new(r||e)(x(kg),x(Og),x(hl),x(eM),x(Oe),x(wt),x(Y),x(gl))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),Br=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(lc[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Ng(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Ng(t)?t.content:t).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=lc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=lc[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){o&(Xe.DashCase|Xe.Important)?t.style.setProperty(n,r,o&Xe.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Xe.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){if(typeof t=="string"&&(t=kn().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Ng(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var pc=class extends Br{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Fg(o.id,o.styles);for(let d of c){let p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=d,this.shadowRoot.appendChild(p)}let u=o.getExternalStyles?.();if(u)for(let d of u){let p=fc(d,i);a&&p.setAttribute("nonce",a),this.shadowRoot.appendChild(p)}}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.removeHost(this.shadowRoot)}},Hr=class extends Br{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=l?Fg(l,r.styles):r.styles,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},_s=class extends Hr{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,l){let c=o+"-"+r.id;super(t,n,r,i,s,a,l,c),this.contentAttr=tM(c),this.hostAttr=nM(c)}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}},rM=(()=>{class e extends Is{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static \u0275fac=function(r){return new(r||e)(x(Oe))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),Ag=["alt","control","meta","shift"],oM={"\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"},iM={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},sM=(()=>{class e extends Is{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>kn().onAndCancel(n,i.domEventName,s))}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."),Ag.forEach(c=>{let u=r.indexOf(c);u>-1&&(r.splice(u,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=oM[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"),Ag.forEach(s=>{if(s!==o){let a=iM[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)(x(Oe))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})();function Pg(e,t){return Yf(V({rootComponent:e},aM(t)))}function aM(e){return{appProviders:[...fM,...e?.providers??[]],platformProviders:dM}}function lM(){uc.makeCurrent()}function cM(){return new mt}function uM(){return Jd(document),document}var dM=[{provide:wt,useValue:rp},{provide:ml,useValue:lM,multi:!0},{provide:Oe,useFactory:uM,deps:[]}];var fM=[{provide:Ko,useValue:"root"},{provide:mt,useFactory:cM,deps:[]},{provide:dc,useClass:rM,multi:!0,deps:[Oe,Y,wt]},{provide:dc,useClass:sM,multi:!0,deps:[Oe]},Mg,Og,kg,{provide:En,useExisting:Mg},{provide:An,useClass:KT,deps:[]},[]];Pg(Sg,{providers:[Dg(wg())]});