@knoflows/engine 0.1.0-alpha.0 → 0.1.0-alpha.10

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.
Files changed (83) hide show
  1. package/README.md +2 -2
  2. package/dist/engine.js +33 -128
  3. package/dist/migrations/20260917165450_baseline/migration.sql +127 -0
  4. package/dist/migrations/20260917165450_baseline/snapshot.json +1212 -0
  5. package/dist/migrations/20260918025930_context_files/migration.sql +7 -0
  6. package/dist/migrations/20260918025930_context_files/snapshot.json +1275 -0
  7. package/dist/migrations/20260918074816_large_kate_bishop/migration.sql +8 -0
  8. package/dist/migrations/20260918074816_large_kate_bishop/snapshot.json +1338 -0
  9. package/package.json +19 -10
  10. package/static/assets/i18n/en.json +261 -14
  11. package/static/assets/i18n/es.json +261 -14
  12. package/static/{chunk-DLA1DsR_.js → chunk-2KSNHCgb.js} +1 -1
  13. package/static/chunk-3mppll1n.js +1 -0
  14. package/static/chunk-6BQlxALO.js +1 -0
  15. package/static/chunk-A4AkMf2s.js +1 -0
  16. package/static/chunk-B2hO-qT3.js +1 -0
  17. package/static/chunk-B8MrNxxk.js +1 -0
  18. package/static/chunk-BAc0DRm8.js +1 -0
  19. package/static/chunk-BFkZ796p.js +7 -0
  20. package/static/chunk-BNOYZq-b.js +1 -0
  21. package/static/chunk-BUuwGTt7.js +66 -0
  22. package/static/chunk-BVw7xkK9.js +1 -0
  23. package/static/chunk-BbcTWKT2.js +1 -0
  24. package/static/chunk-BhGgxvgu.js +1 -0
  25. package/static/chunk-BjZIiizu.js +1 -0
  26. package/static/chunk-CDWIMt6y.js +1 -0
  27. package/static/{chunk-B8aKNL-C.js → chunk-CEcbtdnK.js} +1 -1
  28. package/static/chunk-CJDp11v5.js +1 -0
  29. package/static/chunk-CJRNatUw.js +1 -0
  30. package/static/chunk-CWbxWv5I.js +1 -0
  31. package/static/chunk-Cd8F2jeN.js +1 -0
  32. package/static/chunk-Cf_xd8ER.js +1 -0
  33. package/static/chunk-CgqRVtSF.js +1 -0
  34. package/static/chunk-CxBYhrEj.js +1 -0
  35. package/static/chunk-D6YfO72h.js +1 -0
  36. package/static/chunk-DNOjVPY0.js +1 -0
  37. package/static/chunk-DQnMulwi.js +1 -0
  38. package/static/chunk-DblClAqu.js +1 -0
  39. package/static/chunk-DjibVmY7.js +1 -0
  40. package/static/chunk-DoXxOh8j.js +1 -0
  41. package/static/chunk-Ojn34cvU.js +1 -0
  42. package/static/chunk-W5GAgssE.js +1 -0
  43. package/static/chunk-XLpSkczx.js +1 -0
  44. package/static/chunk-cHfOiAJm.js +1 -0
  45. package/static/chunk-eSxb3-OU.js +1 -0
  46. package/static/chunk-hZzW00VR.js +1 -0
  47. package/static/chunk-jct1_zOr.js +1 -0
  48. package/static/chunk-mzyds3TS.js +1 -0
  49. package/static/chunk-tYnBYi0l.js +1 -0
  50. package/static/chunk-wbdetocK.js +5 -0
  51. package/static/index.html +6 -3
  52. package/static/main-MNK6ZYDO.js +249 -0
  53. package/static/styles-6MW3GE4V.css +1 -0
  54. package/static/chunk-8joH1h3C.js +0 -1
  55. package/static/chunk-B4A7hSM3.js +0 -1
  56. package/static/chunk-B5hULR_G.js +0 -1
  57. package/static/chunk-BNylhXVN.js +0 -1
  58. package/static/chunk-BV9svMMc.js +0 -1
  59. package/static/chunk-BX5sYPy1.js +0 -1
  60. package/static/chunk-Be6g3Cmv.js +0 -1
  61. package/static/chunk-Bgtkf8nM.js +0 -1
  62. package/static/chunk-Bl6kwpIK.js +0 -1
  63. package/static/chunk-BvDaTl4u.js +0 -1
  64. package/static/chunk-ByacugWF.js +0 -1
  65. package/static/chunk-CPYgCVHJ.js +0 -1
  66. package/static/chunk-CRPsjdw8.js +0 -1
  67. package/static/chunk-CZLubDvD.js +0 -1
  68. package/static/chunk-Cczqw9G5.js +0 -1
  69. package/static/chunk-CntkJjcW.js +0 -1
  70. package/static/chunk-Cuh7ppOq.js +0 -1
  71. package/static/chunk-Cv76Fxhr.js +0 -66
  72. package/static/chunk-D3rwM_uV.js +0 -7
  73. package/static/chunk-DHPxevqq.js +0 -1
  74. package/static/chunk-DYzjfNdD.js +0 -1
  75. package/static/chunk-DdSpqYCm.js +0 -5
  76. package/static/chunk-Di8Mt9Sl.js +0 -1
  77. package/static/chunk-Di_OsX8x.js +0 -1
  78. package/static/chunk-DlU8g0UO.js +0 -1
  79. package/static/chunk-DpU7iV6a.js +0 -1
  80. package/static/chunk-iJsU0w_6.js +0 -1
  81. package/static/chunk-mjUdDQQg.js +0 -1
  82. package/static/main-JSLBK4RN.js +0 -235
  83. package/static/styles-W2TNDHKW.css +0 -1
@@ -1 +0,0 @@
1
- import {I,g,b,v,j,y,h,E,P,A,T}from'./chunk-CRPsjdw8.js';import {N as Nt,K as Ke$1}from'./chunk-BNylhXVN.js';import {F as Fz,q as qp,X as Xb,x as xz,I as Ie,g as gf,v as vf,p as pf,f as ff}from'./chunk-Cv76Fxhr.js';import {C,Q as W,P as ue,a as at,v as vr,aa as O,ab as ur,ac as Me,G as Go,K as Kw,x as xt,s,r,J as JE,j as jn$1,b as _o,ad as F4,g as go,F as F3,M as Mt,V as Vd,c as Fc,y as y7,Y as A7,d as Kb,q as q5,e as G5,f as fc,N as Ni,h as _w,k as tl,U as Uw,l as yh,p as ND,u as vI,w as Vh,W as Ww,A as uh,z as sl,D as xD,Z as q0,$ as U0,t,ae as mo,m as kD,a3 as lh,O as OD,E as zD,H as HD,n as cE,R as RD,a5 as AD,B as uE,af as eD,ag as hu,ah as J0,ai as K0,aj as j1,ak as G0,al as Nr,am as De,an as m3,ao as Ie$1,ap as Oa,aq as X3,ar as p1,as as Ya,at as eT,au as z0,av as Go$1,aw as P9,ax as b9,ay as ep,X as Jw,az as O9,aA as vt,aB as ke,aC as Ea,aD as Ur,aE as ZD,aF as oh,aG as zw,aH as Vw,aI as d1,aJ as U1,aK as bo,aL as aD,aM as X4,aN as mw,aO as Th,aP as ew,aQ as wh,aR as W0,o as dh,a0 as Gw,a1 as Bw,aS as tw,I as Vu,L as Hu,aT as Uh,aU as $h,aV as YD,a2 as Nh,aW as Nw}from'./main-JSLBK4RN.js';import {U}from'./chunk-DLA1DsR_.js';import {F as Fe,o as oe}from'./chunk-DlU8g0UO.js';import'./chunk-B8aKNL-C.js';import {o}from'./chunk-Di_OsX8x.js';import'./chunk-B4A7hSM3.js';var Ut=["input"],Ht=["inputNumberHost"],Zt=[[["","nzInputAddonBefore",""]],[["","nzInputAddonAfter",""]],[["","nzInputPrefix",""]],[["","nzInputSuffix",""]],[["","nzInputNumberUpIcon",""]],[["","nzInputNumberDownIcon",""]]],Qt=["[nzInputAddonBefore]","[nzInputAddonAfter]","[nzInputPrefix]","[nzInputSuffix]","[nzInputNumberUpIcon]","[nzInputNumberDownIcon]"];function Gt(i,p){}function Yt(i,p){if(i&1&&oh(0,Gt,0,0,"ng-template",8),i&2){zD();let e=tw(4);uh("ngTemplateOutlet",e);}}function Jt(i,p){}function Xt(i,p){if(i&1&&oh(0,Jt,0,0,"ng-template",8),i&2){zD();let e=tw(8);uh("ngTemplateOutlet",e);}}function en(i,p){}function tn(i,p){if(i&1&&oh(0,en,0,0,"ng-template",8),i&2){zD();let e=tw(12);uh("ngTemplateOutlet",e);}}function nn(i,p){if(i&1&&_w(0),i&2){let e=zD(3);Vh(e.nzAddonBefore());}}function on(i,p){i&1&&(Ni(0,"div",10),YD(1,0,null,nn,1,1),tl());}function rn(i,p){}function an(i,p){if(i&1&&oh(0,rn,0,0,"ng-template",8),i&2){zD(2);let e=tw(6);uh("ngTemplateOutlet",e);}}function ln(i,p){}function sn(i,p){if(i&1&&oh(0,ln,0,0,"ng-template",8),i&2){zD(2);let e=tw(10);uh("ngTemplateOutlet",e);}}function pn(i,p){if(i&1&&_w(0),i&2){let e=zD(3);Vh(e.nzAddonAfter());}}function dn(i,p){i&1&&(Ni(0,"div",10),YD(1,1,null,pn,1,1),tl());}function cn(i,p){if(i&1&&(Ni(0,"div",9),ND(1,on,3,0,"div",10),ND(2,an,1,1,null,8)(3,sn,1,1,null,8),ND(4,dn,3,0,"div",10),tl()),i&2){let e=zD();vI(),xD(e.hasAddonBefore()?1:-1),vI(),xD(e.hasAffix()?2:3),vI(2),xD(e.hasAddonAfter()?4:-1);}}function un(i,p){}function mn(i,p){if(i&1&&(Ni(0,"div"),oh(1,un,0,0,"ng-template",8),tl()),i&2){let e=zD(),n=tw(8);mw(e.affixWrapperClass()),vI(),uh("ngTemplateOutlet",n);}}function _n(i,p){if(i&1&&_w(0),i&2){let e=zD(3);Vh(e.nzPrefix());}}function fn(i,p){i&1&&(Ni(0,"span",11),YD(1,2,null,_n,1,1),tl());}function gn(i,p){}function xn(i,p){if(i&1&&_w(0),i&2){let e=zD(3);Vh(e.nzSuffix());}}function Cn(i,p){if(i&1&&dh(0,"nz-form-item-feedback-icon",13),i&2){let e=zD(3);uh("status",e.finalStatus());}}function hn(i,p){if(i&1&&(Ni(0,"span",12),YD(1,3,null,xn,1,1),ND(3,Cn,1,1,"nz-form-item-feedback-icon",13),tl()),i&2){let e=zD(2);vI(3),xD(e.hasFeedback()&&e.finalStatus()?3:-1);}}function wn(i,p){if(i&1&&(ND(0,fn,3,0,"span",11),oh(1,gn,0,0,"ng-template",8),ND(2,hn,4,1,"span",12)),i&2){let e=zD(),n=tw(10);xD(e.hasPrefix()?0:-1),vI(),uh("ngTemplateOutlet",n),vI(),xD(e.hasSuffix()?2:-1);}}function bn(i,p){}function zn(i,p){if(i&1&&(Ni(0,"div",null,5),oh(2,bn,0,0,"ng-template",8),tl()),i&2){let e=zD(),n=tw(12);mw(e.inputNumberClass()),vI(2),uh("ngTemplateOutlet",n);}}function vn(i,p){i&1&&dh(0,"nz-icon",20);}function yn(i,p){i&1&&dh(0,"nz-icon",21);}function Sn(i,p){if(i&1){let e=HD();Ni(0,"div",17,7),yh("mouseup",function(){Vu(e);let t=zD(2);return Hu(t.stopAutoStep())})("mouseleave",function(){Vu(e);let t=zD(2);return Hu(t.stopAutoStep())}),Ni(2,"span",18),yh("mousedown",function(t){Vu(e);let o=zD(2);return Hu(o.onStepMouseDown(t,true))}),YD(3,4,null,vn,1,0),tl(),Ni(5,"span",19),yh("mousedown",function(t){Vu(e);let o=zD(2);return Hu(o.onStepMouseDown(t,false))}),YD(6,5,null,yn,1,0),tl()();}if(i&2){let e=zD(2);vI(2),Nh("ant-input-number-handler-up-disabled",e.upDisabled()),lh("aria-disabled",e.upDisabled()),vI(3),Nh("ant-input-number-handler-down-disabled",e.downDisabled()),lh("aria-disabled",e.downDisabled());}}function Mn(i,p){if(i&1){let e=HD();ND(0,Sn,8,6,"div",14),Ni(1,"div",15)(2,"input",16,6),yh("input",function(){Vu(e);let t=tw(3),o=zD();return Hu(o.onInput(t.value))})("wheel",function(t){Vu(e);let o=zD();return Hu(o.onWheel(t))}),tl()();}if(i&2){let e=zD();xD(e.nzControls()?0:-1),vI(2),uh("value",e.displayValue())("placeholder",e.nzPlaceHolder()??"")("disabled",e.finalDisabled())("readOnly",e.nzReadOnly()),lh("aria-valuemin",e.nzMin())("aria-valuemax",e.nzMax())("id",e.nzId())("step",e.nzStep())("value",e.displayValue());}}var Ke=(()=>{class i{nzId=q0(null);nzSize=q0("default");nzPlaceHolder=q0(null);nzStatus=q0("");nzVariant=q0();nzStep=q0(1,{transform:J0});nzMin=q0(Number.MIN_SAFE_INTEGER,{transform:J0});nzMax=q0(Number.MAX_SAFE_INTEGER,{transform:J0});nzPrecision=q0(null);nzParser=q0();nzFormatter=q0();nzDisabled=q0(false,{transform:K0});nzReadOnly=q0(false,{transform:K0});nzAutoFocus=q0(false,{transform:K0});nzKeyboard=q0(true,{transform:K0});nzControls=q0(true,{transform:K0});nzChangeOnWheel=q0(true,{transform:K0});nzPrefix=q0();nzSuffix=q0();nzAddonBefore=q0();nzAddonAfter=q0();nzBlur=U0();nzFocus=U0();nzOnStep=U0();onChange=()=>{};onTouched=()=>{};isDisabledFirstChange=true;compactSize=C(j1,{optional:true});inputRef=G0.required("input");hostRef=G0("inputNumberHost");elementRef=C(Nr);injector=C(De);focusMonitor=C(m3);directionality=C(Ie$1);nzFormStatusService=C(Oa,{optional:true});autoStepTimer=null;defaultFormatter=e=>{let n=this.nzPrecision();return X3(n)?e.toFixed(n):e.toString()};value=Go(null);displayValue=Go("");formSize=C(p1,{optional:true});formVariant=C(Ya,{optional:true});dir=C(Ie$1).valueSignal;focused=Go(false);hasFeedback=Go(false);finalStatus=eT(()=>this.nzStatus());finalDisabled=eT(()=>this.nzDisabled());prefix=z0(gf);suffix=z0(vf);addonBefore=z0(pf);addonAfter=z0(ff);hasPrefix=Kw(()=>!!this.nzPrefix()||!!this.prefix());hasSuffix=Kw(()=>!!this.nzSuffix()||!!this.suffix()||this.hasFeedback());hasAffix=Kw(()=>this.hasPrefix()||this.hasSuffix());hasAddonBefore=Kw(()=>!!this.nzAddonBefore()||!!this.addonBefore());hasAddonAfter=Kw(()=>!!this.nzAddonAfter()||!!this.addonAfter());hasAddon=Kw(()=>this.hasAddonBefore()||this.hasAddonAfter());class=Kw(()=>this.hasAddon()?this.groupWrapperClass():this.hasAffix()?this.affixWrapperClass():this.inputNumberClass());inputNumberClass=Kw(()=>r(r({"ant-input-number":true,"ant-input-number-lg":this.finalSize()==="large","ant-input-number-sm":this.finalSize()==="small","ant-input-number-disabled":this.finalDisabled(),"ant-input-number-readonly":this.nzReadOnly(),"ant-input-number-focused":this.focused(),"ant-input-number-rtl":this.dir()==="rtl","ant-input-number-in-form-item":!!this.nzFormStatusService,"ant-input-number-out-of-range":this.value()!==null&&!Oe(this.value(),this.nzMin(),this.nzMax())},P9("ant-input-number",this.finalVariant())),Go$1("ant-input-number",this.finalStatus(),this.hasFeedback())));affixWrapperClass=Kw(()=>r(r({"ant-input-number-affix-wrapper":true,"ant-input-number-affix-wrapper-disabled":this.finalDisabled(),"ant-input-number-affix-wrapper-readonly":this.nzReadOnly(),"ant-input-number-affix-wrapper-focused":this.focused(),"ant-input-number-affix-wrapper-rtl":this.dir()==="rtl"},Go$1("ant-input-number-affix-wrapper",this.finalStatus(),this.hasFeedback())),P9("ant-input-number-affix-wrapper",this.finalVariant())));groupWrapperClass=Kw(()=>r(r({"ant-input-number-group-wrapper":true,"ant-input-number-group-wrapper-rtl":this.dir()==="rtl"},Go$1("ant-input-number-group-wrapper",this.finalStatus(),this.hasFeedback())),P9("ant-input-number-group-wrapper",this.finalVariant())));finalSize=Kw(()=>this.formSize?.()?this.formSize():this.compactSize?this.compactSize():this.nzSize());finalVariant=Kw(()=>this.nzVariant()||this.formVariant?.()||"outlined");upDisabled=Kw(()=>!b9(this.value())&&this.value()>=this.nzMax());downDisabled=Kw(()=>!b9(this.value())&&this.value()<=this.nzMin());constructor(){let e=C(at);ep(()=>{let n=this.hostRef(),t=n||this.elementRef;this.focusMonitor.monitor(t,true).pipe(xt(e)).subscribe(o=>{Jw(()=>{this.focused.set(!!o),o?this.nzFocus.emit():(this.fixValue(),this.onTouched(),this.nzBlur.emit());});}),e.onDestroy(()=>{this.focusMonitor.stopMonitoring(t);});}),this.nzFormStatusService?.formStatusChanges.pipe(xt()).subscribe(({status:n,hasFeedback:t})=>{this.finalStatus.set(n),this.hasFeedback.set(t);});}ngOnInit(){this.nzAutoFocus()&&ep(()=>this.focus(),{injector:this.injector});}writeValue(e){b9(e)&&(e=null),Jw(()=>{this.value.set(e),this.setValue(e);});}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){Jw(()=>{this.finalDisabled.set(this.isDisabledFirstChange&&this.nzDisabled()||e);}),this.isDisabledFirstChange=false;}focus(e){O9(this.inputRef().nativeElement,e);}blur(){this.inputRef().nativeElement.blur();}step(e,n,t){if(n&&this.upDisabled()||!n&&this.downDisabled())return;let o=e.shiftKey?this.nzStep()*10:this.nzStep();n||(o=-o);let k=10**Bt(o),W=$t((Math.round((this.value()||0)*k)+Math.round(o*k))/k,this.nzMin(),this.nzMax(),this.nzPrecision());this.setValue(W),this.nzOnStep.emit({type:n?"up":"down",value:this.value(),offset:this.nzStep(),emitter:t}),this.focus();}setValue(e){let n=this.nzFormatter()??this.defaultFormatter,t=this.nzPrecision();X3(t)&&(e&&=+e.toFixed(t));let o=b9(e)?"":n(e);this.displayValue.set(o),this.updateValue(e);}setValueByTyping(e){if(this.displayValue.set(e),e===""){this.updateValue(null);return}let t=(this.nzParser()??At)(e);if(Tn(e)||Number.isNaN(t))return;let o=this.nzFormatter();if(o){let d=o(t);this.displayValue.set(d);}Oe(t,this.nzMin(),this.nzMax())&&this.updateValue(t);}updateValue(e){this.value()!==e&&(this.value.set(e),this.onChange(e));}fixValue(){let e=this.displayValue();if(e==="")return;let t=(this.nzParser()??At)(e);if(Number.isNaN(t))t=this.value();else {let o=this.nzPrecision();X3(o)&&Bt(t)!==o&&(t=+t.toFixed(o)),Oe(t,this.nzMin(),this.nzMax())||(t=$t(t,this.nzMin(),this.nzMax(),o));}this.setValue(t);}stopAutoStep(){this.autoStepTimer!==null&&(clearTimeout(this.autoStepTimer),this.autoStepTimer=null);}onStepMouseDown(e,n){e.preventDefault(),this.stopAutoStep(),this.step(e,n,"handler");let t=()=>{this.step(e,n,"handler"),this.autoStepTimer=setTimeout(t,Nn);};this.autoStepTimer=setTimeout(t,kn);}onKeyDown(e){switch(e.keyCode){case 38:e.preventDefault(),this.nzKeyboard()&&this.step(e,true,"keyboard");break;case 40:e.preventDefault(),this.nzKeyboard()&&this.step(e,false,"keyboard");break;case 13:this.fixValue();break}}onInput(e){this.setValueByTyping(e);}onWheel(e){this.finalDisabled()||this.nzReadOnly()||!this.nzChangeOnWheel()||(e.preventDefault(),this.step(e,e.deltaY<0,"wheel"));}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=JE({type:i,selectors:[["nz-input-number"]],contentQueries:function(n,t,o){n&1&&wh(o,t.prefix,gf,5)(o,t.suffix,vf,5)(o,t.addonBefore,pf,5)(o,t.addonAfter,ff,5),n&2&&ew(4);},viewQuery:function(n,t){n&1&&Th(t.inputRef,Ut,5)(t.hostRef,Ht,5),n&2&&ew(2);},hostVars:2,hostBindings:function(n,t){n&1&&yh("keydown",function(d){return t.onKeyDown(d)}),n&2&&mw(t.class());},inputs:{nzId:[1,"nzId"],nzSize:[1,"nzSize"],nzPlaceHolder:[1,"nzPlaceHolder"],nzStatus:[1,"nzStatus"],nzVariant:[1,"nzVariant"],nzStep:[1,"nzStep"],nzMin:[1,"nzMin"],nzMax:[1,"nzMax"],nzPrecision:[1,"nzPrecision"],nzParser:[1,"nzParser"],nzFormatter:[1,"nzFormatter"],nzDisabled:[1,"nzDisabled"],nzReadOnly:[1,"nzReadOnly"],nzAutoFocus:[1,"nzAutoFocus"],nzKeyboard:[1,"nzKeyboard"],nzControls:[1,"nzControls"],nzChangeOnWheel:[1,"nzChangeOnWheel"],nzPrefix:[1,"nzPrefix"],nzSuffix:[1,"nzSuffix"],nzAddonBefore:[1,"nzAddonBefore"],nzAddonAfter:[1,"nzAddonAfter"]},outputs:{nzBlur:"nzBlur",nzFocus:"nzFocus",nzOnStep:"nzOnStep"},exportAs:["nzInputNumber"],features:[Vw([{provide:d1,useExisting:bo(()=>i),multi:true},{provide:U1,useValue:"input-number"}]),aD([X4])],ngContentSelectors:Qt,decls:13,vars:1,consts:[["inputNumberWithAddonInner",""],["inputNumberWithAffix",""],["inputNumberWithAffixInner",""],["inputNumber",""],["inputNumberInner",""],["inputNumberHost",""],["input",""],["handlers",""],[3,"ngTemplateOutlet"],[1,"ant-input-number-wrapper","ant-input-number-group"],[1,"ant-input-number-group-addon"],[1,"ant-input-number-prefix"],[1,"ant-input-number-suffix"],[3,"status"],[1,"ant-input-number-handler-wrap"],[1,"ant-input-number-input-wrap"],["autocomplete","off","role","spinbutton",1,"ant-input-number-input",3,"input","wheel","value","placeholder","disabled","readOnly"],[1,"ant-input-number-handler-wrap",3,"mouseup","mouseleave"],["role","button","unselectable","on",1,"ant-input-number-handler","ant-input-number-handler-up",3,"mousedown"],["role","button","unselectable","on",1,"ant-input-number-handler","ant-input-number-handler-down",3,"mousedown"],["nzType","up",1,"ant-input-number-handler-up-inner"],["nzType","down",1,"ant-input-number-handler-down-inner"]],template:function(n,t){n&1&&(ZD(Zt),ND(0,Yt,1,1,null,8)(1,Xt,1,1,null,8)(2,tn,1,1,null,8),oh(3,cn,5,3,"ng-template",null,0,zw)(5,mn,2,3,"ng-template",null,1,zw)(7,wn,3,3,"ng-template",null,2,zw)(9,zn,3,3,"ng-template",null,3,zw)(11,Mn,4,10,"ng-template",null,4,zw)),n&2&&xD(t.hasAddon()?0:t.hasAffix()?1:2);},dependencies:[vt,ke,Ea,Ur],encapsulation:2})}return i})(),Nn=200,kn=600;function At(i){let p=i.trim().replace(/,/g,"").replace(/。/g,".");return p.length?+p:NaN}function Oe(i,p,e){return i>=p&&i<=e}function $t(i,p,e,n=null){if(n===null)return i<p?p:i>e?e:i;let t=+i.toFixed(n),o=Math.pow(10,n);return t<p?Math.ceil(p*o)/o:t>e?Math.floor(e*o)/o:t}function Bt(i){return i.toString().split(".")[1]?.length||0}function Tn(i){return /[.。](\d*0)?$/.test(i.toString())}var Pt=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=eD({type:i});static \u0275inj=hu({imports:[Ke]})}return i})();function En(i,p){if(i&1){let e=HD();Ni(0,"div",1)(1,"input",3),Uh("ngModelChange",function(t){let o=Vu(e).$implicit;return Nw(o.key,t)||(o.key=t),Hu(t)}),yh("ngModelChange",function(){Vu(e);let t=zD();return Hu(t.emitRows())}),tl(),cE(),Ni(2,"input",4),Uh("ngModelChange",function(t){let o=Vu(e).$implicit;return Nw(o.value,t)||(o.value=t),Hu(t)}),yh("ngModelChange",function(){Vu(e);let t=zD();return Hu(t.emitRows())}),tl(),cE(),Ni(3,"button",5),yh("click",function(){let t=Vu(e).$index,o=zD();return Hu(o.remove(t))}),_w(4,"Remove"),tl()();}if(i&2){let e=p.$implicit;vI(),$h("ngModel",e.key),uE(),vI(),$h("ngModel",e.value),uE();}}var jt=(()=>{class i{constructor(){this.rows=W0.required();}add(){this.rows.update(e=>[...e,{key:"",value:""}]);}remove(e){this.rows.update(n=>n.filter((t,o)=>o!==e));}emitRows(){this.rows.set(this.rows().map(e=>r({},e)));}static{this.\u0275fac=function(n){return new(n||i)};}static{this.\u0275cmp=JE({type:i,selectors:[["app-key-value-editor"]],inputs:{rows:[1,"rows"]},outputs:{rows:"rowsChange"},decls:5,vars:0,consts:[[1,"kv-editor"],[1,"kv-row"],["nz-button","","nzType","dashed","type","button",3,"click"],["nz-input","","placeholder","key",3,"ngModelChange","ngModel"],["nz-input","","placeholder","value",3,"ngModelChange","ngModel"],["nz-button","","nzType","default","type","button",3,"click"]],template:function(n,t){n&1&&(Ni(0,"div",0),kD(1,En,5,2,"div",1,AD),Ni(3,"button",2),yh("click",function(){return t.add()}),_w(4,"Add param"),tl()()),n&2&&(vI(),OD(t.rows()));},dependencies:[_o,F4,go,F3,Vd,Fc,y7,A7,xz,Ie],styles:[".kv-editor[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.kv-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr auto;gap:.5rem;align-items:center}"]});}}return i})();function An(i,p){return this.trackKey(p)}var $n=(i,p)=>p.id;function Bn(i,p){if(i&1&&(dh(0,"nz-option",5),Uw(1,"transloco")),i&2){let e=p.$implicit,n=zD(2);uh("nzValue",e)("nzLabel",Ww(1,2,n.stepTypeKey(e)));}}function Pn(i,p){if(i&1){let e=HD();Ni(0,"label",16),yh("ngModelChange",function(t){let o=Vu(e).$implicit,d=zD(2),k=d.$implicit,W=d.$index,L=zD();return Hu(L.toggleKnowledge(W,L.asAgent(k),o,t))}),_w(1),Uw(2,"transloco"),tl(),cE();}if(i&2){let e=p.$implicit,n=zD(2),t=n.$implicit,o=n.$index,d=zD();uh("ngModel",d.hasKnowledge(d.asAgent(t),e)),lh("data-testid","agent-knowledge-"+e+"-"+o),uE(),vI(),sl(" ",Ww(2,3,d.knowledgeTierKey(e))," ");}}function Wn(i,p){if(i&1&&(dh(0,"nz-option",5),Uw(1,"transloco")),i&2){let e=p.$implicit,n=zD(3);uh("nzValue",e)("nzLabel",Ww(1,2,n.outputFormatKey(e)));}}function Ln(i,p){if(i&1){let e=HD();Ni(0,"label",8)(1,"span"),_w(2),Uw(3,"transloco"),tl(),Ni(4,"textarea",12),yh("ngModelChange",function(t){Vu(e);let o=zD().$index,d=zD();return Hu(d.patchAt(o,{objective:t}))}),tl(),cE(),tl(),Ni(5,"div",8)(6,"span"),_w(7),Uw(8,"transloco"),tl(),Ni(9,"div",13),kD(10,Pn,3,5,"label",14,RD),tl(),Ni(12,"p",11),_w(13),Uw(14,"transloco"),tl()(),Ni(15,"div",8)(16,"span"),_w(17),Uw(18,"transloco"),tl(),Ni(19,"nz-select",15),yh("ngModelChange",function(t){Vu(e);let o=zD().$index,d=zD();return Hu(d.patchAt(o,{outputFormat:t}))}),kD(20,Wn,2,4,"nz-option",5,RD),tl(),cE(),tl();}if(i&2){let e=zD(),n=e.$implicit,t=e.$index,o=zD();vI(2),Vh(Ww(3,8,"step-list.objective")),vI(2),uh("ngModel",o.asAgent(n).objective),lh("data-testid","agent-objective-"+t),uE(),vI(3),Vh(Ww(8,10,"step-list.knowledgeScope")),vI(3),OD(o.knowledgeTiers),vI(3),Vh(Ww(14,12,"step-list.knowledgeScopeHint")),vI(4),Vh(Ww(18,14,"step-list.outputFormat.label")),vI(2),uh("ngModel",o.asAgent(n).outputFormat),lh("data-testid","agent-output-"+t),uE(),vI(),OD(o.outputFormats);}}function On(i,p){if(i&1&&(dh(0,"nz-option",5),Uw(1,"transloco")),i&2){let e=p.$implicit,n=zD(3);uh("nzValue",e)("nzLabel",Ww(1,2,n.interactionKey(e)));}}function Rn(i,p){if(i&1&&(dh(0,"nz-option",5),Uw(1,"transloco")),i&2){let e=p.$implicit,n=zD(3);uh("nzValue",e)("nzLabel",Ww(1,2,n.notifyModeKey(e)));}}function Kn(i,p){if(i&1){let e=HD();Ni(0,"div",8)(1,"span"),_w(2),Uw(3,"transloco"),tl(),Ni(4,"nz-select",15),yh("ngModelChange",function(t){Vu(e);let o=zD().$index,d=zD();return Hu(d.patchAt(o,{interaction:t}))}),kD(5,On,2,4,"nz-option",5,RD),tl(),cE(),tl(),Ni(7,"div",8)(8,"span"),_w(9),Uw(10,"transloco"),tl(),Ni(11,"nz-select",15),yh("ngModelChange",function(t){Vu(e);let o=zD().$index,d=zD();return Hu(d.setNotifyMode(o,t))}),kD(12,Rn,2,4,"nz-option",5,RD),tl(),cE(),tl();}if(i&2){let e=zD(),n=e.$implicit,t=e.$index,o=zD();vI(2),Vh(Ww(3,6,"step-list.interaction.label")),vI(2),uh("ngModel",o.asInteraction(n).interaction),lh("data-testid","interaction-type-"+t),uE(),vI(),OD(o.interactions),vI(4),Vh(Ww(10,8,"step-list.notify")),vI(2),uh("ngModel",o.notifyMode(o.asInteraction(n))),lh("data-testid","interaction-notify-"+t),uE(),vI(),OD(o.notifyModes);}}function jn(i,p){if(i&1){let e=HD();Ni(0,"label",8)(1,"span"),_w(2),Uw(3,"transloco"),tl(),Ni(4,"textarea",12),yh("ngModelChange",function(t){Vu(e);let o=zD().$index,d=zD();return Hu(d.patchAt(o,{command:t}))}),tl(),cE(),tl();}if(i&2){let e=zD(),n=e.$implicit,t=e.$index,o=zD();vI(2),Vh(Ww(3,3,"step-list.command")),vI(2),uh("ngModel",o.asShell(n).command),lh("data-testid","shell-command-"+t),uE();}}function qn(i,p){if(i&1&&(dh(0,"nz-option",5),Uw(1,"transloco")),i&2){let e=p.$implicit,n=zD(3);uh("nzValue",e)("nzLabel",Ww(1,2,n.gitOperationKey(e)));}}function Un(i,p){if(i&1){let e=HD();Ni(0,"div",8)(1,"span"),_w(2),Uw(3,"transloco"),tl(),Ni(4,"nz-select",15),yh("ngModelChange",function(t){Vu(e);let o=zD().$index,d=zD();return Hu(d.patchAt(o,{operation:t}))}),kD(5,qn,2,4,"nz-option",5,RD),tl(),cE(),tl(),Ni(7,"div",8)(8,"span"),_w(9),Uw(10,"transloco"),tl(),Ni(11,"app-key-value-editor",17),yh("rowsChange",function(t){Vu(e);let o=zD(),d=o.$implicit,k=o.$index,W=zD();return Hu(W.onParamRowsChange(k,d,t))}),tl()();}if(i&2){let e=zD(),n=e.$implicit,t=e.$index,o=zD();vI(2),Vh(Ww(3,5,"step-list.operation")),vI(2),uh("ngModel",o.asGit(n).operation),lh("data-testid","git-operation-"+t),uE(),vI(),OD(o.gitOperations),vI(4),Vh(Ww(10,7,"step-list.params")),vI(2),uh("rows",o.paramRows(n));}}function Hn(i,p){if(i&1&&(dh(0,"nz-option",5),Uw(1,"transloco")),i&2){let e=p.$implicit,n=zD(3);uh("nzValue",e)("nzLabel",Ww(1,2,n.providerActionKey(e)));}}function Zn(i,p){if(i&1){let e=HD();Ni(0,"div",8)(1,"span"),_w(2),Uw(3,"transloco"),tl(),Ni(4,"nz-select",15),yh("ngModelChange",function(t){Vu(e);let o=zD().$index,d=zD();return Hu(d.patchAt(o,{action:t}))}),kD(5,Hn,2,4,"nz-option",5,RD),tl(),cE(),tl(),Ni(7,"div",8)(8,"span"),_w(9),Uw(10,"transloco"),tl(),Ni(11,"app-key-value-editor",17),yh("rowsChange",function(t){Vu(e);let o=zD(),d=o.$implicit,k=o.$index,W=zD();return Hu(W.onParamRowsChange(k,d,t))}),tl()();}if(i&2){let e=zD(),n=e.$implicit,t=e.$index,o=zD();vI(2),Vh(Ww(3,5,"step-list.action")),vI(2),uh("ngModel",o.asProvider(n).action),lh("data-testid","provider-action-"+t),uE(),vI(),OD(o.providerActions),vI(4),Vh(Ww(10,7,"step-list.params")),vI(2),uh("rows",o.paramRows(n));}}function Qn(i,p){if(i&1&&dh(0,"nz-option",5),i&2){let e=p.$implicit,n=zD(3);uh("nzValue",e.id)("nzLabel",n.workflowOptionLabel(e));}}function Gn(i,p){if(i&1){let e=HD();Ni(0,"div",8)(1,"span"),_w(2),Uw(3,"transloco"),tl(),Ni(4,"nz-select",18),yh("ngModelChange",function(t){Vu(e);let o=zD().$index,d=zD();return Hu(d.patchAt(o,{workflowId:t}))}),kD(5,Qn,1,2,"nz-option",5,$n),tl(),cE(),tl(),Ni(7,"p",8)(8,"span"),_w(9),Uw(10,"transloco"),tl(),Ni(11,"code",19),_w(12,"selection"),tl()();}if(i&2){let e=zD(),n=e.$implicit,t=e.$index,o=zD();vI(2),Vh(Ww(3,4,"step-list.workflowId")),vI(2),uh("ngModel",o.asSubWorkflow(n).workflowId),lh("data-testid","sub-workflow-id-"+t),uE(),vI(),OD(o.availableWorkflows()),vI(4),Vh(Ww(10,6,"step-list.forEach"));}}function Yn(i,p){if(i&1&&(dh(0,"nz-option",5),Uw(1,"transloco")),i&2){let e=p.$implicit,n=zD(3);uh("nzValue",e)("nzLabel",Ww(1,2,n.untilTypeKey(e)));}}function Jn(i,p){if(i&1){let e=HD();Ni(0,"label",8)(1,"span"),_w(2),Uw(3,"transloco"),tl(),Ni(4,"input",10),yh("ngModelChange",function(t){Vu(e);let o=zD(2).$index,d=zD();return Hu(d.setUntilValue(o,t))}),tl(),cE(),tl();}if(i&2){let e=zD(2),n=e.$implicit,t=e.$index,o=zD();vI(2),Vh(Ww(3,3,"step-list.until.value")),vI(2),uh("ngModel",o.untilValue(o.asLoop(n))),lh("data-testid","loop-until-value-"+t),uE();}}function Xn(i,p){if(i&1&&(dh(0,"nz-option",5),Uw(1,"transloco")),i&2){let e=p.$implicit,n=zD(3);uh("nzValue",e)("nzLabel",Ww(1,2,n.onMaxIterationsKey(e)));}}function ei(i,p){if(i&1){let e=HD();Ni(0,"div",20)(1,"div",8)(2,"span"),_w(3),Uw(4,"transloco"),tl(),Ni(5,"nz-select",15),yh("ngModelChange",function(t){Vu(e);let o=zD().$index,d=zD();return Hu(d.setUntilType(o,t))}),kD(6,Yn,2,4,"nz-option",5,RD),tl(),cE(),tl(),Ni(8,"label",8)(9,"span"),_w(10),Uw(11,"transloco"),tl(),Ni(12,"input",10),yh("ngModelChange",function(t){Vu(e);let o=zD().$index,d=zD();return Hu(d.setUntilField(o,"stepId",t))}),tl(),cE(),tl(),Ni(13,"label",8)(14,"span"),_w(15),Uw(16,"transloco"),tl(),Ni(17,"input",10),yh("ngModelChange",function(t){Vu(e);let o=zD().$index,d=zD();return Hu(d.setUntilField(o,"field",t))}),tl(),cE(),tl(),ND(18,Jn,5,5,"label",8),Ni(19,"label",8)(20,"span"),_w(21),Uw(22,"transloco"),tl(),Ni(23,"nz-input-number",21),yh("ngModelChange",function(t){Vu(e);let o=zD().$index,d=zD();return Hu(d.patchAt(o,{maxIterations:t??0}))}),tl(),cE(),tl(),Ni(24,"div",8)(25,"span"),_w(26),Uw(27,"transloco"),tl(),Ni(28,"nz-select",15),yh("ngModelChange",function(t){Vu(e);let o=zD().$index,d=zD();return Hu(d.patchAt(o,{onMaxIterations:{action:t}}))}),kD(29,Xn,2,4,"nz-option",5,RD),tl(),cE(),tl()(),Ni(31,"div",22)(32,"h4"),_w(33),Uw(34,"transloco"),tl(),Ni(35,"app-step-list",23),yh("stepsChange",function(t){Vu(e);let o=zD().$index,d=zD();return Hu(d.setNestedSteps(o,t))}),tl()();}if(i&2){let e=zD(),n=e.$implicit,t=e.$index,o=zD();vI(3),Vh(Ww(4,23,"step-list.until.type")),vI(2),uh("ngModel",o.asLoop(n).until.type),lh("data-testid","loop-until-type-"+t),uE(),vI(),OD(o.untilTypes),vI(4),Vh(Ww(11,25,"step-list.until.stepId")),vI(2),uh("ngModel",o.asLoop(n).until.stepId),lh("data-testid","loop-until-stepId-"+t),uE(),vI(3),Vh(Ww(16,27,"step-list.until.field")),vI(2),uh("ngModel",o.asLoop(n).until.field),lh("data-testid","loop-until-field-"+t),uE(),vI(),xD(o.asLoop(n).until.type==="field_equals"?18:-1),vI(3),Vh(Ww(22,29,"step-list.maxIterations")),vI(2),uh("ngModel",o.asLoop(n).maxIterations)("nzMin",0),lh("data-testid","loop-max-"+t),uE(),vI(3),Vh(Ww(27,31,"step-list.onMaxIterations.action")),vI(2),uh("ngModel",o.asLoop(n).onMaxIterations.action),lh("data-testid","loop-on-max-"+t),uE(),vI(),OD(o.maxIterationActions),vI(2),lh("data-testid","loop-nested-"+t),vI(2),Vh(Ww(34,33,"step-list.nestedSteps")),vI(2),uh("steps",o.asLoop(n).steps)("rootSteps",o.effectiveRoot())("availableWorkflows",o.availableWorkflows())("depth",o.depth()+1);}}function ti(i,p){if(i&1){let e=HD();Ni(0,"nz-card",1)(1,"div",3)(2,"nz-select",4),yh("ngModelChange",function(t){let o=Vu(e).$index,d=zD();return Hu(d.changeType(o,t))}),kD(3,Bn,2,4,"nz-option",5,RD),tl(),cE(),Ni(5,"button",6),yh("click",function(){let t=Vu(e).$index,o=zD();return Hu(o.moveUp(t))}),_w(6),Uw(7,"transloco"),tl(),Ni(8,"button",6),yh("click",function(){let t=Vu(e).$index,o=zD();return Hu(o.moveDown(t))}),_w(9),Uw(10,"transloco"),tl(),Ni(11,"button",7),yh("click",function(){let t=Vu(e).$index,o=zD();return Hu(o.removeStep(t))}),_w(12),Uw(13,"transloco"),tl()(),Ni(14,"label",8)(15,"span"),_w(16),Uw(17,"transloco"),tl(),Ni(18,"input",9),yh("ngModelChange",function(t){let o=Vu(e).$index,d=zD();return Hu(d.onNameChange(o,t))}),tl(),cE(),tl(),Ni(19,"label",8)(20,"span"),_w(21),Uw(22,"transloco"),tl(),Ni(23,"input",10),yh("ngModelChange",function(t){let o=Vu(e).$index,d=zD();return Hu(d.onIdChange(o,t))}),tl(),cE(),Ni(24,"p",11),_w(25),Uw(26,"transloco"),tl()(),ND(27,Ln,22,16)(28,Kn,14,10)(29,jn,5,5,"label",8)(30,Un,12,9)(31,Zn,12,9)(32,Gn,13,8)(33,ei,36,35),tl();}if(i&2){let e,n=p.$implicit,t=p.$index,o=zD();uh("nzTitle",o.cardTitle(t,n)),lh("data-testid","step-card-"+t),vI(2),uh("ngModel",n.type),lh("data-testid","step-type-"+t),uE(),vI(),OD(o.stepTypes),vI(2),uh("disabled",t===0),lh("data-testid","move-up-"+t),vI(),sl(" ",Ww(7,20,"step-list.moveUp")," "),vI(2),uh("disabled",t===o.steps().length-1),lh("data-testid","move-down-"+t),vI(),sl(" ",Ww(10,22,"step-list.moveDown")," "),vI(2),lh("data-testid","remove-"+t),vI(),sl(" ",Ww(13,24,"step-list.remove")," "),vI(4),Vh(Ww(17,26,"step-list.name")),vI(2),uh("ngModel",n.name),lh("data-testid","step-name-"+t),uE(),vI(3),Vh(Ww(22,28,"step-list.id")),vI(2),uh("ngModel",n.id),lh("data-testid","step-id-"+t),uE(),vI(2),Vh(Ww(26,30,"step-list.idHint")),vI(2),xD((e=n.type)==="agent"?27:e==="interaction"?28:e==="shell"?29:e==="git"?30:e==="provider_action"?31:e==="sub_workflow"?32:e==="loop"?33:-1);}}var qt=(()=>{class i{constructor(){this.transloco=C(vr),this.language=C(O),this.steps=q0.required(),this.rootSteps=q0([]),this.availableWorkflows=q0([]),this.depth=q0(0),this.stepsChange=U0(),this.stepTypes=y,this.outputFormats=["questionnaire","confirmation","comment_suggestions","free_text"],this.interactions=["questionnaire","confirmation","conversation"],this.gitOperations=["create_worktree","checkout","create_branch","commit","push"],this.providerActions=["get_subject","get_comments","post_comment","update_status","get_content"],this.knowledgeTiers=["user","organization","project"],this.untilTypes=["field_empty","field_equals"],this.maxIterationActions=["fail","continue","ask_human"],this.notifyModes=["inherit","on","off"],this.paramRowsByStepKey=new Map;}cardTitle(e,n){this.language.currentLang();let t=this.transloco.translate(this.stepTypeKey(n.type));return n.name?this.transloco.translate("step-list.cardTitleNamed",{index:e+1,type:t,name:n.name}):this.transloco.translate("step-list.cardTitle",{index:e+1,type:t})}stepTypeKey(e){return `step-list.stepType.${e}`}outputFormatKey(e){return `step-list.outputFormat.${e}`}interactionKey(e){return `step-list.interaction.${e}`}notifyModeKey(e){return `step-list.notifyMode.${e}`}gitOperationKey(e){return `step-list.gitOperation.${e}`}providerActionKey(e){return `step-list.providerAction.${e}`}knowledgeTierKey(e){return `step-list.knowledgeTier.${e}`}untilTypeKey(e){return `step-list.untilType.${e}`}onMaxIterationsKey(e){return `step-list.onMaxIterations.${e}`}workflowOptionLabel(e){return this.language.currentLang(),this.transloco.translate("step-list.workflowOption",{name:e.name,id:e.id})}effectiveRoot(){let e=this.rootSteps();return e.length>0?e:this.steps()}trackKey(e){return e._key}addStep(){this.emit([...this.steps(),h("agent")]);}removeStep(e){let n=this.steps()[e];n&&this.paramRowsByStepKey.delete(n._key),this.emit(this.steps().filter((t,o)=>o!==e));}moveUp(e){if(e<=0)return;let n=[...this.steps()],t=n[e-1];n[e-1]=n[e],n[e]=t,this.emit(n);}moveDown(e){if(e>=this.steps().length-1)return;let n=[...this.steps()],t=n[e+1];n[e+1]=n[e],n[e]=t,this.emit(n);}changeType(e,n){let t=this.steps()[e];if(!t||t.type===n)return;this.paramRowsByStepKey.delete(t._key);let o=h(n,{id:t.id,name:t.name,idAutoSync:t._idAutoSync,key:t._key});this.replaceAt(e,o);}patchAt(e,n){let t=this.steps()[e];t&&this.replaceAt(e,r(r({},t),n));}onNameChange(e,n){let t=this.steps()[e];t&&this.replaceAt(e,E(t,n,this.effectiveRoot()));}onIdChange(e,n){let t=this.steps()[e];t&&this.replaceAt(e,P(t,n));}setNestedSteps(e,n){let t=this.steps()[e];!t||t.type!=="loop"||this.replaceAt(e,s(r({},t),{steps:n}));}asAgent(e){return e}asInteraction(e){return e}asShell(e){return e}asGit(e){return e}asProvider(e){return e}asSubWorkflow(e){return e}asLoop(e){return e}hasKnowledge(e,n){return e.knowledgeScope?.includes(n)??false}toggleKnowledge(e,n,t,o){let d=new Set(n.knowledgeScope??[]);o?d.add(t):d.delete(t);let k=[...d];this.patchAt(e,{knowledgeScope:k&&k.length>0?k:void 0});}notifyMode(e){return e.notify===void 0?"inherit":e.notify?"on":"off"}setNotifyMode(e,n){if(n==="inherit"){let t$1=this.asInteraction(this.steps()[e]),{notify:d}=t$1,k=t(t$1,["notify"]);this.replaceAt(e,k);return}this.patchAt(e,{notify:n==="on"});}paramRows(e){let n=this.paramRowsByStepKey.get(e._key);if(!n){let t=e.type==="git"||e.type==="provider_action"?e.params:void 0;n=A(t),this.paramRowsByStepKey.set(e._key,n);}return n}onParamRowsChange(e,n,t){this.paramRowsByStepKey.set(n._key,t),this.patchAt(e,{params:T(t)});}setUntilType(e,n){let t=this.asLoop(this.steps()[e]);if(n==="field_empty"){this.patchAt(e,{until:{type:n,stepId:t.until.stepId,field:t.until.field}});return}let o=t.until.type==="field_equals"?t.until.value:"";this.patchAt(e,{until:{type:n,stepId:t.until.stepId,field:t.until.field,value:o}});}setUntilField(e,n,t){let o=this.asLoop(this.steps()[e]);this.patchAt(e,{until:s(r({},o.until),{[n]:t})});}setUntilValue(e,n){let t=this.asLoop(this.steps()[e]);t.until.type==="field_equals"&&this.patchAt(e,{until:s(r({},t.until),{value:n})});}untilValue(e){return e.until.type==="field_equals"?String(e.until.value??""):""}replaceAt(e,n){this.emit(this.steps().map((t,o)=>o===e?n:t));}emit(e){this.stepsChange.emit(e);}static{this.\u0275fac=function(n){return new(n||i)};}static{this.\u0275cmp=JE({type:i,selectors:[["app-step-list"]],inputs:{steps:[1,"steps"],rootSteps:[1,"rootSteps"],availableWorkflows:[1,"availableWorkflows"],depth:[1,"depth"]},outputs:{stepsChange:"stepsChange"},decls:6,vars:4,consts:[["data-testid","step-list",1,"step-list"],[1,"step-card",3,"nzTitle"],["nz-button","","nzType","dashed","nzBlock","","type","button","data-testid","add-step",3,"click"],[1,"step-toolbar"],[1,"type-select",3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],["nz-button","","type","button",3,"click","disabled"],["nz-button","","nzDanger","","type","button",3,"click"],[1,"field"],["nz-input","","required","",3,"ngModelChange","ngModel"],["nz-input","",3,"ngModelChange","ngModel"],[1,"hint"],["nz-input","","rows","3",3,"ngModelChange","ngModel"],[1,"checkbox-row"],["nz-checkbox","",3,"ngModel"],[3,"ngModelChange","ngModel"],["nz-checkbox","",3,"ngModelChange","ngModel"],[3,"rowsChange","rows"],["nzShowSearch","","nzAllowClear","",3,"ngModelChange","ngModel"],["data-testid","sub-workflow-foreach"],[1,"field-grid"],[3,"ngModelChange","ngModel","nzMin"],[1,"nested"],[3,"stepsChange","steps","rootSteps","availableWorkflows","depth"]],template:function(n,t){n&1&&(Ni(0,"div",0),kD(1,ti,34,32,"nz-card",1,An,true),Ni(3,"button",2),yh("click",function(){return t.addStep()}),_w(4),Uw(5,"transloco"),tl()()),n&2&&(lh("data-depth",t.depth()),vI(),OD(t.steps()),vI(3),sl(" ",Ww(5,2,"step-list.addStep")," "));},dependencies:[i,jn$1,_o,F4,go,mo,F3,Vd,Fc,y7,A7,Nt,Ke$1,Fe,oe,xz,Ie,Pt,Ke,Kb,q5,G5,jt,fc],styles:[".step-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.step-card[_ngcontent-%COMP%]{background:#fff}.step-toolbar[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem;align-items:center}.type-select[_ngcontent-%COMP%]{min-width:11rem}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;margin:.65rem 0}.field[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.85rem;color:#57534e}.field-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:.5rem 1rem}.checkbox-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.75rem}.hint[_ngcontent-%COMP%]{margin:0;font-size:.8rem;color:#78716c}.nested[_ngcontent-%COMP%]{margin-top:.75rem;padding:.75rem;border-left:3px solid #d6d3d1;background:#fafaf9}.nested[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0 0 .5rem}"]});}}return i})();var ni=i=>({ids:i});function ii(i,p){i&1&&(Ni(0,"p",5),_w(1),Uw(2,"transloco"),tl()),i&2&&(vI(),Vh(Ww(2,1,"workflow-editor.loading")));}function oi(i,p){if(i&1&&(Ni(0,"p",6),_w(1),tl()),i&2){let e=zD();vI(),Vh(e.loadError());}}function ri(i,p){if(i&1&&(Ni(0,"li"),_w(1),tl()),i&2){let e=p.$implicit;vI(),Vh(e);}}function ai(i,p){if(i&1&&(Ni(0,"section",7)(1,"h2"),_w(2),Uw(3,"transloco"),tl(),Ni(4,"ul"),kD(5,ri,2,1,"li",null,RD),tl()()),i&2){let e=zD(2);vI(2),Vh(Ww(3,1,"workflow-editor.validation")),vI(3),OD(e.validationErrors());}}function li(i,p){if(i&1&&(dh(0,"nz-option",13),Uw(1,"transloco")),i&2){let e=p.$implicit,n=zD(2);uh("nzValue",e)("nzLabel",Ww(1,2,n.subjectTypeKey(e)));}}function si(i,p){if(i&1&&(dh(0,"nz-option",13),Uw(1,"transloco")),i&2){let e=p.$implicit,n=zD(2);uh("nzValue",e)("nzLabel",Ww(1,2,n.cardinalityKey(e)));}}function pi(i,p){if(i&1){let e=HD();Ni(0,"label",23),yh("ngModelChange",function(t){let o=Vu(e).$implicit,d=zD(2);return Hu(d.toggleTrigger(o,t))}),_w(1),Uw(2,"transloco"),tl(),cE();}if(i&2){let e=p.$implicit,n=zD(2);uh("ngModel",n.hasTrigger(e)),lh("data-testid","notify-"+e),uE(),vI(),sl(" ",Ww(2,3,n.triggerKey(e))," ");}}function di(i,p){if(i&1&&(dh(0,"nz-option",13),Uw(1,"transloco")),i&2){let e=p.$implicit,n=zD(3);uh("nzValue",e)("nzLabel",Ww(1,2,n.inputTypeKey(e)));}}function ci(i,p){if(i&1){let e=HD();Ni(0,"div",19)(1,"label",10)(2,"span"),_w(3),Uw(4,"transloco"),tl(),Ni(5,"input",18),yh("ngModelChange",function(t){let o=Vu(e).$index,d=zD(2);return Hu(d.patchInputField(o,{name:t}))}),tl(),cE(),tl(),Ni(6,"label",10)(7,"span"),_w(8),Uw(9,"transloco"),tl(),Ni(10,"input",18),yh("ngModelChange",function(t){let o=Vu(e).$index,d=zD(2);return Hu(d.patchInputField(o,{label:t}))}),tl(),cE(),tl(),Ni(11,"div",10)(12,"span"),_w(13),Uw(14,"transloco"),tl(),Ni(15,"nz-select",24),yh("ngModelChange",function(t){let o=Vu(e).$index,d=zD(2);return Hu(d.patchInputField(o,{type:t}))}),kD(16,di,2,4,"nz-option",13,RD),tl(),cE(),tl(),Ni(18,"label",23),yh("ngModelChange",function(t){let o=Vu(e).$index,d=zD(2);return Hu(d.patchInputField(o,{required:t}))}),_w(19),Uw(20,"transloco"),tl(),cE(),Ni(21,"button",25),yh("click",function(){let t=Vu(e).$index,o=zD(2);return Hu(o.removeInputField(t))}),_w(22),Uw(23,"transloco"),tl()();}if(i&2){let e=p.$implicit,n=p.$index,t=zD(2);lh("data-testid","input-field-"+n),vI(3),Vh(Ww(4,10,"workflow-editor.fieldName")),vI(2),uh("ngModel",e.name),uE(),vI(3),Vh(Ww(9,12,"workflow-editor.fieldLabel")),vI(2),uh("ngModel",e.label),uE(),vI(3),Vh(Ww(14,14,"workflow-editor.fieldType")),vI(2),uh("ngModel",e.type),uE(),vI(),OD(t.inputFieldTypes),vI(2),uh("ngModel",e.required),uE(),vI(),sl(" ",Ww(20,16,"workflow-editor.required")," "),vI(3),sl(" ",Ww(23,18,"workflow-editor.remove")," ");}}function ui(i,p){if(i&1&&(Ni(0,"p",21),_w(1),Uw(2,"transloco"),tl()),i&2){let e=zD(2);vI(),sl(" ",Gw(2,1,"workflow-editor.duplicateStepIds",Bw(4,ni,e.duplicateStepIds().join(", ")))," ");}}function mi(i,p){if(i&1){let e=HD();ND(0,ai,7,3,"section",7),Ni(1,"nz-card",8),Uw(2,"transloco"),Ni(3,"div",9)(4,"label",10)(5,"span"),_w(6),Uw(7,"transloco"),tl(),Ni(8,"input",11),yh("ngModelChange",function(t){Vu(e);let o=zD();return Hu(o.patchWorkflow({name:t}))}),tl(),cE(),tl(),Ni(9,"div",10)(10,"span"),_w(11),Uw(12,"transloco"),tl(),Ni(13,"nz-select",12),yh("ngModelChange",function(t){Vu(e);let o=zD();return Hu(o.setAppliesTo(t))}),kD(14,li,2,4,"nz-option",13,RD),tl(),cE(),tl(),Ni(16,"div",10)(17,"span"),_w(18),Uw(19,"transloco"),tl(),Ni(20,"nz-select",14),yh("ngModelChange",function(t){Vu(e);let o=zD();return Hu(o.patchWorkflow({cardinality:t}))}),kD(21,si,2,4,"nz-option",13,RD),tl(),cE(),tl()(),Ni(23,"label",10)(24,"span"),_w(25),Uw(26,"transloco"),tl(),Ni(27,"textarea",15),yh("ngModelChange",function(t){Vu(e);let o=zD();return Hu(o.patchWorkflow({description:t||void 0}))}),tl(),cE(),tl()(),Ni(28,"nz-card",8),Uw(29,"transloco"),Ni(30,"div",16),kD(31,pi,3,5,"label",17,RD),tl(),Ni(33,"label",10)(34,"span"),_w(35),Uw(36,"transloco"),tl(),Ni(37,"input",18),yh("ngModelChange",function(t){Vu(e);let o=zD();return Hu(o.patchWorkflow({notificationPolicy:s(r({},o.workflow().notificationPolicy),{messageTemplate:t||void 0})}))}),tl(),cE(),tl()(),Ni(38,"nz-card",8),Uw(39,"transloco"),kD(40,ci,24,20,"div",19,AD),Ni(42,"button",20),yh("click",function(){Vu(e);let t=zD();return Hu(t.addInputField())}),_w(43),Uw(44,"transloco"),tl()(),Ni(45,"nz-card",8),Uw(46,"transloco"),ND(47,ui,3,6,"p",21),Ni(48,"app-step-list",22),yh("stepsChange",function(t){Vu(e);let o=zD();return Hu(o.onStepsChange(t))}),tl()();}if(i&2){let e=zD();xD(e.validationErrors().length>0?0:-1),vI(),uh("nzTitle",Ww(2,20,"workflow-editor.basics")),vI(5),Vh(Ww(7,22,"workflow-editor.name")),vI(2),uh("ngModel",e.workflow().name),uE(),vI(3),Vh(Ww(12,24,"workflow-editor.appliesTo")),vI(2),uh("ngModel",e.appliesToValue()),uE(),vI(),OD(e.subjectTypes),vI(4),Vh(Ww(19,26,"workflow-editor.cardinality.label")),vI(2),uh("ngModel",e.workflow().cardinality),uE(),vI(),OD(e.cardinalities),vI(4),Vh(Ww(26,28,"workflow-editor.description")),vI(2),uh("ngModel",e.workflow().description??""),uE(),vI(),uh("nzTitle",Ww(29,30,"workflow-editor.notificationPolicy")),vI(3),OD(e.notificationTriggers),vI(4),Vh(Ww(36,32,"workflow-editor.messageTemplate")),vI(2),uh("ngModel",e.workflow().notificationPolicy.messageTemplate??""),uE(),vI(),uh("nzTitle",Ww(39,34,"workflow-editor.inputSchema")),vI(2),OD(e.workflow().inputSchema),vI(3),sl(" ",Ww(44,36,"workflow-editor.addInputField")," "),vI(2),uh("nzTitle",Ww(46,38,"workflow-editor.steps")),vI(2),xD(e.duplicateStepIds().length>0?47:-1),vI(),uh("steps",e.workflow().steps)("rootSteps",e.workflow().steps)("availableWorkflows",e.availableWorkflows());}}var So=(()=>{class i{constructor(){this.route=C(W),this.router=C(ue),this.workflowsApi=C(U),this.message=C(Fz),this.destroyRef=C(at),this.transloco=C(vr),this.language=C(O),this.routeId=ur(this.route.paramMap.pipe(Me(e=>e.get("id"))),{initialValue:this.route.snapshot.paramMap.get("id")}),this.workflow=Go(I()),this.availableWorkflows=Go([]),this.loadError=Go(null),this.validationErrors=Go([]),this.duplicateStepIds=Go([]),this.saving=Go(false),this.loading=Go(true),this.isNew=Kw(()=>!this.routeId()),this.pageTitle=Kw(()=>(this.language.currentLang(),this.isNew()?this.transloco.translate("workflow-editor.titleNew"):this.transloco.translate("workflow-editor.titleEdit",{id:this.workflow().id||this.routeId()}))),this.subjectTypes=["none","ticket","pull_request","documentation"],this.cardinalities=["single","batch","aggregate"],this.notificationTriggers=["on_fail","on_complete","on_needs_input"],this.inputFieldTypes=["string","number","boolean","select"],this.workflowsApi.list().pipe(xt(this.destroyRef)).subscribe({next:e=>this.availableWorkflows.set(e),error:()=>{}}),this.route.paramMap.pipe(xt(this.destroyRef)).subscribe(e=>{let n=e.get("id");if(this.validationErrors.set([]),this.duplicateStepIds.set([]),this.loadError.set(null),!n){this.workflow.set(I()),this.loading.set(false);return}this.loading.set(true),this.workflowsApi.get(n).subscribe({next:t=>{this.workflow.set(s(r({},structuredClone(t)),{steps:g(t.steps,{idAutoSync:false})})),this.loading.set(false);},error:t=>{this.loading.set(false),this.loadError.set(this.errorMessage(t,`Failed to load workflow ${n}`));}});});}subjectTypeKey(e){return `workflow-editor.subjectType.${e}`}cardinalityKey(e){return `workflow-editor.cardinality.${e}`}triggerKey(e){return `workflow-editor.trigger.${e}`}inputTypeKey(e){return `workflow-editor.inputType.${e}`}patchWorkflow(e){this.workflow.update(n=>r(r({},n),e));}setAppliesTo(e){this.patchWorkflow({appliesTo:e});}appliesToValue(){let e=this.workflow().appliesTo;return Array.isArray(e)?e[0]??"none":e}hasTrigger(e){return this.workflow().notificationPolicy.triggers.includes(e)}toggleTrigger(e,n){let t=this.workflow().notificationPolicy.triggers,o=n?[...new Set([...t,e])]:t.filter(d=>d!==e);this.patchWorkflow({notificationPolicy:s(r({},this.workflow().notificationPolicy),{triggers:o})});}onStepsChange(e){this.patchWorkflow({steps:e}),this.duplicateStepIds.set(qp(e));}addInputField(){this.patchWorkflow({inputSchema:[...this.workflow().inputSchema,b()]});}removeInputField(e){this.patchWorkflow({inputSchema:this.workflow().inputSchema.filter((n,t)=>t!==e)});}patchInputField(e,n){let t=this.workflow().inputSchema.map((o,d)=>d===e?r(r({},o),n):o);this.patchWorkflow({inputSchema:t});}save(){let e=this.workflow(),n=qp(e.steps);if(this.duplicateStepIds.set(n),n.length>0){this.validationErrors.set([this.transloco.translate("workflow-editor.duplicateStepIds",{ids:n.join(", ")})]);return}let t=v(e,{omitWorkflowId:this.isNew()}),o=Xb.safeParse(t);if(!o.success){this.validationErrors.set(j(o.error));return}this.validationErrors.set([]),this.saving.set(true);let d=o.data,k=this.routeId();(this.isNew()||!k?this.workflowsApi.create(d):this.workflowsApi.update(k,s(r({},d),{id:k}))).subscribe({next:L=>{this.saving.set(false),this.workflow.set(s(r({},structuredClone(L)),{steps:g(L.steps,{idAutoSync:false})})),this.message.success(this.isNew()?"Workflow created":"Workflow saved"),this.isNew()&&this.router.navigate(["/workflows",L.id,"edit"]);},error:L=>{this.saving.set(false),this.message.error(this.errorMessage(L,"Save failed"));}});}errorMessage(e,n){return e instanceof o||e instanceof Error?e.message:n}static{this.\u0275fac=function(n){return new(n||i)};}static{this.\u0275cmp=JE({type:i,selectors:[["app-workflow-editor"]],decls:15,vars:10,consts:[["data-testid","workflow-editor",1,"editor"],[1,"header"],[1,"header-actions"],["routerLink","/jobs"],["nz-button","","nzType","primary","type","button","data-testid","save-button",3,"click","nzLoading","disabled"],["data-testid","loading"],["data-testid","load-error",1,"error"],["data-testid","validation-errors",1,"errors"],[3,"nzTitle"],[1,"grid"],[1,"field"],["nz-input","","data-testid","workflow-name",3,"ngModelChange","ngModel"],["data-testid","workflow-applies-to",3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],["data-testid","workflow-cardinality",3,"ngModelChange","ngModel"],["nz-input","","rows","2","data-testid","workflow-description",3,"ngModelChange","ngModel"],[1,"checkbox-row"],["nz-checkbox","",3,"ngModel"],["nz-input","",3,"ngModelChange","ngModel"],[1,"input-field-row"],["nz-button","","nzType","dashed","type","button",3,"click"],["data-testid","duplicate-step-ids",1,"error"],[3,"stepsChange","steps","rootSteps","availableWorkflows"],["nz-checkbox","",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["nz-button","","nzDanger","","type","button",3,"click"]],template:function(n,t){n&1&&(Ni(0,"main",0)(1,"header",1)(2,"div")(3,"h1"),_w(4),tl()(),Ni(5,"div",2)(6,"a",3),_w(7),Uw(8,"transloco"),tl(),Ni(9,"button",4),yh("click",function(){return t.save()}),_w(10),Uw(11,"transloco"),tl()()(),ND(12,ii,3,3,"p",5)(13,oi,2,1,"p",6)(14,mi,49,40),tl()),n&2&&(vI(4),Vh(t.pageTitle()),vI(3),Vh(Ww(8,6,"workflow-editor.backToJobs")),vI(2),uh("nzLoading",t.saving())("disabled",t.loading()||!!t.loadError()),vI(),sl(" ",Ww(11,8,"common.save")," "),vI(2),xD(t.loading()?12:t.loadError()?13:14));},dependencies:[jn$1,_o,F4,go,F3,Mt,Vd,Fc,y7,A7,Nt,Ke$1,Fe,oe,xz,Ie,Kb,q5,G5,qt,fc],styles:[".editor[_ngcontent-%COMP%]{max-width:56rem;margin:0 auto;padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:1rem}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.header-actions[_ngcontent-%COMP%]{display:flex;gap:.75rem;align-items:center}.lede[_ngcontent-%COMP%]{margin:.25rem 0 0;color:#57534e}.grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:.75rem 1rem}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;margin:.5rem 0}.field[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.85rem;color:#57534e}.checkbox-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:.5rem}.input-field-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr 8rem auto auto;gap:.5rem;align-items:end;margin-bottom:.5rem}.input-field-row[_ngcontent-%COMP%] > .field[_ngcontent-%COMP%]{margin:0}.errors[_ngcontent-%COMP%]{border:1px solid #fecdd3;background:#fff1f2;padding:.75rem 1rem}.errors[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 .35rem;font-size:1rem}.error[_ngcontent-%COMP%]{color:#9f1239}"]});}}return i})();export{So as WorkflowEditorComponent};
@@ -1 +0,0 @@
1
- function u(e){if(!e)return {};let r={};for(let[t,n]of Object.entries(e))n!=null&&(r[t]=String(n));return r}export{u};
@@ -1 +0,0 @@
1
- function t(r,n){let e=r.appliesTo;return e==="none"?false:Array.isArray(e)?e.includes(n):e===n}function u(r){return r==="batch"||r==="aggregate"}function o(r){return JSON.stringify(r)}export{o,t,u};
@@ -1 +0,0 @@
1
- import {af as eD,ag as hu,cM as O1,aX as dC,C,bD as Z0,ao as Ie$1,aY as fC,b$ as Tt,J as JE,bd as Pt,be as Ne$1,aD as Ur,ai as K0,aE as ZD,p as ND,N as Ni,k as tl,D as xD,u as vI,br as hw,a2 as Nh,c2 as Eh,bi as JD,bj as XD,bk as pt,cN as S9,r,bC as fy,E as zD,aF as oh,A as uh,o as dh,a4 as Hw,aV as YD,m as kD,a5 as AD,O as OD,a_ as rD,cw as fh,bP as Sh,bL as ol,h as _w,bM as il,w as Vh,cO as ih,bh as Dh,bK as Tr,R as RD}from'./main-JSLBK4RN.js';var Ce=["*"];function fe(e,a){if(e&1&&(Ni(0,"div",0),dh(1,"nz-skeleton-element",4),tl()),e&2){let t=zD(2);vI(),uh("nzSize",t.avatar.size||"default")("nzShape",t.avatar.shape||"circle");}}function _e(e,a){if(e&1&&dh(0,"h3",5),e&2){let t=zD(2);Sh("width",t.toCSSUnit(t.title.width));}}function ve(e,a){if(e&1&&dh(0,"li"),e&2){let t=a.$index,n=zD(3);Sh("width",n.toCSSUnit(n.widthList[t]));}}function ge(e,a){if(e&1&&(Ni(0,"ul",3),kD(1,ve,1,2,"li",6,RD),tl()),e&2){let t=zD(2);vI(),OD(t.rowsList);}}function he(e,a){if(e&1&&(ND(0,fe,2,2,"div",0),Ni(1,"div",1),ND(2,_e,1,2,"h3",2),ND(3,ge,3,0,"ul",3),tl()),e&2){let t=zD();xD(t.nzAvatar?0:-1),vI(2),xD(t.nzTitle?2:-1),vI(),xD(t.nzParagraph?3:-1);}}function Se(e,a){e&1&&YD(0);}var Te=(()=>{class e{nzActive=false;nzType;nzBlock=false;static \u0275fac=function(n){return new(n||e)};static \u0275dir=rD({type:e,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(n,i){n&2&&Nh("ant-skeleton-active",i.nzActive)("ant-skeleton-block",i.nzBlock);},inputs:{nzActive:[2,"nzActive","nzActive",K0],nzType:"nzType",nzBlock:[2,"nzBlock","nzBlock",K0]}})}return e})();var ye=(()=>{class e{nzShape="circle";nzSize="default";styleMap={};ngOnChanges(t){if(t.nzSize&&typeof this.nzSize=="number"){let n=`${this.nzSize}px`;this.styleMap={width:n,height:n,"line-height":n};}else this.styleMap={};}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=JE({type:e,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[fy],decls:1,vars:10,consts:[[1,"ant-skeleton-avatar"]],template:function(n,i){n&1&&fh(0,"span",0),n&2&&(hw(i.styleMap),Nh("ant-skeleton-avatar-square",i.nzShape==="square")("ant-skeleton-avatar-circle",i.nzShape==="circle")("ant-skeleton-avatar-lg",i.nzSize==="large")("ant-skeleton-avatar-sm",i.nzSize==="small"));},encapsulation:2})}return e})();var ce=(()=>{class e{cdr=C(Z0);nzActive=false;nzLoading=true;nzRound=false;nzTitle=true;nzAvatar=false;nzParagraph=true;title;avatar;paragraph;rowsList=[];widthList=[];toCSSUnit(t=""){return S9(t)}getTitleProps(){let t=!!this.nzAvatar,n=!!this.nzParagraph,i="";return !t&&n?i="38%":t&&n&&(i="50%"),r({width:i},this.getProps(this.nzTitle))}getAvatarProps(){let t=this.nzTitle&&!this.nzParagraph?"square":"circle";return r({shape:t,size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){let t=!!this.nzAvatar,n=!!this.nzTitle,i={};return (!t||!n)&&(i.width="61%"),!t&&n?i.rows=3:i.rows=2,r(r({},i),this.getProps(this.nzParagraph))}getProps(t){return t&&typeof t=="object"?t:{}}getWidthList(){let{width:t,rows:n}=this.paragraph,i=[];return t&&Array.isArray(t)?i=t:t&&!Array.isArray(t)&&(i=[],i[n-1]=t),i}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck();}ngOnInit(){this.updateProps();}ngOnChanges(t){(t.nzTitle||t.nzAvatar||t.nzParagraph)&&this.updateProps();}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=JE({type:e,selectors:[["nz-skeleton"]],hostAttrs:[1,"ant-skeleton"],hostVars:6,hostBindings:function(n,i){n&2&&Nh("ant-skeleton-with-avatar",!!i.nzAvatar)("ant-skeleton-active",i.nzActive)("ant-skeleton-round",i.nzRound);},inputs:{nzActive:[2,"nzActive","nzActive",K0],nzLoading:[2,"nzLoading","nzLoading",K0],nzRound:[2,"nzRound","nzRound",K0],nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[fy],ngContentSelectors:Ce,decls:2,vars:1,consts:[[1,"ant-skeleton-header"],[1,"ant-skeleton-content"],[1,"ant-skeleton-title",3,"width"],[1,"ant-skeleton-paragraph"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[3,"width"]],template:function(n,i){n&1&&(ZD(),ND(0,he,4,3)(1,Se,1,0)),n&2&&xD(i.nzLoading?0:1);},dependencies:[Te,ye],encapsulation:2})}return e})(),pe=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=eD({type:e});static \u0275inj=hu({})}return e})();function Ne(e,a){}function ke(e,a){if(e&1&&(Ni(0,"div",0),oh(1,Ne,0,0,"ng-template",2),tl()),e&2){let t=zD();vI(),uh("ngTemplateOutlet",t.nzAvatar);}}function be(e,a){if(e&1&&(ol(0),_w(1),il()),e&2){let t=zD(3);vI(),Vh(t.nzTitle);}}function Me(e,a){if(e&1&&(Ni(0,"div",3),oh(1,be,2,1,"ng-container",5),tl()),e&2){let t=zD(2);vI(),uh("nzStringTemplateOutlet",t.nzTitle);}}function Ae(e,a){if(e&1&&(ol(0),_w(1),il()),e&2){let t=zD(3);vI(),Vh(t.nzDescription);}}function De(e,a){if(e&1&&(Ni(0,"div",4),oh(1,Ae,2,1,"ng-container",5),tl()),e&2){let t=zD(2);vI(),uh("nzStringTemplateOutlet",t.nzDescription);}}function Ee(e,a){if(e&1&&(Ni(0,"div",1),ND(1,Me,2,1,"div",3),ND(2,De,2,1,"div",4),tl()),e&2){let t=zD();vI(),xD(t.nzTitle?1:-1),vI(),xD(t.nzDescription?2:-1);}}var me=["*"];function we(e,a){e&1&&YD(0);}var Pe=()=>({rows:4});function Be(e,a){if(e&1&&(ol(0),_w(1),il()),e&2){let t=zD(3);vI(),Vh(t.nzTitle);}}function Oe(e,a){if(e&1&&(Ni(0,"div",6),oh(1,Be,2,1,"ng-container",9),tl()),e&2){let t=zD(2);vI(),uh("nzStringTemplateOutlet",t.nzTitle);}}function Fe(e,a){if(e&1&&(ol(0),_w(1),il()),e&2){let t=zD(3);vI(),Vh(t.nzExtra);}}function Le(e,a){if(e&1&&(Ni(0,"div",7),oh(1,Fe,2,1,"ng-container",9),tl()),e&2){let t=zD(2);vI(),uh("nzStringTemplateOutlet",t.nzExtra);}}function He(e,a){}function Ie(e,a){if(e&1&&oh(0,He,0,0,"ng-template",8),e&2){let t=zD(2);uh("ngTemplateOutlet",t.listOfNzCardTabComponent.template);}}function qe(e,a){if(e&1&&(Ni(0,"div",0)(1,"div",5),ND(2,Oe,2,1,"div",6),ND(3,Le,2,1,"div",7),tl(),ND(4,Ie,1,1,null,8),tl()),e&2){let t=zD();vI(2),xD(t.nzTitle?2:-1),vI(),xD(t.nzExtra?3:-1),vI(),xD(t.listOfNzCardTabComponent?4:-1);}}function je(e,a){}function Re(e,a){if(e&1&&(Ni(0,"div",1),oh(1,je,0,0,"ng-template",8),tl()),e&2){let t=zD();vI(),uh("ngTemplateOutlet",t.nzCover);}}function Ge(e,a){e&1&&dh(0,"nz-skeleton",3),e&2&&uh("nzActive",true)("nzTitle",false)("nzParagraph",Hw(3,Pe));}function Qe(e,a){e&1&&YD(0);}function Ve(e,a){}function $e(e,a){if(e&1&&(Ni(0,"li")(1,"span"),oh(2,Ve,0,0,"ng-template",8),tl()()),e&2){let t=a.$implicit,n=a.$count;Sh("width",100/n,"%"),vI(2),uh("ngTemplateOutlet",t);}}function Ue(e,a){if(e&1&&(Ni(0,"ul",4),kD(1,$e,3,3,"li",10,AD),tl()),e&2){let t=zD();vI(),OD(t.nzActions);}}var We=(()=>{class e{nzHoverable=true;static \u0275fac=function(n){return new(n||e)};static \u0275dir=rD({type:e,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(n,i){n&2&&Nh("ant-card-hoverable",i.nzHoverable);},inputs:{nzHoverable:[2,"nzHoverable","nzHoverable",K0]},exportAs:["nzCardGrid"]})}return e})(),Ze=(()=>{class e{nzTitle=null;nzDescription=null;nzAvatar=null;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=JE({type:e,selectors:[["nz-card-meta"]],hostAttrs:[1,"ant-card-meta"],inputs:{nzTitle:"nzTitle",nzDescription:"nzDescription",nzAvatar:"nzAvatar"},exportAs:["nzCardMeta"],decls:2,vars:2,consts:[[1,"ant-card-meta-avatar"],[1,"ant-card-meta-detail"],[3,"ngTemplateOutlet"],[1,"ant-card-meta-title"],[1,"ant-card-meta-description"],[4,"nzStringTemplateOutlet"]],template:function(n,i){n&1&&(ND(0,ke,2,1,"div",0),ND(1,Ee,3,2,"div",1)),n&2&&(xD(i.nzAvatar?0:-1),vI(),xD(i.nzTitle||i.nzDescription?1:-1));},dependencies:[Ur,Pt,Ne$1],encapsulation:2})}return e})(),Je=(()=>{class e{template;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=JE({type:e,selectors:[["nz-card-tab"]],viewQuery:function(n,i){if(n&1&&Dh(Tr,7),n&2){let S;JD(S=XD())&&(i.template=S.first);}},exportAs:["nzCardTab"],ngContentSelectors:me,decls:1,vars:0,template:function(n,i){n&1&&(ZD(),ih(0,we,1,0,"ng-template"));},encapsulation:2})}return e})(),ze="card",Ke=(()=>{let e,a=[],t=[],n,i=[],S=[],W,Z=[],J=[];return class U{static{let C=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;e=[pt()],n=[pt()],W=[pt()],dC(null,null,e,{kind:"field",name:"nzBordered",static:false,private:false,access:{has:r=>"nzBordered"in r,get:r=>r.nzBordered,set:(r,l)=>{r.nzBordered=l;}},metadata:C},a,t),dC(null,null,n,{kind:"field",name:"nzHoverable",static:false,private:false,access:{has:r=>"nzHoverable"in r,get:r=>r.nzHoverable,set:(r,l)=>{r.nzHoverable=l;}},metadata:C},i,S),dC(null,null,W,{kind:"field",name:"nzSize",static:false,private:false,access:{has:r=>"nzSize"in r,get:r=>r.nzSize,set:(r,l)=>{r.nzSize=l;}},metadata:C},Z,J),C&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:C});}cdr=C(Z0);dir=C(Ie$1).valueSignal;_nzModuleName=ze;nzBordered=fC(this,a,true);nzLoading=(fC(this,t),false);nzHoverable=fC(this,i,false);nzBodyStyle=(fC(this,S),null);nzCover;nzActions=[];nzType=null;nzSize=fC(this,Z,"default");nzTitle=fC(this,J);nzExtra;listOfNzCardTabComponent;listOfNzCardGridDirective;constructor(){Tt(ze,()=>this.cdr.markForCheck());}static \u0275fac=function(r){return new(r||U)};static \u0275cmp=JE({type:U,selectors:[["nz-card"]],contentQueries:function(r,l,K){if(r&1&&Eh(K,Je,5)(K,We,4),r&2){let E;JD(E=XD())&&(l.listOfNzCardTabComponent=E.first),JD(E=XD())&&(l.listOfNzCardGridDirective=E);}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(r,l){r&2&&Nh("ant-card-loading",l.nzLoading)("ant-card-bordered",l.nzBordered)("ant-card-hoverable",l.nzHoverable)("ant-card-small",l.nzSize==="small")("ant-card-contain-grid",l.listOfNzCardGridDirective&&l.listOfNzCardGridDirective.length)("ant-card-type-inner",l.nzType==="inner")("ant-card-contain-tabs",!!l.listOfNzCardTabComponent)("ant-card-rtl",l.dir()==="rtl");},inputs:{nzBordered:[2,"nzBordered","nzBordered",K0],nzLoading:[2,"nzLoading","nzLoading",K0],nzHoverable:[2,"nzHoverable","nzHoverable",K0],nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],ngContentSelectors:me,decls:6,vars:6,consts:[[1,"ant-card-head"],[1,"ant-card-cover"],[1,"ant-card-body"],[3,"nzActive","nzTitle","nzParagraph"],[1,"ant-card-actions"],[1,"ant-card-head-wrapper"],[1,"ant-card-head-title"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"],[3,"width"]],template:function(r,l){r&1&&(ZD(),ND(0,qe,5,3,"div",0),ND(1,Re,2,1,"div",1),Ni(2,"div",2),ND(3,Ge,1,4,"nz-skeleton",3)(4,Qe,1,0),tl(),ND(5,Ue,3,0,"ul",4)),r&2&&(xD(l.nzTitle||l.nzExtra||l.listOfNzCardTabComponent?0:-1),vI(),xD(l.nzCover?1:-1),vI(),hw(l.nzBodyStyle),vI(),xD(l.nzLoading?3:4),vI(2),xD(l.nzActions.length?5:-1));},dependencies:[Pt,Ne$1,Ur,pe,ce],encapsulation:2})}})(),Nt=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=eD({type:e});static \u0275inj=hu({imports:[Ke,Ze,O1]})}return e})();export{Ke as K,Nt as N};
@@ -1 +0,0 @@
1
- import {af as eD,ag as hu,aX as dC,aY as fC,Z as q0,ai as K0,K as Kw,s,r,aZ as Fe,x as xt,a_ as rD,a$ as nh,a2 as Nh,G as Go,b0 as re,C,b1 as Wo,b2 as Wo$1,b3 as rm,b4 as sn,b5 as zl,J as JE,b6 as wn,b7 as v1,b8 as Sn,b9 as fi,ba as Ks,bb as qs,bc as d4,bd as Pt,be as Ne,aA as vt$1,aB as ke,V as Vd,c as Fc,y as y7,Y as A7,bf as j_,bg as R_,aF as oh,l as yh,A as uh,bh as Dh,al as Nr,bi as JD,bj as XD,bk as pt$1,bl as kr,bm as a9,bn as Ay,H as HD,N as Ni,bo as si,bp as ii,p as ND,k as tl,bq as Wh,U as Uw,h as _w,E as zD,br as hw,aN as mw,u as vI,D as xD,a3 as lh,W as Ww,z as sl,bs as Bi,bt as nE,bu as Dt,a as at,bv as Qm,bw as qo,bx as em,by as Xg,bz as Lg,bA as Lr,bB as ky,bC as fy,ao as Ie,bD as Z0,bE as v2,bF as p2,bG as Me,bH as Ju,bI as xn,bJ as Ee,bK as Tr,aq as X3,o as dh,bL as ol,bM as il,bN as C9,w as Vh,aG as zw,I as Vu,L as Hu}from'./main-JSLBK4RN.js';var lt=["overlay"];function ct(i,m){if(i&1&&(ol(0),_w(1),il()),i&2){let e=zD(2);vI(),Vh(e.nzTitle);}}function pt(i,m){if(i&1){let e=HD();Ni(0,"div",2),si(function(){Vu(e);let n=zD();return Hu(n.zoomAnimationLeave())}),ii(function(){Vu(e);let n=zD();return Hu(n.zoomAnimationEnter())}),dh(1,"div",3),Ni(2,"div",4)(3,"div",5),oh(4,ct,2,1,"ng-container",6),tl()()();}if(i&2){let e=zD();hw(e.nzOverlayStyle),mw(e._classMap),Nh("ant-tooltip-rtl",e.dir()==="rtl"),uh("nzNoAnimation",!!e.noAnimation?.nzNoAnimation?.()),vI(),hw(e._arrowStyleMap),vI(2),hw(e._contentStyleMap),vI(),uh("nzStringTemplateOutlet",e.nzTitle)("nzStringTemplateOutletContext",e.nzTitleContext);}}var tt=(()=>{class i{componentType;elementRef=C(Nr);hostView=C(Bi);renderer=C(nE);noAnimation=C(d4,{host:true,optional:true});nzConfigService=C(Dt);destroyRef=C(at);platformId=C(Qm);config;visibleChange=new Fe;get _title(){return this.title||this.directiveTitle||null}get _content(){return this.content||this.directiveContent||null}get _trigger(){return typeof this.trigger<"u"?this.trigger:"hover"}get _placement(){let e=this.placement;return Array.isArray(e)&&e.length>0?e:typeof e=="string"&&e?[e]:["top"]}get _visible(){return (typeof this.visible<"u"?this.visible:this.internalVisible)||false}get _mouseEnterDelay(){return this.mouseEnterDelay||.15}get _mouseLeaveDelay(){return this.mouseLeaveDelay||.1}get _overlayClassName(){return this.overlayClassName||null}get _overlayStyle(){return this.overlayStyle||null}get _overlayClickable(){return this.overlayClickable??true}internalVisible=false;getProxyPropertyMap(){return {noAnimation:["noAnimation",()=>!!this.noAnimation]}}component;destroy$=new re;triggerDisposables=[];delayTimer;constructor(e){this.componentType=e,this.destroyRef.onDestroy(()=>{this.clearTogglingTimer(),this.removeTriggerListeners();});}ngAfterViewInit(){qo(this.platformId)&&(this.createComponent(),this.registerTriggers());}ngOnChanges(e){let{trigger:t}=e;t&&!t.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(e);}show(){this.component?.show();}hide(){this.component?.hide();}updatePosition(){this.component&&this.component.updatePosition();}createComponent(){let e=this.hostView.createComponent(this.componentType);this.component=e.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),e.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties();let t=this.component.nzVisibleChange.pipe(em());t.pipe(xt(this.destroyRef)).subscribe(n=>{this.internalVisible=n,this.visibleChange.emit(n);}),t.pipe(sn(Boolean),Xg(0,Lg),sn(()=>!!this.component?.overlay?.overlayRef),xt(this.destroyRef)).subscribe(()=>{this.component?.updatePosition();});}registerTriggers(){let e=this.elementRef.nativeElement,t=this.trigger;if(this.removeTriggerListeners(),t==="hover"){let n;this.triggerDisposables.push(this.renderer.listen(e,"mouseenter",()=>{this.delayEnterLeave(true,true,this._mouseEnterDelay);})),this.triggerDisposables.push(this.renderer.listen(e,"mouseleave",()=>{this.delayEnterLeave(true,false,this._mouseLeaveDelay),this.component?.overlay.overlayRef&&!n&&(n=this.component.overlay.overlayRef.overlayElement,this.triggerDisposables.push(this.renderer.listen(n,"mouseenter",()=>{this.delayEnterLeave(false,true,this._mouseEnterDelay);})),this.triggerDisposables.push(this.renderer.listen(n,"mouseleave",()=>{this.delayEnterLeave(false,false,this._mouseLeaveDelay);})));}));}else t==="focus"?(this.triggerDisposables.push(this.renderer.listen(e,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(e,"focusout",()=>this.hide()))):t==="click"&&this.triggerDisposables.push(this.renderer.listen(e,"click",n=>{n.preventDefault(),this.show();}));}updatePropertiesByChanges(e){this.updatePropertiesByKeys(Object.keys(e));}updatePropertiesByKeys(e){let t=r({title:["nzTitle",()=>this._title],directiveTitle:["nzTitle",()=>this._title],content:["nzContent",()=>this._content],directiveContent:["nzContent",()=>this._content],trigger:["nzTrigger",()=>this._trigger],placement:["nzPlacement",()=>this._placement],visible:["nzVisible",()=>this._visible],mouseEnterDelay:["nzMouseEnterDelay",()=>this._mouseEnterDelay],mouseLeaveDelay:["nzMouseLeaveDelay",()=>this._mouseLeaveDelay],overlayClassName:["nzOverlayClassName",()=>this._overlayClassName],overlayStyle:["nzOverlayStyle",()=>this._overlayStyle],overlayClickable:["nzOverlayClickable",()=>this._overlayClickable],arrowPointAtCenter:["nzArrowPointAtCenter",()=>this.arrowPointAtCenter]},this.getProxyPropertyMap());(e||Object.keys(t).filter(n=>!n.startsWith("directive"))).forEach(n=>{if(t[n]){let[o,c]=t[n];this.updateComponentValue(o,c());}}),this.component?.updateByDirective();}initProperties(){this.updatePropertiesByKeys();}updateComponentValue(e,t){typeof t<"u"&&(this.component[e]=t);}delayEnterLeave(e,t,n=-1){this.delayTimer?this.clearTogglingTimer():n>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,t?this.show():this.hide();},n*1e3):t&&e?this.show():this.hide();}removeTriggerListeners(){this.triggerDisposables.forEach(e=>e()),this.triggerDisposables.length=0;}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0);}static \u0275fac=function(t){return new(t||i)(Lr(ky))};static \u0275dir=rD({type:i,features:[fy]})}return i})(),mt=(()=>{class i{noAnimation=C(d4,{host:true,optional:true});dir=C(Ie).valueSignal;cdr=C(Z0);elementRef=C(Nr);destroyRef=C(at);overlay;nzTitle=null;nzContent=null;nzArrowPointAtCenter=false;nzOverlayClassName;nzOverlayStyle={};nzOverlayClickable=true;nzBackdrop=false;nzMouseEnterDelay;nzMouseLeaveDelay;nzVisibleChange=new re;set nzVisible(e){let t=C9(e);this._visible!==t&&(this._visible=t,this.nzVisibleChange.next(t));}get nzVisible(){return this._visible}_visible=false;set nzTrigger(e){this._trigger=e;}get nzTrigger(){return this._trigger}_trigger="hover";set nzPlacement(e){let t=e.map(n=>v2(Me[n],p2[n]));this._positions=[...t,...Ju];}preferredPlacement="top";origin;_classMap={};_prefix="ant-tooltip";_positions=[...Ju];constructor(){this.destroyRef.onDestroy(()=>{this.nzVisibleChange.complete();});}show(){this.nzVisible||(this.isEmpty()||(this.nzVisible=true,this.nzVisibleChange.next(true),this.cdr.detectChanges()),this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.getDirection()==="rtl"&&this.overlay.overlayRef.setDirection("ltr"));}hide(){this.nzVisible&&(this.nzVisible=false,this.nzVisibleChange.next(false),this.cdr.detectChanges());}updateByDirective(){this.updateStyles(),this.cdr.detectChanges(),Promise.resolve().then(()=>{this.updatePosition(),this.updateVisibilityByTitle();});}updatePosition(){this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.updatePosition();}onPositionChange(e){this.preferredPlacement=xn(e),this.updateStyles(),this.cdr.detectChanges();}setOverlayOrigin(e){this.origin=e,this.cdr.markForCheck();}onClickOutside(e){if(!this.nzOverlayClickable)return;let t=Ee(e);!this.origin.nativeElement.contains(t)&&this.nzTrigger!==null&&this.hide();}updateVisibilityByTitle(){this.isEmpty()&&this.hide();}updateStyles(){this._classMap=s(r({},this.transformClassListToMap(this.nzOverlayClassName)),{[`${this._prefix}-placement-${this.preferredPlacement}`]:true});}transformClassListToMap(e){let t={};return (e!==null?e.split(/\s+/):[]).forEach(o=>t[o]=true),t}static \u0275fac=function(t){return new(t||i)};static \u0275dir=rD({type:i,viewQuery:function(t,n){if(t&1&&Dh(lt,5),t&2){let o;JD(o=XD())&&(n.overlay=o.first);}}})}return i})();function ut(i){return i instanceof Tr?false:i===""||!X3(i)}var nt=(()=>{class i extends mt{_animationPrefix="ant-zoom-big-fast";nzTitle=null;nzTitleContext=null;nzColor;_arrowStyleMap={};_contentStyleMap={};zoomAnimationEnter=kr(()=>`${this._animationPrefix}-enter ${this._animationPrefix}-enter-active`);zoomAnimationLeave=kr(()=>`${this._animationPrefix}-leave ${this._animationPrefix}-leave-active`);isEmpty(){return ut(this.nzTitle)}updateStyles(){let e=this.nzColor&&a9(this.nzColor);this._classMap=s(r({},this.transformClassListToMap(this.nzOverlayClassName)),{[`${this._prefix}-placement-${this.preferredPlacement}`]:true,[`${this._prefix}-${this.nzColor}`]:e}),this._contentStyleMap={backgroundColor:this.nzColor&&!e?this.nzColor:null},this._arrowStyleMap={"--antd-arrow-background-color":this.nzColor&&!e?this.nzColor:null};}static \u0275fac=(()=>{let e;return function(n){return (e||(e=Ay(i)))(n||i)}})();static \u0275cmp=JE({type:i,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],features:[nh],decls:2,vars:4,consts:[["overlay","cdkConnectedOverlay"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","nzArrowPointAtCenter"],[1,"ant-tooltip",3,"nzNoAnimation"],[1,"ant-tooltip-arrow"],[1,"ant-tooltip-content"],[1,"ant-tooltip-inner"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"]],template:function(t,n){t&1&&(oh(0,pt,5,13,"ng-template",1,0,zw),yh("overlayOutsideClick",function(c){return n.onClickOutside(c)})("detach",function(){return n.hide()})("positionChange",function(c){return n.onPositionChange(c)})),t&2&&uh("cdkConnectedOverlayOrigin",n.origin)("cdkConnectedOverlayOpen",n._visible)("cdkConnectedOverlayPositions",n._positions)("nzArrowPointAtCenter",n.nzArrowPointAtCenter);},dependencies:[wn,v1,d4,Pt,Ne,Sn,fi],encapsulation:2})}return i})();var dt=["okBtn"],ft=["cancelBtn"];function zt(i,m){i&1&&dh(0,"div",5);}function ht(i,m){if(i&1&&(ol(0),dh(1,"nz-icon",17),il()),i&2){let e=m.$implicit;vI(),uh("nzType",e||"exclamation-circle");}}function vt(i,m){if(i&1&&(Ni(0,"span",10),oh(1,ht,2,1,"ng-container",16),tl()),i&2){let e=zD(2);vI(),uh("nzStringTemplateOutlet",e.nzIcon);}}function yt(i,m){if(i&1&&(ol(0),_w(1),il()),i&2){let e=zD(2);vI(),sl(" ",e.nzTitle," ");}}function gt(i,m){if(i&1){let e=HD();Ni(0,"div",4),si(function(){Vu(e);let n=zD();return Hu(n.zoomAnimationLeave())}),ii(function(){Vu(e);let n=zD();return Hu(n.zoomAnimationEnter())}),ND(1,zt,1,0,"div",5),Ni(2,"div",6)(3,"div",7)(4,"div")(5,"div",8)(6,"div",9),ND(7,vt,2,1,"span",10),Ni(8,"div",11),oh(9,yt,2,1,"ng-container",12),tl()(),Ni(10,"div",13)(11,"button",14,1),yh("click",function(){Vu(e);let n=zD();return Hu(n.onCancel())}),Wh(13),Uw(14,"nzI18n"),_w(15),tl(),Ni(16,"button",15,2),yh("click",function(){Vu(e);let n=zD();return Hu(n.onConfirm())}),Wh(18),Uw(19,"nzI18n"),_w(20),tl()()()()()()();}if(i&2){let e=zD();hw(e.nzOverlayStyle),mw(e._classMap),Nh("ant-popover-rtl",e.dir()==="rtl"),uh("cdkTrapFocusAutoCapture",e.nzAutoFocus!==null)("nzNoAnimation",!!e.noAnimation?.nzNoAnimation?.()),vI(),xD(e.nzPopconfirmShowArrow?1:-1),vI(6),xD(e.nzIcon!==null?7:-1),vI(2),uh("nzStringTemplateOutlet",e.nzTitle)("nzStringTemplateOutletContext",e.nzTitleContext),vI(2),uh("nzDanger",e.nzCancelButtonProps()?.nzDanger)("disabled",e.nzCancelButtonProps()?.nzDisabled),lh("cdkFocusInitial",e.nzAutoFocus==="cancel"||null);let t=e.nzCancelText()||Ww(14,22,"Modal.cancelText");vI(4),sl(" ",t," "),vI(),uh("nzType",e.nzOkButtonProps().nzType)("nzDanger",e.nzOkButtonProps().nzDanger)("nzLoading",e.confirmLoading)("disabled",e.nzOkButtonProps().nzDisabled),lh("cdkFocusInitial",e.nzAutoFocus==="ok"||null);let n=e.nzOkText()||Ww(19,24,"Modal.okText");vI(4),sl(" ",n," ");}}var Ct="popconfirm",Cn=(()=>{let i=tt,m,e=[],t=[],n,o=[],c=[];return class he extends i{static{let C=typeof Symbol=="function"&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;m=[pt$1()],n=[pt$1()],dC(null,null,m,{kind:"field",name:"nzPopconfirmBackdrop",static:false,private:false,access:{has:a=>"nzPopconfirmBackdrop"in a,get:a=>a.nzPopconfirmBackdrop,set:(a,N)=>{a.nzPopconfirmBackdrop=N;}},metadata:C},e,t),dC(null,null,n,{kind:"field",name:"nzAutofocus",static:false,private:false,access:{has:a=>"nzAutofocus"in a,get:a=>a.nzAutofocus,set:(a,N)=>{a.nzAutofocus=N;}},metadata:C},o,c),C&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:C});}_nzModuleName=Ct;arrowPointAtCenter;title;titleContext=null;directiveTitle;trigger="click";placement="top";origin;mouseEnterDelay;mouseLeaveDelay;overlayClassName;overlayStyle;visible;nzBeforeConfirm;nzIcon;nzCondition=false;nzPopconfirmShowArrow=true;nzPopconfirmBackdrop=fC(this,e,false);nzAutofocus=(fC(this,t),fC(this,o,null));nzOkText=(fC(this,c),q0(null));nzOkType=q0("primary");nzCancelText=q0(null);nzOkButtonProps=q0(null);nzCancelButtonProps=q0(null);nzOkDisabled=q0(false,{transform:K0});nzOkDanger=q0(false,{transform:K0});okButtonProps=Kw(()=>s(r({},this.nzOkButtonProps()),{nzType:this.nzOkButtonProps()?.nzType||this.nzOkType()==="danger"?"primary":this.nzOkType(),nzDanger:this.nzOkDanger()||this.nzOkButtonProps()?.nzDanger||this.nzOkType()==="danger",nzDisabled:this.nzOkDisabled()||this.nzOkButtonProps()?.nzDisabled}));cancelButtonProps=Kw(()=>r({},this.nzCancelButtonProps()));directiveContent=null;content=null;overlayClickable;visibleChange=new Fe;nzOnCancel=new Fe;nzOnConfirm=new Fe;getProxyPropertyMap(){return r({nzOkText:["nzOkText",()=>this.nzOkText],nzCancelText:["nzCancelText",()=>this.nzCancelText],nzOkButtonProps:["nzOkButtonProps",()=>this.okButtonProps],nzCancelButtonProps:["nzCancelButtonProps",()=>this.cancelButtonProps],nzBeforeConfirm:["nzBeforeConfirm",()=>this.nzBeforeConfirm],nzCondition:["nzCondition",()=>this.nzCondition],nzIcon:["nzIcon",()=>this.nzIcon],nzPopconfirmShowArrow:["nzPopconfirmShowArrow",()=>this.nzPopconfirmShowArrow],nzPopconfirmBackdrop:["nzBackdrop",()=>this.nzPopconfirmBackdrop],nzPopconfirmContext:["nzTitleContext",()=>this.titleContext],nzAutoFocus:["nzAutoFocus",()=>this.nzAutofocus]},super.getProxyPropertyMap())}constructor(){super(it);}createComponent(){super.createComponent(),this.component.nzOnCancel.pipe(xt(this.destroyRef)).subscribe(()=>{this.nzOnCancel.emit();}),this.component.nzOnConfirm.pipe(xt(this.destroyRef)).subscribe(()=>{this.nzOnConfirm.emit();});}static \u0275fac=function(a){return new(a||he)};static \u0275dir=rD({type:he,selectors:[["","nz-popconfirm",""]],hostVars:2,hostBindings:function(a,N){a&2&&Nh("ant-popover-open",N.visible);},inputs:{arrowPointAtCenter:[2,"nzPopconfirmArrowPointAtCenter","arrowPointAtCenter",K0],title:[0,"nzPopconfirmTitle","title"],titleContext:[0,"nzPopconfirmTitleContext","titleContext"],directiveTitle:[0,"nz-popconfirm","directiveTitle"],trigger:[0,"nzPopconfirmTrigger","trigger"],placement:[0,"nzPopconfirmPlacement","placement"],origin:[0,"nzPopconfirmOrigin","origin"],mouseEnterDelay:[0,"nzPopconfirmMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:[0,"nzPopconfirmMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:[0,"nzPopconfirmOverlayClassName","overlayClassName"],overlayStyle:[0,"nzPopconfirmOverlayStyle","overlayStyle"],visible:[0,"nzPopconfirmVisible","visible"],nzBeforeConfirm:"nzBeforeConfirm",nzIcon:"nzIcon",nzCondition:[2,"nzCondition","nzCondition",K0],nzPopconfirmShowArrow:[2,"nzPopconfirmShowArrow","nzPopconfirmShowArrow",K0],nzPopconfirmBackdrop:"nzPopconfirmBackdrop",nzAutofocus:"nzAutofocus",nzOkText:[1,"nzOkText"],nzOkType:[1,"nzOkType"],nzCancelText:[1,"nzCancelText"],nzOkButtonProps:[1,"nzOkButtonProps"],nzCancelButtonProps:[1,"nzCancelButtonProps"],nzOkDisabled:[1,"nzOkDisabled"],nzOkDanger:[1,"nzOkDanger"]},outputs:{visibleChange:"nzPopconfirmVisibleChange",nzOnCancel:"nzOnCancel",nzOnConfirm:"nzOnConfirm"},exportAs:["nzPopconfirm"],features:[nh]})}})(),it=(()=>{class i extends nt{_animationPrefix="ant-zoom-big";okBtn;cancelBtn;nzCondition=false;nzPopconfirmShowArrow=true;nzIcon;nzAutoFocus=null;nzBeforeConfirm=null;nzOkText=Go(null);nzCancelText=Go(null);nzOkButtonProps=Go({nzType:"primary"});nzCancelButtonProps=Go(null);nzOnCancel=new re;nzOnConfirm=new re;_trigger="click";elementFocusedBeforeModalWasOpened=null;document=C(Wo);_prefix="ant-popover";confirmLoading=false;constructor(){super(),this.destroyRef.onDestroy(()=>{this.nzVisibleChange.complete();});}show(){this.nzCondition?this.onConfirm():(this.capturePreviouslyFocusedElement(),super.show());}hide(){super.hide(),this.restoreFocus();}handleConfirm(){this.nzOnConfirm.next(),super.hide();}onCancel(){this.nzOnCancel.next(),super.hide();}onConfirm(){this.nzBeforeConfirm?(this.confirmLoading=true,this.cdr.markForCheck(),Wo$1(this.nzBeforeConfirm()).pipe(rm(),sn(Boolean),zl(()=>{this.confirmLoading=false,this.cdr.markForCheck();})).subscribe(()=>this.handleConfirm())):this.handleConfirm();}capturePreviouslyFocusedElement(){this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement);}restoreFocus(){this.elementFocusedBeforeModalWasOpened?.focus();}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=JE({type:i,selectors:[["nz-popconfirm"]],viewQuery:function(t,n){if(t&1&&Dh(dt,5,Nr)(ft,5,Nr),t&2){let o;JD(o=XD())&&(n.okBtn=o),JD(o=XD())&&(n.cancelBtn=o);}},exportAs:["nzPopconfirmComponent"],features:[nh],decls:2,vars:5,consts:[["overlay","cdkConnectedOverlay"],["cancelBtn",""],["okBtn",""],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","nzArrowPointAtCenter"],["cdkTrapFocus","",1,"ant-popover",3,"cdkTrapFocusAutoCapture","nzNoAnimation"],[1,"ant-popover-arrow"],[1,"ant-popover-content"],[1,"ant-popover-inner"],[1,"ant-popover-inner-content"],[1,"ant-popover-message"],[1,"ant-popover-message-icon"],[1,"ant-popover-message-title"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-popover-buttons"],["nz-button","","nzSize","small",3,"click","nzDanger","disabled"],["nz-button","","nzSize","small",3,"click","nzType","nzDanger","nzLoading","disabled"],[4,"nzStringTemplateOutlet"],["nzTheme","fill",3,"nzType"]],template:function(t,n){t&1&&(oh(0,gt,21,26,"ng-template",3,0,zw),yh("overlayOutsideClick",function(c){return n.onClickOutside(c)})("detach",function(){return n.hide()})("positionChange",function(c){return n.onPositionChange(c)})),t&2&&uh("cdkConnectedOverlayHasBackdrop",n.nzBackdrop)("cdkConnectedOverlayOrigin",n.origin)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayOpen",n._visible)("nzArrowPointAtCenter",n.nzArrowPointAtCenter);},dependencies:[wn,v1,Sn,fi,Ks,qs,d4,Pt,Ne,vt$1,ke,Vd,Fc,y7,A7,j_,R_],encapsulation:2})}return i})(),_n=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=eD({type:i});static \u0275inj=hu({imports:[it]})}return i})();export{Cn as C,_n as _};
@@ -1 +0,0 @@
1
- import {_ as _n,C as Cn}from'./chunk-BV9svMMc.js';import {U}from'./chunk-DLA1DsR_.js';import {W,I}from'./chunk-Bgtkf8nM.js';import {O as Od,Q as Ql,x as xd,$ as $l,M as Md,V as Vi,j as jl}from'./chunk-BvDaTl4u.js';import'./chunk-DlU8g0UO.js';import'./chunk-B8aKNL-C.js';import {C,v as vr,a as at,G as Go,x as xt$1,J as JE,j as jn,b as _o,g as go,F as F3,M as Mt,V as Vd,c as Fc,y as y7,d as Kb,q as q5,e as G5,f as fc,N as Ni,h as _w,U as Uw,k as tl,p as ND,u as vI,w as Vh,W as Ww,z as sl,D as xD,E as zD,H as HD,l as yh,m as kD,R as RD,n as cE,A as uh,B as uE,O as OD,o as dh,a3 as lh,a0 as Gw,a1 as Bw,I as Vu,L as Hu}from'./main-JSLBK4RN.js';import {o}from'./chunk-Di_OsX8x.js';import'./chunk-B4A7hSM3.js';var dt=e=>({count:e}),st=e=>["/workflows",e,"edit"],pt=(e,p)=>p.id;function ct(e,p){e&1&&(Ni(0,"p",3),_w(1),Uw(2,"transloco"),tl()),e&2&&(vI(),Vh(Ww(2,1,"common.loading")));}function mt(e,p){if(e&1&&(Ni(0,"p",4),_w(1),tl()),e&2){let t=zD();vI(),Vh(t.loadError());}}function ft(e,p){if(e&1&&(dh(0,"nz-option",7),Uw(1,"transloco")),e&2){let t=p.$implicit,o=zD(2);uh("nzValue",t)("nzLabel",Ww(1,2,o.cardinalityFilterKey(t)));}}function wt(e,p){if(e&1&&(Ni(0,"p",8),_w(1),tl()),e&2){let t=zD(2);vI(),Vh(t.deleteError());}}function _t(e,p){e&1&&(Ni(0,"section",9)(1,"p"),_w(2),Uw(3,"transloco"),tl(),Ni(4,"a",11),_w(5),Uw(6,"transloco"),tl()()),e&2&&(vI(2),Vh(Ww(3,2,"workflows.list.emptyState")),vI(3),sl(" ",Ww(6,4,"workflows.list.emptyCreateButton")," "));}function ut(e,p){if(e&1&&(Ni(0,"span"),_w(1),tl()),e&2){let t=zD().$implicit;lh("data-testid","description-"+t.id),vI(),Vh(t.description);}}function xt(e,p){if(e&1&&(Ni(0,"span",13),_w(1),Uw(2,"transloco"),tl()),e&2){let t=zD().$implicit;lh("data-testid","description-"+t.id),vI(),Vh(Ww(2,2,"workflows.list.noDescription"));}}function Ct(e,p){if(e&1&&(Ni(0,"nz-tag"),_w(1),Uw(2,"transloco"),tl()),e&2){let t=p.$implicit,o=zD().$implicit,m=zD(3);lh("data-testid","applies-to-"+o.id),vI(),Vh(Ww(2,2,m.subjectTypeKey(t)));}}function gt(e,p){if(e&1){let t=HD();Ni(0,"tr")(1,"td")(2,"span"),_w(3),tl()(),Ni(4,"td",12),ND(5,ut,2,2,"span")(6,xt,3,4,"span",13),tl(),Ni(7,"td"),kD(8,Ct,3,4,"nz-tag",null,RD),tl(),Ni(10,"td")(11,"nz-tag"),_w(12),Uw(13,"transloco"),tl()(),Ni(14,"td")(15,"span"),_w(16),Uw(17,"transloco"),tl()(),Ni(18,"td",14)(19,"a",15),_w(20),Uw(21,"transloco"),tl(),Ni(22,"button",16),Uw(23,"transloco"),Uw(24,"transloco"),Uw(25,"transloco"),yh("nzOnConfirm",function(){let m=Vu(t).$implicit,h=zD(3);return Hu(h.deleteWorkflow(m.id))}),_w(26),Uw(27,"transloco"),tl()()();}if(e&2){let t=p.$implicit,o=zD(3);lh("data-testid","workflow-"+t.id),vI(2),lh("data-testid","name-"+t.id),vI(),Vh(t.name),vI(2),xD(t.description?.trim()?5:6),vI(3),OD(o.appliesToValues(t)),vI(3),lh("data-testid","cardinality-"+t.id),vI(),Vh(Ww(13,16,o.cardinalityKey(t.cardinality))),vI(3),lh("data-testid","step-count-"+t.id),vI(),Vh(Gw(17,18,"workflows.list.stepCount",Bw(31,dt,t.steps.length))),vI(3),uh("routerLink",Bw(33,st,t.id)),lh("data-testid","edit-"+t.id),vI(),sl(" ",Ww(21,21,"workflows.list.edit")," "),vI(2),uh("nzPopconfirmTitle",Ww(23,23,"workflows.list.deleteConfirm"))("nzOkText",Ww(24,25,"workflows.list.delete"))("nzCancelText",Ww(25,27,"common.cancel")),lh("data-testid","delete-"+t.id),vI(4),sl(" ",Ww(27,29,"workflows.list.delete")," ");}}function kt(e,p){if(e&1&&(Ni(0,"nz-table",10)(1,"thead")(2,"tr")(3,"th"),_w(4),Uw(5,"transloco"),tl(),Ni(6,"th"),_w(7),Uw(8,"transloco"),tl(),Ni(9,"th"),_w(10),Uw(11,"transloco"),tl(),Ni(12,"th"),_w(13),Uw(14,"transloco"),tl(),Ni(15,"th"),_w(16),Uw(17,"transloco"),tl(),Ni(18,"th"),_w(19),Uw(20,"transloco"),tl()()(),Ni(21,"tbody"),kD(22,gt,28,35,"tr",null,pt),tl()()),e&2){let t=zD(2);uh("nzData",t.workflows())("nzFrontPagination",false)("nzShowPagination",false),vI(4),Vh(Ww(5,9,"workflows.list.column.name")),vI(3),Vh(Ww(8,11,"workflows.list.column.description")),vI(3),Vh(Ww(11,13,"workflow-editor.appliesTo")),vI(3),Vh(Ww(14,15,"workflow-editor.cardinality.label")),vI(3),Vh(Ww(17,17,"workflows.list.column.steps")),vI(3),Vh(Ww(20,19,"workflows.list.column.actions")),vI(3),OD(t.workflows());}}function yt(e,p){if(e&1){let t=HD();Ni(0,"div",5)(1,"span"),_w(2),Uw(3,"transloco"),tl(),Ni(4,"nz-select",6),yh("ngModelChange",function(m){Vu(t);let h=zD();return Hu(h.setCardinalityFilter(m))}),kD(5,ft,2,4,"nz-option",7,RD),tl(),cE(),tl(),ND(7,wt,2,1,"p",8),ND(8,_t,7,6,"section",9)(9,kt,24,21,"nz-table",10);}if(e&2){let t=zD();vI(2),Vh(Ww(3,4,"workflows.list.filterByLaunchMode")),vI(2),uh("ngModel",t.cardinalityFilter()),uE(),vI(),OD(t.cardinalityOptions),vI(2),xD(t.deleteError()?7:-1),vI(),xD(t.workflows().length===0?8:9);}}var Rt=(()=>{class e{constructor(){this.workflowsApi=C(U),this.transloco=C(vr),this.destroyRef=C(at),this.workflows=Go([]),this.loading=Go(true),this.loadError=Go(null),this.deleteError=Go(null),this.cardinalityFilter=Go("all"),this.cardinalityOptions=["all","single","batch","aggregate"],this.load();}setCardinalityFilter(t){this.cardinalityFilter.set(t),this.load();}appliesToValues(t){let o=t.appliesTo;return o==="none"?["none"]:Array.isArray(o)?o:[o]}subjectTypeKey(t){return `workflow-editor.subjectType.${t}`}cardinalityKey(t){return `workflow-editor.cardinality.${t}`}cardinalityFilterKey(t){return t==="all"?"workflows.list.filterAll":`workflow-editor.cardinality.${t}`}deleteWorkflow(t){this.deleteError.set(null),this.workflowsApi.delete(t).pipe(xt$1(this.destroyRef)).subscribe({next:()=>{this.workflows.update(o=>o.filter(m=>m.id!==t));},error:o=>{this.deleteError.set(this.errorMessage(o,this.transloco.translate("workflows.list.deleteFailed")));}});}load(){let t=this.cardinalityFilter();this.loading.set(true),this.loadError.set(null),this.workflowsApi.list(t==="all"?void 0:{cardinality:t}).pipe(xt$1(this.destroyRef)).subscribe({next:o=>{this.workflows.set(o),this.loading.set(false);},error:o=>{this.loading.set(false),this.loadError.set(this.errorMessage(o,this.transloco.translate("workflows.list.loadFailed")));}});}errorMessage(t,o$1){return t instanceof o||t instanceof Error?t.message:o$1}static{this.\u0275fac=function(o){return new(o||e)};}static{this.\u0275cmp=JE({type:e,selectors:[["app-workflow-list"]],decls:11,vars:7,consts:[["data-testid","workflows-list",1,"list-page"],[1,"header"],["nz-button","","nzType","primary","routerLink","/workflows/new","data-testid","create-workflow"],["data-testid","loading"],["data-testid","load-error",1,"error"],[1,"field"],["data-testid","cardinality-filter",3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],["data-testid","delete-error",1,"error"],["data-testid","empty-state",1,"empty"],["data-testid","workflow-items",3,"nzData","nzFrontPagination","nzShowPagination"],["nz-button","","nzType","primary","routerLink","/workflows/new","data-testid","empty-create"],[1,"description-cell"],[1,"muted"],[1,"actions"],["nz-button","","nzType","link",3,"routerLink"],["nz-button","","nzType","link","nzDanger","","type","button","nz-popconfirm","",3,"nzOnConfirm","nzPopconfirmTitle","nzOkText","nzCancelText"]],template:function(o,m){o&1&&(Ni(0,"main",0)(1,"header",1)(2,"h1"),_w(3),Uw(4,"transloco"),tl(),Ni(5,"a",2),_w(6),Uw(7,"transloco"),tl()(),ND(8,ct,3,3,"p",3)(9,mt,2,1,"p",4)(10,yt,10,6),tl()),o&2&&(vI(3),Vh(Ww(4,3,"workflows.list.title")),vI(3),sl(" ",Ww(7,5,"workflows.list.createButton")," "),vI(2),xD(m.loading()?8:m.loadError()?9:10));},dependencies:[jn,_o,go,F3,Mt,Vd,Fc,y7,_n,Cn,Kb,q5,G5,Od,Ql,xd,$l,Md,Vi,jl,W,I,fc],styles:[".list-page[_ngcontent-%COMP%]{max-width:72rem;margin:0 auto;padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:1rem}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;max-width:16rem}.field[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.85rem;color:#57534e}.muted[_ngcontent-%COMP%]{color:#a8a29e;font-style:italic}.empty[_ngcontent-%COMP%]{text-align:center;padding:2.5rem 1rem;border:1px dashed #d6d3d1;background:#fff9}.empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 1rem;color:#57534e}.error[_ngcontent-%COMP%]{color:#9f1239}.actions[_ngcontent-%COMP%]{white-space:nowrap}[_nghost-%COMP%] td.description-cell{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;text-overflow:unset;max-width:28rem;vertical-align:top}[_nghost-%COMP%] .ant-table-tbody>tr>td{white-space:normal;vertical-align:top}"]});}}return e})();export{Rt as WorkflowListComponent};
@@ -1 +0,0 @@
1
- import {_ as _n,C as Cn}from'./chunk-BV9svMMc.js';import {o}from'./chunk-B5hULR_G.js';import {U}from'./chunk-mjUdDQQg.js';import {W,I}from'./chunk-Bgtkf8nM.js';import {O as Od,Q as Ql,x as xd,$ as $l,M as Md,V as Vi,j as jl}from'./chunk-BvDaTl4u.js';import'./chunk-DlU8g0UO.js';import'./chunk-B8aKNL-C.js';import {C,v as vr,a as at,G as Go,x as xt,J as JE,j as jn,M as Mt,V as Vd,c as Fc,y as y7,f as fc,N as Ni,h as _w,U as Uw,k as tl,p as ND,u as vI,w as Vh,W as Ww,z as sl,D as xD,E as zD,m as kD,A as uh,O as OD,H as HD,l as yh,a3 as lh,a1 as Bw,I as Vu,L as Hu}from'./main-JSLBK4RN.js';import {o as o$1}from'./chunk-Di_OsX8x.js';import'./chunk-B4A7hSM3.js';var Y=t=>["/views",t],Z=t=>["/views",t,"edit"],ee=(t,p)=>p.id;function te(t,p){t&1&&(Ni(0,"p",3),_w(1),Uw(2,"transloco"),tl()),t&2&&(vI(),Vh(Ww(2,1,"common.loading")));}function ie(t,p){if(t&1&&(Ni(0,"p",4),_w(1),tl()),t&2){let e=zD();vI(),Vh(e.loadError());}}function ne(t,p){if(t&1&&(Ni(0,"p",5),_w(1),tl()),t&2){let e=zD(2);vI(),Vh(e.deleteError());}}function oe(t,p){t&1&&(Ni(0,"section",6)(1,"p"),_w(2),Uw(3,"transloco"),tl(),Ni(4,"a",8),_w(5),Uw(6,"transloco"),tl()()),t&2&&(vI(2),Vh(Ww(3,2,"views.list.emptyState")),vI(3),sl(" ",Ww(6,4,"views.list.emptyCreateButton")," "));}function re(t,p){if(t&1){let e=HD();Ni(0,"tr")(1,"td")(2,"a",9),_w(3),tl()(),Ni(4,"td")(5,"nz-tag"),_w(6),Uw(7,"transloco"),tl()(),Ni(8,"td",10)(9,"code"),_w(10),tl()(),Ni(11,"td",11)(12,"a",12),_w(13),Uw(14,"transloco"),tl(),Ni(15,"button",13),Uw(16,"transloco"),Uw(17,"transloco"),Uw(18,"transloco"),yh("nzOnConfirm",function(){let u=Vu(e).$implicit,X=zD(3);return Hu(X.deleteView(u.id))}),_w(19),Uw(20,"transloco"),tl()()();}if(t&2){let e=p.$implicit,s=zD(3);lh("data-testid","view-"+e.id),vI(2),uh("routerLink",Bw(28,Y,e.id)),lh("data-testid","name-"+e.id),vI(),sl(" ",e.name," "),vI(2),lh("data-testid","subject-type-"+e.id),vI(),Vh(Ww(7,16,s.subjectTypeKey(e.subjectType))),vI(3),lh("data-testid","query-"+e.id),vI(),Vh(s.queryText(e)),vI(2),uh("routerLink",Bw(30,Z,e.id)),lh("data-testid","edit-"+e.id),vI(),sl(" ",Ww(14,18,"views.list.edit")," "),vI(2),uh("nzPopconfirmTitle",Ww(16,20,"views.list.deleteConfirm"))("nzOkText",Ww(17,22,"views.list.delete"))("nzCancelText",Ww(18,24,"common.cancel")),lh("data-testid","delete-"+e.id),vI(4),sl(" ",Ww(20,26,"views.list.delete")," ");}}function ae(t,p){if(t&1&&(Ni(0,"nz-table",7)(1,"thead")(2,"tr")(3,"th"),_w(4),Uw(5,"transloco"),tl(),Ni(6,"th"),_w(7),Uw(8,"transloco"),tl(),Ni(9,"th"),_w(10),Uw(11,"transloco"),tl(),Ni(12,"th"),_w(13),Uw(14,"transloco"),tl()()(),Ni(15,"tbody"),kD(16,re,21,32,"tr",null,ee),tl()()),t&2){let e=zD(2);uh("nzData",e.views())("nzFrontPagination",false)("nzShowPagination",false),vI(4),Vh(Ww(5,7,"views.list.column.name")),vI(3),Vh(Ww(8,9,"views.list.column.subjectType")),vI(3),Vh(Ww(11,11,"views.list.column.query")),vI(3),Vh(Ww(14,13,"views.list.column.actions")),vI(3),OD(e.views());}}function le(t,p){if(t&1&&(ND(0,ne,2,1,"p",5),ND(1,oe,7,6,"section",6)(2,ae,18,15,"nz-table",7)),t&2){let e=zD();xD(e.deleteError()?0:-1),vI(),xD(e.views().length===0?1:2);}}var Me=(()=>{class t{constructor(){this.viewsApi=C(U),this.transloco=C(vr),this.destroyRef=C(at),this.views=Go([]),this.loading=Go(true),this.loadError=Go(null),this.deleteError=Go(null),this.load();}subjectTypeKey(e){return `workflow-editor.subjectType.${e}`}queryText(e){return o(e.query)}deleteView(e){this.deleteError.set(null),this.viewsApi.delete(e).pipe(xt(this.destroyRef)).subscribe({next:()=>{this.views.update(s=>s.filter(u=>u.id!==e));},error:s=>{this.deleteError.set(this.errorMessage(s,this.transloco.translate("views.list.deleteFailed")));}});}load(){this.loading.set(true),this.loadError.set(null),this.viewsApi.list().pipe(xt(this.destroyRef)).subscribe({next:e=>{this.views.set(e),this.loading.set(false);},error:e=>{this.loading.set(false),this.loadError.set(this.errorMessage(e,this.transloco.translate("views.list.loadFailed")));}});}errorMessage(e,s){return e instanceof o$1||e instanceof Error?e.message:s}static{this.\u0275fac=function(s){return new(s||t)};}static{this.\u0275cmp=JE({type:t,selectors:[["app-view-list"]],decls:11,vars:7,consts:[["data-testid","views-list",1,"list-page"],[1,"header"],["nz-button","","nzType","primary","routerLink","/views/new","data-testid","create-view"],["data-testid","loading"],["data-testid","load-error",1,"error"],["data-testid","delete-error",1,"error"],["data-testid","empty-state",1,"empty"],["data-testid","view-items",3,"nzData","nzFrontPagination","nzShowPagination"],["nz-button","","nzType","primary","routerLink","/views/new","data-testid","empty-create"],[3,"routerLink"],[1,"query-cell"],[1,"actions"],["nz-button","","nzType","link",3,"routerLink"],["nz-button","","nzType","link","nzDanger","","type","button","nz-popconfirm","",3,"nzOnConfirm","nzPopconfirmTitle","nzOkText","nzCancelText"]],template:function(s,u){s&1&&(Ni(0,"main",0)(1,"header",1)(2,"h1"),_w(3),Uw(4,"transloco"),tl(),Ni(5,"a",2),_w(6),Uw(7,"transloco"),tl()(),ND(8,te,3,3,"p",3)(9,ie,2,1,"p",4)(10,le,3,2),tl()),s&2&&(vI(3),Vh(Ww(4,3,"views.list.title")),vI(3),sl(" ",Ww(7,5,"views.list.createButton")," "),vI(2),xD(u.loading()?8:u.loadError()?9:10));},dependencies:[jn,Mt,Vd,Fc,y7,_n,Cn,Od,Ql,xd,$l,Md,Vi,jl,W,I,fc],styles:[".list-page[_ngcontent-%COMP%]{max-width:72rem;margin:0 auto;padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:1rem}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.empty[_ngcontent-%COMP%]{text-align:center;padding:2.5rem 1rem;border:1px dashed #d6d3d1;background:#fff9}.empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 1rem;color:#57534e}.error[_ngcontent-%COMP%]{color:#9f1239}.actions[_ngcontent-%COMP%]{white-space:nowrap}[_nghost-%COMP%] td.query-cell{overflow-wrap:anywhere;word-break:break-word;max-width:28rem;vertical-align:top}[_nghost-%COMP%] .ant-table-tbody>tr>td{white-space:normal;vertical-align:top}code[_ngcontent-%COMP%]{font-family:ui-monospace,Consolas,monospace;font-size:.85rem}"]});}}return t})();export{Me as ViewListComponent};
@@ -1 +0,0 @@
1
- import {af as eD,ag as hu,C,bt as nE,al as Nr,ao as Ie,aZ as Fe,bm as a9,bO as i9,J as JE,aA as vt,aB as ke,bC as fy,ai as K0,aE as ZD,aV as YD,p as ND,u as vI,D as xD,l as yh,bP as Sh,a2 as Nh,bQ as E0,bR as H0,H as HD,N as Ni,k as tl,I as Vu,E as zD,L as Hu}from'./main-JSLBK4RN.js';var V=["*"];function x(o,A){if(o&1){let n=HD();Ni(0,"nz-icon",1),yh("click",function(e){Vu(n);let i=zD();return Hu(i.closeTag(e))}),tl();}}var I=(()=>{class o{renderer=C(nE);el=C(Nr).nativeElement;dir=C(Ie).valueSignal;nzMode="default";nzColor;nzChecked=false;nzBordered=true;nzOnClose=new Fe;nzCheckedChange=new Fe;isPresetColor=false;updateCheckedStatus(){this.nzMode==="checkable"&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked));}closeTag(n){this.nzOnClose.emit(n),n.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.el),this.el);}clearPresetColor(){let n=new RegExp(`(ant-tag-(?:${[...E0,...H0].join("|")}))`,"g"),t=this.el.classList.toString(),e=[],i=n.exec(t);for(;i!==null;)e.push(i[1]),i=n.exec(t);this.el.classList.remove(...e);}setPresetColor(){this.clearPresetColor(),this.nzColor?this.isPresetColor=a9(this.nzColor)||i9(this.nzColor):this.isPresetColor=false,this.isPresetColor&&this.el.classList.add(`ant-tag-${this.nzColor}`);}ngOnChanges(n){let{nzColor:t}=n;t&&this.setPresetColor();}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=JE({type:o,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:12,hostBindings:function(t,e){t&1&&yh("click",function(){return e.updateCheckedStatus()}),t&2&&(Sh("background-color",e.isPresetColor?"":e.nzColor),Nh("ant-tag-has-color",e.nzColor&&!e.isPresetColor)("ant-tag-checkable",e.nzMode==="checkable")("ant-tag-checkable-checked",e.nzChecked)("ant-tag-rtl",e.dir()==="rtl")("ant-tag-borderless",!e.nzBordered));},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:[2,"nzChecked","nzChecked",K0],nzBordered:[2,"nzBordered","nzBordered",K0]},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[fy],ngContentSelectors:V,decls:2,vars:1,consts:[["nzType","close","tabindex","-1",1,"ant-tag-close-icon"],["nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(t,e){t&1&&(ZD(),YD(0),ND(1,x,1,0,"nz-icon",0)),t&2&&(vI(),xD(e.nzMode==="closeable"?1:-1));},dependencies:[vt,ke],encapsulation:2})}return o})(),W=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=eD({type:o});static \u0275inj=hu({imports:[I]})}return o})();export{I,W};
@@ -1 +0,0 @@
1
- import {i as ie$1,_ as _$1,r,t}from'./main-JSLBK4RN.js';var _=(function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n})(_||{}),z="*";function vt(n,e=null){return {type:_.Sequence,steps:n,options:e}}function Le(n){return {type:_.Style,styles:n,offset:null}}var $=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(s=>s()),t.length=0;}},ee=class{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,s=0,i=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++t==r&&this._onFinish();}),a.onDestroy(()=>{++s==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(s=>{let i=s.totalTime?Math.min(1,t/s.totalTime):1;s.setPosition(i);});}getPosition(){let e=this.players.reduce((t,s)=>t===null||s.totalTime>t.totalTime?s: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(s=>s()),t.length=0;}},re="!";function bt(n){return new _$1(3e3,false)}function bs(){return new _$1(3100,false)}function ws(){return new _$1(3101,false)}function Ps(n){return new _$1(3001,false)}function As(n){return new _$1(3003,false)}function Ns(n){return new _$1(3004,false)}function Pt(n,e){return new _$1(3005,false)}function At(){return new _$1(3006,false)}function Nt(){return new _$1(3007,false)}function Ct(n,e){return new _$1(3008,false)}function Dt(n){return new _$1(3002,false)}function Mt(n,e,t,s,i){return new _$1(3010,false)}function kt(){return new _$1(3011,false)}function Ft(){return new _$1(3012,false)}function Rt(){return new _$1(3200,false)}function Ot(){return new _$1(3202,false)}function Lt(){return new _$1(3013,false)}function It(n){return new _$1(3014,false)}function zt(n){return new _$1(3015,false)}function Kt(n){return new _$1(3016,false)}function qt(n){return new _$1(3500,false)}function Bt(n){return new _$1(3501,false)}function Qt(n,e){return new _$1(3404,false)}function Cs(n){return new _$1(3502,false)}function Vt(n){return new _$1(3503,false)}function $t(){return new _$1(3300,false)}function Ut(n){return new _$1(3504,false)}function Gt(n){return new _$1(3301,false)}function jt(n,e){return new _$1(3302,false)}function Wt(n){return new _$1(3303,false)}function Ht(n,e){return new _$1(3400,false)}function Yt(n){return new _$1(3401,false)}function Xt(n){return new _$1(3402,false)}function xt(n,e){return new _$1(3505,false)}var Ds=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function U(n){switch(n.length){case 0:return new $;case 1:return n[0];default:return new ee(n)}}function qe(n,e,t=new Map,s=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let u=l.get("offset"),c=u==a,h=c&&o||new Map;l.forEach((S,y)=>{let d=y,g=S;if(y!=="offset")switch(d=n.normalizePropertyName(d,i),g){case re:g=t.get(y);break;case z:g=s.get(y);break;default:g=n.normalizeStyleValue(y,d,g,i);break}h.set(d,g);}),c||r.push(h),o=h,a=u;}),i.length)throw Cs();return r}function pe(n,e,t,s){switch(e){case "start":n.onStart(()=>s(t&&Ie(t,"start",n)));break;case "done":n.onDone(()=>s(t&&Ie(t,"done",n)));break;case "destroy":n.onDestroy(()=>s(t&&Ie(t,"destroy",n)));break}}function Ie(n,e,t){let s=t.totalTime,i=!!t.disabled,r=ge(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,i),a=n._data;return a!=null&&(r._data=a),r}function ge(n,e,t,s,i="",r=0,a){return {element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!a}}function F(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function Be(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return [t,s]}var Ms=typeof document>"u"?null:document.documentElement;function ye(n){let e=n.parentNode||n.host||null;return e===Ms?null:e}function ks(n){return n.substring(1,6)=="ebkit"}var X=null,wt=false;function Jt(n){X||(X=Rs()||{},wt=X.style?"WebkitAppearance"in X.style:false);let e=true;return X.style&&!ks(n)&&(e=n in X.style,!e&&wt&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in X.style)),e}function Fs(n){return Ds.has(n)}function Rs(){return typeof document<"u"?document.body:null}function Qe(n,e){for(;e;){if(e===n)return true;e=ye(e);}return false}function Ve(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var Os=1e3,$e="{{",Ls="}}",_e="ng-enter",ae="ng-leave",oe="ng-trigger",le=".ng-trigger",Ue="ng-animating",Se=".ng-animating";function V(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return !e||e.length<2?0:ze(parseFloat(e[1]),e[2])}function ze(n,e){return e==="s"?n*Os:n}function ue(n,e,t){return n.hasOwnProperty("duration")?n:zs(n,e,t)}var Is=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function zs(n,e,t){let s,i=0,r="";if(typeof n=="string"){let a=n.match(Is);if(a===null)return e.push(bt()),{duration:0,delay:0,easing:""};s=ze(parseFloat(a[1]),a[2]);let o=a[3];o!=null&&(i=ze(parseFloat(o),a[4]));let l=a[5];l&&(r=l);}else s=n;if(!t){let a=false,o=e.length;s<0&&(e.push(bs()),a=true),i<0&&(e.push(ws()),a=true),a&&e.splice(o,0,bt());}return {duration:s,delay:i,easing:r}}function Zt(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function Ge(n){return Array.isArray(n)?new Map(...n):new Map(n)}function K(n,e,t){e.forEach((s,i)=>{let r=Ee(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s;});}function j(n,e){e.forEach((t,s)=>{let i=Ee(s);n.style[i]="";});}function te(n){return Array.isArray(n)?n.length==1?n[0]:vt(n):n}function es(n,e,t){let s=e.params||{},i=je(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(Ps());});}var Ke=new RegExp(`${$e}\\s*(.+?)\\s*${Ls}`,"g");function je(n){let e=[];if(typeof n=="string"){let t;for(;t=Ke.exec(n);)e.push(t[1]);Ke.lastIndex=0;}return e}function se(n,e,t){let s=`${n}`,i=s.replace(Ke,(r,a)=>{let o=e[a];return o==null&&(t.push(As()),o=""),o.toString()});return i==s?n:i}var Ks=/-+([a-z0-9])/g;function Ee(n){return n.replace(Ks,(...e)=>e[1].toUpperCase())}function qs(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ts(n,e){return n===0||e===0}function ss(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,a)=>{s.has(a)||i.push(a),s.set(a,r);}),i.length)for(let r=1;r<e.length;r++){let a=e[r];i.forEach(o=>a.set(o,Te(n,o)));}}return e}function R(n,e,t){switch(e.type){case _.Trigger:return n.visitTrigger(e,t);case _.State:return n.visitState(e,t);case _.Transition:return n.visitTransition(e,t);case _.Sequence:return n.visitSequence(e,t);case _.Group:return n.visitGroup(e,t);case _.Animate:return n.visitAnimate(e,t);case _.Keyframes:return n.visitKeyframes(e,t);case _.Style:return n.visitStyle(e,t);case _.Reference:return n.visitReference(e,t);case _.AnimateChild:return n.visitAnimateChild(e,t);case _.AnimateRef:return n.visitAnimateRef(e,t);case _.Query:return n.visitQuery(e,t);case _.Stagger:return n.visitStagger(e,t);default:throw Ns(e.type)}}function Te(n,e){return window.getComputedStyle(n)[e]}var gs=(()=>{class n{validateStyleProperty(t){return Jt(t)}containsElement(t,s){return Qe(t,s)}getParentElement(t){return ye(t)}query(t,s,i){return Ve(t,s,i)}computeStyle(t,s,i){return i||""}animate(t,s,i,r,a,o=[],l){return new $(i,r)}static \u0275fac=function(s){return new(s||n)};static \u0275prov=ie$1({token:n,factory:n.\u0275fac})}return n})(),is=class{static NOOP=new gs},Je=class{},Ze=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,i){return s}},Bs=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"]),et=class extends Je{normalizePropertyName(e,t){return Ee(e)}normalizeStyleValue(e,t,s,i){let r="",a=s.toString().trim();if(Bs.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else {let o=s.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(Pt());}return a+r}};var Ae="*";function Qs(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>Vs(s,t,e)):t.push(n),t}function Vs(n,e,t){if(n[0]==":"){let l=$s(n,t);if(typeof l=="function"){e.push(l);return}n=l;}let s=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(zt()),e;let i=s[1],r=s[2],a=s[3];e.push(ns(i,a));let o=i==Ae&&a==Ae;r[0]=="<"&&!o&&e.push(ns(a,i));}function $s(n,e){switch(n){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,s)=>parseFloat(s)>parseFloat(t);case ":decrement":return (t,s)=>parseFloat(s)<parseFloat(t);default:return e.push(Kt()),"* => *"}}var ve=new Set(["true","1"]),be=new Set(["false","0"]);function ns(n,e){let t=ve.has(n)||be.has(n),s=ve.has(e)||be.has(e);return (i,r)=>{let a=n==Ae||n==i,o=e==Ae||e==r;return !a&&t&&typeof i=="boolean"&&(a=i?ve.has(n):be.has(n)),!o&&s&&typeof r=="boolean"&&(o=r?ve.has(e):be.has(e)),a&&o}}var ys=":self",Us=new RegExp(`s*${ys}s*,?`,"g");function dt(n,e,t,s){return new tt(n).build(e,t,s)}var rs="",tt=class{_driver;constructor(e){this._driver=e;}build(e,t,s){let i=new st(t);return this._resetContextStyleTimingState(i),R(this,te(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=rs,e.collectedStyles=new Map,e.collectedStyles.set(rs,new Map),e.currentTime=0;}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(At()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==_.State){let l=o,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t));}),l.name=u;}else if(o.type==_.Transition){let l=this.visitTransition(o,t);s+=l.queryCount,i+=l.depCount,a.push(l);}else t.errors.push(Nt());}),{type:_.Trigger,name:e.name,states:r,transitions:a,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,a=i||{};s.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{je(l).forEach(u=>{a.hasOwnProperty(u)||r.add(u);});});}),r.size&&t.errors.push(Ct(e.name,[...r.values()]));}return {type:_.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=R(this,te(e.animation),t),i=Qs(e.expr,t.errors);return {type:_.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:x(e.options)}}visitSequence(e,t){return {type:_.Sequence,steps:e.steps.map(s=>R(this,s,t)),options:x(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=s;let o=R(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:_.Group,steps:r,options:x(e.options)}}visitAnimate(e,t){let s=Hs(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:Le({});if(r.type==_.Keyframes)i=this.visitKeyframes(r,t);else {let a=e.styles,o=false;if(!a){o=true;let u={};s.easing&&(u.easing=s.easing),a=Le(u);}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l;}return t.currentAnimateTimings=null,{type:_.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===z?s.push(o):t.errors.push(Dt()):s.push(new Map(Object.entries(o)));let r=false,a=null;return s.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($e)>=0){r=true;break}}}),{type:_.Style,styles:s,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let u=t.collectedStyles.get(t.currentQuerySelector),c=u.get(l),h=true;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push(Mt(l,c.startTime,c.endTime)),h=false),r=c.startTime),h&&u.set(l,{startTime:r,endTime:i}),t.options&&es(o,t.options,t.errors);});});}visitKeyframes(e,t){let s={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(kt()),s;let i=1,r=0,a=[],o=false,l=false,u=0,c=e.steps.map(w=>{let P=this._makeStyleAst(w,t),D=P.offset!=null?P.offset:Ws(P.styles),N=0;return D!=null&&(r++,N=P.offset=D),l=l||N<0||N>1,o=o||N<u,u=N,a.push(N),P});l&&t.errors.push(Ft()),o&&t.errors.push(Rt());let h=e.steps.length,S=0;r>0&&r<h?t.errors.push(Ot()):r==0&&(S=i/(h-1));let y=h-1,d=t.currentTime,g=t.currentAnimateTimings,v=g.duration;return c.forEach((w,P)=>{let D=S>0?P==y?1:S*P:a[P],N=D*v;t.currentTime=d+g.delay+N,g.duration=N,this._validateStyleAst(w,t),w.offset=D,s.styles.push(w);}),s}visitReference(e,t){return {type:_.Reference,animation:R(this,te(e.animation),t),options:x(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:x(e.options)}}visitAnimateRef(e,t){return {type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:x(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=Gs(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,F(t.collectedStyles,t.currentQuerySelector,new Map);let o=R(this,te(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:_.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:x(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Lt());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ue(e.timings,t.errors,true);return {type:_.Stagger,animation:R(this,te(e.animation),t),timings:s,options:null}}};function Gs(n){let e=!!n.split(/\s*,\s*/).find(t=>t==ys);return e&&(n=n.replace(Us,"")),n=n.replace(/@\*/g,le).replace(/@\w+/g,t=>le+"-"+t.slice(1)).replace(/:animating/g,Se),[n,e]}function js(n){return n?r({},n):null}var st=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 Ws(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset");}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset");}return e}function Hs(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=ue(n,e).duration;return We(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=We(0,0,"");return r.dynamic=true,r.strValue=t,r}let i=ue(t,e);return We(i.duration,i.delay,i.easing)}function x(n){return n?(n=r({},n),n.params&&(n.params=js(n.params))):n={},n}function We(n,e,t){return {duration:n,delay:e,easing:t}}function mt(n,e,t,s,i,r,a=null,o=false){return {type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var ne=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t);}has(e){return this._map.has(e)}clear(){this._map.clear();}},Ys=1,Xs=":enter",xs=new RegExp(Xs,"g"),Js=":leave",Zs=new RegExp(Js,"g");function pt(n,e,t,s,i,r=new Map,a=new Map,o,l,u=[]){return new it().buildKeyframes(n,e,t,s,i,r,a,o,l,u)}var it=class{buildKeyframes(e,t,s,i,r,a,o,l,u,c=[]){u=u||new ne;let h=new nt(e,t,u,i,r,c,[]);h.options=l;let S=l.delay?V(l.delay):0;h.currentTimeline.delayNextStep(S),h.currentTimeline.setStyles([a],null,h.errors,l),R(this,s,h);let y=h.timelines.filter(d=>d.containsAnimation());if(y.length&&o.size){let d;for(let g=y.length-1;g>=0;g--){let v=y[g];if(v.element===t){d=v;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([o],null,h.errors,l);}return y.length?y.map(d=>d.buildKeyframes()):[mt(t,[],[],[],0,S,"",false)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(s,i,i.options);r!=a&&t.transformIntoNewTimeline(a);}t.previousNode=e;}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e;}_applyAnimationRefDelays(e,t,s){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:V(se(r,i?.params??{},t.errors));s.delayNextStep(a);}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,a=s.duration!=null?V(s.duration):null,o=s.delay!=null?V(s.delay):null;return a!==0&&e.forEach(l=>{let u=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,u.duration+u.delay);}),r}visitReference(e,t){t.updateOptions(e.options,true),R(this,e.animation,t),t.previousNode=e;}visitSequence(e,t){let s=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=Ne);let a=V(r.delay);i.delayNextStep(a);}e.steps.length&&(e.steps.forEach(a=>R(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e;}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?V(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),R(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),s.push(o.currentTimeline);}),s.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e;}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?se(s,t.params,t.errors):s;return ue(i,t.errors)}else return {duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e;}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e;}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,o=t.createSubContext().currentTimeline;o.easing=s.easing,e.styles.forEach(l=>{let u=l.offset||0;o.forwardTime(u*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 s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?V(i.delay):0;r&&(t.previousNode.type===_.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ne);let a=s,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((u,c)=>{t.currentQueryIndex=c;let h=t.createSubContext(e.options,u);r&&h.delayNextStep(r),u===t.element&&(l=h.currentTimeline),R(this,e.animation,h),h.currentTimeline.applyStylesToKeyframe();let S=h.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 s=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=s.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let h=c.currentTime;R(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-h+(i.startTime-s.currentTimeline.startTime);}},Ne={},nt=class n{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ne;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,s,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.currentTimeline=l||new Ce(this._driver,t,0),o.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=V(s.duration)),s.delay!=null&&(i.delay=V(s.delay));let r=s.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=se(r[o],a,this.errors));});}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i];});}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||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=Ne,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new rt(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,s,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(xs,"."+this._enterClassName),e=e.replace(Zs,"."+this._leaveClassName);let l=s!=1,u=this._driver.query(this.element,e,l);s!==0&&(u=s<0?u.slice(u.length+s,u.length):u.slice(0,s)),o.push(...u);}return !r&&o.length==0&&a.push(It()),o}},Ce=class n{_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,s,i){this._driver=e,this.element=t,this.startTime=s,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 n(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+=Ys,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,s]of this._globalTimelineStyles)this._backFill.set(t,s||z),this._currentKeyframe.set(t,z);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=ei(e,this._globalTimelineStyles);for(let[o,l]of a){let u=se(l,r,s);this._pendingStyles.set(o,u),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??z),this._updateStyle(o,u);}}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,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let u=new Map([...this._backFill,...o]);u.forEach((c,h)=>{c===re?e.add(h):c===z&&t.add(h);}),s||u.set("offset",l/this.duration),i.push(u);});let r=[...e.values()],a=[...t.values()];if(s){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l];}return mt(this.element,i,r,a,this.duration,this.startTime,this.easing,false)}},rt=class extends Ce{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,s,i,r,a,o=false){super(e,t,a.delay),this.keyframes=s,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:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=s+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let u=new Map(e[0]);u.set("offset",as(o)),r.push(u);let c=e.length-1;for(let h=1;h<=c;h++){let S=new Map(e[h]),y=S.get("offset"),d=t+y*s;S.set("offset",as(d/a)),r.push(S);}s=a,t=0,i="",e=r;}return mt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,true)}};function as(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function ei(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s??=e.keys();for(let r of s)t.set(r,z);}else for(let[r,a]of i)t.set(r,a);}),t}function os(n,e,t,s,i,r,a,o,l,u,c,h,S){return {type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:a,timelines:o,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:S}}var He={},De=class{_triggerName;ast;_stateStyles;constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s;}match(e,t,s,i){return ti(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,a,o,l,u,c){let h=[],S=this.ast.options&&this.ast.options.params||He,y=o&&o.params||He,d=this.buildStyles(s,y,h),g=l&&l.params||He,v=this.buildStyles(i,g,h),w=new Set,P=new Map,D=new Map,N=i==="void",J={params:_s(g,S),delay:this.ast.options?.delay},B=c?[]:pt(e,t,this.ast.animation,r,a,d,v,J,u,h),M=0;return B.forEach(k=>{M=Math.max(k.duration+k.delay,M);}),h.length?os(t,this._triggerName,s,i,N,d,v,[],[],P,D,M,h):(B.forEach(k=>{let W=k.element,Z=F(P,W,new Set);k.preStyleProps.forEach(H=>Z.add(H));let gt=F(D,W,new Set);k.postStyleProps.forEach(H=>gt.add(H)),W!==t&&w.add(W);}),os(t,this._triggerName,s,i,N,d,v,B,[...w.values()],P,D,M))}};function ti(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function _s(n,e){let t=r({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i);}),t}var at=class{styles;defaultParams;normalizer;constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s;}buildStyles(e,t){let s=new Map,i=_s(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=se(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),s.set(o,a);});}),s}};function si(n,e,t){return new ot(n,e,t)}var ot=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new at(i.style,r,s));}),ls(this.states,"true","1"),ls(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new De(e,i,this.states));}),this.fallbackTransition=ii(e,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(a=>a.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ii(n,e,t){let s=[(a,o)=>true],i={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new De(n,r,e)}function ls(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t));}var ni=new ne,lt=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s;}register(e,t){let s=[],i=[],r=dt(this._driver,t,s,i);if(s.length)throw Vt();this._animations.set(e,r);}_buildPlayer(e,t,s){let i=e.element,r=qe(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],true)}create(e,t,s={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=pt(this._driver,t,r,_e,ae,new Map,new Map,s,ni,i),a.forEach(c=>{let h=F(o,c.element,new Map);c.postStyleProps.forEach(S=>h.set(S,null));})):(i.push($t()),a=[]),i.length)throw Ut();o.forEach((c,h)=>{c.forEach((S,y)=>{c.set(y,this._driver.computeStyle(h,y,z));});});let l=a.map(c=>{let h=o.get(c.element);return this._buildPlayer(c,new Map,h)}),u=U(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1);}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Gt();return t}listen(e,t,s,i){let r=ge(t,"","","");return pe(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let a=i[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(s){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}}},us="ng-animate-queued",ri=".ng-animate-queued",Ye="ng-animate-disabled",ai=".ng-animate-disabled",oi="ng-star-inserted",li=".ng-star-inserted",ui=[],Ss={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},hi={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},q="__ng_removed",ce=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t$1=""){this.namespaceId=t$1;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=fi(i),s){let r=e,{value:a}=r,o=t(r,["value"]);this.options=o;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i]);});}}},he="void",Xe=new ce(he),ut=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this._hostClassName="ng-tns-"+e,I(t,this._hostClassName);}listen(e,t,s,i){if(!this._triggers.has(t))throw jt();if(s==null||s.length==0)throw Wt();if(!di(s))throw Ht();let r=F(this._elementListeners,e,[]),a={name:t,phase:s,callback:i};r.push(a);let o=F(this._engine.statesByElement,e,new Map);return o.has(t)||(I(e,oe),I(e,oe+"-"+t),o.set(t,Xe)),()=>{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 Yt();return t}trigger(e,t,s,i=true){let r=this._getTrigger(t),a=new fe(this.id,t,e),o=this._engine.statesByElement.get(e);o||(I(e,oe),I(e,oe+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),u=new ce(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),o.set(t,u),l||(l=Xe),!(u.value===he)&&l.value===u.value){if(!gi(l.params,u.params)){let g=[],v=r.matchStyles(l.value,l.params,g),w=r.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{j(e,v),K(e,w);});}return}let S=F(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy();});let y=r.matchTransition(l.value,u.value,e,u.params),d=false;if(!y){if(!i)return;y=r.fallbackTransition,d=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:u,player:a,isFallbackTransition:d}),d||(I(e,us),a.onStart(()=>{ie(e,us);})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let v=this._engine.playersByElement.get(e);if(v){let w=v.indexOf(a);w>=0&&v.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,s)=>{this._elementListeners.set(s,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(s=>s.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,le,true);s.forEach(i=>{if(i[q])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,false,true)):this.clearElementCache(i);}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)));}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let c=this.trigger(e,u,he,i);c&&o.push(c);}}),o.length)return this._engine.markElementAsRemoved(this.id,e,true,t,a),s&&U(o).onDone(()=>this._engine.processLeaveNode(e)),true}return false}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){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,u=s.get(a)||Xe,c=new ce(he),h=new fe(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:u,toState:c,player:h,isFallbackTransition:true});});}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,true))return;let i=false;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=true;else {let a=e;for(;a=a.parentNode;)if(s.statesByElement.get(a)){i=true;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,false,t);else {let r=e[q];(!r||r===Ss)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t));}}insertNode(e,t){I(e,this._hostClassName);}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==s.triggerName){let l=ge(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,pe(s.player,o.phase,l,o.callback);}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy();}):t.push(s);}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},ht=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,s){this.bodyNode=e,this.driver=t,this._normalizer=s;}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s);});}),e}createNamespace(e,t){let s=new ut(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let a=false,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let u=s.indexOf(l);s.splice(u+1,0,e),a=true;break}o=this.driver.getParentElement(o);}a||s.unshift(e);}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++;}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r);}}return t}trigger(e,t,s,i){if(we(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),true}return false}insertNode(e,t,s,i){if(!we(t))return;let r=t[q];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,s);}i&&this.collectEnterElement(t);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Ye)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ie(e,Ye));}removeNode(e,t,s){if(we(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,false,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s);}else this._onRemovalComplete(t,s);}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[q]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:false,previousTriggersValues:r};}listen(e,t,s,i,r){return we(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,le,true);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Se,true),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)));}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=true:s.destroy();});}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return U(this.players).onDone(()=>e());e();})}processLeaveNode(e){let t=e[q];if(t&&t.setForRemoval){if(e[q]=Ss,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e);}this._onRemovalComplete(e,t.setForRemoval);}e.classList?.contains(Ye)&&this.markElementAsDisabled(e,false),this.driver.query(e,ai,true).forEach(s=>{this.markElementAsDisabled(s,false);});}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;s<this.collectedEnterElements.length;s++){let i=this.collectedEnterElements[s];I(i,oi);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let s=[];try{t=this._flushAnimations(s,e);}finally{for(let i=0;i<s.length;i++)s[i]();}}else for(let s=0;s<this.collectedLeaveElements.length;s++){let i=this.collectedLeaveElements[s];this.processLeaveNode(i);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(s=>s()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?U(t).onDone(()=>{s.forEach(i=>i());}):s.forEach(i=>i());}}reportError(e){throw Xt()}_flushAnimations(e,t){let s=new ne,i=[],r=new Map,a=[],o=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(f=>{c.add(f);let m=this.driver.query(f,ri,true);for(let p=0;p<m.length;p++)c.add(m[p]);});let h=this.bodyNode,S=Array.from(this.statesByElement.keys()),y=fs(S,this.collectedEnterElements),d=new Map,g=0;y.forEach((f,m)=>{let p=_e+g++;d.set(m,p),f.forEach(T=>I(T,p));});let v=[],w=new Set,P=new Set;for(let f=0;f<this.collectedLeaveElements.length;f++){let m=this.collectedLeaveElements[f],p=m[q];p&&p.setForRemoval&&(v.push(m),w.add(m),p.hasAnimation?this.driver.query(m,li,true).forEach(T=>w.add(T)):P.add(m));}let D=new Map,N=fs(S,Array.from(w));N.forEach((f,m)=>{let p=ae+g++;D.set(m,p),f.forEach(T=>I(T,p));}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(T=>ie(T,p));}),N.forEach((f,m)=>{let p=D.get(m);f.forEach(T=>ie(T,p));}),v.forEach(f=>{this.processLeaveNode(f);});});let J=[],B=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(p=>{let T=p.player,A=p.element;if(J.push(T),this.collectedEnterElements.length){let C=A[q];if(C&&C.setForMove){if(C.previousTriggersValues&&C.previousTriggersValues.has(p.triggerName)){let Y=C.previousTriggersValues.get(p.triggerName),L=this.statesByElement.get(p.element);if(L&&L.has(p.triggerName)){let de=L.get(p.triggerName);de.value=Y,L.set(p.triggerName,de);}}T.destroy();return}}let Q=!h||!this.driver.containsElement(h,A),O=D.get(A),G=d.get(A),b=this._buildInstruction(p,s,G,O,Q);if(b.errors&&b.errors.length){B.push(b);return}if(Q){T.onStart(()=>j(A,b.fromStyles)),T.onDestroy(()=>K(A,b.toStyles)),i.push(T);return}if(p.isFallbackTransition){T.onStart(()=>j(A,b.fromStyles)),T.onDestroy(()=>K(A,b.toStyles)),i.push(T);return}let St=[];b.timelines.forEach(C=>{C.stretchStartingKeyframe=true,this.disabledNodes.has(C.element)||St.push(C);}),b.timelines=St,s.append(A,b.timelines);let vs={instruction:b,player:T,element:A};a.push(vs),b.queriedElements.forEach(C=>F(o,C,[]).push(T)),b.preStyleProps.forEach((C,Y)=>{if(C.size){let L=l.get(Y);L||l.set(Y,L=new Set),C.forEach((de,Oe)=>L.add(Oe));}}),b.postStyleProps.forEach((C,Y)=>{let L=u.get(Y);L||u.set(Y,L=new Set),C.forEach((de,Oe)=>L.add(Oe));});});if(B.length){let f=[];B.forEach(m=>{f.push(xt(m.triggerName,m.errors));}),J.forEach(m=>m.destroy()),this.reportError(f);}let M=new Map,k=new Map;a.forEach(f=>{let m=f.element;s.has(m)&&(k.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,M));}),i.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,false,f.namespaceId,f.triggerName,null).forEach(T=>{F(M,m,[]).push(T),T.destroy();});});let W=v.filter(f=>ds(f,l,u)),Z=new Map;cs(Z,this.driver,P,u,z).forEach(f=>{ds(f,l,u)&&W.push(f);});let H=new Map;y.forEach((f,m)=>{cs(H,this.driver,new Set(f),l,re);}),W.forEach(f=>{let m=Z.get(f),p=H.get(f);Z.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]));});let Re=[],yt=[],_t={};a.forEach(f=>{let{element:m,player:p,instruction:T}=f;if(s.has(m)){if(c.has(m)){p.onDestroy(()=>K(m,T.toStyles)),p.disabled=true,p.overrideTotalTime(T.totalTime),i.push(p);return}let A=_t;if(k.size>1){let O=m,G=[];for(;O=O.parentNode;){let b=k.get(O);if(b){A=b;break}G.push(O);}G.forEach(b=>k.set(b,A));}let Q=this._buildAnimation(p.namespaceId,T,M,r,H,Z);if(p.setRealPlayer(Q),A===_t)Re.push(p);else {let O=this.playersByElement.get(A);O&&O.length&&(p.parentPlayer=U(O)),i.push(p);}}else j(m,T.fromStyles),p.onDestroy(()=>K(m,T.toStyles)),yt.push(p),c.has(m)&&i.push(p);}),yt.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let p=U(m);f.setRealPlayer(p);}}),i.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy();});for(let f=0;f<v.length;f++){let m=v[f],p=m[q];if(ie(m,ae),p&&p.hasAnimation)continue;let T=[];if(o.size){let Q=o.get(m);Q&&Q.length&&T.push(...Q);let O=this.driver.query(m,Se,true);for(let G=0;G<O.length;G++){let b=o.get(O[G]);b&&b.length&&T.push(...b);}}let A=T.filter(Q=>!Q.destroyed);A.length?mi(this,m,A):this.processLeaveNode(m);}return v.length=0,Re.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1);}),f.play();}),Re}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,t,s,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==he;o.forEach(u=>{u.queued||!l&&u.triggerName!=i||a.push(u);});}}return (s||i)&&(a=a.filter(o=>!(s&&s!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,s){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 u=l.element,c=u!==r,h=F(s,u,[]);this._getPreviousPlayers(u,c,a,o,t.toState).forEach(y=>{let d=y.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),y.destroy(),h.push(y);});}j(r,t.fromStyles);}_buildAnimation(e,t,s,i,r,a){let o=t.triggerName,l=t.element,u=[],c=new Set,h=new Set,S=t.timelines.map(d=>{let g=d.element;c.add(g);let v=g[q];if(v&&v.removedBeforeQueried)return new $(d.duration,d.delay);let w=g!==l,P=pi((s.get(g)||ui).map(M=>M.getRealPlayer())).filter(M=>{let k=M;return k.element?k.element===g:false}),D=r.get(g),N=a.get(g),J=qe(this._normalizer,d.keyframes,D,N),B=this._buildPlayer(d,J,P);if(d.subTimeline&&i&&h.add(g),w){let M=new fe(e,o,g);M.setRealPlayer(B),u.push(M);}return B});u.forEach(d=>{F(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>ci(this.playersByQueriedElement,d.element,d));}),c.forEach(d=>I(d,Ue));let y=U(S);return y.onDestroy(()=>{c.forEach(d=>ie(d,Ue)),K(l,t.toStyles);}),h.forEach(d=>{F(i,d,[]).push(y);}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new $(e.duration,e.delay)}},fe=class{namespaceId;triggerName;element;_player=new $;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>pe(e,s,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){F(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 ci(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1);}s.length==0&&n.delete(e);}return s}function fi(n){return n??null}function we(n){return n&&n.nodeType===1}function di(n){return n=="start"||n=="done"}function hs(n,e){let t=n.style.display;return n.style.display=e??"none",t}function cs(n,e,t,s,i){let r=[];t.forEach(l=>r.push(hs(l)));let a=[];s.forEach((l,u)=>{let c=new Map;l.forEach(h=>{let S=e.computeStyle(u,h,i);c.set(h,S),(!S||S.length==0)&&(u[q]=hi,a.push(u));}),n.set(u,c);});let o=0;return t.forEach(l=>hs(l,r[o++])),a}function fs(n,e){let t=new Map;if(n.forEach(o=>t.set(o,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function a(o){if(!o)return s;let l=r.get(o);if(l)return l;let u=o.parentNode;return t.has(u)?l=u:i.has(u)?l=s:l=a(u),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==s&&t.get(l).push(o);}),t}function I(n,e){n.classList?.add(e);}function ie(n,e){n.classList?.remove(e);}function mi(n,e,t){U(t).onDone(()=>n.processLeaveNode(e));}function pi(n){let e=[];return Es(n,e),e}function Es(n,e){for(let t=0;t<n.length;t++){let s=n[t];s instanceof ee?Es(s.players,e):e.push(s);}}function gi(n,e){let t=Object.keys(n),s=Object.keys(e);if(t.length!=s.length)return false;for(let i=0;i<t.length;i++){let r=t[i];if(!e.hasOwnProperty(r)||n[r]!==e[r])return false}return true}function ds(n,e,t){let s=t.get(n);if(!s)return false;let i=e.get(n);return i?s.forEach(r=>i.add(r)):e.set(n,s),t.delete(n),true}var Me=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,s){this._driver=t,this._normalizer=s,this._transitionEngine=new ht(e.body,t,s),this._timelineEngine=new lt(e.body,t,s),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r);}registerTrigger(e,t,s,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],u=[],c=dt(this._driver,r,l,u);if(l.length)throw Qt();o=si(i,c,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,s,i){this._transitionEngine.insertNode(e,t,s,i);}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s);}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t);}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,a]=Be(s),o=i;this._timelineEngine.command(r,t,a,o);}else this._transitionEngine.trigger(e,t,s,i);}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[a,o]=Be(s);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,s,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 yi(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=xe(e[0]),e.length>1&&(s=xe(e[e.length-1]))):e instanceof Map&&(t=xe(e)),t||s?new _i(n,t,s):null}var _i=(()=>{class n{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,s,i){this._element=t,this._startStyles=s,this._endStyles=i;let r=n.initialStylesByElement.get(t);r||n.initialStylesByElement.set(t,r=new Map),this._initialStyles=r;}start(){this._state<1&&(this._startStyles&&K(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(K(this._element,this._initialStyles),this._endStyles&&(K(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(j(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(j(this._element,this._endStyles),this._endStyles=null),K(this._element,this._initialStyles),this._state=3);}}return n})();function xe(n){let e=null;return n.forEach((t,s)=>{Si(s)&&(e=e||new Map,e.set(s,t));}),e}function Si(n){return n==="display"||n==="position"}var ke=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,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,this._duration=s.duration,this._delay=s.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 s=()=>this._onFinish();return t.addEventListener("finish",s),this.onDestroy(()=>{t.removeEventListener("finish",s);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s));}),t}_triggerWebAnimation(e,t,s){let i=this._convertKeyframesToObject(t);try{return e.animate(i,s)}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((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:Te(this.element,i));}),this.currentSnapshot=e;}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0;}},ct=class{validateStyleProperty(e){return true}validateAnimatableStyleProperty(e){return true}containsElement(e,t){return Qe(e,t)}getParentElement(e){return ye(e)}query(e,t,s){return Ve(e,t,s)}computeStyle(e,t,s){return Te(e,t)}animate(e,t,s,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:s,delay:i,fill:o};r&&(l.easing=r);let u=new Map,c=a.filter(y=>y instanceof ke);ts(s,i)&&c.forEach(y=>{y.currentSnapshot.forEach((d,g)=>u.set(g,d));});let h=Zt(t).map(y=>new Map(y));h=ss(e,h,u);let S=yi(e,h);return new ke(e,h,l,S)}};function Di(n,e){return n==="noop"?new Me(e,new gs,new Ze):new Me(e,new ct,new et)}var ms=class{_driver;_animationAst;constructor(e,t){this._driver=e;let s=[],r=dt(e,t,s,[]);if(s.length)throw qt();this._animationAst=r;}buildTimelines(e,t,s,i,r){let a=Array.isArray(t)?Ge(t):t,o=Array.isArray(s)?Ge(s):s,l=[];r=r||new ne;let u=pt(this._driver,e,this._animationAst,_e,ae,a,o,i,r,l);if(l.length)throw Bt();return u}},Pe="@",Ts="@.disabled",Fe=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,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,s,i=true){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i);}removeChild(e,t,s,i){if(i){this.delegate.removeChild(e,t,s,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,s,i){this.delegate.setAttribute(e,t,s,i);}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s);}addClass(e,t){this.delegate.addClass(e,t);}removeClass(e,t){this.delegate.removeClass(e,t);}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i);}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s);}setProperty(e,t,s){t.charAt(0)==Pe&&t==Ts?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s);}setValue(e,t){this.delegate.setValue(e,t);}listen(e,t,s,i){return this.delegate.listen(e,t,s,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t);}},ft=class extends Fe{factory;constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t;}setProperty(e,t,s){t.charAt(0)==Pe?t.charAt(1)=="."&&t==Ts?(s=s===void 0?true:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s);}listen(e,t,s,i){if(t.charAt(0)==Pe){let r=Ei(e),a=t.slice(1),o="";return a.charAt(0)!=Pe&&([a,o]=Ti(a)),this.engine.listen(this.namespaceId,r,a,o,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,s,l);})}return this.delegate.listen(e,t,s,i)}};function Ei(n){switch(n){case "body":return document.body;case "document":return document;case "window":return window;default:return n}}function Ti(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return [t,s]}var ps=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i);};}createRenderer(e,t){let i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let u=this._rendererCache,c=u.get(i);if(!c){let h=()=>u.delete(i);c=new Fe("",i,this.engine,h),u.set(i,c);}return c}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=u=>{Array.isArray(u)?u.forEach(o):this.engine.registerTrigger(r,a,e,u.name,u);};return t.data.animation.forEach(o),new ft(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,t,s){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(s));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,s]);}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);}};export{is as AnimationDriver,gs as NoopAnimationDriver,ms as ɵAnimation,Me as ɵAnimationEngine,ft as ɵAnimationRenderer,ps as ɵAnimationRendererFactory,Je as ɵAnimationStyleNormalizer,Fe as ɵBaseAnimationRenderer,_e as ɵENTER_CLASSNAME,ae as ɵLEAVE_CLASSNAME,Ze as ɵNoopAnimationStyleNormalizer,fe as ɵTransitionAnimationPlayer,ct as ɵWebAnimationsDriver,ke as ɵWebAnimationsPlayer,et as ɵWebAnimationsStyleNormalizer,ts as ɵallowPreviousPlayerStylesMerge,qs as ɵcamelCaseToDashCase,Qe as ɵcontainsElement,Di as ɵcreateEngine,ye as ɵgetParentElement,Ve as ɵinvokeQuery,Zt as ɵnormalizeKeyframes,Jt as ɵvalidateStyleProperty,Fs as ɵvalidateWebAnimatableStyleProperty};