@whoz-oss/coday-client 0.0.0-workstream-forge.130 → 0.0.0-workstream-forge.132
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/browser/{chunk-Bexa26_O.js → chunk-1aPU-VYN.js} +1 -1
- package/browser/chunk-2uSZyBhs.js +1 -0
- package/browser/{chunk-CVEPS_Rn.js → chunk-B3wVhaOY.js} +1 -1
- package/browser/{chunk-BmiTW3yx.js → chunk-B94rMV4D.js} +1 -1
- package/browser/{chunk-5HptzHPs.js → chunk-BC30_IWf.js} +1 -1
- package/browser/{chunk-gZNKOvXX.js → chunk-BIEipUAm.js} +1 -1
- package/browser/{chunk-xL_Z39Ql.js → chunk-BJvKgH9M.js} +1 -1
- package/browser/{chunk-_G-8WREs.js → chunk-BPPwlunf.js} +1 -1
- package/browser/{chunk-B7_NgrVx.js → chunk-BYfLHvn5.js} +1 -1
- package/browser/{chunk-DsqUIO8F.js → chunk-BmpYp8SI.js} +1 -1
- package/browser/{chunk-B2vHDJfP.js → chunk-BvNh363O.js} +1 -1
- package/browser/{chunk-eSdZ2k-7.js → chunk-BwDnFY17.js} +1 -1
- package/browser/{chunk-DF_acPg5.js → chunk-C0DGRdrH.js} +1 -1
- package/browser/{chunk-19OX1-Gt.js → chunk-C9ZLvHyT.js} +1 -1
- package/browser/{chunk-jv6Iwz_I.js → chunk-CSbT6gXC.js} +1 -1
- package/browser/{chunk-D6XP4BWo.js → chunk-CXH1B4xE.js} +1 -1
- package/browser/{chunk-DNlwbOfA.js → chunk-Ca58sP9P.js} +1 -1
- package/browser/{chunk-k_Y0FMAi.js → chunk-CaT9J2-R.js} +1 -1
- package/browser/{chunk-C0i4ebMh.js → chunk-ChHdIgC7.js} +1 -1
- package/browser/{chunk-DRNGnRtG.js → chunk-Crn_FmOc.js} +1 -1
- package/browser/{chunk-BwF3DHbG.js → chunk-Cvn7x879.js} +1 -1
- package/browser/{chunk-CXs6UkKM.js → chunk-CzhH5dEk.js} +1 -1
- package/browser/{chunk-CCAO24ac.js → chunk-D745ywTz.js} +1 -1
- package/browser/{chunk-BXu_FjmD.js → chunk-DDBndX8X.js} +1 -1
- package/browser/{chunk-KeRPxWui.js → chunk-DIiUGYyE.js} +1 -1
- package/browser/{chunk-aoT5uADR.js → chunk-DJqD0QrN.js} +1 -1
- package/browser/{chunk-DJFrIWhH.js → chunk-DMBR9TyF.js} +1 -1
- package/browser/{chunk-C58-28vw.js → chunk-DPNvDTDA.js} +1 -1
- package/browser/{chunk-DvvAcQIV.js → chunk-DQhzfd4q.js} +1 -1
- package/browser/{chunk-D75qOKRE.js → chunk-DX_WpNI8.js} +1 -1
- package/browser/{chunk-DFY8wJzc.js → chunk-DdISK7Z0.js} +7 -7
- package/browser/{chunk-Bsez8MRw.js → chunk-DecNPOnx.js} +1 -1
- package/browser/{chunk-C0Mo2fyy.js → chunk-DuNcnigb.js} +1 -1
- package/browser/{chunk-tUfhjSPG.js → chunk-DumghPgi.js} +1 -1
- package/browser/{chunk-P_nMLYiV.js → chunk-Dv74-YPZ.js} +1 -1
- package/browser/{chunk-m03vK40u.js → chunk-DyBGilQA.js} +1 -1
- package/browser/{chunk-ZtDI9Qnf.js → chunk-EEpjj7pA.js} +1 -1
- package/browser/{chunk-Dwul-NdZ.js → chunk-HewsBsjw.js} +1 -1
- package/browser/{chunk-C83lJSkJ.js → chunk-MQfO-veq.js} +1 -1
- package/browser/{chunk-BYfxJkuF.js → chunk-MlnYbyuc.js} +1 -1
- package/browser/{chunk-D5Gj1KMK.js → chunk-QA6-T4TH.js} +1 -1
- package/browser/{chunk-CDDvR3Fj.js → chunk-Z-Rdihxb.js} +1 -1
- package/browser/{chunk-p9ZS47Th.js → chunk-g6gWH0wW.js} +1 -1
- package/browser/{chunk-C-OT1z56.js → chunk-p_goS9vk.js} +1 -1
- package/browser/{chunk-QL_vSGY6.js → chunk-xpXkr85F.js} +1 -1
- package/browser/index.html +1 -1
- package/browser/{main-JPCCD7JL.js → main-OIPNBOIH.js} +1 -1
- package/package.json +1 -1
- package/browser/chunk-BoZzRsaV.js +0 -1
|
@@ -561,4 +561,4 @@ function lt$1(i){return i.buttons===0||i.detail===0}function ct$1(i){let e=i.tou
|
|
|
561
561
|
display: contents;
|
|
562
562
|
}
|
|
563
563
|
`],encapsulation:2,changeDetection:1})}return n})(),Ce$2="--mat-dialog-transition-duration";function Ae$2(n){return n==null?null:typeof n=="number"?n:n.endsWith("ms")?en$1(n.substring(0,n.length-2)):n.endsWith("s")?en$1(n.substring(0,n.length-1))*1e3:n==="0"?0:null}var F$2=(function(n){return n[n.OPEN=0]="OPEN",n[n.CLOSING=1]="CLOSING",n[n.CLOSED=2]="CLOSED",n})(F$2||{}),W$1=class W{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new xo(1);_beforeClosed=new xo(1);_result;_closeFallbackTimeout;_state=F$2.OPEN;_closeInteractionType;constructor(a,e,t){this._ref=a,this._config=e,this._containerInstance=t,this.disableClose=e.disableClose,this.id=a.id,a.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(Ce$4(i=>i.state==="opened"),Ve$2(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),t._animationStateChanged.pipe(Ce$4(i=>i.state==="closed"),Ve$2(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),Dw(this.backdropClick(),this.keydownEvents().pipe(Ce$4(i=>i.keyCode===27&&!this.disableClose&&!vn$1(i)))).subscribe(i=>{this.disableClose||(i.preventDefault(),je(this,i.type==="keydown"?"keyboard":"mouse"));});}close(a){let e=this._config.closePredicate;e&&!e(a,this._config,this.componentInstance)||(this._result=a,this._containerInstance._animationStateChanged.pipe(Ce$4(t=>t.state==="closing"),Ve$2(1)).subscribe(t=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100);}),this._state=F$2.CLOSING,this._containerInstance._startExitAnimation());}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=F$2.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null;}};function je(n,a,e){return n._closeInteractionType=a,n.close(e)}var Ne$2=new D$1("MatMdcDialogData"),Ve$1=new D$1("mat-mdc-dialog-default-options"),ze$1=new D$1("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=p(we$3);return ()=>Wn$1(n)}}),Et$1=(()=>{class n{_defaultOptions=p(Ve$1,{optional:true});_scrollStrategy=p(ze$1);_parentDialog=p(n,{optional:true,skipSelf:true});_idGenerator=p(mt$1);_injector=p(we$3);_dialog=p(be$2);_animationsDisabled=et$1();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ne$1;_afterOpenedAtThisLevel=new ne$1;dialogConfigClass=L$2;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Oo(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Os(void 0)));constructor(){this._dialogRefConstructor=W$1,this._dialogContainerType=Be$2,this._dialogDataToken=Ne$2;}open(e,t){let i;t=w$1(w$1({},this._defaultOptions||new L$2),t),t.id=t.id||this._idGenerator.getId("mat-mdc-dialog-"),t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,x$2(w$1({},t),{positionStrategy:ti$1(this._injector).centerHorizontally().centerVertically(),disableClose:true,closePredicate:void 0,closeOnDestroy:false,closeOnOverlayDetachments:false,disableAnimations:this._animationsDisabled||t.enterAnimationDuration?.toLocaleString()==="0"||t.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:t},{provide:g,useValue:t}]},templateContext:()=>({dialogRef:i}),providers:(l,s,d)=>(i=new this._dialogRefConstructor(l,t,d),i.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:d},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:i}])}));return i.componentRef=o.componentRef,i.componentInstance=o.componentInstance,this.openDialogs.push(i),this.afterOpened.next(i),i.afterClosed().subscribe(()=>{let l=this.openDialogs.indexOf(i);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||this._getAfterAllClosed().next());}),i}closeAll(){this._closeDialogs(this.openDialogs);}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete();}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close();}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Z$2({token:n,factory:n.\u0275fac})}return n})();var y=class{apiKeys;username;password;accessToken;basePath;withCredentials;encoder;encodeParam;credentials;constructor({accessToken:x,apiKeys:n,basePath:r,credentials:l,encodeParam:o,encoder:t,password:e,username:s,withCredentials:p}={}){n&&(this.apiKeys=n),s!==void 0&&(this.username=s),e!==void 0&&(this.password=e),x!==void 0&&(this.accessToken=x),r!==void 0&&(this.basePath=r),p!==void 0&&(this.withCredentials=p),t&&(this.encoder=t),this.encodeParam=o??(a=>this.defaultEncodeParam(a)),this.credentials=l??{};}selectHeaderContentType(x){if(x.length===0)return;let n=x.find(r=>this.isJsonMime(r));return n===void 0?x[0]:n}selectHeaderAccept(x){if(x.length===0)return;let n=x.find(r=>this.isJsonMime(r));return n===void 0?x[0]:n}isJsonMime(x){let n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return x!==null&&(n.test(x)||x.toLowerCase()==="application/json-patch+json")}lookupCredential(x){let n=this.credentials[x];return typeof n=="function"?n():n}addCredentialToHeaders(x,n,r,l){let o=this.lookupCredential(x);return o?r.set(n,(l??"")+o):r}addCredentialToQuery(x,n,r){let l=this.lookupCredential(x);return l?r.set(n,l):r}defaultEncodeParam(x){let n=x.dataFormat==="date-time"&&x.value instanceof Date?x.value.toISOString():x.value;return encodeURIComponent(String(n))}};var P=new D$1("basePath");var M=class{encodeKey(x){return encodeURIComponent(x)}encodeValue(x){return encodeURIComponent(x)}decodeKey(x){return decodeURIComponent(x)}decodeValue(x){return decodeURIComponent(x)}};var j$1=class j{basePath="http://localhost:18124";defaultHeaders=new fn$1;configuration;encoder;constructor(x,n){if(this.configuration=n||new y,typeof this.configuration.basePath!="string"){let r=Array.isArray(x)?x[0]:void 0;r!=null&&(x=r),typeof x!="string"&&(x=this.basePath),this.configuration.basePath=x;}this.encoder=this.configuration.encoder||new M;}canConsumeForm(x){return x.indexOf("multipart/form-data")!==-1}addToHttpParams(x,n,r,l=false){return typeof n=="object"&&!(n instanceof Date)?this.addToHttpParamsRecursive(x,n,l?r:void 0,l):this.addToHttpParamsRecursive(x,n,r)}addToHttpParamsRecursive(x,n,r,l=false){if(n==null)return x;if(typeof n=="object"){if(r!=null)return l?Object.keys(n).reduce((o,t)=>o.append(`${r}[${t}]`,n[t]),x):x.append(r,JSON.stringify(n));if(Array.isArray(n))n.forEach(o=>x=this.addToHttpParamsRecursive(x,o,r));else if(n instanceof Date)if(r!=null)x=x.append(r,n.toISOString());else throw Error("key may not be null if value is Date");else Object.keys(n).forEach(o=>{let t=r?`${r}.${o}`:o;x=this.addToHttpParamsRecursive(x,n[o],t);});return x}else if(r!=null)return x.append(r,n);throw Error("key may not be null if value is not object or array")}};var $$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter agentConfig was null or undefined when calling createAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/agent-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}disableAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling disableAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/disable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}enableAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling enableAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/enable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}exportAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/agent-configs/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getDefinitionAgentConfig(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling getDefinitionAgentConfig.");let s=new dn$2({encoder:this.encoder});s=this.addToHttpParams(s,r,"withUserOverlay"),s=this.addToHttpParams(s,l,"namespaceId");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new kc,i=e?.transferCache??true,c="json";a&&(a.startsWith("text")?c="text":this.configuration.isJsonMime(a)?c="json":c="blob");let f=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/definition`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$2(w$1({context:d,params:s,responseType:c},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}listByParentAgentConfig(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAgentConfig.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"withDisabled");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/agent-configs/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}listPlatformAgentsAgentConfig(n,r="body",l=false,o){let t=new dn$2({encoder:this.encoder});t=this.addToHttpParams(t,n,"withDisabled");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new kc,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/agent-configs/platform",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}searchAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter agentConfigSearchRequest was null or undefined when calling searchAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/agent-configs/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateAgentConfig(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAgentConfig.");if(r==null)throw new Error("Required parameter agentConfig was null or undefined when calling updateAgentConfig.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var U=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getAgentConfigDefaults(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/agent-configs/defaults",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var N=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter aiModel was null or undefined when calling createAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-models",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-models/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByNamespaceIdAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listByNamespaceIdAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/by-namespaceId/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByParentAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listPlatformLevelAiModel(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/ai-models/platform",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateAiModel(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiModel.");if(r==null)throw new Error("Required parameter aiModel was null or undefined when calling updateAiModel.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var k=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter aiProvider was null or undefined when calling createAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-providers",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-providers/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listAiProvider(n,r,l="body",o=false,t){let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/ai-providers",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateAiProvider(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiProvider.");if(r==null)throw new Error("Required parameter aiProvider was null or undefined when calling updateAiProvider.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var F$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;addMessageCase(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling addMessageCase.");if(r==null)throw new Error("Required parameter addMessageRequest was null or undefined when calling addMessageCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/messages`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}countUnreadCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling countUnreadCase.");let t=new dn$2({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new kc,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/cases/unread-count",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}createCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter _case was null or undefined when calling createCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/cases",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/cases/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}interruptCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling interruptCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/interrupt`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}killCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling killCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/kill`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByParentCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByUserCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userId was null or undefined when calling listByUserCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-user/${this.configuration.encodeParam({name:"userId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByUserExternalIdCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter externalId was null or undefined when calling listByUserExternalIdCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-user/external/${this.configuration.encodeParam({name:"externalId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByUserInNamespaceCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter listByUserInNamespaceRequest was null or undefined when calling listByUserInNamespaceCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/cases/by-user/in-namespace",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listMineByParentCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listMineByParentCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/mine`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}markCaseRead(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling markCaseRead.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/read`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}reopenCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling reopenCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reopen`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}setReasoningEffortCase(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling setReasoningEffortCase.");if(r==null)throw new Error("Required parameter caseReasoningEffortRequest was null or undefined when calling setReasoningEffortCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reasoning-effort`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}starCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling starCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("put",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}unstarCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling unstarCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateCase(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateCase.");if(r==null)throw new Error("Required parameter _case was null or undefined when calling updateCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var D=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter integrationConfig was null or undefined when calling createIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/integration-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}exportIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/integration-configs/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listIntegrationConfig(n,r,l="body",o=false,t){let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/integration-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateIntegrationConfig(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateIntegrationConfig.");if(r==null)throw new Error("Required parameter integrationConfig was null or undefined when calling updateIntegrationConfig.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var W=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getTypeIntegrationType(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter type was null or undefined when calling getTypeIntegrationType.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-types/${this.configuration.encodeParam({name:"type",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listTypesIntegrationType(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/integration-types",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var G=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespace was null or undefined when calling createNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deployAgentsNamespace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deployAgentsNamespace.");if(r==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling deployAgentsNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/deploy-agents`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}getByIdNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listAllNamespace(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/namespaces",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling listByExternalIdsNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces/by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}undeployAgentsNamespace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling undeployAgentsNamespace.");if(r==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling undeployAgentsNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/undeploy-agents`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}updateNamespace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateNamespace.");if(r==null)throw new Error("Required parameter namespace was null or undefined when calling updateNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var _$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getAssociationNamespaceGit(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getAssociationNamespaceGit.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}removeAssociationNamespaceGit(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling removeAssociationNamespaceGit.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}setAssociationNamespaceGit(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling setAssociationNamespaceGit.");if(r==null)throw new Error("Required parameter namespaceGitRequest was null or undefined when calling setAssociationNamespaceGit.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var J$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;aggregateByAgentUsageRecord(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByAgentUsageRecord.");if(r==null)throw new Error("Required parameter from was null or undefined when calling aggregateByAgentUsageRecord.");if(l==null)throw new Error("Required parameter to was null or undefined when calling aggregateByAgentUsageRecord.");let s=new dn$2({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,l,"to");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new kc,i=e?.transferCache??true,c="json";a&&(a.startsWith("text")?c="text":this.configuration.isJsonMime(a)?c="json":c="blob");let f="/api/usage-records/aggregate/by-agent",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$2(w$1({context:d,params:s,responseType:c},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}aggregateByCaseIdUsageRecord(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling aggregateByCaseIdUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/aggregate/by-case/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}aggregateByCaseTreeUsageRecord(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter rootCaseId was null or undefined when calling aggregateByCaseTreeUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/aggregate/by-case-tree/${this.configuration.encodeParam({name:"rootCaseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}aggregateByModelUsageRecord(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByModelUsageRecord.");if(r==null)throw new Error("Required parameter from was null or undefined when calling aggregateByModelUsageRecord.");if(l==null)throw new Error("Required parameter to was null or undefined when calling aggregateByModelUsageRecord.");let s=new dn$2({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,l,"to");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new kc,i=e?.transferCache??true,c="json";a&&(a.startsWith("text")?c="text":this.configuration.isJsonMime(a)?c="json":c="blob");let f="/api/usage-records/aggregate/by-model",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$2(w$1({context:d,params:s,responseType:c},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}aggregateByUserUsageRecord(n,r,l,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter userId was null or undefined when calling aggregateByUserUsageRecord.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByUserUsageRecord.");if(l==null)throw new Error("Required parameter from was null or undefined when calling aggregateByUserUsageRecord.");if(o==null)throw new Error("Required parameter to was null or undefined when calling aggregateByUserUsageRecord.");let p=new dn$2({encoder:this.encoder});p=this.addToHttpParams(p,n,"userId"),p=this.addToHttpParams(p,r,"namespaceId"),p=this.addToHttpParams(p,l,"from"),p=this.addToHttpParams(p,o,"to");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new kc,c=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b="/api/usage-records/aggregate/by-user",{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$2(w$1({context:i,params:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:c,reportProgress:e}))}listByCaseIdUsageRecord(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseIdUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/by-case/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var we$1=(r=>(r.SIMPLE="SIMPLE",r.ADVANCED="ADVANCED",r.LOOP="LOOP",r))(we$1||{});var Te$1=(o=>(o.OpenAI="OpenAI",o.Anthropic="Anthropic",o.Gemini="Gemini",o.vLLM="vLLM",o.Ollama="Ollama",o))(Te$1||{});var Re$1=(r=>(r.PREPARING="PREPARING",r.READY="READY",r.FAILED="FAILED",r))(Re$1||{});var Ie$1=(t=>(t.NONE="NONE",t.LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH",t.XHIGH="XHIGH",t.MAX="MAX",t))(Ie$1||{});var L$1=class C{config=p(y);zone=p(J$3);connect(x){let n=`${this.config.basePath}/api/namespaces/${encodeURIComponent(x)}/case-list-updates`;return new k$1(r=>{let l=this.zone.runOutsideAngular(()=>new EventSource(n));return l.onopen=()=>this.zone.run(()=>r.next("connected")),l.addEventListener("namespace-case-list-updated",()=>this.zone.run(()=>r.next("updated"))),l.onerror=()=>{},()=>l.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var Y=class C{http=p(jD);config=p(y);exportAsYaml(x){let n=`${this.config.basePath}/api/agent-configs/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var K=(n=>(n.WEEK="WEEK",n.MONTH="MONTH",n))(K||{});var Q$1=(r=>(r.NEVER="NEVER",r.ON_DATE="ON_DATE",r.OCCURRENCES="OCCURRENCES",r))(Q$1||{});var Ee$1=K,Oe$1=Q$1;var Ve={MONDAY:"Mon",TUESDAY:"Tue",WEDNESDAY:"Wed",THURSDAY:"Thu",FRIDAY:"Fri",SATURDAY:"Sat",SUNDAY:"Sun"},Se={MONDAY:"Monday",TUESDAY:"Tuesday",WEDNESDAY:"Wednesday",THURSDAY:"Thursday",FRIDAY:"Friday",SATURDAY:"Saturday",SUNDAY:"Sunday"};var z$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter apiKeyAuthSettingBasicAuthAuthSettingBearerTokenAuthSettingOAuthCustomAuthSettingOAuthDiscoverableAuthSettingOAuthMcpDiscoverableAuthSettingOAuthRegisteredAuthSetting was null or undefined when calling createAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/auth-settings",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/auth-settings/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listAuthSetting(n,r,l="body",o=false,t){let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/auth-settings",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateAuthSetting(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAuthSetting.");if(r==null)throw new Error("Required parameter apiKeyAuthSettingBasicAuthAuthSettingBearerTokenAuthSettingOAuthCustomAuthSettingOAuthDiscoverableAuthSettingOAuthMcpDiscoverableAuthSettingOAuthRegisteredAuthSetting was null or undefined when calling updateAuthSetting.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getByIdCaseEventRest(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsCaseEventRest(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling getByIdsCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/case-events/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByCaseCaseEventRest(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/by-parentId/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var Z$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getMembersCaseMembership(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling getMembersCaseMembership.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateMembersCaseMembership(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersCaseMembership.");if(r==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersCaseMembership.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("patch",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ee$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;changesCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling changesCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/changes`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}diffCaseWorkspace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling diffCaseWorkspace.");if(r==null)throw new Error("Required parameter path was null or undefined when calling diffCaseWorkspace.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/diff`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspaces`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}refreshCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling refreshCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/refresh`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}retryCaseWorkspace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling retryCaseWorkspace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/retry`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var te=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;applyConfigChange(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling applyConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling applyConfigChange.");if(l==null)throw new Error("Required parameter configChangeApplyRequest was null or undefined when calling applyConfigChange.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new kc,d=e?.transferCache??true,i=["application/json"],c=this.configuration.selectHeaderContentType(i);c!==void 0&&(s=s.set("Content-Type",c));let f="json";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/apply`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$2(w$1({context:a,body:l,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}rejectConfigChange(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling rejectConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling rejectConfigChange.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new kc,d=e?.transferCache??true,i=["application/json"],c=this.configuration.selectHeaderContentType(i);c!==void 0&&(s=s.set("Content-Type",c));let f="json";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reject`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$2(w$1({context:a,body:l,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}viewConfigChange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling viewConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling viewConfigChange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ne=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;browseCaseFilesExchange(n,r,l,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling browseCaseFilesExchange.");let p=new dn$2({encoder:this.encoder});p=this.addToHttpParams(p,r,"path"),p=this.addToHttpParams(p,l,"page"),p=this.addToHttpParams(p,o,"size");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new kc,c=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/directory`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$2(w$1({context:i,params:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:c,reportProgress:e}))}browseNamespaceFilesExchange(n,r,l,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling browseNamespaceFilesExchange.");let p=new dn$2({encoder:this.encoder});p=this.addToHttpParams(p,r,"path"),p=this.addToHttpParams(p,l,"page"),p=this.addToHttpParams(p,o,"size");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new kc,c=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/directory`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$2(w$1({context:i,params:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:c,reportProgress:e}))}deleteCaseFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling deleteCaseFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling deleteCaseFileExchange.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}deleteNamespaceFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deleteNamespaceFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling deleteNamespaceFileExchange.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}downloadCaseFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling downloadCaseFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling downloadCaseFileExchange.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/download`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}downloadNamespaceFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling downloadNamespaceFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling downloadNamespaceFileExchange.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/download`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getCaseFileContentExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseFileContentExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling getCaseFileContentExchange.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/content`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getCaseFilesManifestExchange(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseFilesManifestExchange.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/manifest`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getNamespaceFileContentExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getNamespaceFileContentExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling getNamespaceFileContentExchange.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/content`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getNamespaceFilesManifestExchange(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getNamespaceFilesManifestExchange.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/manifest`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}uploadCaseFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling uploadCaseFileExchange.");if(r==null)throw new Error("Required parameter file was null or undefined when calling uploadCaseFileExchange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),c,f=false;f=i,f?c=new FormData:c=new dn$2({encoder:this.encoder}),r!==void 0&&(c=c.append("file",r)||c);let m="json";s&&(s.startsWith("text")?m="text":this.configuration.isJsonMime(s)?m="json":m="blob");let E=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:B,withCredentials:q}=this.configuration;return this.httpClient.request("post",`${B}${E}`,x$2(w$1({context:p,body:c,responseType:m},q?{withCredentials:q}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}uploadNamespaceFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling uploadNamespaceFileExchange.");if(r==null)throw new Error("Required parameter file was null or undefined when calling uploadNamespaceFileExchange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),c,f=false;f=i,f?c=new FormData:c=new dn$2({encoder:this.encoder}),r!==void 0&&(c=c.append("file",r)||c);let m="json";s&&(s.startsWith("text")?m="text":this.configuration.isJsonMime(s)?m="json":m="blob");let E=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:B,withCredentials:q}=this.configuration;return this.httpClient.request("post",`${B}${E}`,x$2(w$1({context:p,body:c,responseType:m},q?{withCredentials:q}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createFeedback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter feedbackInput was null or undefined when calling createFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/feedbacks",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByCaseEventFeedback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseEventId was null or undefined when calling listByCaseEventFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/feedbacks/by-case-event/${this.configuration.encodeParam({name:"caseEventId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByCaseFeedback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/feedbacks/by-parentId/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var re$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getGitWorkspacesConfiguration(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/git-workspaces-configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ae$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getMembersNamespaceMembership(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling getMembersNamespaceMembership.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateMembersNamespaceMembership(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersNamespaceMembership.");if(r==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersNamespaceMembership.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("patch",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;grantAdmin(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantAdmin.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantAdmin.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/admins/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}grantMember(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantMember.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantMember.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}revokeAdmin(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeAdmin.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeAdmin.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/admins/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}revokeMember(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeMember.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeMember.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}updateRolesByExternalId(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter syncUserRolesRequest was null or undefined when calling updateRolesByExternalId.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces/update-roles-by-external-id",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;handleCallbackOAuthCallback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter oAuthCallbackRequest was null or undefined when calling handleCallbackOAuthCallback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/oauth/callback",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var pe$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;debugAllPlugins(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins/debug",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}debugPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling debugPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/debug`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getAllPlugins(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}getPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling getPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}reloadAllAgentsPlugin(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins/reload-agents",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}reloadPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling reloadPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/reload`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}startPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling startPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/start`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}stopPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling stopPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/stop`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}unloadPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling unloadPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}uploadPlugin(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins/upload",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ce$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter prompt was null or undefined when calling createPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deletePrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deletePrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}exportPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}resolveEffectivePrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter promptEffectiveRequest was null or undefined when calling resolveEffectivePrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts/effective",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}searchPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter promptSearchRequest was null or undefined when calling searchPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}translateBatchPrompt(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter languageCode was null or undefined when calling translateBatchPrompt.");if(r==null)throw new Error("Required parameter promptBatchTranslateRequest was null or undefined when calling translateBatchPrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/prompts/translations/${this.configuration.encodeParam({name:"languageCode",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}translatePrompt(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling translatePrompt.");if(r==null)throw new Error("Required parameter languageCode was null or undefined when calling translatePrompt.");if(l==null)throw new Error("Required parameter promptTranslateRequest was null or undefined when calling translatePrompt.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new kc,d=e?.transferCache??true,i=["application/json"],c=this.configuration.selectHeaderContentType(i);c!==void 0&&(s=s.set("Content-Type",c));let f="json";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?f="json":f="blob");let b=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/translations/${this.configuration.encodeParam({name:"languageCode",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$2(w$1({context:a,body:l,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}updatePrompt(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updatePrompt.");if(r==null)throw new Error("Required parameter prompt was null or undefined when calling updatePrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var le=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;continueCostRunRunCost(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling continueCostRunRunCost.");if(r==null)throw new Error("Required parameter continueCostRequest was null or undefined when calling continueCostRunRunCost.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost/continue`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}getRunCost(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getRunCost.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}stopCostRunRunCost(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling stopCostRunRunCost.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost/stop`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var de$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter scheduledPrompt was null or undefined when calling createScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}disableScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling disableScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/disable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}enableScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling enableScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/enable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}resolveEffectiveScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter scheduledPromptEffectiveRequest was null or undefined when calling resolveEffectiveScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts/effective",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}searchScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter scheduledPromptSearchRequest was null or undefined when calling searchScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateScheduledPrompt(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateScheduledPrompt.");if(r==null)throw new Error("Required parameter scheduledPrompt was null or undefined when calling updateScheduledPrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var be$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter skill was null or undefined when calling createSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/skills",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/skills/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByParentSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listEffectiveSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listEffectiveSkill.");let t=new dn$2({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new kc,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/skills/effective",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}listPlatformSkill(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/skills/platform",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateSkill(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateSkill.");if(r==null)throw new Error("Required parameter skill was null or undefined when calling updateSkill.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;streamEventsCaseEventSse(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling streamEventsCaseEventSse.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"includePreviousEvents");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/events`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;invokeToolInvoke(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter toolInvokeRequest was null or undefined when calling invokeToolInvoke.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/tools/invoke",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listToolInvoke(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listToolInvoke.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/tools",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var he$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getUsageConfiguration(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/usage-configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ge$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter user was null or undefined when calling createUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getGroupsByExternalIdsUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter groupsByExternalIdsRequest was null or undefined when calling getGroupsByExternalIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users/groups-by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getMeUser(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/users/me",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listAllUser(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/users",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling listByExternalIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users/by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}revokeNamespaceAccessByExternalIdUser(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter externalId was null or undefined when calling revokeNamespaceAccessByExternalIdUser.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeNamespaceAccessByExternalIdUser.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/users/by-external-id/${this.configuration.encodeParam({name:"externalId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/access`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}revokeNamespaceAccessUser(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling revokeNamespaceAccessUser.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeNamespaceAccessUser.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/access`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateUser(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateUser.");if(r==null)throw new Error("Required parameter user was null or undefined when calling updateUser.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var Ce$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupCreateRequest was null or undefined when calling createUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/user-groups",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling deleteUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}findByNamespaceIdUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling findByNamespaceIdUserGroup.");let t=new dn$2({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new kc,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/user-groups",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}getByIdUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling getByIdUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getMembersUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling getMembersUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateUserGroup(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling updateUserGroup.");if(r==null)throw new Error("Required parameter userGroupUpdateRequest was null or undefined when calling updateUserGroup.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var qe=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(qe||{});var Me$1=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(Me$1||{});var Be$1=(t=>(t.REQUESTED="REQUESTED",t.PREPARING="PREPARING",t.READY="READY",t.FAILED="FAILED",t.DELETING="DELETING",t.REMOVED="REMOVED",t))(Be$1||{});var $e=(o=>(o.DETACHED="DETACHED",o.LOCAL_ONLY="LOCAL_ONLY",o.PUSHED="PUSHED",o.UNPUSHED_COMMITS="UNPUSHED_COMMITS",o.UNKNOWN="UNKNOWN",o))($e||{}),Ue=(t=>(t.DRAFT="DRAFT",t.OPEN="OPEN",t.MERGED="MERGED",t.CLOSED_UNMERGED="CLOSED_UNMERGED",t.NONE="NONE",t.UNKNOWN="UNKNOWN",t))(Ue||{});var Ne$1=(l=>(l.FREE_TEXT="FREE_TEXT",l.SINGLE_CHOICE="SINGLE_CHOICE",l.OPEN_CHOICE="OPEN_CHOICE",l.OAUTH_AUTHORIZE="OAUTH_AUTHORIZE",l))(Ne$1||{});function zc(C){return ft$2([typeof C=="string"?{provide:P,useValue:C}:{provide:y,useValue:new y(w$1({},C))}])}(class C{config=p(y);zone=p(J$3);connect(x){let n=`${this.config.basePath}/api/cases/${x}/events`;return new k$1(r=>{let l=this.zone.runOutsideAngular(()=>new EventSource(n)),o=t=>{try{let e=JSON.parse(t.data);this.zone.run(()=>r.next(e));}catch(e){this.zone.run(()=>r.error(new Error(`Failed to parse SSE event: ${e}`)));}};return l.addEventListener("case-event",o),l.onerror=()=>{},()=>l.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C{config=p(y);zone=p(J$3);connect(x){let n=`${this.config.basePath}/api/namespaces/${x}/case-invalidation`;return new k$1(r=>{let l=this.zone.runOutsideAngular(()=>new EventSource(n));return l.onopen=()=>this.zone.run(()=>r.next("connected")),l.addEventListener("namespace-case-invalidation",()=>this.zone.run(()=>r.next("invalidated"))),l.onerror=()=>{},()=>l.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var me$1=class C{http=p(jD);config=p(y);exportAsYaml(x){let n=`${this.config.basePath}/api/integration-configs/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ye=class C{http=p(jD);config=p(y);exportAsYaml(x){let n=`${this.config.basePath}/api/prompts/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var Ae$1=class C{http=p(jD);config=p(y);invoke(x){let n=`${this.config.basePath}/api/tools/invoke`;return this.http.post(n,x)}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};
|
|
564
|
-
var _=(function(s){return s[s.State=0]="State",s[s.Transition=1]="Transition",s[s.Sequence=2]="Sequence",s[s.Group=3]="Group",s[s.Animate=4]="Animate",s[s.Keyframes=5]="Keyframes",s[s.Style=6]="Style",s[s.Trigger=7]="Trigger",s[s.Reference=8]="Reference",s[s.AnimateChild=9]="AnimateChild",s[s.AnimateRef=10]="AnimateRef",s[s.Query=11]="Query",s[s.Stagger=12]="Stagger",s})(_||{}),B="*";function Xt(s,e=null){return {type:_.Sequence,steps:s,options:e}}function Ge(s){return {type:_.Style,styles:s,offset:null}}var j=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=false;_destroyed=false;_finished=false;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=true;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=true,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this._started=false,this._finished=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(e){this._position=this.totalTime?e*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},ie=class{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,n=0,i=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++t==r&&this._onFinish();}),a.onDestroy(()=>{++n==r&&this._onDestroy();}),a.onStart(()=>{++i==r&&this._onStart();});}),this.totalTime=this.players.reduce((a,o)=>Math.max(a,o.totalTime),0);}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this.players.forEach(e=>e.init());}onStart(e){this._onStartFns.push(e);}_onStart(){this.hasStarted()||(this._started=true,this._onStartFns.forEach(e=>e()),this._onStartFns=[]);}onDone(e){this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play());}pause(){this.players.forEach(e=>e.pause());}restart(){this.players.forEach(e=>e.restart());}finish(){this._onFinish(),this.players.forEach(e=>e.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=true,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this.players.forEach(e=>e.reset()),this._destroyed=false,this._finished=false,this._started=false;}setPosition(e){let t=e*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(i);});}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy();});}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},ce="!";function Zt(s){return new y$2(3e3,false)}function ti(){return new y$2(3100,false)}function ni(){return new y$2(3101,false)}function ii(s){return new y$2(3001,false)}function si(s){return new y$2(3003,false)}function ri(s){return new y$2(3004,false)}function en(s,e){return new y$2(3005,false)}function tn(){return new y$2(3006,false)}function nn(){return new y$2(3007,false)}function sn(s,e){return new y$2(3008,false)}function rn(s){return new y$2(3002,false)}function an(s,e,t,n,i){return new y$2(3010,false)}function on(){return new y$2(3011,false)}function ln(){return new y$2(3012,false)}function cn(){return new y$2(3200,false)}function un(){return new y$2(3202,false)}function hn(){return new y$2(3013,false)}function dn(s){return new y$2(3014,false)}function mn(s){return new y$2(3015,false)}function fn(s){return new y$2(3016,false)}function pn(s,e){return new y$2(3404,false)}function ai(s){return new y$2(3502,false)}function gn(s){return new y$2(3503,false)}function yn(){return new y$2(3300,false)}function _n(s){return new y$2(3504,false)}function Sn(s){return new y$2(3301,false)}function vn(s,e){return new y$2(3302,false)}function En(s){return new y$2(3303,false)}function bn(s,e){return new y$2(3400,false)}function Tn(s){return new y$2(3401,false)}function wn(s){return new y$2(3402,false)}function An(s,e){return new y$2(3505,false)}function V(s){switch(s.length){case 0:return new j;case 1:return s[0];default:return new ie(s)}}function Xe(s,e,t=new Map,n=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let c=l.get("offset"),h=c==a,u=h&&o||new Map;l.forEach((S,y)=>{let m=y,g=S;if(y!=="offset")switch(m=s.normalizePropertyName(m,i),g){case ce:g=t.get(y);break;case B:g=n.get(y);break;default:g=s.normalizeStyleValue(y,m,g,i);break}u.set(m,g);}),h||r.push(u),o=u,a=c;}),i.length)throw ai();return r}function ve(s,e,t,n){switch(e){case "start":s.onStart(()=>n(t&&We(t,"start",s)));break;case "done":s.onDone(()=>n(t&&We(t,"done",s)));break;case "destroy":s.onDestroy(()=>n(t&&We(t,"destroy",s)));break}}function We(s,e,t){let n=t.totalTime,i=!!t.disabled,r=Ee(s.element,s.triggerName,s.fromState,s.toState,e||s.phaseName,n??s.totalTime,i),a=s._data;return a!=null&&(r._data=a),r}function Ee(s,e,t,n,i="",r=0,a){return {element:s,triggerName:e,fromState:t,toState:n,phaseName:i,totalTime:r,disabled:!!a}}function R(s,e,t){let n=s.get(e);return n||s.set(e,n=t),n}function Ze(s){let e=s.indexOf(":"),t=s.substring(1,e),n=s.slice(e+1);return [t,n]}var oi=typeof document>"u"?null:document.documentElement;function be(s){let e=s.parentNode||s.host||null;return e===oi?null:e}function li(s){return s.substring(1,6)=="ebkit"}var X=null,Jt=false;function kn(s){X||(X=ci()||{},Jt=X.style?"WebkitAppearance"in X.style:false);let e=true;return X.style&&!li(s)&&(e=s in X.style,!e&&Jt&&(e="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in X.style)),e}function ci(){return typeof document<"u"?document.body:null}function Je(s,e){for(;e;){if(e===s)return true;e=be(e);}return false}function et(s,e,t){if(t)return Array.from(s.querySelectorAll(e));let n=s.querySelector(e);return n?[n]:[]}var ui=1e3,tt="{{",hi="}}",nt="ng-enter",Te="ng-leave",ue="ng-trigger",he=".ng-trigger",it="ng-animating",we=".ng-animating";function Q(s){if(typeof s=="number")return s;let e=s.match(/^(-?[\.\d]+)(m?s)/);return !e||e.length<2?0:He(parseFloat(e[1]),e[2])}function He(s,e){return e==="s"?s*ui:s}function de(s,e,t){return s.hasOwnProperty("duration")?s:mi(s,e,t)}var di=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function mi(s,e,t){let n,i=0,r="";if(typeof s=="string"){let a=s.match(di);if(a===null)return e.push(Zt()),{duration:0,delay:0,easing:""};n=He(parseFloat(a[1]),a[2]);let o=a[3];o!=null&&(i=He(parseFloat(o),a[4]));let l=a[5];l&&(r=l);}else n=s;if(!t){let a=false,o=e.length;n<0&&(e.push(ti()),a=true),i<0&&(e.push(ni()),a=true),a&&e.splice(o,0,Zt());}return {duration:n,delay:i,easing:r}}function Pn(s){return s.length?s[0]instanceof Map?s:s.map(e=>new Map(Object.entries(e))):[]}function z(s,e,t){e.forEach((n,i)=>{let r=Ae(i);t&&!t.has(i)&&t.set(i,s.style[r]),s.style[r]=n;});}function $(s,e){e.forEach((t,n)=>{let i=Ae(n);s.style[i]="";});}function se(s){return Array.isArray(s)?s.length==1?s[0]:Xt(s):s}function Dn(s,e,t){let n=e.params||{},i=st(s);i.length&&i.forEach(r=>{n.hasOwnProperty(r)||t.push(ii());});}var Ye=new RegExp(`${tt}\\s*(.+?)\\s*${hi}`,"g");function st(s){let e=[];if(typeof s=="string"){let t;for(;t=Ye.exec(s);)e.push(t[1]);Ye.lastIndex=0;}return e}function re(s,e,t){let n=`${s}`,i=n.replace(Ye,(r,a)=>{let o=e[a];return o==null&&(t.push(si()),o=""),o.toString()});return i==n?s:i}var fi=/-+([a-z0-9])/g;function Ae(s){return s.replace(fi,(...e)=>e[1].toUpperCase())}function Mn(s,e){return s===0||e===0}function Cn(s,e,t){if(t.size&&e.length){let n=e[0],i=[];if(t.forEach((r,a)=>{n.has(a)||i.push(a),n.set(a,r);}),i.length)for(let r=1;r<e.length;r++){let a=e[r];i.forEach(o=>a.set(o,ke(s,o)));}}return e}function F(s,e,t){switch(e.type){case _.Trigger:return s.visitTrigger(e,t);case _.State:return s.visitState(e,t);case _.Transition:return s.visitTransition(e,t);case _.Sequence:return s.visitSequence(e,t);case _.Group:return s.visitGroup(e,t);case _.Animate:return s.visitAnimate(e,t);case _.Keyframes:return s.visitKeyframes(e,t);case _.Style:return s.visitStyle(e,t);case _.Reference:return s.visitReference(e,t);case _.AnimateChild:return s.visitAnimateChild(e,t);case _.AnimateRef:return s.visitAnimateRef(e,t);case _.Query:return s.visitQuery(e,t);case _.Stagger:return s.visitStagger(e,t);default:throw ri(e.type)}}function ke(s,e){return window.getComputedStyle(s)[e]}var Et=(()=>{class s{validateStyleProperty(t){return kn(t)}containsElement(t,n){return Je(t,n)}getParentElement(t){return be(t)}query(t,n,i){return et(t,n,i)}computeStyle(t,n,i){return i||""}animate(t,n,i,r,a,o=[],l){return new j(i,r)}static \u0275fac=function(n){return new(n||s)};static \u0275prov=R$1({token:s,factory:s.\u0275fac})}return s})(),J=class{static NOOP=new Et},ee=class{};var pi=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Ne=class extends ee{normalizePropertyName(e,t){return Ae(e)}normalizeStyleValue(e,t,n,i){let r="",a=n.toString().trim();if(pi.has(t)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else {let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(en());}return a+r}};var Re="*";function gi(s,e){let t=[];return typeof s=="string"?s.split(/\s*,\s*/).forEach(n=>yi(n,t,e)):t.push(s),t}function yi(s,e,t){if(s[0]==":"){let l=_i(s,t);if(typeof l=="function"){e.push(l);return}s=l;}let n=s.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(mn()),e;let i=n[1],r=n[2],a=n[3];e.push(Nn(i,a));let o=i==Re&&a==Re;r[0]=="<"&&!o&&e.push(Nn(a,i));}function _i(s,e){switch(s){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,n)=>parseFloat(n)>parseFloat(t);case ":decrement":return (t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(fn()),"* => *"}}var Pe=new Set(["true","1"]),De=new Set(["false","0"]);function Nn(s,e){let t=Pe.has(s)||De.has(s),n=Pe.has(e)||De.has(e);return (i,r)=>{let a=s==Re||s==i,o=e==Re||e==r;return !a&&t&&typeof i=="boolean"&&(a=i?Pe.has(s):De.has(s)),!o&&n&&typeof r=="boolean"&&(o=r?Pe.has(e):De.has(e)),a&&o}}var Qn=":self",Si=new RegExp(`s*${Qn}s*,?`,"g");function jn(s,e,t,n){return new ut(s).build(e,t,n)}var Rn="",ut=class{_driver;constructor(e){this._driver=e;}build(e,t,n){let i=new ht(t);return this._resetContextStyleTimingState(i),F(this,se(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Rn,e.collectedStyles=new Map,e.collectedStyles.set(Rn,new Map),e.currentTime=0;}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(tn()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==_.State){let l=o,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t));}),l.name=c;}else if(o.type==_.Transition){let l=this.visitTransition(o,t);n+=l.queryCount,i+=l.depCount,a.push(l);}else t.errors.push(nn());}),{type:_.Trigger,name:e.name,states:r,transitions:a,queryCount:n,depCount:i,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set,a=i||{};n.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{st(l).forEach(c=>{a.hasOwnProperty(c)||r.add(c);});});}),r.size&&t.errors.push(sn(e.name,[...r.values()]));}return {type:_.State,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=F(this,se(e.animation),t),i=gi(e.expr,t.errors);return {type:_.Transition,matchers:i,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:Z(e.options)}}visitSequence(e,t){return {type:_.Sequence,steps:e.steps.map(n=>F(this,n,t)),options:Z(e.options)}}visitGroup(e,t){let n=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=n;let o=F(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:_.Group,steps:r,options:Z(e.options)}}visitAnimate(e,t){let n=Ti(e.timings,t.errors);t.currentAnimateTimings=n;let i,r=e.styles?e.styles:Ge({});if(r.type==_.Keyframes)i=this.visitKeyframes(r,t);else {let a=e.styles,o=false;if(!a){o=true;let c={};n.easing&&(c.easing=n.easing),a=Ge(c);}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l;}return t.currentAnimateTimings=null,{type:_.Animate,timings:n,style:i,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===B?n.push(o):t.errors.push(rn()):n.push(new Map(Object.entries(o)));let r=false,a=null;return n.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(tt)>=0){r=true;break}}}),{type:_.Style,styles:n,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),h=c.get(l),u=true;h&&(r!=i&&r>=h.startTime&&i<=h.endTime&&(t.errors.push(an(l,h.startTime,h.endTime)),u=false),r=h.startTime),u&&c.set(l,{startTime:r,endTime:i}),t.options&&Dn(o,t.options,t.errors);});});}visitKeyframes(e,t){let n={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(on()),n;let i=1,r=0,a=[],o=false,l=false,c=0,h=e.steps.map(w=>{let A=this._makeStyleAst(w,t),M=A.offset!=null?A.offset:bi(A.styles),P=0;return M!=null&&(r++,P=A.offset=M),l=l||P<0||P>1,o=o||P<c,c=P,a.push(P),A});l&&t.errors.push(ln()),o&&t.errors.push(cn());let u=e.steps.length,S=0;r>0&&r<u?t.errors.push(un()):r==0&&(S=i/(u-1));let y=u-1,m=t.currentTime,g=t.currentAnimateTimings,b=g.duration;return h.forEach((w,A)=>{let M=S>0?A==y?1:S*A:a[A],P=M*b;t.currentTime=m+g.delay+P,g.duration=P,this._validateStyleAst(w,t),w.offset=M,n.styles.push(w);}),n}visitReference(e,t){return {type:_.Reference,animation:F(this,se(e.animation),t),options:Z(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:Z(e.options)}}visitAnimateRef(e,t){return {type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:Z(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=vi(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,R(t.collectedStyles,t.currentQuerySelector,new Map);let o=F(this,se(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:_.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:Z(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(hn());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:de(e.timings,t.errors,true);return {type:_.Stagger,animation:F(this,se(e.animation),t),timings:n,options:null}}};function vi(s){let e=!!s.split(/\s*,\s*/).find(t=>t==Qn);return e&&(s=s.replace(Si,"")),s=s.replace(/@\*/g,he).replace(/@\w+/g,t=>he+"-"+t.slice(1)).replace(/:animating/g,we),[s,e]}function Ei(s){return s?w$1({},s):null}var ht=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e;}};function bi(s){if(typeof s=="string")return null;let e=null;if(Array.isArray(s))s.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset");}});else if(s instanceof Map&&s.has("offset")){let t=s;e=parseFloat(t.get("offset")),t.delete("offset");}return e}function Ti(s,e){if(s.hasOwnProperty("duration"))return s;if(typeof s=="number"){let r=de(s,e).duration;return rt(r,0,"")}let t=s;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=rt(0,0,"");return r.dynamic=true,r.strValue=t,r}let i=de(t,e);return rt(i.duration,i.delay,i.easing)}function Z(s){return s?(s=w$1({},s),s.params&&(s.params=Ei(s.params))):s={},s}function rt(s,e,t){return {duration:s,delay:e,easing:t}}function bt(s,e,t,n,i,r,a=null,o=false){return {type:1,element:s,keyframes:e,preStyleProps:t,postStyleProps:n,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var fe=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t);}has(e){return this._map.has(e)}clear(){this._map.clear();}},wi=1,Ai=":enter",ki=new RegExp(Ai,"g"),Pi=":leave",Di=new RegExp(Pi,"g");function Vn(s,e,t,n,i,r=new Map,a=new Map,o,l,c=[]){return new dt().buildKeyframes(s,e,t,n,i,r,a,o,l,c)}var dt=class{buildKeyframes(e,t,n,i,r,a,o,l,c,h=[]){c=c||new fe;let u=new mt(e,t,c,i,r,h,[]);u.options=l;let S=l.delay?Q(l.delay):0;u.currentTimeline.delayNextStep(S),u.currentTimeline.setStyles([a],null,u.errors,l),F(this,n,u);let y=u.timelines.filter(m=>m.containsAnimation());if(y.length&&o.size){let m;for(let g=y.length-1;g>=0;g--){let b=y[g];if(b.element===t){m=b;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([o],null,u.errors,l);}return y.length?y.map(m=>m.buildKeyframes()):[bt(t,[],[],[],0,S,"",false)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&t.transformIntoNewTimeline(a);}t.previousNode=e;}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e;}_applyAnimationRefDelays(e,t,n){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:Q(re(r,i?.params??{},t.errors));n.delayNextStep(a);}}}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime,a=n.duration!=null?Q(n.duration):null,o=n.delay!=null?Q(n.delay):null;return a!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,c.duration+c.delay);}),r}visitReference(e,t){t.updateOptions(e.options,true),F(this,e.animation,t),t.previousNode=e;}visitSequence(e,t){let n=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==_.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Fe);let a=Q(r.delay);i.delayNextStep(a);}e.steps.length&&(e.steps.forEach(a=>F(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e;}visitGroup(e,t){let n=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?Q(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),F(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline);}),n.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e;}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,i=t.params?re(n,t.params,t.errors):n;return de(i,t.errors)}else return {duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e;}visitStyle(e,t){let n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e;}visitKeyframes(e,t){let n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;o.forwardTime(c*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe();}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e;}visitQuery(e,t){let n=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?Q(i.delay):0;r&&(t.previousNode.type===_.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Fe);let a=n,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((c,h)=>{t.currentQueryIndex=h;let u=t.createSubContext(e.options,c);r&&u.delayNextStep(r),c===t.element&&(l=u.currentTimeline),F(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let S=u.currentTimeline.currentTime;a=Math.max(a,S);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e;}visitStagger(e,t){let n=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case "reverse":l=o-l;break;case "full":l=n.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let u=h.currentTime;F(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime);}},Fe={},mt=class s{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Fe;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,n,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.currentTimeline=l||new Oe(this._driver,t,0),o.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,i=this.options;n.duration!=null&&(i.duration=Q(n.duration)),n.delay!=null&&(i.delay=Q(n.delay));let r=n.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=re(r[o],a,this.errors));});}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(i=>{n[i]=t[i];});}}return e}createSubContext(e=null,t,n){let i=t||this.element,r=new s(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Fe,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},r=new ft(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e);}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e);}invokeQuery(e,t,n,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(ki,"."+this._enterClassName),e=e.replace(Di,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),o.push(...c);}return !r&&o.length==0&&a.push(dn()),o}},Oe=class s{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe();}containsAnimation(){switch(this._keyframes.size){case 0:return false;case 1:return this.hasCurrentStyleProperties();default:return true}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e;}fork(e,t){return this.applyStylesToKeyframe(),new s(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe));}forwardFrame(){this.duration+=wi,this._loadKeyframe();}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe();}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,t,n,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=Mi(e,this._globalTimelineStyles);for(let[o,l]of a){let c=re(l,r,n);this._pendingStyles.set(o,c),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??B),this._updateStyle(o,c);}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e);}));}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t);}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let i=this._styleSummary.get(n);(!i||t.time>i.time)&&this._updateStyle(n,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let c=new Map([...this._backFill,...o]);c.forEach((h,u)=>{h===ce?e.add(u):h===B&&t.add(u);}),n||c.set("offset",l/this.duration),i.push(c);});let r=[...e.values()],a=[...t.values()];if(n){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l];}return bt(this.element,i,r,a,this.duration,this.startTime,this.easing,false)}},ft=class extends Oe{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,n,i,r,a,o=false){super(e,t,a.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing};}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=n+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",Fn(o)),r.push(c);let h=e.length-1;for(let u=1;u<=h;u++){let S=new Map(e[u]),y=S.get("offset"),m=t+y*n;S.set("offset",Fn(m/a)),r.push(S);}n=a,t=0,i="",e=r;}return bt(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,true)}};function Fn(s,e=3){let t=Math.pow(10,e-1);return Math.round(s*t)/t}function Mi(s,e){let t=new Map,n;return s.forEach(i=>{if(i==="*"){n??=e.keys();for(let r of n)t.set(r,B);}else for(let[r,a]of i)t.set(r,a);}),t}function On(s,e,t,n,i,r,a,o,l,c,h,u,S){return {type:0,element:s,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:n,toStyles:a,timelines:o,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:S}}var at={},Ie=class{_triggerName;ast;_stateStyles;constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n;}match(e,t,n,i){return Ci(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,n):new Map}build(e,t,n,i,r,a,o,l,c,h){let u=[],S=this.ast.options&&this.ast.options.params||at,y=o&&o.params||at,m=this.buildStyles(n,y,u),g=l&&l.params||at,b=this.buildStyles(i,g,u),w=new Set,A=new Map,M=new Map,P=i==="void",te={params:Un(g,S),delay:this.ast.options?.delay},K=h?[]:Vn(e,t,this.ast.animation,r,a,m,b,te,c,u),C=0;return K.forEach(N=>{C=Math.max(N.duration+N.delay,C);}),u.length?On(t,this._triggerName,n,i,P,m,b,[],[],A,M,C,u):(K.forEach(N=>{let G=N.element,ne=R(A,G,new Set);N.preStyleProps.forEach(W=>ne.add(W));let wt=R(M,G,new Set);N.postStyleProps.forEach(W=>wt.add(W)),G!==t&&w.add(G);}),On(t,this._triggerName,n,i,P,m,b,K,[...w.values()],A,M,C))}};function Ci(s,e,t,n,i){return s.some(r=>r(e,t,n,i))}function Un(s,e){let t=w$1({},e);return Object.entries(s).forEach(([n,i])=>{i!=null&&(t[n]=i);}),t}var pt=class{styles;defaultParams;normalizer;constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n;}buildStyles(e,t){let n=new Map,i=Un(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=re(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),n.set(o,a);});}),n}};function Ni(s,e,t){return new gt(s,e,t)}var gt=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new pt(i.style,r,n));}),In(this.states,"true","1"),In(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new Ie(e,i,this.states));}),this.fallbackTransition=Ri(e,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(a=>a.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function Ri(s,e,t){let n=[(a,o)=>true],i={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new Ie(s,r,e)}function In(s,e,t){s.has(e)?s.has(t)||s.set(t,s.get(e)):s.has(t)&&s.set(e,s.get(t));}var Fi=new fe,yt=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n;}register(e,t){let n=[],i=[],r=jn(this._driver,t,n,i);if(n.length)throw gn();this._animations.set(e,r);}_buildPlayer(e,t,n){let i=e.element,r=Xe(this._normalizer,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],true)}create(e,t,n={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=Vn(this._driver,t,r,nt,Te,new Map,new Map,n,Fi,i),a.forEach(h=>{let u=R(o,h.element,new Map);h.postStyleProps.forEach(S=>u.set(S,null));})):(i.push(yn()),a=[]),i.length)throw _n();o.forEach((h,u)=>{h.forEach((S,y)=>{h.set(y,this._driver.computeStyle(u,y,B));});});let l=a.map(h=>{let u=o.get(h.element);return this._buildPlayer(h,new Map,u)}),c=V(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1);}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Sn();return t}listen(e,t,n,i){let r=Ee(t,"","","");return ve(this._getPlayer(e),n,r,i),()=>{}}command(e,t,n,i){if(n=="register"){this.register(e,i[0]);return}if(n=="create"){let a=i[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(n){case "play":r.play();break;case "pause":r.pause();break;case "reset":r.reset();break;case "restart":r.restart();break;case "finish":r.finish();break;case "init":r.init();break;case "setPosition":r.setPosition(parseFloat(i[0]));break;case "destroy":this.destroy(e);break}}},Ln="ng-animate-queued",Oi=".ng-animate-queued",ot="ng-animate-disabled",Ii=".ng-animate-disabled",Li="ng-star-inserted",Bi=".ng-star-inserted",zi=[],$n={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},xi={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},x="__ng_removed",pe=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),i=n?e.value:e;if(this.value=qi(i),n){let r=e,{value:a}=r,o=y$3(r,["value"]);this.options=o;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(i=>{n[i]==null&&(n[i]=t[i]);});}}},me="void",lt=new pe(me),_t=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this._hostClassName="ng-tns-"+e,L(t,this._hostClassName);}listen(e,t,n,i){if(!this._triggers.has(t))throw vn();if(n==null||n.length==0)throw En();if(!Qi(n))throw bn();let r=R(this._elementListeners,e,[]),a={name:t,phase:n,callback:i};r.push(a);let o=R(this._engine.statesByElement,e,new Map);return o.has(t)||(L(e,ue),L(e,ue+"-"+t),o.set(t,lt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t);});}}register(e,t){return this._triggers.has(e)?false:(this._triggers.set(e,t),true)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Tn();return t}trigger(e,t,n,i=true){let r=this._getTrigger(t),a=new ge(this.id,t,e),o=this._engine.statesByElement.get(e);o||(L(e,ue),L(e,ue+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),c=new pe(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),o.set(t,c),l||(l=lt),!(c.value===me)&&l.value===c.value){if(!Ui(l.params,c.params)){let g=[],b=r.matchStyles(l.value,l.params,g),w=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{$(e,b),z(e,w);});}return}let S=R(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy();});let y=r.matchTransition(l.value,c.value,e,c.params),m=false;if(!y){if(!i)return;y=r.fallbackTransition,m=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:a,isFallbackTransition:m}),m||(L(e,Ln),a.onStart(()=>{ae(e,Ln);})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let b=this._engine.playersByElement.get(e);if(b){let w=b.indexOf(a);w>=0&&b.splice(w,1);}}),this.players.push(a),S.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(i=>i.name!=e));});}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,he,true);n.forEach(i=>{if(i[x])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,false,true)):this.clearElementCache(i);}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)));}triggerLeaveAnimation(e,t,n,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){let h=this.trigger(e,c,me,i);h&&o.push(h);}}),o.length)return this._engine.markElementAsRemoved(this.id,e,true,t,a),n&&V(o).onDone(()=>this._engine.processLeaveNode(e)),true}return false}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let l=this._triggers.get(a).fallbackTransition,c=n.get(a)||lt,h=new pe(me),u=new ge(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:c,toState:h,player:u,isFallbackTransition:true});});}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,true))return;let i=false;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)i=true;else {let a=e;for(;a=a.parentNode;)if(n.statesByElement.get(a)){i=true;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,false,t);else {let r=e[x];(!r||r===$n)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t));}}insertNode(e,t){L(e,this._hostClassName);}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let r=n.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==n.triggerName){let l=Ee(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,ve(n.player,o.phase,l,o.callback);}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy();}):t.push(n);}),this._queue=[],t.sort((n,i)=>{let r=n.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},St=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t);}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n;}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n);});}),e}createNamespace(e,t){let n=new _t(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let a=false,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),a=true;break}o=this.driver.getParentElement(o);}a||n.unshift(e);}else n.push(e);return i.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++;}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(t),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let i of n.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r);}}return t}trigger(e,t,n,i){if(Me(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),true}return false}insertNode(e,t,n,i){if(!Me(t))return;let r=t[x];if(r&&r.setForRemoval){r.setForRemoval=false,r.setForMove=true;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1);}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,n);}i&&this.collectEnterElement(t);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),L(e,ot)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ae(e,ot));}removeNode(e,t,n){if(Me(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,n):this.markElementAsRemoved(e,t,false,n);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n);}else this._onRemovalComplete(t,n);}markElementAsRemoved(e,t,n,i,r){this.collectedLeaveElements.push(t),t[x]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:false,previousTriggersValues:r};}listen(e,t,n,i,r){return Me(t)?this._fetchNamespace(e).listen(t,n,i,r):()=>{}}_buildInstruction(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,he,true);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,we,true),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)));}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=true:n.destroy();});}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return V(this.players).onDone(()=>e());e();})}processLeaveNode(e){let t=e[x];if(t&&t.setForRemoval){if(e[x]=$n,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e);}this._onRemovalComplete(e,t.setForRemoval);}e.classList?.contains(ot)&&this.markElementAsDisabled(e,false),this.driver.query(e,Ii,true).forEach(n=>{this.markElementAsDisabled(n,false);});}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let i=this.collectedEnterElements[n];L(i,Li);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e);}finally{for(let i=0;i<n.length;i++)n[i]();}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let i=this.collectedLeaveElements[n];this.processLeaveNode(i);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?V(t).onDone(()=>{n.forEach(i=>i());}):n.forEach(i=>i());}}reportError(e){throw wn()}_flushAnimations(e,t){let n=new fe,i=[],r=new Map,a=[],o=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let f=this.driver.query(d,Oi,true);for(let p=0;p<f.length;p++)h.add(f[p]);});let u=this.bodyNode,S=Array.from(this.statesByElement.keys()),y=xn(S,this.collectedEnterElements),m=new Map,g=0;y.forEach((d,f)=>{let p=nt+g++;m.set(f,p),d.forEach(v=>L(v,p));});let b=[],w=new Set,A=new Set;for(let d=0;d<this.collectedLeaveElements.length;d++){let f=this.collectedLeaveElements[d],p=f[x];p&&p.setForRemoval&&(b.push(f),w.add(f),p.hasAnimation?this.driver.query(f,Bi,true).forEach(v=>w.add(v)):A.add(f));}let M=new Map,P=xn(S,Array.from(w));P.forEach((d,f)=>{let p=Te+g++;M.set(f,p),d.forEach(v=>L(v,p));}),e.push(()=>{y.forEach((d,f)=>{let p=m.get(f);d.forEach(v=>ae(v,p));}),P.forEach((d,f)=>{let p=M.get(f);d.forEach(v=>ae(v,p));}),b.forEach(d=>{this.processLeaveNode(d);});});let te=[],K=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let v=p.player,k=p.element;if(te.push(v),this.collectedEnterElements.length){let D=k[x];if(D&&D.setForMove){if(D.previousTriggersValues&&D.previousTriggersValues.has(p.triggerName)){let H=D.previousTriggersValues.get(p.triggerName),I=this.statesByElement.get(p.element);if(I&&I.has(p.triggerName)){let ye=I.get(p.triggerName);ye.value=H,I.set(p.triggerName,ye);}}v.destroy();return}}let q=!u||!this.driver.containsElement(u,k),O=M.get(k),U=m.get(k),T=this._buildInstruction(p,n,U,O,q);if(T.errors&&T.errors.length){K.push(T);return}if(q){v.onStart(()=>$(k,T.fromStyles)),v.onDestroy(()=>z(k,T.toStyles)),i.push(v);return}if(p.isFallbackTransition){v.onStart(()=>$(k,T.fromStyles)),v.onDestroy(()=>z(k,T.toStyles)),i.push(v);return}let Pt=[];T.timelines.forEach(D=>{D.stretchStartingKeyframe=true,this.disabledNodes.has(D.element)||Pt.push(D);}),T.timelines=Pt,n.append(k,T.timelines);let ei={instruction:T,player:v,element:k};a.push(ei),T.queriedElements.forEach(D=>R(o,D,[]).push(v)),T.preStyleProps.forEach((D,H)=>{if(D.size){let I=l.get(H);I||l.set(H,I=new Set),D.forEach((ye,Qe)=>I.add(Qe));}}),T.postStyleProps.forEach((D,H)=>{let I=c.get(H);I||c.set(H,I=new Set),D.forEach((ye,Qe)=>I.add(Qe));});});if(K.length){let d=[];K.forEach(f=>{d.push(An(f.triggerName,f.errors));}),te.forEach(f=>f.destroy()),this.reportError(d);}let C=new Map,N=new Map;a.forEach(d=>{let f=d.element;n.has(f)&&(N.set(f,f),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,C));}),i.forEach(d=>{let f=d.element;this._getPreviousPlayers(f,false,d.namespaceId,d.triggerName,null).forEach(v=>{R(C,f,[]).push(v),v.destroy();});});let G=b.filter(d=>Kn(d,l,c)),ne=new Map;zn(ne,this.driver,A,c,B).forEach(d=>{Kn(d,l,c)&&G.push(d);});let W=new Map;y.forEach((d,f)=>{zn(W,this.driver,new Set(d),l,ce);}),G.forEach(d=>{let f=ne.get(d),p=W.get(d);ne.set(d,new Map([...f?.entries()??[],...p?.entries()??[]]));});let qe=[],At=[],kt={};a.forEach(d=>{let{element:f,player:p,instruction:v}=d;if(n.has(f)){if(h.has(f)){p.onDestroy(()=>z(f,v.toStyles)),p.disabled=true,p.overrideTotalTime(v.totalTime),i.push(p);return}let k=kt;if(N.size>1){let O=f,U=[];for(;O=O.parentNode;){let T=N.get(O);if(T){k=T;break}U.push(O);}U.forEach(T=>N.set(T,k));}let q=this._buildAnimation(p.namespaceId,v,C,r,W,ne);if(p.setRealPlayer(q),k===kt)qe.push(p);else {let O=this.playersByElement.get(k);O&&O.length&&(p.parentPlayer=V(O)),i.push(p);}}else $(f,v.fromStyles),p.onDestroy(()=>z(f,v.toStyles)),At.push(p),h.has(f)&&i.push(p);}),At.forEach(d=>{let f=r.get(d.element);if(f&&f.length){let p=V(f);d.setRealPlayer(p);}}),i.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy();});for(let d=0;d<b.length;d++){let f=b[d],p=f[x];if(ae(f,Te),p&&p.hasAnimation)continue;let v=[];if(o.size){let q=o.get(f);q&&q.length&&v.push(...q);let O=this.driver.query(f,we,true);for(let U=0;U<O.length;U++){let T=o.get(O[U]);T&&T.length&&v.push(...T);}}let k=v.filter(q=>!q.destroyed);k.length?ji(this,f,k):this.processLeaveNode(f);}return b.length=0,qe.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let f=this.players.indexOf(d);this.players.splice(f,1);}),d.play();}),qe}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,t,n,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o);}else {let o=this.playersByElement.get(e);if(o){let l=!r||r==me;o.forEach(c=>{c.queued||!l&&c.triggerName!=i||a.push(c);});}}return (n||i)&&(a=a.filter(o=>!(n&&n!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,n){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let c=l.element,h=c!==r,u=R(n,c,[]);this._getPreviousPlayers(c,h,a,o,t.toState).forEach(y=>{let m=y.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),y.destroy(),u.push(y);});}$(r,t.fromStyles);}_buildAnimation(e,t,n,i,r,a){let o=t.triggerName,l=t.element,c=[],h=new Set,u=new Set,S=t.timelines.map(m=>{let g=m.element;h.add(g);let b=g[x];if(b&&b.removedBeforeQueried)return new j(m.duration,m.delay);let w=g!==l,A=Vi((n.get(g)||zi).map(C=>C.getRealPlayer())).filter(C=>{let N=C;return N.element?N.element===g:false}),M=r.get(g),P=a.get(g),te=Xe(this._normalizer,m.keyframes,M,P),K=this._buildPlayer(m,te,A);if(m.subTimeline&&i&&u.add(g),w){let C=new ge(e,o,g);C.setRealPlayer(K),c.push(C);}return K});c.forEach(m=>{R(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>Ki(this.playersByQueriedElement,m.element,m));}),h.forEach(m=>L(m,it));let y=V(S);return y.onDestroy(()=>{h.forEach(m=>ae(m,it)),z(l,t.toStyles);}),u.forEach(m=>{R(i,m,[]).push(y);}),y}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new j(e.duration,e.delay)}},ge=class{namespaceId;triggerName;element;_player=new j;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(i=>ve(e,n,void 0,i));}),this._queuedCallbacks.clear(),this._containsRealPlayer=true,this.overrideTotalTime(e.totalTime),this.queued=false);}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e;}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy());}_queueEvent(e,t){R(this._queuedCallbacks,e,[]).push(t);}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e);}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e);}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e);}init(){this._player.init();}hasStarted(){return this.queued?false:this._player.hasStarted()}play(){!this.queued&&this._player.play();}pause(){!this.queued&&this._player.pause();}restart(){!this.queued&&this._player.restart();}finish(){this._player.finish();}destroy(){this.destroyed=true,this._player.destroy();}reset(){!this.queued&&this._player.reset();}setPosition(e){this.queued||this._player.setPosition(e);}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e);}};function Ki(s,e,t){let n=s.get(e);if(n){if(n.length){let i=n.indexOf(t);n.splice(i,1);}n.length==0&&s.delete(e);}return n}function qi(s){return s??null}function Me(s){return s&&s.nodeType===1}function Qi(s){return s=="start"||s=="done"}function Bn(s,e){let t=s.style.display;return s.style.display=e??"none",t}function zn(s,e,t,n,i){let r=[];t.forEach(l=>r.push(Bn(l)));let a=[];n.forEach((l,c)=>{let h=new Map;l.forEach(u=>{let S=e.computeStyle(c,u,i);h.set(u,S),(!S||S.length==0)&&(c[x]=xi,a.push(c));}),s.set(c,h);});let o=0;return t.forEach(l=>Bn(l,r[o++])),a}function xn(s,e){let t=new Map;if(s.forEach(o=>t.set(o,[])),e.length==0)return t;let n=1,i=new Set(e),r=new Map;function a(o){if(!o)return n;let l=r.get(o);if(l)return l;let c=o.parentNode;return t.has(c)?l=c:i.has(c)?l=n:l=a(c),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==n&&t.get(l).push(o);}),t}function L(s,e){s.classList?.add(e);}function ae(s,e){s.classList?.remove(e);}function ji(s,e,t){V(t).onDone(()=>s.processLeaveNode(e));}function Vi(s){let e=[];return Gn(s,e),e}function Gn(s,e){for(let t=0;t<s.length;t++){let n=s[t];n instanceof ie?Gn(n.players,e):e.push(n);}}function Ui(s,e){let t=Object.keys(s),n=Object.keys(e);if(t.length!=n.length)return false;for(let i=0;i<t.length;i++){let r=t[i];if(!e.hasOwnProperty(r)||s[r]!==e[r])return false}return true}function Kn(s,e,t){let n=t.get(s);if(!n)return false;let i=e.get(s);return i?n.forEach(r=>i.add(r)):e.set(s,n),t.delete(s),true}var oe=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,n){this._driver=t,this._normalizer=n,this._transitionEngine=new St(e.body,t,n),this._timelineEngine=new yt(e.body,t,n),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r);}registerTrigger(e,t,n,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],c=[],h=jn(this._driver,r,l,c);if(l.length)throw pn();o=Ni(i,h,this._normalizer),this._triggerCache[a]=o;}this._transitionEngine.registerTrigger(t,i,o);}register(e,t){this._transitionEngine.register(e,t);}destroy(e,t){this._transitionEngine.destroy(e,t);}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i);}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n);}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t);}process(e,t,n,i){if(n.charAt(0)=="@"){let[r,a]=Ze(n),o=i;this._timelineEngine.command(r,t,a,o);}else this._transitionEngine.trigger(e,t,n,i);}listen(e,t,n,i,r){if(n.charAt(0)=="@"){let[a,o]=Ze(n);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,n,i,r)}flush(e=-1){this._transitionEngine.flush(e);}get players(){return [...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e);}};function $i(s,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=ct(e[0]),e.length>1&&(n=ct(e[e.length-1]))):e instanceof Map&&(t=ct(e)),t||n?new Gi(s,t,n):null}var Gi=(()=>{class s{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i;let r=s.initialStylesByElement.get(t);r||s.initialStylesByElement.set(t,r=new Map),this._initialStyles=r;}start(){this._state<1&&(this._startStyles&&z(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(z(this._element,this._initialStyles),this._endStyles&&(z(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&($(this._element,this._startStyles),this._endStyles=null),this._endStyles&&($(this._element,this._endStyles),this._endStyles=null),z(this._element,this._initialStyles),this._state=3);}}return s})();function ct(s){let e=null;return s.forEach((t,n)=>{Wi(n)&&(e=e||new Map,e.set(n,t));}),e}function Wi(s){return s==="display"||s==="position"}var Le=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=false;_finished=false;_started=false;_destroyed=false;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this._buildPlayer()&&this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=true;let e=this.keyframes,t=this._triggerWebAnimation(this.element,e,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=e.length?e[e.length-1]:new Map;let n=()=>this._onFinish();return t.addEventListener("finish",n),this.onDestroy(()=>{t.removeEventListener("finish",n);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n));}),t}_triggerWebAnimation(e,t,n){let i=this._convertKeyframesToObject(t);try{return e.animate(i,n)}catch(r){return null}}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}play(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=true,this._specialStyles&&this._specialStyles.start()),e.play());}pause(){this.init(),this.domPlayer?.pause();}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish());}reset(){this._resetDomPlayerState(),this._destroyed=false,this._finished=false,this._started=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}_resetDomPlayerState(){this.domPlayer?.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=true,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time);}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&e.set(i,this._finished?n:ke(this.element,i));}),this.currentSnapshot=e;}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},Be=class{validateStyleProperty(e){return true}validateAnimatableStyleProperty(e){return true}containsElement(e,t){return Je(e,t)}getParentElement(e){return be(e)}query(e,t,n){return et(e,t,n)}computeStyle(e,t,n){return ke(e,t)}animate(e,t,n,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:n,delay:i,fill:o};r&&(l.easing=r);let c=new Map,h=a.filter(y=>y instanceof Le);Mn(n,i)&&h.forEach(y=>{y.currentSnapshot.forEach((m,g)=>c.set(g,m));});let u=Pn(t).map(y=>new Map(y));u=Cn(e,u,c);let S=$i(e,u);return new Le(e,u,l,S)}};var Ce="@",Wn="@.disabled",ze=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,n,i){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=i;}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e);}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy();});}),this._onDestroy?.();}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,false);}insertBefore(e,t,n,i=true){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i);}removeChild(e,t,n,i){if(i){this.delegate.removeChild(e,t,n,i);return}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate);}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i);}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n);}addClass(e,t){this.delegate.addClass(e,t);}removeClass(e,t){this.delegate.removeClass(e,t);}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i);}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n);}setProperty(e,t,n){t.charAt(0)==Ce&&t==Wn?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n);}setValue(e,t){this.delegate.setValue(e,t);}listen(e,t,n,i){return this.delegate.listen(e,t,n,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t);}},vt=class extends ze{factory;constructor(e,t,n,i,r){super(t,n,i,r),this.factory=e,this.namespaceId=t;}setProperty(e,t,n){t.charAt(0)==Ce?t.charAt(1)=="."&&t==Wn?(n=n===void 0?true:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n);}listen(e,t,n,i){if(t.charAt(0)==Ce){let r=Hi(e),a=t.slice(1),o="";return a.charAt(0)!=Ce&&([a,o]=Yi(a)),this.engine.listen(this.namespaceId,r,a,o,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,n,l);})}return this.delegate.listen(e,t,n,i)}};function Hi(s){switch(s){case "body":return document.body;case "document":return document;case "window":return window;default:return s}}function Yi(s){let e=s.indexOf("."),t=s.substring(0,e),n=s.slice(e+1);return [t,n]}var xe=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i);};}createRenderer(e,t){let i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,h=c.get(i);if(!h){let u=()=>c.delete(i);h=new ze("",i,this.engine,u),c.set(i,h);}return h}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=c=>{Array.isArray(c)?c.forEach(o):this.engine.registerTrigger(r,a,e,c.name,c);};return t.data.animation.forEach(o),new vt(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o);}),this._animationCallbacksBuffer=[];});}),i.push([t,n]);}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId);}),this.delegate.end&&this.delegate.end();}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e);}};var Zi=(()=>{class s extends oe{constructor(t,n,i){super(t,n,i);}ngOnDestroy(){this.flush();}static \u0275fac=function(n){return new(n||s)(b(Q$3),b(J),b(ee))};static \u0275prov=R$1({token:s,factory:s.\u0275fac})}return s})();function Ji(){return new Ne}function es(){return new xe(p(rh),p(oe),p(J$3))}var Hn=[{provide:ee,useFactory:Ji},{provide:oe,useClass:Zi},{provide:hr,useFactory:es}],ts=[{provide:J,useFactory:()=>new Be},{provide:gI,useFactory:()=>"BrowserAnimations"},...Hn];function Yn(){return it$1("NgEagerAnimations"),[...ts]}var Tt=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"};var Xn=new D$1("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new Tt});var ns=s=>s[0]?.path==="agentos"?{consumed:s}:null,is=(s,e)=>{let t=e.url.replace(/^\/agentos/,"");return p(It$1).parseUrl(t.startsWith("/")?t:`/${t}`)},Zn=[{matcher:ns,canActivate:[is],children:[]},{path:"",loadChildren:()=>import('./chunk-DFY8wJzc.js').then(function(n){return n.N}).then(s=>s.AGENTOS_ROUTES)},{path:"**",redirectTo:""}];function ss(s){return ()=>B$1(null,null,function*(){let{UserStateService:e}=yield import('./chunk-DFY8wJzc.js').then(function(n){return n.N}),t=s.get(e);yield iw(t.loadMe().pipe(Wn$2(n=>(console.warn("Failed to load current user",n),_$3(null)))));})}var Jn={providers:[hI(),P$({eventCoalescing:true}),fA(Zn),RN(),Yn(),{provide:Xn,useValue:{duration:3e3}},{provide:Df,useFactory:ss,deps:[we$3],multi:true},zc({basePath:"/api/agentos"}),{provide:Ve$1,useValue:{width:"80vw",maxWidth:"80vw",maxHeight:"80vh"}}]};var Ke=class s{title="client";static \u0275fac=function(t){return new(t||s)};static \u0275cmp=vf({type:s,selectors:[["app-root"]],decls:1,vars:0,template:function(t,n){t&1&&lc(0,"router-outlet");},dependencies:[hA,Oh],encapsulation:2,changeDetection:1})};iN(Ke,Jn).catch(s=>console.error(s));"serviceWorker"in navigator&&true&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(s=>console.error("[SW] Registration failed:",s));});export{$t$1 as $,Ae$1 as A,vg as B,Cf as C,gv as D,Mi$2 as E,Sg as F,G,dT as H,Iv as I,mT as J,D as K,Le$2 as L,Me$4 as M,NT as N,De$3 as O,Ae$4 as P,j$3 as Q,Rf as R,Sf as S,mc as T,N$ as U,uc as V,W,kM as X,v_ as Y,Jy as Z,_$3 as _,yb as a,D$1 as a$,PT as a0,E_ as a1,g_ as a2,I_ as a3,$$1 as a4,Oe$1 as a5,Ee$1 as a6,Ve as a7,Os as a8,pw as a9,BM as aA,Mv as aB,_v as aC,y_ as aD,m_ as aE,w_ as aF,u_ as aG,F$1 as aH,B$1 as aI,iw as aJ,av as aK,nv as aL,iv as aM,_$1 as aN,Re$1 as aO,A$2 as aP,z$4 as aQ,Ce$1 as aR,W$3 as aS,be$4 as aT,vr as aU,Y$1 as aV,se$1 as aW,co as aX,Ft$1 as aY,kn$2 as aZ,Mm as a_,Wn$2 as aa,Xm as ab,Se as ac,gT as ad,Te$1 as ae,k as af,WT as ag,N as ah,Ie$1 as ai,Cv as aj,Ms as ak,pu as al,NC as am,gw as an,U as ao,Y as ap,we$1 as aq,Pn$2 as ar,ae$1 as as,z$1 as at,me$1 as au,de$1 as av,be$1 as aw,J$1 as ax,ne$1 as ay,he$3 as az,bf as b,ww as b$,Ys as b0,Ri$2 as b1,Er as b2,we$3 as b3,Z$2 as b4,sn$2 as b5,Ja as b6,lo as b7,tr as b8,cn$2 as b9,Ce$4 as bA,Ht as bB,_e as bC,I as bD,Mn$1 as bE,Dw as bF,vn$1 as bG,Aa as bH,ye$1 as bI,Nn$1 as bJ,U$1 as bK,Xn$1 as bL,_$2 as bM,Pr as bN,ft$1 as bO,Tt$1 as bP,Jr as bQ,en$1 as bR,Me$3 as bS,bt$1 as bT,Jn$1 as bU,ii$1 as bV,wi$1 as bW,Yi$1 as bX,Oe$2 as bY,A$ as bZ,ji$1 as b_,ae$2 as ba,Qy as bb,p_ as bc,xn$2 as bd,XS as be,y$2 as bf,kr as bg,k$1 as bh,xo as bi,ot$1 as bj,Eo as bk,_u as bl,Or as bm,Tu as bn,b as bo,Q$3 as bp,Qe as bq,pc as br,Ve$2 as bs,lp as bt,mp as bu,mt$1 as bv,ro as bw,On$2 as bx,et$1 as by,J$3 as bz,It$1 as c,Iw as c$,yi$1 as c0,bn$1 as c1,Nu as c2,nt$1 as c3,ge$2 as c4,R$ as c5,Zt$1 as c6,bi$2 as c7,ct$1 as c8,lt$1 as c9,qt$1 as cA,he$1 as cB,Dr as cC,ce$1 as cD,ye as cE,qe as cF,L$ as cG,Me$1 as cH,yw as cI,L$1 as cJ,dp as cK,ne as cL,Tw as cM,_w as cN,Mw as cO,x$ as cP,ee$1 as cQ,re$1 as cR,ko as cS,vp as cT,$e as cU,Ue as cV,Et$1 as cW,Ne$2 as cX,W$1 as cY,Be$1 as cZ,le as c_,zs as ca,AN as cb,AT as cc,xT as cd,Ni$1 as ce,ka as cf,uv as cg,Mf as ch,Nf as ci,fc as cj,oM as ck,pv as cl,ms as cm,AM as cn,dv as co,kT as cp,Xy as cq,ov as cr,l_ as cs,ge$1 as ct,uA as cu,Oh as cv,Sv as cw,Oo as cx,Mu as cy,Sw as cz,pT as d,Ne$1 as d0,te as d1,xf as d2,Z$1 as d3,jM as d4,PM as d5,UM as d6,Dg as d7,Tv as d8,bv as d9,O$ as da,lv as db,Tf as dc,_f as dd,pe$1 as de,bT as e,dc as f,cS as g,hT as h,ie$1 as i,jD as j,ig as k,lc as l,sg as m,yT as n,vT as o,p,R$1 as q,r_ as r,sS as s,tv as t,wr as u,vf as v,w$1 as w,x$2 as x,y,za as z};
|
|
564
|
+
var _=(function(s){return s[s.State=0]="State",s[s.Transition=1]="Transition",s[s.Sequence=2]="Sequence",s[s.Group=3]="Group",s[s.Animate=4]="Animate",s[s.Keyframes=5]="Keyframes",s[s.Style=6]="Style",s[s.Trigger=7]="Trigger",s[s.Reference=8]="Reference",s[s.AnimateChild=9]="AnimateChild",s[s.AnimateRef=10]="AnimateRef",s[s.Query=11]="Query",s[s.Stagger=12]="Stagger",s})(_||{}),B="*";function Xt(s,e=null){return {type:_.Sequence,steps:s,options:e}}function Ge(s){return {type:_.Style,styles:s,offset:null}}var j=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=false;_destroyed=false;_finished=false;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=true;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=true,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this._started=false,this._finished=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(e){this._position=this.totalTime?e*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},ie=class{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,n=0,i=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++t==r&&this._onFinish();}),a.onDestroy(()=>{++n==r&&this._onDestroy();}),a.onStart(()=>{++i==r&&this._onStart();});}),this.totalTime=this.players.reduce((a,o)=>Math.max(a,o.totalTime),0);}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this.players.forEach(e=>e.init());}onStart(e){this._onStartFns.push(e);}_onStart(){this.hasStarted()||(this._started=true,this._onStartFns.forEach(e=>e()),this._onStartFns=[]);}onDone(e){this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play());}pause(){this.players.forEach(e=>e.pause());}restart(){this.players.forEach(e=>e.restart());}finish(){this._onFinish(),this.players.forEach(e=>e.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=true,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this.players.forEach(e=>e.reset()),this._destroyed=false,this._finished=false,this._started=false;}setPosition(e){let t=e*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(i);});}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy();});}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},ce="!";function Zt(s){return new y$2(3e3,false)}function ti(){return new y$2(3100,false)}function ni(){return new y$2(3101,false)}function ii(s){return new y$2(3001,false)}function si(s){return new y$2(3003,false)}function ri(s){return new y$2(3004,false)}function en(s,e){return new y$2(3005,false)}function tn(){return new y$2(3006,false)}function nn(){return new y$2(3007,false)}function sn(s,e){return new y$2(3008,false)}function rn(s){return new y$2(3002,false)}function an(s,e,t,n,i){return new y$2(3010,false)}function on(){return new y$2(3011,false)}function ln(){return new y$2(3012,false)}function cn(){return new y$2(3200,false)}function un(){return new y$2(3202,false)}function hn(){return new y$2(3013,false)}function dn(s){return new y$2(3014,false)}function mn(s){return new y$2(3015,false)}function fn(s){return new y$2(3016,false)}function pn(s,e){return new y$2(3404,false)}function ai(s){return new y$2(3502,false)}function gn(s){return new y$2(3503,false)}function yn(){return new y$2(3300,false)}function _n(s){return new y$2(3504,false)}function Sn(s){return new y$2(3301,false)}function vn(s,e){return new y$2(3302,false)}function En(s){return new y$2(3303,false)}function bn(s,e){return new y$2(3400,false)}function Tn(s){return new y$2(3401,false)}function wn(s){return new y$2(3402,false)}function An(s,e){return new y$2(3505,false)}function V(s){switch(s.length){case 0:return new j;case 1:return s[0];default:return new ie(s)}}function Xe(s,e,t=new Map,n=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let c=l.get("offset"),h=c==a,u=h&&o||new Map;l.forEach((S,y)=>{let m=y,g=S;if(y!=="offset")switch(m=s.normalizePropertyName(m,i),g){case ce:g=t.get(y);break;case B:g=n.get(y);break;default:g=s.normalizeStyleValue(y,m,g,i);break}u.set(m,g);}),h||r.push(u),o=u,a=c;}),i.length)throw ai();return r}function ve(s,e,t,n){switch(e){case "start":s.onStart(()=>n(t&&We(t,"start",s)));break;case "done":s.onDone(()=>n(t&&We(t,"done",s)));break;case "destroy":s.onDestroy(()=>n(t&&We(t,"destroy",s)));break}}function We(s,e,t){let n=t.totalTime,i=!!t.disabled,r=Ee(s.element,s.triggerName,s.fromState,s.toState,e||s.phaseName,n??s.totalTime,i),a=s._data;return a!=null&&(r._data=a),r}function Ee(s,e,t,n,i="",r=0,a){return {element:s,triggerName:e,fromState:t,toState:n,phaseName:i,totalTime:r,disabled:!!a}}function R(s,e,t){let n=s.get(e);return n||s.set(e,n=t),n}function Ze(s){let e=s.indexOf(":"),t=s.substring(1,e),n=s.slice(e+1);return [t,n]}var oi=typeof document>"u"?null:document.documentElement;function be(s){let e=s.parentNode||s.host||null;return e===oi?null:e}function li(s){return s.substring(1,6)=="ebkit"}var X=null,Jt=false;function kn(s){X||(X=ci()||{},Jt=X.style?"WebkitAppearance"in X.style:false);let e=true;return X.style&&!li(s)&&(e=s in X.style,!e&&Jt&&(e="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in X.style)),e}function ci(){return typeof document<"u"?document.body:null}function Je(s,e){for(;e;){if(e===s)return true;e=be(e);}return false}function et(s,e,t){if(t)return Array.from(s.querySelectorAll(e));let n=s.querySelector(e);return n?[n]:[]}var ui=1e3,tt="{{",hi="}}",nt="ng-enter",Te="ng-leave",ue="ng-trigger",he=".ng-trigger",it="ng-animating",we=".ng-animating";function Q(s){if(typeof s=="number")return s;let e=s.match(/^(-?[\.\d]+)(m?s)/);return !e||e.length<2?0:He(parseFloat(e[1]),e[2])}function He(s,e){return e==="s"?s*ui:s}function de(s,e,t){return s.hasOwnProperty("duration")?s:mi(s,e,t)}var di=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function mi(s,e,t){let n,i=0,r="";if(typeof s=="string"){let a=s.match(di);if(a===null)return e.push(Zt()),{duration:0,delay:0,easing:""};n=He(parseFloat(a[1]),a[2]);let o=a[3];o!=null&&(i=He(parseFloat(o),a[4]));let l=a[5];l&&(r=l);}else n=s;if(!t){let a=false,o=e.length;n<0&&(e.push(ti()),a=true),i<0&&(e.push(ni()),a=true),a&&e.splice(o,0,Zt());}return {duration:n,delay:i,easing:r}}function Pn(s){return s.length?s[0]instanceof Map?s:s.map(e=>new Map(Object.entries(e))):[]}function z(s,e,t){e.forEach((n,i)=>{let r=Ae(i);t&&!t.has(i)&&t.set(i,s.style[r]),s.style[r]=n;});}function $(s,e){e.forEach((t,n)=>{let i=Ae(n);s.style[i]="";});}function se(s){return Array.isArray(s)?s.length==1?s[0]:Xt(s):s}function Dn(s,e,t){let n=e.params||{},i=st(s);i.length&&i.forEach(r=>{n.hasOwnProperty(r)||t.push(ii());});}var Ye=new RegExp(`${tt}\\s*(.+?)\\s*${hi}`,"g");function st(s){let e=[];if(typeof s=="string"){let t;for(;t=Ye.exec(s);)e.push(t[1]);Ye.lastIndex=0;}return e}function re(s,e,t){let n=`${s}`,i=n.replace(Ye,(r,a)=>{let o=e[a];return o==null&&(t.push(si()),o=""),o.toString()});return i==n?s:i}var fi=/-+([a-z0-9])/g;function Ae(s){return s.replace(fi,(...e)=>e[1].toUpperCase())}function Mn(s,e){return s===0||e===0}function Cn(s,e,t){if(t.size&&e.length){let n=e[0],i=[];if(t.forEach((r,a)=>{n.has(a)||i.push(a),n.set(a,r);}),i.length)for(let r=1;r<e.length;r++){let a=e[r];i.forEach(o=>a.set(o,ke(s,o)));}}return e}function F(s,e,t){switch(e.type){case _.Trigger:return s.visitTrigger(e,t);case _.State:return s.visitState(e,t);case _.Transition:return s.visitTransition(e,t);case _.Sequence:return s.visitSequence(e,t);case _.Group:return s.visitGroup(e,t);case _.Animate:return s.visitAnimate(e,t);case _.Keyframes:return s.visitKeyframes(e,t);case _.Style:return s.visitStyle(e,t);case _.Reference:return s.visitReference(e,t);case _.AnimateChild:return s.visitAnimateChild(e,t);case _.AnimateRef:return s.visitAnimateRef(e,t);case _.Query:return s.visitQuery(e,t);case _.Stagger:return s.visitStagger(e,t);default:throw ri(e.type)}}function ke(s,e){return window.getComputedStyle(s)[e]}var Et=(()=>{class s{validateStyleProperty(t){return kn(t)}containsElement(t,n){return Je(t,n)}getParentElement(t){return be(t)}query(t,n,i){return et(t,n,i)}computeStyle(t,n,i){return i||""}animate(t,n,i,r,a,o=[],l){return new j(i,r)}static \u0275fac=function(n){return new(n||s)};static \u0275prov=R$1({token:s,factory:s.\u0275fac})}return s})(),J=class{static NOOP=new Et},ee=class{};var pi=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Ne=class extends ee{normalizePropertyName(e,t){return Ae(e)}normalizeStyleValue(e,t,n,i){let r="",a=n.toString().trim();if(pi.has(t)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else {let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(en());}return a+r}};var Re="*";function gi(s,e){let t=[];return typeof s=="string"?s.split(/\s*,\s*/).forEach(n=>yi(n,t,e)):t.push(s),t}function yi(s,e,t){if(s[0]==":"){let l=_i(s,t);if(typeof l=="function"){e.push(l);return}s=l;}let n=s.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(mn()),e;let i=n[1],r=n[2],a=n[3];e.push(Nn(i,a));let o=i==Re&&a==Re;r[0]=="<"&&!o&&e.push(Nn(a,i));}function _i(s,e){switch(s){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,n)=>parseFloat(n)>parseFloat(t);case ":decrement":return (t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(fn()),"* => *"}}var Pe=new Set(["true","1"]),De=new Set(["false","0"]);function Nn(s,e){let t=Pe.has(s)||De.has(s),n=Pe.has(e)||De.has(e);return (i,r)=>{let a=s==Re||s==i,o=e==Re||e==r;return !a&&t&&typeof i=="boolean"&&(a=i?Pe.has(s):De.has(s)),!o&&n&&typeof r=="boolean"&&(o=r?Pe.has(e):De.has(e)),a&&o}}var Qn=":self",Si=new RegExp(`s*${Qn}s*,?`,"g");function jn(s,e,t,n){return new ut(s).build(e,t,n)}var Rn="",ut=class{_driver;constructor(e){this._driver=e;}build(e,t,n){let i=new ht(t);return this._resetContextStyleTimingState(i),F(this,se(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Rn,e.collectedStyles=new Map,e.collectedStyles.set(Rn,new Map),e.currentTime=0;}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(tn()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==_.State){let l=o,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t));}),l.name=c;}else if(o.type==_.Transition){let l=this.visitTransition(o,t);n+=l.queryCount,i+=l.depCount,a.push(l);}else t.errors.push(nn());}),{type:_.Trigger,name:e.name,states:r,transitions:a,queryCount:n,depCount:i,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set,a=i||{};n.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{st(l).forEach(c=>{a.hasOwnProperty(c)||r.add(c);});});}),r.size&&t.errors.push(sn(e.name,[...r.values()]));}return {type:_.State,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=F(this,se(e.animation),t),i=gi(e.expr,t.errors);return {type:_.Transition,matchers:i,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:Z(e.options)}}visitSequence(e,t){return {type:_.Sequence,steps:e.steps.map(n=>F(this,n,t)),options:Z(e.options)}}visitGroup(e,t){let n=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=n;let o=F(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:_.Group,steps:r,options:Z(e.options)}}visitAnimate(e,t){let n=Ti(e.timings,t.errors);t.currentAnimateTimings=n;let i,r=e.styles?e.styles:Ge({});if(r.type==_.Keyframes)i=this.visitKeyframes(r,t);else {let a=e.styles,o=false;if(!a){o=true;let c={};n.easing&&(c.easing=n.easing),a=Ge(c);}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l;}return t.currentAnimateTimings=null,{type:_.Animate,timings:n,style:i,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===B?n.push(o):t.errors.push(rn()):n.push(new Map(Object.entries(o)));let r=false,a=null;return n.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(tt)>=0){r=true;break}}}),{type:_.Style,styles:n,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),h=c.get(l),u=true;h&&(r!=i&&r>=h.startTime&&i<=h.endTime&&(t.errors.push(an(l,h.startTime,h.endTime)),u=false),r=h.startTime),u&&c.set(l,{startTime:r,endTime:i}),t.options&&Dn(o,t.options,t.errors);});});}visitKeyframes(e,t){let n={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(on()),n;let i=1,r=0,a=[],o=false,l=false,c=0,h=e.steps.map(w=>{let A=this._makeStyleAst(w,t),M=A.offset!=null?A.offset:bi(A.styles),P=0;return M!=null&&(r++,P=A.offset=M),l=l||P<0||P>1,o=o||P<c,c=P,a.push(P),A});l&&t.errors.push(ln()),o&&t.errors.push(cn());let u=e.steps.length,S=0;r>0&&r<u?t.errors.push(un()):r==0&&(S=i/(u-1));let y=u-1,m=t.currentTime,g=t.currentAnimateTimings,b=g.duration;return h.forEach((w,A)=>{let M=S>0?A==y?1:S*A:a[A],P=M*b;t.currentTime=m+g.delay+P,g.duration=P,this._validateStyleAst(w,t),w.offset=M,n.styles.push(w);}),n}visitReference(e,t){return {type:_.Reference,animation:F(this,se(e.animation),t),options:Z(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:Z(e.options)}}visitAnimateRef(e,t){return {type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:Z(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=vi(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,R(t.collectedStyles,t.currentQuerySelector,new Map);let o=F(this,se(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:_.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:Z(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(hn());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:de(e.timings,t.errors,true);return {type:_.Stagger,animation:F(this,se(e.animation),t),timings:n,options:null}}};function vi(s){let e=!!s.split(/\s*,\s*/).find(t=>t==Qn);return e&&(s=s.replace(Si,"")),s=s.replace(/@\*/g,he).replace(/@\w+/g,t=>he+"-"+t.slice(1)).replace(/:animating/g,we),[s,e]}function Ei(s){return s?w$1({},s):null}var ht=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e;}};function bi(s){if(typeof s=="string")return null;let e=null;if(Array.isArray(s))s.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset");}});else if(s instanceof Map&&s.has("offset")){let t=s;e=parseFloat(t.get("offset")),t.delete("offset");}return e}function Ti(s,e){if(s.hasOwnProperty("duration"))return s;if(typeof s=="number"){let r=de(s,e).duration;return rt(r,0,"")}let t=s;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=rt(0,0,"");return r.dynamic=true,r.strValue=t,r}let i=de(t,e);return rt(i.duration,i.delay,i.easing)}function Z(s){return s?(s=w$1({},s),s.params&&(s.params=Ei(s.params))):s={},s}function rt(s,e,t){return {duration:s,delay:e,easing:t}}function bt(s,e,t,n,i,r,a=null,o=false){return {type:1,element:s,keyframes:e,preStyleProps:t,postStyleProps:n,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var fe=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t);}has(e){return this._map.has(e)}clear(){this._map.clear();}},wi=1,Ai=":enter",ki=new RegExp(Ai,"g"),Pi=":leave",Di=new RegExp(Pi,"g");function Vn(s,e,t,n,i,r=new Map,a=new Map,o,l,c=[]){return new dt().buildKeyframes(s,e,t,n,i,r,a,o,l,c)}var dt=class{buildKeyframes(e,t,n,i,r,a,o,l,c,h=[]){c=c||new fe;let u=new mt(e,t,c,i,r,h,[]);u.options=l;let S=l.delay?Q(l.delay):0;u.currentTimeline.delayNextStep(S),u.currentTimeline.setStyles([a],null,u.errors,l),F(this,n,u);let y=u.timelines.filter(m=>m.containsAnimation());if(y.length&&o.size){let m;for(let g=y.length-1;g>=0;g--){let b=y[g];if(b.element===t){m=b;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([o],null,u.errors,l);}return y.length?y.map(m=>m.buildKeyframes()):[bt(t,[],[],[],0,S,"",false)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&t.transformIntoNewTimeline(a);}t.previousNode=e;}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e;}_applyAnimationRefDelays(e,t,n){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:Q(re(r,i?.params??{},t.errors));n.delayNextStep(a);}}}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime,a=n.duration!=null?Q(n.duration):null,o=n.delay!=null?Q(n.delay):null;return a!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,c.duration+c.delay);}),r}visitReference(e,t){t.updateOptions(e.options,true),F(this,e.animation,t),t.previousNode=e;}visitSequence(e,t){let n=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==_.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Fe);let a=Q(r.delay);i.delayNextStep(a);}e.steps.length&&(e.steps.forEach(a=>F(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e;}visitGroup(e,t){let n=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?Q(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),F(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline);}),n.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e;}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,i=t.params?re(n,t.params,t.errors):n;return de(i,t.errors)}else return {duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e;}visitStyle(e,t){let n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e;}visitKeyframes(e,t){let n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;o.forwardTime(c*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe();}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e;}visitQuery(e,t){let n=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?Q(i.delay):0;r&&(t.previousNode.type===_.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Fe);let a=n,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((c,h)=>{t.currentQueryIndex=h;let u=t.createSubContext(e.options,c);r&&u.delayNextStep(r),c===t.element&&(l=u.currentTimeline),F(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let S=u.currentTimeline.currentTime;a=Math.max(a,S);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e;}visitStagger(e,t){let n=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case "reverse":l=o-l;break;case "full":l=n.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let u=h.currentTime;F(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime);}},Fe={},mt=class s{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Fe;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,n,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.currentTimeline=l||new Oe(this._driver,t,0),o.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,i=this.options;n.duration!=null&&(i.duration=Q(n.duration)),n.delay!=null&&(i.delay=Q(n.delay));let r=n.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=re(r[o],a,this.errors));});}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(i=>{n[i]=t[i];});}}return e}createSubContext(e=null,t,n){let i=t||this.element,r=new s(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Fe,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},r=new ft(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e);}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e);}invokeQuery(e,t,n,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(ki,"."+this._enterClassName),e=e.replace(Di,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),o.push(...c);}return !r&&o.length==0&&a.push(dn()),o}},Oe=class s{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe();}containsAnimation(){switch(this._keyframes.size){case 0:return false;case 1:return this.hasCurrentStyleProperties();default:return true}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e;}fork(e,t){return this.applyStylesToKeyframe(),new s(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe));}forwardFrame(){this.duration+=wi,this._loadKeyframe();}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe();}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,t,n,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=Mi(e,this._globalTimelineStyles);for(let[o,l]of a){let c=re(l,r,n);this._pendingStyles.set(o,c),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??B),this._updateStyle(o,c);}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e);}));}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t);}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let i=this._styleSummary.get(n);(!i||t.time>i.time)&&this._updateStyle(n,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let c=new Map([...this._backFill,...o]);c.forEach((h,u)=>{h===ce?e.add(u):h===B&&t.add(u);}),n||c.set("offset",l/this.duration),i.push(c);});let r=[...e.values()],a=[...t.values()];if(n){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l];}return bt(this.element,i,r,a,this.duration,this.startTime,this.easing,false)}},ft=class extends Oe{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,n,i,r,a,o=false){super(e,t,a.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing};}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=n+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",Fn(o)),r.push(c);let h=e.length-1;for(let u=1;u<=h;u++){let S=new Map(e[u]),y=S.get("offset"),m=t+y*n;S.set("offset",Fn(m/a)),r.push(S);}n=a,t=0,i="",e=r;}return bt(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,true)}};function Fn(s,e=3){let t=Math.pow(10,e-1);return Math.round(s*t)/t}function Mi(s,e){let t=new Map,n;return s.forEach(i=>{if(i==="*"){n??=e.keys();for(let r of n)t.set(r,B);}else for(let[r,a]of i)t.set(r,a);}),t}function On(s,e,t,n,i,r,a,o,l,c,h,u,S){return {type:0,element:s,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:n,toStyles:a,timelines:o,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:S}}var at={},Ie=class{_triggerName;ast;_stateStyles;constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n;}match(e,t,n,i){return Ci(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,n):new Map}build(e,t,n,i,r,a,o,l,c,h){let u=[],S=this.ast.options&&this.ast.options.params||at,y=o&&o.params||at,m=this.buildStyles(n,y,u),g=l&&l.params||at,b=this.buildStyles(i,g,u),w=new Set,A=new Map,M=new Map,P=i==="void",te={params:Un(g,S),delay:this.ast.options?.delay},K=h?[]:Vn(e,t,this.ast.animation,r,a,m,b,te,c,u),C=0;return K.forEach(N=>{C=Math.max(N.duration+N.delay,C);}),u.length?On(t,this._triggerName,n,i,P,m,b,[],[],A,M,C,u):(K.forEach(N=>{let G=N.element,ne=R(A,G,new Set);N.preStyleProps.forEach(W=>ne.add(W));let wt=R(M,G,new Set);N.postStyleProps.forEach(W=>wt.add(W)),G!==t&&w.add(G);}),On(t,this._triggerName,n,i,P,m,b,K,[...w.values()],A,M,C))}};function Ci(s,e,t,n,i){return s.some(r=>r(e,t,n,i))}function Un(s,e){let t=w$1({},e);return Object.entries(s).forEach(([n,i])=>{i!=null&&(t[n]=i);}),t}var pt=class{styles;defaultParams;normalizer;constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n;}buildStyles(e,t){let n=new Map,i=Un(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=re(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),n.set(o,a);});}),n}};function Ni(s,e,t){return new gt(s,e,t)}var gt=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new pt(i.style,r,n));}),In(this.states,"true","1"),In(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new Ie(e,i,this.states));}),this.fallbackTransition=Ri(e,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(a=>a.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function Ri(s,e,t){let n=[(a,o)=>true],i={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new Ie(s,r,e)}function In(s,e,t){s.has(e)?s.has(t)||s.set(t,s.get(e)):s.has(t)&&s.set(e,s.get(t));}var Fi=new fe,yt=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n;}register(e,t){let n=[],i=[],r=jn(this._driver,t,n,i);if(n.length)throw gn();this._animations.set(e,r);}_buildPlayer(e,t,n){let i=e.element,r=Xe(this._normalizer,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],true)}create(e,t,n={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=Vn(this._driver,t,r,nt,Te,new Map,new Map,n,Fi,i),a.forEach(h=>{let u=R(o,h.element,new Map);h.postStyleProps.forEach(S=>u.set(S,null));})):(i.push(yn()),a=[]),i.length)throw _n();o.forEach((h,u)=>{h.forEach((S,y)=>{h.set(y,this._driver.computeStyle(u,y,B));});});let l=a.map(h=>{let u=o.get(h.element);return this._buildPlayer(h,new Map,u)}),c=V(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1);}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Sn();return t}listen(e,t,n,i){let r=Ee(t,"","","");return ve(this._getPlayer(e),n,r,i),()=>{}}command(e,t,n,i){if(n=="register"){this.register(e,i[0]);return}if(n=="create"){let a=i[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(n){case "play":r.play();break;case "pause":r.pause();break;case "reset":r.reset();break;case "restart":r.restart();break;case "finish":r.finish();break;case "init":r.init();break;case "setPosition":r.setPosition(parseFloat(i[0]));break;case "destroy":this.destroy(e);break}}},Ln="ng-animate-queued",Oi=".ng-animate-queued",ot="ng-animate-disabled",Ii=".ng-animate-disabled",Li="ng-star-inserted",Bi=".ng-star-inserted",zi=[],$n={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},xi={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},x="__ng_removed",pe=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),i=n?e.value:e;if(this.value=qi(i),n){let r=e,{value:a}=r,o=y$3(r,["value"]);this.options=o;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(i=>{n[i]==null&&(n[i]=t[i]);});}}},me="void",lt=new pe(me),_t=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this._hostClassName="ng-tns-"+e,L(t,this._hostClassName);}listen(e,t,n,i){if(!this._triggers.has(t))throw vn();if(n==null||n.length==0)throw En();if(!Qi(n))throw bn();let r=R(this._elementListeners,e,[]),a={name:t,phase:n,callback:i};r.push(a);let o=R(this._engine.statesByElement,e,new Map);return o.has(t)||(L(e,ue),L(e,ue+"-"+t),o.set(t,lt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t);});}}register(e,t){return this._triggers.has(e)?false:(this._triggers.set(e,t),true)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Tn();return t}trigger(e,t,n,i=true){let r=this._getTrigger(t),a=new ge(this.id,t,e),o=this._engine.statesByElement.get(e);o||(L(e,ue),L(e,ue+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),c=new pe(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),o.set(t,c),l||(l=lt),!(c.value===me)&&l.value===c.value){if(!Ui(l.params,c.params)){let g=[],b=r.matchStyles(l.value,l.params,g),w=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{$(e,b),z(e,w);});}return}let S=R(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy();});let y=r.matchTransition(l.value,c.value,e,c.params),m=false;if(!y){if(!i)return;y=r.fallbackTransition,m=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:a,isFallbackTransition:m}),m||(L(e,Ln),a.onStart(()=>{ae(e,Ln);})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let b=this._engine.playersByElement.get(e);if(b){let w=b.indexOf(a);w>=0&&b.splice(w,1);}}),this.players.push(a),S.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(i=>i.name!=e));});}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,he,true);n.forEach(i=>{if(i[x])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,false,true)):this.clearElementCache(i);}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)));}triggerLeaveAnimation(e,t,n,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){let h=this.trigger(e,c,me,i);h&&o.push(h);}}),o.length)return this._engine.markElementAsRemoved(this.id,e,true,t,a),n&&V(o).onDone(()=>this._engine.processLeaveNode(e)),true}return false}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let l=this._triggers.get(a).fallbackTransition,c=n.get(a)||lt,h=new pe(me),u=new ge(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:c,toState:h,player:u,isFallbackTransition:true});});}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,true))return;let i=false;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)i=true;else {let a=e;for(;a=a.parentNode;)if(n.statesByElement.get(a)){i=true;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,false,t);else {let r=e[x];(!r||r===$n)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t));}}insertNode(e,t){L(e,this._hostClassName);}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let r=n.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==n.triggerName){let l=Ee(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,ve(n.player,o.phase,l,o.callback);}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy();}):t.push(n);}),this._queue=[],t.sort((n,i)=>{let r=n.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},St=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t);}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n;}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n);});}),e}createNamespace(e,t){let n=new _t(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let a=false,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),a=true;break}o=this.driver.getParentElement(o);}a||n.unshift(e);}else n.push(e);return i.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++;}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(t),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let i of n.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r);}}return t}trigger(e,t,n,i){if(Me(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),true}return false}insertNode(e,t,n,i){if(!Me(t))return;let r=t[x];if(r&&r.setForRemoval){r.setForRemoval=false,r.setForMove=true;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1);}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,n);}i&&this.collectEnterElement(t);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),L(e,ot)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ae(e,ot));}removeNode(e,t,n){if(Me(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,n):this.markElementAsRemoved(e,t,false,n);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n);}else this._onRemovalComplete(t,n);}markElementAsRemoved(e,t,n,i,r){this.collectedLeaveElements.push(t),t[x]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:false,previousTriggersValues:r};}listen(e,t,n,i,r){return Me(t)?this._fetchNamespace(e).listen(t,n,i,r):()=>{}}_buildInstruction(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,he,true);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,we,true),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)));}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=true:n.destroy();});}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return V(this.players).onDone(()=>e());e();})}processLeaveNode(e){let t=e[x];if(t&&t.setForRemoval){if(e[x]=$n,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e);}this._onRemovalComplete(e,t.setForRemoval);}e.classList?.contains(ot)&&this.markElementAsDisabled(e,false),this.driver.query(e,Ii,true).forEach(n=>{this.markElementAsDisabled(n,false);});}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let i=this.collectedEnterElements[n];L(i,Li);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e);}finally{for(let i=0;i<n.length;i++)n[i]();}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let i=this.collectedLeaveElements[n];this.processLeaveNode(i);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?V(t).onDone(()=>{n.forEach(i=>i());}):n.forEach(i=>i());}}reportError(e){throw wn()}_flushAnimations(e,t){let n=new fe,i=[],r=new Map,a=[],o=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let f=this.driver.query(d,Oi,true);for(let p=0;p<f.length;p++)h.add(f[p]);});let u=this.bodyNode,S=Array.from(this.statesByElement.keys()),y=xn(S,this.collectedEnterElements),m=new Map,g=0;y.forEach((d,f)=>{let p=nt+g++;m.set(f,p),d.forEach(v=>L(v,p));});let b=[],w=new Set,A=new Set;for(let d=0;d<this.collectedLeaveElements.length;d++){let f=this.collectedLeaveElements[d],p=f[x];p&&p.setForRemoval&&(b.push(f),w.add(f),p.hasAnimation?this.driver.query(f,Bi,true).forEach(v=>w.add(v)):A.add(f));}let M=new Map,P=xn(S,Array.from(w));P.forEach((d,f)=>{let p=Te+g++;M.set(f,p),d.forEach(v=>L(v,p));}),e.push(()=>{y.forEach((d,f)=>{let p=m.get(f);d.forEach(v=>ae(v,p));}),P.forEach((d,f)=>{let p=M.get(f);d.forEach(v=>ae(v,p));}),b.forEach(d=>{this.processLeaveNode(d);});});let te=[],K=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let v=p.player,k=p.element;if(te.push(v),this.collectedEnterElements.length){let D=k[x];if(D&&D.setForMove){if(D.previousTriggersValues&&D.previousTriggersValues.has(p.triggerName)){let H=D.previousTriggersValues.get(p.triggerName),I=this.statesByElement.get(p.element);if(I&&I.has(p.triggerName)){let ye=I.get(p.triggerName);ye.value=H,I.set(p.triggerName,ye);}}v.destroy();return}}let q=!u||!this.driver.containsElement(u,k),O=M.get(k),U=m.get(k),T=this._buildInstruction(p,n,U,O,q);if(T.errors&&T.errors.length){K.push(T);return}if(q){v.onStart(()=>$(k,T.fromStyles)),v.onDestroy(()=>z(k,T.toStyles)),i.push(v);return}if(p.isFallbackTransition){v.onStart(()=>$(k,T.fromStyles)),v.onDestroy(()=>z(k,T.toStyles)),i.push(v);return}let Pt=[];T.timelines.forEach(D=>{D.stretchStartingKeyframe=true,this.disabledNodes.has(D.element)||Pt.push(D);}),T.timelines=Pt,n.append(k,T.timelines);let ei={instruction:T,player:v,element:k};a.push(ei),T.queriedElements.forEach(D=>R(o,D,[]).push(v)),T.preStyleProps.forEach((D,H)=>{if(D.size){let I=l.get(H);I||l.set(H,I=new Set),D.forEach((ye,Qe)=>I.add(Qe));}}),T.postStyleProps.forEach((D,H)=>{let I=c.get(H);I||c.set(H,I=new Set),D.forEach((ye,Qe)=>I.add(Qe));});});if(K.length){let d=[];K.forEach(f=>{d.push(An(f.triggerName,f.errors));}),te.forEach(f=>f.destroy()),this.reportError(d);}let C=new Map,N=new Map;a.forEach(d=>{let f=d.element;n.has(f)&&(N.set(f,f),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,C));}),i.forEach(d=>{let f=d.element;this._getPreviousPlayers(f,false,d.namespaceId,d.triggerName,null).forEach(v=>{R(C,f,[]).push(v),v.destroy();});});let G=b.filter(d=>Kn(d,l,c)),ne=new Map;zn(ne,this.driver,A,c,B).forEach(d=>{Kn(d,l,c)&&G.push(d);});let W=new Map;y.forEach((d,f)=>{zn(W,this.driver,new Set(d),l,ce);}),G.forEach(d=>{let f=ne.get(d),p=W.get(d);ne.set(d,new Map([...f?.entries()??[],...p?.entries()??[]]));});let qe=[],At=[],kt={};a.forEach(d=>{let{element:f,player:p,instruction:v}=d;if(n.has(f)){if(h.has(f)){p.onDestroy(()=>z(f,v.toStyles)),p.disabled=true,p.overrideTotalTime(v.totalTime),i.push(p);return}let k=kt;if(N.size>1){let O=f,U=[];for(;O=O.parentNode;){let T=N.get(O);if(T){k=T;break}U.push(O);}U.forEach(T=>N.set(T,k));}let q=this._buildAnimation(p.namespaceId,v,C,r,W,ne);if(p.setRealPlayer(q),k===kt)qe.push(p);else {let O=this.playersByElement.get(k);O&&O.length&&(p.parentPlayer=V(O)),i.push(p);}}else $(f,v.fromStyles),p.onDestroy(()=>z(f,v.toStyles)),At.push(p),h.has(f)&&i.push(p);}),At.forEach(d=>{let f=r.get(d.element);if(f&&f.length){let p=V(f);d.setRealPlayer(p);}}),i.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy();});for(let d=0;d<b.length;d++){let f=b[d],p=f[x];if(ae(f,Te),p&&p.hasAnimation)continue;let v=[];if(o.size){let q=o.get(f);q&&q.length&&v.push(...q);let O=this.driver.query(f,we,true);for(let U=0;U<O.length;U++){let T=o.get(O[U]);T&&T.length&&v.push(...T);}}let k=v.filter(q=>!q.destroyed);k.length?ji(this,f,k):this.processLeaveNode(f);}return b.length=0,qe.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let f=this.players.indexOf(d);this.players.splice(f,1);}),d.play();}),qe}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,t,n,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o);}else {let o=this.playersByElement.get(e);if(o){let l=!r||r==me;o.forEach(c=>{c.queued||!l&&c.triggerName!=i||a.push(c);});}}return (n||i)&&(a=a.filter(o=>!(n&&n!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,n){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let c=l.element,h=c!==r,u=R(n,c,[]);this._getPreviousPlayers(c,h,a,o,t.toState).forEach(y=>{let m=y.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),y.destroy(),u.push(y);});}$(r,t.fromStyles);}_buildAnimation(e,t,n,i,r,a){let o=t.triggerName,l=t.element,c=[],h=new Set,u=new Set,S=t.timelines.map(m=>{let g=m.element;h.add(g);let b=g[x];if(b&&b.removedBeforeQueried)return new j(m.duration,m.delay);let w=g!==l,A=Vi((n.get(g)||zi).map(C=>C.getRealPlayer())).filter(C=>{let N=C;return N.element?N.element===g:false}),M=r.get(g),P=a.get(g),te=Xe(this._normalizer,m.keyframes,M,P),K=this._buildPlayer(m,te,A);if(m.subTimeline&&i&&u.add(g),w){let C=new ge(e,o,g);C.setRealPlayer(K),c.push(C);}return K});c.forEach(m=>{R(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>Ki(this.playersByQueriedElement,m.element,m));}),h.forEach(m=>L(m,it));let y=V(S);return y.onDestroy(()=>{h.forEach(m=>ae(m,it)),z(l,t.toStyles);}),u.forEach(m=>{R(i,m,[]).push(y);}),y}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new j(e.duration,e.delay)}},ge=class{namespaceId;triggerName;element;_player=new j;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(i=>ve(e,n,void 0,i));}),this._queuedCallbacks.clear(),this._containsRealPlayer=true,this.overrideTotalTime(e.totalTime),this.queued=false);}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e;}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy());}_queueEvent(e,t){R(this._queuedCallbacks,e,[]).push(t);}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e);}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e);}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e);}init(){this._player.init();}hasStarted(){return this.queued?false:this._player.hasStarted()}play(){!this.queued&&this._player.play();}pause(){!this.queued&&this._player.pause();}restart(){!this.queued&&this._player.restart();}finish(){this._player.finish();}destroy(){this.destroyed=true,this._player.destroy();}reset(){!this.queued&&this._player.reset();}setPosition(e){this.queued||this._player.setPosition(e);}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e);}};function Ki(s,e,t){let n=s.get(e);if(n){if(n.length){let i=n.indexOf(t);n.splice(i,1);}n.length==0&&s.delete(e);}return n}function qi(s){return s??null}function Me(s){return s&&s.nodeType===1}function Qi(s){return s=="start"||s=="done"}function Bn(s,e){let t=s.style.display;return s.style.display=e??"none",t}function zn(s,e,t,n,i){let r=[];t.forEach(l=>r.push(Bn(l)));let a=[];n.forEach((l,c)=>{let h=new Map;l.forEach(u=>{let S=e.computeStyle(c,u,i);h.set(u,S),(!S||S.length==0)&&(c[x]=xi,a.push(c));}),s.set(c,h);});let o=0;return t.forEach(l=>Bn(l,r[o++])),a}function xn(s,e){let t=new Map;if(s.forEach(o=>t.set(o,[])),e.length==0)return t;let n=1,i=new Set(e),r=new Map;function a(o){if(!o)return n;let l=r.get(o);if(l)return l;let c=o.parentNode;return t.has(c)?l=c:i.has(c)?l=n:l=a(c),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==n&&t.get(l).push(o);}),t}function L(s,e){s.classList?.add(e);}function ae(s,e){s.classList?.remove(e);}function ji(s,e,t){V(t).onDone(()=>s.processLeaveNode(e));}function Vi(s){let e=[];return Gn(s,e),e}function Gn(s,e){for(let t=0;t<s.length;t++){let n=s[t];n instanceof ie?Gn(n.players,e):e.push(n);}}function Ui(s,e){let t=Object.keys(s),n=Object.keys(e);if(t.length!=n.length)return false;for(let i=0;i<t.length;i++){let r=t[i];if(!e.hasOwnProperty(r)||s[r]!==e[r])return false}return true}function Kn(s,e,t){let n=t.get(s);if(!n)return false;let i=e.get(s);return i?n.forEach(r=>i.add(r)):e.set(s,n),t.delete(s),true}var oe=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,n){this._driver=t,this._normalizer=n,this._transitionEngine=new St(e.body,t,n),this._timelineEngine=new yt(e.body,t,n),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r);}registerTrigger(e,t,n,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],c=[],h=jn(this._driver,r,l,c);if(l.length)throw pn();o=Ni(i,h,this._normalizer),this._triggerCache[a]=o;}this._transitionEngine.registerTrigger(t,i,o);}register(e,t){this._transitionEngine.register(e,t);}destroy(e,t){this._transitionEngine.destroy(e,t);}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i);}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n);}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t);}process(e,t,n,i){if(n.charAt(0)=="@"){let[r,a]=Ze(n),o=i;this._timelineEngine.command(r,t,a,o);}else this._transitionEngine.trigger(e,t,n,i);}listen(e,t,n,i,r){if(n.charAt(0)=="@"){let[a,o]=Ze(n);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,n,i,r)}flush(e=-1){this._transitionEngine.flush(e);}get players(){return [...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e);}};function $i(s,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=ct(e[0]),e.length>1&&(n=ct(e[e.length-1]))):e instanceof Map&&(t=ct(e)),t||n?new Gi(s,t,n):null}var Gi=(()=>{class s{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i;let r=s.initialStylesByElement.get(t);r||s.initialStylesByElement.set(t,r=new Map),this._initialStyles=r;}start(){this._state<1&&(this._startStyles&&z(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(z(this._element,this._initialStyles),this._endStyles&&(z(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&($(this._element,this._startStyles),this._endStyles=null),this._endStyles&&($(this._element,this._endStyles),this._endStyles=null),z(this._element,this._initialStyles),this._state=3);}}return s})();function ct(s){let e=null;return s.forEach((t,n)=>{Wi(n)&&(e=e||new Map,e.set(n,t));}),e}function Wi(s){return s==="display"||s==="position"}var Le=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=false;_finished=false;_started=false;_destroyed=false;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this._buildPlayer()&&this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=true;let e=this.keyframes,t=this._triggerWebAnimation(this.element,e,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=e.length?e[e.length-1]:new Map;let n=()=>this._onFinish();return t.addEventListener("finish",n),this.onDestroy(()=>{t.removeEventListener("finish",n);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n));}),t}_triggerWebAnimation(e,t,n){let i=this._convertKeyframesToObject(t);try{return e.animate(i,n)}catch(r){return null}}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}play(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=true,this._specialStyles&&this._specialStyles.start()),e.play());}pause(){this.init(),this.domPlayer?.pause();}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish());}reset(){this._resetDomPlayerState(),this._destroyed=false,this._finished=false,this._started=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}_resetDomPlayerState(){this.domPlayer?.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=true,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time);}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&e.set(i,this._finished?n:ke(this.element,i));}),this.currentSnapshot=e;}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},Be=class{validateStyleProperty(e){return true}validateAnimatableStyleProperty(e){return true}containsElement(e,t){return Je(e,t)}getParentElement(e){return be(e)}query(e,t,n){return et(e,t,n)}computeStyle(e,t,n){return ke(e,t)}animate(e,t,n,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:n,delay:i,fill:o};r&&(l.easing=r);let c=new Map,h=a.filter(y=>y instanceof Le);Mn(n,i)&&h.forEach(y=>{y.currentSnapshot.forEach((m,g)=>c.set(g,m));});let u=Pn(t).map(y=>new Map(y));u=Cn(e,u,c);let S=$i(e,u);return new Le(e,u,l,S)}};var Ce="@",Wn="@.disabled",ze=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,n,i){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=i;}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e);}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy();});}),this._onDestroy?.();}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,false);}insertBefore(e,t,n,i=true){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i);}removeChild(e,t,n,i){if(i){this.delegate.removeChild(e,t,n,i);return}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate);}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i);}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n);}addClass(e,t){this.delegate.addClass(e,t);}removeClass(e,t){this.delegate.removeClass(e,t);}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i);}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n);}setProperty(e,t,n){t.charAt(0)==Ce&&t==Wn?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n);}setValue(e,t){this.delegate.setValue(e,t);}listen(e,t,n,i){return this.delegate.listen(e,t,n,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t);}},vt=class extends ze{factory;constructor(e,t,n,i,r){super(t,n,i,r),this.factory=e,this.namespaceId=t;}setProperty(e,t,n){t.charAt(0)==Ce?t.charAt(1)=="."&&t==Wn?(n=n===void 0?true:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n);}listen(e,t,n,i){if(t.charAt(0)==Ce){let r=Hi(e),a=t.slice(1),o="";return a.charAt(0)!=Ce&&([a,o]=Yi(a)),this.engine.listen(this.namespaceId,r,a,o,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,n,l);})}return this.delegate.listen(e,t,n,i)}};function Hi(s){switch(s){case "body":return document.body;case "document":return document;case "window":return window;default:return s}}function Yi(s){let e=s.indexOf("."),t=s.substring(0,e),n=s.slice(e+1);return [t,n]}var xe=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i);};}createRenderer(e,t){let i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,h=c.get(i);if(!h){let u=()=>c.delete(i);h=new ze("",i,this.engine,u),c.set(i,h);}return h}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=c=>{Array.isArray(c)?c.forEach(o):this.engine.registerTrigger(r,a,e,c.name,c);};return t.data.animation.forEach(o),new vt(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o);}),this._animationCallbacksBuffer=[];});}),i.push([t,n]);}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId);}),this.delegate.end&&this.delegate.end();}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e);}};var Zi=(()=>{class s extends oe{constructor(t,n,i){super(t,n,i);}ngOnDestroy(){this.flush();}static \u0275fac=function(n){return new(n||s)(b(Q$3),b(J),b(ee))};static \u0275prov=R$1({token:s,factory:s.\u0275fac})}return s})();function Ji(){return new Ne}function es(){return new xe(p(rh),p(oe),p(J$3))}var Hn=[{provide:ee,useFactory:Ji},{provide:oe,useClass:Zi},{provide:hr,useFactory:es}],ts=[{provide:J,useFactory:()=>new Be},{provide:gI,useFactory:()=>"BrowserAnimations"},...Hn];function Yn(){return it$1("NgEagerAnimations"),[...ts]}var Tt=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"};var Xn=new D$1("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new Tt});var ns=s=>s[0]?.path==="agentos"?{consumed:s}:null,is=(s,e)=>{let t=e.url.replace(/^\/agentos/,"");return p(It$1).parseUrl(t.startsWith("/")?t:`/${t}`)},Zn=[{matcher:ns,canActivate:[is],children:[]},{path:"",loadChildren:()=>import('./chunk-DdISK7Z0.js').then(function(n){return n.N}).then(s=>s.AGENTOS_ROUTES)},{path:"**",redirectTo:""}];function ss(s){return ()=>B$1(null,null,function*(){let{UserStateService:e}=yield import('./chunk-DdISK7Z0.js').then(function(n){return n.N}),t=s.get(e);yield iw(t.loadMe().pipe(Wn$2(n=>(console.warn("Failed to load current user",n),_$3(null)))));})}var Jn={providers:[hI(),P$({eventCoalescing:true}),fA(Zn),RN(),Yn(),{provide:Xn,useValue:{duration:3e3}},{provide:Df,useFactory:ss,deps:[we$3],multi:true},zc({basePath:"/api/agentos"}),{provide:Ve$1,useValue:{width:"80vw",maxWidth:"80vw",maxHeight:"80vh"}}]};var Ke=class s{title="client";static \u0275fac=function(t){return new(t||s)};static \u0275cmp=vf({type:s,selectors:[["app-root"]],decls:1,vars:0,template:function(t,n){t&1&&lc(0,"router-outlet");},dependencies:[hA,Oh],encapsulation:2,changeDetection:1})};iN(Ke,Jn).catch(s=>console.error(s));"serviceWorker"in navigator&&true&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(s=>console.error("[SW] Registration failed:",s));});export{$t$1 as $,Ae$1 as A,vg as B,Cf as C,gv as D,Mi$2 as E,Sg as F,G,dT as H,Iv as I,mT as J,D as K,Le$2 as L,Me$4 as M,NT as N,De$3 as O,Ae$4 as P,j$3 as Q,Rf as R,Sf as S,mc as T,N$ as U,uc as V,W,kM as X,v_ as Y,Jy as Z,_$3 as _,yb as a,D$1 as a$,PT as a0,E_ as a1,g_ as a2,I_ as a3,$$1 as a4,Oe$1 as a5,Ee$1 as a6,Ve as a7,Os as a8,pw as a9,BM as aA,Mv as aB,_v as aC,y_ as aD,m_ as aE,w_ as aF,u_ as aG,F$1 as aH,B$1 as aI,iw as aJ,av as aK,nv as aL,iv as aM,_$1 as aN,Re$1 as aO,A$2 as aP,z$4 as aQ,Ce$1 as aR,W$3 as aS,be$4 as aT,vr as aU,Y$1 as aV,se$1 as aW,co as aX,Ft$1 as aY,kn$2 as aZ,Mm as a_,Wn$2 as aa,Xm as ab,Se as ac,gT as ad,Te$1 as ae,k as af,WT as ag,N as ah,Ie$1 as ai,Cv as aj,Ms as ak,pu as al,NC as am,gw as an,U as ao,Y as ap,we$1 as aq,Pn$2 as ar,ae$1 as as,z$1 as at,me$1 as au,de$1 as av,be$1 as aw,J$1 as ax,ne$1 as ay,he$3 as az,bf as b,ww as b$,Ys as b0,Ri$2 as b1,Er as b2,we$3 as b3,Z$2 as b4,sn$2 as b5,Ja as b6,lo as b7,tr as b8,cn$2 as b9,Ce$4 as bA,Ht as bB,_e as bC,I as bD,Mn$1 as bE,Dw as bF,vn$1 as bG,Aa as bH,ye$1 as bI,Nn$1 as bJ,U$1 as bK,Xn$1 as bL,_$2 as bM,Pr as bN,ft$1 as bO,Tt$1 as bP,Jr as bQ,en$1 as bR,Me$3 as bS,bt$1 as bT,Jn$1 as bU,ii$1 as bV,wi$1 as bW,Yi$1 as bX,Oe$2 as bY,A$ as bZ,ji$1 as b_,ae$2 as ba,Qy as bb,p_ as bc,xn$2 as bd,XS as be,y$2 as bf,kr as bg,k$1 as bh,xo as bi,ot$1 as bj,Eo as bk,_u as bl,Or as bm,Tu as bn,b as bo,Q$3 as bp,Qe as bq,pc as br,Ve$2 as bs,lp as bt,mp as bu,mt$1 as bv,ro as bw,On$2 as bx,et$1 as by,J$3 as bz,It$1 as c,Iw as c$,yi$1 as c0,bn$1 as c1,Nu as c2,nt$1 as c3,ge$2 as c4,R$ as c5,Zt$1 as c6,bi$2 as c7,ct$1 as c8,lt$1 as c9,qt$1 as cA,he$1 as cB,Dr as cC,ce$1 as cD,ye as cE,qe as cF,L$ as cG,Me$1 as cH,yw as cI,L$1 as cJ,dp as cK,ne as cL,Tw as cM,_w as cN,Mw as cO,x$ as cP,ee$1 as cQ,re$1 as cR,ko as cS,vp as cT,$e as cU,Ue as cV,Et$1 as cW,Ne$2 as cX,W$1 as cY,Be$1 as cZ,le as c_,zs as ca,AN as cb,AT as cc,xT as cd,Ni$1 as ce,ka as cf,uv as cg,Mf as ch,Nf as ci,fc as cj,oM as ck,pv as cl,ms as cm,AM as cn,dv as co,kT as cp,Xy as cq,ov as cr,l_ as cs,ge$1 as ct,uA as cu,Oh as cv,Sv as cw,Oo as cx,Mu as cy,Sw as cz,pT as d,Ne$1 as d0,te as d1,xf as d2,Z$1 as d3,jM as d4,PM as d5,UM as d6,Dg as d7,Tv as d8,bv as d9,O$ as da,lv as db,Tf as dc,_f as dd,pe$1 as de,bT as e,dc as f,cS as g,hT as h,ie$1 as i,jD as j,ig as k,lc as l,sg as m,yT as n,vT as o,p,R$1 as q,r_ as r,sS as s,tv as t,wr as u,vf as v,w$1 as w,x$2 as x,y,za as z};
|